asiaint-lowcode 3.1.46 → 3.1.47

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.
Files changed (39) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +16 -16
  3. package/dist/index.d.ts +3 -0
  4. package/dist/lazy/{Card-H3NBSqol.js → Card-zK0cktAn.js} +1 -1
  5. package/dist/lazy/{Cascader-CPVhCUTJ.js → Cascader-Dq62RzGz.js} +1 -1
  6. package/dist/lazy/{Checkbox-CZHj5Fpz.js → Checkbox--rDL_NvA.js} +2 -2
  7. package/dist/lazy/{Collapse-CDSlXpMG.js → Collapse-CX-Wa53u.js} +1 -1
  8. package/dist/lazy/{Component-pERcoc-p.js → Component-8EFliQ0d.js} +1 -1
  9. package/dist/lazy/{Component-dGHcvttq.js → Component-BPlF2k12.js} +1 -1
  10. package/dist/lazy/{Component-ve4hk872.js → Component-CStCN2HP.js} +1 -1
  11. package/dist/lazy/{Component-Bmi3chDp.js → Component-CYauP1bV.js} +1 -1
  12. package/dist/lazy/{Component-CNnzAdKu.js → Component-CeKOa6Bz.js} +1 -1
  13. package/dist/lazy/{Component-BH55essj.js → Component-D-OazJ2_.js} +1 -1
  14. package/dist/lazy/{CurdCard-ow_-omcd.js → CurdCard-DiQseHR9.js} +1 -1
  15. package/dist/lazy/{Custom-CZn8ejOS.js → Custom-BpfNDgDJ.js} +1 -1
  16. package/dist/lazy/{DatePicker-BSUPajyV.js → DatePicker-6LF5yDqr.js} +1 -1
  17. package/dist/lazy/{DragList-BYyUZwRM.js → DragList-BUsrSanp.js} +1 -1
  18. package/dist/lazy/{FilterSearch-BBqRSnxL.js → FilterSearch-P0EXTWR9.js} +1 -1
  19. package/dist/lazy/{FormList-DHqnxHA9.js → FormList-Cp3VQjzZ.js} +1 -1
  20. package/dist/lazy/{Grid-be0Zxgv4.js → Grid-BXW_3s9f.js} +1 -1
  21. package/dist/lazy/{InfiniteScroll-CFd8oSoF.js → InfiniteScroll-DGeT0Qpq.js} +1 -1
  22. package/dist/lazy/{Inline-BlAv9Sp0.js → Inline-C-sW448C.js} +1 -1
  23. package/dist/lazy/{JsonEdit-BwuOETyc.js → JsonEdit-C35KBJYl.js} +1 -1
  24. package/dist/lazy/{LogList-DcETb6ID.js → LogList-di2ZXzKO.js} +1 -1
  25. package/dist/lazy/{ObjGroup-DZfq7BxU.js → ObjGroup-BaGsxbl0.js} +1 -1
  26. package/dist/lazy/{OfferDetails-DnnGr_PN.js → OfferDetails-nNW-UJ9A.js} +1 -1
  27. package/dist/lazy/{Pagination-UXI6PzBY.js → Pagination-njo5Y8Ir.js} +1 -1
  28. package/dist/lazy/{Progress-4EQXhmR7.js → Progress-CZg60XDV.js} +1 -1
  29. package/dist/lazy/{Radio-DJh89jlw.js → Radio-Dcu_7Ozl.js} +2 -2
  30. package/dist/lazy/{SearchSelect-BVLLLLbw.js → SearchSelect-B9zLNPn-.js} +2 -2
  31. package/dist/lazy/{Select-7xsTaI4y.js → Select-CSW53Cr2.js} +2 -2
  32. package/dist/lazy/{Table-BT_uCotC.js → Table-CL0egZ9K.js} +3 -3
  33. package/dist/lazy/{Tabs-Di5hDLdo.js → Tabs-BzrVtk4N.js} +1 -1
  34. package/dist/lazy/{TextArea-Gg6JRUP_.js → TextArea-DGSj_3Zb.js} +1 -1
  35. package/dist/lazy/{Wrapper-BGmQi-En.js → Wrapper-BYP-jLBX.js} +1 -1
  36. package/dist/lazy/{index-DL02eQ0F.js → index-CPVEjLgv.js} +1772 -1751
  37. package/dist/lazy/{useSelect-dHZ7RST7.js → useSelect-DVD8BuUW.js} +1 -1
  38. package/dist/style.css +2 -2
  39. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
- (function(yt,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],A):(yt=typeof globalThis<"u"?globalThis:yt||self,A(yt.AsiaintLowcode={},yt.Vue,yt.ElementPlus))})(this,function(yt,A,Ht){"use strict";var pG=Object.defineProperty;var CG=(yt,A,Ht)=>A in yt?pG(yt,A,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):yt[A]=Ht;var Ct=(yt,A,Ht)=>CG(yt,typeof A!="symbol"?A+"":A,Ht);function mm(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const Em=mm(A);var vo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ba={exports:{}};/**
1
+ (function(yt,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],A):(yt=typeof globalThis<"u"?globalThis:yt||self,A(yt.AsiaintLowcode={},yt.Vue,yt.ElementPlus))})(this,function(yt,A,Ht){"use strict";var pG=Object.defineProperty;var CG=(yt,A,Ht)=>A in yt?pG(yt,A,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):yt[A]=Ht;var Bt=(yt,A,Ht)=>CG(yt,typeof A!="symbol"?A+"":A,Ht);function mm(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const Em=mm(A);var vo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ba={exports:{}};/**
2
2
  * @license
3
3
  * Lodash <https://lodash.com/>
4
4
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
5
5
  * Released under MIT license <https://lodash.com/license>
6
6
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7
7
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8
- */Ba.exports,function(n,e){(function(){var t,i="4.17.21",u=200,I="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",b="Invalid `variable` option passed into `_.template`",y="__lodash_hash_undefined__",w=500,M="__lodash_placeholder__",N=1,P=2,Y=4,G=1,K=2,D=1,E=2,L=4,_=8,v=16,B=32,p=64,d=128,l=256,g=512,s=30,h="...",C=800,a=16,r=1,m=2,Q=3,x=1/0,S=9007199254740991,T=17976931348623157e292,$=NaN,eA=4294967295,W=eA-1,J=eA>>>1,O=[["ary",d],["bind",D],["bindKey",E],["curry",_],["curryRight",v],["flip",g],["partial",B],["partialRight",p],["rearg",l]],q="[object Arguments]",k="[object Array]",V="[object AsyncFunction]",H="[object Boolean]",AA="[object Date]",sA="[object DOMException]",oA="[object Error]",dA="[object Function]",EA="[object GeneratorFunction]",uA="[object Map]",BA="[object Number]",j="[object Null]",tA="[object Object]",rA="[object Promise]",gA="[object Proxy]",z="[object RegExp]",X="[object Set]",iA="[object String]",cA="[object Symbol]",CA="[object Undefined]",vA="[object WeakMap]",GA="[object WeakSet]",JA="[object ArrayBuffer]",qA="[object DataView]",WA="[object Float32Array]",ue="[object Float64Array]",te="[object Int8Array]",LA="[object Int16Array]",SA="[object Int32Array]",ZA="[object Uint8Array]",Be="[object Uint8ClampedArray]",De="[object Uint16Array]",Se="[object Uint32Array]",YA=/\b__p \+= '';/g,$A=/\b(__p \+=) '' \+/g,XA=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,ce=/[&<>"']/g,Ee=RegExp(he.source),ke=RegExp(ce.source),wA=/<%-([\s\S]+?)%>/g,NA=/<%([\s\S]+?)%>/g,KA=/<%=([\s\S]+?)%>/g,oe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,be=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ge=/[\\^$.*+?()[\]{}|]/g,Me=RegExp(ge.source),tt=/^\s+/,lt=/\s/,MA=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bA=/\{\n\/\* \[wrapped with (.+)\] \*/,RA=/,? & /,zA=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,OA=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_e=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,pt=/^0b[01]+$/i,ze=/^\[object .+?Constructor\]$/,At=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,Pe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ot=/($^)/,Et=/['\n\r\u2028\u2029\\]/g,nt="\\ud800-\\udfff",Nn="\\u0300-\\u036f",Xt="\\ufe20-\\ufe2f",Vt="\\u20d0-\\u20ff",gn=Nn+Xt+Vt,wn="\\u2700-\\u27bf",St="a-z\\xdf-\\xf6\\xf8-\\xff",An="\\xac\\xb1\\xd7\\xf7",On="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",en="\\u2000-\\u206f",Ci=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bi="A-Z\\xc0-\\xd6\\xd8-\\xde",co="\\ufe0e\\ufe0f",mi=An+On+en+Ci,ti="['’]",Pi="["+nt+"]",go="["+mi+"]",ni="["+gn+"]",bn="\\d+",Hi="["+wn+"]",Jo="["+St+"]",uo="[^"+nt+mi+bn+wn+St+Bi+"]",Fn="\\ud83c[\\udffb-\\udfff]",ho="(?:"+ni+"|"+Fn+")",bs="[^"+nt+"]",Zo="(?:\\ud83c[\\udde6-\\uddff]){2}",Wo="[\\ud800-\\udbff][\\udc00-\\udfff]",ii="["+Bi+"]",ys="\\u200d",Ds="(?:"+Jo+"|"+uo+")",vs="(?:"+ii+"|"+uo+")",ks="(?:"+ti+"(?:d|ll|m|re|s|t|ve))?",_s="(?:"+ti+"(?:D|LL|M|RE|S|T|VE))?",Or=ho+"?",$r="["+co+"]?",sg="(?:"+ys+"(?:"+[bs,Zo,Wo].join("|")+")"+$r+Or+")*",zr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",lg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jr=$r+Or+sg,cg="(?:"+[Hi,Zo,Wo].join("|")+")"+Jr,jo="(?:"+[bs+ni+"?",ni,Zo,Wo,Pi].join("|")+")",gg=RegExp(ti,"g"),Ms=RegExp(ni,"g"),qo=RegExp(Fn+"(?="+Fn+")|"+jo+Jr,"g"),ug=RegExp([ii+"?"+Jo+"+"+ks+"(?="+[go,ii,"$"].join("|")+")",vs+"+"+_s+"(?="+[go,ii+Ds,"$"].join("|")+")",ii+"?"+Ds+"+"+ks,ii+"+"+_s,lg,zr,bn,cg].join("|"),"g"),xs=RegExp("["+ys+nt+gn+co+"]"),Ss=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],po=-1,rt={};rt[WA]=rt[ue]=rt[te]=rt[LA]=rt[SA]=rt[ZA]=rt[Be]=rt[De]=rt[Se]=!0,rt[q]=rt[k]=rt[JA]=rt[H]=rt[qA]=rt[AA]=rt[oA]=rt[dA]=rt[uA]=rt[BA]=rt[tA]=rt[z]=rt[X]=rt[iA]=rt[vA]=!1;var ct={};ct[q]=ct[k]=ct[JA]=ct[qA]=ct[H]=ct[AA]=ct[WA]=ct[ue]=ct[te]=ct[LA]=ct[SA]=ct[uA]=ct[BA]=ct[tA]=ct[z]=ct[X]=ct[iA]=ct[cA]=ct[ZA]=ct[Be]=ct[De]=ct[Se]=!0,ct[oA]=ct[dA]=ct[vA]=!1;var Zr={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ns={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},hg={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Wr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fs=parseFloat,Rs=parseInt,Xo=typeof vo=="object"&&vo&&vo.Object===Object&&vo,pg=typeof self=="object"&&self&&self.Object===Object&&self,Nt=Xo||pg||Function("return this")(),Rn=e&&!e.nodeType&&e,Ei=Rn&&!0&&n&&!n.nodeType&&n,Ls=Ei&&Ei.exports===Rn,jr=Ls&&Xo.process,tn=function(){try{var kA=Ei&&Ei.require&&Ei.require("util").types;return kA||jr&&jr.binding&&jr.binding("util")}catch{}}(),qr=tn&&tn.isArrayBuffer,Gt=tn&&tn.isDate,Gs=tn&&tn.isMap,Ps=tn&&tn.isRegExp,Hs=tn&&tn.isSet,Ks=tn&&tn.isTypedArray;function nn(kA,UA,HA){switch(HA.length){case 0:return kA.call(UA);case 1:return kA.call(UA,HA[0]);case 2:return kA.call(UA,HA[0],HA[1]);case 3:return kA.call(UA,HA[0],HA[1],HA[2])}return kA.apply(UA,HA)}function Cg(kA,UA,HA,VA){for(var Ce=-1,He=kA==null?0:kA.length;++Ce<He;){var Ke=kA[Ce];UA(VA,Ke,HA(Ke),kA)}return VA}function un(kA,UA){for(var HA=-1,VA=kA==null?0:kA.length;++HA<VA&&UA(kA[HA],HA,kA)!==!1;);return kA}function Bg(kA,UA){for(var HA=kA==null?0:kA.length;HA--&&UA(kA[HA],HA,kA)!==!1;);return kA}function Xr(kA,UA){for(var HA=-1,VA=kA==null?0:kA.length;++HA<VA;)if(!UA(kA[HA],HA,kA))return!1;return!0}function yn(kA,UA){for(var HA=-1,VA=kA==null?0:kA.length,Ce=0,He=[];++HA<VA;){var Ke=kA[HA];UA(Ke,HA,kA)&&(He[Ce++]=Ke)}return He}function Ln(kA,UA){var HA=kA==null?0:kA.length;return!!HA&&Ti(kA,UA,0)>-1}function Ki(kA,UA,HA){for(var VA=-1,Ce=kA==null?0:kA.length;++VA<Ce;)if(HA(UA,kA[VA]))return!0;return!1}function ht(kA,UA){for(var HA=-1,VA=kA==null?0:kA.length,Ce=Array(VA);++HA<VA;)Ce[HA]=UA(kA[HA],HA,kA);return Ce}function $n(kA,UA){for(var HA=-1,VA=UA.length,Ce=kA.length;++HA<VA;)kA[Ce+HA]=UA[HA];return kA}function Vo(kA,UA,HA,VA){var Ce=-1,He=kA==null?0:kA.length;for(VA&&He&&(HA=kA[++Ce]);++Ce<He;)HA=UA(HA,kA[Ce],Ce,kA);return HA}function Ts(kA,UA,HA,VA){var Ce=kA==null?0:kA.length;for(VA&&Ce&&(HA=kA[--Ce]);Ce--;)HA=UA(HA,kA[Ce],Ce,kA);return HA}function Qi(kA,UA){for(var HA=-1,VA=kA==null?0:kA.length;++HA<VA;)if(UA(kA[HA],HA,kA))return!0;return!1}var mg=Aa("length");function Eg(kA){return kA.split("")}function Qg(kA){return kA.match(zA)||[]}function Us(kA,UA,HA){var VA;return HA(kA,function(Ce,He,Ke){if(UA(Ce,He,Ke))return VA=He,!1}),VA}function Ar(kA,UA,HA,VA){for(var Ce=kA.length,He=HA+(VA?1:-1);VA?He--:++He<Ce;)if(UA(kA[He],He,kA))return He;return-1}function Ti(kA,UA,HA){return UA===UA?IA(kA,UA,HA):Ar(kA,Ys,HA)}function Vr(kA,UA,HA,VA){for(var Ce=HA-1,He=kA.length;++Ce<He;)if(VA(kA[Ce],UA))return Ce;return-1}function Ys(kA){return kA!==kA}function Co(kA,UA){var HA=kA==null?0:kA.length;return HA?er(kA,UA)/HA:$}function Aa(kA){return function(UA){return UA==null?t:UA[kA]}}function Bo(kA){return function(UA){return kA==null?t:kA[UA]}}function Os(kA,UA,HA,VA,Ce){return Ce(kA,function(He,Ke,Oe){HA=VA?(VA=!1,He):UA(HA,He,Ke,Oe)}),HA}function Ig(kA,UA){var HA=kA.length;for(kA.sort(UA);HA--;)kA[HA]=kA[HA].value;return kA}function er(kA,UA){for(var HA,VA=-1,Ce=kA.length;++VA<Ce;){var He=UA(kA[VA]);He!==t&&(HA=HA===t?He:HA+He)}return HA}function Ii(kA,UA){for(var HA=-1,VA=Array(kA);++HA<kA;)VA[HA]=UA(HA);return VA}function oi(kA,UA){return ht(UA,function(HA){return[HA,kA[HA]]})}function ea(kA){return kA&&kA.slice(0,PA(kA)+1).replace(tt,"")}function Tt(kA){return function(UA){return kA(UA)}}function ta(kA,UA){return ht(UA,function(HA){return kA[HA]})}function mo(kA,UA){return kA.has(UA)}function $s(kA,UA){for(var HA=-1,VA=kA.length;++HA<VA&&Ti(UA,kA[HA],0)>-1;);return HA}function zs(kA,UA){for(var HA=kA.length;HA--&&Ti(UA,kA[HA],0)>-1;);return HA}function fg(kA,UA){for(var HA=kA.length,VA=0;HA--;)kA[HA]===UA&&++VA;return VA}var wg=Bo(Zr),bg=Bo(Ns);function yg(kA){return"\\"+Wr[kA]}function Dg(kA,UA){return kA==null?t:kA[UA]}function Ui(kA){return xs.test(kA)}function R(kA){return Ss.test(kA)}function F(kA){for(var UA,HA=[];!(UA=kA.next()).done;)HA.push(UA.value);return HA}function Z(kA){var UA=-1,HA=Array(kA.size);return kA.forEach(function(VA,Ce){HA[++UA]=[Ce,VA]}),HA}function nA(kA,UA){return function(HA){return kA(UA(HA))}}function lA(kA,UA){for(var HA=-1,VA=kA.length,Ce=0,He=[];++HA<VA;){var Ke=kA[HA];(Ke===UA||Ke===M)&&(kA[HA]=M,He[Ce++]=HA)}return He}function hA(kA){var UA=-1,HA=Array(kA.size);return kA.forEach(function(VA){HA[++UA]=VA}),HA}function mA(kA){var UA=-1,HA=Array(kA.size);return kA.forEach(function(VA){HA[++UA]=[VA,VA]}),HA}function IA(kA,UA,HA){for(var VA=HA-1,Ce=kA.length;++VA<Ce;)if(kA[VA]===UA)return VA;return-1}function yA(kA,UA,HA){for(var VA=HA+1;VA--;)if(kA[VA]===UA)return VA;return VA}function xA(kA){return Ui(kA)?le(kA):mg(kA)}function DA(kA){return Ui(kA)?ae(kA):Eg(kA)}function PA(kA){for(var UA=kA.length;UA--&&lt.test(kA.charAt(UA)););return UA}var jA=Bo(hg);function le(kA){for(var UA=qo.lastIndex=0;qo.test(kA);)++UA;return UA}function ae(kA){return kA.match(qo)||[]}function de(kA){return kA.match(ug)||[]}var ye=function kA(UA){UA=UA==null?Nt:Qe.defaults(Nt.Object(),UA,Qe.pick(Nt,dg));var HA=UA.Array,VA=UA.Date,Ce=UA.Error,He=UA.Function,Ke=UA.Math,Oe=UA.Object,on=UA.RegExp,zn=UA.String,Ut=UA.TypeError,ri=HA.prototype,lS=He.prototype,tr=Oe.prototype,Js=UA["__core-js_shared__"],Zs=lS.toString,st=tr.hasOwnProperty,cS=0,vC=function(){var c=/[^.]+$/.exec(Js&&Js.keys&&Js.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Ws=tr.toString,gS=Zs.call(Oe),uS=Nt._,dS=on("^"+Zs.call(st).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),js=Ls?UA.Buffer:t,Yi=UA.Symbol,qs=UA.Uint8Array,kC=js?js.allocUnsafe:t,Xs=nA(Oe.getPrototypeOf,Oe),_C=Oe.create,MC=tr.propertyIsEnumerable,Vs=ri.splice,xC=Yi?Yi.isConcatSpreadable:t,na=Yi?Yi.iterator:t,Eo=Yi?Yi.toStringTag:t,Al=function(){try{var c=bo(Oe,"defineProperty");return c({},"",{}),c}catch{}}(),hS=UA.clearTimeout!==Nt.clearTimeout&&UA.clearTimeout,pS=VA&&VA.now!==Nt.Date.now&&VA.now,CS=UA.setTimeout!==Nt.setTimeout&&UA.setTimeout,el=Ke.ceil,tl=Ke.floor,vg=Oe.getOwnPropertySymbols,BS=js?js.isBuffer:t,SC=UA.isFinite,mS=ri.join,ES=nA(Oe.keys,Oe),Ft=Ke.max,$t=Ke.min,QS=VA.now,IS=UA.parseInt,NC=Ke.random,fS=ri.reverse,kg=bo(UA,"DataView"),ia=bo(UA,"Map"),_g=bo(UA,"Promise"),nr=bo(UA,"Set"),oa=bo(UA,"WeakMap"),ra=bo(Oe,"create"),nl=oa&&new oa,ir={},wS=yo(kg),bS=yo(ia),yS=yo(_g),DS=yo(nr),vS=yo(oa),il=Yi?Yi.prototype:t,aa=il?il.valueOf:t,FC=il?il.toString:t;function QA(c){if(bt(c)&&!Te(c)&&!(c instanceof Xe)){if(c instanceof Gn)return c;if(st.call(c,"__wrapped__"))return RB(c)}return new Gn(c)}var or=function(){function c(){}return function(f){if(!Qt(f))return{};if(_C)return _C(f);c.prototype=f;var U=new c;return c.prototype=t,U}}();function ol(){}function Gn(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=t}QA.templateSettings={escape:wA,evaluate:NA,interpolate:KA,variable:"",imports:{_:QA}},QA.prototype=ol.prototype,QA.prototype.constructor=QA,Gn.prototype=or(ol.prototype),Gn.prototype.constructor=Gn;function Xe(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=eA,this.__views__=[]}function kS(){var c=new Xe(this.__wrapped__);return c.__actions__=dn(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=dn(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=dn(this.__views__),c}function _S(){if(this.__filtered__){var c=new Xe(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function MS(){var c=this.__wrapped__.value(),f=this.__dir__,U=Te(c),aA=f<0,pA=U?c.length:0,fA=U4(0,pA,this.__views__),_A=fA.start,FA=fA.end,TA=FA-_A,Ae=aA?FA:_A-1,ee=this.__iteratees__,se=ee.length,we=0,ve=$t(TA,this.__takeCount__);if(!U||!aA&&pA==TA&&ve==TA)return iB(c,this.__actions__);var Fe=[];A:for(;TA--&&we<ve;){Ae+=f;for(var Je=-1,Re=c[Ae];++Je<se;){var We=ee[Je],Ve=We.iteratee,kn=We.type,sn=Ve(Re);if(kn==m)Re=sn;else if(!sn){if(kn==r)continue A;break A}}Fe[we++]=Re}return Fe}Xe.prototype=or(ol.prototype),Xe.prototype.constructor=Xe;function Qo(c){var f=-1,U=c==null?0:c.length;for(this.clear();++f<U;){var aA=c[f];this.set(aA[0],aA[1])}}function xS(){this.__data__=ra?ra(null):{},this.size=0}function SS(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}function NS(c){var f=this.__data__;if(ra){var U=f[c];return U===y?t:U}return st.call(f,c)?f[c]:t}function FS(c){var f=this.__data__;return ra?f[c]!==t:st.call(f,c)}function RS(c,f){var U=this.__data__;return this.size+=this.has(c)?0:1,U[c]=ra&&f===t?y:f,this}Qo.prototype.clear=xS,Qo.prototype.delete=SS,Qo.prototype.get=NS,Qo.prototype.has=FS,Qo.prototype.set=RS;function fi(c){var f=-1,U=c==null?0:c.length;for(this.clear();++f<U;){var aA=c[f];this.set(aA[0],aA[1])}}function LS(){this.__data__=[],this.size=0}function GS(c){var f=this.__data__,U=rl(f,c);if(U<0)return!1;var aA=f.length-1;return U==aA?f.pop():Vs.call(f,U,1),--this.size,!0}function PS(c){var f=this.__data__,U=rl(f,c);return U<0?t:f[U][1]}function HS(c){return rl(this.__data__,c)>-1}function KS(c,f){var U=this.__data__,aA=rl(U,c);return aA<0?(++this.size,U.push([c,f])):U[aA][1]=f,this}fi.prototype.clear=LS,fi.prototype.delete=GS,fi.prototype.get=PS,fi.prototype.has=HS,fi.prototype.set=KS;function wi(c){var f=-1,U=c==null?0:c.length;for(this.clear();++f<U;){var aA=c[f];this.set(aA[0],aA[1])}}function TS(){this.size=0,this.__data__={hash:new Qo,map:new(ia||fi),string:new Qo}}function US(c){var f=ml(this,c).delete(c);return this.size-=f?1:0,f}function YS(c){return ml(this,c).get(c)}function OS(c){return ml(this,c).has(c)}function $S(c,f){var U=ml(this,c),aA=U.size;return U.set(c,f),this.size+=U.size==aA?0:1,this}wi.prototype.clear=TS,wi.prototype.delete=US,wi.prototype.get=YS,wi.prototype.has=OS,wi.prototype.set=$S;function Io(c){var f=-1,U=c==null?0:c.length;for(this.__data__=new wi;++f<U;)this.add(c[f])}function zS(c){return this.__data__.set(c,y),this}function JS(c){return this.__data__.has(c)}Io.prototype.add=Io.prototype.push=zS,Io.prototype.has=JS;function Jn(c){var f=this.__data__=new fi(c);this.size=f.size}function ZS(){this.__data__=new fi,this.size=0}function WS(c){var f=this.__data__,U=f.delete(c);return this.size=f.size,U}function jS(c){return this.__data__.get(c)}function qS(c){return this.__data__.has(c)}function XS(c,f){var U=this.__data__;if(U instanceof fi){var aA=U.__data__;if(!ia||aA.length<u-1)return aA.push([c,f]),this.size=++U.size,this;U=this.__data__=new wi(aA)}return U.set(c,f),this.size=U.size,this}Jn.prototype.clear=ZS,Jn.prototype.delete=WS,Jn.prototype.get=jS,Jn.prototype.has=qS,Jn.prototype.set=XS;function RC(c,f){var U=Te(c),aA=!U&&Do(c),pA=!U&&!aA&&Zi(c),fA=!U&&!aA&&!pA&&lr(c),_A=U||aA||pA||fA,FA=_A?Ii(c.length,zn):[],TA=FA.length;for(var Ae in c)(f||st.call(c,Ae))&&!(_A&&(Ae=="length"||pA&&(Ae=="offset"||Ae=="parent")||fA&&(Ae=="buffer"||Ae=="byteLength"||Ae=="byteOffset")||vi(Ae,TA)))&&FA.push(Ae);return FA}function LC(c){var f=c.length;return f?c[Kg(0,f-1)]:t}function VS(c,f){return El(dn(c),fo(f,0,c.length))}function A4(c){return El(dn(c))}function Mg(c,f,U){(U!==t&&!Zn(c[f],U)||U===t&&!(f in c))&&bi(c,f,U)}function sa(c,f,U){var aA=c[f];(!(st.call(c,f)&&Zn(aA,U))||U===t&&!(f in c))&&bi(c,f,U)}function rl(c,f){for(var U=c.length;U--;)if(Zn(c[U][0],f))return U;return-1}function e4(c,f,U,aA){return Oi(c,function(pA,fA,_A){f(aA,pA,U(pA),_A)}),aA}function GC(c,f){return c&&si(f,Pt(f),c)}function t4(c,f){return c&&si(f,pn(f),c)}function bi(c,f,U){f=="__proto__"&&Al?Al(c,f,{configurable:!0,enumerable:!0,value:U,writable:!0}):c[f]=U}function xg(c,f){for(var U=-1,aA=f.length,pA=HA(aA),fA=c==null;++U<aA;)pA[U]=fA?t:gu(c,f[U]);return pA}function fo(c,f,U){return c===c&&(U!==t&&(c=c<=U?c:U),f!==t&&(c=c>=f?c:f)),c}function Pn(c,f,U,aA,pA,fA){var _A,FA=f&N,TA=f&P,Ae=f&Y;if(U&&(_A=pA?U(c,aA,pA,fA):U(c)),_A!==t)return _A;if(!Qt(c))return c;var ee=Te(c);if(ee){if(_A=O4(c),!FA)return dn(c,_A)}else{var se=zt(c),we=se==dA||se==EA;if(Zi(c))return aB(c,FA);if(se==tA||se==q||we&&!pA){if(_A=TA||we?{}:DB(c),!FA)return TA?N4(c,t4(_A,c)):S4(c,GC(_A,c))}else{if(!ct[se])return pA?c:{};_A=$4(c,se,FA)}}fA||(fA=new Jn);var ve=fA.get(c);if(ve)return ve;fA.set(c,_A),em(c)?c.forEach(function(Re){_A.add(Pn(Re,f,U,Re,c,fA))}):VB(c)&&c.forEach(function(Re,We){_A.set(We,Pn(Re,f,U,We,c,fA))});var Fe=Ae?TA?qg:jg:TA?pn:Pt,Je=ee?t:Fe(c);return un(Je||c,function(Re,We){Je&&(We=Re,Re=c[We]),sa(_A,We,Pn(Re,f,U,We,c,fA))}),_A}function n4(c){var f=Pt(c);return function(U){return PC(U,c,f)}}function PC(c,f,U){var aA=U.length;if(c==null)return!aA;for(c=Oe(c);aA--;){var pA=U[aA],fA=f[pA],_A=c[pA];if(_A===t&&!(pA in c)||!fA(_A))return!1}return!0}function HC(c,f,U){if(typeof c!="function")throw new Ut(o);return pa(function(){c.apply(t,U)},f)}function la(c,f,U,aA){var pA=-1,fA=Ln,_A=!0,FA=c.length,TA=[],Ae=f.length;if(!FA)return TA;U&&(f=ht(f,Tt(U))),aA?(fA=Ki,_A=!1):f.length>=u&&(fA=mo,_A=!1,f=new Io(f));A:for(;++pA<FA;){var ee=c[pA],se=U==null?ee:U(ee);if(ee=aA||ee!==0?ee:0,_A&&se===se){for(var we=Ae;we--;)if(f[we]===se)continue A;TA.push(ee)}else fA(f,se,aA)||TA.push(ee)}return TA}var Oi=uB(ai),KC=uB(Ng,!0);function i4(c,f){var U=!0;return Oi(c,function(aA,pA,fA){return U=!!f(aA,pA,fA),U}),U}function al(c,f,U){for(var aA=-1,pA=c.length;++aA<pA;){var fA=c[aA],_A=f(fA);if(_A!=null&&(FA===t?_A===_A&&!vn(_A):U(_A,FA)))var FA=_A,TA=fA}return TA}function o4(c,f,U,aA){var pA=c.length;for(U=$e(U),U<0&&(U=-U>pA?0:pA+U),aA=aA===t||aA>pA?pA:$e(aA),aA<0&&(aA+=pA),aA=U>aA?0:nm(aA);U<aA;)c[U++]=f;return c}function TC(c,f){var U=[];return Oi(c,function(aA,pA,fA){f(aA,pA,fA)&&U.push(aA)}),U}function Yt(c,f,U,aA,pA){var fA=-1,_A=c.length;for(U||(U=J4),pA||(pA=[]);++fA<_A;){var FA=c[fA];f>0&&U(FA)?f>1?Yt(FA,f-1,U,aA,pA):$n(pA,FA):aA||(pA[pA.length]=FA)}return pA}var Sg=dB(),UC=dB(!0);function ai(c,f){return c&&Sg(c,f,Pt)}function Ng(c,f){return c&&UC(c,f,Pt)}function sl(c,f){return yn(f,function(U){return ki(c[U])})}function wo(c,f){f=zi(f,c);for(var U=0,aA=f.length;c!=null&&U<aA;)c=c[li(f[U++])];return U&&U==aA?c:t}function YC(c,f,U){var aA=f(c);return Te(c)?aA:$n(aA,U(c))}function rn(c){return c==null?c===t?CA:j:Eo&&Eo in Oe(c)?T4(c):AN(c)}function Fg(c,f){return c>f}function r4(c,f){return c!=null&&st.call(c,f)}function a4(c,f){return c!=null&&f in Oe(c)}function s4(c,f,U){return c>=$t(f,U)&&c<Ft(f,U)}function Rg(c,f,U){for(var aA=U?Ki:Ln,pA=c[0].length,fA=c.length,_A=fA,FA=HA(fA),TA=1/0,Ae=[];_A--;){var ee=c[_A];_A&&f&&(ee=ht(ee,Tt(f))),TA=$t(ee.length,TA),FA[_A]=!U&&(f||pA>=120&&ee.length>=120)?new Io(_A&&ee):t}ee=c[0];var se=-1,we=FA[0];A:for(;++se<pA&&Ae.length<TA;){var ve=ee[se],Fe=f?f(ve):ve;if(ve=U||ve!==0?ve:0,!(we?mo(we,Fe):aA(Ae,Fe,U))){for(_A=fA;--_A;){var Je=FA[_A];if(!(Je?mo(Je,Fe):aA(c[_A],Fe,U)))continue A}we&&we.push(Fe),Ae.push(ve)}}return Ae}function l4(c,f,U,aA){return ai(c,function(pA,fA,_A){f(aA,U(pA),fA,_A)}),aA}function ca(c,f,U){f=zi(f,c),c=MB(c,f);var aA=c==null?c:c[li(Kn(f))];return aA==null?t:nn(aA,c,U)}function OC(c){return bt(c)&&rn(c)==q}function c4(c){return bt(c)&&rn(c)==JA}function g4(c){return bt(c)&&rn(c)==AA}function ga(c,f,U,aA,pA){return c===f?!0:c==null||f==null||!bt(c)&&!bt(f)?c!==c&&f!==f:u4(c,f,U,aA,ga,pA)}function u4(c,f,U,aA,pA,fA){var _A=Te(c),FA=Te(f),TA=_A?k:zt(c),Ae=FA?k:zt(f);TA=TA==q?tA:TA,Ae=Ae==q?tA:Ae;var ee=TA==tA,se=Ae==tA,we=TA==Ae;if(we&&Zi(c)){if(!Zi(f))return!1;_A=!0,ee=!1}if(we&&!ee)return fA||(fA=new Jn),_A||lr(c)?wB(c,f,U,aA,pA,fA):H4(c,f,TA,U,aA,pA,fA);if(!(U&G)){var ve=ee&&st.call(c,"__wrapped__"),Fe=se&&st.call(f,"__wrapped__");if(ve||Fe){var Je=ve?c.value():c,Re=Fe?f.value():f;return fA||(fA=new Jn),pA(Je,Re,U,aA,fA)}}return we?(fA||(fA=new Jn),K4(c,f,U,aA,pA,fA)):!1}function d4(c){return bt(c)&&zt(c)==uA}function Lg(c,f,U,aA){var pA=U.length,fA=pA,_A=!aA;if(c==null)return!fA;for(c=Oe(c);pA--;){var FA=U[pA];if(_A&&FA[2]?FA[1]!==c[FA[0]]:!(FA[0]in c))return!1}for(;++pA<fA;){FA=U[pA];var TA=FA[0],Ae=c[TA],ee=FA[1];if(_A&&FA[2]){if(Ae===t&&!(TA in c))return!1}else{var se=new Jn;if(aA)var we=aA(Ae,ee,TA,c,f,se);if(!(we===t?ga(ee,Ae,G|K,aA,se):we))return!1}}return!0}function $C(c){if(!Qt(c)||W4(c))return!1;var f=ki(c)?dS:ze;return f.test(yo(c))}function h4(c){return bt(c)&&rn(c)==z}function p4(c){return bt(c)&&zt(c)==X}function C4(c){return bt(c)&&yl(c.length)&&!!rt[rn(c)]}function zC(c){return typeof c=="function"?c:c==null?Cn:typeof c=="object"?Te(c)?WC(c[0],c[1]):ZC(c):hm(c)}function Gg(c){if(!ha(c))return ES(c);var f=[];for(var U in Oe(c))st.call(c,U)&&U!="constructor"&&f.push(U);return f}function B4(c){if(!Qt(c))return V4(c);var f=ha(c),U=[];for(var aA in c)aA=="constructor"&&(f||!st.call(c,aA))||U.push(aA);return U}function Pg(c,f){return c<f}function JC(c,f){var U=-1,aA=hn(c)?HA(c.length):[];return Oi(c,function(pA,fA,_A){aA[++U]=f(pA,fA,_A)}),aA}function ZC(c){var f=Vg(c);return f.length==1&&f[0][2]?kB(f[0][0],f[0][1]):function(U){return U===c||Lg(U,c,f)}}function WC(c,f){return eu(c)&&vB(f)?kB(li(c),f):function(U){var aA=gu(U,c);return aA===t&&aA===f?uu(U,c):ga(f,aA,G|K)}}function ll(c,f,U,aA,pA){c!==f&&Sg(f,function(fA,_A){if(pA||(pA=new Jn),Qt(fA))m4(c,f,_A,U,ll,aA,pA);else{var FA=aA?aA(nu(c,_A),fA,_A+"",c,f,pA):t;FA===t&&(FA=fA),Mg(c,_A,FA)}},pn)}function m4(c,f,U,aA,pA,fA,_A){var FA=nu(c,U),TA=nu(f,U),Ae=_A.get(TA);if(Ae){Mg(c,U,Ae);return}var ee=fA?fA(FA,TA,U+"",c,f,_A):t,se=ee===t;if(se){var we=Te(TA),ve=!we&&Zi(TA),Fe=!we&&!ve&&lr(TA);ee=TA,we||ve||Fe?Te(FA)?ee=FA:Dt(FA)?ee=dn(FA):ve?(se=!1,ee=aB(TA,!0)):Fe?(se=!1,ee=sB(TA,!0)):ee=[]:Ca(TA)||Do(TA)?(ee=FA,Do(FA)?ee=im(FA):(!Qt(FA)||ki(FA))&&(ee=DB(TA))):se=!1}se&&(_A.set(TA,ee),pA(ee,TA,aA,fA,_A),_A.delete(TA)),Mg(c,U,ee)}function jC(c,f){var U=c.length;if(U)return f+=f<0?U:0,vi(f,U)?c[f]:t}function qC(c,f,U){f.length?f=ht(f,function(fA){return Te(fA)?function(_A){return wo(_A,fA.length===1?fA[0]:fA)}:fA}):f=[Cn];var aA=-1;f=ht(f,Tt(Ne()));var pA=JC(c,function(fA,_A,FA){var TA=ht(f,function(Ae){return Ae(fA)});return{criteria:TA,index:++aA,value:fA}});return Ig(pA,function(fA,_A){return x4(fA,_A,U)})}function E4(c,f){return XC(c,f,function(U,aA){return uu(c,aA)})}function XC(c,f,U){for(var aA=-1,pA=f.length,fA={};++aA<pA;){var _A=f[aA],FA=wo(c,_A);U(FA,_A)&&ua(fA,zi(_A,c),FA)}return fA}function Q4(c){return function(f){return wo(f,c)}}function Hg(c,f,U,aA){var pA=aA?Vr:Ti,fA=-1,_A=f.length,FA=c;for(c===f&&(f=dn(f)),U&&(FA=ht(c,Tt(U)));++fA<_A;)for(var TA=0,Ae=f[fA],ee=U?U(Ae):Ae;(TA=pA(FA,ee,TA,aA))>-1;)FA!==c&&Vs.call(FA,TA,1),Vs.call(c,TA,1);return c}function VC(c,f){for(var U=c?f.length:0,aA=U-1;U--;){var pA=f[U];if(U==aA||pA!==fA){var fA=pA;vi(pA)?Vs.call(c,pA,1):Yg(c,pA)}}return c}function Kg(c,f){return c+tl(NC()*(f-c+1))}function I4(c,f,U,aA){for(var pA=-1,fA=Ft(el((f-c)/(U||1)),0),_A=HA(fA);fA--;)_A[aA?fA:++pA]=c,c+=U;return _A}function Tg(c,f){var U="";if(!c||f<1||f>S)return U;do f%2&&(U+=c),f=tl(f/2),f&&(c+=c);while(f);return U}function Ze(c,f){return iu(_B(c,f,Cn),c+"")}function f4(c){return LC(cr(c))}function w4(c,f){var U=cr(c);return El(U,fo(f,0,U.length))}function ua(c,f,U,aA){if(!Qt(c))return c;f=zi(f,c);for(var pA=-1,fA=f.length,_A=fA-1,FA=c;FA!=null&&++pA<fA;){var TA=li(f[pA]),Ae=U;if(TA==="__proto__"||TA==="constructor"||TA==="prototype")return c;if(pA!=_A){var ee=FA[TA];Ae=aA?aA(ee,TA,FA):t,Ae===t&&(Ae=Qt(ee)?ee:vi(f[pA+1])?[]:{})}sa(FA,TA,Ae),FA=FA[TA]}return c}var AB=nl?function(c,f){return nl.set(c,f),c}:Cn,b4=Al?function(c,f){return Al(c,"toString",{configurable:!0,enumerable:!1,value:hu(f),writable:!0})}:Cn;function y4(c){return El(cr(c))}function Hn(c,f,U){var aA=-1,pA=c.length;f<0&&(f=-f>pA?0:pA+f),U=U>pA?pA:U,U<0&&(U+=pA),pA=f>U?0:U-f>>>0,f>>>=0;for(var fA=HA(pA);++aA<pA;)fA[aA]=c[aA+f];return fA}function D4(c,f){var U;return Oi(c,function(aA,pA,fA){return U=f(aA,pA,fA),!U}),!!U}function cl(c,f,U){var aA=0,pA=c==null?aA:c.length;if(typeof f=="number"&&f===f&&pA<=J){for(;aA<pA;){var fA=aA+pA>>>1,_A=c[fA];_A!==null&&!vn(_A)&&(U?_A<=f:_A<f)?aA=fA+1:pA=fA}return pA}return Ug(c,f,Cn,U)}function Ug(c,f,U,aA){var pA=0,fA=c==null?0:c.length;if(fA===0)return 0;f=U(f);for(var _A=f!==f,FA=f===null,TA=vn(f),Ae=f===t;pA<fA;){var ee=tl((pA+fA)/2),se=U(c[ee]),we=se!==t,ve=se===null,Fe=se===se,Je=vn(se);if(_A)var Re=aA||Fe;else Ae?Re=Fe&&(aA||we):FA?Re=Fe&&we&&(aA||!ve):TA?Re=Fe&&we&&!ve&&(aA||!Je):ve||Je?Re=!1:Re=aA?se<=f:se<f;Re?pA=ee+1:fA=ee}return $t(fA,W)}function eB(c,f){for(var U=-1,aA=c.length,pA=0,fA=[];++U<aA;){var _A=c[U],FA=f?f(_A):_A;if(!U||!Zn(FA,TA)){var TA=FA;fA[pA++]=_A===0?0:_A}}return fA}function tB(c){return typeof c=="number"?c:vn(c)?$:+c}function Dn(c){if(typeof c=="string")return c;if(Te(c))return ht(c,Dn)+"";if(vn(c))return FC?FC.call(c):"";var f=c+"";return f=="0"&&1/c==-x?"-0":f}function $i(c,f,U){var aA=-1,pA=Ln,fA=c.length,_A=!0,FA=[],TA=FA;if(U)_A=!1,pA=Ki;else if(fA>=u){var Ae=f?null:G4(c);if(Ae)return hA(Ae);_A=!1,pA=mo,TA=new Io}else TA=f?[]:FA;A:for(;++aA<fA;){var ee=c[aA],se=f?f(ee):ee;if(ee=U||ee!==0?ee:0,_A&&se===se){for(var we=TA.length;we--;)if(TA[we]===se)continue A;f&&TA.push(se),FA.push(ee)}else pA(TA,se,U)||(TA!==FA&&TA.push(se),FA.push(ee))}return FA}function Yg(c,f){return f=zi(f,c),c=MB(c,f),c==null||delete c[li(Kn(f))]}function nB(c,f,U,aA){return ua(c,f,U(wo(c,f)),aA)}function gl(c,f,U,aA){for(var pA=c.length,fA=aA?pA:-1;(aA?fA--:++fA<pA)&&f(c[fA],fA,c););return U?Hn(c,aA?0:fA,aA?fA+1:pA):Hn(c,aA?fA+1:0,aA?pA:fA)}function iB(c,f){var U=c;return U instanceof Xe&&(U=U.value()),Vo(f,function(aA,pA){return pA.func.apply(pA.thisArg,$n([aA],pA.args))},U)}function Og(c,f,U){var aA=c.length;if(aA<2)return aA?$i(c[0]):[];for(var pA=-1,fA=HA(aA);++pA<aA;)for(var _A=c[pA],FA=-1;++FA<aA;)FA!=pA&&(fA[pA]=la(fA[pA]||_A,c[FA],f,U));return $i(Yt(fA,1),f,U)}function oB(c,f,U){for(var aA=-1,pA=c.length,fA=f.length,_A={};++aA<pA;){var FA=aA<fA?f[aA]:t;U(_A,c[aA],FA)}return _A}function $g(c){return Dt(c)?c:[]}function zg(c){return typeof c=="function"?c:Cn}function zi(c,f){return Te(c)?c:eu(c,f)?[c]:FB(at(c))}var v4=Ze;function Ji(c,f,U){var aA=c.length;return U=U===t?aA:U,!f&&U>=aA?c:Hn(c,f,U)}var rB=hS||function(c){return Nt.clearTimeout(c)};function aB(c,f){if(f)return c.slice();var U=c.length,aA=kC?kC(U):new c.constructor(U);return c.copy(aA),aA}function Jg(c){var f=new c.constructor(c.byteLength);return new qs(f).set(new qs(c)),f}function k4(c,f){var U=f?Jg(c.buffer):c.buffer;return new c.constructor(U,c.byteOffset,c.byteLength)}function _4(c){var f=new c.constructor(c.source,_e.exec(c));return f.lastIndex=c.lastIndex,f}function M4(c){return aa?Oe(aa.call(c)):{}}function sB(c,f){var U=f?Jg(c.buffer):c.buffer;return new c.constructor(U,c.byteOffset,c.length)}function lB(c,f){if(c!==f){var U=c!==t,aA=c===null,pA=c===c,fA=vn(c),_A=f!==t,FA=f===null,TA=f===f,Ae=vn(f);if(!FA&&!Ae&&!fA&&c>f||fA&&_A&&TA&&!FA&&!Ae||aA&&_A&&TA||!U&&TA||!pA)return 1;if(!aA&&!fA&&!Ae&&c<f||Ae&&U&&pA&&!aA&&!fA||FA&&U&&pA||!_A&&pA||!TA)return-1}return 0}function x4(c,f,U){for(var aA=-1,pA=c.criteria,fA=f.criteria,_A=pA.length,FA=U.length;++aA<_A;){var TA=lB(pA[aA],fA[aA]);if(TA){if(aA>=FA)return TA;var Ae=U[aA];return TA*(Ae=="desc"?-1:1)}}return c.index-f.index}function cB(c,f,U,aA){for(var pA=-1,fA=c.length,_A=U.length,FA=-1,TA=f.length,Ae=Ft(fA-_A,0),ee=HA(TA+Ae),se=!aA;++FA<TA;)ee[FA]=f[FA];for(;++pA<_A;)(se||pA<fA)&&(ee[U[pA]]=c[pA]);for(;Ae--;)ee[FA++]=c[pA++];return ee}function gB(c,f,U,aA){for(var pA=-1,fA=c.length,_A=-1,FA=U.length,TA=-1,Ae=f.length,ee=Ft(fA-FA,0),se=HA(ee+Ae),we=!aA;++pA<ee;)se[pA]=c[pA];for(var ve=pA;++TA<Ae;)se[ve+TA]=f[TA];for(;++_A<FA;)(we||pA<fA)&&(se[ve+U[_A]]=c[pA++]);return se}function dn(c,f){var U=-1,aA=c.length;for(f||(f=HA(aA));++U<aA;)f[U]=c[U];return f}function si(c,f,U,aA){var pA=!U;U||(U={});for(var fA=-1,_A=f.length;++fA<_A;){var FA=f[fA],TA=aA?aA(U[FA],c[FA],FA,U,c):t;TA===t&&(TA=c[FA]),pA?bi(U,FA,TA):sa(U,FA,TA)}return U}function S4(c,f){return si(c,Au(c),f)}function N4(c,f){return si(c,bB(c),f)}function ul(c,f){return function(U,aA){var pA=Te(U)?Cg:e4,fA=f?f():{};return pA(U,c,Ne(aA,2),fA)}}function rr(c){return Ze(function(f,U){var aA=-1,pA=U.length,fA=pA>1?U[pA-1]:t,_A=pA>2?U[2]:t;for(fA=c.length>3&&typeof fA=="function"?(pA--,fA):t,_A&&an(U[0],U[1],_A)&&(fA=pA<3?t:fA,pA=1),f=Oe(f);++aA<pA;){var FA=U[aA];FA&&c(f,FA,aA,fA)}return f})}function uB(c,f){return function(U,aA){if(U==null)return U;if(!hn(U))return c(U,aA);for(var pA=U.length,fA=f?pA:-1,_A=Oe(U);(f?fA--:++fA<pA)&&aA(_A[fA],fA,_A)!==!1;);return U}}function dB(c){return function(f,U,aA){for(var pA=-1,fA=Oe(f),_A=aA(f),FA=_A.length;FA--;){var TA=_A[c?FA:++pA];if(U(fA[TA],TA,fA)===!1)break}return f}}function F4(c,f,U){var aA=f&D,pA=da(c);function fA(){var _A=this&&this!==Nt&&this instanceof fA?pA:c;return _A.apply(aA?U:this,arguments)}return fA}function hB(c){return function(f){f=at(f);var U=Ui(f)?DA(f):t,aA=U?U[0]:f.charAt(0),pA=U?Ji(U,1).join(""):f.slice(1);return aA[c]()+pA}}function ar(c){return function(f){return Vo(um(gm(f).replace(gg,"")),c,"")}}function da(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var U=or(c.prototype),aA=c.apply(U,f);return Qt(aA)?aA:U}}function R4(c,f,U){var aA=da(c);function pA(){for(var fA=arguments.length,_A=HA(fA),FA=fA,TA=sr(pA);FA--;)_A[FA]=arguments[FA];var Ae=fA<3&&_A[0]!==TA&&_A[fA-1]!==TA?[]:lA(_A,TA);if(fA-=Ae.length,fA<U)return EB(c,f,dl,pA.placeholder,t,_A,Ae,t,t,U-fA);var ee=this&&this!==Nt&&this instanceof pA?aA:c;return nn(ee,this,_A)}return pA}function pB(c){return function(f,U,aA){var pA=Oe(f);if(!hn(f)){var fA=Ne(U,3);f=Pt(f),U=function(FA){return fA(pA[FA],FA,pA)}}var _A=c(f,U,aA);return _A>-1?pA[fA?f[_A]:_A]:t}}function CB(c){return Di(function(f){var U=f.length,aA=U,pA=Gn.prototype.thru;for(c&&f.reverse();aA--;){var fA=f[aA];if(typeof fA!="function")throw new Ut(o);if(pA&&!_A&&Bl(fA)=="wrapper")var _A=new Gn([],!0)}for(aA=_A?aA:U;++aA<U;){fA=f[aA];var FA=Bl(fA),TA=FA=="wrapper"?Xg(fA):t;TA&&tu(TA[0])&&TA[1]==(d|_|B|l)&&!TA[4].length&&TA[9]==1?_A=_A[Bl(TA[0])].apply(_A,TA[3]):_A=fA.length==1&&tu(fA)?_A[FA]():_A.thru(fA)}return function(){var Ae=arguments,ee=Ae[0];if(_A&&Ae.length==1&&Te(ee))return _A.plant(ee).value();for(var se=0,we=U?f[se].apply(this,Ae):ee;++se<U;)we=f[se].call(this,we);return we}})}function dl(c,f,U,aA,pA,fA,_A,FA,TA,Ae){var ee=f&d,se=f&D,we=f&E,ve=f&(_|v),Fe=f&g,Je=we?t:da(c);function Re(){for(var We=arguments.length,Ve=HA(We),kn=We;kn--;)Ve[kn]=arguments[kn];if(ve)var sn=sr(Re),_n=fg(Ve,sn);if(aA&&(Ve=cB(Ve,aA,pA,ve)),fA&&(Ve=gB(Ve,fA,_A,ve)),We-=_n,ve&&We<Ae){var vt=lA(Ve,sn);return EB(c,f,dl,Re.placeholder,U,Ve,vt,FA,TA,Ae-We)}var Wn=se?U:this,Mi=we?Wn[c]:c;return We=Ve.length,FA?Ve=eN(Ve,FA):Fe&&We>1&&Ve.reverse(),ee&&TA<We&&(Ve.length=TA),this&&this!==Nt&&this instanceof Re&&(Mi=Je||da(Mi)),Mi.apply(Wn,Ve)}return Re}function BB(c,f){return function(U,aA){return l4(U,c,f(aA),{})}}function hl(c,f){return function(U,aA){var pA;if(U===t&&aA===t)return f;if(U!==t&&(pA=U),aA!==t){if(pA===t)return aA;typeof U=="string"||typeof aA=="string"?(U=Dn(U),aA=Dn(aA)):(U=tB(U),aA=tB(aA)),pA=c(U,aA)}return pA}}function Zg(c){return Di(function(f){return f=ht(f,Tt(Ne())),Ze(function(U){var aA=this;return c(f,function(pA){return nn(pA,aA,U)})})})}function pl(c,f){f=f===t?" ":Dn(f);var U=f.length;if(U<2)return U?Tg(f,c):f;var aA=Tg(f,el(c/xA(f)));return Ui(f)?Ji(DA(aA),0,c).join(""):aA.slice(0,c)}function L4(c,f,U,aA){var pA=f&D,fA=da(c);function _A(){for(var FA=-1,TA=arguments.length,Ae=-1,ee=aA.length,se=HA(ee+TA),we=this&&this!==Nt&&this instanceof _A?fA:c;++Ae<ee;)se[Ae]=aA[Ae];for(;TA--;)se[Ae++]=arguments[++FA];return nn(we,pA?U:this,se)}return _A}function mB(c){return function(f,U,aA){return aA&&typeof aA!="number"&&an(f,U,aA)&&(U=aA=t),f=_i(f),U===t?(U=f,f=0):U=_i(U),aA=aA===t?f<U?1:-1:_i(aA),I4(f,U,aA,c)}}function Cl(c){return function(f,U){return typeof f=="string"&&typeof U=="string"||(f=Tn(f),U=Tn(U)),c(f,U)}}function EB(c,f,U,aA,pA,fA,_A,FA,TA,Ae){var ee=f&_,se=ee?_A:t,we=ee?t:_A,ve=ee?fA:t,Fe=ee?t:fA;f|=ee?B:p,f&=~(ee?p:B),f&L||(f&=~(D|E));var Je=[c,f,pA,ve,se,Fe,we,FA,TA,Ae],Re=U.apply(t,Je);return tu(c)&&xB(Re,Je),Re.placeholder=aA,SB(Re,c,f)}function Wg(c){var f=Ke[c];return function(U,aA){if(U=Tn(U),aA=aA==null?0:$t($e(aA),292),aA&&SC(U)){var pA=(at(U)+"e").split("e"),fA=f(pA[0]+"e"+(+pA[1]+aA));return pA=(at(fA)+"e").split("e"),+(pA[0]+"e"+(+pA[1]-aA))}return f(U)}}var G4=nr&&1/hA(new nr([,-0]))[1]==x?function(c){return new nr(c)}:Bu;function QB(c){return function(f){var U=zt(f);return U==uA?Z(f):U==X?mA(f):oi(f,c(f))}}function yi(c,f,U,aA,pA,fA,_A,FA){var TA=f&E;if(!TA&&typeof c!="function")throw new Ut(o);var Ae=aA?aA.length:0;if(Ae||(f&=~(B|p),aA=pA=t),_A=_A===t?_A:Ft($e(_A),0),FA=FA===t?FA:$e(FA),Ae-=pA?pA.length:0,f&p){var ee=aA,se=pA;aA=pA=t}var we=TA?t:Xg(c),ve=[c,f,U,aA,pA,ee,se,fA,_A,FA];if(we&&X4(ve,we),c=ve[0],f=ve[1],U=ve[2],aA=ve[3],pA=ve[4],FA=ve[9]=ve[9]===t?TA?0:c.length:Ft(ve[9]-Ae,0),!FA&&f&(_|v)&&(f&=~(_|v)),!f||f==D)var Fe=F4(c,f,U);else f==_||f==v?Fe=R4(c,f,FA):(f==B||f==(D|B))&&!pA.length?Fe=L4(c,f,U,aA):Fe=dl.apply(t,ve);var Je=we?AB:xB;return SB(Je(Fe,ve),c,f)}function IB(c,f,U,aA){return c===t||Zn(c,tr[U])&&!st.call(aA,U)?f:c}function fB(c,f,U,aA,pA,fA){return Qt(c)&&Qt(f)&&(fA.set(f,c),ll(c,f,t,fB,fA),fA.delete(f)),c}function P4(c){return Ca(c)?t:c}function wB(c,f,U,aA,pA,fA){var _A=U&G,FA=c.length,TA=f.length;if(FA!=TA&&!(_A&&TA>FA))return!1;var Ae=fA.get(c),ee=fA.get(f);if(Ae&&ee)return Ae==f&&ee==c;var se=-1,we=!0,ve=U&K?new Io:t;for(fA.set(c,f),fA.set(f,c);++se<FA;){var Fe=c[se],Je=f[se];if(aA)var Re=_A?aA(Je,Fe,se,f,c,fA):aA(Fe,Je,se,c,f,fA);if(Re!==t){if(Re)continue;we=!1;break}if(ve){if(!Qi(f,function(We,Ve){if(!mo(ve,Ve)&&(Fe===We||pA(Fe,We,U,aA,fA)))return ve.push(Ve)})){we=!1;break}}else if(!(Fe===Je||pA(Fe,Je,U,aA,fA))){we=!1;break}}return fA.delete(c),fA.delete(f),we}function H4(c,f,U,aA,pA,fA,_A){switch(U){case qA:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case JA:return!(c.byteLength!=f.byteLength||!fA(new qs(c),new qs(f)));case H:case AA:case BA:return Zn(+c,+f);case oA:return c.name==f.name&&c.message==f.message;case z:case iA:return c==f+"";case uA:var FA=Z;case X:var TA=aA&G;if(FA||(FA=hA),c.size!=f.size&&!TA)return!1;var Ae=_A.get(c);if(Ae)return Ae==f;aA|=K,_A.set(c,f);var ee=wB(FA(c),FA(f),aA,pA,fA,_A);return _A.delete(c),ee;case cA:if(aa)return aa.call(c)==aa.call(f)}return!1}function K4(c,f,U,aA,pA,fA){var _A=U&G,FA=jg(c),TA=FA.length,Ae=jg(f),ee=Ae.length;if(TA!=ee&&!_A)return!1;for(var se=TA;se--;){var we=FA[se];if(!(_A?we in f:st.call(f,we)))return!1}var ve=fA.get(c),Fe=fA.get(f);if(ve&&Fe)return ve==f&&Fe==c;var Je=!0;fA.set(c,f),fA.set(f,c);for(var Re=_A;++se<TA;){we=FA[se];var We=c[we],Ve=f[we];if(aA)var kn=_A?aA(Ve,We,we,f,c,fA):aA(We,Ve,we,c,f,fA);if(!(kn===t?We===Ve||pA(We,Ve,U,aA,fA):kn)){Je=!1;break}Re||(Re=we=="constructor")}if(Je&&!Re){var sn=c.constructor,_n=f.constructor;sn!=_n&&"constructor"in c&&"constructor"in f&&!(typeof sn=="function"&&sn instanceof sn&&typeof _n=="function"&&_n instanceof _n)&&(Je=!1)}return fA.delete(c),fA.delete(f),Je}function Di(c){return iu(_B(c,t,PB),c+"")}function jg(c){return YC(c,Pt,Au)}function qg(c){return YC(c,pn,bB)}var Xg=nl?function(c){return nl.get(c)}:Bu;function Bl(c){for(var f=c.name+"",U=ir[f],aA=st.call(ir,f)?U.length:0;aA--;){var pA=U[aA],fA=pA.func;if(fA==null||fA==c)return pA.name}return f}function sr(c){var f=st.call(QA,"placeholder")?QA:c;return f.placeholder}function Ne(){var c=QA.iteratee||pu;return c=c===pu?zC:c,arguments.length?c(arguments[0],arguments[1]):c}function ml(c,f){var U=c.__data__;return Z4(f)?U[typeof f=="string"?"string":"hash"]:U.map}function Vg(c){for(var f=Pt(c),U=f.length;U--;){var aA=f[U],pA=c[aA];f[U]=[aA,pA,vB(pA)]}return f}function bo(c,f){var U=Dg(c,f);return $C(U)?U:t}function T4(c){var f=st.call(c,Eo),U=c[Eo];try{c[Eo]=t;var aA=!0}catch{}var pA=Ws.call(c);return aA&&(f?c[Eo]=U:delete c[Eo]),pA}var Au=vg?function(c){return c==null?[]:(c=Oe(c),yn(vg(c),function(f){return MC.call(c,f)}))}:mu,bB=vg?function(c){for(var f=[];c;)$n(f,Au(c)),c=Xs(c);return f}:mu,zt=rn;(kg&&zt(new kg(new ArrayBuffer(1)))!=qA||ia&&zt(new ia)!=uA||_g&&zt(_g.resolve())!=rA||nr&&zt(new nr)!=X||oa&&zt(new oa)!=vA)&&(zt=function(c){var f=rn(c),U=f==tA?c.constructor:t,aA=U?yo(U):"";if(aA)switch(aA){case wS:return qA;case bS:return uA;case yS:return rA;case DS:return X;case vS:return vA}return f});function U4(c,f,U){for(var aA=-1,pA=U.length;++aA<pA;){var fA=U[aA],_A=fA.size;switch(fA.type){case"drop":c+=_A;break;case"dropRight":f-=_A;break;case"take":f=$t(f,c+_A);break;case"takeRight":c=Ft(c,f-_A);break}}return{start:c,end:f}}function Y4(c){var f=c.match(bA);return f?f[1].split(RA):[]}function yB(c,f,U){f=zi(f,c);for(var aA=-1,pA=f.length,fA=!1;++aA<pA;){var _A=li(f[aA]);if(!(fA=c!=null&&U(c,_A)))break;c=c[_A]}return fA||++aA!=pA?fA:(pA=c==null?0:c.length,!!pA&&yl(pA)&&vi(_A,pA)&&(Te(c)||Do(c)))}function O4(c){var f=c.length,U=new c.constructor(f);return f&&typeof c[0]=="string"&&st.call(c,"index")&&(U.index=c.index,U.input=c.input),U}function DB(c){return typeof c.constructor=="function"&&!ha(c)?or(Xs(c)):{}}function $4(c,f,U){var aA=c.constructor;switch(f){case JA:return Jg(c);case H:case AA:return new aA(+c);case qA:return k4(c,U);case WA:case ue:case te:case LA:case SA:case ZA:case Be:case De:case Se:return sB(c,U);case uA:return new aA;case BA:case iA:return new aA(c);case z:return _4(c);case X:return new aA;case cA:return M4(c)}}function z4(c,f){var U=f.length;if(!U)return c;var aA=U-1;return f[aA]=(U>1?"& ":"")+f[aA],f=f.join(U>2?", ":" "),c.replace(MA,`{
8
+ */Ba.exports,function(n,e){(function(){var t,i="4.17.21",u=200,I="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",b="Invalid `variable` option passed into `_.template`",y="__lodash_hash_undefined__",w=500,M="__lodash_placeholder__",N=1,P=2,Y=4,G=1,K=2,D=1,E=2,L=4,_=8,v=16,B=32,p=64,d=128,l=256,g=512,s=30,h="...",C=800,a=16,r=1,m=2,Q=3,x=1/0,S=9007199254740991,T=17976931348623157e292,$=NaN,eA=4294967295,W=eA-1,J=eA>>>1,O=[["ary",d],["bind",D],["bindKey",E],["curry",_],["curryRight",v],["flip",g],["partial",B],["partialRight",p],["rearg",l]],q="[object Arguments]",k="[object Array]",V="[object AsyncFunction]",H="[object Boolean]",AA="[object Date]",sA="[object DOMException]",oA="[object Error]",dA="[object Function]",EA="[object GeneratorFunction]",uA="[object Map]",BA="[object Number]",j="[object Null]",tA="[object Object]",rA="[object Promise]",gA="[object Proxy]",z="[object RegExp]",X="[object Set]",iA="[object String]",cA="[object Symbol]",CA="[object Undefined]",vA="[object WeakMap]",GA="[object WeakSet]",JA="[object ArrayBuffer]",qA="[object DataView]",WA="[object Float32Array]",ue="[object Float64Array]",te="[object Int8Array]",LA="[object Int16Array]",SA="[object Int32Array]",ZA="[object Uint8Array]",Be="[object Uint8ClampedArray]",De="[object Uint16Array]",Se="[object Uint32Array]",YA=/\b__p \+= '';/g,$A=/\b(__p \+=) '' \+/g,XA=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,ce=/[&<>"']/g,Ee=RegExp(he.source),ke=RegExp(ce.source),wA=/<%-([\s\S]+?)%>/g,NA=/<%([\s\S]+?)%>/g,KA=/<%=([\s\S]+?)%>/g,oe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,be=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ge=/[\\^$.*+?()[\]{}|]/g,Me=RegExp(ge.source),tt=/^\s+/,lt=/\s/,MA=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bA=/\{\n\/\* \[wrapped with (.+)\] \*/,RA=/,? & /,zA=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,OA=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_e=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Ct=/^0b[01]+$/i,ze=/^\[object .+?Constructor\]$/,At=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,Pe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ot=/($^)/,Et=/['\n\r\u2028\u2029\\]/g,nt="\\ud800-\\udfff",Nn="\\u0300-\\u036f",Xt="\\ufe20-\\ufe2f",Vt="\\u20d0-\\u20ff",gn=Nn+Xt+Vt,wn="\\u2700-\\u27bf",St="a-z\\xdf-\\xf6\\xf8-\\xff",An="\\xac\\xb1\\xd7\\xf7",On="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",en="\\u2000-\\u206f",Ci=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bi="A-Z\\xc0-\\xd6\\xd8-\\xde",co="\\ufe0e\\ufe0f",mi=An+On+en+Ci,ti="['’]",Pi="["+nt+"]",go="["+mi+"]",ni="["+gn+"]",bn="\\d+",Hi="["+wn+"]",Jo="["+St+"]",uo="[^"+nt+mi+bn+wn+St+Bi+"]",Fn="\\ud83c[\\udffb-\\udfff]",ho="(?:"+ni+"|"+Fn+")",bs="[^"+nt+"]",Zo="(?:\\ud83c[\\udde6-\\uddff]){2}",Wo="[\\ud800-\\udbff][\\udc00-\\udfff]",ii="["+Bi+"]",ys="\\u200d",Ds="(?:"+Jo+"|"+uo+")",vs="(?:"+ii+"|"+uo+")",ks="(?:"+ti+"(?:d|ll|m|re|s|t|ve))?",_s="(?:"+ti+"(?:D|LL|M|RE|S|T|VE))?",Or=ho+"?",$r="["+co+"]?",sg="(?:"+ys+"(?:"+[bs,Zo,Wo].join("|")+")"+$r+Or+")*",zr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",lg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jr=$r+Or+sg,cg="(?:"+[Hi,Zo,Wo].join("|")+")"+Jr,jo="(?:"+[bs+ni+"?",ni,Zo,Wo,Pi].join("|")+")",gg=RegExp(ti,"g"),Ms=RegExp(ni,"g"),qo=RegExp(Fn+"(?="+Fn+")|"+jo+Jr,"g"),ug=RegExp([ii+"?"+Jo+"+"+ks+"(?="+[go,ii,"$"].join("|")+")",vs+"+"+_s+"(?="+[go,ii+Ds,"$"].join("|")+")",ii+"?"+Ds+"+"+ks,ii+"+"+_s,lg,zr,bn,cg].join("|"),"g"),xs=RegExp("["+ys+nt+gn+co+"]"),Ss=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],po=-1,rt={};rt[WA]=rt[ue]=rt[te]=rt[LA]=rt[SA]=rt[ZA]=rt[Be]=rt[De]=rt[Se]=!0,rt[q]=rt[k]=rt[JA]=rt[H]=rt[qA]=rt[AA]=rt[oA]=rt[dA]=rt[uA]=rt[BA]=rt[tA]=rt[z]=rt[X]=rt[iA]=rt[vA]=!1;var ct={};ct[q]=ct[k]=ct[JA]=ct[qA]=ct[H]=ct[AA]=ct[WA]=ct[ue]=ct[te]=ct[LA]=ct[SA]=ct[uA]=ct[BA]=ct[tA]=ct[z]=ct[X]=ct[iA]=ct[cA]=ct[ZA]=ct[Be]=ct[De]=ct[Se]=!0,ct[oA]=ct[dA]=ct[vA]=!1;var Zr={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ns={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},hg={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Wr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fs=parseFloat,Rs=parseInt,Xo=typeof vo=="object"&&vo&&vo.Object===Object&&vo,pg=typeof self=="object"&&self&&self.Object===Object&&self,Nt=Xo||pg||Function("return this")(),Rn=e&&!e.nodeType&&e,Ei=Rn&&!0&&n&&!n.nodeType&&n,Ls=Ei&&Ei.exports===Rn,jr=Ls&&Xo.process,tn=function(){try{var kA=Ei&&Ei.require&&Ei.require("util").types;return kA||jr&&jr.binding&&jr.binding("util")}catch{}}(),qr=tn&&tn.isArrayBuffer,Gt=tn&&tn.isDate,Gs=tn&&tn.isMap,Ps=tn&&tn.isRegExp,Hs=tn&&tn.isSet,Ks=tn&&tn.isTypedArray;function nn(kA,UA,HA){switch(HA.length){case 0:return kA.call(UA);case 1:return kA.call(UA,HA[0]);case 2:return kA.call(UA,HA[0],HA[1]);case 3:return kA.call(UA,HA[0],HA[1],HA[2])}return kA.apply(UA,HA)}function Cg(kA,UA,HA,VA){for(var Ce=-1,He=kA==null?0:kA.length;++Ce<He;){var Ke=kA[Ce];UA(VA,Ke,HA(Ke),kA)}return VA}function un(kA,UA){for(var HA=-1,VA=kA==null?0:kA.length;++HA<VA&&UA(kA[HA],HA,kA)!==!1;);return kA}function Bg(kA,UA){for(var HA=kA==null?0:kA.length;HA--&&UA(kA[HA],HA,kA)!==!1;);return kA}function Xr(kA,UA){for(var HA=-1,VA=kA==null?0:kA.length;++HA<VA;)if(!UA(kA[HA],HA,kA))return!1;return!0}function yn(kA,UA){for(var HA=-1,VA=kA==null?0:kA.length,Ce=0,He=[];++HA<VA;){var Ke=kA[HA];UA(Ke,HA,kA)&&(He[Ce++]=Ke)}return He}function Ln(kA,UA){var HA=kA==null?0:kA.length;return!!HA&&Ti(kA,UA,0)>-1}function Ki(kA,UA,HA){for(var VA=-1,Ce=kA==null?0:kA.length;++VA<Ce;)if(HA(UA,kA[VA]))return!0;return!1}function ht(kA,UA){for(var HA=-1,VA=kA==null?0:kA.length,Ce=Array(VA);++HA<VA;)Ce[HA]=UA(kA[HA],HA,kA);return Ce}function $n(kA,UA){for(var HA=-1,VA=UA.length,Ce=kA.length;++HA<VA;)kA[Ce+HA]=UA[HA];return kA}function Vo(kA,UA,HA,VA){var Ce=-1,He=kA==null?0:kA.length;for(VA&&He&&(HA=kA[++Ce]);++Ce<He;)HA=UA(HA,kA[Ce],Ce,kA);return HA}function Ts(kA,UA,HA,VA){var Ce=kA==null?0:kA.length;for(VA&&Ce&&(HA=kA[--Ce]);Ce--;)HA=UA(HA,kA[Ce],Ce,kA);return HA}function Qi(kA,UA){for(var HA=-1,VA=kA==null?0:kA.length;++HA<VA;)if(UA(kA[HA],HA,kA))return!0;return!1}var mg=Aa("length");function Eg(kA){return kA.split("")}function Qg(kA){return kA.match(zA)||[]}function Us(kA,UA,HA){var VA;return HA(kA,function(Ce,He,Ke){if(UA(Ce,He,Ke))return VA=He,!1}),VA}function Ar(kA,UA,HA,VA){for(var Ce=kA.length,He=HA+(VA?1:-1);VA?He--:++He<Ce;)if(UA(kA[He],He,kA))return He;return-1}function Ti(kA,UA,HA){return UA===UA?IA(kA,UA,HA):Ar(kA,Ys,HA)}function Vr(kA,UA,HA,VA){for(var Ce=HA-1,He=kA.length;++Ce<He;)if(VA(kA[Ce],UA))return Ce;return-1}function Ys(kA){return kA!==kA}function Co(kA,UA){var HA=kA==null?0:kA.length;return HA?er(kA,UA)/HA:$}function Aa(kA){return function(UA){return UA==null?t:UA[kA]}}function Bo(kA){return function(UA){return kA==null?t:kA[UA]}}function Os(kA,UA,HA,VA,Ce){return Ce(kA,function(He,Ke,Oe){HA=VA?(VA=!1,He):UA(HA,He,Ke,Oe)}),HA}function Ig(kA,UA){var HA=kA.length;for(kA.sort(UA);HA--;)kA[HA]=kA[HA].value;return kA}function er(kA,UA){for(var HA,VA=-1,Ce=kA.length;++VA<Ce;){var He=UA(kA[VA]);He!==t&&(HA=HA===t?He:HA+He)}return HA}function Ii(kA,UA){for(var HA=-1,VA=Array(kA);++HA<kA;)VA[HA]=UA(HA);return VA}function oi(kA,UA){return ht(UA,function(HA){return[HA,kA[HA]]})}function ea(kA){return kA&&kA.slice(0,PA(kA)+1).replace(tt,"")}function Tt(kA){return function(UA){return kA(UA)}}function ta(kA,UA){return ht(UA,function(HA){return kA[HA]})}function mo(kA,UA){return kA.has(UA)}function $s(kA,UA){for(var HA=-1,VA=kA.length;++HA<VA&&Ti(UA,kA[HA],0)>-1;);return HA}function zs(kA,UA){for(var HA=kA.length;HA--&&Ti(UA,kA[HA],0)>-1;);return HA}function fg(kA,UA){for(var HA=kA.length,VA=0;HA--;)kA[HA]===UA&&++VA;return VA}var wg=Bo(Zr),bg=Bo(Ns);function yg(kA){return"\\"+Wr[kA]}function Dg(kA,UA){return kA==null?t:kA[UA]}function Ui(kA){return xs.test(kA)}function R(kA){return Ss.test(kA)}function F(kA){for(var UA,HA=[];!(UA=kA.next()).done;)HA.push(UA.value);return HA}function Z(kA){var UA=-1,HA=Array(kA.size);return kA.forEach(function(VA,Ce){HA[++UA]=[Ce,VA]}),HA}function nA(kA,UA){return function(HA){return kA(UA(HA))}}function lA(kA,UA){for(var HA=-1,VA=kA.length,Ce=0,He=[];++HA<VA;){var Ke=kA[HA];(Ke===UA||Ke===M)&&(kA[HA]=M,He[Ce++]=HA)}return He}function hA(kA){var UA=-1,HA=Array(kA.size);return kA.forEach(function(VA){HA[++UA]=VA}),HA}function mA(kA){var UA=-1,HA=Array(kA.size);return kA.forEach(function(VA){HA[++UA]=[VA,VA]}),HA}function IA(kA,UA,HA){for(var VA=HA-1,Ce=kA.length;++VA<Ce;)if(kA[VA]===UA)return VA;return-1}function yA(kA,UA,HA){for(var VA=HA+1;VA--;)if(kA[VA]===UA)return VA;return VA}function xA(kA){return Ui(kA)?le(kA):mg(kA)}function DA(kA){return Ui(kA)?ae(kA):Eg(kA)}function PA(kA){for(var UA=kA.length;UA--&&lt.test(kA.charAt(UA)););return UA}var jA=Bo(hg);function le(kA){for(var UA=qo.lastIndex=0;qo.test(kA);)++UA;return UA}function ae(kA){return kA.match(qo)||[]}function de(kA){return kA.match(ug)||[]}var ye=function kA(UA){UA=UA==null?Nt:Qe.defaults(Nt.Object(),UA,Qe.pick(Nt,dg));var HA=UA.Array,VA=UA.Date,Ce=UA.Error,He=UA.Function,Ke=UA.Math,Oe=UA.Object,on=UA.RegExp,zn=UA.String,Ut=UA.TypeError,ri=HA.prototype,lS=He.prototype,tr=Oe.prototype,Js=UA["__core-js_shared__"],Zs=lS.toString,st=tr.hasOwnProperty,cS=0,vC=function(){var c=/[^.]+$/.exec(Js&&Js.keys&&Js.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Ws=tr.toString,gS=Zs.call(Oe),uS=Nt._,dS=on("^"+Zs.call(st).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),js=Ls?UA.Buffer:t,Yi=UA.Symbol,qs=UA.Uint8Array,kC=js?js.allocUnsafe:t,Xs=nA(Oe.getPrototypeOf,Oe),_C=Oe.create,MC=tr.propertyIsEnumerable,Vs=ri.splice,xC=Yi?Yi.isConcatSpreadable:t,na=Yi?Yi.iterator:t,Eo=Yi?Yi.toStringTag:t,Al=function(){try{var c=bo(Oe,"defineProperty");return c({},"",{}),c}catch{}}(),hS=UA.clearTimeout!==Nt.clearTimeout&&UA.clearTimeout,pS=VA&&VA.now!==Nt.Date.now&&VA.now,CS=UA.setTimeout!==Nt.setTimeout&&UA.setTimeout,el=Ke.ceil,tl=Ke.floor,vg=Oe.getOwnPropertySymbols,BS=js?js.isBuffer:t,SC=UA.isFinite,mS=ri.join,ES=nA(Oe.keys,Oe),Ft=Ke.max,$t=Ke.min,QS=VA.now,IS=UA.parseInt,NC=Ke.random,fS=ri.reverse,kg=bo(UA,"DataView"),ia=bo(UA,"Map"),_g=bo(UA,"Promise"),nr=bo(UA,"Set"),oa=bo(UA,"WeakMap"),ra=bo(Oe,"create"),nl=oa&&new oa,ir={},wS=yo(kg),bS=yo(ia),yS=yo(_g),DS=yo(nr),vS=yo(oa),il=Yi?Yi.prototype:t,aa=il?il.valueOf:t,FC=il?il.toString:t;function QA(c){if(bt(c)&&!Te(c)&&!(c instanceof Xe)){if(c instanceof Gn)return c;if(st.call(c,"__wrapped__"))return RB(c)}return new Gn(c)}var or=function(){function c(){}return function(f){if(!Qt(f))return{};if(_C)return _C(f);c.prototype=f;var U=new c;return c.prototype=t,U}}();function ol(){}function Gn(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=t}QA.templateSettings={escape:wA,evaluate:NA,interpolate:KA,variable:"",imports:{_:QA}},QA.prototype=ol.prototype,QA.prototype.constructor=QA,Gn.prototype=or(ol.prototype),Gn.prototype.constructor=Gn;function Xe(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=eA,this.__views__=[]}function kS(){var c=new Xe(this.__wrapped__);return c.__actions__=dn(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=dn(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=dn(this.__views__),c}function _S(){if(this.__filtered__){var c=new Xe(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function MS(){var c=this.__wrapped__.value(),f=this.__dir__,U=Te(c),aA=f<0,pA=U?c.length:0,fA=U4(0,pA,this.__views__),_A=fA.start,FA=fA.end,TA=FA-_A,Ae=aA?FA:_A-1,ee=this.__iteratees__,se=ee.length,we=0,ve=$t(TA,this.__takeCount__);if(!U||!aA&&pA==TA&&ve==TA)return iB(c,this.__actions__);var Fe=[];A:for(;TA--&&we<ve;){Ae+=f;for(var Je=-1,Re=c[Ae];++Je<se;){var We=ee[Je],Ve=We.iteratee,kn=We.type,sn=Ve(Re);if(kn==m)Re=sn;else if(!sn){if(kn==r)continue A;break A}}Fe[we++]=Re}return Fe}Xe.prototype=or(ol.prototype),Xe.prototype.constructor=Xe;function Qo(c){var f=-1,U=c==null?0:c.length;for(this.clear();++f<U;){var aA=c[f];this.set(aA[0],aA[1])}}function xS(){this.__data__=ra?ra(null):{},this.size=0}function SS(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}function NS(c){var f=this.__data__;if(ra){var U=f[c];return U===y?t:U}return st.call(f,c)?f[c]:t}function FS(c){var f=this.__data__;return ra?f[c]!==t:st.call(f,c)}function RS(c,f){var U=this.__data__;return this.size+=this.has(c)?0:1,U[c]=ra&&f===t?y:f,this}Qo.prototype.clear=xS,Qo.prototype.delete=SS,Qo.prototype.get=NS,Qo.prototype.has=FS,Qo.prototype.set=RS;function fi(c){var f=-1,U=c==null?0:c.length;for(this.clear();++f<U;){var aA=c[f];this.set(aA[0],aA[1])}}function LS(){this.__data__=[],this.size=0}function GS(c){var f=this.__data__,U=rl(f,c);if(U<0)return!1;var aA=f.length-1;return U==aA?f.pop():Vs.call(f,U,1),--this.size,!0}function PS(c){var f=this.__data__,U=rl(f,c);return U<0?t:f[U][1]}function HS(c){return rl(this.__data__,c)>-1}function KS(c,f){var U=this.__data__,aA=rl(U,c);return aA<0?(++this.size,U.push([c,f])):U[aA][1]=f,this}fi.prototype.clear=LS,fi.prototype.delete=GS,fi.prototype.get=PS,fi.prototype.has=HS,fi.prototype.set=KS;function wi(c){var f=-1,U=c==null?0:c.length;for(this.clear();++f<U;){var aA=c[f];this.set(aA[0],aA[1])}}function TS(){this.size=0,this.__data__={hash:new Qo,map:new(ia||fi),string:new Qo}}function US(c){var f=ml(this,c).delete(c);return this.size-=f?1:0,f}function YS(c){return ml(this,c).get(c)}function OS(c){return ml(this,c).has(c)}function $S(c,f){var U=ml(this,c),aA=U.size;return U.set(c,f),this.size+=U.size==aA?0:1,this}wi.prototype.clear=TS,wi.prototype.delete=US,wi.prototype.get=YS,wi.prototype.has=OS,wi.prototype.set=$S;function Io(c){var f=-1,U=c==null?0:c.length;for(this.__data__=new wi;++f<U;)this.add(c[f])}function zS(c){return this.__data__.set(c,y),this}function JS(c){return this.__data__.has(c)}Io.prototype.add=Io.prototype.push=zS,Io.prototype.has=JS;function Jn(c){var f=this.__data__=new fi(c);this.size=f.size}function ZS(){this.__data__=new fi,this.size=0}function WS(c){var f=this.__data__,U=f.delete(c);return this.size=f.size,U}function jS(c){return this.__data__.get(c)}function qS(c){return this.__data__.has(c)}function XS(c,f){var U=this.__data__;if(U instanceof fi){var aA=U.__data__;if(!ia||aA.length<u-1)return aA.push([c,f]),this.size=++U.size,this;U=this.__data__=new wi(aA)}return U.set(c,f),this.size=U.size,this}Jn.prototype.clear=ZS,Jn.prototype.delete=WS,Jn.prototype.get=jS,Jn.prototype.has=qS,Jn.prototype.set=XS;function RC(c,f){var U=Te(c),aA=!U&&Do(c),pA=!U&&!aA&&Zi(c),fA=!U&&!aA&&!pA&&lr(c),_A=U||aA||pA||fA,FA=_A?Ii(c.length,zn):[],TA=FA.length;for(var Ae in c)(f||st.call(c,Ae))&&!(_A&&(Ae=="length"||pA&&(Ae=="offset"||Ae=="parent")||fA&&(Ae=="buffer"||Ae=="byteLength"||Ae=="byteOffset")||vi(Ae,TA)))&&FA.push(Ae);return FA}function LC(c){var f=c.length;return f?c[Kg(0,f-1)]:t}function VS(c,f){return El(dn(c),fo(f,0,c.length))}function A4(c){return El(dn(c))}function Mg(c,f,U){(U!==t&&!Zn(c[f],U)||U===t&&!(f in c))&&bi(c,f,U)}function sa(c,f,U){var aA=c[f];(!(st.call(c,f)&&Zn(aA,U))||U===t&&!(f in c))&&bi(c,f,U)}function rl(c,f){for(var U=c.length;U--;)if(Zn(c[U][0],f))return U;return-1}function e4(c,f,U,aA){return Oi(c,function(pA,fA,_A){f(aA,pA,U(pA),_A)}),aA}function GC(c,f){return c&&si(f,Pt(f),c)}function t4(c,f){return c&&si(f,pn(f),c)}function bi(c,f,U){f=="__proto__"&&Al?Al(c,f,{configurable:!0,enumerable:!0,value:U,writable:!0}):c[f]=U}function xg(c,f){for(var U=-1,aA=f.length,pA=HA(aA),fA=c==null;++U<aA;)pA[U]=fA?t:gu(c,f[U]);return pA}function fo(c,f,U){return c===c&&(U!==t&&(c=c<=U?c:U),f!==t&&(c=c>=f?c:f)),c}function Pn(c,f,U,aA,pA,fA){var _A,FA=f&N,TA=f&P,Ae=f&Y;if(U&&(_A=pA?U(c,aA,pA,fA):U(c)),_A!==t)return _A;if(!Qt(c))return c;var ee=Te(c);if(ee){if(_A=O4(c),!FA)return dn(c,_A)}else{var se=zt(c),we=se==dA||se==EA;if(Zi(c))return aB(c,FA);if(se==tA||se==q||we&&!pA){if(_A=TA||we?{}:DB(c),!FA)return TA?N4(c,t4(_A,c)):S4(c,GC(_A,c))}else{if(!ct[se])return pA?c:{};_A=$4(c,se,FA)}}fA||(fA=new Jn);var ve=fA.get(c);if(ve)return ve;fA.set(c,_A),em(c)?c.forEach(function(Re){_A.add(Pn(Re,f,U,Re,c,fA))}):VB(c)&&c.forEach(function(Re,We){_A.set(We,Pn(Re,f,U,We,c,fA))});var Fe=Ae?TA?qg:jg:TA?pn:Pt,Je=ee?t:Fe(c);return un(Je||c,function(Re,We){Je&&(We=Re,Re=c[We]),sa(_A,We,Pn(Re,f,U,We,c,fA))}),_A}function n4(c){var f=Pt(c);return function(U){return PC(U,c,f)}}function PC(c,f,U){var aA=U.length;if(c==null)return!aA;for(c=Oe(c);aA--;){var pA=U[aA],fA=f[pA],_A=c[pA];if(_A===t&&!(pA in c)||!fA(_A))return!1}return!0}function HC(c,f,U){if(typeof c!="function")throw new Ut(o);return pa(function(){c.apply(t,U)},f)}function la(c,f,U,aA){var pA=-1,fA=Ln,_A=!0,FA=c.length,TA=[],Ae=f.length;if(!FA)return TA;U&&(f=ht(f,Tt(U))),aA?(fA=Ki,_A=!1):f.length>=u&&(fA=mo,_A=!1,f=new Io(f));A:for(;++pA<FA;){var ee=c[pA],se=U==null?ee:U(ee);if(ee=aA||ee!==0?ee:0,_A&&se===se){for(var we=Ae;we--;)if(f[we]===se)continue A;TA.push(ee)}else fA(f,se,aA)||TA.push(ee)}return TA}var Oi=uB(ai),KC=uB(Ng,!0);function i4(c,f){var U=!0;return Oi(c,function(aA,pA,fA){return U=!!f(aA,pA,fA),U}),U}function al(c,f,U){for(var aA=-1,pA=c.length;++aA<pA;){var fA=c[aA],_A=f(fA);if(_A!=null&&(FA===t?_A===_A&&!vn(_A):U(_A,FA)))var FA=_A,TA=fA}return TA}function o4(c,f,U,aA){var pA=c.length;for(U=$e(U),U<0&&(U=-U>pA?0:pA+U),aA=aA===t||aA>pA?pA:$e(aA),aA<0&&(aA+=pA),aA=U>aA?0:nm(aA);U<aA;)c[U++]=f;return c}function TC(c,f){var U=[];return Oi(c,function(aA,pA,fA){f(aA,pA,fA)&&U.push(aA)}),U}function Yt(c,f,U,aA,pA){var fA=-1,_A=c.length;for(U||(U=J4),pA||(pA=[]);++fA<_A;){var FA=c[fA];f>0&&U(FA)?f>1?Yt(FA,f-1,U,aA,pA):$n(pA,FA):aA||(pA[pA.length]=FA)}return pA}var Sg=dB(),UC=dB(!0);function ai(c,f){return c&&Sg(c,f,Pt)}function Ng(c,f){return c&&UC(c,f,Pt)}function sl(c,f){return yn(f,function(U){return ki(c[U])})}function wo(c,f){f=zi(f,c);for(var U=0,aA=f.length;c!=null&&U<aA;)c=c[li(f[U++])];return U&&U==aA?c:t}function YC(c,f,U){var aA=f(c);return Te(c)?aA:$n(aA,U(c))}function rn(c){return c==null?c===t?CA:j:Eo&&Eo in Oe(c)?T4(c):AN(c)}function Fg(c,f){return c>f}function r4(c,f){return c!=null&&st.call(c,f)}function a4(c,f){return c!=null&&f in Oe(c)}function s4(c,f,U){return c>=$t(f,U)&&c<Ft(f,U)}function Rg(c,f,U){for(var aA=U?Ki:Ln,pA=c[0].length,fA=c.length,_A=fA,FA=HA(fA),TA=1/0,Ae=[];_A--;){var ee=c[_A];_A&&f&&(ee=ht(ee,Tt(f))),TA=$t(ee.length,TA),FA[_A]=!U&&(f||pA>=120&&ee.length>=120)?new Io(_A&&ee):t}ee=c[0];var se=-1,we=FA[0];A:for(;++se<pA&&Ae.length<TA;){var ve=ee[se],Fe=f?f(ve):ve;if(ve=U||ve!==0?ve:0,!(we?mo(we,Fe):aA(Ae,Fe,U))){for(_A=fA;--_A;){var Je=FA[_A];if(!(Je?mo(Je,Fe):aA(c[_A],Fe,U)))continue A}we&&we.push(Fe),Ae.push(ve)}}return Ae}function l4(c,f,U,aA){return ai(c,function(pA,fA,_A){f(aA,U(pA),fA,_A)}),aA}function ca(c,f,U){f=zi(f,c),c=MB(c,f);var aA=c==null?c:c[li(Kn(f))];return aA==null?t:nn(aA,c,U)}function OC(c){return bt(c)&&rn(c)==q}function c4(c){return bt(c)&&rn(c)==JA}function g4(c){return bt(c)&&rn(c)==AA}function ga(c,f,U,aA,pA){return c===f?!0:c==null||f==null||!bt(c)&&!bt(f)?c!==c&&f!==f:u4(c,f,U,aA,ga,pA)}function u4(c,f,U,aA,pA,fA){var _A=Te(c),FA=Te(f),TA=_A?k:zt(c),Ae=FA?k:zt(f);TA=TA==q?tA:TA,Ae=Ae==q?tA:Ae;var ee=TA==tA,se=Ae==tA,we=TA==Ae;if(we&&Zi(c)){if(!Zi(f))return!1;_A=!0,ee=!1}if(we&&!ee)return fA||(fA=new Jn),_A||lr(c)?wB(c,f,U,aA,pA,fA):H4(c,f,TA,U,aA,pA,fA);if(!(U&G)){var ve=ee&&st.call(c,"__wrapped__"),Fe=se&&st.call(f,"__wrapped__");if(ve||Fe){var Je=ve?c.value():c,Re=Fe?f.value():f;return fA||(fA=new Jn),pA(Je,Re,U,aA,fA)}}return we?(fA||(fA=new Jn),K4(c,f,U,aA,pA,fA)):!1}function d4(c){return bt(c)&&zt(c)==uA}function Lg(c,f,U,aA){var pA=U.length,fA=pA,_A=!aA;if(c==null)return!fA;for(c=Oe(c);pA--;){var FA=U[pA];if(_A&&FA[2]?FA[1]!==c[FA[0]]:!(FA[0]in c))return!1}for(;++pA<fA;){FA=U[pA];var TA=FA[0],Ae=c[TA],ee=FA[1];if(_A&&FA[2]){if(Ae===t&&!(TA in c))return!1}else{var se=new Jn;if(aA)var we=aA(Ae,ee,TA,c,f,se);if(!(we===t?ga(ee,Ae,G|K,aA,se):we))return!1}}return!0}function $C(c){if(!Qt(c)||W4(c))return!1;var f=ki(c)?dS:ze;return f.test(yo(c))}function h4(c){return bt(c)&&rn(c)==z}function p4(c){return bt(c)&&zt(c)==X}function C4(c){return bt(c)&&yl(c.length)&&!!rt[rn(c)]}function zC(c){return typeof c=="function"?c:c==null?Cn:typeof c=="object"?Te(c)?WC(c[0],c[1]):ZC(c):hm(c)}function Gg(c){if(!ha(c))return ES(c);var f=[];for(var U in Oe(c))st.call(c,U)&&U!="constructor"&&f.push(U);return f}function B4(c){if(!Qt(c))return V4(c);var f=ha(c),U=[];for(var aA in c)aA=="constructor"&&(f||!st.call(c,aA))||U.push(aA);return U}function Pg(c,f){return c<f}function JC(c,f){var U=-1,aA=hn(c)?HA(c.length):[];return Oi(c,function(pA,fA,_A){aA[++U]=f(pA,fA,_A)}),aA}function ZC(c){var f=Vg(c);return f.length==1&&f[0][2]?kB(f[0][0],f[0][1]):function(U){return U===c||Lg(U,c,f)}}function WC(c,f){return eu(c)&&vB(f)?kB(li(c),f):function(U){var aA=gu(U,c);return aA===t&&aA===f?uu(U,c):ga(f,aA,G|K)}}function ll(c,f,U,aA,pA){c!==f&&Sg(f,function(fA,_A){if(pA||(pA=new Jn),Qt(fA))m4(c,f,_A,U,ll,aA,pA);else{var FA=aA?aA(nu(c,_A),fA,_A+"",c,f,pA):t;FA===t&&(FA=fA),Mg(c,_A,FA)}},pn)}function m4(c,f,U,aA,pA,fA,_A){var FA=nu(c,U),TA=nu(f,U),Ae=_A.get(TA);if(Ae){Mg(c,U,Ae);return}var ee=fA?fA(FA,TA,U+"",c,f,_A):t,se=ee===t;if(se){var we=Te(TA),ve=!we&&Zi(TA),Fe=!we&&!ve&&lr(TA);ee=TA,we||ve||Fe?Te(FA)?ee=FA:Dt(FA)?ee=dn(FA):ve?(se=!1,ee=aB(TA,!0)):Fe?(se=!1,ee=sB(TA,!0)):ee=[]:Ca(TA)||Do(TA)?(ee=FA,Do(FA)?ee=im(FA):(!Qt(FA)||ki(FA))&&(ee=DB(TA))):se=!1}se&&(_A.set(TA,ee),pA(ee,TA,aA,fA,_A),_A.delete(TA)),Mg(c,U,ee)}function jC(c,f){var U=c.length;if(U)return f+=f<0?U:0,vi(f,U)?c[f]:t}function qC(c,f,U){f.length?f=ht(f,function(fA){return Te(fA)?function(_A){return wo(_A,fA.length===1?fA[0]:fA)}:fA}):f=[Cn];var aA=-1;f=ht(f,Tt(Ne()));var pA=JC(c,function(fA,_A,FA){var TA=ht(f,function(Ae){return Ae(fA)});return{criteria:TA,index:++aA,value:fA}});return Ig(pA,function(fA,_A){return x4(fA,_A,U)})}function E4(c,f){return XC(c,f,function(U,aA){return uu(c,aA)})}function XC(c,f,U){for(var aA=-1,pA=f.length,fA={};++aA<pA;){var _A=f[aA],FA=wo(c,_A);U(FA,_A)&&ua(fA,zi(_A,c),FA)}return fA}function Q4(c){return function(f){return wo(f,c)}}function Hg(c,f,U,aA){var pA=aA?Vr:Ti,fA=-1,_A=f.length,FA=c;for(c===f&&(f=dn(f)),U&&(FA=ht(c,Tt(U)));++fA<_A;)for(var TA=0,Ae=f[fA],ee=U?U(Ae):Ae;(TA=pA(FA,ee,TA,aA))>-1;)FA!==c&&Vs.call(FA,TA,1),Vs.call(c,TA,1);return c}function VC(c,f){for(var U=c?f.length:0,aA=U-1;U--;){var pA=f[U];if(U==aA||pA!==fA){var fA=pA;vi(pA)?Vs.call(c,pA,1):Yg(c,pA)}}return c}function Kg(c,f){return c+tl(NC()*(f-c+1))}function I4(c,f,U,aA){for(var pA=-1,fA=Ft(el((f-c)/(U||1)),0),_A=HA(fA);fA--;)_A[aA?fA:++pA]=c,c+=U;return _A}function Tg(c,f){var U="";if(!c||f<1||f>S)return U;do f%2&&(U+=c),f=tl(f/2),f&&(c+=c);while(f);return U}function Ze(c,f){return iu(_B(c,f,Cn),c+"")}function f4(c){return LC(cr(c))}function w4(c,f){var U=cr(c);return El(U,fo(f,0,U.length))}function ua(c,f,U,aA){if(!Qt(c))return c;f=zi(f,c);for(var pA=-1,fA=f.length,_A=fA-1,FA=c;FA!=null&&++pA<fA;){var TA=li(f[pA]),Ae=U;if(TA==="__proto__"||TA==="constructor"||TA==="prototype")return c;if(pA!=_A){var ee=FA[TA];Ae=aA?aA(ee,TA,FA):t,Ae===t&&(Ae=Qt(ee)?ee:vi(f[pA+1])?[]:{})}sa(FA,TA,Ae),FA=FA[TA]}return c}var AB=nl?function(c,f){return nl.set(c,f),c}:Cn,b4=Al?function(c,f){return Al(c,"toString",{configurable:!0,enumerable:!1,value:hu(f),writable:!0})}:Cn;function y4(c){return El(cr(c))}function Hn(c,f,U){var aA=-1,pA=c.length;f<0&&(f=-f>pA?0:pA+f),U=U>pA?pA:U,U<0&&(U+=pA),pA=f>U?0:U-f>>>0,f>>>=0;for(var fA=HA(pA);++aA<pA;)fA[aA]=c[aA+f];return fA}function D4(c,f){var U;return Oi(c,function(aA,pA,fA){return U=f(aA,pA,fA),!U}),!!U}function cl(c,f,U){var aA=0,pA=c==null?aA:c.length;if(typeof f=="number"&&f===f&&pA<=J){for(;aA<pA;){var fA=aA+pA>>>1,_A=c[fA];_A!==null&&!vn(_A)&&(U?_A<=f:_A<f)?aA=fA+1:pA=fA}return pA}return Ug(c,f,Cn,U)}function Ug(c,f,U,aA){var pA=0,fA=c==null?0:c.length;if(fA===0)return 0;f=U(f);for(var _A=f!==f,FA=f===null,TA=vn(f),Ae=f===t;pA<fA;){var ee=tl((pA+fA)/2),se=U(c[ee]),we=se!==t,ve=se===null,Fe=se===se,Je=vn(se);if(_A)var Re=aA||Fe;else Ae?Re=Fe&&(aA||we):FA?Re=Fe&&we&&(aA||!ve):TA?Re=Fe&&we&&!ve&&(aA||!Je):ve||Je?Re=!1:Re=aA?se<=f:se<f;Re?pA=ee+1:fA=ee}return $t(fA,W)}function eB(c,f){for(var U=-1,aA=c.length,pA=0,fA=[];++U<aA;){var _A=c[U],FA=f?f(_A):_A;if(!U||!Zn(FA,TA)){var TA=FA;fA[pA++]=_A===0?0:_A}}return fA}function tB(c){return typeof c=="number"?c:vn(c)?$:+c}function Dn(c){if(typeof c=="string")return c;if(Te(c))return ht(c,Dn)+"";if(vn(c))return FC?FC.call(c):"";var f=c+"";return f=="0"&&1/c==-x?"-0":f}function $i(c,f,U){var aA=-1,pA=Ln,fA=c.length,_A=!0,FA=[],TA=FA;if(U)_A=!1,pA=Ki;else if(fA>=u){var Ae=f?null:G4(c);if(Ae)return hA(Ae);_A=!1,pA=mo,TA=new Io}else TA=f?[]:FA;A:for(;++aA<fA;){var ee=c[aA],se=f?f(ee):ee;if(ee=U||ee!==0?ee:0,_A&&se===se){for(var we=TA.length;we--;)if(TA[we]===se)continue A;f&&TA.push(se),FA.push(ee)}else pA(TA,se,U)||(TA!==FA&&TA.push(se),FA.push(ee))}return FA}function Yg(c,f){return f=zi(f,c),c=MB(c,f),c==null||delete c[li(Kn(f))]}function nB(c,f,U,aA){return ua(c,f,U(wo(c,f)),aA)}function gl(c,f,U,aA){for(var pA=c.length,fA=aA?pA:-1;(aA?fA--:++fA<pA)&&f(c[fA],fA,c););return U?Hn(c,aA?0:fA,aA?fA+1:pA):Hn(c,aA?fA+1:0,aA?pA:fA)}function iB(c,f){var U=c;return U instanceof Xe&&(U=U.value()),Vo(f,function(aA,pA){return pA.func.apply(pA.thisArg,$n([aA],pA.args))},U)}function Og(c,f,U){var aA=c.length;if(aA<2)return aA?$i(c[0]):[];for(var pA=-1,fA=HA(aA);++pA<aA;)for(var _A=c[pA],FA=-1;++FA<aA;)FA!=pA&&(fA[pA]=la(fA[pA]||_A,c[FA],f,U));return $i(Yt(fA,1),f,U)}function oB(c,f,U){for(var aA=-1,pA=c.length,fA=f.length,_A={};++aA<pA;){var FA=aA<fA?f[aA]:t;U(_A,c[aA],FA)}return _A}function $g(c){return Dt(c)?c:[]}function zg(c){return typeof c=="function"?c:Cn}function zi(c,f){return Te(c)?c:eu(c,f)?[c]:FB(at(c))}var v4=Ze;function Ji(c,f,U){var aA=c.length;return U=U===t?aA:U,!f&&U>=aA?c:Hn(c,f,U)}var rB=hS||function(c){return Nt.clearTimeout(c)};function aB(c,f){if(f)return c.slice();var U=c.length,aA=kC?kC(U):new c.constructor(U);return c.copy(aA),aA}function Jg(c){var f=new c.constructor(c.byteLength);return new qs(f).set(new qs(c)),f}function k4(c,f){var U=f?Jg(c.buffer):c.buffer;return new c.constructor(U,c.byteOffset,c.byteLength)}function _4(c){var f=new c.constructor(c.source,_e.exec(c));return f.lastIndex=c.lastIndex,f}function M4(c){return aa?Oe(aa.call(c)):{}}function sB(c,f){var U=f?Jg(c.buffer):c.buffer;return new c.constructor(U,c.byteOffset,c.length)}function lB(c,f){if(c!==f){var U=c!==t,aA=c===null,pA=c===c,fA=vn(c),_A=f!==t,FA=f===null,TA=f===f,Ae=vn(f);if(!FA&&!Ae&&!fA&&c>f||fA&&_A&&TA&&!FA&&!Ae||aA&&_A&&TA||!U&&TA||!pA)return 1;if(!aA&&!fA&&!Ae&&c<f||Ae&&U&&pA&&!aA&&!fA||FA&&U&&pA||!_A&&pA||!TA)return-1}return 0}function x4(c,f,U){for(var aA=-1,pA=c.criteria,fA=f.criteria,_A=pA.length,FA=U.length;++aA<_A;){var TA=lB(pA[aA],fA[aA]);if(TA){if(aA>=FA)return TA;var Ae=U[aA];return TA*(Ae=="desc"?-1:1)}}return c.index-f.index}function cB(c,f,U,aA){for(var pA=-1,fA=c.length,_A=U.length,FA=-1,TA=f.length,Ae=Ft(fA-_A,0),ee=HA(TA+Ae),se=!aA;++FA<TA;)ee[FA]=f[FA];for(;++pA<_A;)(se||pA<fA)&&(ee[U[pA]]=c[pA]);for(;Ae--;)ee[FA++]=c[pA++];return ee}function gB(c,f,U,aA){for(var pA=-1,fA=c.length,_A=-1,FA=U.length,TA=-1,Ae=f.length,ee=Ft(fA-FA,0),se=HA(ee+Ae),we=!aA;++pA<ee;)se[pA]=c[pA];for(var ve=pA;++TA<Ae;)se[ve+TA]=f[TA];for(;++_A<FA;)(we||pA<fA)&&(se[ve+U[_A]]=c[pA++]);return se}function dn(c,f){var U=-1,aA=c.length;for(f||(f=HA(aA));++U<aA;)f[U]=c[U];return f}function si(c,f,U,aA){var pA=!U;U||(U={});for(var fA=-1,_A=f.length;++fA<_A;){var FA=f[fA],TA=aA?aA(U[FA],c[FA],FA,U,c):t;TA===t&&(TA=c[FA]),pA?bi(U,FA,TA):sa(U,FA,TA)}return U}function S4(c,f){return si(c,Au(c),f)}function N4(c,f){return si(c,bB(c),f)}function ul(c,f){return function(U,aA){var pA=Te(U)?Cg:e4,fA=f?f():{};return pA(U,c,Ne(aA,2),fA)}}function rr(c){return Ze(function(f,U){var aA=-1,pA=U.length,fA=pA>1?U[pA-1]:t,_A=pA>2?U[2]:t;for(fA=c.length>3&&typeof fA=="function"?(pA--,fA):t,_A&&an(U[0],U[1],_A)&&(fA=pA<3?t:fA,pA=1),f=Oe(f);++aA<pA;){var FA=U[aA];FA&&c(f,FA,aA,fA)}return f})}function uB(c,f){return function(U,aA){if(U==null)return U;if(!hn(U))return c(U,aA);for(var pA=U.length,fA=f?pA:-1,_A=Oe(U);(f?fA--:++fA<pA)&&aA(_A[fA],fA,_A)!==!1;);return U}}function dB(c){return function(f,U,aA){for(var pA=-1,fA=Oe(f),_A=aA(f),FA=_A.length;FA--;){var TA=_A[c?FA:++pA];if(U(fA[TA],TA,fA)===!1)break}return f}}function F4(c,f,U){var aA=f&D,pA=da(c);function fA(){var _A=this&&this!==Nt&&this instanceof fA?pA:c;return _A.apply(aA?U:this,arguments)}return fA}function hB(c){return function(f){f=at(f);var U=Ui(f)?DA(f):t,aA=U?U[0]:f.charAt(0),pA=U?Ji(U,1).join(""):f.slice(1);return aA[c]()+pA}}function ar(c){return function(f){return Vo(um(gm(f).replace(gg,"")),c,"")}}function da(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var U=or(c.prototype),aA=c.apply(U,f);return Qt(aA)?aA:U}}function R4(c,f,U){var aA=da(c);function pA(){for(var fA=arguments.length,_A=HA(fA),FA=fA,TA=sr(pA);FA--;)_A[FA]=arguments[FA];var Ae=fA<3&&_A[0]!==TA&&_A[fA-1]!==TA?[]:lA(_A,TA);if(fA-=Ae.length,fA<U)return EB(c,f,dl,pA.placeholder,t,_A,Ae,t,t,U-fA);var ee=this&&this!==Nt&&this instanceof pA?aA:c;return nn(ee,this,_A)}return pA}function pB(c){return function(f,U,aA){var pA=Oe(f);if(!hn(f)){var fA=Ne(U,3);f=Pt(f),U=function(FA){return fA(pA[FA],FA,pA)}}var _A=c(f,U,aA);return _A>-1?pA[fA?f[_A]:_A]:t}}function CB(c){return Di(function(f){var U=f.length,aA=U,pA=Gn.prototype.thru;for(c&&f.reverse();aA--;){var fA=f[aA];if(typeof fA!="function")throw new Ut(o);if(pA&&!_A&&Bl(fA)=="wrapper")var _A=new Gn([],!0)}for(aA=_A?aA:U;++aA<U;){fA=f[aA];var FA=Bl(fA),TA=FA=="wrapper"?Xg(fA):t;TA&&tu(TA[0])&&TA[1]==(d|_|B|l)&&!TA[4].length&&TA[9]==1?_A=_A[Bl(TA[0])].apply(_A,TA[3]):_A=fA.length==1&&tu(fA)?_A[FA]():_A.thru(fA)}return function(){var Ae=arguments,ee=Ae[0];if(_A&&Ae.length==1&&Te(ee))return _A.plant(ee).value();for(var se=0,we=U?f[se].apply(this,Ae):ee;++se<U;)we=f[se].call(this,we);return we}})}function dl(c,f,U,aA,pA,fA,_A,FA,TA,Ae){var ee=f&d,se=f&D,we=f&E,ve=f&(_|v),Fe=f&g,Je=we?t:da(c);function Re(){for(var We=arguments.length,Ve=HA(We),kn=We;kn--;)Ve[kn]=arguments[kn];if(ve)var sn=sr(Re),_n=fg(Ve,sn);if(aA&&(Ve=cB(Ve,aA,pA,ve)),fA&&(Ve=gB(Ve,fA,_A,ve)),We-=_n,ve&&We<Ae){var vt=lA(Ve,sn);return EB(c,f,dl,Re.placeholder,U,Ve,vt,FA,TA,Ae-We)}var Wn=se?U:this,Mi=we?Wn[c]:c;return We=Ve.length,FA?Ve=eN(Ve,FA):Fe&&We>1&&Ve.reverse(),ee&&TA<We&&(Ve.length=TA),this&&this!==Nt&&this instanceof Re&&(Mi=Je||da(Mi)),Mi.apply(Wn,Ve)}return Re}function BB(c,f){return function(U,aA){return l4(U,c,f(aA),{})}}function hl(c,f){return function(U,aA){var pA;if(U===t&&aA===t)return f;if(U!==t&&(pA=U),aA!==t){if(pA===t)return aA;typeof U=="string"||typeof aA=="string"?(U=Dn(U),aA=Dn(aA)):(U=tB(U),aA=tB(aA)),pA=c(U,aA)}return pA}}function Zg(c){return Di(function(f){return f=ht(f,Tt(Ne())),Ze(function(U){var aA=this;return c(f,function(pA){return nn(pA,aA,U)})})})}function pl(c,f){f=f===t?" ":Dn(f);var U=f.length;if(U<2)return U?Tg(f,c):f;var aA=Tg(f,el(c/xA(f)));return Ui(f)?Ji(DA(aA),0,c).join(""):aA.slice(0,c)}function L4(c,f,U,aA){var pA=f&D,fA=da(c);function _A(){for(var FA=-1,TA=arguments.length,Ae=-1,ee=aA.length,se=HA(ee+TA),we=this&&this!==Nt&&this instanceof _A?fA:c;++Ae<ee;)se[Ae]=aA[Ae];for(;TA--;)se[Ae++]=arguments[++FA];return nn(we,pA?U:this,se)}return _A}function mB(c){return function(f,U,aA){return aA&&typeof aA!="number"&&an(f,U,aA)&&(U=aA=t),f=_i(f),U===t?(U=f,f=0):U=_i(U),aA=aA===t?f<U?1:-1:_i(aA),I4(f,U,aA,c)}}function Cl(c){return function(f,U){return typeof f=="string"&&typeof U=="string"||(f=Tn(f),U=Tn(U)),c(f,U)}}function EB(c,f,U,aA,pA,fA,_A,FA,TA,Ae){var ee=f&_,se=ee?_A:t,we=ee?t:_A,ve=ee?fA:t,Fe=ee?t:fA;f|=ee?B:p,f&=~(ee?p:B),f&L||(f&=~(D|E));var Je=[c,f,pA,ve,se,Fe,we,FA,TA,Ae],Re=U.apply(t,Je);return tu(c)&&xB(Re,Je),Re.placeholder=aA,SB(Re,c,f)}function Wg(c){var f=Ke[c];return function(U,aA){if(U=Tn(U),aA=aA==null?0:$t($e(aA),292),aA&&SC(U)){var pA=(at(U)+"e").split("e"),fA=f(pA[0]+"e"+(+pA[1]+aA));return pA=(at(fA)+"e").split("e"),+(pA[0]+"e"+(+pA[1]-aA))}return f(U)}}var G4=nr&&1/hA(new nr([,-0]))[1]==x?function(c){return new nr(c)}:Bu;function QB(c){return function(f){var U=zt(f);return U==uA?Z(f):U==X?mA(f):oi(f,c(f))}}function yi(c,f,U,aA,pA,fA,_A,FA){var TA=f&E;if(!TA&&typeof c!="function")throw new Ut(o);var Ae=aA?aA.length:0;if(Ae||(f&=~(B|p),aA=pA=t),_A=_A===t?_A:Ft($e(_A),0),FA=FA===t?FA:$e(FA),Ae-=pA?pA.length:0,f&p){var ee=aA,se=pA;aA=pA=t}var we=TA?t:Xg(c),ve=[c,f,U,aA,pA,ee,se,fA,_A,FA];if(we&&X4(ve,we),c=ve[0],f=ve[1],U=ve[2],aA=ve[3],pA=ve[4],FA=ve[9]=ve[9]===t?TA?0:c.length:Ft(ve[9]-Ae,0),!FA&&f&(_|v)&&(f&=~(_|v)),!f||f==D)var Fe=F4(c,f,U);else f==_||f==v?Fe=R4(c,f,FA):(f==B||f==(D|B))&&!pA.length?Fe=L4(c,f,U,aA):Fe=dl.apply(t,ve);var Je=we?AB:xB;return SB(Je(Fe,ve),c,f)}function IB(c,f,U,aA){return c===t||Zn(c,tr[U])&&!st.call(aA,U)?f:c}function fB(c,f,U,aA,pA,fA){return Qt(c)&&Qt(f)&&(fA.set(f,c),ll(c,f,t,fB,fA),fA.delete(f)),c}function P4(c){return Ca(c)?t:c}function wB(c,f,U,aA,pA,fA){var _A=U&G,FA=c.length,TA=f.length;if(FA!=TA&&!(_A&&TA>FA))return!1;var Ae=fA.get(c),ee=fA.get(f);if(Ae&&ee)return Ae==f&&ee==c;var se=-1,we=!0,ve=U&K?new Io:t;for(fA.set(c,f),fA.set(f,c);++se<FA;){var Fe=c[se],Je=f[se];if(aA)var Re=_A?aA(Je,Fe,se,f,c,fA):aA(Fe,Je,se,c,f,fA);if(Re!==t){if(Re)continue;we=!1;break}if(ve){if(!Qi(f,function(We,Ve){if(!mo(ve,Ve)&&(Fe===We||pA(Fe,We,U,aA,fA)))return ve.push(Ve)})){we=!1;break}}else if(!(Fe===Je||pA(Fe,Je,U,aA,fA))){we=!1;break}}return fA.delete(c),fA.delete(f),we}function H4(c,f,U,aA,pA,fA,_A){switch(U){case qA:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case JA:return!(c.byteLength!=f.byteLength||!fA(new qs(c),new qs(f)));case H:case AA:case BA:return Zn(+c,+f);case oA:return c.name==f.name&&c.message==f.message;case z:case iA:return c==f+"";case uA:var FA=Z;case X:var TA=aA&G;if(FA||(FA=hA),c.size!=f.size&&!TA)return!1;var Ae=_A.get(c);if(Ae)return Ae==f;aA|=K,_A.set(c,f);var ee=wB(FA(c),FA(f),aA,pA,fA,_A);return _A.delete(c),ee;case cA:if(aa)return aa.call(c)==aa.call(f)}return!1}function K4(c,f,U,aA,pA,fA){var _A=U&G,FA=jg(c),TA=FA.length,Ae=jg(f),ee=Ae.length;if(TA!=ee&&!_A)return!1;for(var se=TA;se--;){var we=FA[se];if(!(_A?we in f:st.call(f,we)))return!1}var ve=fA.get(c),Fe=fA.get(f);if(ve&&Fe)return ve==f&&Fe==c;var Je=!0;fA.set(c,f),fA.set(f,c);for(var Re=_A;++se<TA;){we=FA[se];var We=c[we],Ve=f[we];if(aA)var kn=_A?aA(Ve,We,we,f,c,fA):aA(We,Ve,we,c,f,fA);if(!(kn===t?We===Ve||pA(We,Ve,U,aA,fA):kn)){Je=!1;break}Re||(Re=we=="constructor")}if(Je&&!Re){var sn=c.constructor,_n=f.constructor;sn!=_n&&"constructor"in c&&"constructor"in f&&!(typeof sn=="function"&&sn instanceof sn&&typeof _n=="function"&&_n instanceof _n)&&(Je=!1)}return fA.delete(c),fA.delete(f),Je}function Di(c){return iu(_B(c,t,PB),c+"")}function jg(c){return YC(c,Pt,Au)}function qg(c){return YC(c,pn,bB)}var Xg=nl?function(c){return nl.get(c)}:Bu;function Bl(c){for(var f=c.name+"",U=ir[f],aA=st.call(ir,f)?U.length:0;aA--;){var pA=U[aA],fA=pA.func;if(fA==null||fA==c)return pA.name}return f}function sr(c){var f=st.call(QA,"placeholder")?QA:c;return f.placeholder}function Ne(){var c=QA.iteratee||pu;return c=c===pu?zC:c,arguments.length?c(arguments[0],arguments[1]):c}function ml(c,f){var U=c.__data__;return Z4(f)?U[typeof f=="string"?"string":"hash"]:U.map}function Vg(c){for(var f=Pt(c),U=f.length;U--;){var aA=f[U],pA=c[aA];f[U]=[aA,pA,vB(pA)]}return f}function bo(c,f){var U=Dg(c,f);return $C(U)?U:t}function T4(c){var f=st.call(c,Eo),U=c[Eo];try{c[Eo]=t;var aA=!0}catch{}var pA=Ws.call(c);return aA&&(f?c[Eo]=U:delete c[Eo]),pA}var Au=vg?function(c){return c==null?[]:(c=Oe(c),yn(vg(c),function(f){return MC.call(c,f)}))}:mu,bB=vg?function(c){for(var f=[];c;)$n(f,Au(c)),c=Xs(c);return f}:mu,zt=rn;(kg&&zt(new kg(new ArrayBuffer(1)))!=qA||ia&&zt(new ia)!=uA||_g&&zt(_g.resolve())!=rA||nr&&zt(new nr)!=X||oa&&zt(new oa)!=vA)&&(zt=function(c){var f=rn(c),U=f==tA?c.constructor:t,aA=U?yo(U):"";if(aA)switch(aA){case wS:return qA;case bS:return uA;case yS:return rA;case DS:return X;case vS:return vA}return f});function U4(c,f,U){for(var aA=-1,pA=U.length;++aA<pA;){var fA=U[aA],_A=fA.size;switch(fA.type){case"drop":c+=_A;break;case"dropRight":f-=_A;break;case"take":f=$t(f,c+_A);break;case"takeRight":c=Ft(c,f-_A);break}}return{start:c,end:f}}function Y4(c){var f=c.match(bA);return f?f[1].split(RA):[]}function yB(c,f,U){f=zi(f,c);for(var aA=-1,pA=f.length,fA=!1;++aA<pA;){var _A=li(f[aA]);if(!(fA=c!=null&&U(c,_A)))break;c=c[_A]}return fA||++aA!=pA?fA:(pA=c==null?0:c.length,!!pA&&yl(pA)&&vi(_A,pA)&&(Te(c)||Do(c)))}function O4(c){var f=c.length,U=new c.constructor(f);return f&&typeof c[0]=="string"&&st.call(c,"index")&&(U.index=c.index,U.input=c.input),U}function DB(c){return typeof c.constructor=="function"&&!ha(c)?or(Xs(c)):{}}function $4(c,f,U){var aA=c.constructor;switch(f){case JA:return Jg(c);case H:case AA:return new aA(+c);case qA:return k4(c,U);case WA:case ue:case te:case LA:case SA:case ZA:case Be:case De:case Se:return sB(c,U);case uA:return new aA;case BA:case iA:return new aA(c);case z:return _4(c);case X:return new aA;case cA:return M4(c)}}function z4(c,f){var U=f.length;if(!U)return c;var aA=U-1;return f[aA]=(U>1?"& ":"")+f[aA],f=f.join(U>2?", ":" "),c.replace(MA,`{
9
9
  /* [wrapped with `+f+`] */
10
- `)}function J4(c){return Te(c)||Do(c)||!!(xC&&c&&c[xC])}function vi(c,f){var U=typeof c;return f=f??S,!!f&&(U=="number"||U!="symbol"&&gt.test(c))&&c>-1&&c%1==0&&c<f}function an(c,f,U){if(!Qt(U))return!1;var aA=typeof f;return(aA=="number"?hn(U)&&vi(f,U.length):aA=="string"&&f in U)?Zn(U[f],c):!1}function eu(c,f){if(Te(c))return!1;var U=typeof c;return U=="number"||U=="symbol"||U=="boolean"||c==null||vn(c)?!0:be.test(c)||!oe.test(c)||f!=null&&c in Oe(f)}function Z4(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}function tu(c){var f=Bl(c),U=QA[f];if(typeof U!="function"||!(f in Xe.prototype))return!1;if(c===U)return!0;var aA=Xg(U);return!!aA&&c===aA[0]}function W4(c){return!!vC&&vC in c}var j4=Js?ki:Eu;function ha(c){var f=c&&c.constructor,U=typeof f=="function"&&f.prototype||tr;return c===U}function vB(c){return c===c&&!Qt(c)}function kB(c,f){return function(U){return U==null?!1:U[c]===f&&(f!==t||c in Oe(U))}}function q4(c){var f=wl(c,function(aA){return U.size===w&&U.clear(),aA}),U=f.cache;return f}function X4(c,f){var U=c[1],aA=f[1],pA=U|aA,fA=pA<(D|E|d),_A=aA==d&&U==_||aA==d&&U==l&&c[7].length<=f[8]||aA==(d|l)&&f[7].length<=f[8]&&U==_;if(!(fA||_A))return c;aA&D&&(c[2]=f[2],pA|=U&D?0:L);var FA=f[3];if(FA){var TA=c[3];c[3]=TA?cB(TA,FA,f[4]):FA,c[4]=TA?lA(c[3],M):f[4]}return FA=f[5],FA&&(TA=c[5],c[5]=TA?gB(TA,FA,f[6]):FA,c[6]=TA?lA(c[5],M):f[6]),FA=f[7],FA&&(c[7]=FA),aA&d&&(c[8]=c[8]==null?f[8]:$t(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=pA,c}function V4(c){var f=[];if(c!=null)for(var U in Oe(c))f.push(U);return f}function AN(c){return Ws.call(c)}function _B(c,f,U){return f=Ft(f===t?c.length-1:f,0),function(){for(var aA=arguments,pA=-1,fA=Ft(aA.length-f,0),_A=HA(fA);++pA<fA;)_A[pA]=aA[f+pA];pA=-1;for(var FA=HA(f+1);++pA<f;)FA[pA]=aA[pA];return FA[f]=U(_A),nn(c,this,FA)}}function MB(c,f){return f.length<2?c:wo(c,Hn(f,0,-1))}function eN(c,f){for(var U=c.length,aA=$t(f.length,U),pA=dn(c);aA--;){var fA=f[aA];c[aA]=vi(fA,U)?pA[fA]:t}return c}function nu(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}var xB=NB(AB),pa=CS||function(c,f){return Nt.setTimeout(c,f)},iu=NB(b4);function SB(c,f,U){var aA=f+"";return iu(c,z4(aA,tN(Y4(aA),U)))}function NB(c){var f=0,U=0;return function(){var aA=QS(),pA=a-(aA-U);if(U=aA,pA>0){if(++f>=C)return arguments[0]}else f=0;return c.apply(t,arguments)}}function El(c,f){var U=-1,aA=c.length,pA=aA-1;for(f=f===t?aA:f;++U<f;){var fA=Kg(U,pA),_A=c[fA];c[fA]=c[U],c[U]=_A}return c.length=f,c}var FB=q4(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(re,function(U,aA,pA,fA){f.push(pA?fA.replace(fe,"$1"):aA||U)}),f});function li(c){if(typeof c=="string"||vn(c))return c;var f=c+"";return f=="0"&&1/c==-x?"-0":f}function yo(c){if(c!=null){try{return Zs.call(c)}catch{}try{return c+""}catch{}}return""}function tN(c,f){return un(O,function(U){var aA="_."+U[0];f&U[1]&&!Ln(c,aA)&&c.push(aA)}),c.sort()}function RB(c){if(c instanceof Xe)return c.clone();var f=new Gn(c.__wrapped__,c.__chain__);return f.__actions__=dn(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}function nN(c,f,U){(U?an(c,f,U):f===t)?f=1:f=Ft($e(f),0);var aA=c==null?0:c.length;if(!aA||f<1)return[];for(var pA=0,fA=0,_A=HA(el(aA/f));pA<aA;)_A[fA++]=Hn(c,pA,pA+=f);return _A}function iN(c){for(var f=-1,U=c==null?0:c.length,aA=0,pA=[];++f<U;){var fA=c[f];fA&&(pA[aA++]=fA)}return pA}function oN(){var c=arguments.length;if(!c)return[];for(var f=HA(c-1),U=arguments[0],aA=c;aA--;)f[aA-1]=arguments[aA];return $n(Te(U)?dn(U):[U],Yt(f,1))}var rN=Ze(function(c,f){return Dt(c)?la(c,Yt(f,1,Dt,!0)):[]}),aN=Ze(function(c,f){var U=Kn(f);return Dt(U)&&(U=t),Dt(c)?la(c,Yt(f,1,Dt,!0),Ne(U,2)):[]}),sN=Ze(function(c,f){var U=Kn(f);return Dt(U)&&(U=t),Dt(c)?la(c,Yt(f,1,Dt,!0),t,U):[]});function lN(c,f,U){var aA=c==null?0:c.length;return aA?(f=U||f===t?1:$e(f),Hn(c,f<0?0:f,aA)):[]}function cN(c,f,U){var aA=c==null?0:c.length;return aA?(f=U||f===t?1:$e(f),f=aA-f,Hn(c,0,f<0?0:f)):[]}function gN(c,f){return c&&c.length?gl(c,Ne(f,3),!0,!0):[]}function uN(c,f){return c&&c.length?gl(c,Ne(f,3),!0):[]}function dN(c,f,U,aA){var pA=c==null?0:c.length;return pA?(U&&typeof U!="number"&&an(c,f,U)&&(U=0,aA=pA),o4(c,f,U,aA)):[]}function LB(c,f,U){var aA=c==null?0:c.length;if(!aA)return-1;var pA=U==null?0:$e(U);return pA<0&&(pA=Ft(aA+pA,0)),Ar(c,Ne(f,3),pA)}function GB(c,f,U){var aA=c==null?0:c.length;if(!aA)return-1;var pA=aA-1;return U!==t&&(pA=$e(U),pA=U<0?Ft(aA+pA,0):$t(pA,aA-1)),Ar(c,Ne(f,3),pA,!0)}function PB(c){var f=c==null?0:c.length;return f?Yt(c,1):[]}function hN(c){var f=c==null?0:c.length;return f?Yt(c,x):[]}function pN(c,f){var U=c==null?0:c.length;return U?(f=f===t?1:$e(f),Yt(c,f)):[]}function CN(c){for(var f=-1,U=c==null?0:c.length,aA={};++f<U;){var pA=c[f];aA[pA[0]]=pA[1]}return aA}function HB(c){return c&&c.length?c[0]:t}function BN(c,f,U){var aA=c==null?0:c.length;if(!aA)return-1;var pA=U==null?0:$e(U);return pA<0&&(pA=Ft(aA+pA,0)),Ti(c,f,pA)}function mN(c){var f=c==null?0:c.length;return f?Hn(c,0,-1):[]}var EN=Ze(function(c){var f=ht(c,$g);return f.length&&f[0]===c[0]?Rg(f):[]}),QN=Ze(function(c){var f=Kn(c),U=ht(c,$g);return f===Kn(U)?f=t:U.pop(),U.length&&U[0]===c[0]?Rg(U,Ne(f,2)):[]}),IN=Ze(function(c){var f=Kn(c),U=ht(c,$g);return f=typeof f=="function"?f:t,f&&U.pop(),U.length&&U[0]===c[0]?Rg(U,t,f):[]});function fN(c,f){return c==null?"":mS.call(c,f)}function Kn(c){var f=c==null?0:c.length;return f?c[f-1]:t}function wN(c,f,U){var aA=c==null?0:c.length;if(!aA)return-1;var pA=aA;return U!==t&&(pA=$e(U),pA=pA<0?Ft(aA+pA,0):$t(pA,aA-1)),f===f?yA(c,f,pA):Ar(c,Ys,pA,!0)}function bN(c,f){return c&&c.length?jC(c,$e(f)):t}var yN=Ze(KB);function KB(c,f){return c&&c.length&&f&&f.length?Hg(c,f):c}function DN(c,f,U){return c&&c.length&&f&&f.length?Hg(c,f,Ne(U,2)):c}function vN(c,f,U){return c&&c.length&&f&&f.length?Hg(c,f,t,U):c}var kN=Di(function(c,f){var U=c==null?0:c.length,aA=xg(c,f);return VC(c,ht(f,function(pA){return vi(pA,U)?+pA:pA}).sort(lB)),aA});function _N(c,f){var U=[];if(!(c&&c.length))return U;var aA=-1,pA=[],fA=c.length;for(f=Ne(f,3);++aA<fA;){var _A=c[aA];f(_A,aA,c)&&(U.push(_A),pA.push(aA))}return VC(c,pA),U}function ou(c){return c==null?c:fS.call(c)}function MN(c,f,U){var aA=c==null?0:c.length;return aA?(U&&typeof U!="number"&&an(c,f,U)?(f=0,U=aA):(f=f==null?0:$e(f),U=U===t?aA:$e(U)),Hn(c,f,U)):[]}function xN(c,f){return cl(c,f)}function SN(c,f,U){return Ug(c,f,Ne(U,2))}function NN(c,f){var U=c==null?0:c.length;if(U){var aA=cl(c,f);if(aA<U&&Zn(c[aA],f))return aA}return-1}function FN(c,f){return cl(c,f,!0)}function RN(c,f,U){return Ug(c,f,Ne(U,2),!0)}function LN(c,f){var U=c==null?0:c.length;if(U){var aA=cl(c,f,!0)-1;if(Zn(c[aA],f))return aA}return-1}function GN(c){return c&&c.length?eB(c):[]}function PN(c,f){return c&&c.length?eB(c,Ne(f,2)):[]}function HN(c){var f=c==null?0:c.length;return f?Hn(c,1,f):[]}function KN(c,f,U){return c&&c.length?(f=U||f===t?1:$e(f),Hn(c,0,f<0?0:f)):[]}function TN(c,f,U){var aA=c==null?0:c.length;return aA?(f=U||f===t?1:$e(f),f=aA-f,Hn(c,f<0?0:f,aA)):[]}function UN(c,f){return c&&c.length?gl(c,Ne(f,3),!1,!0):[]}function YN(c,f){return c&&c.length?gl(c,Ne(f,3)):[]}var ON=Ze(function(c){return $i(Yt(c,1,Dt,!0))}),$N=Ze(function(c){var f=Kn(c);return Dt(f)&&(f=t),$i(Yt(c,1,Dt,!0),Ne(f,2))}),zN=Ze(function(c){var f=Kn(c);return f=typeof f=="function"?f:t,$i(Yt(c,1,Dt,!0),t,f)});function JN(c){return c&&c.length?$i(c):[]}function ZN(c,f){return c&&c.length?$i(c,Ne(f,2)):[]}function WN(c,f){return f=typeof f=="function"?f:t,c&&c.length?$i(c,t,f):[]}function ru(c){if(!(c&&c.length))return[];var f=0;return c=yn(c,function(U){if(Dt(U))return f=Ft(U.length,f),!0}),Ii(f,function(U){return ht(c,Aa(U))})}function TB(c,f){if(!(c&&c.length))return[];var U=ru(c);return f==null?U:ht(U,function(aA){return nn(f,t,aA)})}var jN=Ze(function(c,f){return Dt(c)?la(c,f):[]}),qN=Ze(function(c){return Og(yn(c,Dt))}),XN=Ze(function(c){var f=Kn(c);return Dt(f)&&(f=t),Og(yn(c,Dt),Ne(f,2))}),VN=Ze(function(c){var f=Kn(c);return f=typeof f=="function"?f:t,Og(yn(c,Dt),t,f)}),AF=Ze(ru);function eF(c,f){return oB(c||[],f||[],sa)}function tF(c,f){return oB(c||[],f||[],ua)}var nF=Ze(function(c){var f=c.length,U=f>1?c[f-1]:t;return U=typeof U=="function"?(c.pop(),U):t,TB(c,U)});function UB(c){var f=QA(c);return f.__chain__=!0,f}function iF(c,f){return f(c),c}function Ql(c,f){return f(c)}var oF=Di(function(c){var f=c.length,U=f?c[0]:0,aA=this.__wrapped__,pA=function(fA){return xg(fA,c)};return f>1||this.__actions__.length||!(aA instanceof Xe)||!vi(U)?this.thru(pA):(aA=aA.slice(U,+U+(f?1:0)),aA.__actions__.push({func:Ql,args:[pA],thisArg:t}),new Gn(aA,this.__chain__).thru(function(fA){return f&&!fA.length&&fA.push(t),fA}))});function rF(){return UB(this)}function aF(){return new Gn(this.value(),this.__chain__)}function sF(){this.__values__===t&&(this.__values__=tm(this.value()));var c=this.__index__>=this.__values__.length,f=c?t:this.__values__[this.__index__++];return{done:c,value:f}}function lF(){return this}function cF(c){for(var f,U=this;U instanceof ol;){var aA=RB(U);aA.__index__=0,aA.__values__=t,f?pA.__wrapped__=aA:f=aA;var pA=aA;U=U.__wrapped__}return pA.__wrapped__=c,f}function gF(){var c=this.__wrapped__;if(c instanceof Xe){var f=c;return this.__actions__.length&&(f=new Xe(this)),f=f.reverse(),f.__actions__.push({func:Ql,args:[ou],thisArg:t}),new Gn(f,this.__chain__)}return this.thru(ou)}function uF(){return iB(this.__wrapped__,this.__actions__)}var dF=ul(function(c,f,U){st.call(c,U)?++c[U]:bi(c,U,1)});function hF(c,f,U){var aA=Te(c)?Xr:i4;return U&&an(c,f,U)&&(f=t),aA(c,Ne(f,3))}function pF(c,f){var U=Te(c)?yn:TC;return U(c,Ne(f,3))}var CF=pB(LB),BF=pB(GB);function mF(c,f){return Yt(Il(c,f),1)}function EF(c,f){return Yt(Il(c,f),x)}function QF(c,f,U){return U=U===t?1:$e(U),Yt(Il(c,f),U)}function YB(c,f){var U=Te(c)?un:Oi;return U(c,Ne(f,3))}function OB(c,f){var U=Te(c)?Bg:KC;return U(c,Ne(f,3))}var IF=ul(function(c,f,U){st.call(c,U)?c[U].push(f):bi(c,U,[f])});function fF(c,f,U,aA){c=hn(c)?c:cr(c),U=U&&!aA?$e(U):0;var pA=c.length;return U<0&&(U=Ft(pA+U,0)),Dl(c)?U<=pA&&c.indexOf(f,U)>-1:!!pA&&Ti(c,f,U)>-1}var wF=Ze(function(c,f,U){var aA=-1,pA=typeof f=="function",fA=hn(c)?HA(c.length):[];return Oi(c,function(_A){fA[++aA]=pA?nn(f,_A,U):ca(_A,f,U)}),fA}),bF=ul(function(c,f,U){bi(c,U,f)});function Il(c,f){var U=Te(c)?ht:JC;return U(c,Ne(f,3))}function yF(c,f,U,aA){return c==null?[]:(Te(f)||(f=f==null?[]:[f]),U=aA?t:U,Te(U)||(U=U==null?[]:[U]),qC(c,f,U))}var DF=ul(function(c,f,U){c[U?0:1].push(f)},function(){return[[],[]]});function vF(c,f,U){var aA=Te(c)?Vo:Os,pA=arguments.length<3;return aA(c,Ne(f,4),U,pA,Oi)}function kF(c,f,U){var aA=Te(c)?Ts:Os,pA=arguments.length<3;return aA(c,Ne(f,4),U,pA,KC)}function _F(c,f){var U=Te(c)?yn:TC;return U(c,bl(Ne(f,3)))}function MF(c){var f=Te(c)?LC:f4;return f(c)}function xF(c,f,U){(U?an(c,f,U):f===t)?f=1:f=$e(f);var aA=Te(c)?VS:w4;return aA(c,f)}function SF(c){var f=Te(c)?A4:y4;return f(c)}function NF(c){if(c==null)return 0;if(hn(c))return Dl(c)?xA(c):c.length;var f=zt(c);return f==uA||f==X?c.size:Gg(c).length}function FF(c,f,U){var aA=Te(c)?Qi:D4;return U&&an(c,f,U)&&(f=t),aA(c,Ne(f,3))}var RF=Ze(function(c,f){if(c==null)return[];var U=f.length;return U>1&&an(c,f[0],f[1])?f=[]:U>2&&an(f[0],f[1],f[2])&&(f=[f[0]]),qC(c,Yt(f,1),[])}),fl=pS||function(){return Nt.Date.now()};function LF(c,f){if(typeof f!="function")throw new Ut(o);return c=$e(c),function(){if(--c<1)return f.apply(this,arguments)}}function $B(c,f,U){return f=U?t:f,f=c&&f==null?c.length:f,yi(c,d,t,t,t,t,f)}function zB(c,f){var U;if(typeof f!="function")throw new Ut(o);return c=$e(c),function(){return--c>0&&(U=f.apply(this,arguments)),c<=1&&(f=t),U}}var au=Ze(function(c,f,U){var aA=D;if(U.length){var pA=lA(U,sr(au));aA|=B}return yi(c,aA,f,U,pA)}),JB=Ze(function(c,f,U){var aA=D|E;if(U.length){var pA=lA(U,sr(JB));aA|=B}return yi(f,aA,c,U,pA)});function ZB(c,f,U){f=U?t:f;var aA=yi(c,_,t,t,t,t,t,f);return aA.placeholder=ZB.placeholder,aA}function WB(c,f,U){f=U?t:f;var aA=yi(c,v,t,t,t,t,t,f);return aA.placeholder=WB.placeholder,aA}function jB(c,f,U){var aA,pA,fA,_A,FA,TA,Ae=0,ee=!1,se=!1,we=!0;if(typeof c!="function")throw new Ut(o);f=Tn(f)||0,Qt(U)&&(ee=!!U.leading,se="maxWait"in U,fA=se?Ft(Tn(U.maxWait)||0,f):fA,we="trailing"in U?!!U.trailing:we);function ve(vt){var Wn=aA,Mi=pA;return aA=pA=t,Ae=vt,_A=c.apply(Mi,Wn),_A}function Fe(vt){return Ae=vt,FA=pa(We,f),ee?ve(vt):_A}function Je(vt){var Wn=vt-TA,Mi=vt-Ae,pm=f-Wn;return se?$t(pm,fA-Mi):pm}function Re(vt){var Wn=vt-TA,Mi=vt-Ae;return TA===t||Wn>=f||Wn<0||se&&Mi>=fA}function We(){var vt=fl();if(Re(vt))return Ve(vt);FA=pa(We,Je(vt))}function Ve(vt){return FA=t,we&&aA?ve(vt):(aA=pA=t,_A)}function kn(){FA!==t&&rB(FA),Ae=0,aA=TA=pA=FA=t}function sn(){return FA===t?_A:Ve(fl())}function _n(){var vt=fl(),Wn=Re(vt);if(aA=arguments,pA=this,TA=vt,Wn){if(FA===t)return Fe(TA);if(se)return rB(FA),FA=pa(We,f),ve(TA)}return FA===t&&(FA=pa(We,f)),_A}return _n.cancel=kn,_n.flush=sn,_n}var GF=Ze(function(c,f){return HC(c,1,f)}),PF=Ze(function(c,f,U){return HC(c,Tn(f)||0,U)});function HF(c){return yi(c,g)}function wl(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Ut(o);var U=function(){var aA=arguments,pA=f?f.apply(this,aA):aA[0],fA=U.cache;if(fA.has(pA))return fA.get(pA);var _A=c.apply(this,aA);return U.cache=fA.set(pA,_A)||fA,_A};return U.cache=new(wl.Cache||wi),U}wl.Cache=wi;function bl(c){if(typeof c!="function")throw new Ut(o);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}function KF(c){return zB(2,c)}var TF=v4(function(c,f){f=f.length==1&&Te(f[0])?ht(f[0],Tt(Ne())):ht(Yt(f,1),Tt(Ne()));var U=f.length;return Ze(function(aA){for(var pA=-1,fA=$t(aA.length,U);++pA<fA;)aA[pA]=f[pA].call(this,aA[pA]);return nn(c,this,aA)})}),su=Ze(function(c,f){var U=lA(f,sr(su));return yi(c,B,t,f,U)}),qB=Ze(function(c,f){var U=lA(f,sr(qB));return yi(c,p,t,f,U)}),UF=Di(function(c,f){return yi(c,l,t,t,t,f)});function YF(c,f){if(typeof c!="function")throw new Ut(o);return f=f===t?f:$e(f),Ze(c,f)}function OF(c,f){if(typeof c!="function")throw new Ut(o);return f=f==null?0:Ft($e(f),0),Ze(function(U){var aA=U[f],pA=Ji(U,0,f);return aA&&$n(pA,aA),nn(c,this,pA)})}function $F(c,f,U){var aA=!0,pA=!0;if(typeof c!="function")throw new Ut(o);return Qt(U)&&(aA="leading"in U?!!U.leading:aA,pA="trailing"in U?!!U.trailing:pA),jB(c,f,{leading:aA,maxWait:f,trailing:pA})}function zF(c){return $B(c,1)}function JF(c,f){return su(zg(f),c)}function ZF(){if(!arguments.length)return[];var c=arguments[0];return Te(c)?c:[c]}function WF(c){return Pn(c,Y)}function jF(c,f){return f=typeof f=="function"?f:t,Pn(c,Y,f)}function qF(c){return Pn(c,N|Y)}function XF(c,f){return f=typeof f=="function"?f:t,Pn(c,N|Y,f)}function VF(c,f){return f==null||PC(c,f,Pt(f))}function Zn(c,f){return c===f||c!==c&&f!==f}var AR=Cl(Fg),eR=Cl(function(c,f){return c>=f}),Do=OC(function(){return arguments}())?OC:function(c){return bt(c)&&st.call(c,"callee")&&!MC.call(c,"callee")},Te=HA.isArray,tR=qr?Tt(qr):c4;function hn(c){return c!=null&&yl(c.length)&&!ki(c)}function Dt(c){return bt(c)&&hn(c)}function nR(c){return c===!0||c===!1||bt(c)&&rn(c)==H}var Zi=BS||Eu,iR=Gt?Tt(Gt):g4;function oR(c){return bt(c)&&c.nodeType===1&&!Ca(c)}function rR(c){if(c==null)return!0;if(hn(c)&&(Te(c)||typeof c=="string"||typeof c.splice=="function"||Zi(c)||lr(c)||Do(c)))return!c.length;var f=zt(c);if(f==uA||f==X)return!c.size;if(ha(c))return!Gg(c).length;for(var U in c)if(st.call(c,U))return!1;return!0}function aR(c,f){return ga(c,f)}function sR(c,f,U){U=typeof U=="function"?U:t;var aA=U?U(c,f):t;return aA===t?ga(c,f,t,U):!!aA}function lu(c){if(!bt(c))return!1;var f=rn(c);return f==oA||f==sA||typeof c.message=="string"&&typeof c.name=="string"&&!Ca(c)}function lR(c){return typeof c=="number"&&SC(c)}function ki(c){if(!Qt(c))return!1;var f=rn(c);return f==dA||f==EA||f==V||f==gA}function XB(c){return typeof c=="number"&&c==$e(c)}function yl(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=S}function Qt(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}function bt(c){return c!=null&&typeof c=="object"}var VB=Gs?Tt(Gs):d4;function cR(c,f){return c===f||Lg(c,f,Vg(f))}function gR(c,f,U){return U=typeof U=="function"?U:t,Lg(c,f,Vg(f),U)}function uR(c){return Am(c)&&c!=+c}function dR(c){if(j4(c))throw new Ce(I);return $C(c)}function hR(c){return c===null}function pR(c){return c==null}function Am(c){return typeof c=="number"||bt(c)&&rn(c)==BA}function Ca(c){if(!bt(c)||rn(c)!=tA)return!1;var f=Xs(c);if(f===null)return!0;var U=st.call(f,"constructor")&&f.constructor;return typeof U=="function"&&U instanceof U&&Zs.call(U)==gS}var cu=Ps?Tt(Ps):h4;function CR(c){return XB(c)&&c>=-S&&c<=S}var em=Hs?Tt(Hs):p4;function Dl(c){return typeof c=="string"||!Te(c)&&bt(c)&&rn(c)==iA}function vn(c){return typeof c=="symbol"||bt(c)&&rn(c)==cA}var lr=Ks?Tt(Ks):C4;function BR(c){return c===t}function mR(c){return bt(c)&&zt(c)==vA}function ER(c){return bt(c)&&rn(c)==GA}var QR=Cl(Pg),IR=Cl(function(c,f){return c<=f});function tm(c){if(!c)return[];if(hn(c))return Dl(c)?DA(c):dn(c);if(na&&c[na])return F(c[na]());var f=zt(c),U=f==uA?Z:f==X?hA:cr;return U(c)}function _i(c){if(!c)return c===0?c:0;if(c=Tn(c),c===x||c===-x){var f=c<0?-1:1;return f*T}return c===c?c:0}function $e(c){var f=_i(c),U=f%1;return f===f?U?f-U:f:0}function nm(c){return c?fo($e(c),0,eA):0}function Tn(c){if(typeof c=="number")return c;if(vn(c))return $;if(Qt(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=Qt(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=ea(c);var U=pt.test(c);return U||At.test(c)?Rs(c.slice(2),U?2:8):qe.test(c)?$:+c}function im(c){return si(c,pn(c))}function fR(c){return c?fo($e(c),-S,S):c===0?c:0}function at(c){return c==null?"":Dn(c)}var wR=rr(function(c,f){if(ha(f)||hn(f)){si(f,Pt(f),c);return}for(var U in f)st.call(f,U)&&sa(c,U,f[U])}),om=rr(function(c,f){si(f,pn(f),c)}),vl=rr(function(c,f,U,aA){si(f,pn(f),c,aA)}),bR=rr(function(c,f,U,aA){si(f,Pt(f),c,aA)}),yR=Di(xg);function DR(c,f){var U=or(c);return f==null?U:GC(U,f)}var vR=Ze(function(c,f){c=Oe(c);var U=-1,aA=f.length,pA=aA>2?f[2]:t;for(pA&&an(f[0],f[1],pA)&&(aA=1);++U<aA;)for(var fA=f[U],_A=pn(fA),FA=-1,TA=_A.length;++FA<TA;){var Ae=_A[FA],ee=c[Ae];(ee===t||Zn(ee,tr[Ae])&&!st.call(c,Ae))&&(c[Ae]=fA[Ae])}return c}),kR=Ze(function(c){return c.push(t,fB),nn(rm,t,c)});function _R(c,f){return Us(c,Ne(f,3),ai)}function MR(c,f){return Us(c,Ne(f,3),Ng)}function xR(c,f){return c==null?c:Sg(c,Ne(f,3),pn)}function SR(c,f){return c==null?c:UC(c,Ne(f,3),pn)}function NR(c,f){return c&&ai(c,Ne(f,3))}function FR(c,f){return c&&Ng(c,Ne(f,3))}function RR(c){return c==null?[]:sl(c,Pt(c))}function LR(c){return c==null?[]:sl(c,pn(c))}function gu(c,f,U){var aA=c==null?t:wo(c,f);return aA===t?U:aA}function GR(c,f){return c!=null&&yB(c,f,r4)}function uu(c,f){return c!=null&&yB(c,f,a4)}var PR=BB(function(c,f,U){f!=null&&typeof f.toString!="function"&&(f=Ws.call(f)),c[f]=U},hu(Cn)),HR=BB(function(c,f,U){f!=null&&typeof f.toString!="function"&&(f=Ws.call(f)),st.call(c,f)?c[f].push(U):c[f]=[U]},Ne),KR=Ze(ca);function Pt(c){return hn(c)?RC(c):Gg(c)}function pn(c){return hn(c)?RC(c,!0):B4(c)}function TR(c,f){var U={};return f=Ne(f,3),ai(c,function(aA,pA,fA){bi(U,f(aA,pA,fA),aA)}),U}function UR(c,f){var U={};return f=Ne(f,3),ai(c,function(aA,pA,fA){bi(U,pA,f(aA,pA,fA))}),U}var YR=rr(function(c,f,U){ll(c,f,U)}),rm=rr(function(c,f,U,aA){ll(c,f,U,aA)}),OR=Di(function(c,f){var U={};if(c==null)return U;var aA=!1;f=ht(f,function(fA){return fA=zi(fA,c),aA||(aA=fA.length>1),fA}),si(c,qg(c),U),aA&&(U=Pn(U,N|P|Y,P4));for(var pA=f.length;pA--;)Yg(U,f[pA]);return U});function $R(c,f){return am(c,bl(Ne(f)))}var zR=Di(function(c,f){return c==null?{}:E4(c,f)});function am(c,f){if(c==null)return{};var U=ht(qg(c),function(aA){return[aA]});return f=Ne(f),XC(c,U,function(aA,pA){return f(aA,pA[0])})}function JR(c,f,U){f=zi(f,c);var aA=-1,pA=f.length;for(pA||(pA=1,c=t);++aA<pA;){var fA=c==null?t:c[li(f[aA])];fA===t&&(aA=pA,fA=U),c=ki(fA)?fA.call(c):fA}return c}function ZR(c,f,U){return c==null?c:ua(c,f,U)}function WR(c,f,U,aA){return aA=typeof aA=="function"?aA:t,c==null?c:ua(c,f,U,aA)}var sm=QB(Pt),lm=QB(pn);function jR(c,f,U){var aA=Te(c),pA=aA||Zi(c)||lr(c);if(f=Ne(f,4),U==null){var fA=c&&c.constructor;pA?U=aA?new fA:[]:Qt(c)?U=ki(fA)?or(Xs(c)):{}:U={}}return(pA?un:ai)(c,function(_A,FA,TA){return f(U,_A,FA,TA)}),U}function qR(c,f){return c==null?!0:Yg(c,f)}function XR(c,f,U){return c==null?c:nB(c,f,zg(U))}function VR(c,f,U,aA){return aA=typeof aA=="function"?aA:t,c==null?c:nB(c,f,zg(U),aA)}function cr(c){return c==null?[]:ta(c,Pt(c))}function AL(c){return c==null?[]:ta(c,pn(c))}function eL(c,f,U){return U===t&&(U=f,f=t),U!==t&&(U=Tn(U),U=U===U?U:0),f!==t&&(f=Tn(f),f=f===f?f:0),fo(Tn(c),f,U)}function tL(c,f,U){return f=_i(f),U===t?(U=f,f=0):U=_i(U),c=Tn(c),s4(c,f,U)}function nL(c,f,U){if(U&&typeof U!="boolean"&&an(c,f,U)&&(f=U=t),U===t&&(typeof f=="boolean"?(U=f,f=t):typeof c=="boolean"&&(U=c,c=t)),c===t&&f===t?(c=0,f=1):(c=_i(c),f===t?(f=c,c=0):f=_i(f)),c>f){var aA=c;c=f,f=aA}if(U||c%1||f%1){var pA=NC();return $t(c+pA*(f-c+Fs("1e-"+((pA+"").length-1))),f)}return Kg(c,f)}var iL=ar(function(c,f,U){return f=f.toLowerCase(),c+(U?cm(f):f)});function cm(c){return du(at(c).toLowerCase())}function gm(c){return c=at(c),c&&c.replace(Pe,wg).replace(Ms,"")}function oL(c,f,U){c=at(c),f=Dn(f);var aA=c.length;U=U===t?aA:fo($e(U),0,aA);var pA=U;return U-=f.length,U>=0&&c.slice(U,pA)==f}function rL(c){return c=at(c),c&&ke.test(c)?c.replace(ce,bg):c}function aL(c){return c=at(c),c&&Me.test(c)?c.replace(ge,"\\$&"):c}var sL=ar(function(c,f,U){return c+(U?"-":"")+f.toLowerCase()}),lL=ar(function(c,f,U){return c+(U?" ":"")+f.toLowerCase()}),cL=hB("toLowerCase");function gL(c,f,U){c=at(c),f=$e(f);var aA=f?xA(c):0;if(!f||aA>=f)return c;var pA=(f-aA)/2;return pl(tl(pA),U)+c+pl(el(pA),U)}function uL(c,f,U){c=at(c),f=$e(f);var aA=f?xA(c):0;return f&&aA<f?c+pl(f-aA,U):c}function dL(c,f,U){c=at(c),f=$e(f);var aA=f?xA(c):0;return f&&aA<f?pl(f-aA,U)+c:c}function hL(c,f,U){return U||f==null?f=0:f&&(f=+f),IS(at(c).replace(tt,""),f||0)}function pL(c,f,U){return(U?an(c,f,U):f===t)?f=1:f=$e(f),Tg(at(c),f)}function CL(){var c=arguments,f=at(c[0]);return c.length<3?f:f.replace(c[1],c[2])}var BL=ar(function(c,f,U){return c+(U?"_":"")+f.toLowerCase()});function mL(c,f,U){return U&&typeof U!="number"&&an(c,f,U)&&(f=U=t),U=U===t?eA:U>>>0,U?(c=at(c),c&&(typeof f=="string"||f!=null&&!cu(f))&&(f=Dn(f),!f&&Ui(c))?Ji(DA(c),0,U):c.split(f,U)):[]}var EL=ar(function(c,f,U){return c+(U?" ":"")+du(f)});function QL(c,f,U){return c=at(c),U=U==null?0:fo($e(U),0,c.length),f=Dn(f),c.slice(U,U+f.length)==f}function IL(c,f,U){var aA=QA.templateSettings;U&&an(c,f,U)&&(f=t),c=at(c),f=vl({},f,aA,IB);var pA=vl({},f.imports,aA.imports,IB),fA=Pt(pA),_A=ta(pA,fA),FA,TA,Ae=0,ee=f.interpolate||ot,se="__p += '",we=on((f.escape||ot).source+"|"+ee.source+"|"+(ee===KA?ne:ot).source+"|"+(f.evaluate||ot).source+"|$","g"),ve="//# sourceURL="+(st.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++po+"]")+`
10
+ `)}function J4(c){return Te(c)||Do(c)||!!(xC&&c&&c[xC])}function vi(c,f){var U=typeof c;return f=f??S,!!f&&(U=="number"||U!="symbol"&&gt.test(c))&&c>-1&&c%1==0&&c<f}function an(c,f,U){if(!Qt(U))return!1;var aA=typeof f;return(aA=="number"?hn(U)&&vi(f,U.length):aA=="string"&&f in U)?Zn(U[f],c):!1}function eu(c,f){if(Te(c))return!1;var U=typeof c;return U=="number"||U=="symbol"||U=="boolean"||c==null||vn(c)?!0:be.test(c)||!oe.test(c)||f!=null&&c in Oe(f)}function Z4(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}function tu(c){var f=Bl(c),U=QA[f];if(typeof U!="function"||!(f in Xe.prototype))return!1;if(c===U)return!0;var aA=Xg(U);return!!aA&&c===aA[0]}function W4(c){return!!vC&&vC in c}var j4=Js?ki:Eu;function ha(c){var f=c&&c.constructor,U=typeof f=="function"&&f.prototype||tr;return c===U}function vB(c){return c===c&&!Qt(c)}function kB(c,f){return function(U){return U==null?!1:U[c]===f&&(f!==t||c in Oe(U))}}function q4(c){var f=wl(c,function(aA){return U.size===w&&U.clear(),aA}),U=f.cache;return f}function X4(c,f){var U=c[1],aA=f[1],pA=U|aA,fA=pA<(D|E|d),_A=aA==d&&U==_||aA==d&&U==l&&c[7].length<=f[8]||aA==(d|l)&&f[7].length<=f[8]&&U==_;if(!(fA||_A))return c;aA&D&&(c[2]=f[2],pA|=U&D?0:L);var FA=f[3];if(FA){var TA=c[3];c[3]=TA?cB(TA,FA,f[4]):FA,c[4]=TA?lA(c[3],M):f[4]}return FA=f[5],FA&&(TA=c[5],c[5]=TA?gB(TA,FA,f[6]):FA,c[6]=TA?lA(c[5],M):f[6]),FA=f[7],FA&&(c[7]=FA),aA&d&&(c[8]=c[8]==null?f[8]:$t(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=pA,c}function V4(c){var f=[];if(c!=null)for(var U in Oe(c))f.push(U);return f}function AN(c){return Ws.call(c)}function _B(c,f,U){return f=Ft(f===t?c.length-1:f,0),function(){for(var aA=arguments,pA=-1,fA=Ft(aA.length-f,0),_A=HA(fA);++pA<fA;)_A[pA]=aA[f+pA];pA=-1;for(var FA=HA(f+1);++pA<f;)FA[pA]=aA[pA];return FA[f]=U(_A),nn(c,this,FA)}}function MB(c,f){return f.length<2?c:wo(c,Hn(f,0,-1))}function eN(c,f){for(var U=c.length,aA=$t(f.length,U),pA=dn(c);aA--;){var fA=f[aA];c[aA]=vi(fA,U)?pA[fA]:t}return c}function nu(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}var xB=NB(AB),pa=CS||function(c,f){return Nt.setTimeout(c,f)},iu=NB(b4);function SB(c,f,U){var aA=f+"";return iu(c,z4(aA,tN(Y4(aA),U)))}function NB(c){var f=0,U=0;return function(){var aA=QS(),pA=a-(aA-U);if(U=aA,pA>0){if(++f>=C)return arguments[0]}else f=0;return c.apply(t,arguments)}}function El(c,f){var U=-1,aA=c.length,pA=aA-1;for(f=f===t?aA:f;++U<f;){var fA=Kg(U,pA),_A=c[fA];c[fA]=c[U],c[U]=_A}return c.length=f,c}var FB=q4(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(re,function(U,aA,pA,fA){f.push(pA?fA.replace(fe,"$1"):aA||U)}),f});function li(c){if(typeof c=="string"||vn(c))return c;var f=c+"";return f=="0"&&1/c==-x?"-0":f}function yo(c){if(c!=null){try{return Zs.call(c)}catch{}try{return c+""}catch{}}return""}function tN(c,f){return un(O,function(U){var aA="_."+U[0];f&U[1]&&!Ln(c,aA)&&c.push(aA)}),c.sort()}function RB(c){if(c instanceof Xe)return c.clone();var f=new Gn(c.__wrapped__,c.__chain__);return f.__actions__=dn(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}function nN(c,f,U){(U?an(c,f,U):f===t)?f=1:f=Ft($e(f),0);var aA=c==null?0:c.length;if(!aA||f<1)return[];for(var pA=0,fA=0,_A=HA(el(aA/f));pA<aA;)_A[fA++]=Hn(c,pA,pA+=f);return _A}function iN(c){for(var f=-1,U=c==null?0:c.length,aA=0,pA=[];++f<U;){var fA=c[f];fA&&(pA[aA++]=fA)}return pA}function oN(){var c=arguments.length;if(!c)return[];for(var f=HA(c-1),U=arguments[0],aA=c;aA--;)f[aA-1]=arguments[aA];return $n(Te(U)?dn(U):[U],Yt(f,1))}var rN=Ze(function(c,f){return Dt(c)?la(c,Yt(f,1,Dt,!0)):[]}),aN=Ze(function(c,f){var U=Kn(f);return Dt(U)&&(U=t),Dt(c)?la(c,Yt(f,1,Dt,!0),Ne(U,2)):[]}),sN=Ze(function(c,f){var U=Kn(f);return Dt(U)&&(U=t),Dt(c)?la(c,Yt(f,1,Dt,!0),t,U):[]});function lN(c,f,U){var aA=c==null?0:c.length;return aA?(f=U||f===t?1:$e(f),Hn(c,f<0?0:f,aA)):[]}function cN(c,f,U){var aA=c==null?0:c.length;return aA?(f=U||f===t?1:$e(f),f=aA-f,Hn(c,0,f<0?0:f)):[]}function gN(c,f){return c&&c.length?gl(c,Ne(f,3),!0,!0):[]}function uN(c,f){return c&&c.length?gl(c,Ne(f,3),!0):[]}function dN(c,f,U,aA){var pA=c==null?0:c.length;return pA?(U&&typeof U!="number"&&an(c,f,U)&&(U=0,aA=pA),o4(c,f,U,aA)):[]}function LB(c,f,U){var aA=c==null?0:c.length;if(!aA)return-1;var pA=U==null?0:$e(U);return pA<0&&(pA=Ft(aA+pA,0)),Ar(c,Ne(f,3),pA)}function GB(c,f,U){var aA=c==null?0:c.length;if(!aA)return-1;var pA=aA-1;return U!==t&&(pA=$e(U),pA=U<0?Ft(aA+pA,0):$t(pA,aA-1)),Ar(c,Ne(f,3),pA,!0)}function PB(c){var f=c==null?0:c.length;return f?Yt(c,1):[]}function hN(c){var f=c==null?0:c.length;return f?Yt(c,x):[]}function pN(c,f){var U=c==null?0:c.length;return U?(f=f===t?1:$e(f),Yt(c,f)):[]}function CN(c){for(var f=-1,U=c==null?0:c.length,aA={};++f<U;){var pA=c[f];aA[pA[0]]=pA[1]}return aA}function HB(c){return c&&c.length?c[0]:t}function BN(c,f,U){var aA=c==null?0:c.length;if(!aA)return-1;var pA=U==null?0:$e(U);return pA<0&&(pA=Ft(aA+pA,0)),Ti(c,f,pA)}function mN(c){var f=c==null?0:c.length;return f?Hn(c,0,-1):[]}var EN=Ze(function(c){var f=ht(c,$g);return f.length&&f[0]===c[0]?Rg(f):[]}),QN=Ze(function(c){var f=Kn(c),U=ht(c,$g);return f===Kn(U)?f=t:U.pop(),U.length&&U[0]===c[0]?Rg(U,Ne(f,2)):[]}),IN=Ze(function(c){var f=Kn(c),U=ht(c,$g);return f=typeof f=="function"?f:t,f&&U.pop(),U.length&&U[0]===c[0]?Rg(U,t,f):[]});function fN(c,f){return c==null?"":mS.call(c,f)}function Kn(c){var f=c==null?0:c.length;return f?c[f-1]:t}function wN(c,f,U){var aA=c==null?0:c.length;if(!aA)return-1;var pA=aA;return U!==t&&(pA=$e(U),pA=pA<0?Ft(aA+pA,0):$t(pA,aA-1)),f===f?yA(c,f,pA):Ar(c,Ys,pA,!0)}function bN(c,f){return c&&c.length?jC(c,$e(f)):t}var yN=Ze(KB);function KB(c,f){return c&&c.length&&f&&f.length?Hg(c,f):c}function DN(c,f,U){return c&&c.length&&f&&f.length?Hg(c,f,Ne(U,2)):c}function vN(c,f,U){return c&&c.length&&f&&f.length?Hg(c,f,t,U):c}var kN=Di(function(c,f){var U=c==null?0:c.length,aA=xg(c,f);return VC(c,ht(f,function(pA){return vi(pA,U)?+pA:pA}).sort(lB)),aA});function _N(c,f){var U=[];if(!(c&&c.length))return U;var aA=-1,pA=[],fA=c.length;for(f=Ne(f,3);++aA<fA;){var _A=c[aA];f(_A,aA,c)&&(U.push(_A),pA.push(aA))}return VC(c,pA),U}function ou(c){return c==null?c:fS.call(c)}function MN(c,f,U){var aA=c==null?0:c.length;return aA?(U&&typeof U!="number"&&an(c,f,U)?(f=0,U=aA):(f=f==null?0:$e(f),U=U===t?aA:$e(U)),Hn(c,f,U)):[]}function xN(c,f){return cl(c,f)}function SN(c,f,U){return Ug(c,f,Ne(U,2))}function NN(c,f){var U=c==null?0:c.length;if(U){var aA=cl(c,f);if(aA<U&&Zn(c[aA],f))return aA}return-1}function FN(c,f){return cl(c,f,!0)}function RN(c,f,U){return Ug(c,f,Ne(U,2),!0)}function LN(c,f){var U=c==null?0:c.length;if(U){var aA=cl(c,f,!0)-1;if(Zn(c[aA],f))return aA}return-1}function GN(c){return c&&c.length?eB(c):[]}function PN(c,f){return c&&c.length?eB(c,Ne(f,2)):[]}function HN(c){var f=c==null?0:c.length;return f?Hn(c,1,f):[]}function KN(c,f,U){return c&&c.length?(f=U||f===t?1:$e(f),Hn(c,0,f<0?0:f)):[]}function TN(c,f,U){var aA=c==null?0:c.length;return aA?(f=U||f===t?1:$e(f),f=aA-f,Hn(c,f<0?0:f,aA)):[]}function UN(c,f){return c&&c.length?gl(c,Ne(f,3),!1,!0):[]}function YN(c,f){return c&&c.length?gl(c,Ne(f,3)):[]}var ON=Ze(function(c){return $i(Yt(c,1,Dt,!0))}),$N=Ze(function(c){var f=Kn(c);return Dt(f)&&(f=t),$i(Yt(c,1,Dt,!0),Ne(f,2))}),zN=Ze(function(c){var f=Kn(c);return f=typeof f=="function"?f:t,$i(Yt(c,1,Dt,!0),t,f)});function JN(c){return c&&c.length?$i(c):[]}function ZN(c,f){return c&&c.length?$i(c,Ne(f,2)):[]}function WN(c,f){return f=typeof f=="function"?f:t,c&&c.length?$i(c,t,f):[]}function ru(c){if(!(c&&c.length))return[];var f=0;return c=yn(c,function(U){if(Dt(U))return f=Ft(U.length,f),!0}),Ii(f,function(U){return ht(c,Aa(U))})}function TB(c,f){if(!(c&&c.length))return[];var U=ru(c);return f==null?U:ht(U,function(aA){return nn(f,t,aA)})}var jN=Ze(function(c,f){return Dt(c)?la(c,f):[]}),qN=Ze(function(c){return Og(yn(c,Dt))}),XN=Ze(function(c){var f=Kn(c);return Dt(f)&&(f=t),Og(yn(c,Dt),Ne(f,2))}),VN=Ze(function(c){var f=Kn(c);return f=typeof f=="function"?f:t,Og(yn(c,Dt),t,f)}),AF=Ze(ru);function eF(c,f){return oB(c||[],f||[],sa)}function tF(c,f){return oB(c||[],f||[],ua)}var nF=Ze(function(c){var f=c.length,U=f>1?c[f-1]:t;return U=typeof U=="function"?(c.pop(),U):t,TB(c,U)});function UB(c){var f=QA(c);return f.__chain__=!0,f}function iF(c,f){return f(c),c}function Ql(c,f){return f(c)}var oF=Di(function(c){var f=c.length,U=f?c[0]:0,aA=this.__wrapped__,pA=function(fA){return xg(fA,c)};return f>1||this.__actions__.length||!(aA instanceof Xe)||!vi(U)?this.thru(pA):(aA=aA.slice(U,+U+(f?1:0)),aA.__actions__.push({func:Ql,args:[pA],thisArg:t}),new Gn(aA,this.__chain__).thru(function(fA){return f&&!fA.length&&fA.push(t),fA}))});function rF(){return UB(this)}function aF(){return new Gn(this.value(),this.__chain__)}function sF(){this.__values__===t&&(this.__values__=tm(this.value()));var c=this.__index__>=this.__values__.length,f=c?t:this.__values__[this.__index__++];return{done:c,value:f}}function lF(){return this}function cF(c){for(var f,U=this;U instanceof ol;){var aA=RB(U);aA.__index__=0,aA.__values__=t,f?pA.__wrapped__=aA:f=aA;var pA=aA;U=U.__wrapped__}return pA.__wrapped__=c,f}function gF(){var c=this.__wrapped__;if(c instanceof Xe){var f=c;return this.__actions__.length&&(f=new Xe(this)),f=f.reverse(),f.__actions__.push({func:Ql,args:[ou],thisArg:t}),new Gn(f,this.__chain__)}return this.thru(ou)}function uF(){return iB(this.__wrapped__,this.__actions__)}var dF=ul(function(c,f,U){st.call(c,U)?++c[U]:bi(c,U,1)});function hF(c,f,U){var aA=Te(c)?Xr:i4;return U&&an(c,f,U)&&(f=t),aA(c,Ne(f,3))}function pF(c,f){var U=Te(c)?yn:TC;return U(c,Ne(f,3))}var CF=pB(LB),BF=pB(GB);function mF(c,f){return Yt(Il(c,f),1)}function EF(c,f){return Yt(Il(c,f),x)}function QF(c,f,U){return U=U===t?1:$e(U),Yt(Il(c,f),U)}function YB(c,f){var U=Te(c)?un:Oi;return U(c,Ne(f,3))}function OB(c,f){var U=Te(c)?Bg:KC;return U(c,Ne(f,3))}var IF=ul(function(c,f,U){st.call(c,U)?c[U].push(f):bi(c,U,[f])});function fF(c,f,U,aA){c=hn(c)?c:cr(c),U=U&&!aA?$e(U):0;var pA=c.length;return U<0&&(U=Ft(pA+U,0)),Dl(c)?U<=pA&&c.indexOf(f,U)>-1:!!pA&&Ti(c,f,U)>-1}var wF=Ze(function(c,f,U){var aA=-1,pA=typeof f=="function",fA=hn(c)?HA(c.length):[];return Oi(c,function(_A){fA[++aA]=pA?nn(f,_A,U):ca(_A,f,U)}),fA}),bF=ul(function(c,f,U){bi(c,U,f)});function Il(c,f){var U=Te(c)?ht:JC;return U(c,Ne(f,3))}function yF(c,f,U,aA){return c==null?[]:(Te(f)||(f=f==null?[]:[f]),U=aA?t:U,Te(U)||(U=U==null?[]:[U]),qC(c,f,U))}var DF=ul(function(c,f,U){c[U?0:1].push(f)},function(){return[[],[]]});function vF(c,f,U){var aA=Te(c)?Vo:Os,pA=arguments.length<3;return aA(c,Ne(f,4),U,pA,Oi)}function kF(c,f,U){var aA=Te(c)?Ts:Os,pA=arguments.length<3;return aA(c,Ne(f,4),U,pA,KC)}function _F(c,f){var U=Te(c)?yn:TC;return U(c,bl(Ne(f,3)))}function MF(c){var f=Te(c)?LC:f4;return f(c)}function xF(c,f,U){(U?an(c,f,U):f===t)?f=1:f=$e(f);var aA=Te(c)?VS:w4;return aA(c,f)}function SF(c){var f=Te(c)?A4:y4;return f(c)}function NF(c){if(c==null)return 0;if(hn(c))return Dl(c)?xA(c):c.length;var f=zt(c);return f==uA||f==X?c.size:Gg(c).length}function FF(c,f,U){var aA=Te(c)?Qi:D4;return U&&an(c,f,U)&&(f=t),aA(c,Ne(f,3))}var RF=Ze(function(c,f){if(c==null)return[];var U=f.length;return U>1&&an(c,f[0],f[1])?f=[]:U>2&&an(f[0],f[1],f[2])&&(f=[f[0]]),qC(c,Yt(f,1),[])}),fl=pS||function(){return Nt.Date.now()};function LF(c,f){if(typeof f!="function")throw new Ut(o);return c=$e(c),function(){if(--c<1)return f.apply(this,arguments)}}function $B(c,f,U){return f=U?t:f,f=c&&f==null?c.length:f,yi(c,d,t,t,t,t,f)}function zB(c,f){var U;if(typeof f!="function")throw new Ut(o);return c=$e(c),function(){return--c>0&&(U=f.apply(this,arguments)),c<=1&&(f=t),U}}var au=Ze(function(c,f,U){var aA=D;if(U.length){var pA=lA(U,sr(au));aA|=B}return yi(c,aA,f,U,pA)}),JB=Ze(function(c,f,U){var aA=D|E;if(U.length){var pA=lA(U,sr(JB));aA|=B}return yi(f,aA,c,U,pA)});function ZB(c,f,U){f=U?t:f;var aA=yi(c,_,t,t,t,t,t,f);return aA.placeholder=ZB.placeholder,aA}function WB(c,f,U){f=U?t:f;var aA=yi(c,v,t,t,t,t,t,f);return aA.placeholder=WB.placeholder,aA}function jB(c,f,U){var aA,pA,fA,_A,FA,TA,Ae=0,ee=!1,se=!1,we=!0;if(typeof c!="function")throw new Ut(o);f=Tn(f)||0,Qt(U)&&(ee=!!U.leading,se="maxWait"in U,fA=se?Ft(Tn(U.maxWait)||0,f):fA,we="trailing"in U?!!U.trailing:we);function ve(vt){var Wn=aA,Mi=pA;return aA=pA=t,Ae=vt,_A=c.apply(Mi,Wn),_A}function Fe(vt){return Ae=vt,FA=pa(We,f),ee?ve(vt):_A}function Je(vt){var Wn=vt-TA,Mi=vt-Ae,pm=f-Wn;return se?$t(pm,fA-Mi):pm}function Re(vt){var Wn=vt-TA,Mi=vt-Ae;return TA===t||Wn>=f||Wn<0||se&&Mi>=fA}function We(){var vt=fl();if(Re(vt))return Ve(vt);FA=pa(We,Je(vt))}function Ve(vt){return FA=t,we&&aA?ve(vt):(aA=pA=t,_A)}function kn(){FA!==t&&rB(FA),Ae=0,aA=TA=pA=FA=t}function sn(){return FA===t?_A:Ve(fl())}function _n(){var vt=fl(),Wn=Re(vt);if(aA=arguments,pA=this,TA=vt,Wn){if(FA===t)return Fe(TA);if(se)return rB(FA),FA=pa(We,f),ve(TA)}return FA===t&&(FA=pa(We,f)),_A}return _n.cancel=kn,_n.flush=sn,_n}var GF=Ze(function(c,f){return HC(c,1,f)}),PF=Ze(function(c,f,U){return HC(c,Tn(f)||0,U)});function HF(c){return yi(c,g)}function wl(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Ut(o);var U=function(){var aA=arguments,pA=f?f.apply(this,aA):aA[0],fA=U.cache;if(fA.has(pA))return fA.get(pA);var _A=c.apply(this,aA);return U.cache=fA.set(pA,_A)||fA,_A};return U.cache=new(wl.Cache||wi),U}wl.Cache=wi;function bl(c){if(typeof c!="function")throw new Ut(o);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}function KF(c){return zB(2,c)}var TF=v4(function(c,f){f=f.length==1&&Te(f[0])?ht(f[0],Tt(Ne())):ht(Yt(f,1),Tt(Ne()));var U=f.length;return Ze(function(aA){for(var pA=-1,fA=$t(aA.length,U);++pA<fA;)aA[pA]=f[pA].call(this,aA[pA]);return nn(c,this,aA)})}),su=Ze(function(c,f){var U=lA(f,sr(su));return yi(c,B,t,f,U)}),qB=Ze(function(c,f){var U=lA(f,sr(qB));return yi(c,p,t,f,U)}),UF=Di(function(c,f){return yi(c,l,t,t,t,f)});function YF(c,f){if(typeof c!="function")throw new Ut(o);return f=f===t?f:$e(f),Ze(c,f)}function OF(c,f){if(typeof c!="function")throw new Ut(o);return f=f==null?0:Ft($e(f),0),Ze(function(U){var aA=U[f],pA=Ji(U,0,f);return aA&&$n(pA,aA),nn(c,this,pA)})}function $F(c,f,U){var aA=!0,pA=!0;if(typeof c!="function")throw new Ut(o);return Qt(U)&&(aA="leading"in U?!!U.leading:aA,pA="trailing"in U?!!U.trailing:pA),jB(c,f,{leading:aA,maxWait:f,trailing:pA})}function zF(c){return $B(c,1)}function JF(c,f){return su(zg(f),c)}function ZF(){if(!arguments.length)return[];var c=arguments[0];return Te(c)?c:[c]}function WF(c){return Pn(c,Y)}function jF(c,f){return f=typeof f=="function"?f:t,Pn(c,Y,f)}function qF(c){return Pn(c,N|Y)}function XF(c,f){return f=typeof f=="function"?f:t,Pn(c,N|Y,f)}function VF(c,f){return f==null||PC(c,f,Pt(f))}function Zn(c,f){return c===f||c!==c&&f!==f}var AR=Cl(Fg),eR=Cl(function(c,f){return c>=f}),Do=OC(function(){return arguments}())?OC:function(c){return bt(c)&&st.call(c,"callee")&&!MC.call(c,"callee")},Te=HA.isArray,tR=qr?Tt(qr):c4;function hn(c){return c!=null&&yl(c.length)&&!ki(c)}function Dt(c){return bt(c)&&hn(c)}function nR(c){return c===!0||c===!1||bt(c)&&rn(c)==H}var Zi=BS||Eu,iR=Gt?Tt(Gt):g4;function oR(c){return bt(c)&&c.nodeType===1&&!Ca(c)}function rR(c){if(c==null)return!0;if(hn(c)&&(Te(c)||typeof c=="string"||typeof c.splice=="function"||Zi(c)||lr(c)||Do(c)))return!c.length;var f=zt(c);if(f==uA||f==X)return!c.size;if(ha(c))return!Gg(c).length;for(var U in c)if(st.call(c,U))return!1;return!0}function aR(c,f){return ga(c,f)}function sR(c,f,U){U=typeof U=="function"?U:t;var aA=U?U(c,f):t;return aA===t?ga(c,f,t,U):!!aA}function lu(c){if(!bt(c))return!1;var f=rn(c);return f==oA||f==sA||typeof c.message=="string"&&typeof c.name=="string"&&!Ca(c)}function lR(c){return typeof c=="number"&&SC(c)}function ki(c){if(!Qt(c))return!1;var f=rn(c);return f==dA||f==EA||f==V||f==gA}function XB(c){return typeof c=="number"&&c==$e(c)}function yl(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=S}function Qt(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}function bt(c){return c!=null&&typeof c=="object"}var VB=Gs?Tt(Gs):d4;function cR(c,f){return c===f||Lg(c,f,Vg(f))}function gR(c,f,U){return U=typeof U=="function"?U:t,Lg(c,f,Vg(f),U)}function uR(c){return Am(c)&&c!=+c}function dR(c){if(j4(c))throw new Ce(I);return $C(c)}function hR(c){return c===null}function pR(c){return c==null}function Am(c){return typeof c=="number"||bt(c)&&rn(c)==BA}function Ca(c){if(!bt(c)||rn(c)!=tA)return!1;var f=Xs(c);if(f===null)return!0;var U=st.call(f,"constructor")&&f.constructor;return typeof U=="function"&&U instanceof U&&Zs.call(U)==gS}var cu=Ps?Tt(Ps):h4;function CR(c){return XB(c)&&c>=-S&&c<=S}var em=Hs?Tt(Hs):p4;function Dl(c){return typeof c=="string"||!Te(c)&&bt(c)&&rn(c)==iA}function vn(c){return typeof c=="symbol"||bt(c)&&rn(c)==cA}var lr=Ks?Tt(Ks):C4;function BR(c){return c===t}function mR(c){return bt(c)&&zt(c)==vA}function ER(c){return bt(c)&&rn(c)==GA}var QR=Cl(Pg),IR=Cl(function(c,f){return c<=f});function tm(c){if(!c)return[];if(hn(c))return Dl(c)?DA(c):dn(c);if(na&&c[na])return F(c[na]());var f=zt(c),U=f==uA?Z:f==X?hA:cr;return U(c)}function _i(c){if(!c)return c===0?c:0;if(c=Tn(c),c===x||c===-x){var f=c<0?-1:1;return f*T}return c===c?c:0}function $e(c){var f=_i(c),U=f%1;return f===f?U?f-U:f:0}function nm(c){return c?fo($e(c),0,eA):0}function Tn(c){if(typeof c=="number")return c;if(vn(c))return $;if(Qt(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=Qt(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=ea(c);var U=Ct.test(c);return U||At.test(c)?Rs(c.slice(2),U?2:8):qe.test(c)?$:+c}function im(c){return si(c,pn(c))}function fR(c){return c?fo($e(c),-S,S):c===0?c:0}function at(c){return c==null?"":Dn(c)}var wR=rr(function(c,f){if(ha(f)||hn(f)){si(f,Pt(f),c);return}for(var U in f)st.call(f,U)&&sa(c,U,f[U])}),om=rr(function(c,f){si(f,pn(f),c)}),vl=rr(function(c,f,U,aA){si(f,pn(f),c,aA)}),bR=rr(function(c,f,U,aA){si(f,Pt(f),c,aA)}),yR=Di(xg);function DR(c,f){var U=or(c);return f==null?U:GC(U,f)}var vR=Ze(function(c,f){c=Oe(c);var U=-1,aA=f.length,pA=aA>2?f[2]:t;for(pA&&an(f[0],f[1],pA)&&(aA=1);++U<aA;)for(var fA=f[U],_A=pn(fA),FA=-1,TA=_A.length;++FA<TA;){var Ae=_A[FA],ee=c[Ae];(ee===t||Zn(ee,tr[Ae])&&!st.call(c,Ae))&&(c[Ae]=fA[Ae])}return c}),kR=Ze(function(c){return c.push(t,fB),nn(rm,t,c)});function _R(c,f){return Us(c,Ne(f,3),ai)}function MR(c,f){return Us(c,Ne(f,3),Ng)}function xR(c,f){return c==null?c:Sg(c,Ne(f,3),pn)}function SR(c,f){return c==null?c:UC(c,Ne(f,3),pn)}function NR(c,f){return c&&ai(c,Ne(f,3))}function FR(c,f){return c&&Ng(c,Ne(f,3))}function RR(c){return c==null?[]:sl(c,Pt(c))}function LR(c){return c==null?[]:sl(c,pn(c))}function gu(c,f,U){var aA=c==null?t:wo(c,f);return aA===t?U:aA}function GR(c,f){return c!=null&&yB(c,f,r4)}function uu(c,f){return c!=null&&yB(c,f,a4)}var PR=BB(function(c,f,U){f!=null&&typeof f.toString!="function"&&(f=Ws.call(f)),c[f]=U},hu(Cn)),HR=BB(function(c,f,U){f!=null&&typeof f.toString!="function"&&(f=Ws.call(f)),st.call(c,f)?c[f].push(U):c[f]=[U]},Ne),KR=Ze(ca);function Pt(c){return hn(c)?RC(c):Gg(c)}function pn(c){return hn(c)?RC(c,!0):B4(c)}function TR(c,f){var U={};return f=Ne(f,3),ai(c,function(aA,pA,fA){bi(U,f(aA,pA,fA),aA)}),U}function UR(c,f){var U={};return f=Ne(f,3),ai(c,function(aA,pA,fA){bi(U,pA,f(aA,pA,fA))}),U}var YR=rr(function(c,f,U){ll(c,f,U)}),rm=rr(function(c,f,U,aA){ll(c,f,U,aA)}),OR=Di(function(c,f){var U={};if(c==null)return U;var aA=!1;f=ht(f,function(fA){return fA=zi(fA,c),aA||(aA=fA.length>1),fA}),si(c,qg(c),U),aA&&(U=Pn(U,N|P|Y,P4));for(var pA=f.length;pA--;)Yg(U,f[pA]);return U});function $R(c,f){return am(c,bl(Ne(f)))}var zR=Di(function(c,f){return c==null?{}:E4(c,f)});function am(c,f){if(c==null)return{};var U=ht(qg(c),function(aA){return[aA]});return f=Ne(f),XC(c,U,function(aA,pA){return f(aA,pA[0])})}function JR(c,f,U){f=zi(f,c);var aA=-1,pA=f.length;for(pA||(pA=1,c=t);++aA<pA;){var fA=c==null?t:c[li(f[aA])];fA===t&&(aA=pA,fA=U),c=ki(fA)?fA.call(c):fA}return c}function ZR(c,f,U){return c==null?c:ua(c,f,U)}function WR(c,f,U,aA){return aA=typeof aA=="function"?aA:t,c==null?c:ua(c,f,U,aA)}var sm=QB(Pt),lm=QB(pn);function jR(c,f,U){var aA=Te(c),pA=aA||Zi(c)||lr(c);if(f=Ne(f,4),U==null){var fA=c&&c.constructor;pA?U=aA?new fA:[]:Qt(c)?U=ki(fA)?or(Xs(c)):{}:U={}}return(pA?un:ai)(c,function(_A,FA,TA){return f(U,_A,FA,TA)}),U}function qR(c,f){return c==null?!0:Yg(c,f)}function XR(c,f,U){return c==null?c:nB(c,f,zg(U))}function VR(c,f,U,aA){return aA=typeof aA=="function"?aA:t,c==null?c:nB(c,f,zg(U),aA)}function cr(c){return c==null?[]:ta(c,Pt(c))}function AL(c){return c==null?[]:ta(c,pn(c))}function eL(c,f,U){return U===t&&(U=f,f=t),U!==t&&(U=Tn(U),U=U===U?U:0),f!==t&&(f=Tn(f),f=f===f?f:0),fo(Tn(c),f,U)}function tL(c,f,U){return f=_i(f),U===t?(U=f,f=0):U=_i(U),c=Tn(c),s4(c,f,U)}function nL(c,f,U){if(U&&typeof U!="boolean"&&an(c,f,U)&&(f=U=t),U===t&&(typeof f=="boolean"?(U=f,f=t):typeof c=="boolean"&&(U=c,c=t)),c===t&&f===t?(c=0,f=1):(c=_i(c),f===t?(f=c,c=0):f=_i(f)),c>f){var aA=c;c=f,f=aA}if(U||c%1||f%1){var pA=NC();return $t(c+pA*(f-c+Fs("1e-"+((pA+"").length-1))),f)}return Kg(c,f)}var iL=ar(function(c,f,U){return f=f.toLowerCase(),c+(U?cm(f):f)});function cm(c){return du(at(c).toLowerCase())}function gm(c){return c=at(c),c&&c.replace(Pe,wg).replace(Ms,"")}function oL(c,f,U){c=at(c),f=Dn(f);var aA=c.length;U=U===t?aA:fo($e(U),0,aA);var pA=U;return U-=f.length,U>=0&&c.slice(U,pA)==f}function rL(c){return c=at(c),c&&ke.test(c)?c.replace(ce,bg):c}function aL(c){return c=at(c),c&&Me.test(c)?c.replace(ge,"\\$&"):c}var sL=ar(function(c,f,U){return c+(U?"-":"")+f.toLowerCase()}),lL=ar(function(c,f,U){return c+(U?" ":"")+f.toLowerCase()}),cL=hB("toLowerCase");function gL(c,f,U){c=at(c),f=$e(f);var aA=f?xA(c):0;if(!f||aA>=f)return c;var pA=(f-aA)/2;return pl(tl(pA),U)+c+pl(el(pA),U)}function uL(c,f,U){c=at(c),f=$e(f);var aA=f?xA(c):0;return f&&aA<f?c+pl(f-aA,U):c}function dL(c,f,U){c=at(c),f=$e(f);var aA=f?xA(c):0;return f&&aA<f?pl(f-aA,U)+c:c}function hL(c,f,U){return U||f==null?f=0:f&&(f=+f),IS(at(c).replace(tt,""),f||0)}function pL(c,f,U){return(U?an(c,f,U):f===t)?f=1:f=$e(f),Tg(at(c),f)}function CL(){var c=arguments,f=at(c[0]);return c.length<3?f:f.replace(c[1],c[2])}var BL=ar(function(c,f,U){return c+(U?"_":"")+f.toLowerCase()});function mL(c,f,U){return U&&typeof U!="number"&&an(c,f,U)&&(f=U=t),U=U===t?eA:U>>>0,U?(c=at(c),c&&(typeof f=="string"||f!=null&&!cu(f))&&(f=Dn(f),!f&&Ui(c))?Ji(DA(c),0,U):c.split(f,U)):[]}var EL=ar(function(c,f,U){return c+(U?" ":"")+du(f)});function QL(c,f,U){return c=at(c),U=U==null?0:fo($e(U),0,c.length),f=Dn(f),c.slice(U,U+f.length)==f}function IL(c,f,U){var aA=QA.templateSettings;U&&an(c,f,U)&&(f=t),c=at(c),f=vl({},f,aA,IB);var pA=vl({},f.imports,aA.imports,IB),fA=Pt(pA),_A=ta(pA,fA),FA,TA,Ae=0,ee=f.interpolate||ot,se="__p += '",we=on((f.escape||ot).source+"|"+ee.source+"|"+(ee===KA?ne:ot).source+"|"+(f.evaluate||ot).source+"|$","g"),ve="//# sourceURL="+(st.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++po+"]")+`
11
11
  `;c.replace(we,function(Re,We,Ve,kn,sn,_n){return Ve||(Ve=kn),se+=c.slice(Ae,_n).replace(Et,yg),We&&(FA=!0,se+=`' +
12
12
  __e(`+We+`) +
13
13
  '`),sn&&(TA=!0,se+=`';
@@ -85,7 +85,7 @@ onClick: ${y.onClick}`)}};return(D,E)=>{const L=A.resolveComponent("el-input");r
85
85
  onInput: ${t.onInput}`)}},y=()=>{if(t.onSearch&&i)try{i[t.onSearch](u)}catch(M){console.error(M+`
86
86
  onSearch: ${t.onSearch}`)}},w=()=>{if(t.onClear&&i&&i[t.onClear])try{i[t.onClear](u)}catch(M){console.error(M+`
87
87
  onClear: ${t.onClear}`)}else t.clearable&&(e.value="")};return(M,N)=>{const P=A.resolveComponent("el-button"),Y=A.resolveComponent("el-input");return o.value?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:M.readTextColor})},A.toDisplayString(e.value||"--"),5)):(A.openBlock(),A.createBlock(Y,A.mergeProps({key:1},M.$attrs,{modelValue:e.value,"onUpdate:modelValue":N[0]||(N[0]=G=>e.value=G),onInput:b,disabled:M.disabled,clearable:!1,readonly:M.readonly,class:{readonlyBg:M.readonly,round:M.round},style:{width:M.width},onKeyup:A.withKeys(y,["enter"])}),A.createSlots({suffix:A.withCtx(()=>[(M.onClear||M.clearable)&&e.value&&!M.disabled?(A.openBlock(),A.createBlock(A.unref(Ie),{key:0,name:"clear",onClick:w,class:"clear-icon"})):A.createCommentVNode("",!0),M.round?(A.openBlock(),A.createBlock(xe,{key:1,name:"icon-lujing2",color:"#666666",class:"cursor-pointer ml-[8px]",onClick:y})):A.createCommentVNode("",!0)]),_:2},[M.round?void 0:{name:"append",fn:A.withCtx(()=>[A.createVNode(P,{onClick:y,disabled:M.disabled},{default:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:"search"})]),_:1},8,["disabled"])]),key:"0"}]),1040,["modelValue","disabled","readonly","class","style"]))}}}),[["__scopeId","data-v-72c9ba4a"]]),_b={title:"搜索输入",component:"SearchInput",icon:A.h(Ie,{name:"search"}),type:"high",order:5,attrSchema:vb,render:kb},Mb={size:"small",labelPosition:"top",initialValues:{label:"下拉选择框",props:{mode:"static",options:[{label:"选项1",value:"value1"},{label:"选项2",value:"value2"},{label:"选项3",value:"value3"}]}},items:[{label:"标签",component:"Input",name:"label"},{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help"},{label:"占位提示",component:"Input",name:"props.placeholder",designKey:"form-ekRL"},{label:"初始值",component:"Select",name:"initialValue",hidden:'{{ $values.props.mode==="remote" }}',props:{mode:"static",options:"{{$values.props.options}}",multiple:"{{$values.props.multiple}}"}},{component:"Grid",children:[{label:"是否必填",component:"Switch",name:"required"},{label:"是否禁用",component:"Switch",name:"props.disabled"},{label:"隐藏字段",component:"Switch",name:"hidden"},{label:"隐藏标签",component:"Switch",name:"hideLabel"}],props:{columns:3,"row-gap":20,"column-gap":20},designKey:"form-R003",name:"cNmCuu"},{label:"选择模式",component:"Switch",name:"props.multiple",props:{"active-text":"多选","inactive-text":"单选"},designKey:"form-eTxc"},{label:"搜索按钮点击事件",component:"Input",name:"props.onSearch"},...Na]},xb={title:"选择+搜索",type:"high",icon:A.h(Ie,{name:"searchSelect"}),component:"SearchSelect",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>gx)),order:3,attrSchema:Mb},Sb={size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"},{label:"字段说明",component:"TextArea",name:"help",designKey:"form-ekRL1"},{label:"按钮文字",component:"Input",name:"props.buttonText",designKey:"form-ekRL",initialValue:"按钮文字"},{component:"Grid",children:[{label:"是否禁用",component:"Switch",name:"props.disabled"},{label:"隐藏字段",component:"Switch",name:"hidden"}],props:{columns:3,"row-gap":20,"column-gap":20},designKey:"form-R003",name:"cNmCuu"},{label:"click事件函数名",component:"Input",name:"props.onClick"}]},Nb=ie(A.defineComponent({__name:"button",props:{buttonText:{},onClick:{},hidden:{type:Boolean},orange:{type:Boolean},noLoading:{type:Boolean},icon:{},suffixIcon:{}},setup(n){const e=n,t=A.inject("ruleModule",void 0),i=A.inject("pageMethodMap",{}),u=A.ref(!1),I=async()=>{if(e.onClick&&t){try{e.noLoading||(u.value=!0),await t[e.onClick](i)}catch(o){console.error(o+`
88
- onClick: ${e.onClick}`)}u.value=!1}};return(o,b)=>{const y=A.resolveComponent("el-button");return o.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(y,A.mergeProps({key:0},o.$attrs,{onClick:I,color:o.orange?"#FAA21E":"",class:["crm-button",{orangeBtn:o.orange}],plain:!o.orange&&o.$attrs.type!=="primary",loading:u.value}),{default:A.withCtx(()=>[o.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:o.icon.name,color:o.icon.color,class:A.normalizeClass({btnicon:o.buttonText})},null,8,["name","color","class"])):A.createCommentVNode("",!0),A.createTextVNode(" "+A.toDisplayString(o.buttonText)+" ",1),o.suffixIcon?(A.openBlock(),A.createBlock(xe,{key:1,name:o.suffixIcon.name,color:o.suffixIcon.color,class:A.normalizeClass({suffixIcon:o.buttonText})},null,8,["name","color","class"])):A.createCommentVNode("",!0)]),_:1},16,["color","class","plain","loading"]))}}}),[["__scopeId","data-v-cc9e831f"]]),Fb={title:"按钮",component:"Button",icon:A.h(Ie,{name:"button"}),type:"assist",order:1,attrSchema:Sb,render:Nb},Rb={size:"small",labelPosition:"top",initialValues:{props:{emptyText:"暂无数据",nodeKey:"id",expandOnClickNode:!1,props:{label:"label",children:"children"}}},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"节点标识属性名",component:"Input",name:"props.nodeKey"},{label:"内容为空时的文本",component:"Input",name:"props.emptyText"},{label:"是否可拖拽",component:"Switch",name:"props.draggable"},{label:"是否点击节点时展开或收缩",component:"Switch",name:"props.expandOnClickNode"},{label:"节点是否懒加载",component:"Switch",name:"props.lazy"},{component:"Grid",children:[{label:"节点标签属性名",component:"Input",name:"props.props.label"},{label:"子树属性名",component:"Input",name:"props.props.children"},{label:"是否禁用属性名",component:"Input",name:"props.props.disabled"}],props:{columns:3,"row-gap":20,"column-gap":20},designKey:"form-R003",name:"cNmCuu"},{label:"子节点设置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},name:"label",initialValue:'{{ "一级子节点" + ($index + 1) }}'},{label:"唯一标识",component:"Input",name:"{{$values.props.nodeKey}}",initialValue:"{{ $index + 1 }}"},{label:"子节点设置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},name:"label",initialValue:'{{ "二级子节点" + ($index + 1) }}'}],props:{mode:"card",title:"子节点"},name:"children"}],props:{mode:"card",title:"子节点"},designKey:"id-RQ1a",name:"props.data"}]},Lb={title:"树",component:"Tree",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Cx)),icon:A.h(Ie,{name:"tree"}),type:"assist",order:7,attrSchema:Rb},Gb={size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help",designKey:"form-ekRL1"},{component:"Grid",children:[{label:"是否隐藏",component:"Switch",name:"hidden"}],props:{columns:3,"row-gap":20,"column-gap":20},designKey:"form-R003",name:"cNmCuu"},{label:"列设置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},name:"label"},{label:"是否隐藏",component:"Switch",name:"hidden"}],props:{mode:"card",title:"列"},designKey:"id-RQ1a",name:"props.columns"},{label:"change事件函数名",component:"Input",name:"props.onChange"}]},Pb={title:"表格",component:"Table",icon:A.h(Ie,{name:"library"}),type:"assist",order:8,attrSchema:Gb,render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Dx))},Hb={title:"curd模版卡片",component:"CurdCard",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Fx)),icon:A.h(Ie,{name:"card"}),type:"layout",order:6,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"},{label:"卡片标题",component:"Input",name:"props.title",initialValue:"卡片"},{label:"支持折叠",component:"Switch",name:"props.collapsible"},{label:"支持切换内部表格类型",component:"Switch",name:"props.typeSwitch"},{label:"样式类型",component:"Select",name:"props.type",props:{mode:"static",options:[{label:"默认",value:"default"},{label:"内联",value:"inline"},{label:"混合",value:"mix"}]}}]}},Kb={title:"普通div容器",component:"Wrapper",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Gx)),icon:A.h(Ie,{name:"card"}),type:"layout",order:7,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"},{label:"卡片标题",component:"Input",name:"props.header",initialValue:"卡片"},{label:"支持折叠",component:"Switch",name:"props.collapsible"}]}},Tb={class:"card-list-item"},Ub={class:"card-list-item-header"},Yb={class:"card-list-item-header-title"},Ob={style:{display:"ruby"}},$b=["title"],zb=["title"],Jb={key:0,class:"card-list-item-header-title__sub"},Zb={class:"sub-title-right"},Wb={class:"card-list-item-header-btns"},jb=["onClick"],qb={class:"card-list-item-content"},Xb=["title"],Vb=["onClick","title"],Ay={key:0,class:"card-list-item-content--more"},ey=["title"],ty=["title"],ny={key:1,class:"card-list-item-footer"},iy={class:"card-list-item-footer-text"},Hd=ie(A.defineComponent({__name:"CardListItem",props:{data:{},btns:{},index:{}},emits:["clickBtn"],setup(n,{emit:e}){const t=e,i=A.inject("getGlobalParams",()=>{}),u=b=>{if(b)try{t("clickBtn",b)}catch(y){console.error(y)}},I=A.ref(!1),o=b=>{b.isMore&&(I.value=!I.value)};return(b,y)=>{const w=A.resolveComponent("el-tooltip");return A.openBlock(),A.createElementBlock("div",Tb,[A.createElementVNode("div",Ub,[A.createElementVNode("div",Yb,[A.createElementVNode("div",Ob,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data.tag,M=>(A.openBlock(),A.createElementBlock("div",{key:M.label,class:"card-list-item-header-title__tag",style:A.normalizeStyle({color:M.color}),title:M.value},A.toDisplayString(M.value),13,$b))),128))]),A.createElementVNode("div",{class:A.normalizeClass(["card-list-item-header-title__text",{"link-style":b.data.titleType==="link","click-style":b.data.onClick}]),style:A.normalizeStyle({color:b.data.titleColor}),title:b.data.title,onClick:y[0]||(y[0]=M=>u(b.data.onClick))},A.toDisplayString(b.data.title),15,zb),b.data.subTitle?(A.openBlock(),A.createElementBlock("div",Jb,[A.createElementVNode("span",{class:"card-list-item-header-title__sub-icon",style:A.normalizeStyle({backgroundColor:b.data.subTitleColor||"#3EBF17"})},null,4),A.createElementVNode("span",null,A.toDisplayString(b.data.subTitle),1),A.createElementVNode("div",Zb,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data.subTitleRight,(M,N)=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:N},[M.value?(A.openBlock(),A.createElementBlock("div",{key:0,style:A.normalizeStyle({color:M.color||"var(--hight)"}),class:"sub-title-right__item"},A.toDisplayString(M.value),5)):A.createCommentVNode("",!0)],64))),128))])])):A.createCommentVNode("",!0)]),A.createElementVNode("div",Wb,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.btns,(M,N)=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:N},[M.condition===void 0||M.condition===null||A.unref(Rt)(M.condition,{$row:b.data.originalData,$globalParams:A.unref(i)()})?(A.openBlock(),A.createElementBlock("div",{key:0,class:"card-list-item-header-btns-item",onClick:P=>u(M.onClick)},[M.label?(A.openBlock(),A.createBlock(w,{key:0,class:"box-item",effect:"dark",content:M.label,placement:"top","popper-class":"low-tsp"},{default:A.withCtx(()=>[A.createVNode(xe,{name:M.icon},null,8,["name"])]),_:2},1032,["content"])):(A.openBlock(),A.createBlock(xe,{key:1,name:M.icon},null,8,["name"]))],8,jb)):A.createCommentVNode("",!0)],64))),128))])]),A.createElementVNode("div",qb,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data.content,M=>(A.openBlock(),A.createElementBlock("div",{class:"card-list-item-content-item",key:M.label},[A.createElementVNode("div",{class:"card-list-item-content-item-label",title:M.label},A.toDisplayString(M.label)+":",9,Xb),A.createElementVNode("div",{class:A.normalizeClass(["card-list-item-content-item-value",{"is-more":M.isMore}]),onClick:N=>o(M),title:M.value,style:A.normalizeStyle({color:M.color})},[A.createTextVNode(A.toDisplayString(M.value||"- -")+" ",1),M.isMore?(A.openBlock(),A.createBlock(xe,{key:0,class:A.normalizeClass({"rotate-[180deg]":I.value}),name:"icon-a-rongqi11",size:"small"},null,8,["class"])):A.createCommentVNode("",!0)],14,Vb)]))),128))]),I.value?(A.openBlock(),A.createElementBlock("div",Ay,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data.childList,M=>(A.openBlock(),A.createElementBlock("div",{class:"card-list-item-content-item",key:M.label},[A.createElementVNode("div",{class:"card-list-item-content-item-label",title:M.label},A.toDisplayString(M.label)+":",9,ey),A.createElementVNode("div",{class:"card-list-item-content-item-value",title:M.value},A.toDisplayString(M.value||"- -"),9,ty)]))),128))])):A.createCommentVNode("",!0),b.data.footer?(A.openBlock(),A.createElementBlock("div",ny,[A.createVNode(xe,{name:b.data.footer.icon},null,8,["name"]),A.createElementVNode("span",iy,A.toDisplayString(b.data.footer.text||"- -"),1)])):A.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-805fdb67"]]),oy={key:0,class:"empty-content"},ic=ie(A.defineComponent({__name:"CardList",props:{title:{},key:{},rulePath:{},rowKey:{},showDynamicSearch:{type:Boolean},multipleSelection:{type:Boolean},highlightCurrentRow:{type:Boolean},"highlight-current-row":{type:Boolean},stripe:{type:Boolean},rowClick:{},rowDbClick:{},sizeChange:{},pageChange:{},topBtns:{},rowBtns:{},rowBtnsLabel:{},rowBtnsWidth:{},hidden:{type:Boolean},hiddenPagination:{type:Boolean},handleCurrentChange:{},selectable:{},pageSizes:{},pagerCount:{},paginationLayout:{},defaultPageSize:{},typeSwitch:{type:Boolean},displayType:{},onMounted:{},onActivated:{},height:{},collapsible:{type:Boolean},sortable:{type:Boolean},gridColumns:{default:3},gap:{default:16},data:{},columns:{},getColText:{}},setup(n){const e=n,t=A.inject("ruleModule",void 0),i=A.inject("ruleMap",void 0),u=A.inject("pageMethodMap",{}),I=A.computed(()=>e.rulePath&&i[e.rulePath]?i[e.rulePath]:t),o=(Y,G,K)=>{try{I.value[Y](u,G,K)}catch(D){console.error(D)}},b=A.computed(()=>e.rowBtns?e.rowBtns.map(Y=>({condition:Y.condition,icon:Y.icon&&Y.icon.name?Y.icon.name:"icon-tishi",label:Y.label,onClick:Y.onClick})):[]),y=e.columns.find(Y=>Y.position==="title"),w=e.columns.find(Y=>Y.position==="subTitle"),M=e.columns.find(Y=>Y.position==="footer"),N={key:"__childList"},P=A.computed(()=>{const Y=e.columns.filter(G=>G.type==="link");return e.data?e.data.map(G=>{var D;const K={subTitleRight:[],content:[],tag:[],originalData:G};if(y&&Y&&Y.find(E=>E.key===y.key)&&(K.titleType="link",K.onClick=(D=Y.find(E=>E.key===y.key))==null?void 0:D.onClick),y&&(K.title=e.getColText(y,G),K.titleColor=G[y.key+"Color"]),w&&(K.subTitle=e.getColText(w,G),K.subTitleColor=G[w.key+"Color"]),M){const E=e.getColText(M,G);K.footer={icon:M.footerIcon||"icon-tishi",text:`${M.label}: ${E||"- -"}`}}return e.columns.forEach(E=>{E.position==="content"?K.content.push({label:E.label,value:e.getColText(E,G),color:E.color}):E.position==="moreContent"?(K.content.push({label:E.label,value:e.getColText(E,G),isMore:G[N.key]&&G[N.key].length>0}),K.childList=G[N.key]):E.position==="tag"?K.tag.push({label:E.label,value:e.getColText(E,G)}):E.position==="subTitleRight"&&K.subTitleRight.push({label:E.label,value:e.getColText(E,G),color:E.color})}),K}):[]});return(Y,G)=>(A.openBlock(),A.createElementBlock("div",null,[A.createElementVNode("div",{class:"card-list",style:A.normalizeStyle({"--columns":Y.gridColumns,"--gap":Y.gap+"px"})},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(P.value,(K,D)=>(A.openBlock(),A.createElementBlock("div",{class:"card-list-item",key:D},[A.createVNode(Hd,{data:K,btns:b.value,index:D,onClickBtn:E=>o(E,K.originalData,D)},null,8,["data","btns","index","onClickBtn"])]))),128))],4),!Y.data||Y.data.length===0?(A.openBlock(),A.createElementBlock("div",oy,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),G[0]||(G[0]=A.createElementVNode("div",null,"No data available,please check",-1))])):A.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-082f0b61"]]),ry={title:"卡片列表",component:"CardList",render:ic,icon:A.h(Ie,{name:"card"}),type:"assist",order:1,attrSchema:{size:"small",labelPosition:"top",items:[{label:"填充的数据",component:"Input",name:"data"}]}},ay={title:"定制化组件(OfferDetails)",component:"OfferDetails",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Zx)),icon:A.h(Ie,{name:"card"}),type:"assist",order:1,attrSchema:{size:"small",labelPosition:"top",items:[{label:"填充的数据",component:"Input",name:"data"}]}},sy={title:"定制化组件(Progress)",component:"Progress",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Vx)),icon:A.h(Ie,{name:"card"}),type:"assist",order:1,attrSchema:{size:"small",labelPosition:"top",items:[{label:"填充的数据",component:"Input",name:"data"}]}},ly={title:"日志列表",component:"LogList",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>rS)),icon:A.h(Ie,{name:"card"}),type:"assist",order:12,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"}]}},cy={title:"可拖拽网格容器",icon:A.h(Ie,{name:"inline"}),type:"layout",component:"DragList",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>L8)),order:9,lbTitle:!0,attrSchema:{items:[{label:"唯一标识",component:"Input",name:"name"},{label:"列数",component:"InputNumber",name:"props.colNum",initialValue:12},{label:"行高",component:"InputNumber",name:"props.rowHeight",initialValue:30},{label:"布局",name:"props.layout",component:"FormList",children:[{label:"起点横坐标",name:"x",component:"Input",props:{type:"number"},designKey:"form-LnGh",initialValue:"{{$index}}"},{label:"起点纵坐标",name:"y",component:"Input",props:{type:"number"},designKey:"form-HYtW",initialValue:"{{ $index + 1}}"},{label:"宽度",name:"w",component:"Input",props:{type:"number"},designKey:"form-HYtW2"},{label:"高度",name:"h",component:"Input",props:{type:"number"},designKey:"form-HYtW3"},{label:"是否固定",name:"static",component:"Switch",designKey:"form-HYtW4"}],designKey:"form-Iwpd",props:{mode:"table",title:"选项"}}]}},gy=ie(A.defineComponent({__name:"Disabled",props:{disabled:{type:Boolean}},setup(n){return(e,t)=>e.disabled?(A.openBlock(),A.createElementBlock("div",A.mergeProps({key:0},e.$attrs,{class:"disabled-wrapper"}),[t[0]||(t[0]=A.createElementVNode("div",{class:"mask"},null,-1)),A.renderSlot(e.$slots,"default",{},void 0,!0)],16)):A.renderSlot(e.$slots,"default",{key:1},void 0,!0)}}),[["__scopeId","data-v-f3803727"]]);let qi=class extends Error{constructor(e){super(e),this.name="ShikiError"}},oc=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function uy(){return 2147483648}function dy(){return typeof performance<"u"?performance.now():Date.now()}const hy=(n,e)=>n+(e-n%e)%e;async function py(n){let e,t;const i={};function u(Y){t=Y,i.HEAPU8=new Uint8Array(Y),i.HEAPU32=new Uint32Array(Y)}function I(Y,G,K){i.HEAPU8.copyWithin(Y,G,G+K)}function o(Y){try{return e.grow(Y-t.byteLength+65535>>>16),u(e.buffer),1}catch{}}function b(Y){const G=i.HEAPU8.length;Y=Y>>>0;const K=uy();if(Y>K)return!1;for(let D=1;D<=4;D*=2){let E=G*(1+.2/D);E=Math.min(E,Y+100663296);const L=Math.min(K,hy(Math.max(Y,E),65536));if(o(L))return!0}return!1}const y=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function w(Y,G,K=1024){const D=G+K;let E=G;for(;Y[E]&&!(E>=D);)++E;if(E-G>16&&Y.buffer&&y)return y.decode(Y.subarray(G,E));let L="";for(;G<E;){let _=Y[G++];if(!(_&128)){L+=String.fromCharCode(_);continue}const v=Y[G++]&63;if((_&224)===192){L+=String.fromCharCode((_&31)<<6|v);continue}const B=Y[G++]&63;if((_&240)===224?_=(_&15)<<12|v<<6|B:_=(_&7)<<18|v<<12|B<<6|Y[G++]&63,_<65536)L+=String.fromCharCode(_);else{const p=_-65536;L+=String.fromCharCode(55296|p>>10,56320|p&1023)}}return L}function M(Y,G){return Y?w(i.HEAPU8,Y,G):""}const N={emscripten_get_now:dy,emscripten_memcpy_big:I,emscripten_resize_heap:b,fd_write:()=>0};async function P(){const G=await n({env:N,wasi_snapshot_preview1:N});e=G.memory,u(e.buffer),Object.assign(i,G),i.UTF8ToString=M}return await P(),i}let Lt=null;function Cy(n){throw new oc(n.UTF8ToString(n.getLastOnigError()))}class Fa{constructor(e){Ct(this,"utf16Length");Ct(this,"utf8Length");Ct(this,"utf16Value");Ct(this,"utf8Value");Ct(this,"utf16OffsetToUtf8");Ct(this,"utf8OffsetToUtf16");const t=e.length,i=Fa._utf8ByteLength(e),u=i!==t,I=u?new Uint32Array(t+1):null;u&&(I[t]=i);const o=u?new Uint32Array(i+1):null;u&&(o[i]=t);const b=new Uint8Array(i);let y=0;for(let w=0;w<t;w++){const M=e.charCodeAt(w);let N=M,P=!1;if(M>=55296&&M<=56319&&w+1<t){const Y=e.charCodeAt(w+1);Y>=56320&&Y<=57343&&(N=(M-55296<<10)+65536|Y-56320,P=!0)}u&&(I[w]=y,P&&(I[w+1]=y),N<=127?o[y+0]=w:N<=2047?(o[y+0]=w,o[y+1]=w):N<=65535?(o[y+0]=w,o[y+1]=w,o[y+2]=w):(o[y+0]=w,o[y+1]=w,o[y+2]=w,o[y+3]=w)),N<=127?b[y++]=N:N<=2047?(b[y++]=192|(N&1984)>>>6,b[y++]=128|(N&63)>>>0):N<=65535?(b[y++]=224|(N&61440)>>>12,b[y++]=128|(N&4032)>>>6,b[y++]=128|(N&63)>>>0):(b[y++]=240|(N&1835008)>>>18,b[y++]=128|(N&258048)>>>12,b[y++]=128|(N&4032)>>>6,b[y++]=128|(N&63)>>>0),P&&w++}this.utf16Length=t,this.utf8Length=i,this.utf16Value=e,this.utf8Value=b,this.utf16OffsetToUtf8=I,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let i=0,u=e.length;i<u;i++){const I=e.charCodeAt(i);let o=I,b=!1;if(I>=55296&&I<=56319&&i+1<u){const y=e.charCodeAt(i+1);y>=56320&&y<=57343&&(o=(I-55296<<10)+65536|y-56320,b=!0)}o<=127?t+=1:o<=2047?t+=2:o<=65535?t+=3:t+=4,b&&i++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const cn=class cn{constructor(e){Ct(this,"id",++cn.LAST_ID);Ct(this,"_onigBinding");Ct(this,"content");Ct(this,"utf16Length");Ct(this,"utf8Length");Ct(this,"utf16OffsetToUtf8");Ct(this,"utf8OffsetToUtf16");Ct(this,"ptr");if(!Lt)throw new oc("Must invoke loadWasm first.");this._onigBinding=Lt,this.content=e;const t=new Fa(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!cn._sharedPtrInUse?(cn._sharedPtr||(cn._sharedPtr=Lt.omalloc(1e4)),cn._sharedPtrInUse=!0,Lt.HEAPU8.set(t.utf8Value,cn._sharedPtr),this.ptr=cn._sharedPtr):this.ptr=t.createString(Lt)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===cn._sharedPtr?cn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Ct(cn,"LAST_ID",0),Ct(cn,"_sharedPtr",0),Ct(cn,"_sharedPtrInUse",!1);let Ra=cn;class By{constructor(e){Ct(this,"_onigBinding");Ct(this,"_ptr");if(!Lt)throw new oc("Must invoke loadWasm first.");const t=[],i=[];for(let b=0,y=e.length;b<y;b++){const w=new Fa(e[b]);t[b]=w.createString(Lt),i[b]=w.utf8Length}const u=Lt.omalloc(4*e.length);Lt.HEAPU32.set(t,u/4);const I=Lt.omalloc(4*e.length);Lt.HEAPU32.set(i,I/4);const o=Lt.createOnigScanner(u,I,e.length);for(let b=0,y=e.length;b<y;b++)Lt.ofree(t[b]);Lt.ofree(I),Lt.ofree(u),o===0&&Cy(Lt),this._onigBinding=Lt,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,i){let u=0;if(typeof i=="number"&&(u=i),typeof e=="string"){e=new Ra(e);const I=this._findNextMatchSync(e,t,!1,u);return e.dispose(),I}return this._findNextMatchSync(e,t,!1,u)}_findNextMatchSync(e,t,i,u){const I=this._onigBinding,o=I.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),u);if(o===0)return null;const b=I.HEAPU32;let y=o/4;const w=b[y++],M=b[y++],N=[];for(let P=0;P<M;P++){const Y=e.convertUtf8OffsetToUtf16(b[y++]),G=e.convertUtf8OffsetToUtf16(b[y++]);N[P]={start:Y,end:G,length:G-Y}}return{index:w,captureIndices:N}}}function my(n){return typeof n.instantiator=="function"}function Ey(n){return typeof n.default=="function"}function Qy(n){return typeof n.data<"u"}function Iy(n){return typeof Response<"u"&&n instanceof Response}function fy(n){var e;return typeof ArrayBuffer<"u"&&(n instanceof ArrayBuffer||ArrayBuffer.isView(n))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,n))||typeof SharedArrayBuffer<"u"&&n instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&n instanceof Uint32Array}let La;function wy(n){if(La)return La;async function e(){Lt=await py(async t=>{let i=n;return i=await i,typeof i=="function"&&(i=await i(t)),typeof i=="function"&&(i=await i(t)),my(i)?i=await i.instantiator(t):Ey(i)?i=await i.default(t):(Qy(i)&&(i=i.data),Iy(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await by(i)(t):i=await yy(i)(t):fy(i)?i=await rc(i)(t):i instanceof WebAssembly.Module?i=await rc(i)(t):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await rc(i.default)(t))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return La=e(),La}function rc(n){return e=>WebAssembly.instantiate(n,e)}function by(n){return e=>WebAssembly.instantiateStreaming(n,e)}function yy(n){return async e=>{const t=await n.arrayBuffer();return WebAssembly.instantiate(t,e)}}let Dy;function vy(){return Dy}async function ky(n){return n&&await wy(n),{createScanner(e){return new By(e)},createString(e){return new Ra(e)}}}function _y(n){return ac(n)}function ac(n){return Array.isArray(n)?My(n):typeof n=="object"?xy(n):n}function My(n){let e=[];for(let t=0,i=n.length;t<i;t++)e[t]=ac(n[t]);return e}function xy(n){let e={};for(let t in n)e[t]=ac(n[t]);return e}function Kd(n,...e){return e.forEach(t=>{for(let i in t)n[i]=t[i]}),n}function Td(n){const e=~n.lastIndexOf("/")||~n.lastIndexOf("\\");return e===0?n:~e===n.length-1?Td(n.substring(0,n.length-1)):n.substr(~e+1)}var sc=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ga=class{static hasCaptures(n){return n===null?!1:(sc.lastIndex=0,sc.test(n))}static replaceCaptures(n,e,t){return n.replace(sc,(i,u,I,o)=>{let b=t[parseInt(u||I,10)];if(b){let y=e.substring(b.start,b.end);for(;y[0]===".";)y=y.substring(1);switch(o){case"downcase":return y.toLowerCase();case"upcase":return y.toUpperCase();default:return y}}else return i})}};function Ud(n,e){return n<e?-1:n>e?1:0}function Yd(n,e){if(n===null&&e===null)return 0;if(!n)return-1;if(!e)return 1;let t=n.length,i=e.length;if(t===i){for(let u=0;u<t;u++){let I=Ud(n[u],e[u]);if(I!==0)return I}return 0}return t-i}function Od(n){return!!(/^#[0-9a-f]{6}$/i.test(n)||/^#[0-9a-f]{8}$/i.test(n)||/^#[0-9a-f]{3}$/i.test(n)||/^#[0-9a-f]{4}$/i.test(n))}function $d(n){return n.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var zd=class{constructor(n){this.fn=n,this.cache=new Map}get(n){if(this.cache.has(n))return this.cache.get(n);const e=this.fn(n);return this.cache.set(n,e),e}},Pa=class{constructor(n,e,t){this._colorMap=n,this._defaults=e,this._root=t,this._cachedMatchRoot=new zd(i=>this._root.match(i))}static createFromRawTheme(n,e){return this.createFromParsedTheme(Fy(n),e)}static createFromParsedTheme(n,e){return Ly(n,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(n){if(n===null)return this._defaults;const e=n.scopeName,i=this._cachedMatchRoot.get(e).find(u=>Sy(n.parent,u.parentScopes));return i?new Jd(i.fontStyle,i.foreground,i.background):null}},lc=class kl{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const i of t)e=new kl(e,i);return e}static from(...e){let t=null;for(let i=0;i<e.length;i++)t=new kl(t,e[i]);return t}push(e){return new kl(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let i=this;for(;i&&i!==e;)t.push(i.scopeName),i=i.parent;return i===e?t.reverse():void 0}};function Sy(n,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let i=e[t],u=!1;if(i===">"){if(t===e.length-1)return!1;i=e[++t],u=!0}for(;n&&!Ny(n.scopeName,i);){if(u)return!1;n=n.parent}if(!n)return!1;n=n.parent}return!0}function Ny(n,e){return e===n||n.startsWith(e)&&n[e.length]==="."}var Jd=class{constructor(n,e,t){this.fontStyle=n,this.foregroundId=e,this.backgroundId=t}};function Fy(n){if(!n)return[];if(!n.settings||!Array.isArray(n.settings))return[];let e=n.settings,t=[],i=0;for(let u=0,I=e.length;u<I;u++){let o=e[u];if(!o.settings)continue;let b;if(typeof o.scope=="string"){let N=o.scope;N=N.replace(/^[,]+/,""),N=N.replace(/[,]+$/,""),b=N.split(",")}else Array.isArray(o.scope)?b=o.scope:b=[""];let y=-1;if(typeof o.settings.fontStyle=="string"){y=0;let N=o.settings.fontStyle.split(" ");for(let P=0,Y=N.length;P<Y;P++)switch(N[P]){case"italic":y=y|1;break;case"bold":y=y|2;break;case"underline":y=y|4;break;case"strikethrough":y=y|8;break}}let w=null;typeof o.settings.foreground=="string"&&Od(o.settings.foreground)&&(w=o.settings.foreground);let M=null;typeof o.settings.background=="string"&&Od(o.settings.background)&&(M=o.settings.background);for(let N=0,P=b.length;N<P;N++){let G=b[N].trim().split(" "),K=G[G.length-1],D=null;G.length>1&&(D=G.slice(0,G.length-1),D.reverse()),t[i++]=new Ry(K,D,u,y,w,M)}}return t}var Ry=class{constructor(n,e,t,i,u,I){this.scope=n,this.parentScopes=e,this.index=t,this.fontStyle=i,this.foreground=u,this.background=I}},ui=(n=>(n[n.NotSet=-1]="NotSet",n[n.None=0]="None",n[n.Italic=1]="Italic",n[n.Bold=2]="Bold",n[n.Underline=4]="Underline",n[n.Strikethrough=8]="Strikethrough",n))(ui||{});function Ly(n,e){n.sort((y,w)=>{let M=Ud(y.scope,w.scope);return M!==0||(M=Yd(y.parentScopes,w.parentScopes),M!==0)?M:y.index-w.index});let t=0,i="#000000",u="#ffffff";for(;n.length>=1&&n[0].scope==="";){let y=n.shift();y.fontStyle!==-1&&(t=y.fontStyle),y.foreground!==null&&(i=y.foreground),y.background!==null&&(u=y.background)}let I=new Gy(e),o=new Jd(t,I.getId(i),I.getId(u)),b=new Hy(new cc(0,null,-1,0,0),[]);for(let y=0,w=n.length;y<w;y++){let M=n[y];b.insert(0,M.scope,M.parentScopes,M.fontStyle,I.getId(M.foreground),I.getId(M.background))}return new Pa(I,o,b)}var Gy=class{constructor(n){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(n)){this._isFrozen=!0;for(let e=0,t=n.length;e<t;e++)this._color2id[n[e]]=e,this._id2color[e]=n[e]}else this._isFrozen=!1}getId(n){if(n===null)return 0;n=n.toUpperCase();let e=this._color2id[n];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${n}`);return e=++this._lastColorId,this._color2id[n]=e,this._id2color[e]=n,e}getColorMap(){return this._id2color.slice(0)}},Py=Object.freeze([]),cc=class Cm{constructor(e,t,i,u,I){this.scopeDepth=e,this.parentScopes=t||Py,this.fontStyle=i,this.foreground=u,this.background=I}clone(){return new Cm(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let i=0,u=e.length;i<u;i++)t[i]=e[i].clone();return t}acceptOverwrite(e,t,i,u){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),i!==0&&(this.foreground=i),u!==0&&(this.background=u)}},Hy=class Qu{constructor(e,t=[],i={}){this._mainRule=e,this._children=i,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let i=0,u=0;for(;e.parentScopes[i]===">"&&i++,t.parentScopes[u]===">"&&u++,!(i>=e.parentScopes.length||u>=t.parentScopes.length);){const I=t.parentScopes[u].length-e.parentScopes[i].length;if(I!==0)return I;i++,u++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let i=e.indexOf("."),u,I;if(i===-1?(u=e,I=""):(u=e.substring(0,i),I=e.substring(i+1)),this._children.hasOwnProperty(u))return this._children[u].match(I)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Qu._cmpBySpecificity),t}insert(e,t,i,u,I,o){if(t===""){this._doInsertHere(e,i,u,I,o);return}let b=t.indexOf("."),y,w;b===-1?(y=t,w=""):(y=t.substring(0,b),w=t.substring(b+1));let M;this._children.hasOwnProperty(y)?M=this._children[y]:(M=new Qu(this._mainRule.clone(),cc.cloneArr(this._rulesWithParentScopes)),this._children[y]=M),M.insert(e+1,w,i,u,I,o)}_doInsertHere(e,t,i,u,I){if(t===null){this._mainRule.acceptOverwrite(e,i,u,I);return}for(let o=0,b=this._rulesWithParentScopes.length;o<b;o++){let y=this._rulesWithParentScopes[o];if(Yd(y.parentScopes,t)===0){y.acceptOverwrite(e,i,u,I);return}}i===-1&&(i=this._mainRule.fontStyle),u===0&&(u=this._mainRule.foreground),I===0&&(I=this._mainRule.background),this._rulesWithParentScopes.push(new cc(e,t,i,u,I))}},No=class Un{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=Un.getLanguageId(e),i=Un.getTokenType(e),u=Un.getFontStyle(e),I=Un.getForeground(e),o=Un.getBackground(e);console.log({languageId:t,tokenType:i,fontStyle:u,foreground:I,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,i,u,I,o,b){let y=Un.getLanguageId(e),w=Un.getTokenType(e),M=Un.containsBalancedBrackets(e)?1:0,N=Un.getFontStyle(e),P=Un.getForeground(e),Y=Un.getBackground(e);return t!==0&&(y=t),i!==8&&(w=i),u!==null&&(M=u?1:0),I!==-1&&(N=I),o!==0&&(P=o),b!==0&&(Y=b),(y<<0|w<<8|M<<10|N<<11|P<<15|Y<<24)>>>0}};function Y3(n){return n}function O3(n){return n}function Ha(n,e){const t=[],i=Ky(n);let u=i.next();for(;u!==null;){let y=0;if(u.length===2&&u.charAt(1)===":"){switch(u.charAt(0)){case"R":y=1;break;case"L":y=-1;break;default:console.log(`Unknown priority ${u} in scope selector`)}u=i.next()}let w=o();if(t.push({matcher:w,priority:y}),u!==",")break;u=i.next()}return t;function I(){if(u==="-"){u=i.next();const y=I();return w=>!!y&&!y(w)}if(u==="("){u=i.next();const y=b();return u===")"&&(u=i.next()),y}if(Zd(u)){const y=[];do y.push(u),u=i.next();while(Zd(u));return w=>e(y,w)}return null}function o(){const y=[];let w=I();for(;w;)y.push(w),w=I();return M=>y.every(N=>N(M))}function b(){const y=[];let w=o();for(;w&&(y.push(w),u==="|"||u===",");){do u=i.next();while(u==="|"||u===",");w=o()}return M=>y.some(N=>N(M))}}function Zd(n){return!!n&&!!n.match(/[\w\.:]+/)}function Ky(n){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(n);return{next:()=>{if(!t)return null;const i=t[0];return t=e.exec(n),i}}}function Wd(n){typeof n.dispose=="function"&&n.dispose()}var Br=class{constructor(n){this.scopeName=n}toKey(){return this.scopeName}},Ty=class{constructor(n,e){this.scopeName=n,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Uy=class{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(n){const e=n.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(n))}},Yy=class{constructor(n,e){this.repo=n,this.initialScopeName=e,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Br(this.initialScopeName)]}processQueue(){const n=this.Q;this.Q=[];const e=new Uy;for(const t of n)Oy(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof Br){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Oy(n,e,t,i){const u=t.lookup(n.scopeName);if(!u){if(n.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const I=t.lookup(e);n instanceof Br?Ka({baseGrammar:I,selfGrammar:u},i):gc(n.ruleName,{baseGrammar:I,selfGrammar:u,repository:u.repository},i);const o=t.injections(n.scopeName);if(o)for(const b of o)i.add(new Br(b))}function gc(n,e,t){if(e.repository&&e.repository[n]){const i=e.repository[n];Ta([i],e,t)}}function Ka(n,e){n.selfGrammar.patterns&&Array.isArray(n.selfGrammar.patterns)&&Ta(n.selfGrammar.patterns,{...n,repository:n.selfGrammar.repository},e),n.selfGrammar.injections&&Ta(Object.values(n.selfGrammar.injections),{...n,repository:n.selfGrammar.repository},e)}function Ta(n,e,t){for(const i of n){if(t.visitedRule.has(i))continue;t.visitedRule.add(i);const u=i.repository?Kd({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&Ta(i.patterns,{...e,repository:u},t);const I=i.include;if(!I)continue;const o=jd(I);switch(o.kind){case 0:Ka({...e,selfGrammar:e.baseGrammar},t);break;case 1:Ka(e,t);break;case 2:gc(o.ruleName,{...e,repository:u},t);break;case 3:case 4:const b=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(b){const y={baseGrammar:e.baseGrammar,selfGrammar:b,repository:u};o.kind===4?gc(o.ruleName,y,t):Ka(y,t)}else o.kind===4?t.add(new Ty(o.scopeName,o.ruleName)):t.add(new Br(o.scopeName));break}}}var $y=class{constructor(){this.kind=0}},zy=class{constructor(){this.kind=1}},Jy=class{constructor(n){this.ruleName=n,this.kind=2}},Zy=class{constructor(n){this.scopeName=n,this.kind=3}},Wy=class{constructor(n,e){this.scopeName=n,this.ruleName=e,this.kind=4}};function jd(n){if(n==="$base")return new $y;if(n==="$self")return new zy;const e=n.indexOf("#");if(e===-1)return new Zy(n);if(e===0)return new Jy(n.substring(1));{const t=n.substring(0,e),i=n.substring(e+1);return new Wy(t,i)}}var jy=/\\(\d+)/,qd=/\\(\d+)/g,qy=-1,Xd=-2;function $3(n){return n}function z3(n){return n}var mr=class{constructor(n,e,t,i){this.$location=n,this.id=e,this._name=t||null,this._nameIsCapturing=Ga.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=Ga.hasCaptures(this._contentName)}get debugName(){const n=this.$location?`${Td(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${n}`}getName(n,e){return!this._nameIsCapturing||this._name===null||n===null||e===null?this._name:Ga.replaceCaptures(this._name,n,e)}getContentName(n,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ga.replaceCaptures(this._contentName,n,e)}},Xy=class extends mr{constructor(n,e,t,i,u){super(n,e,t,i),this.retokenizeCapturedWithRuleId=u}dispose(){}collectPatterns(n,e){throw new Error("Not supported!")}compile(n,e){throw new Error("Not supported!")}compileAG(n,e,t,i){throw new Error("Not supported!")}},Vy=class extends mr{constructor(n,e,t,i,u){super(n,e,t,null),this._match=new Er(i,this.id),this.captures=u,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(n,e){e.push(this._match)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,i){return this._getCachedCompiledPatterns(n).compileAG(n,t,i)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Qr,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Vd=class extends mr{constructor(n,e,t,i,u){super(n,e,t,i),this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(n,e){for(const t of this.patterns)n.getRule(t).collectPatterns(n,e)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,i){return this._getCachedCompiledPatterns(n).compileAG(n,t,i)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Qr,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},uc=class extends mr{constructor(n,e,t,i,u,I,o,b,y,w){super(n,e,t,i),this._begin=new Er(u,this.id),this.beginCaptures=I,this._end=new Er(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=b,this.applyEndPatternLast=y||!1,this.patterns=w.patterns,this.hasMissingPatterns=w.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(n,e){return this._end.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n,e).compile(n)}compileAG(n,e,t,i){return this._getCachedCompiledPatterns(n,e).compileAG(n,t,i)}_getCachedCompiledPatterns(n,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Qr;for(const t of this.patterns)n.getRule(t).collectPatterns(n,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Ua=class extends mr{constructor(n,e,t,i,u,I,o,b,y){super(n,e,t,i),this._begin=new Er(u,this.id),this.beginCaptures=I,this.whileCaptures=b,this._while=new Er(o,Xd),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=y.patterns,this.hasMissingPatterns=y.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(n,e){return this._while.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,i){return this._getCachedCompiledPatterns(n).compileAG(n,t,i)}_getCachedCompiledPatterns(n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Qr;for(const e of this.patterns)n.getRule(e).collectPatterns(n,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(n,e){return this._getCachedCompiledWhilePatterns(n,e).compile(n)}compileWhileAG(n,e,t,i){return this._getCachedCompiledWhilePatterns(n,e).compileAG(n,t,i)}_getCachedCompiledWhilePatterns(n,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Qr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}},Ah=class Jt{static createCaptureRule(e,t,i,u,I){return e.registerRule(o=>new Xy(t,o,i,u,I))}static getCompiledRuleId(e,t,i){return e.id||t.registerRule(u=>{if(e.id=u,e.match)return new Vy(e.$vscodeTextmateLocation,e.id,e.name,e.match,Jt._compileCaptures(e.captures,t,i));if(typeof e.begin>"u"){e.repository&&(i=Kd({},i,e.repository));let I=e.patterns;return typeof I>"u"&&e.include&&(I=[{include:e.include}]),new Vd(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,Jt._compilePatterns(I,t,i))}return e.while?new Ua(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,Jt._compileCaptures(e.beginCaptures||e.captures,t,i),e.while,Jt._compileCaptures(e.whileCaptures||e.captures,t,i),Jt._compilePatterns(e.patterns,t,i)):new uc(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,Jt._compileCaptures(e.beginCaptures||e.captures,t,i),e.end,Jt._compileCaptures(e.endCaptures||e.captures,t,i),e.applyEndPatternLast,Jt._compilePatterns(e.patterns,t,i))}),e.id}static _compileCaptures(e,t,i){let u=[];if(e){let I=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const b=parseInt(o,10);b>I&&(I=b)}for(let o=0;o<=I;o++)u[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const b=parseInt(o,10);let y=0;e[o].patterns&&(y=Jt.getCompiledRuleId(e[o],t,i)),u[b]=Jt.createCaptureRule(t,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,y)}}return u}static _compilePatterns(e,t,i){let u=[];if(e)for(let I=0,o=e.length;I<o;I++){const b=e[I];let y=-1;if(b.include){const w=jd(b.include);switch(w.kind){case 0:case 1:y=Jt.getCompiledRuleId(i[b.include],t,i);break;case 2:let M=i[w.ruleName];M&&(y=Jt.getCompiledRuleId(M,t,i));break;case 3:case 4:const N=w.scopeName,P=w.kind===4?w.ruleName:null,Y=t.getExternalGrammar(N,i);if(Y)if(P){let G=Y.repository[P];G&&(y=Jt.getCompiledRuleId(G,t,Y.repository))}else y=Jt.getCompiledRuleId(Y.repository.$self,t,Y.repository);break}}else y=Jt.getCompiledRuleId(b,t,i);if(y!==-1){const w=t.getRule(y);let M=!1;if((w instanceof Vd||w instanceof uc||w instanceof Ua)&&w.hasMissingPatterns&&w.patterns.length===0&&(M=!0),M)continue;u.push(y)}}return{patterns:u,hasMissingPatterns:(e?e.length:0)!==u.length}}},Er=class Bm{constructor(e,t){if(e){const i=e.length;let u=0,I=[],o=!1;for(let b=0;b<i;b++)if(e.charAt(b)==="\\"&&b+1<i){const w=e.charAt(b+1);w==="z"?(I.push(e.substring(u,b)),I.push("$(?!\\n)(?<!\\n)"),u=b+2):(w==="A"||w==="G")&&(o=!0),b++}this.hasAnchor=o,u===0?this.source=e:(I.push(e.substring(u,i)),this.source=I.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=jy.test(this.source)}clone(){return new Bm(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let i=t.map(u=>e.substring(u.start,u.end));return qd.lastIndex=0,this.source.replace(qd,(u,I)=>$d(i[parseInt(I,10)]||""))}_buildAnchorCache(){let e=[],t=[],i=[],u=[],I,o,b,y;for(I=0,o=this.source.length;I<o;I++)b=this.source.charAt(I),e[I]=b,t[I]=b,i[I]=b,u[I]=b,b==="\\"&&I+1<o&&(y=this.source.charAt(I+1),y==="A"?(e[I+1]="￿",t[I+1]="￿",i[I+1]="A",u[I+1]="A"):y==="G"?(e[I+1]="￿",t[I+1]="G",i[I+1]="￿",u[I+1]="G"):(e[I+1]=y,t[I+1]=y,i[I+1]=y,u[I+1]=y),I++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:i.join(""),A1_G1:u.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Qr=class{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(n){this._items.push(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}unshift(n){this._items.unshift(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}length(){return this._items.length}setSource(n,e){this._items[n].source!==e&&(this._disposeCaches(),this._items[n].setSource(e))}compile(n){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new eh(n,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(n,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G0):this.compile(n)}_resolveAnchors(n,e,t){let i=this._items.map(u=>u.resolveAnchors(e,t));return new eh(n,i,this._items.map(u=>u.ruleId))}},eh=class{constructor(n,e,t){this.regExps=e,this.rules=t,this.scanner=n.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const n=[];for(let e=0,t=this.rules.length;e<t;e++)n.push(" - "+this.rules[e]+": "+this.regExps[e]);return n.join(`
88
+ onClick: ${e.onClick}`)}u.value=!1}};return(o,b)=>{const y=A.resolveComponent("el-button");return o.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(y,A.mergeProps({key:0},o.$attrs,{onClick:I,color:o.orange?"#FAA21E":"",class:["crm-button",{orangeBtn:o.orange}],plain:!o.orange&&o.$attrs.type!=="primary",loading:u.value}),{default:A.withCtx(()=>[o.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:o.icon.name,color:o.icon.color,class:A.normalizeClass({btnicon:o.buttonText})},null,8,["name","color","class"])):A.createCommentVNode("",!0),A.createTextVNode(" "+A.toDisplayString(o.buttonText)+" ",1),o.suffixIcon?(A.openBlock(),A.createBlock(xe,{key:1,name:o.suffixIcon.name,color:o.suffixIcon.color,class:A.normalizeClass({suffixIcon:o.buttonText})},null,8,["name","color","class"])):A.createCommentVNode("",!0)]),_:1},16,["color","class","plain","loading"]))}}}),[["__scopeId","data-v-cc9e831f"]]),Fb={title:"按钮",component:"Button",icon:A.h(Ie,{name:"button"}),type:"assist",order:1,attrSchema:Sb,render:Nb},Rb={size:"small",labelPosition:"top",initialValues:{props:{emptyText:"暂无数据",nodeKey:"id",expandOnClickNode:!1,props:{label:"label",children:"children"}}},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"节点标识属性名",component:"Input",name:"props.nodeKey"},{label:"内容为空时的文本",component:"Input",name:"props.emptyText"},{label:"是否可拖拽",component:"Switch",name:"props.draggable"},{label:"是否点击节点时展开或收缩",component:"Switch",name:"props.expandOnClickNode"},{label:"节点是否懒加载",component:"Switch",name:"props.lazy"},{component:"Grid",children:[{label:"节点标签属性名",component:"Input",name:"props.props.label"},{label:"子树属性名",component:"Input",name:"props.props.children"},{label:"是否禁用属性名",component:"Input",name:"props.props.disabled"}],props:{columns:3,"row-gap":20,"column-gap":20},designKey:"form-R003",name:"cNmCuu"},{label:"子节点设置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},name:"label",initialValue:'{{ "一级子节点" + ($index + 1) }}'},{label:"唯一标识",component:"Input",name:"{{$values.props.nodeKey}}",initialValue:"{{ $index + 1 }}"},{label:"子节点设置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},name:"label",initialValue:'{{ "二级子节点" + ($index + 1) }}'}],props:{mode:"card",title:"子节点"},name:"children"}],props:{mode:"card",title:"子节点"},designKey:"id-RQ1a",name:"props.data"}]},Lb={title:"树",component:"Tree",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Cx)),icon:A.h(Ie,{name:"tree"}),type:"assist",order:7,attrSchema:Rb},Gb={size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help",designKey:"form-ekRL1"},{component:"Grid",children:[{label:"是否隐藏",component:"Switch",name:"hidden"}],props:{columns:3,"row-gap":20,"column-gap":20},designKey:"form-R003",name:"cNmCuu"},{label:"列设置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},name:"label"},{label:"是否隐藏",component:"Switch",name:"hidden"}],props:{mode:"card",title:"列"},designKey:"id-RQ1a",name:"props.columns"},{label:"change事件函数名",component:"Input",name:"props.onChange"}]},Pb={title:"表格",component:"Table",icon:A.h(Ie,{name:"library"}),type:"assist",order:8,attrSchema:Gb,render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Dx))},Hb={title:"curd模版卡片",component:"CurdCard",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Fx)),icon:A.h(Ie,{name:"card"}),type:"layout",order:6,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"},{label:"卡片标题",component:"Input",name:"props.title",initialValue:"卡片"},{label:"支持折叠",component:"Switch",name:"props.collapsible"},{label:"支持切换内部表格类型",component:"Switch",name:"props.typeSwitch"},{label:"样式类型",component:"Select",name:"props.type",props:{mode:"static",options:[{label:"默认",value:"default"},{label:"内联",value:"inline"},{label:"混合",value:"mix"}]}}]}},Kb={title:"普通div容器",component:"Wrapper",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Gx)),icon:A.h(Ie,{name:"card"}),type:"layout",order:7,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"},{label:"卡片标题",component:"Input",name:"props.header",initialValue:"卡片"},{label:"支持折叠",component:"Switch",name:"props.collapsible"}]}},Tb={class:"card-list-item"},Ub={class:"card-list-item-header"},Yb={class:"card-list-item-header-title"},Ob={style:{display:"ruby"}},$b=["title"],zb=["title"],Jb={key:0,class:"card-list-item-header-title__sub"},Zb={class:"sub-title-right"},Wb={class:"card-list-item-header-btns"},jb=["onClick"],qb={class:"card-list-item-content"},Xb=["title"],Vb=["onClick","title"],Ay={key:0,class:"card-list-item-content--more"},ey=["title"],ty=["title"],ny={key:1,class:"card-list-item-footer"},iy={class:"card-list-item-footer-text"},Hd=ie(A.defineComponent({__name:"CardListItem",props:{data:{},btns:{},index:{}},emits:["clickBtn"],setup(n,{emit:e}){const t=e,i=A.inject("getGlobalParams",()=>{}),u=b=>{if(b)try{t("clickBtn",b)}catch(y){console.error(y)}},I=A.ref(!1),o=b=>{b.isMore&&(I.value=!I.value)};return(b,y)=>{const w=A.resolveComponent("el-tooltip");return A.openBlock(),A.createElementBlock("div",Tb,[A.createElementVNode("div",Ub,[A.createElementVNode("div",Yb,[A.createElementVNode("div",Ob,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data.tag,M=>(A.openBlock(),A.createElementBlock("div",{key:M.label,class:"card-list-item-header-title__tag",style:A.normalizeStyle({color:M.color}),title:M.value},A.toDisplayString(M.value),13,$b))),128))]),A.createElementVNode("div",{class:A.normalizeClass(["card-list-item-header-title__text",{"link-style":b.data.titleType==="link","click-style":b.data.onClick}]),style:A.normalizeStyle({color:b.data.titleColor}),title:b.data.title,onClick:y[0]||(y[0]=M=>u(b.data.onClick))},A.toDisplayString(b.data.title),15,zb),b.data.subTitle?(A.openBlock(),A.createElementBlock("div",Jb,[A.createElementVNode("span",{class:"card-list-item-header-title__sub-icon",style:A.normalizeStyle({backgroundColor:b.data.subTitleColor||"#3EBF17"})},null,4),A.createElementVNode("span",null,A.toDisplayString(b.data.subTitle),1),A.createElementVNode("div",Zb,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data.subTitleRight,(M,N)=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:N},[M.value?(A.openBlock(),A.createElementBlock("div",{key:0,style:A.normalizeStyle({color:M.color||"var(--hight)"}),class:"sub-title-right__item"},A.toDisplayString(M.value),5)):A.createCommentVNode("",!0)],64))),128))])])):A.createCommentVNode("",!0)]),A.createElementVNode("div",Wb,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.btns,(M,N)=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:N},[M.condition===void 0||M.condition===null||A.unref(Rt)(M.condition,{$row:b.data.originalData,$globalParams:A.unref(i)()})?(A.openBlock(),A.createElementBlock("div",{key:0,class:"card-list-item-header-btns-item",onClick:P=>u(M.onClick)},[M.label?(A.openBlock(),A.createBlock(w,{key:0,class:"box-item",effect:"dark",content:M.label,placement:"top","popper-class":"low-tsp"},{default:A.withCtx(()=>[A.createVNode(xe,{name:M.icon},null,8,["name"])]),_:2},1032,["content"])):(A.openBlock(),A.createBlock(xe,{key:1,name:M.icon},null,8,["name"]))],8,jb)):A.createCommentVNode("",!0)],64))),128))])]),A.createElementVNode("div",qb,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data.content,M=>(A.openBlock(),A.createElementBlock("div",{class:"card-list-item-content-item",key:M.label},[A.createElementVNode("div",{class:"card-list-item-content-item-label",title:M.label},A.toDisplayString(M.label)+":",9,Xb),A.createElementVNode("div",{class:A.normalizeClass(["card-list-item-content-item-value",{"is-more":M.isMore}]),onClick:N=>o(M),title:M.value,style:A.normalizeStyle({color:M.color})},[A.createTextVNode(A.toDisplayString(M.value||"- -")+" ",1),M.isMore?(A.openBlock(),A.createBlock(xe,{key:0,class:A.normalizeClass({"rotate-[180deg]":I.value}),name:"icon-a-rongqi11",size:"small"},null,8,["class"])):A.createCommentVNode("",!0)],14,Vb)]))),128))]),I.value?(A.openBlock(),A.createElementBlock("div",Ay,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data.childList,M=>(A.openBlock(),A.createElementBlock("div",{class:"card-list-item-content-item",key:M.label},[A.createElementVNode("div",{class:"card-list-item-content-item-label",title:M.label},A.toDisplayString(M.label)+":",9,ey),A.createElementVNode("div",{class:"card-list-item-content-item-value",title:M.value},A.toDisplayString(M.value||"- -"),9,ty)]))),128))])):A.createCommentVNode("",!0),b.data.footer?(A.openBlock(),A.createElementBlock("div",ny,[A.createVNode(xe,{name:b.data.footer.icon},null,8,["name"]),A.createElementVNode("span",iy,A.toDisplayString(b.data.footer.text||"- -"),1)])):A.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-805fdb67"]]),oy={key:0,class:"empty-content"},ic=ie(A.defineComponent({__name:"CardList",props:{title:{},key:{},rulePath:{},rowKey:{},showDynamicSearch:{type:Boolean},multipleSelection:{type:Boolean},highlightCurrentRow:{type:Boolean},"highlight-current-row":{type:Boolean},stripe:{type:Boolean},rowClick:{},rowDbClick:{},sizeChange:{},pageChange:{},topBtns:{},rowBtns:{},rowBtnsLabel:{},rowBtnsWidth:{},hidden:{type:Boolean},hiddenPagination:{type:Boolean},handleCurrentChange:{},selectable:{},pageSizes:{},pagerCount:{},paginationLayout:{},defaultPageSize:{},typeSwitch:{type:Boolean},displayType:{},onMounted:{},onActivated:{},height:{},collapsible:{type:Boolean},sortable:{type:Boolean},gridColumns:{default:3},gap:{default:16},data:{},columns:{},getColText:{}},setup(n){const e=n,t=A.inject("ruleModule",void 0),i=A.inject("ruleMap",void 0),u=A.inject("pageMethodMap",{}),I=A.computed(()=>e.rulePath&&i[e.rulePath]?i[e.rulePath]:t),o=(Y,G,K)=>{try{I.value[Y](u,G,K)}catch(D){console.error(D)}},b=A.computed(()=>e.rowBtns?e.rowBtns.map(Y=>({condition:Y.condition,icon:Y.icon&&Y.icon.name?Y.icon.name:"icon-tishi",label:Y.label,onClick:Y.onClick})):[]),y=e.columns.find(Y=>Y.position==="title"),w=e.columns.find(Y=>Y.position==="subTitle"),M=e.columns.find(Y=>Y.position==="footer"),N={key:"__childList"},P=A.computed(()=>{const Y=e.columns.filter(G=>G.type==="link");return e.data?e.data.map(G=>{var D;const K={subTitleRight:[],content:[],tag:[],originalData:G};if(y&&Y&&Y.find(E=>E.key===y.key)&&(K.titleType="link",K.onClick=(D=Y.find(E=>E.key===y.key))==null?void 0:D.onClick),y&&(K.title=e.getColText(y,G),K.titleColor=G[y.key+"Color"]),w&&(K.subTitle=e.getColText(w,G),K.subTitleColor=G[w.key+"Color"]),M){const E=e.getColText(M,G);K.footer={icon:M.footerIcon||"icon-tishi",text:`${M.label}: ${E||"- -"}`}}return e.columns.forEach(E=>{E.position==="content"?K.content.push({label:E.label,value:e.getColText(E,G),color:E.color}):E.position==="moreContent"?(K.content.push({label:E.label,value:e.getColText(E,G),isMore:G[N.key]&&G[N.key].length>0}),K.childList=G[N.key]):E.position==="tag"?K.tag.push({label:E.label,value:e.getColText(E,G)}):E.position==="subTitleRight"&&K.subTitleRight.push({label:E.label,value:e.getColText(E,G),color:E.color})}),K}):[]});return(Y,G)=>(A.openBlock(),A.createElementBlock("div",null,[A.createElementVNode("div",{class:"card-list",style:A.normalizeStyle({"--columns":Y.gridColumns,"--gap":Y.gap+"px"})},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(P.value,(K,D)=>(A.openBlock(),A.createElementBlock("div",{class:"card-list-item",key:D},[A.createVNode(Hd,{data:K,btns:b.value,index:D,onClickBtn:E=>o(E,K.originalData,D)},null,8,["data","btns","index","onClickBtn"])]))),128))],4),!Y.data||Y.data.length===0?(A.openBlock(),A.createElementBlock("div",oy,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),G[0]||(G[0]=A.createElementVNode("div",null,"No data available,please check",-1))])):A.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-082f0b61"]]),ry={title:"卡片列表",component:"CardList",render:ic,icon:A.h(Ie,{name:"card"}),type:"assist",order:1,attrSchema:{size:"small",labelPosition:"top",items:[{label:"填充的数据",component:"Input",name:"data"}]}},ay={title:"定制化组件(OfferDetails)",component:"OfferDetails",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Zx)),icon:A.h(Ie,{name:"card"}),type:"assist",order:1,attrSchema:{size:"small",labelPosition:"top",items:[{label:"填充的数据",component:"Input",name:"data"}]}},sy={title:"定制化组件(Progress)",component:"Progress",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Vx)),icon:A.h(Ie,{name:"card"}),type:"assist",order:1,attrSchema:{size:"small",labelPosition:"top",items:[{label:"填充的数据",component:"Input",name:"data"}]}},ly={title:"日志列表",component:"LogList",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>rS)),icon:A.h(Ie,{name:"card"}),type:"assist",order:12,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"}]}},cy={title:"可拖拽网格容器",icon:A.h(Ie,{name:"inline"}),type:"layout",component:"DragList",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>L8)),order:9,lbTitle:!0,attrSchema:{items:[{label:"唯一标识",component:"Input",name:"name"},{label:"列数",component:"InputNumber",name:"props.colNum",initialValue:12},{label:"行高",component:"InputNumber",name:"props.rowHeight",initialValue:30},{label:"布局",name:"props.layout",component:"FormList",children:[{label:"起点横坐标",name:"x",component:"Input",props:{type:"number"},designKey:"form-LnGh",initialValue:"{{$index}}"},{label:"起点纵坐标",name:"y",component:"Input",props:{type:"number"},designKey:"form-HYtW",initialValue:"{{ $index + 1}}"},{label:"宽度",name:"w",component:"Input",props:{type:"number"},designKey:"form-HYtW2"},{label:"高度",name:"h",component:"Input",props:{type:"number"},designKey:"form-HYtW3"},{label:"是否固定",name:"static",component:"Switch",designKey:"form-HYtW4"}],designKey:"form-Iwpd",props:{mode:"table",title:"选项"}}]}},gy=ie(A.defineComponent({__name:"Disabled",props:{disabled:{type:Boolean}},setup(n){return(e,t)=>e.disabled?(A.openBlock(),A.createElementBlock("div",A.mergeProps({key:0},e.$attrs,{class:"disabled-wrapper"}),[t[0]||(t[0]=A.createElementVNode("div",{class:"mask"},null,-1)),A.renderSlot(e.$slots,"default",{},void 0,!0)],16)):A.renderSlot(e.$slots,"default",{key:1},void 0,!0)}}),[["__scopeId","data-v-f3803727"]]);let qi=class extends Error{constructor(e){super(e),this.name="ShikiError"}},oc=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function uy(){return 2147483648}function dy(){return typeof performance<"u"?performance.now():Date.now()}const hy=(n,e)=>n+(e-n%e)%e;async function py(n){let e,t;const i={};function u(Y){t=Y,i.HEAPU8=new Uint8Array(Y),i.HEAPU32=new Uint32Array(Y)}function I(Y,G,K){i.HEAPU8.copyWithin(Y,G,G+K)}function o(Y){try{return e.grow(Y-t.byteLength+65535>>>16),u(e.buffer),1}catch{}}function b(Y){const G=i.HEAPU8.length;Y=Y>>>0;const K=uy();if(Y>K)return!1;for(let D=1;D<=4;D*=2){let E=G*(1+.2/D);E=Math.min(E,Y+100663296);const L=Math.min(K,hy(Math.max(Y,E),65536));if(o(L))return!0}return!1}const y=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function w(Y,G,K=1024){const D=G+K;let E=G;for(;Y[E]&&!(E>=D);)++E;if(E-G>16&&Y.buffer&&y)return y.decode(Y.subarray(G,E));let L="";for(;G<E;){let _=Y[G++];if(!(_&128)){L+=String.fromCharCode(_);continue}const v=Y[G++]&63;if((_&224)===192){L+=String.fromCharCode((_&31)<<6|v);continue}const B=Y[G++]&63;if((_&240)===224?_=(_&15)<<12|v<<6|B:_=(_&7)<<18|v<<12|B<<6|Y[G++]&63,_<65536)L+=String.fromCharCode(_);else{const p=_-65536;L+=String.fromCharCode(55296|p>>10,56320|p&1023)}}return L}function M(Y,G){return Y?w(i.HEAPU8,Y,G):""}const N={emscripten_get_now:dy,emscripten_memcpy_big:I,emscripten_resize_heap:b,fd_write:()=>0};async function P(){const G=await n({env:N,wasi_snapshot_preview1:N});e=G.memory,u(e.buffer),Object.assign(i,G),i.UTF8ToString=M}return await P(),i}let Lt=null;function Cy(n){throw new oc(n.UTF8ToString(n.getLastOnigError()))}class Fa{constructor(e){Bt(this,"utf16Length");Bt(this,"utf8Length");Bt(this,"utf16Value");Bt(this,"utf8Value");Bt(this,"utf16OffsetToUtf8");Bt(this,"utf8OffsetToUtf16");const t=e.length,i=Fa._utf8ByteLength(e),u=i!==t,I=u?new Uint32Array(t+1):null;u&&(I[t]=i);const o=u?new Uint32Array(i+1):null;u&&(o[i]=t);const b=new Uint8Array(i);let y=0;for(let w=0;w<t;w++){const M=e.charCodeAt(w);let N=M,P=!1;if(M>=55296&&M<=56319&&w+1<t){const Y=e.charCodeAt(w+1);Y>=56320&&Y<=57343&&(N=(M-55296<<10)+65536|Y-56320,P=!0)}u&&(I[w]=y,P&&(I[w+1]=y),N<=127?o[y+0]=w:N<=2047?(o[y+0]=w,o[y+1]=w):N<=65535?(o[y+0]=w,o[y+1]=w,o[y+2]=w):(o[y+0]=w,o[y+1]=w,o[y+2]=w,o[y+3]=w)),N<=127?b[y++]=N:N<=2047?(b[y++]=192|(N&1984)>>>6,b[y++]=128|(N&63)>>>0):N<=65535?(b[y++]=224|(N&61440)>>>12,b[y++]=128|(N&4032)>>>6,b[y++]=128|(N&63)>>>0):(b[y++]=240|(N&1835008)>>>18,b[y++]=128|(N&258048)>>>12,b[y++]=128|(N&4032)>>>6,b[y++]=128|(N&63)>>>0),P&&w++}this.utf16Length=t,this.utf8Length=i,this.utf16Value=e,this.utf8Value=b,this.utf16OffsetToUtf8=I,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let i=0,u=e.length;i<u;i++){const I=e.charCodeAt(i);let o=I,b=!1;if(I>=55296&&I<=56319&&i+1<u){const y=e.charCodeAt(i+1);y>=56320&&y<=57343&&(o=(I-55296<<10)+65536|y-56320,b=!0)}o<=127?t+=1:o<=2047?t+=2:o<=65535?t+=3:t+=4,b&&i++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const cn=class cn{constructor(e){Bt(this,"id",++cn.LAST_ID);Bt(this,"_onigBinding");Bt(this,"content");Bt(this,"utf16Length");Bt(this,"utf8Length");Bt(this,"utf16OffsetToUtf8");Bt(this,"utf8OffsetToUtf16");Bt(this,"ptr");if(!Lt)throw new oc("Must invoke loadWasm first.");this._onigBinding=Lt,this.content=e;const t=new Fa(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!cn._sharedPtrInUse?(cn._sharedPtr||(cn._sharedPtr=Lt.omalloc(1e4)),cn._sharedPtrInUse=!0,Lt.HEAPU8.set(t.utf8Value,cn._sharedPtr),this.ptr=cn._sharedPtr):this.ptr=t.createString(Lt)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===cn._sharedPtr?cn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Bt(cn,"LAST_ID",0),Bt(cn,"_sharedPtr",0),Bt(cn,"_sharedPtrInUse",!1);let Ra=cn;class By{constructor(e){Bt(this,"_onigBinding");Bt(this,"_ptr");if(!Lt)throw new oc("Must invoke loadWasm first.");const t=[],i=[];for(let b=0,y=e.length;b<y;b++){const w=new Fa(e[b]);t[b]=w.createString(Lt),i[b]=w.utf8Length}const u=Lt.omalloc(4*e.length);Lt.HEAPU32.set(t,u/4);const I=Lt.omalloc(4*e.length);Lt.HEAPU32.set(i,I/4);const o=Lt.createOnigScanner(u,I,e.length);for(let b=0,y=e.length;b<y;b++)Lt.ofree(t[b]);Lt.ofree(I),Lt.ofree(u),o===0&&Cy(Lt),this._onigBinding=Lt,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,i){let u=0;if(typeof i=="number"&&(u=i),typeof e=="string"){e=new Ra(e);const I=this._findNextMatchSync(e,t,!1,u);return e.dispose(),I}return this._findNextMatchSync(e,t,!1,u)}_findNextMatchSync(e,t,i,u){const I=this._onigBinding,o=I.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),u);if(o===0)return null;const b=I.HEAPU32;let y=o/4;const w=b[y++],M=b[y++],N=[];for(let P=0;P<M;P++){const Y=e.convertUtf8OffsetToUtf16(b[y++]),G=e.convertUtf8OffsetToUtf16(b[y++]);N[P]={start:Y,end:G,length:G-Y}}return{index:w,captureIndices:N}}}function my(n){return typeof n.instantiator=="function"}function Ey(n){return typeof n.default=="function"}function Qy(n){return typeof n.data<"u"}function Iy(n){return typeof Response<"u"&&n instanceof Response}function fy(n){var e;return typeof ArrayBuffer<"u"&&(n instanceof ArrayBuffer||ArrayBuffer.isView(n))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,n))||typeof SharedArrayBuffer<"u"&&n instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&n instanceof Uint32Array}let La;function wy(n){if(La)return La;async function e(){Lt=await py(async t=>{let i=n;return i=await i,typeof i=="function"&&(i=await i(t)),typeof i=="function"&&(i=await i(t)),my(i)?i=await i.instantiator(t):Ey(i)?i=await i.default(t):(Qy(i)&&(i=i.data),Iy(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await by(i)(t):i=await yy(i)(t):fy(i)?i=await rc(i)(t):i instanceof WebAssembly.Module?i=await rc(i)(t):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await rc(i.default)(t))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return La=e(),La}function rc(n){return e=>WebAssembly.instantiate(n,e)}function by(n){return e=>WebAssembly.instantiateStreaming(n,e)}function yy(n){return async e=>{const t=await n.arrayBuffer();return WebAssembly.instantiate(t,e)}}let Dy;function vy(){return Dy}async function ky(n){return n&&await wy(n),{createScanner(e){return new By(e)},createString(e){return new Ra(e)}}}function _y(n){return ac(n)}function ac(n){return Array.isArray(n)?My(n):typeof n=="object"?xy(n):n}function My(n){let e=[];for(let t=0,i=n.length;t<i;t++)e[t]=ac(n[t]);return e}function xy(n){let e={};for(let t in n)e[t]=ac(n[t]);return e}function Kd(n,...e){return e.forEach(t=>{for(let i in t)n[i]=t[i]}),n}function Td(n){const e=~n.lastIndexOf("/")||~n.lastIndexOf("\\");return e===0?n:~e===n.length-1?Td(n.substring(0,n.length-1)):n.substr(~e+1)}var sc=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ga=class{static hasCaptures(n){return n===null?!1:(sc.lastIndex=0,sc.test(n))}static replaceCaptures(n,e,t){return n.replace(sc,(i,u,I,o)=>{let b=t[parseInt(u||I,10)];if(b){let y=e.substring(b.start,b.end);for(;y[0]===".";)y=y.substring(1);switch(o){case"downcase":return y.toLowerCase();case"upcase":return y.toUpperCase();default:return y}}else return i})}};function Ud(n,e){return n<e?-1:n>e?1:0}function Yd(n,e){if(n===null&&e===null)return 0;if(!n)return-1;if(!e)return 1;let t=n.length,i=e.length;if(t===i){for(let u=0;u<t;u++){let I=Ud(n[u],e[u]);if(I!==0)return I}return 0}return t-i}function Od(n){return!!(/^#[0-9a-f]{6}$/i.test(n)||/^#[0-9a-f]{8}$/i.test(n)||/^#[0-9a-f]{3}$/i.test(n)||/^#[0-9a-f]{4}$/i.test(n))}function $d(n){return n.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var zd=class{constructor(n){this.fn=n,this.cache=new Map}get(n){if(this.cache.has(n))return this.cache.get(n);const e=this.fn(n);return this.cache.set(n,e),e}},Pa=class{constructor(n,e,t){this._colorMap=n,this._defaults=e,this._root=t,this._cachedMatchRoot=new zd(i=>this._root.match(i))}static createFromRawTheme(n,e){return this.createFromParsedTheme(Fy(n),e)}static createFromParsedTheme(n,e){return Ly(n,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(n){if(n===null)return this._defaults;const e=n.scopeName,i=this._cachedMatchRoot.get(e).find(u=>Sy(n.parent,u.parentScopes));return i?new Jd(i.fontStyle,i.foreground,i.background):null}},lc=class kl{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const i of t)e=new kl(e,i);return e}static from(...e){let t=null;for(let i=0;i<e.length;i++)t=new kl(t,e[i]);return t}push(e){return new kl(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let i=this;for(;i&&i!==e;)t.push(i.scopeName),i=i.parent;return i===e?t.reverse():void 0}};function Sy(n,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let i=e[t],u=!1;if(i===">"){if(t===e.length-1)return!1;i=e[++t],u=!0}for(;n&&!Ny(n.scopeName,i);){if(u)return!1;n=n.parent}if(!n)return!1;n=n.parent}return!0}function Ny(n,e){return e===n||n.startsWith(e)&&n[e.length]==="."}var Jd=class{constructor(n,e,t){this.fontStyle=n,this.foregroundId=e,this.backgroundId=t}};function Fy(n){if(!n)return[];if(!n.settings||!Array.isArray(n.settings))return[];let e=n.settings,t=[],i=0;for(let u=0,I=e.length;u<I;u++){let o=e[u];if(!o.settings)continue;let b;if(typeof o.scope=="string"){let N=o.scope;N=N.replace(/^[,]+/,""),N=N.replace(/[,]+$/,""),b=N.split(",")}else Array.isArray(o.scope)?b=o.scope:b=[""];let y=-1;if(typeof o.settings.fontStyle=="string"){y=0;let N=o.settings.fontStyle.split(" ");for(let P=0,Y=N.length;P<Y;P++)switch(N[P]){case"italic":y=y|1;break;case"bold":y=y|2;break;case"underline":y=y|4;break;case"strikethrough":y=y|8;break}}let w=null;typeof o.settings.foreground=="string"&&Od(o.settings.foreground)&&(w=o.settings.foreground);let M=null;typeof o.settings.background=="string"&&Od(o.settings.background)&&(M=o.settings.background);for(let N=0,P=b.length;N<P;N++){let G=b[N].trim().split(" "),K=G[G.length-1],D=null;G.length>1&&(D=G.slice(0,G.length-1),D.reverse()),t[i++]=new Ry(K,D,u,y,w,M)}}return t}var Ry=class{constructor(n,e,t,i,u,I){this.scope=n,this.parentScopes=e,this.index=t,this.fontStyle=i,this.foreground=u,this.background=I}},ui=(n=>(n[n.NotSet=-1]="NotSet",n[n.None=0]="None",n[n.Italic=1]="Italic",n[n.Bold=2]="Bold",n[n.Underline=4]="Underline",n[n.Strikethrough=8]="Strikethrough",n))(ui||{});function Ly(n,e){n.sort((y,w)=>{let M=Ud(y.scope,w.scope);return M!==0||(M=Yd(y.parentScopes,w.parentScopes),M!==0)?M:y.index-w.index});let t=0,i="#000000",u="#ffffff";for(;n.length>=1&&n[0].scope==="";){let y=n.shift();y.fontStyle!==-1&&(t=y.fontStyle),y.foreground!==null&&(i=y.foreground),y.background!==null&&(u=y.background)}let I=new Gy(e),o=new Jd(t,I.getId(i),I.getId(u)),b=new Hy(new cc(0,null,-1,0,0),[]);for(let y=0,w=n.length;y<w;y++){let M=n[y];b.insert(0,M.scope,M.parentScopes,M.fontStyle,I.getId(M.foreground),I.getId(M.background))}return new Pa(I,o,b)}var Gy=class{constructor(n){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(n)){this._isFrozen=!0;for(let e=0,t=n.length;e<t;e++)this._color2id[n[e]]=e,this._id2color[e]=n[e]}else this._isFrozen=!1}getId(n){if(n===null)return 0;n=n.toUpperCase();let e=this._color2id[n];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${n}`);return e=++this._lastColorId,this._color2id[n]=e,this._id2color[e]=n,e}getColorMap(){return this._id2color.slice(0)}},Py=Object.freeze([]),cc=class Cm{constructor(e,t,i,u,I){this.scopeDepth=e,this.parentScopes=t||Py,this.fontStyle=i,this.foreground=u,this.background=I}clone(){return new Cm(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let i=0,u=e.length;i<u;i++)t[i]=e[i].clone();return t}acceptOverwrite(e,t,i,u){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),i!==0&&(this.foreground=i),u!==0&&(this.background=u)}},Hy=class Qu{constructor(e,t=[],i={}){this._mainRule=e,this._children=i,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let i=0,u=0;for(;e.parentScopes[i]===">"&&i++,t.parentScopes[u]===">"&&u++,!(i>=e.parentScopes.length||u>=t.parentScopes.length);){const I=t.parentScopes[u].length-e.parentScopes[i].length;if(I!==0)return I;i++,u++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let i=e.indexOf("."),u,I;if(i===-1?(u=e,I=""):(u=e.substring(0,i),I=e.substring(i+1)),this._children.hasOwnProperty(u))return this._children[u].match(I)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Qu._cmpBySpecificity),t}insert(e,t,i,u,I,o){if(t===""){this._doInsertHere(e,i,u,I,o);return}let b=t.indexOf("."),y,w;b===-1?(y=t,w=""):(y=t.substring(0,b),w=t.substring(b+1));let M;this._children.hasOwnProperty(y)?M=this._children[y]:(M=new Qu(this._mainRule.clone(),cc.cloneArr(this._rulesWithParentScopes)),this._children[y]=M),M.insert(e+1,w,i,u,I,o)}_doInsertHere(e,t,i,u,I){if(t===null){this._mainRule.acceptOverwrite(e,i,u,I);return}for(let o=0,b=this._rulesWithParentScopes.length;o<b;o++){let y=this._rulesWithParentScopes[o];if(Yd(y.parentScopes,t)===0){y.acceptOverwrite(e,i,u,I);return}}i===-1&&(i=this._mainRule.fontStyle),u===0&&(u=this._mainRule.foreground),I===0&&(I=this._mainRule.background),this._rulesWithParentScopes.push(new cc(e,t,i,u,I))}},No=class Un{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=Un.getLanguageId(e),i=Un.getTokenType(e),u=Un.getFontStyle(e),I=Un.getForeground(e),o=Un.getBackground(e);console.log({languageId:t,tokenType:i,fontStyle:u,foreground:I,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,i,u,I,o,b){let y=Un.getLanguageId(e),w=Un.getTokenType(e),M=Un.containsBalancedBrackets(e)?1:0,N=Un.getFontStyle(e),P=Un.getForeground(e),Y=Un.getBackground(e);return t!==0&&(y=t),i!==8&&(w=i),u!==null&&(M=u?1:0),I!==-1&&(N=I),o!==0&&(P=o),b!==0&&(Y=b),(y<<0|w<<8|M<<10|N<<11|P<<15|Y<<24)>>>0}};function Y3(n){return n}function O3(n){return n}function Ha(n,e){const t=[],i=Ky(n);let u=i.next();for(;u!==null;){let y=0;if(u.length===2&&u.charAt(1)===":"){switch(u.charAt(0)){case"R":y=1;break;case"L":y=-1;break;default:console.log(`Unknown priority ${u} in scope selector`)}u=i.next()}let w=o();if(t.push({matcher:w,priority:y}),u!==",")break;u=i.next()}return t;function I(){if(u==="-"){u=i.next();const y=I();return w=>!!y&&!y(w)}if(u==="("){u=i.next();const y=b();return u===")"&&(u=i.next()),y}if(Zd(u)){const y=[];do y.push(u),u=i.next();while(Zd(u));return w=>e(y,w)}return null}function o(){const y=[];let w=I();for(;w;)y.push(w),w=I();return M=>y.every(N=>N(M))}function b(){const y=[];let w=o();for(;w&&(y.push(w),u==="|"||u===",");){do u=i.next();while(u==="|"||u===",");w=o()}return M=>y.some(N=>N(M))}}function Zd(n){return!!n&&!!n.match(/[\w\.:]+/)}function Ky(n){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(n);return{next:()=>{if(!t)return null;const i=t[0];return t=e.exec(n),i}}}function Wd(n){typeof n.dispose=="function"&&n.dispose()}var Br=class{constructor(n){this.scopeName=n}toKey(){return this.scopeName}},Ty=class{constructor(n,e){this.scopeName=n,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Uy=class{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(n){const e=n.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(n))}},Yy=class{constructor(n,e){this.repo=n,this.initialScopeName=e,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Br(this.initialScopeName)]}processQueue(){const n=this.Q;this.Q=[];const e=new Uy;for(const t of n)Oy(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof Br){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Oy(n,e,t,i){const u=t.lookup(n.scopeName);if(!u){if(n.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const I=t.lookup(e);n instanceof Br?Ka({baseGrammar:I,selfGrammar:u},i):gc(n.ruleName,{baseGrammar:I,selfGrammar:u,repository:u.repository},i);const o=t.injections(n.scopeName);if(o)for(const b of o)i.add(new Br(b))}function gc(n,e,t){if(e.repository&&e.repository[n]){const i=e.repository[n];Ta([i],e,t)}}function Ka(n,e){n.selfGrammar.patterns&&Array.isArray(n.selfGrammar.patterns)&&Ta(n.selfGrammar.patterns,{...n,repository:n.selfGrammar.repository},e),n.selfGrammar.injections&&Ta(Object.values(n.selfGrammar.injections),{...n,repository:n.selfGrammar.repository},e)}function Ta(n,e,t){for(const i of n){if(t.visitedRule.has(i))continue;t.visitedRule.add(i);const u=i.repository?Kd({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&Ta(i.patterns,{...e,repository:u},t);const I=i.include;if(!I)continue;const o=jd(I);switch(o.kind){case 0:Ka({...e,selfGrammar:e.baseGrammar},t);break;case 1:Ka(e,t);break;case 2:gc(o.ruleName,{...e,repository:u},t);break;case 3:case 4:const b=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(b){const y={baseGrammar:e.baseGrammar,selfGrammar:b,repository:u};o.kind===4?gc(o.ruleName,y,t):Ka(y,t)}else o.kind===4?t.add(new Ty(o.scopeName,o.ruleName)):t.add(new Br(o.scopeName));break}}}var $y=class{constructor(){this.kind=0}},zy=class{constructor(){this.kind=1}},Jy=class{constructor(n){this.ruleName=n,this.kind=2}},Zy=class{constructor(n){this.scopeName=n,this.kind=3}},Wy=class{constructor(n,e){this.scopeName=n,this.ruleName=e,this.kind=4}};function jd(n){if(n==="$base")return new $y;if(n==="$self")return new zy;const e=n.indexOf("#");if(e===-1)return new Zy(n);if(e===0)return new Jy(n.substring(1));{const t=n.substring(0,e),i=n.substring(e+1);return new Wy(t,i)}}var jy=/\\(\d+)/,qd=/\\(\d+)/g,qy=-1,Xd=-2;function $3(n){return n}function z3(n){return n}var mr=class{constructor(n,e,t,i){this.$location=n,this.id=e,this._name=t||null,this._nameIsCapturing=Ga.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=Ga.hasCaptures(this._contentName)}get debugName(){const n=this.$location?`${Td(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${n}`}getName(n,e){return!this._nameIsCapturing||this._name===null||n===null||e===null?this._name:Ga.replaceCaptures(this._name,n,e)}getContentName(n,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ga.replaceCaptures(this._contentName,n,e)}},Xy=class extends mr{constructor(n,e,t,i,u){super(n,e,t,i),this.retokenizeCapturedWithRuleId=u}dispose(){}collectPatterns(n,e){throw new Error("Not supported!")}compile(n,e){throw new Error("Not supported!")}compileAG(n,e,t,i){throw new Error("Not supported!")}},Vy=class extends mr{constructor(n,e,t,i,u){super(n,e,t,null),this._match=new Er(i,this.id),this.captures=u,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(n,e){e.push(this._match)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,i){return this._getCachedCompiledPatterns(n).compileAG(n,t,i)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Qr,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Vd=class extends mr{constructor(n,e,t,i,u){super(n,e,t,i),this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(n,e){for(const t of this.patterns)n.getRule(t).collectPatterns(n,e)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,i){return this._getCachedCompiledPatterns(n).compileAG(n,t,i)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Qr,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},uc=class extends mr{constructor(n,e,t,i,u,I,o,b,y,w){super(n,e,t,i),this._begin=new Er(u,this.id),this.beginCaptures=I,this._end=new Er(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=b,this.applyEndPatternLast=y||!1,this.patterns=w.patterns,this.hasMissingPatterns=w.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(n,e){return this._end.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n,e).compile(n)}compileAG(n,e,t,i){return this._getCachedCompiledPatterns(n,e).compileAG(n,t,i)}_getCachedCompiledPatterns(n,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Qr;for(const t of this.patterns)n.getRule(t).collectPatterns(n,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Ua=class extends mr{constructor(n,e,t,i,u,I,o,b,y){super(n,e,t,i),this._begin=new Er(u,this.id),this.beginCaptures=I,this.whileCaptures=b,this._while=new Er(o,Xd),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=y.patterns,this.hasMissingPatterns=y.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(n,e){return this._while.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,i){return this._getCachedCompiledPatterns(n).compileAG(n,t,i)}_getCachedCompiledPatterns(n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Qr;for(const e of this.patterns)n.getRule(e).collectPatterns(n,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(n,e){return this._getCachedCompiledWhilePatterns(n,e).compile(n)}compileWhileAG(n,e,t,i){return this._getCachedCompiledWhilePatterns(n,e).compileAG(n,t,i)}_getCachedCompiledWhilePatterns(n,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Qr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}},Ah=class Jt{static createCaptureRule(e,t,i,u,I){return e.registerRule(o=>new Xy(t,o,i,u,I))}static getCompiledRuleId(e,t,i){return e.id||t.registerRule(u=>{if(e.id=u,e.match)return new Vy(e.$vscodeTextmateLocation,e.id,e.name,e.match,Jt._compileCaptures(e.captures,t,i));if(typeof e.begin>"u"){e.repository&&(i=Kd({},i,e.repository));let I=e.patterns;return typeof I>"u"&&e.include&&(I=[{include:e.include}]),new Vd(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,Jt._compilePatterns(I,t,i))}return e.while?new Ua(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,Jt._compileCaptures(e.beginCaptures||e.captures,t,i),e.while,Jt._compileCaptures(e.whileCaptures||e.captures,t,i),Jt._compilePatterns(e.patterns,t,i)):new uc(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,Jt._compileCaptures(e.beginCaptures||e.captures,t,i),e.end,Jt._compileCaptures(e.endCaptures||e.captures,t,i),e.applyEndPatternLast,Jt._compilePatterns(e.patterns,t,i))}),e.id}static _compileCaptures(e,t,i){let u=[];if(e){let I=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const b=parseInt(o,10);b>I&&(I=b)}for(let o=0;o<=I;o++)u[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const b=parseInt(o,10);let y=0;e[o].patterns&&(y=Jt.getCompiledRuleId(e[o],t,i)),u[b]=Jt.createCaptureRule(t,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,y)}}return u}static _compilePatterns(e,t,i){let u=[];if(e)for(let I=0,o=e.length;I<o;I++){const b=e[I];let y=-1;if(b.include){const w=jd(b.include);switch(w.kind){case 0:case 1:y=Jt.getCompiledRuleId(i[b.include],t,i);break;case 2:let M=i[w.ruleName];M&&(y=Jt.getCompiledRuleId(M,t,i));break;case 3:case 4:const N=w.scopeName,P=w.kind===4?w.ruleName:null,Y=t.getExternalGrammar(N,i);if(Y)if(P){let G=Y.repository[P];G&&(y=Jt.getCompiledRuleId(G,t,Y.repository))}else y=Jt.getCompiledRuleId(Y.repository.$self,t,Y.repository);break}}else y=Jt.getCompiledRuleId(b,t,i);if(y!==-1){const w=t.getRule(y);let M=!1;if((w instanceof Vd||w instanceof uc||w instanceof Ua)&&w.hasMissingPatterns&&w.patterns.length===0&&(M=!0),M)continue;u.push(y)}}return{patterns:u,hasMissingPatterns:(e?e.length:0)!==u.length}}},Er=class Bm{constructor(e,t){if(e){const i=e.length;let u=0,I=[],o=!1;for(let b=0;b<i;b++)if(e.charAt(b)==="\\"&&b+1<i){const w=e.charAt(b+1);w==="z"?(I.push(e.substring(u,b)),I.push("$(?!\\n)(?<!\\n)"),u=b+2):(w==="A"||w==="G")&&(o=!0),b++}this.hasAnchor=o,u===0?this.source=e:(I.push(e.substring(u,i)),this.source=I.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=jy.test(this.source)}clone(){return new Bm(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let i=t.map(u=>e.substring(u.start,u.end));return qd.lastIndex=0,this.source.replace(qd,(u,I)=>$d(i[parseInt(I,10)]||""))}_buildAnchorCache(){let e=[],t=[],i=[],u=[],I,o,b,y;for(I=0,o=this.source.length;I<o;I++)b=this.source.charAt(I),e[I]=b,t[I]=b,i[I]=b,u[I]=b,b==="\\"&&I+1<o&&(y=this.source.charAt(I+1),y==="A"?(e[I+1]="￿",t[I+1]="￿",i[I+1]="A",u[I+1]="A"):y==="G"?(e[I+1]="￿",t[I+1]="G",i[I+1]="￿",u[I+1]="G"):(e[I+1]=y,t[I+1]=y,i[I+1]=y,u[I+1]=y),I++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:i.join(""),A1_G1:u.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Qr=class{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(n){this._items.push(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}unshift(n){this._items.unshift(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}length(){return this._items.length}setSource(n,e){this._items[n].source!==e&&(this._disposeCaches(),this._items[n].setSource(e))}compile(n){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new eh(n,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(n,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G0):this.compile(n)}_resolveAnchors(n,e,t){let i=this._items.map(u=>u.resolveAnchors(e,t));return new eh(n,i,this._items.map(u=>u.ruleId))}},eh=class{constructor(n,e,t){this.regExps=e,this.rules=t,this.scanner=n.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const n=[];for(let e=0,t=this.rules.length;e<t;e++)n.push(" - "+this.rules[e]+": "+this.regExps[e]);return n.join(`
89
89
  `)}findNextMatchSync(n,e,t){const i=this.scanner.findNextMatchSync(n,e,t);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},dc=class{constructor(n,e){this.languageId=n,this.tokenType=e}},hc=class Iu{constructor(e,t){this._getBasicScopeAttributes=new zd(i=>{const u=this._scopeToLanguage(i),I=this._toStandardTokenType(i);return new dc(u,I)}),this._defaultAttributes=new dc(e,8),this._embeddedLanguagesMatcher=new eD(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Iu._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(Iu.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}};hc._NULL_SCOPE_METADATA=new dc(0,0),hc.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;var AD=hc,eD=class{constructor(n){if(n.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(n);const e=n.map(([t,i])=>$d(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(n){if(!this.scopesRegExp)return;const e=n.match(this.scopesRegExp);if(e)return this.values.get(e[1])}};typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var th=class{constructor(n,e){this.stack=n,this.stoppedEarly=e}};function nh(n,e,t,i,u,I,o,b){const y=e.content.length;let w=!1,M=-1;if(o){const Y=tD(n,e,t,i,u,I);u=Y.stack,i=Y.linePos,t=Y.isFirstLine,M=Y.anchorPosition}const N=Date.now();for(;!w;){if(b!==0&&Date.now()-N>b)return new th(u,!0);P()}return new th(u,!1);function P(){const Y=nD(n,e,t,i,u,M);if(!Y){I.produce(u,y),w=!0;return}const G=Y.captureIndices,K=Y.matchedRuleId,D=G&&G.length>0?G[0].end>i:!1;if(K===qy){const E=u.getRule(n);I.produce(u,G[0].start),u=u.withContentNameScopesList(u.nameScopesList),Ir(n,e,t,u,I,E.endCaptures,G),I.produce(u,G[0].end);const L=u;if(u=u.parent,M=L.getAnchorPos(),!D&&L.getEnterPos()===i){u=L,I.produce(u,y),w=!0;return}}else{const E=n.getRule(K);I.produce(u,G[0].start);const L=u,_=E.getName(e.content,G),v=u.contentNameScopesList.pushAttributed(_,n);if(u=u.push(K,i,M,G[0].end===y,null,v,v),E instanceof uc){const B=E;Ir(n,e,t,u,I,B.beginCaptures,G),I.produce(u,G[0].end),M=G[0].end;const p=B.getContentName(e.content,G),d=v.pushAttributed(p,n);if(u=u.withContentNameScopesList(d),B.endHasBackReferences&&(u=u.withEndRule(B.getEndWithResolvedBackReferences(e.content,G))),!D&&L.hasSameRuleAs(u)){u=u.pop(),I.produce(u,y),w=!0;return}}else if(E instanceof Ua){const B=E;Ir(n,e,t,u,I,B.beginCaptures,G),I.produce(u,G[0].end),M=G[0].end;const p=B.getContentName(e.content,G),d=v.pushAttributed(p,n);if(u=u.withContentNameScopesList(d),B.whileHasBackReferences&&(u=u.withEndRule(B.getWhileWithResolvedBackReferences(e.content,G))),!D&&L.hasSameRuleAs(u)){u=u.pop(),I.produce(u,y),w=!0;return}}else if(Ir(n,e,t,u,I,E.captures,G),I.produce(u,G[0].end),u=u.pop(),!D){u=u.safePop(),I.produce(u,y),w=!0;return}}G[0].end>i&&(i=G[0].end,t=!1)}}function tD(n,e,t,i,u,I){let o=u.beginRuleCapturedEOL?0:-1;const b=[];for(let y=u;y;y=y.pop()){const w=y.getRule(n);w instanceof Ua&&b.push({rule:w,stack:y})}for(let y=b.pop();y;y=b.pop()){const{ruleScanner:w,findOptions:M}=rD(y.rule,n,y.stack.endRule,t,i===o),N=w.findNextMatchSync(e,i,M);if(N){if(N.ruleId!==Xd){u=y.stack.pop();break}N.captureIndices&&N.captureIndices.length&&(I.produce(y.stack,N.captureIndices[0].start),Ir(n,e,t,y.stack,I,y.rule.whileCaptures,N.captureIndices),I.produce(y.stack,N.captureIndices[0].end),o=N.captureIndices[0].end,N.captureIndices[0].end>i&&(i=N.captureIndices[0].end,t=!1))}else{u=y.stack.pop();break}}return{stack:u,linePos:i,anchorPosition:o,isFirstLine:t}}function nD(n,e,t,i,u,I){const o=iD(n,e,t,i,u,I),b=n.getInjections();if(b.length===0)return o;const y=oD(b,n,e,t,i,u,I);if(!y)return o;if(!o)return y;const w=o.captureIndices[0].start,M=y.captureIndices[0].start;return M<w||y.priorityMatch&&M===w?y:o}function iD(n,e,t,i,u,I){const o=u.getRule(n),{ruleScanner:b,findOptions:y}=ih(o,n,u.endRule,t,i===I),w=b.findNextMatchSync(e,i,y);return w?{captureIndices:w.captureIndices,matchedRuleId:w.ruleId}:null}function oD(n,e,t,i,u,I,o){let b=Number.MAX_VALUE,y=null,w,M=0;const N=I.contentNameScopesList.getScopeNames();for(let P=0,Y=n.length;P<Y;P++){const G=n[P];if(!G.matcher(N))continue;const K=e.getRule(G.ruleId),{ruleScanner:D,findOptions:E}=ih(K,e,null,i,u===o),L=D.findNextMatchSync(t,u,E);if(!L)continue;const _=L.captureIndices[0].start;if(!(_>=b)&&(b=_,y=L.captureIndices,w=L.ruleId,M=G.priority,b===u))break}return y?{priorityMatch:M===-1,captureIndices:y,matchedRuleId:w}:null}function ih(n,e,t,i,u){return{ruleScanner:n.compileAG(e,t,i,u),findOptions:0}}function rD(n,e,t,i,u){return{ruleScanner:n.compileWhileAG(e,t,i,u),findOptions:0}}function Ir(n,e,t,i,u,I,o){if(I.length===0)return;const b=e.content,y=Math.min(I.length,o.length),w=[],M=o[0].end;for(let N=0;N<y;N++){const P=I[N];if(P===null)continue;const Y=o[N];if(Y.length===0)continue;if(Y.start>M)break;for(;w.length>0&&w[w.length-1].endPos<=Y.start;)u.produceFromScopes(w[w.length-1].scopes,w[w.length-1].endPos),w.pop();if(w.length>0?u.produceFromScopes(w[w.length-1].scopes,Y.start):u.produce(i,Y.start),P.retokenizeCapturedWithRuleId){const K=P.getName(b,o),D=i.contentNameScopesList.pushAttributed(K,n),E=P.getContentName(b,o),L=D.pushAttributed(E,n),_=i.push(P.retokenizeCapturedWithRuleId,Y.start,-1,!1,null,D,L),v=n.createOnigString(b.substring(0,Y.end));nh(n,v,t&&Y.start===0,Y.start,_,u,!1,0),Wd(v);continue}const G=P.getName(b,o);if(G!==null){const D=(w.length>0?w[w.length-1].scopes:i.contentNameScopesList).pushAttributed(G,n);w.push(new aD(D,Y.end))}}for(;w.length>0;)u.produceFromScopes(w[w.length-1].scopes,w[w.length-1].endPos),w.pop()}var aD=class{constructor(n,e){this.scopes=n,this.endPos=e}};function sD(n,e,t,i,u,I,o,b){return new cD(n,e,t,i,u,I,o,b)}function oh(n,e,t,i,u){const I=Ha(e,Ya),o=Ah.getCompiledRuleId(t,i,u.repository);for(const b of I)n.push({debugSelector:e,matcher:b.matcher,ruleId:o,grammar:u,priority:b.priority})}function Ya(n,e){if(e.length<n.length)return!1;let t=0;return n.every(i=>{for(let u=t;u<e.length;u++)if(lD(e[u],i))return t=u+1,!0;return!1})}function lD(n,e){if(!n)return!1;if(n===e)return!0;const t=e.length;return n.length>t&&n.substr(0,t)===e&&n[t]==="."}var cD=class{constructor(n,e,t,i,u,I,o,b){if(this._rootScopeName=n,this.balancedBracketSelectors=I,this._onigLib=b,this._basicScopeAttributesProvider=new AD(t,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=rh(e,null),this._injections=null,this._tokenTypeMatchers=[],u)for(const y of Object.keys(u)){const w=Ha(y,Ya);for(const M of w)this._tokenTypeMatchers.push({matcher:M.matcher,type:u[y]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const n of this._ruleId2desc)n&&n.dispose()}createOnigScanner(n){return this._onigLib.createOnigScanner(n)}createOnigString(n){return this._onigLib.createOnigString(n)}getMetadataForScope(n){return this._basicScopeAttributesProvider.getBasicScopeAttributes(n)}_collectInjections(){const n={lookup:u=>u===this._rootScopeName?this._grammar:this.getExternalGrammar(u),injections:u=>this._grammarRepository.injections(u)},e=[],t=this._rootScopeName,i=n.lookup(t);if(i){const u=i.injections;if(u)for(let o in u)oh(e,o,u[o],this,i);const I=this._grammarRepository.injections(t);I&&I.forEach(o=>{const b=this.getExternalGrammar(o);if(b){const y=b.injectionSelector;y&&oh(e,y,b,this,b)}})}return e.sort((u,I)=>u.priority-I.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(n){const e=++this._lastRuleId,t=n(e);return this._ruleId2desc[e]=t,t}getRule(n){return this._ruleId2desc[n]}getExternalGrammar(n,e){if(this._includedGrammars[n])return this._includedGrammars[n];if(this._grammarRepository){const t=this._grammarRepository.lookup(n);if(t)return this._includedGrammars[n]=rh(t,e&&e.$base),this._includedGrammars[n]}}tokenizeLine(n,e,t=0){const i=this._tokenize(n,e,!1,t);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(n,e,t=0){const i=this._tokenize(n,e,!0,t);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(n,e,t,i){this._rootId===-1&&(this._rootId=Ah.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let u;if(!e||e===Cc.NULL){u=!0;const w=this._basicScopeAttributesProvider.getDefaultAttributes(),M=this.themeProvider.getDefaults(),N=No.set(0,w.languageId,w.tokenType,null,M.fontStyle,M.foregroundId,M.backgroundId),P=this.getRule(this._rootId).getName(null,null);let Y;P?Y=fr.createRootAndLookUpScopeName(P,N,this):Y=fr.createRoot("unknown",N),e=new Cc(null,this._rootId,-1,-1,!1,null,Y,Y)}else u=!1,e.reset();n=n+`
90
90
  `;const I=this.createOnigString(n),o=I.content.length,b=new uD(t,n,this._tokenTypeMatchers,this.balancedBracketSelectors),y=nh(this,I,u,0,e,b,!0,i);return Wd(I),{lineLength:o,lineTokens:b,ruleStack:y.stack,stoppedEarly:y.stoppedEarly}}};function rh(n,e){return n=_y(n),n.repository=n.repository||{},n.repository.$self={$vscodeTextmateLocation:n.$vscodeTextmateLocation,patterns:n.patterns,name:n.scopeName},n.repository.$base=e||n.repository.$self,n}var fr=class ci{constructor(e,t,i){this.parent=e,this.scopePath=t,this.tokenAttributes=i}static fromExtension(e,t){let i=e,u=(e==null?void 0:e.scopePath)??null;for(const I of t)u=lc.push(u,I.scopeNames),i=new ci(i,u,I.encodedTokenAttributes);return i}static createRoot(e,t){return new ci(null,new lc(null,e),t)}static createRootAndLookUpScopeName(e,t,i){const u=i.getMetadataForScope(e),I=new lc(null,e),o=i.themeProvider.themeMatch(I),b=ci.mergeAttributes(t,u,o);return new ci(null,I,b)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return ci.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,i){let u=-1,I=0,o=0;return i!==null&&(u=i.fontStyle,I=i.foregroundId,o=i.backgroundId),No.set(e,t.languageId,t.tokenType,null,u,I,o)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return ci._pushAttributed(this,e,t);const i=e.split(/ /g);let u=this;for(const I of i)u=ci._pushAttributed(u,I,t);return u}static _pushAttributed(e,t,i){const u=i.getMetadataForScope(t),I=e.scopePath.push(t),o=i.themeProvider.themeMatch(I),b=ci.mergeAttributes(e.tokenAttributes,u,o);return new ci(e,I,b)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var u;const t=[];let i=this;for(;i&&i!==e;)t.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined(((u=i.parent)==null?void 0:u.scopePath)??null)}),i=i.parent;return i===e?t.reverse():void 0}},pc=class gr{constructor(e,t,i,u,I,o,b,y){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=I,this.endRule=o,this.nameScopesList=b,this.contentNameScopesList=y,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=i,this._anchorPos=u}equals(e){return e===null?!1:gr._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?fr.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){gr._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,i,u,I,o,b){return new gr(this,e,t,i,u,I,o,b)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var i,u;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(i=this.nameScopesList)==null?void 0:i.toString()}, ${(u=this.contentNameScopesList)==null?void 0:u.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new gr(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,i;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((i=this.contentNameScopesList)==null?void 0:i.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const i=fr.fromExtension((e==null?void 0:e.nameScopesList)??null,t.nameScopesList);return new gr(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,i,fr.fromExtension(i,t.contentNameScopesList))}};pc.NULL=new pc(null,0,0,0,!1,null,null,null);var Cc=pc,gD=class{constructor(n,e){this.allowAny=!1,this.balancedBracketScopes=n.flatMap(t=>t==="*"?(this.allowAny=!0,[]):Ha(t,Ya).map(i=>i.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>Ha(t,Ya).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(n){for(const e of this.unbalancedBracketScopes)if(e(n))return!1;for(const e of this.balancedBracketScopes)if(e(n))return!0;return this.allowAny}},uD=class{constructor(n,e,t,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=n,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(n,e){this.produceFromScopes(n.contentNameScopesList,e)}produceFromScopes(n,e){var i;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let u=(n==null?void 0:n.tokenAttributes)??0,I=!1;if((i=this.balancedBracketSelectors)!=null&&i.matchesAlways&&(I=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=(n==null?void 0:n.getScopeNames())??[];for(const b of this._tokenTypeOverrides)b.matcher(o)&&(u=No.set(u,0,b.type,null,-1,0,0));this.balancedBracketSelectors&&(I=this.balancedBracketSelectors.match(o))}if(I&&(u=No.set(u,0,8,I,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===u){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(u),this._lastTokenEndIndex=e;return}const t=(n==null?void 0:n.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(n,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(n,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let i=0,u=this._binaryTokens.length;i<u;i++)t[i]=this._binaryTokens[i];return t}},dD=class{constructor(n,e){this._onigLib=e,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=n}dispose(){for(const n of this._grammars.values())n.dispose()}setTheme(n){this._theme=n}getColorMap(){return this._theme.getColorMap()}addGrammar(n,e){this._rawGrammars.set(n.scopeName,n),e&&this._injectionGrammars.set(n.scopeName,e)}lookup(n){return this._rawGrammars.get(n)}injections(n){return this._injectionGrammars.get(n)}getDefaults(){return this._theme.getDefaults()}themeMatch(n){return this._theme.match(n)}grammarForScopeName(n,e,t,i,u){if(!this._grammars.has(n)){let I=this._rawGrammars.get(n);if(!I)return null;this._grammars.set(n,sD(n,I,e,t,i,u,this,this._onigLib))}return this._grammars.get(n)}},hD=class{constructor(e){this._options=e,this._syncRegistry=new dD(Pa.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Pa.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,i){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:i})}loadGrammarWithConfiguration(e,t,i){return this._loadGrammar(e,t,i.embeddedLanguages,i.tokenTypes,new gD(i.balancedBracketSelectors||[],i.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,i,u,I){const o=new Yy(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(b=>this._loadSingleGrammar(b.scopeName)),o.processQueue();return this._grammarForScopeName(e,t,i,u,I)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const i=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,i)}}addGrammar(e,t=[],i=0,u=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,i,u)}_grammarForScopeName(e,t=0,i=null,u=null,I=null){return this._syncRegistry.grammarForScopeName(e,t,i,u,I)}},Bc=Cc.NULL;const pD=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class wr{constructor(e,t,i){this.property=e,this.normal=t,i&&(this.space=i)}}wr.prototype.property={},wr.prototype.normal={},wr.prototype.space=null;function ah(n,e){const t={},i={};let u=-1;for(;++u<n.length;)Object.assign(t,n[u].property),Object.assign(i,n[u].normal);return new wr(t,i,e)}function mc(n){return n.toLowerCase()}class Mn{constructor(e,t){this.property=e,this.attribute=t}}Mn.prototype.space=null,Mn.prototype.boolean=!1,Mn.prototype.booleanish=!1,Mn.prototype.overloadedBoolean=!1,Mn.prototype.number=!1,Mn.prototype.commaSeparated=!1,Mn.prototype.spaceSeparated=!1,Mn.prototype.commaOrSpaceSeparated=!1,Mn.prototype.mustUseProperty=!1,Mn.prototype.defined=!1;let CD=0;const Ue=Xi(),kt=Xi(),sh=Xi(),pe=Xi(),dt=Xi(),Fo=Xi(),Bn=Xi();function Xi(){return 2**++CD}const Ec=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ue,booleanish:kt,commaOrSpaceSeparated:Bn,commaSeparated:Fo,number:pe,overloadedBoolean:sh,spaceSeparated:dt},Symbol.toStringTag,{value:"Module"})),Qc=Object.keys(Ec);class Ic extends Mn{constructor(e,t,i,u){let I=-1;if(super(e,t),lh(this,"space",u),typeof i=="number")for(;++I<Qc.length;){const o=Qc[I];lh(this,Qc[I],(i&Ec[o])===Ec[o])}}}Ic.prototype.defined=!0;function lh(n,e,t){t&&(n[e]=t)}const BD={}.hasOwnProperty;function Ro(n){const e={},t={};let i;for(i in n.properties)if(BD.call(n.properties,i)){const u=n.properties[i],I=new Ic(i,n.transform(n.attributes||{},i),u,n.space);n.mustUseProperty&&n.mustUseProperty.includes(i)&&(I.mustUseProperty=!0),e[i]=I,t[mc(i)]=i,t[mc(I.attribute)]=i}return new wr(e,t,n.space)}const ch=Ro({space:"xlink",transform(n,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),gh=Ro({space:"xml",transform(n,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function uh(n,e){return e in n?n[e]:e}function dh(n,e){return uh(n,e.toLowerCase())}const hh=Ro({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:dh,properties:{xmlns:null,xmlnsXLink:null}}),ph=Ro({transform(n,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:kt,ariaAutoComplete:null,ariaBusy:kt,ariaChecked:kt,ariaColCount:pe,ariaColIndex:pe,ariaColSpan:pe,ariaControls:dt,ariaCurrent:null,ariaDescribedBy:dt,ariaDetails:null,ariaDisabled:kt,ariaDropEffect:dt,ariaErrorMessage:null,ariaExpanded:kt,ariaFlowTo:dt,ariaGrabbed:kt,ariaHasPopup:null,ariaHidden:kt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:dt,ariaLevel:pe,ariaLive:null,ariaModal:kt,ariaMultiLine:kt,ariaMultiSelectable:kt,ariaOrientation:null,ariaOwns:dt,ariaPlaceholder:null,ariaPosInSet:pe,ariaPressed:kt,ariaReadOnly:kt,ariaRelevant:null,ariaRequired:kt,ariaRoleDescription:dt,ariaRowCount:pe,ariaRowIndex:pe,ariaRowSpan:pe,ariaSelected:kt,ariaSetSize:pe,ariaSort:null,ariaValueMax:pe,ariaValueMin:pe,ariaValueNow:pe,ariaValueText:null,role:null}}),mD=Ro({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:dh,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fo,acceptCharset:dt,accessKey:dt,action:null,allow:null,allowFullScreen:Ue,allowPaymentRequest:Ue,allowUserMedia:Ue,alt:null,as:null,async:Ue,autoCapitalize:null,autoComplete:dt,autoFocus:Ue,autoPlay:Ue,blocking:dt,capture:null,charSet:null,checked:Ue,cite:null,className:dt,cols:pe,colSpan:null,content:null,contentEditable:kt,controls:Ue,controlsList:dt,coords:pe|Fo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ue,defer:Ue,dir:null,dirName:null,disabled:Ue,download:sh,draggable:kt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ue,formTarget:null,headers:dt,height:pe,hidden:Ue,high:pe,href:null,hrefLang:null,htmlFor:dt,httpEquiv:dt,id:null,imageSizes:null,imageSrcSet:null,inert:Ue,inputMode:null,integrity:null,is:null,isMap:Ue,itemId:null,itemProp:dt,itemRef:dt,itemScope:Ue,itemType:dt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ue,low:pe,manifest:null,max:null,maxLength:pe,media:null,method:null,min:null,minLength:pe,multiple:Ue,muted:Ue,name:null,nonce:null,noModule:Ue,noValidate:Ue,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ue,optimum:pe,pattern:null,ping:dt,placeholder:null,playsInline:Ue,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ue,referrerPolicy:null,rel:dt,required:Ue,reversed:Ue,rows:pe,rowSpan:pe,sandbox:dt,scope:null,scoped:Ue,seamless:Ue,selected:Ue,shadowRootClonable:Ue,shadowRootDelegatesFocus:Ue,shadowRootMode:null,shape:null,size:pe,sizes:null,slot:null,span:pe,spellCheck:kt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pe,step:null,style:null,tabIndex:pe,target:null,title:null,translate:null,type:null,typeMustMatch:Ue,useMap:null,value:kt,width:pe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:dt,axis:null,background:null,bgColor:null,border:pe,borderColor:null,bottomMargin:pe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ue,declare:Ue,event:null,face:null,frame:null,frameBorder:null,hSpace:pe,leftMargin:pe,link:null,longDesc:null,lowSrc:null,marginHeight:pe,marginWidth:pe,noResize:Ue,noHref:Ue,noShade:Ue,noWrap:Ue,object:null,profile:null,prompt:null,rev:null,rightMargin:pe,rules:null,scheme:null,scrolling:kt,standby:null,summary:null,text:null,topMargin:pe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ue,disableRemotePlayback:Ue,prefix:null,property:null,results:pe,security:null,unselectable:null}}),ED=Ro({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:uh,properties:{about:Bn,accentHeight:pe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pe,amplitude:pe,arabicForm:null,ascent:pe,attributeName:null,attributeType:null,azimuth:pe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pe,by:null,calcMode:null,capHeight:pe,className:dt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:pe,diffuseConstant:pe,direction:null,display:null,dur:null,divisor:pe,dominantBaseline:null,download:Ue,dx:null,dy:null,edgeMode:null,editable:null,elevation:pe,enableBackground:null,end:null,event:null,exponent:pe,externalResourcesRequired:null,fill:null,fillOpacity:pe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Fo,g2:Fo,glyphName:Fo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pe,horizOriginX:pe,horizOriginY:pe,id:null,ideographic:pe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pe,k:pe,k1:pe,k2:pe,k3:pe,k4:pe,kernelMatrix:Bn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:pe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:pe,overlineThickness:pe,paintOrder:null,panose1:null,path:null,pathLength:pe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:dt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pe,pointsAtY:pe,pointsAtZ:pe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bn,rev:Bn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bn,requiredFeatures:Bn,requiredFonts:Bn,requiredFormats:Bn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:pe,specularExponent:pe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pe,strikethroughThickness:pe,string:null,stroke:null,strokeDashArray:Bn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pe,strokeOpacity:pe,strokeWidth:null,style:null,surfaceScale:pe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bn,tabIndex:pe,tableValues:null,target:null,targetX:pe,targetY:pe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pe,underlineThickness:pe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pe,values:null,vAlphabetic:pe,vMathematical:pe,vectorEffect:null,vHanging:pe,vIdeographic:pe,version:null,vertAdvY:pe,vertOriginX:pe,vertOriginY:pe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),QD=/^data[-\w.:]+$/i,Ch=/-[a-z]/g,ID=/[A-Z]/g;function fD(n,e){const t=mc(e);let i=e,u=Mn;if(t in n.normal)return n.property[n.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&QD.test(e)){if(e.charAt(4)==="-"){const I=e.slice(5).replace(Ch,bD);i="data"+I.charAt(0).toUpperCase()+I.slice(1)}else{const I=e.slice(4);if(!Ch.test(I)){let o=I.replace(ID,wD);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}u=Ic}return new u(i,e)}function wD(n){return"-"+n.toLowerCase()}function bD(n){return n.charAt(1).toUpperCase()}const yD=ah([gh,ch,hh,ph,mD],"html"),Bh=ah([gh,ch,hh,ph,ED],"svg"),mh={}.hasOwnProperty;function DD(n,e){const t=e||{};function i(u,...I){let o=i.invalid;const b=i.handlers;if(u&&mh.call(u,n)){const y=String(u[n]);o=mh.call(b,y)?b[y]:i.unknown}if(o)return o.call(this,u,...I)}return i.handlers=t.handlers||{},i.invalid=t.invalid,i.unknown=t.unknown,i}const vD=/["&'<>`]/g,kD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_D=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,MD=/[|\\{}()[\]^$+*?.]/g,Eh=new WeakMap;function xD(n,e){if(n=n.replace(e.subset?SD(e.subset):vD,i),e.subset||e.escapeOnly)return n;return n.replace(kD,t).replace(_D,i);function t(u,I,o){return e.format((u.charCodeAt(0)-55296)*1024+u.charCodeAt(1)-56320+65536,o.charCodeAt(I+2),e)}function i(u,I,o){return e.format(u.charCodeAt(0),o.charCodeAt(I+1),e)}}function SD(n){let e=Eh.get(n);return e||(e=ND(n),Eh.set(n,e)),e}function ND(n){const e=[];let t=-1;for(;++t<n.length;)e.push(n[t].replace(MD,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const FD=/[\dA-Fa-f]/;function RD(n,e,t){const i="&#x"+n.toString(16).toUpperCase();return t&&e&&!FD.test(String.fromCharCode(e))?i:i+";"}const LD=/\d/;function GD(n,e,t){const i="&#"+String(n);return t&&e&&!LD.test(String.fromCharCode(e))?i:i+";"}const PD=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],fc={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},HD=["cent","copy","divide","gt","lt","not","para","times"],Qh={}.hasOwnProperty,wc={};let Oa;for(Oa in fc)Qh.call(fc,Oa)&&(wc[fc[Oa]]=Oa);const KD=/[^\dA-Za-z]/;function TD(n,e,t,i){const u=String.fromCharCode(n);if(Qh.call(wc,u)){const I=wc[u],o="&"+I;return t&&PD.includes(I)&&!HD.includes(I)&&(!i||e&&e!==61&&KD.test(String.fromCharCode(e)))?o:o+";"}return""}function UD(n,e,t){let i=RD(n,e,t.omitOptionalSemicolons),u;if((t.useNamedReferences||t.useShortestReferences)&&(u=TD(n,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!u)&&t.useShortestReferences){const I=GD(n,e,t.omitOptionalSemicolons);I.length<i.length&&(i=I)}return u&&(!t.useShortestReferences||u.length<i.length)?u:i}function Lo(n,e){return xD(n,Object.assign({format:UD},e))}const YD=/^>|^->|<!--|-->|--!>|<!-$/g,OD=[">"],$D=["<",">"];function zD(n,e,t,i){return i.settings.bogusComments?"<?"+Lo(n.value,Object.assign({},i.settings.characterReferences,{subset:OD}))+">":"<!--"+n.value.replace(YD,u)+"-->";function u(I){return Lo(I,Object.assign({},i.settings.characterReferences,{subset:$D}))}}function JD(n,e,t,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}function Ih(n,e){const t=String(n);if(typeof e!="string")throw new TypeError("Expected character");let i=0,u=t.indexOf(e);for(;u!==-1;)i++,u=t.indexOf(e,u+e.length);return i}function ZD(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}function WD(n){return n.join(" ").trim()}const jD=/[ \t\n\f\r]/g;function bc(n){return typeof n=="object"?n.type==="text"?fh(n.value):!1:fh(n)}function fh(n){return n.replace(jD,"")===""}const Mt=bh(1),wh=bh(-1),qD=[];function bh(n){return e;function e(t,i,u){const I=t?t.children:qD;let o=(i||0)+n,b=I[o];if(!u)for(;b&&bc(b);)o+=n,b=I[o];return b}}const XD={}.hasOwnProperty;function yh(n){return e;function e(t,i,u){return XD.call(n,t.tagName)&&n[t.tagName](t,i,u)}}const yc=yh({body:Av,caption:Dc,colgroup:Dc,dd:iv,dt:nv,head:Dc,html:VD,li:tv,optgroup:ov,option:rv,p:ev,rp:Dh,rt:Dh,tbody:sv,td:vh,tfoot:lv,th:vh,thead:av,tr:cv});function Dc(n,e,t){const i=Mt(t,e,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&bc(i.value.charAt(0)))}function VD(n,e,t){const i=Mt(t,e);return!i||i.type!=="comment"}function Av(n,e,t){const i=Mt(t,e);return!i||i.type!=="comment"}function ev(n,e,t){const i=Mt(t,e);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function tv(n,e,t){const i=Mt(t,e);return!i||i.type==="element"&&i.tagName==="li"}function nv(n,e,t){const i=Mt(t,e);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function iv(n,e,t){const i=Mt(t,e);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function Dh(n,e,t){const i=Mt(t,e);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function ov(n,e,t){const i=Mt(t,e);return!i||i.type==="element"&&i.tagName==="optgroup"}function rv(n,e,t){const i=Mt(t,e);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function av(n,e,t){const i=Mt(t,e);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function sv(n,e,t){const i=Mt(t,e);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function lv(n,e,t){return!Mt(t,e)}function cv(n,e,t){const i=Mt(t,e);return!i||i.type==="element"&&i.tagName==="tr"}function vh(n,e,t){const i=Mt(t,e);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const gv=yh({body:hv,colgroup:pv,head:dv,html:uv,tbody:Cv});function uv(n){const e=Mt(n,-1);return!e||e.type!=="comment"}function dv(n){const e=new Set;for(const i of n.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(e.has(i.tagName))return!1;e.add(i.tagName)}const t=n.children[0];return!t||t.type==="element"}function hv(n){const e=Mt(n,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&bc(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function pv(n,e,t){const i=wh(t,e),u=Mt(n,-1,!0);return t&&i&&i.type==="element"&&i.tagName==="colgroup"&&yc(i,t.children.indexOf(i),t)?!1:!!(u&&u.type==="element"&&u.tagName==="col")}function Cv(n,e,t){const i=wh(t,e),u=Mt(n,-1);return t&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&yc(i,t.children.indexOf(i),t)?!1:!!(u&&u.type==="element"&&u.tagName==="tr")}const $a={name:[[`
91
91
  \f\r &/=>`.split(""),`
@@ -101,11 +101,11 @@ onClick: ${e.onClick}`)}u.value=!1}};return(o,b)=>{const y=A.resolveComponent("e
101
101
  * @author RubaXa <trash@rubaxa.org>
102
102
  * @author owenm <owen23355@gmail.com>
103
103
  * @license MIT
104
- */function Zh(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),t.push.apply(t,i)}return t}function qn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Zh(Object(t),!0).forEach(function(i){G1(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Zh(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function As(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?As=function(e){return typeof e}:As=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},As(n)}function G1(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function di(){return di=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},di.apply(this,arguments)}function P1(n,e){if(n==null)return{};var t={},i=Object.keys(n),u,I;for(I=0;I<i.length;I++)u=i[I],!(e.indexOf(u)>=0)&&(t[u]=n[u]);return t}function H1(n,e){if(n==null)return{};var t=P1(n,e),i,u;if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(n);for(u=0;u<I.length;u++)i=I[u],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}var K1="1.14.0";function hi(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var pi=hi(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),kr=hi(/Edge/i),Wh=hi(/firefox/i),_r=hi(/safari/i)&&!hi(/chrome/i)&&!hi(/android/i),jh=hi(/iP(ad|od|hone)/i),T1=hi(/chrome/i)&&hi(/android/i),qh={capture:!1,passive:!1};function it(n,e,t){n.addEventListener(e,t,!pi&&qh)}function et(n,e,t){n.removeEventListener(e,t,!pi&&qh)}function es(n,e){if(e){if(e[0]===">"&&(e=e.substring(1)),n)try{if(n.matches)return n.matches(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e)}catch{return!1}return!1}}function U1(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function Xn(n,e,t,i){if(n){t=t||document;do{if(e!=null&&(e[0]===">"?n.parentNode===t&&es(n,e):es(n,e))||i&&n===t)return n;if(n===t)break}while(n=U1(n))}return null}var Xh=/\s+/g;function mn(n,e,t){if(n&&e)if(n.classList)n.classList[t?"add":"remove"](e);else{var i=(" "+n.className+" ").replace(Xh," ").replace(" "+e+" "," ");n.className=(i+(t?" "+e:"")).replace(Xh," ")}}function Le(n,e,t){var i=n&&n.style;if(i){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(t=n.currentStyle),e===void 0?t:t[e];!(e in i)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),i[e]=t+(typeof t=="string"?"":"px")}}function Po(n,e){var t="";if(typeof n=="string")t=n;else do{var i=Le(n,"transform");i&&i!=="none"&&(t=i+" "+t)}while(!e&&(n=n.parentNode));var u=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return u&&new u(t)}function Vh(n,e,t){if(n){var i=n.getElementsByTagName(e),u=0,I=i.length;if(t)for(;u<I;u++)t(i[u],u);return i}return[]}function Vn(){var n=document.scrollingElement;return n||document.documentElement}function xt(n,e,t,i,u){if(!(!n.getBoundingClientRect&&n!==window)){var I,o,b,y,w,M,N;if(n!==window&&n.parentNode&&n!==Vn()?(I=n.getBoundingClientRect(),o=I.top,b=I.left,y=I.bottom,w=I.right,M=I.height,N=I.width):(o=0,b=0,y=window.innerHeight,w=window.innerWidth,M=window.innerHeight,N=window.innerWidth),(e||t)&&n!==window&&(u=u||n.parentNode,!pi))do if(u&&u.getBoundingClientRect&&(Le(u,"transform")!=="none"||t&&Le(u,"position")!=="static")){var P=u.getBoundingClientRect();o-=P.top+parseInt(Le(u,"border-top-width")),b-=P.left+parseInt(Le(u,"border-left-width")),y=o+I.height,w=b+I.width;break}while(u=u.parentNode);if(i&&n!==window){var Y=Po(u||n),G=Y&&Y.a,K=Y&&Y.d;Y&&(o/=K,b/=G,N/=G,M/=K,y=o+M,w=b+N)}return{top:o,left:b,bottom:y,right:w,width:N,height:M}}}function Ap(n,e,t){for(var i=Fi(n,!0),u=xt(n)[e];i;){var I=xt(i)[t],o=void 0;if(o=u>=I,!o)return i;if(i===Vn())break;i=Fi(i,!1)}return!1}function Ho(n,e,t,i){for(var u=0,I=0,o=n.children;I<o.length;){if(o[I].style.display!=="none"&&o[I]!==Ge.ghost&&(i||o[I]!==Ge.dragged)&&Xn(o[I],t.draggable,n,!1)){if(u===e)return o[I];u++}I++}return null}function Sc(n,e){for(var t=n.lastElementChild;t&&(t===Ge.ghost||Le(t,"display")==="none"||e&&!es(t,e));)t=t.previousElementSibling;return t||null}function xn(n,e){var t=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==Ge.clone&&(!e||es(n,e))&&t++;return t}function ep(n){var e=0,t=0,i=Vn();if(n)do{var u=Po(n),I=u.a,o=u.d;e+=n.scrollLeft*I,t+=n.scrollTop*o}while(n!==i&&(n=n.parentNode));return[e,t]}function Y1(n,e){for(var t in n)if(n.hasOwnProperty(t)){for(var i in e)if(e.hasOwnProperty(i)&&e[i]===n[t][i])return Number(t)}return-1}function Fi(n,e){if(!n||!n.getBoundingClientRect)return Vn();var t=n,i=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var u=Le(t);if(t.clientWidth<t.scrollWidth&&(u.overflowX=="auto"||u.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(u.overflowY=="auto"||u.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return Vn();if(i||e)return t;i=!0}}while(t=t.parentNode);return Vn()}function O1(n,e){if(n&&e)for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Nc(n,e){return Math.round(n.top)===Math.round(e.top)&&Math.round(n.left)===Math.round(e.left)&&Math.round(n.height)===Math.round(e.height)&&Math.round(n.width)===Math.round(e.width)}var Mr;function tp(n,e){return function(){if(!Mr){var t=arguments,i=this;t.length===1?n.call(i,t[0]):n.apply(i,t),Mr=setTimeout(function(){Mr=void 0},e)}}}function $1(){clearTimeout(Mr),Mr=void 0}function np(n,e,t){n.scrollLeft+=e,n.scrollTop+=t}function ip(n){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(n).cloneNode(!0):t?t(n).clone(!0)[0]:n.cloneNode(!0)}var En="Sortable"+new Date().getTime();function z1(){var n=[],e;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(u){if(!(Le(u,"display")==="none"||u===Ge.ghost)){n.push({target:u,rect:xt(u)});var I=qn({},n[n.length-1].rect);if(u.thisAnimationDuration){var o=Po(u,!0);o&&(I.top-=o.f,I.left-=o.e)}u.fromRect=I}})}},addAnimationState:function(i){n.push(i)},removeAnimationState:function(i){n.splice(Y1(n,{target:i}),1)},animateAll:function(i){var u=this;if(!this.options.animation){clearTimeout(e),typeof i=="function"&&i();return}var I=!1,o=0;n.forEach(function(b){var y=0,w=b.target,M=w.fromRect,N=xt(w),P=w.prevFromRect,Y=w.prevToRect,G=b.rect,K=Po(w,!0);K&&(N.top-=K.f,N.left-=K.e),w.toRect=N,w.thisAnimationDuration&&Nc(P,N)&&!Nc(M,N)&&(G.top-N.top)/(G.left-N.left)===(M.top-N.top)/(M.left-N.left)&&(y=Z1(G,P,Y,u.options)),Nc(N,M)||(w.prevFromRect=M,w.prevToRect=N,y||(y=u.options.animation),u.animate(w,G,N,y)),y&&(I=!0,o=Math.max(o,y),clearTimeout(w.animationResetTimer),w.animationResetTimer=setTimeout(function(){w.animationTime=0,w.prevFromRect=null,w.fromRect=null,w.prevToRect=null,w.thisAnimationDuration=null},y),w.thisAnimationDuration=y)}),clearTimeout(e),I?e=setTimeout(function(){typeof i=="function"&&i()},o):typeof i=="function"&&i(),n=[]},animate:function(i,u,I,o){if(o){Le(i,"transition",""),Le(i,"transform","");var b=Po(this.el),y=b&&b.a,w=b&&b.d,M=(u.left-I.left)/(y||1),N=(u.top-I.top)/(w||1);i.animatingX=!!M,i.animatingY=!!N,Le(i,"transform","translate3d("+M+"px,"+N+"px,0)"),this.forRepaintDummy=J1(i),Le(i,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),Le(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){Le(i,"transition",""),Le(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},o)}}}}function J1(n){return n.offsetWidth}function Z1(n,e,t,i){return Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*i.animation}var Ko=[],Fc={initializeByDefault:!0},xr={mount:function(e){for(var t in Fc)Fc.hasOwnProperty(t)&&!(t in e)&&(e[t]=Fc[t]);Ko.forEach(function(i){if(i.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Ko.push(e)},pluginEvent:function(e,t,i){var u=this;this.eventCanceled=!1,i.cancel=function(){u.eventCanceled=!0};var I=e+"Global";Ko.forEach(function(o){t[o.pluginName]&&(t[o.pluginName][I]&&t[o.pluginName][I](qn({sortable:t},i)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](qn({sortable:t},i)))})},initializePlugins:function(e,t,i,u){Ko.forEach(function(b){var y=b.pluginName;if(!(!e.options[y]&&!b.initializeByDefault)){var w=new b(e,t,e.options);w.sortable=e,w.options=e.options,e[y]=w,di(i,w.defaults)}});for(var I in e.options)if(e.options.hasOwnProperty(I)){var o=this.modifyOption(e,I,e.options[I]);typeof o<"u"&&(e.options[I]=o)}},getEventProperties:function(e,t){var i={};return Ko.forEach(function(u){typeof u.eventProperties=="function"&&di(i,u.eventProperties.call(t[u.pluginName],e))}),i},modifyOption:function(e,t,i){var u;return Ko.forEach(function(I){e[I.pluginName]&&I.optionListeners&&typeof I.optionListeners[t]=="function"&&(u=I.optionListeners[t].call(e[I.pluginName],i))}),u}};function W1(n){var e=n.sortable,t=n.rootEl,i=n.name,u=n.targetEl,I=n.cloneEl,o=n.toEl,b=n.fromEl,y=n.oldIndex,w=n.newIndex,M=n.oldDraggableIndex,N=n.newDraggableIndex,P=n.originalEvent,Y=n.putSortable,G=n.extraEventProperties;if(e=e||t&&t[En],!!e){var K,D=e.options,E="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!pi&&!kr?K=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(K=document.createEvent("Event"),K.initEvent(i,!0,!0)),K.to=o||t,K.from=b||t,K.item=u||t,K.clone=I,K.oldIndex=y,K.newIndex=w,K.oldDraggableIndex=M,K.newDraggableIndex=N,K.originalEvent=P,K.pullMode=Y?Y.lastPutMode:void 0;var L=qn(qn({},G),xr.getEventProperties(i,e));for(var _ in L)K[_]=L[_];t&&t.dispatchEvent(K),D[E]&&D[E].call(e,K)}}var j1=["evt"],ln=function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=i.evt,I=H1(i,j1);xr.pluginEvent.bind(Ge)(e,t,qn({dragEl:me,parentEl:ft,ghostEl:Ye,rootEl:Bt,nextEl:to,lastDownEl:ts,cloneEl:wt,cloneHidden:Ri,dragStarted:Nr,putSortable:Kt,activeSortable:Ge.active,originalEvent:u,oldIndex:To,oldDraggableIndex:Sr,newIndex:Qn,newDraggableIndex:Li,hideGhostForTarget:gp,unhideGhostForTarget:up,cloneNowHidden:function(){Ri=!0},cloneNowShown:function(){Ri=!1},dispatchSortableEvent:function(b){Wt({sortable:t,name:b,originalEvent:u})}},I))};function Wt(n){W1(qn({putSortable:Kt,cloneEl:wt,targetEl:me,rootEl:Bt,oldIndex:To,oldDraggableIndex:Sr,newIndex:Qn,newDraggableIndex:Li},n))}var me,ft,Ye,Bt,to,ts,wt,Ri,To,Qn,Sr,Li,ns,Kt,Uo=!1,is=!1,os=[],no,Yn,Rc,Lc,op,rp,Nr,Yo,Fr,Rr=!1,rs=!1,as,Ot,Gc=[],Pc=!1,ss=[],ls=typeof document<"u",cs=jh,ap=kr||pi?"cssFloat":"float",q1=ls&&!T1&&!jh&&"draggable"in document.createElement("div"),sp=function(){if(ls){if(pi)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),lp=function(e,t){var i=Le(e),u=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),I=Ho(e,0,t),o=Ho(e,1,t),b=I&&Le(I),y=o&&Le(o),w=b&&parseInt(b.marginLeft)+parseInt(b.marginRight)+xt(I).width,M=y&&parseInt(y.marginLeft)+parseInt(y.marginRight)+xt(o).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(I&&b.float&&b.float!=="none"){var N=b.float==="left"?"left":"right";return o&&(y.clear==="both"||y.clear===N)?"vertical":"horizontal"}return I&&(b.display==="block"||b.display==="flex"||b.display==="table"||b.display==="grid"||w>=u&&i[ap]==="none"||o&&i[ap]==="none"&&w+M>u)?"vertical":"horizontal"},X1=function(e,t,i){var u=i?e.left:e.top,I=i?e.right:e.bottom,o=i?e.width:e.height,b=i?t.left:t.top,y=i?t.right:t.bottom,w=i?t.width:t.height;return u===b||I===y||u+o/2===b+w/2},V1=function(e,t){var i;return os.some(function(u){var I=u[En].options.emptyInsertThreshold;if(!(!I||Sc(u))){var o=xt(u),b=e>=o.left-I&&e<=o.right+I,y=t>=o.top-I&&t<=o.bottom+I;if(b&&y)return i=u}}),i},cp=function(e){function t(I,o){return function(b,y,w,M){var N=b.options.group.name&&y.options.group.name&&b.options.group.name===y.options.group.name;if(I==null&&(o||N))return!0;if(I==null||I===!1)return!1;if(o&&I==="clone")return I;if(typeof I=="function")return t(I(b,y,w,M),o)(b,y,w,M);var P=(o?b:y).options.group.name;return I===!0||typeof I=="string"&&I===P||I.join&&I.indexOf(P)>-1}}var i={},u=e.group;(!u||As(u)!="object")&&(u={name:u}),i.name=u.name,i.checkPull=t(u.pull,!0),i.checkPut=t(u.put),i.revertClone=u.revertClone,e.group=i},gp=function(){!sp&&Ye&&Le(Ye,"display","none")},up=function(){!sp&&Ye&&Le(Ye,"display","")};ls&&document.addEventListener("click",function(n){if(is)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),is=!1,!1},!0);var io=function(e){if(me){e=e.touches?e.touches[0]:e;var t=V1(e.clientX,e.clientY);if(t){var i={};for(var u in e)e.hasOwnProperty(u)&&(i[u]=e[u]);i.target=i.rootEl=t,i.preventDefault=void 0,i.stopPropagation=void 0,t[En]._onDragOver(i)}}},Ak=function(e){me&&me.parentNode[En]._isOutsideThisEl(e.target)};function Ge(n,e){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=e=di({},e),n[En]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return lp(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,b){o.setData("Text",b.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Ge.supportPointer!==!1&&"PointerEvent"in window&&!_r,emptyInsertThreshold:5};xr.initializePlugins(this,n,t);for(var i in t)!(i in e)&&(e[i]=t[i]);cp(e);for(var u in this)u.charAt(0)==="_"&&typeof this[u]=="function"&&(this[u]=this[u].bind(this));this.nativeDraggable=e.forceFallback?!1:q1,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?it(n,"pointerdown",this._onTapStart):(it(n,"mousedown",this._onTapStart),it(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(it(n,"dragover",this),it(n,"dragenter",this)),os.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),di(this,z1())}Ge.prototype={constructor:Ge,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Yo=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,me):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,i=this.el,u=this.options,I=u.preventOnFilter,o=e.type,b=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,y=(b||e).target,w=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||y,M=u.filter;if(sk(i),!me&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||u.disabled)&&!w.isContentEditable&&!(!this.nativeDraggable&&_r&&y&&y.tagName.toUpperCase()==="SELECT")&&(y=Xn(y,u.draggable,i,!1),!(y&&y.animated)&&ts!==y)){if(To=xn(y),Sr=xn(y,u.draggable),typeof M=="function"){if(M.call(this,e,y,this)){Wt({sortable:t,rootEl:w,name:"filter",targetEl:y,toEl:i,fromEl:i}),ln("filter",t,{evt:e}),I&&e.cancelable&&e.preventDefault();return}}else if(M&&(M=M.split(",").some(function(N){if(N=Xn(w,N.trim(),i,!1),N)return Wt({sortable:t,rootEl:N,name:"filter",targetEl:y,fromEl:i,toEl:i}),ln("filter",t,{evt:e}),!0}),M)){I&&e.cancelable&&e.preventDefault();return}u.handle&&!Xn(w,u.handle,i,!1)||this._prepareDragStart(e,b,y)}}},_prepareDragStart:function(e,t,i){var u=this,I=u.el,o=u.options,b=I.ownerDocument,y;if(i&&!me&&i.parentNode===I){var w=xt(i);if(Bt=I,me=i,ft=me.parentNode,to=me.nextSibling,ts=i,ns=o.group,Ge.dragged=me,no={target:me,clientX:(t||e).clientX,clientY:(t||e).clientY},op=no.clientX-w.left,rp=no.clientY-w.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,me.style["will-change"]="all",y=function(){if(ln("delayEnded",u,{evt:e}),Ge.eventCanceled){u._onDrop();return}u._disableDelayedDragEvents(),!Wh&&u.nativeDraggable&&(me.draggable=!0),u._triggerDragStart(e,t),Wt({sortable:u,name:"choose",originalEvent:e}),mn(me,o.chosenClass,!0)},o.ignore.split(",").forEach(function(M){Vh(me,M.trim(),Hc)}),it(b,"dragover",io),it(b,"mousemove",io),it(b,"touchmove",io),it(b,"mouseup",u._onDrop),it(b,"touchend",u._onDrop),it(b,"touchcancel",u._onDrop),Wh&&this.nativeDraggable&&(this.options.touchStartThreshold=4,me.draggable=!0),ln("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(kr||pi))){if(Ge.eventCanceled){this._onDrop();return}it(b,"mouseup",u._disableDelayedDrag),it(b,"touchend",u._disableDelayedDrag),it(b,"touchcancel",u._disableDelayedDrag),it(b,"mousemove",u._delayedDragTouchMoveHandler),it(b,"touchmove",u._delayedDragTouchMoveHandler),o.supportPointer&&it(b,"pointermove",u._delayedDragTouchMoveHandler),u._dragStartTimer=setTimeout(y,o.delay)}else y()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){me&&Hc(me),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;et(e,"mouseup",this._disableDelayedDrag),et(e,"touchend",this._disableDelayedDrag),et(e,"touchcancel",this._disableDelayedDrag),et(e,"mousemove",this._delayedDragTouchMoveHandler),et(e,"touchmove",this._delayedDragTouchMoveHandler),et(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?it(document,"pointermove",this._onTouchMove):t?it(document,"touchmove",this._onTouchMove):it(document,"mousemove",this._onTouchMove):(it(me,"dragend",this),it(Bt,"dragstart",this._onDragStart));try{document.selection?us(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Uo=!1,Bt&&me){ln("dragStarted",this,{evt:t}),this.nativeDraggable&&it(document,"dragover",Ak);var i=this.options;!e&&mn(me,i.dragClass,!1),mn(me,i.ghostClass,!0),Ge.active=this,e&&this._appendGhost(),Wt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Yn){this._lastX=Yn.clientX,this._lastY=Yn.clientY,gp();for(var e=document.elementFromPoint(Yn.clientX,Yn.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Yn.clientX,Yn.clientY),e!==t);)t=e;if(me.parentNode[En]._isOutsideThisEl(e),t)do{if(t[En]){var i=void 0;if(i=t[En]._onDragOver({clientX:Yn.clientX,clientY:Yn.clientY,target:e,rootEl:t}),i&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);up()}},_onTouchMove:function(e){if(no){var t=this.options,i=t.fallbackTolerance,u=t.fallbackOffset,I=e.touches?e.touches[0]:e,o=Ye&&Po(Ye,!0),b=Ye&&o&&o.a,y=Ye&&o&&o.d,w=cs&&Ot&&ep(Ot),M=(I.clientX-no.clientX+u.x)/(b||1)+(w?w[0]-Gc[0]:0)/(b||1),N=(I.clientY-no.clientY+u.y)/(y||1)+(w?w[1]-Gc[1]:0)/(y||1);if(!Ge.active&&!Uo){if(i&&Math.max(Math.abs(I.clientX-this._lastX),Math.abs(I.clientY-this._lastY))<i)return;this._onDragStart(e,!0)}if(Ye){o?(o.e+=M-(Rc||0),o.f+=N-(Lc||0)):o={a:1,b:0,c:0,d:1,e:M,f:N};var P="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");Le(Ye,"webkitTransform",P),Le(Ye,"mozTransform",P),Le(Ye,"msTransform",P),Le(Ye,"transform",P),Rc=M,Lc=N,Yn=I}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Ye){var e=this.options.fallbackOnBody?document.body:Bt,t=xt(me,!0,cs,!0,e),i=this.options;if(cs){for(Ot=e;Le(Ot,"position")==="static"&&Le(Ot,"transform")==="none"&&Ot!==document;)Ot=Ot.parentNode;Ot!==document.body&&Ot!==document.documentElement?(Ot===document&&(Ot=Vn()),t.top+=Ot.scrollTop,t.left+=Ot.scrollLeft):Ot=Vn(),Gc=ep(Ot)}Ye=me.cloneNode(!0),mn(Ye,i.ghostClass,!1),mn(Ye,i.fallbackClass,!0),mn(Ye,i.dragClass,!0),Le(Ye,"transition",""),Le(Ye,"transform",""),Le(Ye,"box-sizing","border-box"),Le(Ye,"margin",0),Le(Ye,"top",t.top),Le(Ye,"left",t.left),Le(Ye,"width",t.width),Le(Ye,"height",t.height),Le(Ye,"opacity","0.8"),Le(Ye,"position",cs?"absolute":"fixed"),Le(Ye,"zIndex","100000"),Le(Ye,"pointerEvents","none"),Ge.ghost=Ye,e.appendChild(Ye),Le(Ye,"transform-origin",op/parseInt(Ye.style.width)*100+"% "+rp/parseInt(Ye.style.height)*100+"%")}},_onDragStart:function(e,t){var i=this,u=e.dataTransfer,I=i.options;if(ln("dragStart",this,{evt:e}),Ge.eventCanceled){this._onDrop();return}ln("setupClone",this),Ge.eventCanceled||(wt=ip(me),wt.draggable=!1,wt.style["will-change"]="",this._hideClone(),mn(wt,this.options.chosenClass,!1),Ge.clone=wt),i.cloneId=us(function(){ln("clone",i),!Ge.eventCanceled&&(i.options.removeCloneOnHide||Bt.insertBefore(wt,me),i._hideClone(),Wt({sortable:i,name:"clone"}))}),!t&&mn(me,I.dragClass,!0),t?(is=!0,i._loopId=setInterval(i._emulateDragOver,50)):(et(document,"mouseup",i._onDrop),et(document,"touchend",i._onDrop),et(document,"touchcancel",i._onDrop),u&&(u.effectAllowed="move",I.setData&&I.setData.call(i,u,me)),it(document,"drop",i),Le(me,"transform","translateZ(0)")),Uo=!0,i._dragStartId=us(i._dragStarted.bind(i,t,e)),it(document,"selectstart",i),Nr=!0,_r&&Le(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,i=e.target,u,I,o,b=this.options,y=b.group,w=Ge.active,M=ns===y,N=b.sort,P=Kt||w,Y,G=this,K=!1;if(Pc)return;function D(S,T){ln(S,G,qn({evt:e,isOwner:M,axis:Y?"vertical":"horizontal",revert:o,dragRect:u,targetRect:I,canSort:N,fromSortable:P,target:i,completed:L,onMove:function(eA,W){return gs(Bt,t,me,u,eA,xt(eA),e,W)},changed:_},T))}function E(){D("dragOverAnimationCapture"),G.captureAnimationState(),G!==P&&P.captureAnimationState()}function L(S){return D("dragOverCompleted",{insertion:S}),S&&(M?w._hideClone():w._showClone(G),G!==P&&(mn(me,Kt?Kt.options.ghostClass:w.options.ghostClass,!1),mn(me,b.ghostClass,!0)),Kt!==G&&G!==Ge.active?Kt=G:G===Ge.active&&Kt&&(Kt=null),P===G&&(G._ignoreWhileAnimating=i),G.animateAll(function(){D("dragOverAnimationComplete"),G._ignoreWhileAnimating=null}),G!==P&&(P.animateAll(),P._ignoreWhileAnimating=null)),(i===me&&!me.animated||i===t&&!i.animated)&&(Yo=null),!b.dragoverBubble&&!e.rootEl&&i!==document&&(me.parentNode[En]._isOutsideThisEl(e.target),!S&&io(e)),!b.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),K=!0}function _(){Qn=xn(me),Li=xn(me,b.draggable),Wt({sortable:G,name:"change",toEl:t,newIndex:Qn,newDraggableIndex:Li,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),i=Xn(i,b.draggable,t,!0),D("dragOver"),Ge.eventCanceled)return K;if(me.contains(e.target)||i.animated&&i.animatingX&&i.animatingY||G._ignoreWhileAnimating===i)return L(!1);if(is=!1,w&&!b.disabled&&(M?N||(o=ft!==Bt):Kt===this||(this.lastPutMode=ns.checkPull(this,w,me,e))&&y.checkPut(this,w,me,e))){if(Y=this._getDirection(e,i)==="vertical",u=xt(me),D("dragOverValid"),Ge.eventCanceled)return K;if(o)return ft=Bt,E(),this._hideClone(),D("revert"),Ge.eventCanceled||(to?Bt.insertBefore(me,to):Bt.appendChild(me)),L(!0);var v=Sc(t,b.draggable);if(!v||ik(e,Y,this)&&!v.animated){if(v===me)return L(!1);if(v&&t===e.target&&(i=v),i&&(I=xt(i)),gs(Bt,t,me,u,i,I,e,!!i)!==!1)return E(),t.appendChild(me),ft=t,_(),L(!0)}else if(v&&nk(e,Y,this)){var B=Ho(t,0,b,!0);if(B===me)return L(!1);if(i=B,I=xt(i),gs(Bt,t,me,u,i,I,e,!1)!==!1)return E(),t.insertBefore(me,B),ft=t,_(),L(!0)}else if(i.parentNode===t){I=xt(i);var p=0,d,l=me.parentNode!==t,g=!X1(me.animated&&me.toRect||u,i.animated&&i.toRect||I,Y),s=Y?"top":"left",h=Ap(i,"top","top")||Ap(me,"top","top"),C=h?h.scrollTop:void 0;Yo!==i&&(d=I[s],Rr=!1,rs=!g&&b.invertSwap||l),p=ok(e,i,I,Y,g?1:b.swapThreshold,b.invertedSwapThreshold==null?b.swapThreshold:b.invertedSwapThreshold,rs,Yo===i);var a;if(p!==0){var r=xn(me);do r-=p,a=ft.children[r];while(a&&(Le(a,"display")==="none"||a===Ye))}if(p===0||a===i)return L(!1);Yo=i,Fr=p;var m=i.nextElementSibling,Q=!1;Q=p===1;var x=gs(Bt,t,me,u,i,I,e,Q);if(x!==!1)return(x===1||x===-1)&&(Q=x===1),Pc=!0,setTimeout(tk,30),E(),Q&&!m?t.appendChild(me):i.parentNode.insertBefore(me,Q?m:i),h&&np(h,0,C-h.scrollTop),ft=me.parentNode,d!==void 0&&!rs&&(as=Math.abs(d-xt(i)[s])),_(),L(!0)}if(t.contains(me))return L(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){et(document,"mousemove",this._onTouchMove),et(document,"touchmove",this._onTouchMove),et(document,"pointermove",this._onTouchMove),et(document,"dragover",io),et(document,"mousemove",io),et(document,"touchmove",io)},_offUpEvents:function(){var e=this.el.ownerDocument;et(e,"mouseup",this._onDrop),et(e,"touchend",this._onDrop),et(e,"pointerup",this._onDrop),et(e,"touchcancel",this._onDrop),et(document,"selectstart",this)},_onDrop:function(e){var t=this.el,i=this.options;if(Qn=xn(me),Li=xn(me,i.draggable),ln("drop",this,{evt:e}),ft=me&&me.parentNode,Qn=xn(me),Li=xn(me,i.draggable),Ge.eventCanceled){this._nulling();return}Uo=!1,rs=!1,Rr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Kc(this.cloneId),Kc(this._dragStartId),this.nativeDraggable&&(et(document,"drop",this),et(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_r&&Le(document.body,"user-select",""),Le(me,"transform",""),e&&(Nr&&(e.cancelable&&e.preventDefault(),!i.dropBubble&&e.stopPropagation()),Ye&&Ye.parentNode&&Ye.parentNode.removeChild(Ye),(Bt===ft||Kt&&Kt.lastPutMode!=="clone")&&wt&&wt.parentNode&&wt.parentNode.removeChild(wt),me&&(this.nativeDraggable&&et(me,"dragend",this),Hc(me),me.style["will-change"]="",Nr&&!Uo&&mn(me,Kt?Kt.options.ghostClass:this.options.ghostClass,!1),mn(me,this.options.chosenClass,!1),Wt({sortable:this,name:"unchoose",toEl:ft,newIndex:null,newDraggableIndex:null,originalEvent:e}),Bt!==ft?(Qn>=0&&(Wt({rootEl:ft,name:"add",toEl:ft,fromEl:Bt,originalEvent:e}),Wt({sortable:this,name:"remove",toEl:ft,originalEvent:e}),Wt({rootEl:ft,name:"sort",toEl:ft,fromEl:Bt,originalEvent:e}),Wt({sortable:this,name:"sort",toEl:ft,originalEvent:e})),Kt&&Kt.save()):Qn!==To&&Qn>=0&&(Wt({sortable:this,name:"update",toEl:ft,originalEvent:e}),Wt({sortable:this,name:"sort",toEl:ft,originalEvent:e})),Ge.active&&((Qn==null||Qn===-1)&&(Qn=To,Li=Sr),Wt({sortable:this,name:"end",toEl:ft,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){ln("nulling",this),Bt=me=ft=Ye=to=wt=ts=Ri=no=Yn=Nr=Qn=Li=To=Sr=Yo=Fr=Kt=ns=Ge.dragged=Ge.ghost=Ge.clone=Ge.active=null,ss.forEach(function(e){e.checked=!0}),ss.length=Rc=Lc=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":me&&(this._onDragOver(e),ek(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,i=this.el.children,u=0,I=i.length,o=this.options;u<I;u++)t=i[u],Xn(t,o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||ak(t));return e},sort:function(e,t){var i={},u=this.el;this.toArray().forEach(function(I,o){var b=u.children[o];Xn(b,this.options.draggable,u,!1)&&(i[I]=b)},this),t&&this.captureAnimationState(),e.forEach(function(I){i[I]&&(u.removeChild(i[I]),u.appendChild(i[I]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Xn(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var i=this.options;if(t===void 0)return i[e];var u=xr.modifyOption(this,e,t);typeof u<"u"?i[e]=u:i[e]=t,e==="group"&&cp(i)},destroy:function(){ln("destroy",this);var e=this.el;e[En]=null,et(e,"mousedown",this._onTapStart),et(e,"touchstart",this._onTapStart),et(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(et(e,"dragover",this),et(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),os.splice(os.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Ri){if(ln("hideClone",this),Ge.eventCanceled)return;Le(wt,"display","none"),this.options.removeCloneOnHide&&wt.parentNode&&wt.parentNode.removeChild(wt),Ri=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Ri){if(ln("showClone",this),Ge.eventCanceled)return;me.parentNode==Bt&&!this.options.group.revertClone?Bt.insertBefore(wt,me):to?Bt.insertBefore(wt,to):Bt.appendChild(wt),this.options.group.revertClone&&this.animate(me,wt),Le(wt,"display",""),Ri=!1}}};function ek(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function gs(n,e,t,i,u,I,o,b){var y,w=n[En],M=w.options.onMove,N;return window.CustomEvent&&!pi&&!kr?y=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent("move",!0,!0)),y.to=e,y.from=n,y.dragged=t,y.draggedRect=i,y.related=u||e,y.relatedRect=I||xt(e),y.willInsertAfter=b,y.originalEvent=o,n.dispatchEvent(y),M&&(N=M.call(w,y,o)),N}function Hc(n){n.draggable=!1}function tk(){Pc=!1}function nk(n,e,t){var i=xt(Ho(t.el,0,t.options,!0)),u=10;return e?n.clientX<i.left-u||n.clientY<i.top&&n.clientX<i.right:n.clientY<i.top-u||n.clientY<i.bottom&&n.clientX<i.left}function ik(n,e,t){var i=xt(Sc(t.el,t.options.draggable)),u=10;return e?n.clientX>i.right+u||n.clientX<=i.right&&n.clientY>i.bottom&&n.clientX>=i.left:n.clientX>i.right&&n.clientY>i.top||n.clientX<=i.right&&n.clientY>i.bottom+u}function ok(n,e,t,i,u,I,o,b){var y=i?n.clientY:n.clientX,w=i?t.height:t.width,M=i?t.top:t.left,N=i?t.bottom:t.right,P=!1;if(!o){if(b&&as<w*u){if(!Rr&&(Fr===1?y>M+w*I/2:y<N-w*I/2)&&(Rr=!0),Rr)P=!0;else if(Fr===1?y<M+as:y>N-as)return-Fr}else if(y>M+w*(1-u)/2&&y<N-w*(1-u)/2)return rk(e)}return P=P||o,P&&(y<M+w*I/2||y>N-w*I/2)?y>M+w/2?1:-1:0}function rk(n){return xn(me)<xn(n)?1:-1}function ak(n){for(var e=n.tagName+n.className+n.src+n.href+n.textContent,t=e.length,i=0;t--;)i+=e.charCodeAt(t);return i.toString(36)}function sk(n){ss.length=0;for(var e=n.getElementsByTagName("input"),t=e.length;t--;){var i=e[t];i.checked&&ss.push(i)}}function us(n){return setTimeout(n,0)}function Kc(n){return clearTimeout(n)}ls&&it(document,"touchmove",function(n){(Ge.active||Uo)&&n.cancelable&&n.preventDefault()}),Ge.utils={on:it,off:et,css:Le,find:Vh,is:function(e,t){return!!Xn(e,t,e,!1)},extend:O1,throttle:tp,closest:Xn,toggleClass:mn,clone:ip,index:xn,nextTick:us,cancelNextTick:Kc,detectDirection:lp,getChild:Ho},Ge.get=function(n){return n[En]},Ge.mount=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(Ge.utils=qn(qn({},Ge.utils),i.utils)),xr.mount(i)})},Ge.create=function(n,e){return new Ge(n,e)},Ge.version=K1;var _t=[],Lr,Tc,Uc=!1,Yc,Oc,ds,Gr;function lk(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return n.prototype={dragStarted:function(t){var i=t.originalEvent;this.sortable.nativeDraggable?it(document,"dragover",this._handleAutoScroll):this.options.supportPointer?it(document,"pointermove",this._handleFallbackAutoScroll):i.touches?it(document,"touchmove",this._handleFallbackAutoScroll):it(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var i=t.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?et(document,"dragover",this._handleAutoScroll):(et(document,"pointermove",this._handleFallbackAutoScroll),et(document,"touchmove",this._handleFallbackAutoScroll),et(document,"mousemove",this._handleFallbackAutoScroll)),dp(),hs(),$1()},nulling:function(){ds=Tc=Lr=Uc=Gr=Yc=Oc=null,_t.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,i){var u=this,I=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,b=document.elementFromPoint(I,o);if(ds=t,i||this.options.forceAutoScrollFallback||kr||pi||_r){$c(t,this.options,b,i);var y=Fi(b,!0);Uc&&(!Gr||I!==Yc||o!==Oc)&&(Gr&&dp(),Gr=setInterval(function(){var w=Fi(document.elementFromPoint(I,o),!0);w!==y&&(y=w,hs()),$c(t,u.options,w,i)},10),Yc=I,Oc=o)}else{if(!this.options.bubbleScroll||Fi(b,!0)===Vn()){hs();return}$c(t,this.options,Fi(b,!1),!1)}}},di(n,{pluginName:"scroll",initializeByDefault:!0})}function hs(){_t.forEach(function(n){clearInterval(n.pid)}),_t=[]}function dp(){clearInterval(Gr)}var $c=tp(function(n,e,t,i){if(e.scroll){var u=(n.touches?n.touches[0]:n).clientX,I=(n.touches?n.touches[0]:n).clientY,o=e.scrollSensitivity,b=e.scrollSpeed,y=Vn(),w=!1,M;Tc!==t&&(Tc=t,hs(),Lr=e.scroll,M=e.scrollFn,Lr===!0&&(Lr=Fi(t,!0)));var N=0,P=Lr;do{var Y=P,G=xt(Y),K=G.top,D=G.bottom,E=G.left,L=G.right,_=G.width,v=G.height,B=void 0,p=void 0,d=Y.scrollWidth,l=Y.scrollHeight,g=Le(Y),s=Y.scrollLeft,h=Y.scrollTop;Y===y?(B=_<d&&(g.overflowX==="auto"||g.overflowX==="scroll"||g.overflowX==="visible"),p=v<l&&(g.overflowY==="auto"||g.overflowY==="scroll"||g.overflowY==="visible")):(B=_<d&&(g.overflowX==="auto"||g.overflowX==="scroll"),p=v<l&&(g.overflowY==="auto"||g.overflowY==="scroll"));var C=B&&(Math.abs(L-u)<=o&&s+_<d)-(Math.abs(E-u)<=o&&!!s),a=p&&(Math.abs(D-I)<=o&&h+v<l)-(Math.abs(K-I)<=o&&!!h);if(!_t[N])for(var r=0;r<=N;r++)_t[r]||(_t[r]={});(_t[N].vx!=C||_t[N].vy!=a||_t[N].el!==Y)&&(_t[N].el=Y,_t[N].vx=C,_t[N].vy=a,clearInterval(_t[N].pid),(C!=0||a!=0)&&(w=!0,_t[N].pid=setInterval((function(){i&&this.layer===0&&Ge.active._onTouchMove(ds);var m=_t[this.layer].vy?_t[this.layer].vy*b:0,Q=_t[this.layer].vx?_t[this.layer].vx*b:0;typeof M=="function"&&M.call(Ge.dragged.parentNode[En],Q,m,n,ds,_t[this.layer].el)!=="continue"||np(_t[this.layer].el,Q,m)}).bind({layer:N}),24))),N++}while(e.bubbleScroll&&P!==y&&(P=Fi(P,!1)));Uc=w}},30),hp=function(e){var t=e.originalEvent,i=e.putSortable,u=e.dragEl,I=e.activeSortable,o=e.dispatchSortableEvent,b=e.hideGhostForTarget,y=e.unhideGhostForTarget;if(t){var w=i||I;b();var M=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,N=document.elementFromPoint(M.clientX,M.clientY);y(),w&&!w.el.contains(N)&&(o("spill"),this.onSpill({dragEl:u,putSortable:i}))}};function zc(){}zc.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,i=e.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var u=Ho(this.sortable.el,this.startIndex,this.options);u?this.sortable.el.insertBefore(t,u):this.sortable.el.appendChild(t),this.sortable.animateAll(),i&&i.animateAll()},drop:hp},di(zc,{pluginName:"revertOnSpill"});function Jc(){}Jc.prototype={onSpill:function(e){var t=e.dragEl,i=e.putSortable,u=i||this.sortable;u.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),u.animateAll()},drop:hp},di(Jc,{pluginName:"removeOnSpill"}),Ge.mount(new lk),Ge.mount(Jc,zc);var ck=Object.defineProperty,gk=Object.defineProperties,uk=Object.getOwnPropertyDescriptors,pp=Object.getOwnPropertySymbols,dk=Object.prototype.hasOwnProperty,hk=Object.prototype.propertyIsEnumerable,Cp=(n,e,t)=>e in n?ck(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Gi=(n,e)=>{for(var t in e||(e={}))dk.call(e,t)&&Cp(n,t,e[t]);if(pp)for(var t of pp(e))hk.call(e,t)&&Cp(n,t,e[t]);return n},ps=(n,e)=>gk(n,uk(e));function Zc(n){n.parentElement!==null&&n.parentElement.removeChild(n)}function Bp(n,e,t){const i=t===0?n.children[0]:n.children[t-1].nextSibling;n.insertBefore(e,i)}function pk(){return typeof window<"u"?window.console:global.console}const Ck=pk();function Bk(n){const e=Object.create(null);return function(i){return e[i]||(e[i]=n(i))}}const mk=/-(\w)/g,Ek=Bk(n=>n.replace(mk,(e,t)=>t.toUpperCase())),mp=["Start","Add","Remove","Update","End"],Ep=["Choose","Unchoose","Sort","Filter","Clone"],Qp=["Move"],Qk=[Qp,mp,Ep].flatMap(n=>n).map(n=>`on${n}`),Wc={manage:Qp,manageAndEmit:mp,emit:Ep};function Ik(n){return Qk.indexOf(n)!==-1}const fk=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","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","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function wk(n){return fk.includes(n)}function bk(n){return["transition-group","TransitionGroup"].includes(n)}function Ip(n){return["id","class","role","style"].includes(n)||n.startsWith("data-")||n.startsWith("aria-")||n.startsWith("on")}function fp(n){return n.reduce((e,[t,i])=>(e[t]=i,e),{})}function yk({$attrs:n,componentData:e={}}){const t=fp(Object.entries(n).filter(([i,u])=>Ip(i)));return Gi(Gi({},t),e)}function Dk({$attrs:n,callBackBuilder:e}){const t=fp(wp(n));Object.entries(e).forEach(([u,I])=>{Wc[u].forEach(o=>{t[`on${o}`]=I(o)})});const i=`[data-draggable]${t.draggable||""}`;return ps(Gi({},t),{draggable:i})}function wp(n){return Object.entries(n).filter(([e,t])=>!Ip(e)).map(([e,t])=>[Ek(e),t]).filter(([e,t])=>!Ik(e))}const bp=n=>{const e=n.el||Array.isArray(n.children)&&n.children[0].el.parentNode;return e||console.error("使用 transition-group , 需要在slot中template内至少2层html标签"),e||{}},vk=(n,e)=>n.__draggable_context=e,yp=n=>n.__draggable_context;class kk{constructor({nodes:{header:e,default:t,footer:i},root:u,realList:I}){this.defaultNodes=t,this.children=[...e,...t,...i],this.externalComponent=u.externalComponent,this.rootTransition=u.transition,this.tag=u.tag,this.realList=I}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(e,t){const{tag:i,children:u,_isRootComponent:I}=this;return e(i,t,I?{default:()=>u}:u)}updated(){const{defaultNodes:e,realList:t}=this;e.forEach((i,u)=>{vk(bp(i),{element:t[u],index:u})})}getUnderlyingVm(e){return yp(e)}getVmIndexFromDomIndex(e,t){const{defaultNodes:i}=this,{length:u}=i,I=t.children,o=I.item(e);if(o===null)return u;const b=yp(o);if(b)return b.index;if(u===0)return 0;const y=bp(i[0]),w=[...I].findIndex(M=>M===y);return e<w?0:u}}function _k(n,e){const t=n[e];return t?t():[]}function Mk({$slots:n,realList:e,getKey:t}){const i=e||[],[u,I]=["header","footer"].map(y=>_k(n,y)),{item:o}=n;if(!o)throw new Error("draggable element must have an item slot");const b=i.flatMap((y,w)=>o({element:y,index:w}).map(M=>(M.key=t(y),M.props=ps(Gi({},M.props||{}),{"data-draggable":!0}),M)));if(b.length!==i.length)throw new Error("Item slot must have only one child");return{header:u,footer:I,default:b}}function xk(n){const e=bk(n),t=!wk(n)&&!e;return{transition:e,externalComponent:t,tag:t?A.resolveComponent(n):e?A.TransitionGroup:n}}function Sk({$slots:n,tag:e,realList:t,getKey:i}){const u=Mk({$slots:n,realList:t,getKey:i}),I=xk(e);return new kk({nodes:u,root:I,realList:t})}function Dp(n,e){A.nextTick(()=>this.$emit(n.toLowerCase(),e))}function vp(n){return(e,t)=>{if(this.realList!==null)return this[`onDrag${n}`](e,t)}}function Nk(n){const e=vp.call(this,n);return(t,i)=>{e.call(this,t,i),Dp.call(this,n,t)}}let jc=null;const Fk={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:n=>n},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Rk=["update:modelValue","change",...[...Wc.manageAndEmit,...Wc.emit].map(n=>n.toLowerCase())],kp=A.defineComponent({name:"draggable",inheritAttrs:!1,props:Fk,emits:Rk,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:n,$attrs:e,tag:t,componentData:i,realList:u,getKey:I}=this,o=Sk({$slots:n,tag:t,realList:u,getKey:I});this.componentStructure=o;const b=yk({$attrs:e,componentData:i});return o.render(A.h,b)}catch(n){return this.error=!0,A.h("pre",{style:{color:"red"}},n.stack)}},created(){this.list!==null&&this.modelValue!==null&&Ck.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:n,$el:e,componentStructure:t}=this;t.updated();const i=Dk({$attrs:n,callBackBuilder:{manageAndEmit:I=>Nk.call(this,I),emit:I=>Dp.bind(this,I),manage:I=>vp.call(this,I)}}),u=e.nodeType===1?e:e.parentElement;this._sortable=new Ge(u,i),this.targetDomElement=u,u.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:n}=this;return n||this.modelValue},getKey(){const{itemKey:n}=this;return typeof n=="function"?n:e=>e[n]}},watch:{$attrs:{handler(n){const{_sortable:e}=this;e&&wp(n).forEach(([t,i])=>{e.option(t,i)})},deep:!0}},methods:{getUnderlyingVm(n){return this.componentStructure.getUnderlyingVm(n)||null},getUnderlyingPotencialDraggableComponent(n){return n.__draggable_component__},emitChanges(n){A.nextTick(()=>this.$emit("change",n))},alterList(n){if(this.list){n(this.list);return}const e=[...this.modelValue];n(e),this.$emit("update:modelValue",e)},spliceList(){const n=e=>e.splice(...arguments);this.alterList(n)},updatePosition(n,e){const t=i=>i.splice(e,0,i.splice(n,1)[0]);this.alterList(t)},getRelatedContextFromMoveEvent({to:n,related:e}){const t=this.getUnderlyingPotencialDraggableComponent(n);if(!t)return{component:t};const i=t.realList,u={list:i,component:t};if(n!==e&&i){const I=t.getUnderlyingVm(e)||{};return Gi(Gi({},I),u)}return u},getVmIndexFromDomIndex(n){return this.componentStructure.getVmIndexFromDomIndex(n,this.targetDomElement)},onDragStart(n){this.context=this.getUnderlyingVm(n.item),n.item._underlying_vm_=this.clone(this.context.element),jc=n.item},onDragAdd(n){const e=n.item._underlying_vm_;if(e===void 0)return;Zc(n.item);const t=this.getVmIndexFromDomIndex(n.newIndex);this.spliceList(t,0,e);const i={element:e,newIndex:t};this.emitChanges({added:i})},onDragRemove(n){if(Bp(this.$el,n.item,n.oldIndex),n.pullMode==="clone"){Zc(n.clone);return}const{index:e,element:t}=this.context;this.spliceList(e,1);const i={element:t,oldIndex:e};this.emitChanges({removed:i})},onDragUpdate(n){Zc(n.item),Bp(n.from,n.item,n.oldIndex);const e=this.context.index,t=this.getVmIndexFromDomIndex(n.newIndex);this.updatePosition(e,t);const i={element:this.context.element,oldIndex:e,newIndex:t};this.emitChanges({moved:i})},computeFutureIndex(n,e){if(!n.element)return 0;const t=[...e.to.children].filter(o=>o.style.display!=="none"),i=t.indexOf(e.related),u=n.component.getVmIndexFromDomIndex(i);return t.indexOf(jc)!==-1||!e.willInsertAfter?u:u+1},onDragMove(n,e){const{move:t,realList:i}=this;if(!t||!i)return!0;const u=this.getRelatedContextFromMoveEvent(n),I=this.computeFutureIndex(u,n),o=ps(Gi({},this.context),{futureIndex:I}),b=ps(Gi({},n),{relatedContext:u,draggedContext:o});return t(b,e)},onDragEnd(){jc=null}}}),oo=A.defineComponent({__name:"FormItem",props:{label:{},name:{},component:{},required:{type:Boolean},props:{},initialValue:{},help:{},labelSuffix:{},children:{},hidden:{type:[Boolean,String]},hideLabel:{type:Boolean},designKey:{},rules:{},class:{},style:{},change:{},dialog:{type:Boolean},width:{}},setup(n){const e=n,t=It(),i=zo(),u=A.reactive({visible:!1,title:""}),I=()=>{u.visible=!0,u.title=e.label},o=A.computed({get(){return ma(t.formValues,e.name)},set(Y){const G=ko(t.formValues,e.name,Y);t.updateFormValues(G)}}),b=A.computed(()=>{const{rules:Y,required:G,component:K}=e,D=[];if(G&&D.push({required:!0,trigger:"blur",message:"Required"}),Y){const E=Y.map(L=>{const{type:_,message:v,trigger:B,customReg:p,templateExp:d}=L,l={message:v,trigger:B};return["email","url"].includes(_)?{...l,type:_}:_==="custom"&&p?{...l,pattern:fm(p)}:Im(_)?{...l,pattern:_}:_==="template"?{...l,validator:()=>d}:{}});return[...D,...E]}if(K==="VerifyCode"){const E={trigger:"blur",message:"验证码错误!",validator:()=>t.vCodePass};return[...D,E]}return D}),y=A.computed(()=>{const Y=i[e.component]||{};return Y.modelName||(Y.modelName="modelValue"),Y}),w=A.computed(()=>{const Y={name:e.name,...e.props};return e.children&&(Y.children=e.children),Y}),M=()=>{if(e.component!=="DragList")return[];const Y=w.value.gridlayout||[],G=w.value.children||[],K=w.value.rowHeight||30;return Y.map((D,E)=>{var L;return{...D,i:(L=G[E])==null?void 0:L.name,rowHeight:K}})},N=A.ref(M()),P=Y=>Y==null?void 0:Y.replace(/&nbsp;/g," ");return A.onBeforeMount(()=>{if(o.value===void 0&&e.initialValue!==void 0&&!t.design){const Y=ko(t.initialValues,e.name,e.initialValue);t.updateInitialValues(Y),o.value=e.initialValue}}),A.watch(o,(Y,G)=>{const K=e.change,D=ut.isEqual(Y,G);if(!K||D)return;let E=ut.cloneDeep(t.formValues);K.forEach(({target:L,value:_,condition:v})=>{if(v!==!1){if(L.includes(".*.")){const B=L.split(".*."),p=B.pop(),d=B.join("."),l=ma(t.formValues,d);ut.isArray(l)&&(E=ko(E,d,l.map(g=>({...g,[p]:_}))));return}E=ko(E,L,_)}}),t.updateFormValues(E)},{immediate:!0}),(Y,G)=>{var _;const K=A.resolveComponent("el-tooltip"),D=A.resolveComponent("el-dialog"),E=A.resolveComponent("el-button"),L=A.resolveComponent("el-form-item");return A.unref(t).design||!Y.hidden?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[y.value.component==="DragList"?(A.openBlock(),A.createBlock(A.resolveDynamicComponent(y.value.render),A.mergeProps({key:0},w.value,{style:{minWidth:0},gridlayout:N.value,"onUpdate:gridlayout":G[0]||(G[0]=v=>N.value=v)}),null,16,["gridlayout"])):y.value.type==="layout"?(A.openBlock(),A.createBlock(A.resolveDynamicComponent(y.value.render),A.mergeProps({key:1},w.value,{style:{minWidth:0}}),null,16)):y.value.type==="assist"?(A.openBlock(),A.createBlock(A.resolveDynamicComponent(y.value.render),A.normalizeProps(A.mergeProps({key:2},w.value)),null,16)):(A.openBlock(),A.createBlock(L,{class:A.normalizeClass([A.unref(je)("form-item"),e.class,`${Y.component}-${Y.name}`,{readMode:((_=e.props)==null?void 0:_.read)||A.unref(t).schema.read}]),style:A.normalizeStyle(Y.style),key:Y.name,prop:Y.name,"label-width":Y.hideLabel?"0":A.unref(t).schema.labelWidth,rules:b.value},{label:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",{class:A.normalizeClass([A.unref(je)("form-item-label"),Y.label&&`${Y.name}-label`])},[A.createElementVNode("div",{style:A.normalizeStyle(A.unref(t).schema.labelBold&&"font-weight: bold")},A.toDisplayString(P(Y.label)),5),Y.help?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(A.unref(je)("form-item-label-ico"))},[A.createVNode(K,{effect:"dark",content:Y.help},{default:A.withCtx(()=>[A.createElementVNode("div",null,[A.createVNode(A.unref(Ie),{name:"help"})])]),_:1},8,["content"])],2)):A.createCommentVNode("",!0),Y.labelSuffix?(A.openBlock(),A.createElementBlock("div",{key:1,class:A.normalizeClass(A.unref(je)("form-item-label-suffix"))},[Y.labelSuffix.component==="Popover"?(A.openBlock(),A.createBlock(mC,A.normalizeProps(A.mergeProps({key:0},A.unref(Rt)(Y.labelSuffix.props,A.unref(t).context))),null,16)):A.createCommentVNode("",!0)],2)):A.createCommentVNode("",!0)],2),[[A.vShow,!Y.hideLabel]])]),default:A.withCtx(()=>[Y.dialog?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[A.createVNode(D,{modelValue:u.visible,"onUpdate:modelValue":G[2]||(G[2]=v=>u.visible=v),title:u.title,width:"70%",center:"","destroy-on-close":""},{default:A.withCtx(()=>[(A.openBlock(),A.createBlock(A.resolveDynamicComponent(y.value.render),A.mergeProps({size:A.unref(t).schema.size},w.value,{disabled:A.unref(t).schema.disabled,[y.value.modelName]:o.value,["onUpdate:"+y.value.modelName]:G[1]||(G[1]=v=>o.value=v)}),null,16,["size","disabled"]))]),_:1},8,["modelValue","title"]),A.createVNode(E,{type:"primary",plain:"",onClick:I},{default:A.withCtx(()=>G[4]||(G[4]=[A.createTextVNode("配置")])),_:1})],64)):(A.openBlock(),A.createBlock(A.resolveDynamicComponent(y.value.render),A.mergeProps({key:1,size:A.unref(t).schema.size,disabled:A.unref(t).schema.disabled},A.unref(Rt)(w.value,A.unref(t).context),{[y.value.modelName]:o.value,["onUpdate:"+y.value.modelName]:G[3]||(G[3]=v=>o.value=v)}),null,16,["size","disabled"]))]),_:1},8,["class","style","prop","label-width","rules"]))],64)):A.createCommentVNode("",!0)}}}),Lk={key:0,class:"actions-lt"},Gk={class:"canvas-move",size:"small",type:"primary"},Pk={key:1,class:"hidden-ico"},Hk={key:2,class:"actions-rb"},Kk=["onClick"],Tk={key:3,class:"layout-title"},Uk=A.defineComponent({__name:"CanvasItem",props:{data:{}},setup(n){const e=n,t=Sn(),u=zo()[e.data.component],I=A.computed(()=>{var P;return{[je("canvas-item")]:!0,active:e.data.designKey===((P=t.current)==null?void 0:P.designKey),hover:e.data.designKey===t.hoverKey,mask:e.data.designKey===t.hoverKey&&!e.data.children,collapse:w.value}}),o=()=>{e.data.designKey&&t.updateHoverKey(e.data.designKey)},b=()=>{t.updateHoverKey("")},y=P=>{t.updateCurrent(P),t.rightTab="attr"},w=A.ref(!1),M=()=>{w.value=!w.value},N=[{icon:"copy",handle:P=>{const Y=Gd(t.list,P.designKey);t.updateList(Y)}},{icon:"delete",bg:"var(--el-color-danger)",handle:P=>{const Y=wu(t.list,G=>G.designKey!==P.designKey);t.updateList(Y)}}];return(P,Y)=>{var G,K;return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(I.value),onClick:Y[0]||(Y[0]=A.withModifiers(D=>y(P.data),["stop"])),onMousemove:A.withModifiers(o,["stop"]),onMouseleave:A.withModifiers(b,["stop"])},[P.data.designKey===((G=A.unref(t).current)==null?void 0:G.designKey)?(A.openBlock(),A.createElementBlock("div",Lk,[A.createElementVNode("div",Gk,[A.createVNode(A.unref(Ie),{name:"move"})]),A.createElementVNode("div",{class:"canvas-collapse",size:"small",type:"primary",onClick:M},[A.createVNode(A.unref(Ie),{name:"select"})])])):A.createCommentVNode("",!0),P.data.hidden?(A.openBlock(),A.createElementBlock("div",Pk,[A.createVNode(A.unref(Ie),{name:"hidden"})])):A.createCommentVNode("",!0),P.data.designKey===((K=A.unref(t).current)==null?void 0:K.designKey)?(A.openBlock(),A.createElementBlock("ul",Hk,[(A.openBlock(),A.createElementBlock(A.Fragment,null,A.renderList(N,({icon:D,handle:E,bg:L})=>A.createElementVNode("li",{class:"actions-rb-item",onClick:A.withModifiers(_=>E(P.data),["stop"]),key:D,style:A.normalizeStyle({backgroundColor:L})},[A.createVNode(A.unref(Ie),{name:D},null,8,["name"])],12,Kk)),64))])):A.createCommentVNode("",!0),A.unref(u).lbTitle?(A.openBlock(),A.createElementBlock("div",Tk,A.toDisplayString(A.unref(u).title),1)):A.createCommentVNode("",!0),A.createVNode(oo,A.mergeProps(P.data,{props:P.data.props}),null,16,["props"])],34)}}}),qc=A.defineComponent({__name:"CanvasGroup",props:{list:{},style:{},class:{},emptyText:{default:"请拖入子字段"},emptySize:{default:12}},setup(n){const e=n,t=Sn(),i=u=>{const I=u.item._underlying_vm_;t.updateCurrent(tc(t.list,I.designKey)),t.hoverKey=I.designKey,t.rightTab="attr",t.handleEmit("add",I)};return(u,I)=>(A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("canvas-group")),style:A.normalizeStyle({overflow:u.list.length?"auto":"hidden"})},[u.list.length?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(A.unref(je)("canvas-group-empty")),style:A.normalizeStyle({fontSize:u.emptySize+"px"})},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("canvas-group-empty-ico"))},[A.createVNode(A.unref(Ie),{name:"add"})],2),A.createElementVNode("p",null,A.toDisplayString(u.emptyText),1)],6)),A.createVNode(A.unref(kp),{list:u.list,group:"formDesign",itemKey:"name","ghost-class":A.unref(je)("canvas-group-ghost"),class:A.normalizeClass([A.unref(je)("canvas-group-draggable"),e.class]),style:A.normalizeStyle(u.style),animation:300,handle:".canvas-move","force-fallback":"",onAdd:i},{item:A.withCtx(({element:o})=>[o.designKey?(A.openBlock(),A.createBlock(Uk,{key:0,data:o},null,8,["data"])):A.createCommentVNode("",!0)]),_:1},8,["list","ghost-class","class","style"])],6))}}),Yk=typeof window<"u";var _p;Yk&&((_p=window==null?void 0:window.navigator)!=null&&_p.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function In(n){return n==null}function Mp(){}const Ok=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(Ok)));function $k(){const n=new Map;return{on(e,t){const i=n.get(e);i!=null&&i.add(t)||n.set(e,new Set([t]))},off(e,t){const i=n.get(e);i&&i.delete(t)},clear(e){const t=n.get(e);t&&t.clear()},clearAll(){n.clear()},emit(e,...t){const i=n.get(e);i&&i.forEach(u=>{u(...t)})}}}function xp(n,e=16){if(typeof n!="function")return Mp;const t=(...I)=>{n(...I)};if(e<=0)return Sp(t);let i=0,u;return function(...I){const o=Date.now(),b=o-i;clearTimeout(u),b>=e?(i=o,t(...I)):u=setTimeout(()=>{i=Date.now(),t(...I)},Math.max(0,e-b))}}function zk(n,e=100){if(typeof n!="function")return Mp;const t=(...u)=>{n(...u)};if(e<=0)return Sp(t);let i;return function(...u){clearTimeout(i),i=setTimeout(()=>{t(...u)},e)}}function Sp(n){if(typeof n!="function")return n;let e=!1,t,i;return function(...u){return t=u,e||(e=!0,i=Promise.resolve().then(()=>(e=!1,i=void 0,n(...t)))),i}}const Pr=new Set,Np=new WeakMap;function Jk(){Pr.forEach(n=>{n(...Np.get(n))}),Pr.clear()}function jt(n,...e){if(typeof n!="function")return n;Np.set(n,e),!Pr.has(n)&&(Pr.add(n),Pr.size===1&&Promise.resolve().then(Jk))}const Fp=Symbol("LAYOUT_KEY"),Rp=Symbol("EMITTER_KEY");function Zk(n){let e=0,t;for(let i=0,u=n.length;i<u;i++)t=n[i].y+n[i].h,t>e&&(e=t);return e}function Xc(n){const e=Array(n.length);for(let t=0,i=n.length;t<i;t++)e[t]=Wk(n[t]);return e}function Wk(n){return{...n}}function Lp(n,e){return!(n===e||n.x+n.w<=e.x||n.x>=e.x+e.w||n.y+n.h<=e.y||n.y>=e.y+e.h)}function Oo(n,e,t){const i=Hp(n),u=Tp(n),I=Array(n.length);for(let o=0,b=u.length;o<b;o++){let y=u[o];y.static||(y=jk(i,y,e,t),i.push(y)),I[n.findIndex(w=>w.i===y.i)]=y,y.moved=!1}return I}function jk(n,e,t,i){if(t)for(;e.y>0&&!Hr(n,e);)e.y--;else if(i){const I=i[e.i].y;for(;e.y>I&&!Hr(n,e);)e.y--}let u;for(;u=Hr(n,e);)e.y=u.y+u.h;return e}function qk(n,e){const t=Hp(n);for(let i=0,u=n.length;i<u;i++){const I=n[i];if(I.x+I.w>e.cols&&(I.x=e.cols-I.w),I.x<0&&(I.x=0,I.w=e.cols),!I.static)t.push(I);else for(;Hr(t,I);)I.y++}return n}function Gp(n,e){for(let t=0,i=n.length;t<i;t++)if(n[t].i===e)return n[t]}function Hr(n,e){for(let t=0,i=n.length;t<i;t++)if(Lp(n[t],e))return n[t]}function Pp(n,e){return n.filter(t=>Lp(t,e))}function Hp(n){return n.filter(e=>e.static)}function Vc(n,e,t,i,u=!1,I=!1){if(e.static)return n;const o=e.x,b=e.y,y=i&&e.y>i;typeof t=="number"&&(e.x=t),typeof i=="number"&&(e.y=i),e.moved=!0;let w=Tp(n);y&&(w=w.reverse());const M=Pp(w,e);if(I&&M.length)return e.x=o,e.y=b,e.moved=!1,n;for(let N=0,P=M.length;N<P;N++){const Y=M[N];Y.moved||e.y>Y.y&&e.y-Y.y>Y.h/4||(Y.static?n=Kp(n,Y,e,u):n=Kp(n,e,Y,u))}return n}function Kp(n,e,t,i){if(i){const u={x:t.x,y:t.y,w:t.w,h:t.h};if(u.y=Math.max(e.y-t.h,0),!Hr(n,u))return Vc(n,t,void 0,u.y,!1)}return Vc(n,t,void 0,t.y+1,!1)}function Xk(n,e,t,i){const u="translate3d("+e+"px,"+n+"px, 0)";return{transform:u,WebkitTransform:u,MozTransform:u,msTransform:u,OTransform:u,width:t+"px",height:i+"px",position:"absolute"}}function Vk(n,e,t,i){const u="translate3d("+e*-1+"px,"+n+"px, 0)";return{transform:u,WebkitTransform:u,MozTransform:u,msTransform:u,OTransform:u,width:t+"px",height:i+"px",position:"absolute"}}function A_(n,e,t,i){return{top:n+"px",left:e+"px",width:t+"px",height:i+"px",position:"absolute"}}function e_(n,e,t,i){return{top:n+"px",right:e+"px",width:t+"px",height:i+"px",position:"absolute"}}function Tp(n){return Array.from(n).sort(function(e,t){return e.y===t.y&&e.x===t.x?0:e.y>t.y||e.y===t.y&&e.x>t.x?1:-1})}function t_(n,e){e=e||"Layout";const t=["x","y","w","h"],i=[];if(!Array.isArray(n))throw new Error(e+" must be an array!");for(let u=0,I=n.length;u<I;u++){const o=n[u];for(let b=0;b<t.length;b++)if(typeof o[t[b]]!="number")throw new Error("VueGridLayout: "+e+"["+u+"]."+t[b]+" must be a number!");if(o.i===void 0||o.i===null)throw new Error("VueGridLayout: "+e+"["+u+"].i cannot be null!");if(typeof o.i!="number"&&typeof o.i!="string")throw new Error("VueGridLayout: "+e+"["+u+"].i must be a string or number!");if(i.indexOf(o.i)>=0)throw new Error("VueGridLayout: "+e+"["+u+"].i must be unique!");if(i.push(o.i),o.static!==void 0&&typeof o.static!="boolean")throw new Error("VueGridLayout: "+e+"["+u+"].static must be a boolean!")}}function n_(n,e="vgl"){const t=()=>`${e}-${n}`;return{b:t,be:i=>`${t()}__${i}`,bm:i=>`${t()}--${i}`,bem:(i,u)=>`${t()}__${i}--${u}`}}function Up(n){return i_(n)}function i_(n){var e;const t=((e=n.target)==null?void 0:e.offsetParent)||document.body,i=n.offsetParent===document.body?{left:0,top:0}:t.getBoundingClientRect(),u=n.clientX+t.scrollLeft-i.left,I=n.clientY+t.scrollTop-i.top;return{x:u,y:I}}function Yp(n,e,t,i){return o_(n)?{deltaX:t-n,deltaY:i-e,lastX:n,lastY:e,x:t,y:i}:{deltaX:0,deltaY:0,lastX:t,lastY:i,x:t,y:i}}function o_(n){return typeof n=="number"&&!Number.isNaN(n)}function r_(n,e){const t=$p(n);let i=t[0];for(let u=1,I=t.length;u<I;u++){const o=t[u];e>n[o]&&(i=o)}return i}function Op(n,e){if(!e[n])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+n+" is missing!");return e[n]}function a_(n,e,t,i,u,I,o){if(e[i])return Xc(e[i]);let b=n;const y=$p(t),w=y.slice(y.indexOf(i));for(let M=0,N=w.length;M<N;M++){const P=w[M];if(e[P]){b=e[P];break}}return b=Xc(b||[]),Oo(qk(b,{cols:I}),o)}function $p(n){return Object.keys(n).sort((e,t)=>n[e]-n[t])}let s_="auto";function l_(){return typeof document<"u"}function zp(){return l_()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):s_}var Cs={exports:{}};Cs.exports,function(n,e){(function(t,i){n.exports=i()})(vo,function(){function t(R,F){var Z=Object.keys(R);if(Object.getOwnPropertySymbols){var nA=Object.getOwnPropertySymbols(R);F&&(nA=nA.filter(function(lA){return Object.getOwnPropertyDescriptor(R,lA).enumerable})),Z.push.apply(Z,nA)}return Z}function i(R){for(var F=1;F<arguments.length;F++){var Z=arguments[F]!=null?arguments[F]:{};F%2?t(Object(Z),!0).forEach(function(nA){y(R,nA,Z[nA])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(Z)):t(Object(Z)).forEach(function(nA){Object.defineProperty(R,nA,Object.getOwnPropertyDescriptor(Z,nA))})}return R}function u(R){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},u(R)}function I(R,F){if(!(R instanceof F))throw new TypeError("Cannot call a class as a function")}function o(R,F){for(var Z=0;Z<F.length;Z++){var nA=F[Z];nA.enumerable=nA.enumerable||!1,nA.configurable=!0,"value"in nA&&(nA.writable=!0),Object.defineProperty(R,K(nA.key),nA)}}function b(R,F,Z){return F&&o(R.prototype,F),Object.defineProperty(R,"prototype",{writable:!1}),R}function y(R,F,Z){return(F=K(F))in R?Object.defineProperty(R,F,{value:Z,enumerable:!0,configurable:!0,writable:!0}):R[F]=Z,R}function w(R,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(F&&F.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),F&&N(R,F)}function M(R){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},M(R)}function N(R,F){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,nA){return Z.__proto__=nA,Z},N(R,F)}function P(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function Y(R){var F=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Z,nA=M(R);if(F){var lA=M(this).constructor;Z=Reflect.construct(nA,arguments,lA)}else Z=nA.apply(this,arguments);return function(hA,mA){if(mA&&(typeof mA=="object"||typeof mA=="function"))return mA;if(mA!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P(hA)}(this,Z)}}function G(){return G=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(R,F,Z){var nA=function(hA,mA){for(;!Object.prototype.hasOwnProperty.call(hA,mA)&&(hA=M(hA))!==null;);return hA}(R,F);if(nA){var lA=Object.getOwnPropertyDescriptor(nA,F);return lA.get?lA.get.call(arguments.length<3?R:Z):lA.value}},G.apply(this,arguments)}function K(R){var F=function(Z,nA){if(typeof Z!="object"||Z===null)return Z;var lA=Z[Symbol.toPrimitive];if(lA!==void 0){var hA=lA.call(Z,nA);if(typeof hA!="object")return hA;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Z)}(R,"string");return typeof F=="symbol"?F:F+""}var D=function(R){return!(!R||!R.Window)&&R instanceof R.Window},E=void 0,L=void 0;function _(R){E=R;var F=R.document.createTextNode("");F.ownerDocument!==R.document&&typeof R.wrap=="function"&&R.wrap(F)===F&&(R=R.wrap(R)),L=R}function v(R){return D(R)?R:(R.ownerDocument||R).defaultView||L.window}typeof window<"u"&&window&&_(window);var B=function(R){return!!R&&u(R)==="object"},p=function(R){return typeof R=="function"},d={window:function(R){return R===L||D(R)},docFrag:function(R){return B(R)&&R.nodeType===11},object:B,func:p,number:function(R){return typeof R=="number"},bool:function(R){return typeof R=="boolean"},string:function(R){return typeof R=="string"},element:function(R){if(!R||u(R)!=="object")return!1;var F=v(R)||L;return/object|function/.test(typeof Element>"u"?"undefined":u(Element))?R instanceof Element||R instanceof F.Element:R.nodeType===1&&typeof R.nodeName=="string"},plainObject:function(R){return B(R)&&!!R.constructor&&/function Object\b/.test(R.constructor.toString())},array:function(R){return B(R)&&R.length!==void 0&&p(R.splice)}};function l(R){var F=R.interaction;if(F.prepared.name==="drag"){var Z=F.prepared.axis;Z==="x"?(F.coords.cur.page.y=F.coords.start.page.y,F.coords.cur.client.y=F.coords.start.client.y,F.coords.velocity.client.y=0,F.coords.velocity.page.y=0):Z==="y"&&(F.coords.cur.page.x=F.coords.start.page.x,F.coords.cur.client.x=F.coords.start.client.x,F.coords.velocity.client.x=0,F.coords.velocity.page.x=0)}}function g(R){var F=R.iEvent,Z=R.interaction;if(Z.prepared.name==="drag"){var nA=Z.prepared.axis;if(nA==="x"||nA==="y"){var lA=nA==="x"?"y":"x";F.page[lA]=Z.coords.start.page[lA],F.client[lA]=Z.coords.start.client[lA],F.delta[lA]=0}}}var s={id:"actions/drag",install:function(R){var F=R.actions,Z=R.Interactable,nA=R.defaults;Z.prototype.draggable=s.draggable,F.map.drag=s,F.methodDict.drag="draggable",nA.actions.drag=s.defaults},listeners:{"interactions:before-action-move":l,"interactions:action-resume":l,"interactions:action-move":g,"auto-start:check":function(R){var F=R.interaction,Z=R.interactable,nA=R.buttons,lA=Z.options.drag;if(lA&&lA.enabled&&(!F.pointerIsDown||!/mouse|pointer/.test(F.pointerType)||nA&Z.options.drag.mouseButtons))return R.action={name:"drag",axis:lA.lockAxis==="start"?lA.startAxis:lA.lockAxis},!1}},draggable:function(R){return d.object(R)?(this.options.drag.enabled=R.enabled!==!1,this.setPerAction("drag",R),this.setOnEvents("drag",R),/^(xy|x|y|start)$/.test(R.lockAxis)&&(this.options.drag.lockAxis=R.lockAxis),/^(xy|x|y)$/.test(R.startAxis)&&(this.options.drag.startAxis=R.startAxis),this):d.bool(R)?(this.options.drag.enabled=R,this):this.options.drag},beforeMove:l,move:g,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(R){return R.search("drag")===0}},h=s,C={init:function(R){var F=R;C.document=F.document,C.DocumentFragment=F.DocumentFragment||a,C.SVGElement=F.SVGElement||a,C.SVGSVGElement=F.SVGSVGElement||a,C.SVGElementInstance=F.SVGElementInstance||a,C.Element=F.Element||a,C.HTMLElement=F.HTMLElement||C.Element,C.Event=F.Event,C.Touch=F.Touch||a,C.PointerEvent=F.PointerEvent||F.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function a(){}var r=C,m={init:function(R){var F=r.Element,Z=R.navigator||{};m.supportsTouch="ontouchstart"in R||d.func(R.DocumentTouch)&&r.document instanceof R.DocumentTouch,m.supportsPointerEvent=Z.pointerEnabled!==!1&&!!r.PointerEvent,m.isIOS=/iP(hone|od|ad)/.test(Z.platform),m.isIOS7=/iP(hone|od|ad)/.test(Z.platform)&&/OS 7[^\d]/.test(Z.appVersion),m.isIe9=/MSIE 9/.test(Z.userAgent),m.isOperaMobile=Z.appName==="Opera"&&m.supportsTouch&&/Presto/.test(Z.userAgent),m.prefixedMatchesSelector="matches"in F.prototype?"matches":"webkitMatchesSelector"in F.prototype?"webkitMatchesSelector":"mozMatchesSelector"in F.prototype?"mozMatchesSelector":"oMatchesSelector"in F.prototype?"oMatchesSelector":"msMatchesSelector",m.pEventTypes=m.supportsPointerEvent?r.PointerEvent===R.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,m.wheelEvent=r.document&&"onmousewheel"in r.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},Q=m;function x(R,F){if(R.contains)return R.contains(F);for(;F;){if(F===R)return!0;F=F.parentNode}return!1}function S(R,F){for(;d.element(R);){if($(R,F))return R;R=T(R)}return null}function T(R){var F=R.parentNode;if(d.docFrag(F)){for(;(F=F.host)&&d.docFrag(F););return F}return F}function $(R,F){return L!==E&&(F=F.replace(/\/deep\//g," ")),R[Q.prefixedMatchesSelector](F)}var eA=function(R){return R.parentNode||R.host};function W(R,F){for(var Z,nA=[],lA=R;(Z=eA(lA))&&lA!==F&&Z!==lA.ownerDocument;)nA.unshift(lA),lA=Z;return nA}function J(R,F,Z){for(;d.element(R);){if($(R,F))return!0;if((R=T(R))===Z)return $(R,F)}return!1}function O(R){return R.correspondingUseElement||R}function q(R){var F=R instanceof r.SVGElement?R.getBoundingClientRect():R.getClientRects()[0];return F&&{left:F.left,right:F.right,top:F.top,bottom:F.bottom,width:F.width||F.right-F.left,height:F.height||F.bottom-F.top}}function k(R){var F,Z=q(R);if(!Q.isIOS7&&Z){var nA={x:(F=(F=v(R))||L).scrollX||F.document.documentElement.scrollLeft,y:F.scrollY||F.document.documentElement.scrollTop};Z.left+=nA.x,Z.right+=nA.x,Z.top+=nA.y,Z.bottom+=nA.y}return Z}function V(R){for(var F=[];R;)F.push(R),R=T(R);return F}function H(R){return!!d.string(R)&&(r.document.querySelector(R),!0)}function AA(R,F){for(var Z in F)R[Z]=F[Z];return R}function sA(R,F,Z){return R==="parent"?T(Z):R==="self"?F.getRect(Z):S(Z,R)}function oA(R,F,Z,nA){var lA=R;return d.string(lA)?lA=sA(lA,F,Z):d.func(lA)&&(lA=lA.apply(void 0,nA)),d.element(lA)&&(lA=k(lA)),lA}function dA(R){return R&&{x:"x"in R?R.x:R.left,y:"y"in R?R.y:R.top}}function EA(R){return!R||"x"in R&&"y"in R||((R=AA({},R)).x=R.left||0,R.y=R.top||0,R.width=R.width||(R.right||0)-R.x,R.height=R.height||(R.bottom||0)-R.y),R}function uA(R,F,Z){R.left&&(F.left+=Z.x),R.right&&(F.right+=Z.x),R.top&&(F.top+=Z.y),R.bottom&&(F.bottom+=Z.y),F.width=F.right-F.left,F.height=F.bottom-F.top}function BA(R,F,Z){var nA=Z&&R.options[Z];return dA(oA(nA&&nA.origin||R.options.origin,R,F,[R&&F]))||{x:0,y:0}}function j(R,F){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(yA){return!0},nA=arguments.length>3?arguments[3]:void 0;if(nA=nA||{},d.string(R)&&R.search(" ")!==-1&&(R=tA(R)),d.array(R))return R.forEach(function(yA){return j(yA,F,Z,nA)}),nA;if(d.object(R)&&(F=R,R=""),d.func(F)&&Z(R))nA[R]=nA[R]||[],nA[R].push(F);else if(d.array(F))for(var lA=0,hA=F;lA<hA.length;lA++){var mA=hA[lA];j(R,mA,Z,nA)}else if(d.object(F))for(var IA in F)j(tA(IA).map(function(yA){return"".concat(R).concat(yA)}),F[IA],Z,nA);return nA}function tA(R){return R.trim().split(/ +/)}var rA=function(R,F){return Math.sqrt(R*R+F*F)},gA=["webkit","moz"];function z(R,F){R.__set||(R.__set={});var Z=function(lA){if(gA.some(function(hA){return lA.indexOf(hA)===0}))return 1;typeof R[lA]!="function"&&lA!=="__set"&&Object.defineProperty(R,lA,{get:function(){return lA in R.__set?R.__set[lA]:R.__set[lA]=F[lA]},set:function(hA){R.__set[lA]=hA},configurable:!0})};for(var nA in F)Z(nA);return R}function X(R,F){R.page=R.page||{},R.page.x=F.page.x,R.page.y=F.page.y,R.client=R.client||{},R.client.x=F.client.x,R.client.y=F.client.y,R.timeStamp=F.timeStamp}function iA(R){R.page.x=0,R.page.y=0,R.client.x=0,R.client.y=0}function cA(R){return R instanceof r.Event||R instanceof r.Touch}function CA(R,F,Z){return R=R||"page",(Z=Z||{}).x=F[R+"X"],Z.y=F[R+"Y"],Z}function vA(R,F){return F=F||{x:0,y:0},Q.isOperaMobile&&cA(R)?(CA("screen",R,F),F.x+=window.scrollX,F.y+=window.scrollY):CA("page",R,F),F}function GA(R){return d.number(R.pointerId)?R.pointerId:R.identifier}function JA(R,F,Z){var nA=F.length>1?WA(F):F[0];vA(nA,R.page),function(lA,hA){hA=hA||{},Q.isOperaMobile&&cA(lA)?CA("screen",lA,hA):CA("client",lA,hA)}(nA,R.client),R.timeStamp=Z}function qA(R){var F=[];return d.array(R)?(F[0]=R[0],F[1]=R[1]):R.type==="touchend"?R.touches.length===1?(F[0]=R.touches[0],F[1]=R.changedTouches[0]):R.touches.length===0&&(F[0]=R.changedTouches[0],F[1]=R.changedTouches[1]):(F[0]=R.touches[0],F[1]=R.touches[1]),F}function WA(R){for(var F={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},Z=0;Z<R.length;Z++){var nA=R[Z];for(var lA in F)F[lA]+=nA[lA]}for(var hA in F)F[hA]/=R.length;return F}function ue(R){if(!R.length)return null;var F=qA(R),Z=Math.min(F[0].pageX,F[1].pageX),nA=Math.min(F[0].pageY,F[1].pageY),lA=Math.max(F[0].pageX,F[1].pageX),hA=Math.max(F[0].pageY,F[1].pageY);return{x:Z,y:nA,left:Z,top:nA,right:lA,bottom:hA,width:lA-Z,height:hA-nA}}function te(R,F){var Z=F+"X",nA=F+"Y",lA=qA(R),hA=lA[0][Z]-lA[1][Z],mA=lA[0][nA]-lA[1][nA];return rA(hA,mA)}function LA(R,F){var Z=F+"X",nA=F+"Y",lA=qA(R),hA=lA[1][Z]-lA[0][Z],mA=lA[1][nA]-lA[0][nA];return 180*Math.atan2(mA,hA)/Math.PI}function SA(R){return d.string(R.pointerType)?R.pointerType:d.number(R.pointerType)?[void 0,void 0,"touch","pen","mouse"][R.pointerType]:/touch/.test(R.type||"")||R instanceof r.Touch?"touch":"mouse"}function ZA(R){var F=d.func(R.composedPath)?R.composedPath():R.path;return[O(F?F[0]:R.target),O(R.currentTarget)]}var Be=function(){function R(F){I(this,R),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=F}return b(R,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),R}();Object.defineProperty(Be.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var De=function(R,F){for(var Z=0;Z<F.length;Z++){var nA=F[Z];R.push(nA)}return R},Se=function(R){return De([],R)},YA=function(R,F){for(var Z=0;Z<R.length;Z++)if(F(R[Z],Z,R))return Z;return-1},$A=function(R,F){return R[YA(R,F)]},XA=function(R){w(Z,R);var F=Y(Z);function Z(nA,lA,hA){var mA;I(this,Z),(mA=F.call(this,lA._interaction)).dropzone=void 0,mA.dragEvent=void 0,mA.relatedTarget=void 0,mA.draggable=void 0,mA.propagationStopped=!1,mA.immediatePropagationStopped=!1;var IA=hA==="dragleave"?nA.prev:nA.cur,yA=IA.element,xA=IA.dropzone;return mA.type=hA,mA.target=yA,mA.currentTarget=yA,mA.dropzone=xA,mA.dragEvent=lA,mA.relatedTarget=lA.target,mA.draggable=lA.interactable,mA.timeStamp=lA.timeStamp,mA}return b(Z,[{key:"reject",value:function(){var nA=this,lA=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&lA.cur.dropzone===this.dropzone&&lA.cur.element===this.target)if(lA.prev.dropzone=this.dropzone,lA.prev.element=this.target,lA.rejected=!0,lA.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var hA=lA.activeDrops,mA=YA(hA,function(yA){var xA=yA.dropzone,DA=yA.element;return xA===nA.dropzone&&DA===nA.target});lA.activeDrops.splice(mA,1);var IA=new Z(lA,this.dragEvent,"dropdeactivate");IA.dropzone=this.dropzone,IA.target=this.target,this.dropzone.fire(IA)}else this.dropzone.fire(new Z(lA,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),Z}(Be);function he(R,F){for(var Z=0,nA=R.slice();Z<nA.length;Z++){var lA=nA[Z],hA=lA.dropzone,mA=lA.element;F.dropzone=hA,F.target=mA,hA.fire(F),F.propagationStopped=F.immediatePropagationStopped=!1}}function ce(R,F){for(var Z=function(hA,mA){for(var IA=[],yA=0,xA=hA.interactables.list;yA<xA.length;yA++){var DA=xA[yA];if(DA.options.drop.enabled){var PA=DA.options.drop.accept;if(!(d.element(PA)&&PA!==mA||d.string(PA)&&!$(mA,PA)||d.func(PA)&&!PA({dropzone:DA,draggableElement:mA})))for(var jA=0,le=DA.getAllElements();jA<le.length;jA++){var ae=le[jA];ae!==mA&&IA.push({dropzone:DA,element:ae,rect:DA.getRect(ae)})}}}return IA}(R,F),nA=0;nA<Z.length;nA++){var lA=Z[nA];lA.rect=lA.dropzone.getRect(lA.element)}return Z}function Ee(R,F,Z){for(var nA=R.dropState,lA=R.interactable,hA=R.element,mA=[],IA=0,yA=nA.activeDrops;IA<yA.length;IA++){var xA=yA[IA],DA=xA.dropzone,PA=xA.element,jA=xA.rect,le=DA.dropCheck(F,Z,lA,hA,PA,jA);mA.push(le?PA:null)}var ae=function(de){for(var ye,Qe,kA,UA=[],HA=0;HA<de.length;HA++){var VA=de[HA],Ce=de[ye];if(VA&&HA!==ye)if(Ce){var He=eA(VA),Ke=eA(Ce);if(He!==VA.ownerDocument)if(Ke!==VA.ownerDocument)if(He!==Ke){UA=UA.length?UA:W(Ce);var Oe=void 0;if(Ce instanceof r.HTMLElement&&VA instanceof r.SVGElement&&!(VA instanceof r.SVGSVGElement)){if(VA===Ke)continue;Oe=VA.ownerSVGElement}else Oe=VA;for(var on=W(Oe,Ce.ownerDocument),zn=0;on[zn]&&on[zn]===UA[zn];)zn++;var Ut=[on[zn-1],on[zn],UA[zn]];if(Ut[0])for(var ri=Ut[0].lastChild;ri;){if(ri===Ut[1]){ye=HA,UA=on;break}if(ri===Ut[2])break;ri=ri.previousSibling}}else kA=Ce,(parseInt(v(Qe=VA).getComputedStyle(Qe).zIndex,10)||0)>=(parseInt(v(kA).getComputedStyle(kA).zIndex,10)||0)&&(ye=HA);else ye=HA}else ye=HA}return ye}(mA);return nA.activeDrops[ae]||null}function ke(R,F,Z){var nA=R.dropState,lA={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return Z.type==="dragstart"&&(lA.activate=new XA(nA,Z,"dropactivate"),lA.activate.target=null,lA.activate.dropzone=null),Z.type==="dragend"&&(lA.deactivate=new XA(nA,Z,"dropdeactivate"),lA.deactivate.target=null,lA.deactivate.dropzone=null),nA.rejected||(nA.cur.element!==nA.prev.element&&(nA.prev.dropzone&&(lA.leave=new XA(nA,Z,"dragleave"),Z.dragLeave=lA.leave.target=nA.prev.element,Z.prevDropzone=lA.leave.dropzone=nA.prev.dropzone),nA.cur.dropzone&&(lA.enter=new XA(nA,Z,"dragenter"),Z.dragEnter=nA.cur.element,Z.dropzone=nA.cur.dropzone)),Z.type==="dragend"&&nA.cur.dropzone&&(lA.drop=new XA(nA,Z,"drop"),Z.dropzone=nA.cur.dropzone,Z.relatedTarget=nA.cur.element),Z.type==="dragmove"&&nA.cur.dropzone&&(lA.move=new XA(nA,Z,"dropmove"),Z.dropzone=nA.cur.dropzone)),lA}function wA(R,F){var Z=R.dropState,nA=Z.activeDrops,lA=Z.cur,hA=Z.prev;F.leave&&hA.dropzone.fire(F.leave),F.enter&&lA.dropzone.fire(F.enter),F.move&&lA.dropzone.fire(F.move),F.drop&&lA.dropzone.fire(F.drop),F.deactivate&&he(nA,F.deactivate),Z.prev.dropzone=lA.dropzone,Z.prev.element=lA.element}function NA(R,F){var Z=R.interaction,nA=R.iEvent,lA=R.event;if(nA.type==="dragmove"||nA.type==="dragend"){var hA=Z.dropState;F.dynamicDrop&&(hA.activeDrops=ce(F,Z.element));var mA=nA,IA=Ee(Z,mA,lA);hA.rejected=hA.rejected&&!!IA&&IA.dropzone===hA.cur.dropzone&&IA.element===hA.cur.element,hA.cur.dropzone=IA&&IA.dropzone,hA.cur.element=IA&&IA.element,hA.events=ke(Z,0,mA)}}var KA={id:"actions/drop",install:function(R){var F=R.actions,Z=R.interactStatic,nA=R.Interactable,lA=R.defaults;R.usePlugin(h),nA.prototype.dropzone=function(hA){return function(mA,IA){if(d.object(IA)){if(mA.options.drop.enabled=IA.enabled!==!1,IA.listeners){var yA=j(IA.listeners),xA=Object.keys(yA).reduce(function(PA,jA){return PA[/^(enter|leave)/.test(jA)?"drag".concat(jA):/^(activate|deactivate|move)/.test(jA)?"drop".concat(jA):jA]=yA[jA],PA},{}),DA=mA.options.drop.listeners;DA&&mA.off(DA),mA.on(xA),mA.options.drop.listeners=xA}return d.func(IA.ondrop)&&mA.on("drop",IA.ondrop),d.func(IA.ondropactivate)&&mA.on("dropactivate",IA.ondropactivate),d.func(IA.ondropdeactivate)&&mA.on("dropdeactivate",IA.ondropdeactivate),d.func(IA.ondragenter)&&mA.on("dragenter",IA.ondragenter),d.func(IA.ondragleave)&&mA.on("dragleave",IA.ondragleave),d.func(IA.ondropmove)&&mA.on("dropmove",IA.ondropmove),/^(pointer|center)$/.test(IA.overlap)?mA.options.drop.overlap=IA.overlap:d.number(IA.overlap)&&(mA.options.drop.overlap=Math.max(Math.min(1,IA.overlap),0)),"accept"in IA&&(mA.options.drop.accept=IA.accept),"checker"in IA&&(mA.options.drop.checker=IA.checker),mA}return d.bool(IA)?(mA.options.drop.enabled=IA,mA):mA.options.drop}(this,hA)},nA.prototype.dropCheck=function(hA,mA,IA,yA,xA,DA){return function(PA,jA,le,ae,de,ye,Qe){var kA=!1;if(!(Qe=Qe||PA.getRect(ye)))return!!PA.options.drop.checker&&PA.options.drop.checker(jA,le,kA,PA,ye,ae,de);var UA=PA.options.drop.overlap;if(UA==="pointer"){var HA=BA(ae,de,"drag"),VA=vA(jA);VA.x+=HA.x,VA.y+=HA.y;var Ce=VA.x>Qe.left&&VA.x<Qe.right,He=VA.y>Qe.top&&VA.y<Qe.bottom;kA=Ce&&He}var Ke=ae.getRect(de);if(Ke&&UA==="center"){var Oe=Ke.left+Ke.width/2,on=Ke.top+Ke.height/2;kA=Oe>=Qe.left&&Oe<=Qe.right&&on>=Qe.top&&on<=Qe.bottom}return Ke&&d.number(UA)&&(kA=Math.max(0,Math.min(Qe.right,Ke.right)-Math.max(Qe.left,Ke.left))*Math.max(0,Math.min(Qe.bottom,Ke.bottom)-Math.max(Qe.top,Ke.top))/(Ke.width*Ke.height)>=UA),PA.options.drop.checker&&(kA=PA.options.drop.checker(jA,le,kA,PA,ye,ae,de)),kA}(this,hA,mA,IA,yA,xA,DA)},Z.dynamicDrop=function(hA){return d.bool(hA)?(R.dynamicDrop=hA,Z):R.dynamicDrop},AA(F.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),F.methodDict.drop="dropzone",R.dynamicDrop=!1,lA.actions.drop=KA.defaults},listeners:{"interactions:before-action-start":function(R){var F=R.interaction;F.prepared.name==="drag"&&(F.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(R,F){var Z=R.interaction,nA=(R.event,R.iEvent);if(Z.prepared.name==="drag"){var lA=Z.dropState;lA.activeDrops=[],lA.events={},lA.activeDrops=ce(F,Z.element),lA.events=ke(Z,0,nA),lA.events.activate&&(he(lA.activeDrops,lA.events.activate),F.fire("actions/drop:start",{interaction:Z,dragEvent:nA}))}},"interactions:action-move":NA,"interactions:after-action-move":function(R,F){var Z=R.interaction,nA=R.iEvent;if(Z.prepared.name==="drag"){var lA=Z.dropState;wA(Z,lA.events),F.fire("actions/drop:move",{interaction:Z,dragEvent:nA}),lA.events={}}},"interactions:action-end":function(R,F){if(R.interaction.prepared.name==="drag"){var Z=R.interaction,nA=R.iEvent;NA(R,F),wA(Z,Z.dropState.events),F.fire("actions/drop:end",{interaction:Z,dragEvent:nA})}},"interactions:stop":function(R){var F=R.interaction;if(F.prepared.name==="drag"){var Z=F.dropState;Z&&(Z.activeDrops=null,Z.events=null,Z.cur.dropzone=null,Z.cur.element=null,Z.prev.dropzone=null,Z.prev.element=null,Z.rejected=!1)}}},getActiveDrops:ce,getDrop:Ee,getDropEvents:ke,fireDropEvents:wA,filterEventType:function(R){return R.search("drag")===0||R.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},oe=KA;function be(R){var F=R.interaction,Z=R.iEvent,nA=R.phase;if(F.prepared.name==="gesture"){var lA=F.pointers.map(function(xA){return xA.pointer}),hA=nA==="start",mA=nA==="end",IA=F.interactable.options.deltaSource;if(Z.touches=[lA[0],lA[1]],hA)Z.distance=te(lA,IA),Z.box=ue(lA),Z.scale=1,Z.ds=0,Z.angle=LA(lA,IA),Z.da=0,F.gesture.startDistance=Z.distance,F.gesture.startAngle=Z.angle;else if(mA||F.pointers.length<2){var yA=F.prevEvent;Z.distance=yA.distance,Z.box=yA.box,Z.scale=yA.scale,Z.ds=0,Z.angle=yA.angle,Z.da=0}else Z.distance=te(lA,IA),Z.box=ue(lA),Z.scale=Z.distance/F.gesture.startDistance,Z.angle=LA(lA,IA),Z.ds=Z.scale-F.gesture.scale,Z.da=Z.angle-F.gesture.angle;F.gesture.distance=Z.distance,F.gesture.angle=Z.angle,d.number(Z.scale)&&Z.scale!==1/0&&!isNaN(Z.scale)&&(F.gesture.scale=Z.scale)}}var re={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(R){var F=R.actions,Z=R.Interactable,nA=R.defaults;Z.prototype.gesturable=function(lA){return d.object(lA)?(this.options.gesture.enabled=lA.enabled!==!1,this.setPerAction("gesture",lA),this.setOnEvents("gesture",lA),this):d.bool(lA)?(this.options.gesture.enabled=lA,this):this.options.gesture},F.map.gesture=re,F.methodDict.gesture="gesturable",nA.actions.gesture=re.defaults},listeners:{"interactions:action-start":be,"interactions:action-move":be,"interactions:action-end":be,"interactions:new":function(R){R.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(R){if(!(R.interaction.pointers.length<2)){var F=R.interactable.options.gesture;if(F&&F.enabled)return R.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(R){return R.search("gesture")===0}},ge=re;function Me(R,F,Z,nA,lA,hA,mA){if(!F)return!1;if(F===!0){var IA=d.number(hA.width)?hA.width:hA.right-hA.left,yA=d.number(hA.height)?hA.height:hA.bottom-hA.top;if(mA=Math.min(mA,Math.abs((R==="left"||R==="right"?IA:yA)/2)),IA<0&&(R==="left"?R="right":R==="right"&&(R="left")),yA<0&&(R==="top"?R="bottom":R==="bottom"&&(R="top")),R==="left"){var xA=IA>=0?hA.left:hA.right;return Z.x<xA+mA}if(R==="top"){var DA=yA>=0?hA.top:hA.bottom;return Z.y<DA+mA}if(R==="right")return Z.x>(IA>=0?hA.right:hA.left)-mA;if(R==="bottom")return Z.y>(yA>=0?hA.bottom:hA.top)-mA}return!!d.element(nA)&&(d.element(F)?F===nA:J(nA,F,lA))}function tt(R){var F=R.iEvent,Z=R.interaction;if(Z.prepared.name==="resize"&&Z.resizeAxes){var nA=F;Z.interactable.options.resize.square?(Z.resizeAxes==="y"?nA.delta.x=nA.delta.y:nA.delta.y=nA.delta.x,nA.axes="xy"):(nA.axes=Z.resizeAxes,Z.resizeAxes==="x"?nA.delta.y=0:Z.resizeAxes==="y"&&(nA.delta.x=0))}}var lt,MA,bA={id:"actions/resize",before:["actions/drag"],install:function(R){var F=R.actions,Z=R.browser,nA=R.Interactable,lA=R.defaults;bA.cursors=function(hA){return hA.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(Z),bA.defaultMargin=Z.supportsTouch||Z.supportsPointerEvent?20:10,nA.prototype.resizable=function(hA){return function(mA,IA,yA){return d.object(IA)?(mA.options.resize.enabled=IA.enabled!==!1,mA.setPerAction("resize",IA),mA.setOnEvents("resize",IA),d.string(IA.axis)&&/^x$|^y$|^xy$/.test(IA.axis)?mA.options.resize.axis=IA.axis:IA.axis===null&&(mA.options.resize.axis=yA.defaults.actions.resize.axis),d.bool(IA.preserveAspectRatio)?mA.options.resize.preserveAspectRatio=IA.preserveAspectRatio:d.bool(IA.square)&&(mA.options.resize.square=IA.square),mA):d.bool(IA)?(mA.options.resize.enabled=IA,mA):mA.options.resize}(this,hA,R)},F.map.resize=bA,F.methodDict.resize="resizable",lA.actions.resize=bA.defaults},listeners:{"interactions:new":function(R){R.interaction.resizeAxes="xy"},"interactions:action-start":function(R){(function(F){var Z=F.iEvent,nA=F.interaction;if(nA.prepared.name==="resize"&&nA.prepared.edges){var lA=Z,hA=nA.rect;nA._rects={start:AA({},hA),corrected:AA({},hA),previous:AA({},hA),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},lA.edges=nA.prepared.edges,lA.rect=nA._rects.corrected,lA.deltaRect=nA._rects.delta}})(R),tt(R)},"interactions:action-move":function(R){(function(F){var Z=F.iEvent,nA=F.interaction;if(nA.prepared.name==="resize"&&nA.prepared.edges){var lA=Z,hA=nA.interactable.options.resize.invert,mA=hA==="reposition"||hA==="negate",IA=nA.rect,yA=nA._rects,xA=yA.start,DA=yA.corrected,PA=yA.delta,jA=yA.previous;if(AA(jA,DA),mA){if(AA(DA,IA),hA==="reposition"){if(DA.top>DA.bottom){var le=DA.top;DA.top=DA.bottom,DA.bottom=le}if(DA.left>DA.right){var ae=DA.left;DA.left=DA.right,DA.right=ae}}}else DA.top=Math.min(IA.top,xA.bottom),DA.bottom=Math.max(IA.bottom,xA.top),DA.left=Math.min(IA.left,xA.right),DA.right=Math.max(IA.right,xA.left);for(var de in DA.width=DA.right-DA.left,DA.height=DA.bottom-DA.top,DA)PA[de]=DA[de]-jA[de];lA.edges=nA.prepared.edges,lA.rect=DA,lA.deltaRect=PA}})(R),tt(R)},"interactions:action-end":function(R){var F=R.iEvent,Z=R.interaction;if(Z.prepared.name==="resize"&&Z.prepared.edges){var nA=F;nA.edges=Z.prepared.edges,nA.rect=Z._rects.corrected,nA.deltaRect=Z._rects.delta}},"auto-start:check":function(R){var F=R.interaction,Z=R.interactable,nA=R.element,lA=R.rect,hA=R.buttons;if(lA){var mA=AA({},F.coords.cur.page),IA=Z.options.resize;if(IA&&IA.enabled&&(!F.pointerIsDown||!/mouse|pointer/.test(F.pointerType)||hA&IA.mouseButtons)){if(d.object(IA.edges)){var yA={left:!1,right:!1,top:!1,bottom:!1};for(var xA in yA)yA[xA]=Me(xA,IA.edges[xA],mA,F._latestPointer.eventTarget,nA,lA,IA.margin||bA.defaultMargin);yA.left=yA.left&&!yA.right,yA.top=yA.top&&!yA.bottom,(yA.left||yA.right||yA.top||yA.bottom)&&(R.action={name:"resize",edges:yA})}else{var DA=IA.axis!=="y"&&mA.x>lA.right-bA.defaultMargin,PA=IA.axis!=="x"&&mA.y>lA.bottom-bA.defaultMargin;(DA||PA)&&(R.action={name:"resize",axes:(DA?"x":"")+(PA?"y":"")})}return!R.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(R){var F=R.edges,Z=R.axis,nA=R.name,lA=bA.cursors,hA=null;if(Z)hA=lA[nA+Z];else if(F){for(var mA="",IA=0,yA=["top","bottom","left","right"];IA<yA.length;IA++){var xA=yA[IA];F[xA]&&(mA+=xA)}hA=lA[mA]}return hA},filterEventType:function(R){return R.search("resize")===0},defaultMargin:null},RA=bA,zA={id:"actions",install:function(R){R.usePlugin(ge),R.usePlugin(RA),R.usePlugin(h),R.usePlugin(oe)}},OA=0,fe={request:function(R){return lt(R)},cancel:function(R){return MA(R)},init:function(R){if(lt=R.requestAnimationFrame,MA=R.cancelAnimationFrame,!lt)for(var F=["ms","moz","webkit","o"],Z=0;Z<F.length;Z++){var nA=F[Z];lt=R["".concat(nA,"RequestAnimationFrame")],MA=R["".concat(nA,"CancelAnimationFrame")]||R["".concat(nA,"CancelRequestAnimationFrame")]}lt=lt&&lt.bind(R),MA=MA&&MA.bind(R),lt||(lt=function(lA){var hA=Date.now(),mA=Math.max(0,16-(hA-OA)),IA=R.setTimeout(function(){lA(hA+mA)},mA);return OA=hA+mA,IA},MA=function(lA){return clearTimeout(lA)})}},ne={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(R){ne.isScrolling=!0,fe.cancel(ne.i),R.autoScroll=ne,ne.interaction=R,ne.prevTime=ne.now(),ne.i=fe.request(ne.scroll)},stop:function(){ne.isScrolling=!1,ne.interaction&&(ne.interaction.autoScroll=null),fe.cancel(ne.i)},scroll:function(){var R=ne.interaction,F=R.interactable,Z=R.element,nA=R.prepared.name,lA=F.options[nA].autoScroll,hA=_e(lA.container,F,Z),mA=ne.now(),IA=(mA-ne.prevTime)/1e3,yA=lA.speed*IA;if(yA>=1){var xA={x:ne.x*yA,y:ne.y*yA};if(xA.x||xA.y){var DA=qe(hA);d.window(hA)?hA.scrollBy(xA.x,xA.y):hA&&(hA.scrollLeft+=xA.x,hA.scrollTop+=xA.y);var PA=qe(hA),jA={x:PA.x-DA.x,y:PA.y-DA.y};(jA.x||jA.y)&&F.fire({type:"autoscroll",target:Z,interactable:F,delta:jA,interaction:R,container:hA})}ne.prevTime=mA}ne.isScrolling&&(fe.cancel(ne.i),ne.i=fe.request(ne.scroll))},check:function(R,F){var Z;return(Z=R.options[F].autoScroll)==null?void 0:Z.enabled},onInteractionMove:function(R){var F=R.interaction,Z=R.pointer;if(F.interacting()&&ne.check(F.interactable,F.prepared.name))if(F.simulation)ne.x=ne.y=0;else{var nA,lA,hA,mA,IA=F.interactable,yA=F.element,xA=F.prepared.name,DA=IA.options[xA].autoScroll,PA=_e(DA.container,IA,yA);if(d.window(PA))mA=Z.clientX<ne.margin,nA=Z.clientY<ne.margin,lA=Z.clientX>PA.innerWidth-ne.margin,hA=Z.clientY>PA.innerHeight-ne.margin;else{var jA=q(PA);mA=Z.clientX<jA.left+ne.margin,nA=Z.clientY<jA.top+ne.margin,lA=Z.clientX>jA.right-ne.margin,hA=Z.clientY>jA.bottom-ne.margin}ne.x=lA?1:mA?-1:0,ne.y=hA?1:nA?-1:0,ne.isScrolling||(ne.margin=DA.margin,ne.speed=DA.speed,ne.start(F))}}};function _e(R,F,Z){return(d.string(R)?sA(R,F,Z):R)||v(Z)}function qe(R){return d.window(R)&&(R=window.document.body),{x:R.scrollLeft,y:R.scrollTop}}var pt={id:"auto-scroll",install:function(R){var F=R.defaults,Z=R.actions;R.autoScroll=ne,ne.now=function(){return R.now()},Z.phaselessTypes.autoscroll=!0,F.perAction.autoScroll=ne.defaults},listeners:{"interactions:new":function(R){R.interaction.autoScroll=null},"interactions:destroy":function(R){R.interaction.autoScroll=null,ne.stop(),ne.interaction&&(ne.interaction=null)},"interactions:stop":ne.stop,"interactions:action-move":function(R){return ne.onInteractionMove(R)}}},ze=pt;function At(R,F){var Z=!1;return function(){return Z||(L.console.warn(F),Z=!0),R.apply(this,arguments)}}function gt(R,F){return R.name=F.name,R.axis=F.axis,R.edges=F.edges,R}function Pe(R){return d.bool(R)?(this.options.styleCursor=R,this):R===null?(delete this.options.styleCursor,this):this.options.styleCursor}function ot(R){return d.func(R)?(this.options.actionChecker=R,this):R===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Et={id:"auto-start/interactableMethods",install:function(R){var F=R.Interactable;F.prototype.getAction=function(Z,nA,lA,hA){var mA=function(IA,yA,xA,DA,PA){var jA=IA.getRect(DA),le=yA.buttons||{0:1,1:4,3:8,4:16}[yA.button],ae={action:null,interactable:IA,interaction:xA,element:DA,rect:jA,buttons:le};return PA.fire("auto-start:check",ae),ae.action}(this,nA,lA,hA,R);return this.options.actionChecker?this.options.actionChecker(Z,nA,mA,this,hA,lA):mA},F.prototype.ignoreFrom=At(function(Z){return this._backCompatOption("ignoreFrom",Z)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),F.prototype.allowFrom=At(function(Z){return this._backCompatOption("allowFrom",Z)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),F.prototype.actionChecker=ot,F.prototype.styleCursor=Pe}};function nt(R,F,Z,nA,lA){return F.testIgnoreAllow(F.options[R.name],Z,nA)&&F.options[R.name].enabled&&gn(F,Z,R,lA)?R:null}function Nn(R,F,Z,nA,lA,hA,mA){for(var IA=0,yA=nA.length;IA<yA;IA++){var xA=nA[IA],DA=lA[IA],PA=xA.getAction(F,Z,R,DA);if(PA){var jA=nt(PA,xA,DA,hA,mA);if(jA)return{action:jA,interactable:xA,element:DA}}}return{action:null,interactable:null,element:null}}function Xt(R,F,Z,nA,lA){var hA=[],mA=[],IA=nA;function yA(DA){hA.push(DA),mA.push(IA)}for(;d.element(IA);){hA=[],mA=[],lA.interactables.forEachMatch(IA,yA);var xA=Nn(R,F,Z,hA,mA,nA,lA);if(xA.action&&!xA.interactable.options[xA.action.name].manualStart)return xA;IA=T(IA)}return{action:null,interactable:null,element:null}}function Vt(R,F,Z){var nA=F.action,lA=F.interactable,hA=F.element;nA=nA||{name:null},R.interactable=lA,R.element=hA,gt(R.prepared,nA),R.rect=lA&&nA.name?lA.getRect(hA):null,An(R,Z),Z.fire("autoStart:prepared",{interaction:R})}function gn(R,F,Z,nA){var lA=R.options,hA=lA[Z.name].max,mA=lA[Z.name].maxPerElement,IA=nA.autoStart.maxInteractions,yA=0,xA=0,DA=0;if(!(hA&&mA&&IA))return!1;for(var PA=0,jA=nA.interactions.list;PA<jA.length;PA++){var le=jA[PA],ae=le.prepared.name;if(le.interacting()&&(++yA>=IA||le.interactable===R&&((xA+=ae===Z.name?1:0)>=hA||le.element===F&&(DA++,ae===Z.name&&DA>=mA))))return!1}return IA>0}function wn(R,F){return d.number(R)?(F.autoStart.maxInteractions=R,this):F.autoStart.maxInteractions}function St(R,F,Z){var nA=Z.autoStart.cursorElement;nA&&nA!==R&&(nA.style.cursor=""),R.ownerDocument.documentElement.style.cursor=F,R.style.cursor=F,Z.autoStart.cursorElement=F?R:null}function An(R,F){var Z=R.interactable,nA=R.element,lA=R.prepared;if(R.pointerType==="mouse"&&Z&&Z.options.styleCursor){var hA="";if(lA.name){var mA=Z.options[lA.name].cursorChecker;hA=d.func(mA)?mA(lA,Z,nA,R._interacting):F.actions.map[lA.name].getCursor(lA)}St(R.element,hA||"",F)}else F.autoStart.cursorElement&&St(F.autoStart.cursorElement,"",F)}var On={id:"auto-start/base",before:["actions"],install:function(R){var F=R.interactStatic,Z=R.defaults;R.usePlugin(Et),Z.base.actionChecker=null,Z.base.styleCursor=!0,AA(Z.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),F.maxInteractions=function(nA){return wn(nA,R)},R.autoStart={maxInteractions:1/0,withinInteractionLimit:gn,cursorElement:null}},listeners:{"interactions:down":function(R,F){var Z=R.interaction,nA=R.pointer,lA=R.event,hA=R.eventTarget;Z.interacting()||Vt(Z,Xt(Z,nA,lA,hA,F),F)},"interactions:move":function(R,F){(function(Z,nA){var lA=Z.interaction,hA=Z.pointer,mA=Z.event,IA=Z.eventTarget;lA.pointerType!=="mouse"||lA.pointerIsDown||lA.interacting()||Vt(lA,Xt(lA,hA,mA,IA,nA),nA)})(R,F),function(Z,nA){var lA=Z.interaction;if(lA.pointerIsDown&&!lA.interacting()&&lA.pointerWasMoved&&lA.prepared.name){nA.fire("autoStart:before-start",Z);var hA=lA.interactable,mA=lA.prepared.name;mA&&hA&&(hA.options[mA].manualStart||!gn(hA,lA.element,lA.prepared,nA)?lA.stop():(lA.start(lA.prepared,hA,lA.element),An(lA,nA)))}}(R,F)},"interactions:stop":function(R,F){var Z=R.interaction,nA=Z.interactable;nA&&nA.options.styleCursor&&St(Z.element,"",F)}},maxInteractions:wn,withinInteractionLimit:gn,validateAction:nt},en=On,Ci={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(R,F){var Z=R.interaction,nA=R.eventTarget,lA=R.dx,hA=R.dy;if(Z.prepared.name==="drag"){var mA=Math.abs(lA),IA=Math.abs(hA),yA=Z.interactable.options.drag,xA=yA.startAxis,DA=mA>IA?"x":mA<IA?"y":"xy";if(Z.prepared.axis=yA.lockAxis==="start"?DA[0]:yA.lockAxis,DA!=="xy"&&xA!=="xy"&&xA!==DA){Z.prepared.name=null;for(var PA=nA,jA=function(ae){if(ae!==Z.interactable){var de=Z.interactable.options.drag;if(!de.manualStart&&ae.testIgnoreAllow(de,PA,nA)){var ye=ae.getAction(Z.downPointer,Z.downEvent,Z,PA);if(ye&&ye.name==="drag"&&function(Qe,kA){if(!kA)return!1;var UA=kA.options.drag.startAxis;return Qe==="xy"||UA==="xy"||UA===Qe}(DA,ae)&&en.validateAction(ye,ae,PA,nA,F))return ae}}};d.element(PA);){var le=F.interactables.forEachMatch(PA,jA);if(le){Z.prepared.name="drag",Z.interactable=le,Z.element=PA;break}PA=T(PA)}}}}}};function Bi(R){var F=R.prepared&&R.prepared.name;if(!F)return null;var Z=R.interactable.options;return Z[F].hold||Z[F].delay}var co={id:"auto-start/hold",install:function(R){var F=R.defaults;R.usePlugin(en),F.perAction.hold=0,F.perAction.delay=0},listeners:{"interactions:new":function(R){R.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(R){var F=R.interaction,Z=Bi(F);Z>0&&(F.autoStartHoldTimer=setTimeout(function(){F.start(F.prepared,F.interactable,F.element)},Z))},"interactions:move":function(R){var F=R.interaction,Z=R.duplicate;F.autoStartHoldTimer&&F.pointerWasMoved&&!Z&&(clearTimeout(F.autoStartHoldTimer),F.autoStartHoldTimer=null)},"autoStart:before-start":function(R){var F=R.interaction;Bi(F)>0&&(F.prepared.name=null)}},getHoldDuration:Bi},mi=co,ti={id:"auto-start",install:function(R){R.usePlugin(en),R.usePlugin(mi),R.usePlugin(Ci)}},Pi=function(R){return/^(always|never|auto)$/.test(R)?(this.options.preventDefault=R,this):d.bool(R)?(this.options.preventDefault=R?"always":"never",this):this.options.preventDefault};function go(R){var F=R.interaction,Z=R.event;F.interactable&&F.interactable.checkAndPreventDefault(Z)}var ni={id:"core/interactablePreventDefault",install:function(R){var F=R.Interactable;F.prototype.preventDefault=Pi,F.prototype.checkAndPreventDefault=function(Z){return function(nA,lA,hA){var mA=nA.options.preventDefault;if(mA!=="never")if(mA!=="always"){if(lA.events.supportsPassive&&/^touch(start|move)$/.test(hA.type)){var IA=v(hA.target).document,yA=lA.getDocOptions(IA);if(!yA||!yA.events||yA.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(hA.type)||d.element(hA.target)&&$(hA.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||hA.preventDefault()}else hA.preventDefault()}(this,R,Z)},R.interactions.docEvents.push({type:"dragstart",listener:function(Z){for(var nA=0,lA=R.interactions.list;nA<lA.length;nA++){var hA=lA[nA];if(hA.element&&(hA.element===Z.target||x(hA.element,Z.target)))return void hA.interactable.checkAndPreventDefault(Z)}}})},listeners:["down","move","up","cancel"].reduce(function(R,F){return R["interactions:".concat(F)]=go,R},{})};function bn(R,F){if(F.phaselessTypes[R])return!0;for(var Z in F.map)if(R.indexOf(Z)===0&&R.substr(Z.length)in F.phases)return!0;return!1}function Hi(R){var F={};for(var Z in R){var nA=R[Z];d.plainObject(nA)?F[Z]=Hi(nA):d.array(nA)?F[Z]=Se(nA):F[Z]=nA}return F}var Jo=function(){function R(F){I(this,R),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=F,this.result=uo(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return b(R,[{key:"start",value:function(F,Z){var nA,lA,hA=F.phase,mA=this.interaction,IA=function(xA){var DA=xA.interactable.options[xA.prepared.name],PA=DA.modifiers;return PA&&PA.length?PA:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(jA){var le=DA[jA];return le&&le.enabled&&{options:le,methods:le._methods}}).filter(function(jA){return!!jA})}(mA);this.prepareStates(IA),this.startEdges=AA({},mA.edges),this.edges=AA({},this.startEdges),this.startOffset=(nA=mA.rect,lA=Z,nA?{left:lA.x-nA.left,top:lA.y-nA.top,right:nA.right-lA.x,bottom:nA.bottom-lA.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var yA=this.fillArg({phase:hA,pageCoords:Z,preEnd:!1});return this.result=uo(),this.startAll(yA),this.result=this.setAll(yA)}},{key:"fillArg",value:function(F){var Z=this.interaction;return F.interaction=Z,F.interactable=Z.interactable,F.element=Z.element,F.rect||(F.rect=Z.rect),F.edges||(F.edges=this.startEdges),F.startOffset=this.startOffset,F}},{key:"startAll",value:function(F){for(var Z=0,nA=this.states;Z<nA.length;Z++){var lA=nA[Z];lA.methods.start&&(F.state=lA,lA.methods.start(F))}}},{key:"setAll",value:function(F){var Z=F.phase,nA=F.preEnd,lA=F.skipModifiers,hA=F.rect,mA=F.edges;F.coords=AA({},F.pageCoords),F.rect=AA({},hA),F.edges=AA({},mA);for(var IA=lA?this.states.slice(lA):this.states,yA=uo(F.coords,F.rect),xA=0;xA<IA.length;xA++){var DA,PA=IA[xA],jA=PA.options,le=AA({},F.coords),ae=null;(DA=PA.methods)!=null&&DA.set&&this.shouldDo(jA,nA,Z)&&(F.state=PA,ae=PA.methods.set(F),uA(F.edges,F.rect,{x:F.coords.x-le.x,y:F.coords.y-le.y})),yA.eventProps.push(ae)}AA(this.edges,F.edges),yA.delta.x=F.coords.x-F.pageCoords.x,yA.delta.y=F.coords.y-F.pageCoords.y,yA.rectDelta.left=F.rect.left-hA.left,yA.rectDelta.right=F.rect.right-hA.right,yA.rectDelta.top=F.rect.top-hA.top,yA.rectDelta.bottom=F.rect.bottom-hA.bottom;var de=this.result.coords,ye=this.result.rect;if(de&&ye){var Qe=yA.rect.left!==ye.left||yA.rect.right!==ye.right||yA.rect.top!==ye.top||yA.rect.bottom!==ye.bottom;yA.changed=Qe||de.x!==yA.coords.x||de.y!==yA.coords.y}return yA}},{key:"applyToInteraction",value:function(F){var Z=this.interaction,nA=F.phase,lA=Z.coords.cur,hA=Z.coords.start,mA=this.result,IA=this.startDelta,yA=mA.delta;nA==="start"&&AA(this.startDelta,mA.delta);for(var xA=0,DA=[[hA,IA],[lA,yA]];xA<DA.length;xA++){var PA=DA[xA],jA=PA[0],le=PA[1];jA.page.x+=le.x,jA.page.y+=le.y,jA.client.x+=le.x,jA.client.y+=le.y}var ae=this.result.rectDelta,de=F.rect||Z.rect;de.left+=ae.left,de.right+=ae.right,de.top+=ae.top,de.bottom+=ae.bottom,de.width=de.right-de.left,de.height=de.bottom-de.top}},{key:"setAndApply",value:function(F){var Z=this.interaction,nA=F.phase,lA=F.preEnd,hA=F.skipModifiers,mA=this.setAll(this.fillArg({preEnd:lA,phase:nA,pageCoords:F.modifiedCoords||Z.coords.cur.page}));if(this.result=mA,!mA.changed&&(!hA||hA<this.states.length)&&Z.interacting())return!1;if(F.modifiedCoords){var IA=Z.coords.cur.page,yA={x:F.modifiedCoords.x-IA.x,y:F.modifiedCoords.y-IA.y};mA.coords.x+=yA.x,mA.coords.y+=yA.y,mA.delta.x+=yA.x,mA.delta.y+=yA.y}this.applyToInteraction(F)}},{key:"beforeEnd",value:function(F){var Z=F.interaction,nA=F.event,lA=this.states;if(lA&&lA.length){for(var hA=!1,mA=0;mA<lA.length;mA++){var IA=lA[mA];F.state=IA;var yA=IA.options,xA=IA.methods,DA=xA.beforeEnd&&xA.beforeEnd(F);if(DA)return this.endResult=DA,!1;hA=hA||!hA&&this.shouldDo(yA,!0,F.phase,!0)}hA&&Z.move({event:nA,preEnd:!0})}}},{key:"stop",value:function(F){var Z=F.interaction;if(this.states&&this.states.length){var nA=AA({states:this.states,interactable:Z.interactable,element:Z.element,rect:null},F);this.fillArg(nA);for(var lA=0,hA=this.states;lA<hA.length;lA++){var mA=hA[lA];nA.state=mA,mA.methods.stop&&mA.methods.stop(nA)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(F){this.states=[];for(var Z=0;Z<F.length;Z++){var nA=F[Z],lA=nA.options,hA=nA.methods,mA=nA.name;this.states.push({options:lA,methods:hA,index:Z,name:mA})}return this.states}},{key:"restoreInteractionCoords",value:function(F){var Z=F.interaction,nA=Z.coords,lA=Z.rect,hA=Z.modification;if(hA.result){for(var mA=hA.startDelta,IA=hA.result,yA=IA.delta,xA=IA.rectDelta,DA=0,PA=[[nA.start,mA],[nA.cur,yA]];DA<PA.length;DA++){var jA=PA[DA],le=jA[0],ae=jA[1];le.page.x-=ae.x,le.page.y-=ae.y,le.client.x-=ae.x,le.client.y-=ae.y}lA.left-=xA.left,lA.right-=xA.right,lA.top-=xA.top,lA.bottom-=xA.bottom}}},{key:"shouldDo",value:function(F,Z,nA,lA){return!(!F||F.enabled===!1||lA&&!F.endOnly||F.endOnly&&!Z||nA==="start"&&!F.setStart)}},{key:"copyFrom",value:function(F){this.startOffset=F.startOffset,this.startDelta=F.startDelta,this.startEdges=F.startEdges,this.edges=F.edges,this.states=F.states.map(function(Z){return Hi(Z)}),this.result=uo(AA({},F.result.coords),AA({},F.result.rect))}},{key:"destroy",value:function(){for(var F in this)this[F]=null}}]),R}();function uo(R,F){return{rect:F,coords:R,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Fn(R,F){var Z=R.defaults,nA={start:R.start,set:R.set,beforeEnd:R.beforeEnd,stop:R.stop},lA=function(hA){var mA=hA||{};for(var IA in mA.enabled=mA.enabled!==!1,Z)IA in mA||(mA[IA]=Z[IA]);var yA={options:mA,methods:nA,name:F,enable:function(){return mA.enabled=!0,yA},disable:function(){return mA.enabled=!1,yA}};return yA};return F&&typeof F=="string"&&(lA._defaults=Z,lA._methods=nA),lA}function ho(R){var F=R.iEvent,Z=R.interaction.modification.result;Z&&(F.modifiers=Z.eventProps)}var bs={id:"modifiers/base",before:["actions"],install:function(R){R.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(R){var F=R.interaction;F.modification=new Jo(F)},"interactions:before-action-start":function(R){var F=R.interaction,Z=R.interaction.modification;Z.start(R,F.coords.start.page),F.edges=Z.edges,Z.applyToInteraction(R)},"interactions:before-action-move":function(R){var F=R.interaction,Z=F.modification,nA=Z.setAndApply(R);return F.edges=Z.edges,nA},"interactions:before-action-end":function(R){var F=R.interaction,Z=F.modification,nA=Z.beforeEnd(R);return F.edges=Z.startEdges,nA},"interactions:action-start":ho,"interactions:action-move":ho,"interactions:action-end":ho,"interactions:after-action-start":function(R){return R.interaction.modification.restoreInteractionCoords(R)},"interactions:after-action-move":function(R){return R.interaction.modification.restoreInteractionCoords(R)},"interactions:stop":function(R){return R.interaction.modification.stop(R)}}},Zo=bs,Wo={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},ii=function(R){w(Z,R);var F=Y(Z);function Z(nA,lA,hA,mA,IA,yA,xA){var DA;I(this,Z),(DA=F.call(this,nA)).relatedTarget=null,DA.screenX=void 0,DA.screenY=void 0,DA.button=void 0,DA.buttons=void 0,DA.ctrlKey=void 0,DA.shiftKey=void 0,DA.altKey=void 0,DA.metaKey=void 0,DA.page=void 0,DA.client=void 0,DA.delta=void 0,DA.rect=void 0,DA.x0=void 0,DA.y0=void 0,DA.t0=void 0,DA.dt=void 0,DA.duration=void 0,DA.clientX0=void 0,DA.clientY0=void 0,DA.velocity=void 0,DA.speed=void 0,DA.swipe=void 0,DA.axes=void 0,DA.preEnd=void 0,IA=IA||nA.element;var PA=nA.interactable,jA=(PA&&PA.options||Wo).deltaSource,le=BA(PA,IA,hA),ae=mA==="start",de=mA==="end",ye=ae?P(DA):nA.prevEvent,Qe=ae?nA.coords.start:de?{page:ye.page,client:ye.client,timeStamp:nA.coords.cur.timeStamp}:nA.coords.cur;return DA.page=AA({},Qe.page),DA.client=AA({},Qe.client),DA.rect=AA({},nA.rect),DA.timeStamp=Qe.timeStamp,de||(DA.page.x-=le.x,DA.page.y-=le.y,DA.client.x-=le.x,DA.client.y-=le.y),DA.ctrlKey=lA.ctrlKey,DA.altKey=lA.altKey,DA.shiftKey=lA.shiftKey,DA.metaKey=lA.metaKey,DA.button=lA.button,DA.buttons=lA.buttons,DA.target=IA,DA.currentTarget=IA,DA.preEnd=yA,DA.type=xA||hA+(mA||""),DA.interactable=PA,DA.t0=ae?nA.pointers[nA.pointers.length-1].downTime:ye.t0,DA.x0=nA.coords.start.page.x-le.x,DA.y0=nA.coords.start.page.y-le.y,DA.clientX0=nA.coords.start.client.x-le.x,DA.clientY0=nA.coords.start.client.y-le.y,DA.delta=ae||de?{x:0,y:0}:{x:DA[jA].x-ye[jA].x,y:DA[jA].y-ye[jA].y},DA.dt=nA.coords.delta.timeStamp,DA.duration=DA.timeStamp-DA.t0,DA.velocity=AA({},nA.coords.velocity[jA]),DA.speed=rA(DA.velocity.x,DA.velocity.y),DA.swipe=de||mA==="inertiastart"?DA.getSwipe():null,DA}return b(Z,[{key:"getSwipe",value:function(){var nA=this._interaction;if(nA.prevEvent.speed<600||this.timeStamp-nA.prevEvent.timeStamp>150)return null;var lA=180*Math.atan2(nA.prevEvent.velocityY,nA.prevEvent.velocityX)/Math.PI;lA<0&&(lA+=360);var hA=112.5<=lA&&lA<247.5,mA=202.5<=lA&&lA<337.5;return{up:mA,down:!mA&&22.5<=lA&&lA<157.5,left:hA,right:!hA&&(292.5<=lA||lA<67.5),angle:lA,speed:nA.prevEvent.speed,velocity:{x:nA.prevEvent.velocityX,y:nA.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),Z}(Be);Object.defineProperties(ii.prototype,{pageX:{get:function(){return this.page.x},set:function(R){this.page.x=R}},pageY:{get:function(){return this.page.y},set:function(R){this.page.y=R}},clientX:{get:function(){return this.client.x},set:function(R){this.client.x=R}},clientY:{get:function(){return this.client.y},set:function(R){this.client.y=R}},dx:{get:function(){return this.delta.x},set:function(R){this.delta.x=R}},dy:{get:function(){return this.delta.y},set:function(R){this.delta.y=R}},velocityX:{get:function(){return this.velocity.x},set:function(R){this.velocity.x=R}},velocityY:{get:function(){return this.velocity.y},set:function(R){this.velocity.y=R}}});var ys=b(function R(F,Z,nA,lA,hA){I(this,R),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=F,this.pointer=Z,this.event=nA,this.downTime=lA,this.downTarget=hA}),Ds=function(R){return R.interactable="",R.element="",R.prepared="",R.pointerIsDown="",R.pointerWasMoved="",R._proxy="",R}({}),vs=function(R){return R.start="",R.move="",R.end="",R.stop="",R.interacting="",R}({}),ks=0,_s=function(){function R(F){var Z=this,nA=F.pointerType,lA=F.scopeFire;I(this,R),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=At(function(DA){this.move(DA)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=ks++,this._scopeFire=lA,this.pointerType=nA;var hA=this;this._proxy={};var mA=function(DA){Object.defineProperty(Z._proxy,DA,{get:function(){return hA[DA]}})};for(var IA in Ds)mA(IA);var yA=function(DA){Object.defineProperty(Z._proxy,DA,{value:function(){return hA[DA].apply(hA,arguments)}})};for(var xA in vs)yA(xA);this._scopeFire("interactions:new",{interaction:this})}return b(R,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(F,Z,nA){var lA=this.updatePointer(F,Z,nA,!0),hA=this.pointers[lA];this._scopeFire("interactions:down",{pointer:F,event:Z,eventTarget:nA,pointerIndex:lA,pointerInfo:hA,type:"down",interaction:this})}},{key:"start",value:function(F,Z,nA){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(F.name==="gesture"?2:1)||!Z.options[F.name].enabled)&&(gt(this.prepared,F),this.interactable=Z,this.element=nA,this.rect=Z.getRect(nA),this.edges=this.prepared.edges?AA({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(F,Z,nA){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(F,Z,nA,!1);var lA,hA,mA=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(lA=this.coords.cur.client.x-this.coords.start.client.x,hA=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=rA(lA,hA)>this.pointerMoveTolerance);var IA,yA,xA,DA=this.getPointerIndex(F),PA={pointer:F,pointerIndex:DA,pointerInfo:this.pointers[DA],event:Z,type:"move",eventTarget:nA,dx:lA,dy:hA,duplicate:mA,interaction:this};mA||(IA=this.coords.velocity,yA=this.coords.delta,xA=Math.max(yA.timeStamp/1e3,.001),IA.page.x=yA.page.x/xA,IA.page.y=yA.page.y/xA,IA.client.x=yA.client.x/xA,IA.client.y=yA.client.y/xA,IA.timeStamp=xA),this._scopeFire("interactions:move",PA),mA||this.simulation||(this.interacting()&&(PA.type=null,this.move(PA)),this.pointerWasMoved&&X(this.coords.prev,this.coords.cur))}},{key:"move",value:function(F){F&&F.event||iA(this.coords.delta),(F=AA({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},F||{})).phase="move",this._doPhase(F)}},{key:"pointerUp",value:function(F,Z,nA,lA){var hA=this.getPointerIndex(F);hA===-1&&(hA=this.updatePointer(F,Z,nA,!1));var mA=/cancel$/i.test(Z.type)?"cancel":"up";this._scopeFire("interactions:".concat(mA),{pointer:F,pointerIndex:hA,pointerInfo:this.pointers[hA],event:Z,eventTarget:nA,type:mA,curEventTarget:lA,interaction:this}),this.simulation||this.end(Z),this.removePointer(F,Z)}},{key:"documentBlur",value:function(F){this.end(F),this._scopeFire("interactions:blur",{event:F,type:"blur",interaction:this})}},{key:"end",value:function(F){var Z;this._ending=!0,F=F||this._latestPointer.event,this.interacting()&&(Z=this._doPhase({event:F,interaction:this,phase:"end"})),this._ending=!1,Z===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(F){var Z=GA(F);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:YA(this.pointers,function(nA){return nA.id===Z})}},{key:"getPointerInfo",value:function(F){return this.pointers[this.getPointerIndex(F)]}},{key:"updatePointer",value:function(F,Z,nA,lA){var hA,mA,IA,yA=GA(F),xA=this.getPointerIndex(F),DA=this.pointers[xA];return lA=lA!==!1&&(lA||/(down|start)$/i.test(Z.type)),DA?DA.pointer=F:(DA=new ys(yA,F,Z,null,null),xA=this.pointers.length,this.pointers.push(DA)),JA(this.coords.cur,this.pointers.map(function(PA){return PA.pointer}),this._now()),hA=this.coords.delta,mA=this.coords.prev,IA=this.coords.cur,hA.page.x=IA.page.x-mA.page.x,hA.page.y=IA.page.y-mA.page.y,hA.client.x=IA.client.x-mA.client.x,hA.client.y=IA.client.y-mA.client.y,hA.timeStamp=IA.timeStamp-mA.timeStamp,lA&&(this.pointerIsDown=!0,DA.downTime=this.coords.cur.timeStamp,DA.downTarget=nA,z(this.downPointer,F),this.interacting()||(X(this.coords.start,this.coords.cur),X(this.coords.prev,this.coords.cur),this.downEvent=Z,this.pointerWasMoved=!1)),this._updateLatestPointer(F,Z,nA),this._scopeFire("interactions:update-pointer",{pointer:F,event:Z,eventTarget:nA,down:lA,pointerInfo:DA,pointerIndex:xA,interaction:this}),xA}},{key:"removePointer",value:function(F,Z){var nA=this.getPointerIndex(F);if(nA!==-1){var lA=this.pointers[nA];this._scopeFire("interactions:remove-pointer",{pointer:F,event:Z,eventTarget:null,pointerIndex:nA,pointerInfo:lA,interaction:this}),this.pointers.splice(nA,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(F,Z,nA){this._latestPointer.pointer=F,this._latestPointer.event=Z,this._latestPointer.eventTarget=nA}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(F,Z,nA,lA){return new ii(this,F,this.prepared.name,Z,this.element,nA,lA)}},{key:"_fireEvent",value:function(F){var Z;(Z=this.interactable)==null||Z.fire(F),(!this.prevEvent||F.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=F)}},{key:"_doPhase",value:function(F){var Z=F.event,nA=F.phase,lA=F.preEnd,hA=F.type,mA=this.rect;if(mA&&nA==="move"&&(uA(this.edges,mA,this.coords.delta[this.interactable.options.deltaSource]),mA.width=mA.right-mA.left,mA.height=mA.bottom-mA.top),this._scopeFire("interactions:before-action-".concat(nA),F)===!1)return!1;var IA=F.iEvent=this._createPreparedEvent(Z,nA,lA,hA);return this._scopeFire("interactions:action-".concat(nA),F),nA==="start"&&(this.prevEvent=IA),this._fireEvent(IA),this._scopeFire("interactions:after-action-".concat(nA),F),!0}},{key:"_now",value:function(){return Date.now()}}]),R}();function Or(R){$r(R.interaction)}function $r(R){if(!function(Z){return!(!Z.offset.pending.x&&!Z.offset.pending.y)}(R))return!1;var F=R.offset.pending;return zr(R.coords.cur,F),zr(R.coords.delta,F),uA(R.edges,R.rect,F),F.x=0,F.y=0,!0}function sg(R){var F=R.x,Z=R.y;this.offset.pending.x+=F,this.offset.pending.y+=Z,this.offset.total.x+=F,this.offset.total.y+=Z}function zr(R,F){var Z=R.page,nA=R.client,lA=F.x,hA=F.y;Z.x+=lA,Z.y+=hA,nA.x+=lA,nA.y+=hA}vs.offsetBy="";var lg={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(R){R.Interaction.prototype.offsetBy=sg},listeners:{"interactions:new":function(R){R.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(R){return function(F){F.pointerIsDown&&(zr(F.coords.cur,F.offset.total),F.offset.pending.x=0,F.offset.pending.y=0)}(R.interaction)},"interactions:before-action-start":Or,"interactions:before-action-move":Or,"interactions:before-action-end":function(R){var F=R.interaction;if($r(F))return F.move({offset:!0}),F.end(),!1},"interactions:stop":function(R){var F=R.interaction;F.offset.total.x=0,F.offset.total.y=0,F.offset.pending.x=0,F.offset.pending.y=0}}},Jr=lg,cg=function(){function R(F){I(this,R),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=F}return b(R,[{key:"start",value:function(F){var Z=this.interaction,nA=jo(Z);if(!nA||!nA.enabled)return!1;var lA=Z.coords.velocity.client,hA=rA(lA.x,lA.y),mA=this.modification||(this.modification=new Jo(Z));if(mA.copyFrom(Z.modification),this.t0=Z._now(),this.allowResume=nA.allowResume,this.v0=hA,this.currentOffset={x:0,y:0},this.startCoords=Z.coords.cur.page,this.modifierArg=mA.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-Z.coords.cur.timeStamp<50&&hA>nA.minSpeed&&hA>nA.endSpeed)this.startInertia();else{if(mA.result=mA.setAll(this.modifierArg),!mA.result.changed)return!1;this.startSmoothEnd()}return Z.modification.result.rect=null,Z.offsetBy(this.targetOffset),Z._doPhase({interaction:Z,event:F,phase:"inertiastart"}),Z.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),Z.modification.result.rect=null,this.active=!0,Z.simulation=this,!0}},{key:"startInertia",value:function(){var F=this,Z=this.interaction.coords.velocity.client,nA=jo(this.interaction),lA=nA.resistance,hA=-Math.log(nA.endSpeed/this.v0)/lA;this.targetOffset={x:(Z.x-hA)/lA,y:(Z.y-hA)/lA},this.te=hA,this.lambda_v0=lA/this.v0,this.one_ve_v0=1-nA.endSpeed/this.v0;var mA=this.modification,IA=this.modifierArg;IA.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},mA.result=mA.setAll(IA),mA.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+mA.result.delta.x,y:this.targetOffset.y+mA.result.delta.y}),this.onNextFrame(function(){return F.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var F=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return F.smoothEndTick()})}},{key:"onNextFrame",value:function(F){var Z=this;this.timeout=fe.request(function(){Z.active&&F()})}},{key:"inertiaTick",value:function(){var F,Z,nA,lA,hA,mA,IA,yA=this,xA=this.interaction,DA=jo(xA).resistance,PA=(xA._now()-this.t0)/1e3;if(PA<this.te){var jA,le=1-(Math.exp(-DA*PA)-this.lambda_v0)/this.one_ve_v0;this.isModified?(F=0,Z=0,nA=this.targetOffset.x,lA=this.targetOffset.y,hA=this.modifiedOffset.x,mA=this.modifiedOffset.y,jA={x:Ms(IA=le,F,nA,hA),y:Ms(IA,Z,lA,mA)}):jA={x:this.targetOffset.x*le,y:this.targetOffset.y*le};var ae={x:jA.x-this.currentOffset.x,y:jA.y-this.currentOffset.y};this.currentOffset.x+=ae.x,this.currentOffset.y+=ae.y,xA.offsetBy(ae),xA.move(),this.onNextFrame(function(){return yA.inertiaTick()})}else xA.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var F=this,Z=this.interaction,nA=Z._now()-this.t0,lA=jo(Z).smoothEndDuration;if(nA<lA){var hA={x:qo(nA,0,this.targetOffset.x,lA),y:qo(nA,0,this.targetOffset.y,lA)},mA={x:hA.x-this.currentOffset.x,y:hA.y-this.currentOffset.y};this.currentOffset.x+=mA.x,this.currentOffset.y+=mA.y,Z.offsetBy(mA),Z.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return F.smoothEndTick()})}else Z.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(F){var Z=F.pointer,nA=F.event,lA=F.eventTarget,hA=this.interaction;hA.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),hA.updatePointer(Z,nA,lA,!0),hA._doPhase({interaction:hA,event:nA,phase:"resume"}),X(hA.coords.prev,hA.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,fe.cancel(this.timeout)}}]),R}();function jo(R){var F=R.interactable,Z=R.prepared;return F&&F.options&&Z.name&&F.options[Z.name].inertia}var gg={id:"inertia",before:["modifiers","actions"],install:function(R){var F=R.defaults;R.usePlugin(Jr),R.usePlugin(Zo),R.actions.phases.inertiastart=!0,R.actions.phases.resume=!0,F.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(R){var F=R.interaction;F.inertia=new cg(F)},"interactions:before-action-end":function(R){var F=R.interaction,Z=R.event;return(!F._interacting||F.simulation||!F.inertia.start(Z))&&null},"interactions:down":function(R){var F=R.interaction,Z=R.eventTarget,nA=F.inertia;if(nA.active)for(var lA=Z;d.element(lA);){if(lA===F.element){nA.resume(R);break}lA=T(lA)}},"interactions:stop":function(R){var F=R.interaction.inertia;F.active&&F.stop()},"interactions:before-action-resume":function(R){var F=R.interaction.modification;F.stop(R),F.start(R,R.interaction.coords.cur.page),F.applyToInteraction(R)},"interactions:before-action-inertiastart":function(R){return R.interaction.modification.setAndApply(R)},"interactions:action-resume":ho,"interactions:action-inertiastart":ho,"interactions:after-action-inertiastart":function(R){return R.interaction.modification.restoreInteractionCoords(R)},"interactions:after-action-resume":function(R){return R.interaction.modification.restoreInteractionCoords(R)}}};function Ms(R,F,Z,nA){var lA=1-R;return lA*lA*F+2*lA*R*Z+R*R*nA}function qo(R,F,Z,nA){return-Z*(R/=nA)*(R-2)+F}var ug=gg;function xs(R,F){for(var Z=0;Z<F.length;Z++){var nA=F[Z];if(R.immediatePropagationStopped)break;nA(R)}}var Ss=function(){function R(F){I(this,R),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=AA({},F||{})}return b(R,[{key:"fire",value:function(F){var Z,nA=this.global;(Z=this.types[F.type])&&xs(F,Z),!F.propagationStopped&&nA&&(Z=nA[F.type])&&xs(F,Z)}},{key:"on",value:function(F,Z){var nA=j(F,Z);for(F in nA)this.types[F]=De(this.types[F]||[],nA[F])}},{key:"off",value:function(F,Z){var nA=j(F,Z);for(F in nA){var lA=this.types[F];if(lA&&lA.length)for(var hA=0,mA=nA[F];hA<mA.length;hA++){var IA=mA[hA],yA=lA.indexOf(IA);yA!==-1&&lA.splice(yA,1)}}}},{key:"getRect",value:function(F){return null}}]),R}(),dg=function(){function R(F){I(this,R),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=F,z(this,F)}return b(R,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),R}();function po(R){return d.object(R)?{capture:!!R.capture,passive:!!R.passive}:{capture:!!R,passive:!1}}function rt(R,F){return R===F||(typeof R=="boolean"?!!F.capture===R&&!F.passive:!!R.capture==!!F.capture&&!!R.passive==!!F.passive)}var ct={id:"events",install:function(R){var F,Z=[],nA={},lA=[],hA={add:mA,remove:IA,addDelegate:function(DA,PA,jA,le,ae){var de=po(ae);if(!nA[jA]){nA[jA]=[];for(var ye=0;ye<lA.length;ye++){var Qe=lA[ye];mA(Qe,jA,yA),mA(Qe,jA,xA,!0)}}var kA=nA[jA],UA=$A(kA,function(HA){return HA.selector===DA&&HA.context===PA});UA||(UA={selector:DA,context:PA,listeners:[]},kA.push(UA)),UA.listeners.push({func:le,options:de})},removeDelegate:function(DA,PA,jA,le,ae){var de,ye=po(ae),Qe=nA[jA],kA=!1;if(Qe)for(de=Qe.length-1;de>=0;de--){var UA=Qe[de];if(UA.selector===DA&&UA.context===PA){for(var HA=UA.listeners,VA=HA.length-1;VA>=0;VA--){var Ce=HA[VA];if(Ce.func===le&&rt(Ce.options,ye)){HA.splice(VA,1),HA.length||(Qe.splice(de,1),IA(PA,jA,yA),IA(PA,jA,xA,!0)),kA=!0;break}}if(kA)break}}},delegateListener:yA,delegateUseCapture:xA,delegatedEvents:nA,documents:lA,targets:Z,supportsOptions:!1,supportsPassive:!1};function mA(DA,PA,jA,le){if(DA.addEventListener){var ae=po(le),de=$A(Z,function(ye){return ye.eventTarget===DA});de||(de={eventTarget:DA,events:{}},Z.push(de)),de.events[PA]||(de.events[PA]=[]),$A(de.events[PA],function(ye){return ye.func===jA&&rt(ye.options,ae)})||(DA.addEventListener(PA,jA,hA.supportsOptions?ae:ae.capture),de.events[PA].push({func:jA,options:ae}))}}function IA(DA,PA,jA,le){if(DA.addEventListener&&DA.removeEventListener){var ae=YA(Z,function(He){return He.eventTarget===DA}),de=Z[ae];if(de&&de.events)if(PA!=="all"){var ye=!1,Qe=de.events[PA];if(Qe){if(jA==="all"){for(var kA=Qe.length-1;kA>=0;kA--){var UA=Qe[kA];IA(DA,PA,UA.func,UA.options)}return}for(var HA=po(le),VA=0;VA<Qe.length;VA++){var Ce=Qe[VA];if(Ce.func===jA&&rt(Ce.options,HA)){DA.removeEventListener(PA,jA,hA.supportsOptions?HA:HA.capture),Qe.splice(VA,1),Qe.length===0&&(delete de.events[PA],ye=!0);break}}}ye&&!Object.keys(de.events).length&&Z.splice(ae,1)}else for(PA in de.events)de.events.hasOwnProperty(PA)&&IA(DA,PA,"all")}}function yA(DA,PA){for(var jA=po(PA),le=new dg(DA),ae=nA[DA.type],de=ZA(DA)[0],ye=de;d.element(ye);){for(var Qe=0;Qe<ae.length;Qe++){var kA=ae[Qe],UA=kA.selector,HA=kA.context;if($(ye,UA)&&x(HA,de)&&x(HA,ye)){var VA=kA.listeners;le.currentTarget=ye;for(var Ce=0;Ce<VA.length;Ce++){var He=VA[Ce];rt(He.options,jA)&&He.func(le)}}}ye=T(ye)}}function xA(DA){return yA(DA,!0)}return(F=R.document)==null||F.createElement("div").addEventListener("test",null,{get capture(){return hA.supportsOptions=!0},get passive(){return hA.supportsPassive=!0}}),R.events=hA,hA}},Zr={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(R){for(var F=0,Z=Zr.methodOrder;F<Z.length;F++){var nA=Z[F],lA=Zr[nA](R);if(lA)return lA}return null},simulationResume:function(R){var F=R.pointerType,Z=R.eventType,nA=R.eventTarget,lA=R.scope;if(!/down|start/i.test(Z))return null;for(var hA=0,mA=lA.interactions.list;hA<mA.length;hA++){var IA=mA[hA],yA=nA;if(IA.simulation&&IA.simulation.allowResume&&IA.pointerType===F)for(;yA;){if(yA===IA.element)return IA;yA=T(yA)}}return null},mouseOrPen:function(R){var F,Z=R.pointerId,nA=R.pointerType,lA=R.eventType,hA=R.scope;if(nA!=="mouse"&&nA!=="pen")return null;for(var mA=0,IA=hA.interactions.list;mA<IA.length;mA++){var yA=IA[mA];if(yA.pointerType===nA){if(yA.simulation&&!Ns(yA,Z))continue;if(yA.interacting())return yA;F||(F=yA)}}if(F)return F;for(var xA=0,DA=hA.interactions.list;xA<DA.length;xA++){var PA=DA[xA];if(!(PA.pointerType!==nA||/down/i.test(lA)&&PA.simulation))return PA}return null},hasPointer:function(R){for(var F=R.pointerId,Z=0,nA=R.scope.interactions.list;Z<nA.length;Z++){var lA=nA[Z];if(Ns(lA,F))return lA}return null},idle:function(R){for(var F=R.pointerType,Z=0,nA=R.scope.interactions.list;Z<nA.length;Z++){var lA=nA[Z];if(lA.pointers.length===1){var hA=lA.interactable;if(hA&&(!hA.options.gesture||!hA.options.gesture.enabled))continue}else if(lA.pointers.length>=2)continue;if(!lA.interacting()&&F===lA.pointerType)return lA}return null}};function Ns(R,F){return R.pointers.some(function(Z){return Z.id===F})}var hg=Zr,Wr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Fs(R,F){return function(Z){var nA=F.interactions.list,lA=SA(Z),hA=ZA(Z),mA=hA[0],IA=hA[1],yA=[];if(/^touch/.test(Z.type)){F.prevTouchTime=F.now();for(var xA=0,DA=Z.changedTouches;xA<DA.length;xA++){var PA=DA[xA],jA={pointer:PA,pointerId:GA(PA),pointerType:lA,eventType:Z.type,eventTarget:mA,curEventTarget:IA,scope:F},le=Rs(jA);yA.push([jA.pointer,jA.eventTarget,jA.curEventTarget,le])}}else{var ae=!1;if(!Q.supportsPointerEvent&&/mouse/.test(Z.type)){for(var de=0;de<nA.length&&!ae;de++)ae=nA[de].pointerType!=="mouse"&&nA[de].pointerIsDown;ae=ae||F.now()-F.prevTouchTime<500||Z.timeStamp===0}if(!ae){var ye={pointer:Z,pointerId:GA(Z),pointerType:lA,eventType:Z.type,curEventTarget:IA,eventTarget:mA,scope:F},Qe=Rs(ye);yA.push([ye.pointer,ye.eventTarget,ye.curEventTarget,Qe])}}for(var kA=0;kA<yA.length;kA++){var UA=yA[kA],HA=UA[0],VA=UA[1],Ce=UA[2];UA[3][R](HA,Z,VA,Ce)}}}function Rs(R){var F=R.pointerType,Z=R.scope,nA={interaction:hg.search(R),searchDetails:R};return Z.fire("interactions:find",nA),nA.interaction||Z.interactions.new({pointerType:F})}function Xo(R,F){var Z=R.doc,nA=R.scope,lA=R.options,hA=nA.interactions.docEvents,mA=nA.events,IA=mA[F];for(var yA in nA.browser.isIOS&&!lA.events&&(lA.events={passive:!1}),mA.delegatedEvents)IA(Z,yA,mA.delegateListener),IA(Z,yA,mA.delegateUseCapture,!0);for(var xA=lA&&lA.events,DA=0;DA<hA.length;DA++){var PA=hA[DA];IA(Z,PA.type,PA.listener,xA)}}var pg={id:"core/interactions",install:function(R){for(var F={},Z=0;Z<Wr.length;Z++){var nA=Wr[Z];F[nA]=Fs(nA,R)}var lA,hA=Q.pEventTypes;function mA(){for(var IA=0,yA=R.interactions.list;IA<yA.length;IA++){var xA=yA[IA];if(xA.pointerIsDown&&xA.pointerType==="touch"&&!xA._interacting)for(var DA=function(){var le=jA[PA];R.documents.some(function(ae){return x(ae.doc,le.downTarget)})||xA.removePointer(le.pointer,le.event)},PA=0,jA=xA.pointers;PA<jA.length;PA++)DA()}}(lA=r.PointerEvent?[{type:hA.down,listener:mA},{type:hA.down,listener:F.pointerDown},{type:hA.move,listener:F.pointerMove},{type:hA.up,listener:F.pointerUp},{type:hA.cancel,listener:F.pointerUp}]:[{type:"mousedown",listener:F.pointerDown},{type:"mousemove",listener:F.pointerMove},{type:"mouseup",listener:F.pointerUp},{type:"touchstart",listener:mA},{type:"touchstart",listener:F.pointerDown},{type:"touchmove",listener:F.pointerMove},{type:"touchend",listener:F.pointerUp},{type:"touchcancel",listener:F.pointerUp}]).push({type:"blur",listener:function(IA){for(var yA=0,xA=R.interactions.list;yA<xA.length;yA++)xA[yA].documentBlur(IA)}}),R.prevTouchTime=0,R.Interaction=function(IA){w(xA,IA);var yA=Y(xA);function xA(){return I(this,xA),yA.apply(this,arguments)}return b(xA,[{key:"pointerMoveTolerance",get:function(){return R.interactions.pointerMoveTolerance},set:function(DA){R.interactions.pointerMoveTolerance=DA}},{key:"_now",value:function(){return R.now()}}]),xA}(_s),R.interactions={list:[],new:function(IA){IA.scopeFire=function(xA,DA){return R.fire(xA,DA)};var yA=new R.Interaction(IA);return R.interactions.list.push(yA),yA},listeners:F,docEvents:lA,pointerMoveTolerance:1},R.usePlugin(ni)},listeners:{"scope:add-document":function(R){return Xo(R,"add")},"scope:remove-document":function(R){return Xo(R,"remove")},"interactable:unset":function(R,F){for(var Z=R.interactable,nA=F.interactions.list.length-1;nA>=0;nA--){var lA=F.interactions.list[nA];lA.interactable===Z&&(lA.stop(),F.fire("interactions:destroy",{interaction:lA}),lA.destroy(),F.interactions.list.length>2&&F.interactions.list.splice(nA,1))}}},onDocSignal:Xo,doOnInteractions:Fs,methodNames:Wr},Nt=pg,Rn=function(R){return R[R.On=0]="On",R[R.Off=1]="Off",R}(Rn||{}),Ei=function(){function R(F,Z,nA,lA){I(this,R),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Ss,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=Z.actions,this.target=F,this._context=Z.context||nA,this._win=v(H(F)?this._context:F),this._doc=this._win.document,this._scopeEvents=lA,this.set(Z)}return b(R,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(F,Z){return d.func(Z.onstart)&&this.on("".concat(F,"start"),Z.onstart),d.func(Z.onmove)&&this.on("".concat(F,"move"),Z.onmove),d.func(Z.onend)&&this.on("".concat(F,"end"),Z.onend),d.func(Z.oninertiastart)&&this.on("".concat(F,"inertiastart"),Z.oninertiastart),this}},{key:"updatePerActionListeners",value:function(F,Z,nA){var lA,hA=this,mA=(lA=this._actions.map[F])==null?void 0:lA.filterEventType,IA=function(yA){return(mA==null||mA(yA))&&bn(yA,hA._actions)};(d.array(Z)||d.object(Z))&&this._onOff(Rn.Off,F,Z,void 0,IA),(d.array(nA)||d.object(nA))&&this._onOff(Rn.On,F,nA,void 0,IA)}},{key:"setPerAction",value:function(F,Z){var nA=this._defaults;for(var lA in Z){var hA=lA,mA=this.options[F],IA=Z[hA];hA==="listeners"&&this.updatePerActionListeners(F,mA.listeners,IA),d.array(IA)?mA[hA]=Se(IA):d.plainObject(IA)?(mA[hA]=AA(mA[hA]||{},Hi(IA)),d.object(nA.perAction[hA])&&"enabled"in nA.perAction[hA]&&(mA[hA].enabled=IA.enabled!==!1)):d.bool(IA)&&d.object(nA.perAction[hA])?mA[hA].enabled=IA:mA[hA]=IA}}},{key:"getRect",value:function(F){return F=F||(d.element(this.target)?this.target:null),d.string(this.target)&&(F=F||this._context.querySelector(this.target)),k(F)}},{key:"rectChecker",value:function(F){var Z=this;return d.func(F)?(this.getRect=function(nA){var lA=AA({},F.apply(Z,nA));return"width"in lA||(lA.width=lA.right-lA.left,lA.height=lA.bottom-lA.top),lA},this):F===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(F,Z){if(H(Z)||d.object(Z)){for(var nA in this.options[F]=Z,this._actions.map)this.options[nA][F]=Z;return this}return this.options[F]}},{key:"origin",value:function(F){return this._backCompatOption("origin",F)}},{key:"deltaSource",value:function(F){return F==="page"||F==="client"?(this.options.deltaSource=F,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var F=this.target;return d.string(F)?Array.from(this._context.querySelectorAll(F)):d.func(F)&&F.getAllElements?F.getAllElements():d.element(F)?[F]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(F){return this._context===F.ownerDocument||x(this._context,F)}},{key:"testIgnoreAllow",value:function(F,Z,nA){return!this.testIgnore(F.ignoreFrom,Z,nA)&&this.testAllow(F.allowFrom,Z,nA)}},{key:"testAllow",value:function(F,Z,nA){return!F||!!d.element(nA)&&(d.string(F)?J(nA,F,Z):!!d.element(F)&&x(F,nA))}},{key:"testIgnore",value:function(F,Z,nA){return!(!F||!d.element(nA))&&(d.string(F)?J(nA,F,Z):!!d.element(F)&&x(F,nA))}},{key:"fire",value:function(F){return this.events.fire(F),this}},{key:"_onOff",value:function(F,Z,nA,lA,hA){d.object(Z)&&!d.array(Z)&&(lA=nA,nA=null);var mA=j(Z,nA,hA);for(var IA in mA){IA==="wheel"&&(IA=Q.wheelEvent);for(var yA=0,xA=mA[IA];yA<xA.length;yA++){var DA=xA[yA];bn(IA,this._actions)?this.events[F===Rn.On?"on":"off"](IA,DA):d.string(this.target)?this._scopeEvents[F===Rn.On?"addDelegate":"removeDelegate"](this.target,this._context,IA,DA,lA):this._scopeEvents[F===Rn.On?"add":"remove"](this.target,IA,DA,lA)}}return this}},{key:"on",value:function(F,Z,nA){return this._onOff(Rn.On,F,Z,nA)}},{key:"off",value:function(F,Z,nA){return this._onOff(Rn.Off,F,Z,nA)}},{key:"set",value:function(F){var Z=this._defaults;for(var nA in d.object(F)||(F={}),this.options=Hi(Z.base),this._actions.methodDict){var lA=nA,hA=this._actions.methodDict[lA];this.options[lA]={},this.setPerAction(lA,AA(AA({},Z.perAction),Z.actions[lA])),this[hA](F[lA])}for(var mA in F)mA!=="getRect"?d.func(this[mA])&&this[mA](F[mA]):this.rectChecker(F.getRect);return this}},{key:"unset",value:function(){if(d.string(this.target))for(var F in this._scopeEvents.delegatedEvents)for(var Z=this._scopeEvents.delegatedEvents[F],nA=Z.length-1;nA>=0;nA--){var lA=Z[nA],hA=lA.selector,mA=lA.context,IA=lA.listeners;hA===this.target&&mA===this._context&&Z.splice(nA,1);for(var yA=IA.length-1;yA>=0;yA--)this._scopeEvents.removeDelegate(this.target,this._context,F,IA[yA][0],IA[yA][1])}else this._scopeEvents.remove(this.target,"all")}}]),R}(),Ls=function(){function R(F){var Z=this;I(this,R),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=F,F.addListeners({"interactable:unset":function(nA){var lA=nA.interactable,hA=lA.target,mA=d.string(hA)?Z.selectorMap[hA]:hA[Z.scope.id],IA=YA(mA,function(yA){return yA===lA});mA.splice(IA,1)}})}return b(R,[{key:"new",value:function(F,Z){Z=AA(Z||{},{actions:this.scope.actions});var nA=new this.scope.Interactable(F,Z,this.scope.document,this.scope.events);return this.scope.addDocument(nA._doc),this.list.push(nA),d.string(F)?(this.selectorMap[F]||(this.selectorMap[F]=[]),this.selectorMap[F].push(nA)):(nA.target[this.scope.id]||Object.defineProperty(F,this.scope.id,{value:[],configurable:!0}),F[this.scope.id].push(nA)),this.scope.fire("interactable:new",{target:F,options:Z,interactable:nA,win:this.scope._win}),nA}},{key:"getExisting",value:function(F,Z){var nA=Z&&Z.context||this.scope.document,lA=d.string(F),hA=lA?this.selectorMap[F]:F[this.scope.id];if(hA)return $A(hA,function(mA){return mA._context===nA&&(lA||mA.inContext(F))})}},{key:"forEachMatch",value:function(F,Z){for(var nA=0,lA=this.list;nA<lA.length;nA++){var hA=lA[nA],mA=void 0;if((d.string(hA.target)?d.element(F)&&$(F,hA.target):F===hA.target)&&hA.inContext(F)&&(mA=Z(hA)),mA!==void 0)return mA}}}]),R}(),jr=function(){function R(){var F=this;I(this,R),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=Q,this.defaults=Hi(Wo),this.Eventable=Ss,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(nA){var lA=function hA(mA,IA){var yA=nA.interactables.getExisting(mA,IA);return yA||((yA=nA.interactables.new(mA,IA)).events.global=hA.globalEvents),yA};return lA.getPointerAverage=WA,lA.getTouchBBox=ue,lA.getTouchDistance=te,lA.getTouchAngle=LA,lA.getElementRect=k,lA.getElementClientRect=q,lA.matchesSelector=$,lA.closest=S,lA.globalEvents={},lA.version="1.10.27",lA.scope=nA,lA.use=function(hA,mA){return this.scope.usePlugin(hA,mA),this},lA.isSet=function(hA,mA){return!!this.scope.interactables.get(hA,mA&&mA.context)},lA.on=At(function(hA,mA,IA){if(d.string(hA)&&hA.search(" ")!==-1&&(hA=hA.trim().split(/ +/)),d.array(hA)){for(var yA=0,xA=hA;yA<xA.length;yA++){var DA=xA[yA];this.on(DA,mA,IA)}return this}if(d.object(hA)){for(var PA in hA)this.on(PA,hA[PA],mA);return this}return bn(hA,this.scope.actions)?this.globalEvents[hA]?this.globalEvents[hA].push(mA):this.globalEvents[hA]=[mA]:this.scope.events.add(this.scope.document,hA,mA,{options:IA}),this},"The interact.on() method is being deprecated"),lA.off=At(function(hA,mA,IA){if(d.string(hA)&&hA.search(" ")!==-1&&(hA=hA.trim().split(/ +/)),d.array(hA)){for(var yA=0,xA=hA;yA<xA.length;yA++){var DA=xA[yA];this.off(DA,mA,IA)}return this}if(d.object(hA)){for(var PA in hA)this.off(PA,hA[PA],mA);return this}var jA;return bn(hA,this.scope.actions)?hA in this.globalEvents&&(jA=this.globalEvents[hA].indexOf(mA))!==-1&&this.globalEvents[hA].splice(jA,1):this.scope.events.remove(this.scope.document,hA,mA,IA),this},"The interact.off() method is being deprecated"),lA.debug=function(){return this.scope},lA.supportsTouch=function(){return Q.supportsTouch},lA.supportsPointerEvent=function(){return Q.supportsPointerEvent},lA.stop=function(){for(var hA=0,mA=this.scope.interactions.list;hA<mA.length;hA++)mA[hA].stop();return this},lA.pointerMoveTolerance=function(hA){return d.number(hA)?(this.scope.interactions.pointerMoveTolerance=hA,this):this.scope.interactions.pointerMoveTolerance},lA.addDocument=function(hA,mA){this.scope.addDocument(hA,mA)},lA.removeDocument=function(hA){this.scope.removeDocument(hA)},lA}(this),this.InteractEvent=ii,this.Interactable=void 0,this.interactables=new Ls(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(nA){return F.removeDocument(nA.target)};var Z=this;this.Interactable=function(nA){w(hA,nA);var lA=Y(hA);function hA(){return I(this,hA),lA.apply(this,arguments)}return b(hA,[{key:"_defaults",get:function(){return Z.defaults}},{key:"set",value:function(mA){return G(M(hA.prototype),"set",this).call(this,mA),Z.fire("interactable:set",{options:mA,interactable:this}),this}},{key:"unset",value:function(){G(M(hA.prototype),"unset",this).call(this);var mA=Z.interactables.list.indexOf(this);mA<0||(Z.interactables.list.splice(mA,1),Z.fire("interactable:unset",{interactable:this}))}}]),hA}(Ei)}return b(R,[{key:"addListeners",value:function(F,Z){this.listenerMaps.push({id:Z,map:F})}},{key:"fire",value:function(F,Z){for(var nA=0,lA=this.listenerMaps;nA<lA.length;nA++){var hA=lA[nA].map[F];if(hA&&hA(Z,this,F)===!1)return!1}}},{key:"init",value:function(F){return this.isInitialized?this:function(Z,nA){return Z.isInitialized=!0,d.window(nA)&&_(nA),r.init(nA),Q.init(nA),fe.init(nA),Z.window=nA,Z.document=nA.document,Z.usePlugin(Nt),Z.usePlugin(ct),Z}(this,F)}},{key:"pluginIsInstalled",value:function(F){var Z=F.id;return Z?!!this._plugins.map[Z]:this._plugins.list.indexOf(F)!==-1}},{key:"usePlugin",value:function(F,Z){if(!this.isInitialized)return this;if(this.pluginIsInstalled(F))return this;if(F.id&&(this._plugins.map[F.id]=F),this._plugins.list.push(F),F.install&&F.install(this,Z),F.listeners&&F.before){for(var nA=0,lA=this.listenerMaps.length,hA=F.before.reduce(function(IA,yA){return IA[yA]=!0,IA[tn(yA)]=!0,IA},{});nA<lA;nA++){var mA=this.listenerMaps[nA].id;if(mA&&(hA[mA]||hA[tn(mA)]))break}this.listenerMaps.splice(nA,0,{id:F.id,map:F.listeners})}else F.listeners&&this.listenerMaps.push({id:F.id,map:F.listeners});return this}},{key:"addDocument",value:function(F,Z){if(this.getDocIndex(F)!==-1)return!1;var nA=v(F);Z=Z?AA({},Z):{},this.documents.push({doc:F,options:Z}),this.events.documents.push(F),F!==this.document&&this.events.add(nA,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:F,window:nA,scope:this,options:Z})}},{key:"removeDocument",value:function(F){var Z=this.getDocIndex(F),nA=v(F),lA=this.documents[Z].options;this.events.remove(nA,"unload",this.onWindowUnload),this.documents.splice(Z,1),this.events.documents.splice(Z,1),this.fire("scope:remove-document",{doc:F,window:nA,scope:this,options:lA})}},{key:"getDocIndex",value:function(F){for(var Z=0;Z<this.documents.length;Z++)if(this.documents[Z].doc===F)return Z;return-1}},{key:"getDocOptions",value:function(F){var Z=this.getDocIndex(F);return Z===-1?null:this.documents[Z].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),R}();function tn(R){return R&&R.replace(/\/.*$/,"")}var qr=new jr,Gt=qr.interactStatic,Gs=typeof globalThis<"u"?globalThis:window;qr.init(Gs);var Ps=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(R){var F=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(nA){var lA=nA[0],hA=nA[1];return lA in R||hA in R}),Z=function(nA,lA){for(var hA=R.range,mA=R.limits,IA=mA===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:mA,yA=R.offset,xA=yA===void 0?{x:0,y:0}:yA,DA={range:hA,grid:R,x:null,y:null},PA=0;PA<F.length;PA++){var jA=F[PA],le=jA[0],ae=jA[1],de=Math.round((nA-xA.x)/R[le]),ye=Math.round((lA-xA.y)/R[ae]);DA[le]=Math.max(IA.left,Math.min(IA.right,de*R[le]+xA.x)),DA[ae]=Math.max(IA.top,Math.min(IA.bottom,ye*R[ae]+xA.y))}return DA};return Z.grid=R,Z.coordFields=F,Z}}),Hs={id:"snappers",install:function(R){var F=R.interactStatic;F.snappers=AA(F.snappers||{},Ps),F.createSnapGrid=F.snappers.grid}},Ks=Hs,nn={start:function(R){var F=R.state,Z=R.rect,nA=R.edges,lA=R.pageCoords,hA=F.options,mA=hA.ratio,IA=hA.enabled,yA=F.options,xA=yA.equalDelta,DA=yA.modifiers;mA==="preserve"&&(mA=Z.width/Z.height),F.startCoords=AA({},lA),F.startRect=AA({},Z),F.ratio=mA,F.equalDelta=xA;var PA=F.linkedEdges={top:nA.top||nA.left&&!nA.bottom,left:nA.left||nA.top&&!nA.right,bottom:nA.bottom||nA.right&&!nA.top,right:nA.right||nA.bottom&&!nA.left};if(F.xIsPrimaryAxis=!(!nA.left&&!nA.right),F.equalDelta){var jA=(PA.left?1:-1)*(PA.top?1:-1);F.edgeSign={x:jA,y:jA}}else F.edgeSign={x:PA.left?-1:1,y:PA.top?-1:1};if(IA!==!1&&AA(nA,PA),DA!=null&&DA.length){var le=new Jo(R.interaction);le.copyFrom(R.interaction.modification),le.prepareStates(DA),F.subModification=le,le.startAll(i({},R))}},set:function(R){var F=R.state,Z=R.rect,nA=R.coords,lA=F.linkedEdges,hA=AA({},nA),mA=F.equalDelta?Cg:un;if(AA(R.edges,lA),mA(F,F.xIsPrimaryAxis,nA,Z),!F.subModification)return null;var IA=AA({},Z);uA(lA,IA,{x:nA.x-hA.x,y:nA.y-hA.y});var yA=F.subModification.setAll(i(i({},R),{},{rect:IA,edges:lA,pageCoords:nA,prevCoords:nA,prevRect:IA})),xA=yA.delta;return yA.changed&&(mA(F,Math.abs(xA.x)>Math.abs(xA.y),yA.coords,yA.rect),AA(nA,yA.coords)),yA.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Cg(R,F,Z){var nA=R.startCoords,lA=R.edgeSign;F?Z.y=nA.y+(Z.x-nA.x)*lA.y:Z.x=nA.x+(Z.y-nA.y)*lA.x}function un(R,F,Z,nA){var lA=R.startRect,hA=R.startCoords,mA=R.ratio,IA=R.edgeSign;if(F){var yA=nA.width/mA;Z.y=hA.y+(yA-lA.height)*IA.y}else{var xA=nA.height*mA;Z.x=hA.x+(xA-lA.width)*IA.x}}var Bg=Fn(nn,"aspectRatio"),Xr=function(){};Xr._defaults={};var yn=Xr;function Ln(R,F,Z){return d.func(R)?oA(R,F.interactable,F.element,[Z.x,Z.y,F]):oA(R,F.interactable,F.element)}var Ki={start:function(R){var F=R.rect,Z=R.startOffset,nA=R.state,lA=R.interaction,hA=R.pageCoords,mA=nA.options,IA=mA.elementRect,yA=AA({left:0,top:0,right:0,bottom:0},mA.offset||{});if(F&&IA){var xA=Ln(mA.restriction,lA,hA);if(xA){var DA=xA.right-xA.left-F.width,PA=xA.bottom-xA.top-F.height;DA<0&&(yA.left+=DA,yA.right+=DA),PA<0&&(yA.top+=PA,yA.bottom+=PA)}yA.left+=Z.left-F.width*IA.left,yA.top+=Z.top-F.height*IA.top,yA.right+=Z.right-F.width*(1-IA.right),yA.bottom+=Z.bottom-F.height*(1-IA.bottom)}nA.offset=yA},set:function(R){var F=R.coords,Z=R.interaction,nA=R.state,lA=nA.options,hA=nA.offset,mA=Ln(lA.restriction,Z,F);if(mA){var IA=function(yA){return!yA||"left"in yA&&"top"in yA||((yA=AA({},yA)).left=yA.x||0,yA.top=yA.y||0,yA.right=yA.right||yA.left+yA.width,yA.bottom=yA.bottom||yA.top+yA.height),yA}(mA);F.x=Math.max(Math.min(IA.right-hA.right,F.x),IA.left+hA.left),F.y=Math.max(Math.min(IA.bottom-hA.bottom,F.y),IA.top+hA.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},ht=Fn(Ki,"restrict"),$n={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Vo={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Ts(R,F){for(var Z=0,nA=["top","left","bottom","right"];Z<nA.length;Z++){var lA=nA[Z];lA in R||(R[lA]=F[lA])}return R}var Qi={noInner:$n,noOuter:Vo,start:function(R){var F,Z=R.interaction,nA=R.startOffset,lA=R.state,hA=lA.options;hA&&(F=dA(Ln(hA.offset,Z,Z.coords.start.page))),F=F||{x:0,y:0},lA.offset={top:F.y+nA.top,left:F.x+nA.left,bottom:F.y-nA.bottom,right:F.x-nA.right}},set:function(R){var F=R.coords,Z=R.edges,nA=R.interaction,lA=R.state,hA=lA.offset,mA=lA.options;if(Z){var IA=AA({},F),yA=Ln(mA.inner,nA,IA)||{},xA=Ln(mA.outer,nA,IA)||{};Ts(yA,$n),Ts(xA,Vo),Z.top?F.y=Math.min(Math.max(xA.top+hA.top,IA.y),yA.top+hA.top):Z.bottom&&(F.y=Math.max(Math.min(xA.bottom+hA.bottom,IA.y),yA.bottom+hA.bottom)),Z.left?F.x=Math.min(Math.max(xA.left+hA.left,IA.x),yA.left+hA.left):Z.right&&(F.x=Math.max(Math.min(xA.right+hA.right,IA.x),yA.right+hA.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},mg=Fn(Qi,"restrictEdges"),Eg=AA({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(R){}},Ki.defaults),Qg=Fn({start:Ki.start,set:Ki.set,defaults:Eg},"restrictRect"),Us={width:-1/0,height:-1/0},Ar={width:1/0,height:1/0},Ti=Fn({start:function(R){return Qi.start(R)},set:function(R){var F=R.interaction,Z=R.state,nA=R.rect,lA=R.edges,hA=Z.options;if(lA){var mA=EA(Ln(hA.min,F,R.coords))||Us,IA=EA(Ln(hA.max,F,R.coords))||Ar;Z.options={endOnly:hA.endOnly,inner:AA({},Qi.noInner),outer:AA({},Qi.noOuter)},lA.top?(Z.options.inner.top=nA.bottom-mA.height,Z.options.outer.top=nA.bottom-IA.height):lA.bottom&&(Z.options.inner.bottom=nA.top+mA.height,Z.options.outer.bottom=nA.top+IA.height),lA.left?(Z.options.inner.left=nA.right-mA.width,Z.options.outer.left=nA.right-IA.width):lA.right&&(Z.options.inner.right=nA.left+mA.width,Z.options.outer.right=nA.left+IA.width),Qi.set(R),Z.options=hA}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Vr={start:function(R){var F,Z=R.interaction,nA=R.interactable,lA=R.element,hA=R.rect,mA=R.state,IA=R.startOffset,yA=mA.options,xA=yA.offsetWithOrigin?function(jA){var le=jA.interaction.element,ae=dA(oA(jA.state.options.origin,null,null,[le])),de=ae||BA(jA.interactable,le,jA.interaction.prepared.name);return de}(R):{x:0,y:0};if(yA.offset==="startCoords")F={x:Z.coords.start.page.x,y:Z.coords.start.page.y};else{var DA=oA(yA.offset,nA,lA,[Z]);(F=dA(DA)||{x:0,y:0}).x+=xA.x,F.y+=xA.y}var PA=yA.relativePoints;mA.offsets=hA&&PA&&PA.length?PA.map(function(jA,le){return{index:le,relativePoint:jA,x:IA.left-hA.width*jA.x+F.x,y:IA.top-hA.height*jA.y+F.y}}):[{index:0,relativePoint:null,x:F.x,y:F.y}]},set:function(R){var F=R.interaction,Z=R.coords,nA=R.state,lA=nA.options,hA=nA.offsets,mA=BA(F.interactable,F.element,F.prepared.name),IA=AA({},Z),yA=[];lA.offsetWithOrigin||(IA.x-=mA.x,IA.y-=mA.y);for(var xA=0,DA=hA;xA<DA.length;xA++)for(var PA=DA[xA],jA=IA.x-PA.x,le=IA.y-PA.y,ae=0,de=lA.targets.length;ae<de;ae++){var ye=lA.targets[ae],Qe=void 0;(Qe=d.func(ye)?ye(jA,le,F._proxy,PA,ae):ye)&&yA.push({x:(d.number(Qe.x)?Qe.x:jA)+PA.x,y:(d.number(Qe.y)?Qe.y:le)+PA.y,range:d.number(Qe.range)?Qe.range:lA.range,source:ye,index:ae,offset:PA})}for(var kA={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},UA=0;UA<yA.length;UA++){var HA=yA[UA],VA=HA.range,Ce=HA.x-IA.x,He=HA.y-IA.y,Ke=rA(Ce,He),Oe=Ke<=VA;VA===1/0&&kA.inRange&&kA.range!==1/0&&(Oe=!1),kA.target&&!(Oe?kA.inRange&&VA!==1/0?Ke/VA<kA.distance/kA.range:VA===1/0&&kA.range!==1/0||Ke<kA.distance:!kA.inRange&&Ke<kA.distance)||(kA.target=HA,kA.distance=Ke,kA.range=VA,kA.inRange=Oe,kA.delta.x=Ce,kA.delta.y=He)}return kA.inRange&&(Z.x=kA.target.x,Z.y=kA.target.y),nA.closest=kA,kA},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Ys=Fn(Vr,"snap"),Co={start:function(R){var F=R.state,Z=R.edges,nA=F.options;if(!Z)return null;R.state={options:{targets:null,relativePoints:[{x:Z.left?0:1,y:Z.top?0:1}],offset:nA.offset||"self",origin:{x:0,y:0},range:nA.range}},F.targetFields=F.targetFields||[["width","height"],["x","y"]],Vr.start(R),F.offsets=R.state.offsets,R.state=F},set:function(R){var F=R.interaction,Z=R.state,nA=R.coords,lA=Z.options,hA=Z.offsets,mA={x:nA.x-hA[0].x,y:nA.y-hA[0].y};Z.options=AA({},lA),Z.options.targets=[];for(var IA=0,yA=lA.targets||[];IA<yA.length;IA++){var xA=yA[IA],DA=void 0;if(DA=d.func(xA)?xA(mA.x,mA.y,F):xA){for(var PA=0,jA=Z.targetFields;PA<jA.length;PA++){var le=jA[PA],ae=le[0],de=le[1];if(ae in DA||de in DA){DA.x=DA[ae],DA.y=DA[de];break}}Z.options.targets.push(DA)}}var ye=Vr.set(R);return Z.options=lA,ye},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Aa=Fn(Co,"snapSize"),Bo={aspectRatio:Bg,restrictEdges:mg,restrict:ht,restrictRect:Qg,restrictSize:Ti,snapEdges:Fn({start:function(R){var F=R.edges;return F?(R.state.targetFields=R.state.targetFields||[[F.left?"left":"right",F.top?"top":"bottom"]],Co.start(R)):null},set:Co.set,defaults:AA(Hi(Co.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Ys,snapSize:Aa,spring:yn,avoid:yn,transform:yn,rubberband:yn},Os={id:"modifiers",install:function(R){var F=R.interactStatic;for(var Z in R.usePlugin(Zo),R.usePlugin(Ks),F.modifiers=Bo,Bo){var nA=Bo[Z],lA=nA._defaults,hA=nA._methods;lA._methods=hA,R.defaults.perAction[Z]=lA}}},Ig=Os,er=function(R){w(Z,R);var F=Y(Z);function Z(nA,lA,hA,mA,IA,yA){var xA;if(I(this,Z),z(P(xA=F.call(this,IA)),hA),hA!==lA&&z(P(xA),lA),xA.timeStamp=yA,xA.originalEvent=hA,xA.type=nA,xA.pointerId=GA(lA),xA.pointerType=SA(lA),xA.target=mA,xA.currentTarget=null,nA==="tap"){var DA=IA.getPointerIndex(lA);xA.dt=xA.timeStamp-IA.pointers[DA].downTime;var PA=xA.timeStamp-IA.tapTime;xA.double=!!IA.prevTap&&IA.prevTap.type!=="doubletap"&&IA.prevTap.target===xA.target&&PA<500}else nA==="doubletap"&&(xA.dt=lA.timeStamp-IA.tapTime,xA.double=!0);return xA}return b(Z,[{key:"_subtractOrigin",value:function(nA){var lA=nA.x,hA=nA.y;return this.pageX-=lA,this.pageY-=hA,this.clientX-=lA,this.clientY-=hA,this}},{key:"_addOrigin",value:function(nA){var lA=nA.x,hA=nA.y;return this.pageX+=lA,this.pageY+=hA,this.clientX+=lA,this.clientY+=hA,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),Z}(Be),Ii={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(R){R.pointerEvents=Ii,R.defaults.actions.pointerEvents=Ii.defaults,AA(R.actions.phaselessTypes,Ii.types)},listeners:{"interactions:new":function(R){var F=R.interaction;F.prevTap=null,F.tapTime=0},"interactions:update-pointer":function(R){var F=R.down,Z=R.pointerInfo;!F&&Z.hold||(Z.hold={duration:1/0,timeout:null})},"interactions:move":function(R,F){var Z=R.interaction,nA=R.pointer,lA=R.event,hA=R.eventTarget;R.duplicate||Z.pointerIsDown&&!Z.pointerWasMoved||(Z.pointerIsDown&&Tt(R),oi({interaction:Z,pointer:nA,event:lA,eventTarget:hA,type:"move"},F))},"interactions:down":function(R,F){(function(Z,nA){for(var lA=Z.interaction,hA=Z.pointer,mA=Z.event,IA=Z.eventTarget,yA=Z.pointerIndex,xA=lA.pointers[yA].hold,DA=V(IA),PA={interaction:lA,pointer:hA,event:mA,eventTarget:IA,type:"hold",targets:[],path:DA,node:null},jA=0;jA<DA.length;jA++){var le=DA[jA];PA.node=le,nA.fire("pointerEvents:collect-targets",PA)}if(PA.targets.length){for(var ae=1/0,de=0,ye=PA.targets;de<ye.length;de++){var Qe=ye[de].eventable.options.holdDuration;Qe<ae&&(ae=Qe)}xA.duration=ae,xA.timeout=setTimeout(function(){oi({interaction:lA,eventTarget:IA,pointer:hA,event:mA,type:"hold"},nA)},ae)}})(R,F),oi(R,F)},"interactions:up":function(R,F){Tt(R),oi(R,F),function(Z,nA){var lA=Z.interaction,hA=Z.pointer,mA=Z.event,IA=Z.eventTarget;lA.pointerWasMoved||oi({interaction:lA,eventTarget:IA,pointer:hA,event:mA,type:"tap"},nA)}(R,F)},"interactions:cancel":function(R,F){Tt(R),oi(R,F)}},PointerEvent:er,fire:oi,collectEventTargets:ea,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function oi(R,F){var Z=R.interaction,nA=R.pointer,lA=R.event,hA=R.eventTarget,mA=R.type,IA=R.targets,yA=IA===void 0?ea(R,F):IA,xA=new er(mA,nA,lA,hA,Z,F.now());F.fire("pointerEvents:new",{pointerEvent:xA});for(var DA={interaction:Z,pointer:nA,event:lA,eventTarget:hA,targets:yA,type:mA,pointerEvent:xA},PA=0;PA<yA.length;PA++){var jA=yA[PA];for(var le in jA.props||{})xA[le]=jA.props[le];var ae=BA(jA.eventable,jA.node);if(xA._subtractOrigin(ae),xA.eventable=jA.eventable,xA.currentTarget=jA.node,jA.eventable.fire(xA),xA._addOrigin(ae),xA.immediatePropagationStopped||xA.propagationStopped&&PA+1<yA.length&&yA[PA+1].node!==xA.currentTarget)break}if(F.fire("pointerEvents:fired",DA),mA==="tap"){var de=xA.double?oi({interaction:Z,pointer:nA,event:lA,eventTarget:hA,type:"doubletap"},F):xA;Z.prevTap=de,Z.tapTime=de.timeStamp}return xA}function ea(R,F){var Z=R.interaction,nA=R.pointer,lA=R.event,hA=R.eventTarget,mA=R.type,IA=Z.getPointerIndex(nA),yA=Z.pointers[IA];if(mA==="tap"&&(Z.pointerWasMoved||!yA||yA.downTarget!==hA))return[];for(var xA=V(hA),DA={interaction:Z,pointer:nA,event:lA,eventTarget:hA,type:mA,path:xA,targets:[],node:null},PA=0;PA<xA.length;PA++){var jA=xA[PA];DA.node=jA,F.fire("pointerEvents:collect-targets",DA)}return mA==="hold"&&(DA.targets=DA.targets.filter(function(le){var ae,de;return le.eventable.options.holdDuration===((ae=Z.pointers[IA])==null||(de=ae.hold)==null?void 0:de.duration)})),DA.targets}function Tt(R){var F=R.interaction,Z=R.pointerIndex,nA=F.pointers[Z].hold;nA&&nA.timeout&&(clearTimeout(nA.timeout),nA.timeout=null)}var ta=Object.freeze({__proto__:null,default:Ii});function mo(R){var F=R.interaction;F.holdIntervalHandle&&(clearInterval(F.holdIntervalHandle),F.holdIntervalHandle=null)}var $s={id:"pointer-events/holdRepeat",install:function(R){R.usePlugin(Ii);var F=R.pointerEvents;F.defaults.holdRepeatInterval=0,F.types.holdrepeat=R.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(R,F){return R["pointerEvents:".concat(F)]=mo,R},{"pointerEvents:new":function(R){var F=R.pointerEvent;F.type==="hold"&&(F.count=(F.count||0)+1)},"pointerEvents:fired":function(R,F){var Z=R.interaction,nA=R.pointerEvent,lA=R.eventTarget,hA=R.targets;if(nA.type==="hold"&&hA.length){var mA=hA[0].eventable.options.holdRepeatInterval;mA<=0||(Z.holdIntervalHandle=setTimeout(function(){F.pointerEvents.fire({interaction:Z,eventTarget:lA,type:"hold",pointer:nA,event:nA},F)},mA))}}})},zs=$s,fg={id:"pointer-events/interactableTargets",install:function(R){var F=R.Interactable;F.prototype.pointerEvents=function(nA){return AA(this.events.options,nA),this};var Z=F.prototype._backCompatOption;F.prototype._backCompatOption=function(nA,lA){var hA=Z.call(this,nA,lA);return hA===this&&(this.events.options[nA]=lA),hA}},listeners:{"pointerEvents:collect-targets":function(R,F){var Z=R.targets,nA=R.node,lA=R.type,hA=R.eventTarget;F.interactables.forEachMatch(nA,function(mA){var IA=mA.events,yA=IA.options;IA.types[lA]&&IA.types[lA].length&&mA.testIgnoreAllow(yA,nA,hA)&&Z.push({node:nA,eventable:IA,props:{interactable:mA}})})},"interactable:new":function(R){var F=R.interactable;F.events.getRect=function(Z){return F.getRect(Z)}},"interactable:set":function(R,F){var Z=R.interactable,nA=R.options;AA(Z.events.options,F.pointerEvents.defaults),AA(Z.events.options,nA.pointerEvents||{})}}},wg=fg,bg={id:"pointer-events",install:function(R){R.usePlugin(ta),R.usePlugin(zs),R.usePlugin(wg)}},yg=bg,Dg={id:"reflow",install:function(R){var F=R.Interactable;R.actions.phases.reflow=!0,F.prototype.reflow=function(Z){return function(nA,lA,hA){for(var mA=nA.getAllElements(),IA=hA.window.Promise,yA=IA?[]:null,xA=function(){var PA=mA[DA],jA=nA.getRect(PA);if(!jA)return 1;var le,ae=$A(hA.interactions.list,function(Qe){return Qe.interacting()&&Qe.interactable===nA&&Qe.element===PA&&Qe.prepared.name===lA.name});if(ae)ae.move(),yA&&(le=ae._reflowPromise||new IA(function(Qe){ae._reflowResolve=Qe}));else{var de=EA(jA),ye=function(Qe){return{coords:Qe,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:de.x,y:de.y},client:{x:de.x,y:de.y},timeStamp:hA.now()});le=function(Qe,kA,UA,HA,VA){var Ce=Qe.interactions.new({pointerType:"reflow"}),He={interaction:Ce,event:VA,pointer:VA,eventTarget:UA,phase:"reflow"};Ce.interactable=kA,Ce.element=UA,Ce.prevEvent=VA,Ce.updatePointer(VA,VA,UA,!0),iA(Ce.coords.delta),gt(Ce.prepared,HA),Ce._doPhase(He);var Ke=Qe.window,Oe=Ke.Promise,on=Oe?new Oe(function(zn){Ce._reflowResolve=zn}):void 0;return Ce._reflowPromise=on,Ce.start(HA,kA,UA),Ce._interacting?(Ce.move(He),Ce.end(VA)):(Ce.stop(),Ce._reflowResolve()),Ce.removePointer(VA,VA),on}(hA,nA,PA,lA,ye)}yA&&yA.push(le)},DA=0;DA<mA.length&&!xA();DA++);return yA&&IA.all(yA).then(function(){return nA})}(this,Z,R)}},listeners:{"interactions:stop":function(R,F){var Z=R.interaction;Z.pointerType==="reflow"&&(Z._reflowResolve&&Z._reflowResolve(),function(nA,lA){nA.splice(nA.indexOf(lA),1)}(F.interactions.list,Z))}}},Ui=Dg;if(Gt.use(ni),Gt.use(Jr),Gt.use(yg),Gt.use(ug),Gt.use(Ig),Gt.use(ti),Gt.use(zA),Gt.use(ze),Gt.use(Ui),Gt.default=Gt,u(n)==="object"&&n)try{n.exports=Gt}catch{}return Gt.default=Gt,Gt})}(Cs,Cs.exports);var c_=Cs.exports;const Jp=fu(c_),Ag=A.defineComponent({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(n,{expose:e,emit:t}){const i=n,u=t,I=A.inject(Fp),o=A.inject(Rp);if(!I)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const b=A.ref(null),y=A.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let w=!1,M=!1,N=NaN,P=NaN,Y=NaN,G=NaN,K=-1,D=-1,E=-1,L=-1,_=i.x,v=i.y,B=i.w,p=i.h;const d=A.ref(),l=A.reactive({i:A.toRef(i,"i"),state:y,wrapper:d,calcXY:oA});function g(cA){j(cA)}function s(){tA()}function h(cA){In(i.isDraggable)&&(y.draggable=cA)}function C(cA){In(i.isResizable)&&(y.resizable=cA)}function a(cA){In(i.isBounded)&&(y.bounded=cA)}function r(cA){y.transformScale=cA}function m(cA){y.rowHeight=cA}function Q(cA){y.maxRows=cA}function x(){y.rtl=zp()==="rtl",tA()}function S(cA){y.cols=Math.floor(cA)}I.increaseItem(l),A.onBeforeMount(()=>{y.rtl=zp()==="rtl"}),A.onMounted(()=>{I.responsive&&I.lastBreakpoint?y.cols=Op(I.lastBreakpoint,I.cols):y.cols=I.colNum,y.rowHeight=I.rowHeight,y.containerWidth=I.width!==null?I.width:100,y.margin=I.margin!==void 0?I.margin.map(Number):[10,10],y.maxRows=I.maxRows,In(i.isDraggable)?y.draggable=I.isDraggable:y.draggable=i.isDraggable,In(i.isResizable)?y.resizable=I.isResizable:y.resizable=i.isResizable,In(i.isBounded)?y.bounded=I.isBounded:y.bounded=i.isBounded,y.transformScale=I.transformScale,y.useCssTransforms=I.useCssTransforms,y.useStyleCursor=I.useStyleCursor,A.watchEffect(()=>{_=i.x,v=i.y,p=i.h,B=i.w,jt(k)}),o.on("updateWidth",g),o.on("compact",s),o.on("setDraggable",h),o.on("setResizable",C),o.on("setBounded",a),o.on("setTransformScale",r),o.on("setRowHeight",m),o.on("setMaxRows",Q),o.on("directionchange",x),o.on("setColNum",S)}),A.onBeforeUnmount(()=>{o.off("updateWidth",g),o.off("compact",s),o.off("setDraggable",h),o.off("setResizable",C),o.off("setBounded",a),o.off("setTransformScale",r),o.off("setRowHeight",m),o.off("setMaxRows",Q),o.off("directionchange",x),o.off("setColNum",S),b.value&&(b.value.unset(),b.value=null),I.decreaseItem(l)}),e({state:y,wrapper:d});const T=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,$=A.computed(()=>y.resizable&&!i.static),eA=A.computed(()=>I.isMirrored?!y.rtl:y.rtl),W=A.computed(()=>(y.draggable||y.resizable)&&!i.static),J=n_("item"),O=A.computed(()=>({[J.b()]:!0,[J.bm("resizable")]:$.value,[J.bm("static")]:i.static,[J.bm("resizing")]:y.isResizing,[J.bm("dragging")]:y.isDragging,[J.bm("transform")]:y.useCssTransforms,[J.bm("rtl")]:eA.value,[J.bm("no-touch")]:T&&W.value})),q=A.computed(()=>[J.be("resizer"),eA.value&&J.bem("resizer","rtl")].filter(Boolean));A.watch(()=>i.isDraggable,cA=>{y.draggable=cA}),A.watch(()=>i.static,()=>{jt(z),jt(iA)}),A.watch(()=>y.draggable,()=>{jt(z)}),A.watch(()=>i.isResizable,cA=>{y.resizable=cA}),A.watch(()=>i.isBounded,cA=>{y.bounded=cA}),A.watch(()=>y.resizable,()=>{jt(iA)}),A.watch(()=>y.rowHeight,()=>{jt(k),jt(V)}),A.watch([()=>y.cols,()=>y.containerWidth],()=>{jt(iA),jt(k),jt(V)}),A.watch([()=>i.minH,()=>i.maxH,()=>i.minW,()=>i.maxW],()=>{jt(iA)}),A.watch(eA,()=>{jt(iA),jt(k)}),A.watch([()=>I.margin,()=>I.margin[0],()=>I.margin[1]],()=>{const cA=I.margin;!cA||cA[0]===y.margin[0]&&cA[1]===y.margin[1]||(y.margin=cA.map(Number),jt(k),jt(V))});function k(){i.x+i.w>y.cols?(_=0,B=i.w>y.cols?y.cols:i.w):(_=i.x,B=i.w);const cA=sA(_,v,B,p);y.isDragging&&(cA.top=y.dragging.top,eA.value?cA.right=y.dragging.left:cA.left=y.dragging.left),y.isResizing&&(cA.width=y.resizing.width,cA.height=y.resizing.height);let CA;y.useCssTransforms?eA.value?CA=Vk(cA.top,cA.right,cA.width,cA.height):CA=Xk(cA.top,cA.left,cA.width,cA.height):eA.value?CA=e_(cA.top,cA.right,cA.width,cA.height):CA=A_(cA.top,cA.left,cA.width,cA.height),y.style=CA}function V(){const cA={};for(const CA of["width","height"]){const vA=y.style[CA].match(/^(\d+)px$/);if(!vA)return;cA[CA]=vA[1]}u("container-resized",i.i,i.h,i.w,cA.height,cA.width)}function H(cA){if(i.static)return;const CA=cA.type;if(CA==="resizestart"&&y.isResizing||CA!=="resizestart"&&!y.isResizing)return;const vA=Up(cA);if(In(vA))return;const{x:GA,y:JA}=vA,qA={width:0,height:0};let WA;switch(CA){case"resizestart":{iA(),K=B,D=p,WA=sA(_,v,B,p),qA.width=WA.width,qA.height=WA.height,y.resizing=qA,y.isResizing=!0;break}case"resizemove":{!cA.edges.right&&!cA.edges.left&&(Y=GA),!cA.edges.top&&!cA.edges.bottom&&(G=JA);const ue=Yp(Y,G,GA,JA);eA.value?qA.width=y.resizing.width-ue.deltaX/y.transformScale:qA.width=y.resizing.width+ue.deltaX/y.transformScale,qA.height=y.resizing.height+ue.deltaY/y.transformScale,y.resizing=qA;break}case"resizeend":{WA=sA(_,v,B,p),qA.width=WA.width,qA.height=WA.height,y.resizing={width:-1,height:-1},y.isResizing=!1;break}}WA=BA(qA.height,qA.width),WA.w<i.minW&&(WA.w=i.minW),WA.w>i.maxW&&(WA.w=i.maxW),WA.h<i.minH&&(WA.h=i.minH),WA.h>i.maxH&&(WA.h=i.maxH),WA.h<1&&(WA.h=1),WA.w<1&&(WA.w=1),Y=GA,G=JA,(B!==WA.w||p!==WA.h)&&u("resize",i.i,WA.h,WA.w,qA.height,qA.width),cA.type==="resizeend"&&(K!==B||D!==p)&&u("resized",i.i,WA.h,WA.w,qA.height,qA.width),o.emit("resizeEvent",cA.type,i.i,_,v,WA.h,WA.w)}function AA(cA){if(i.static||y.isResizing)return;const CA=cA.type;if(CA==="dragstart"&&y.isDragging||CA!=="dragstart"&&!y.isDragging)return;const vA=Up(cA);if(In(vA))return;const{x:GA,y:JA}=vA,qA=cA.target;if(!qA.offsetParent)return;const WA={top:0,left:0};switch(CA){case"dragstart":{E=_,L=v;const te=qA.offsetParent.getBoundingClientRect(),LA=qA.getBoundingClientRect(),SA=LA.left/y.transformScale,ZA=te.left/y.transformScale,Be=LA.right/y.transformScale,De=te.right/y.transformScale,Se=LA.top/y.transformScale,YA=te.top/y.transformScale;eA.value?WA.left=(Be-De)*-1:WA.left=SA-ZA,WA.top=Se-YA,y.dragging=WA,y.isDragging=!0;break}case"dragmove":{const te=Yp(N,P,GA,JA);if(eA.value?WA.left=y.dragging.left-te.deltaX/y.transformScale:WA.left=y.dragging.left+te.deltaX/y.transformScale,WA.top=y.dragging.top+te.deltaY/y.transformScale,y.bounded){const LA=qA.offsetParent.clientHeight-EA(i.h,y.rowHeight,y.margin[1]);WA.top=uA(WA.top,0,LA);const SA=dA(),ZA=y.containerWidth-EA(i.w,SA,y.margin[0]);WA.left=uA(WA.left,0,ZA)}y.dragging=WA;break}case"dragend":{const te=qA.offsetParent.getBoundingClientRect(),LA=qA.getBoundingClientRect(),SA=LA.left/y.transformScale,ZA=te.left/y.transformScale,Be=LA.right/y.transformScale,De=te.right/y.transformScale,Se=LA.top/y.transformScale,YA=te.top/y.transformScale;eA.value?WA.left=(Be-De)*-1:WA.left=SA-ZA,WA.top=Se-YA,y.dragging={top:-1,left:-1},y.isDragging=!1;break}}let ue;eA.value,ue=oA(WA.top,WA.left),N=GA,P=JA,(_!==ue.x||v!==ue.y)&&u("move",i.i,ue.x,ue.y),cA.type==="dragend"&&(E!==_||L!==v)&&u("moved",i.i,ue.x,ue.y),o.emit("dragEvent",cA.type,i.i,ue.x,ue.y,p,B)}function sA(cA,CA,vA,GA){const JA=dA();let qA;return eA.value?qA={right:Math.round(JA*cA+(cA+1)*y.margin[0]),top:Math.round(y.rowHeight*CA+(CA+1)*y.margin[1]),width:vA===1/0?vA:Math.round(JA*vA+Math.max(0,vA-1)*y.margin[0]),height:GA===1/0?GA:Math.round(y.rowHeight*GA+Math.max(0,GA-1)*y.margin[1])}:qA={left:Math.round(JA*cA+(cA+1)*y.margin[0]),top:Math.round(y.rowHeight*CA+(CA+1)*y.margin[1]),width:vA===1/0?vA:Math.round(JA*vA+Math.max(0,vA-1)*y.margin[0]),height:GA===1/0?GA:Math.round(y.rowHeight*GA+Math.max(0,GA-1)*y.margin[1])},qA}function oA(cA,CA){const vA=dA();let GA=Math.round((CA-y.margin[0])/(vA+y.margin[0])),JA=Math.round((cA-y.margin[1])/(y.rowHeight+y.margin[1]));return GA=Math.max(Math.min(GA,y.cols-B),0),JA=Math.max(Math.min(JA,y.maxRows-p),0),{x:GA,y:JA}}function dA(){return(y.containerWidth-y.margin[0]*(y.cols+1))/y.cols}function EA(cA,CA,vA){return Number.isFinite(cA)?Math.round(CA*cA+Math.max(0,cA-1)*vA):cA}function uA(cA,CA,vA){return Math.max(Math.min(cA,vA),CA)}function BA(cA,CA,vA=!1){const GA=dA();let JA=Math.round((CA+y.margin[0])/(GA+y.margin[0])),qA=0;return vA?qA=Math.ceil((cA+y.margin[1])/(y.rowHeight+y.margin[1])):qA=Math.round((cA+y.margin[1])/(y.rowHeight+y.margin[1])),JA=Math.max(Math.min(JA,y.cols-_),0),qA=Math.max(Math.min(qA,y.maxRows-v),0),{w:JA,h:qA}}function j(cA,CA){y.containerWidth=cA}function tA(){k()}function rA(){!b.value&&d.value&&(b.value=Jp(d.value),y.useStyleCursor||b.value.styleCursor(!1))}const gA=xp(AA);function z(){if(rA(),!!b.value)if(y.draggable&&!i.static){const cA={ignoreFrom:i.dragIgnoreFrom,allowFrom:i.dragAllowFrom,...i.dragOption};b.value.draggable(cA),w||(w=!0,b.value.on("dragstart dragmove dragend",CA=>{CA.type==="dragmove"?gA(CA):AA(CA)}))}else b.value.draggable({enabled:!1})}const X=xp(H);function iA(){if(rA(),!!b.value)if(y.resizable&&!i.static){const cA=sA(0,0,i.maxW,i.maxH),CA=sA(0,0,i.minW,i.minH),vA={edges:{left:eA.value?`.${q.value[0]}`:!1,right:eA.value?!1:`.${q.value[0]}`,bottom:`.${q.value[0]}`,top:!1},ignoreFrom:i.resizeIgnoreFrom,restrictSize:{min:{height:CA.height*y.transformScale,width:CA.width*y.transformScale},max:{height:cA.height*y.transformScale,width:cA.width*y.transformScale}},...i.resizeOption};i.preserveAspectRatio&&(vA.modifiers=[Jp.modifiers.aspectRatio({ratio:"preserve"})]),b.value.resizable(vA),M||(M=!0,b.value.on("resizestart resizemove resizeend",GA=>{GA.type==="resizemove"?X(GA):H(GA)}))}else b.value.resizable({enabled:!1})}return(cA,CA)=>(A.openBlock(),A.createElementBlock("section",{ref_key:"wrapper",ref:d,class:A.normalizeClass(O.value),style:A.normalizeStyle(y.style)},[A.renderSlot(cA.$slots,"default"),$.value?(A.openBlock(),A.createElementBlock("span",{key:0,class:A.normalizeClass(q.value)},null,2)):A.createCommentVNode("",!0)],6))}}),ro=typeof window<"u";var Zp;ro&&(Zp=window==null?void 0:window.navigator)!=null&&Zp.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Wp(n){return n!=null}function Kr(){}const g_=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(g_)));const u_=ro&&("ontouchstart"in window||h_()>0),d_=u_?"pointerdown":"click";function h_(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function p_(n,e,t=window.Event){const{type:i,bubbles:u=!1,cancelable:I=!1,...o}=e;if(!Wp(i)||i==="")return!1;let b;return Wp(t)?b=new t(i,{bubbles:u,cancelable:I}):(b=document.createEvent("HTMLEvents"),b.initEvent(i,u,I)),Object.assign(b,o),n.dispatchEvent(b)}const C_="clickoutside",B_=new Set;ro&&document.addEventListener(d_,n=>{const e=n.target,t=n.composedPath&&n.composedPath();B_.forEach(i=>{i!==e&&(t?!t.includes(i):!i.contains(e))&&(!i.__transferElement||i.__transferElement!==e&&!i.__transferElement.contains(e))&&p_(i,{type:C_})})},!0);const m_=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let Tr;if(ro){for(const n of m_)if(n[1]in document){Tr=n;break}}const E_=!!Tr;A.computed(()=>!1);const Q_=new Set,I_=new WeakMap;if(ro&&Tr){const n=Tr[2],e=Tr[4];document.addEventListener(e,()=>{if(Q_.forEach(t=>{t.value=!1}),document[n]){const t=I_.get(document[n]);t&&(t.value=!0)}},!1)}const jp=new Map;jp.set("x",0),jp.set("y",0);var ao=[],f_=function(){return ao.some(function(n){return n.activeTargets.length>0})},w_=function(){return ao.some(function(n){return n.skippedTargets.length>0})},qp="ResizeObserver loop completed with undelivered notifications.",b_=function(){var n;typeof ErrorEvent=="function"?n=new ErrorEvent("error",{message:qp}):(n=document.createEvent("Event"),n.initEvent("error",!1,!1),n.message=qp),window.dispatchEvent(n)},Ur;(function(n){n.BORDER_BOX="border-box",n.CONTENT_BOX="content-box",n.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ur||(Ur={}));var so=function(n){return Object.freeze(n)},y_=function(){function n(e,t){this.inlineSize=e,this.blockSize=t,so(this)}return n}(),Xp=function(){function n(e,t,i,u){return this.x=e,this.y=t,this.width=i,this.height=u,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,so(this)}return n.prototype.toJSON=function(){var e=this,t=e.x,i=e.y,u=e.top,I=e.right,o=e.bottom,b=e.left,y=e.width,w=e.height;return{x:t,y:i,top:u,right:I,bottom:o,left:b,width:y,height:w}},n.fromRect=function(e){return new n(e.x,e.y,e.width,e.height)},n}(),eg=function(n){return n instanceof SVGElement&&"getBBox"in n},Vp=function(n){if(eg(n)){var e=n.getBBox(),t=e.width,i=e.height;return!t&&!i}var u=n,I=u.offsetWidth,o=u.offsetHeight;return!(I||o||n.getClientRects().length)},AC=function(n){var e;if(n instanceof Element)return!0;var t=(e=n==null?void 0:n.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(t&&n instanceof t.Element)},D_=function(n){switch(n.tagName){case"INPUT":if(n.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Yr=typeof window<"u"?window:{},Bs=new WeakMap,eC=/auto|scroll/,v_=/^tb|vertical/,k_=/msie|trident/i.test(Yr.navigator&&Yr.navigator.userAgent),Ai=function(n){return parseFloat(n||"0")},$o=function(n,e,t){return n===void 0&&(n=0),e===void 0&&(e=0),t===void 0&&(t=!1),new y_((t?e:n)||0,(t?n:e)||0)},tC=so({devicePixelContentBoxSize:$o(),borderBoxSize:$o(),contentBoxSize:$o(),contentRect:new Xp(0,0,0,0)}),nC=function(n,e){if(e===void 0&&(e=!1),Bs.has(n)&&!e)return Bs.get(n);if(Vp(n))return Bs.set(n,tC),tC;var t=getComputedStyle(n),i=eg(n)&&n.ownerSVGElement&&n.getBBox(),u=!k_&&t.boxSizing==="border-box",I=v_.test(t.writingMode||""),o=!i&&eC.test(t.overflowY||""),b=!i&&eC.test(t.overflowX||""),y=i?0:Ai(t.paddingTop),w=i?0:Ai(t.paddingRight),M=i?0:Ai(t.paddingBottom),N=i?0:Ai(t.paddingLeft),P=i?0:Ai(t.borderTopWidth),Y=i?0:Ai(t.borderRightWidth),G=i?0:Ai(t.borderBottomWidth),K=i?0:Ai(t.borderLeftWidth),D=N+w,E=y+M,L=K+Y,_=P+G,v=b?n.offsetHeight-_-n.clientHeight:0,B=o?n.offsetWidth-L-n.clientWidth:0,p=u?D+L:0,d=u?E+_:0,l=i?i.width:Ai(t.width)-p-B,g=i?i.height:Ai(t.height)-d-v,s=l+D+B+L,h=g+E+v+_,C=so({devicePixelContentBoxSize:$o(Math.round(l*devicePixelRatio),Math.round(g*devicePixelRatio),I),borderBoxSize:$o(s,h,I),contentBoxSize:$o(l,g,I),contentRect:new Xp(N,y,l,g)});return Bs.set(n,C),C},iC=function(n,e,t){var i=nC(n,t),u=i.borderBoxSize,I=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(e){case Ur.DEVICE_PIXEL_CONTENT_BOX:return o;case Ur.BORDER_BOX:return u;default:return I}},__=function(){function n(e){var t=nC(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=so([t.borderBoxSize]),this.contentBoxSize=so([t.contentBoxSize]),this.devicePixelContentBoxSize=so([t.devicePixelContentBoxSize])}return n}(),oC=function(n){if(Vp(n))return 1/0;for(var e=0,t=n.parentNode;t;)e+=1,t=t.parentNode;return e},M_=function(){var n=1/0,e=[];ao.forEach(function(I){if(I.activeTargets.length!==0){var o=[];I.activeTargets.forEach(function(b){var y=new __(b.target),w=oC(b.target);o.push(y),b.lastReportedSize=iC(b.target,b.observedBox),w<n&&(n=w)}),e.push(function(){I.callback.call(I.observer,o,I.observer)}),I.activeTargets.splice(0,I.activeTargets.length)}});for(var t=0,i=e;t<i.length;t++){var u=i[t];u()}return n},rC=function(n){ao.forEach(function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach(function(t){t.isActive()&&(oC(t.target)>n?e.activeTargets.push(t):e.skippedTargets.push(t))})})},x_=function(){var n=0;for(rC(n);f_();)n=M_(),rC(n);return w_()&&b_(),n>0},tg,aC=[],S_=function(){return aC.splice(0).forEach(function(n){return n()})},N_=function(n){if(!tg){var e=0,t=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return S_()}).observe(t,i),tg=function(){t.textContent="".concat(e?e--:e++)}}aC.push(n),tg()},F_=function(n){N_(function(){requestAnimationFrame(n)})},ms=0,R_=function(){return!!ms},L_=250,G_={attributes:!0,characterData:!0,childList:!0,subtree:!0},sC=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],lC=function(n){return n===void 0&&(n=0),Date.now()+n},ng=!1,P_=function(){function n(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return n.prototype.run=function(e){var t=this;if(e===void 0&&(e=L_),!ng){ng=!0;var i=lC(e);F_(function(){var u=!1;try{u=x_()}finally{if(ng=!1,e=i-lC(),!R_())return;u?t.run(1e3):e>0?t.run(e):t.start()}})}},n.prototype.schedule=function(){this.stop(),this.run()},n.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,G_)};document.body?t():Yr.addEventListener("DOMContentLoaded",t)},n.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),sC.forEach(function(t){return Yr.addEventListener(t,e.listener,!0)}))},n.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),sC.forEach(function(t){return Yr.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},n}(),ig=new P_,cC=function(n){!ms&&n>0&&ig.start(),ms+=n,!ms&&ig.stop()},H_=function(n){return!eg(n)&&!D_(n)&&getComputedStyle(n).display==="inline"},K_=function(){function n(e,t){this.target=e,this.observedBox=t||Ur.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return n.prototype.isActive=function(){var e=iC(this.target,this.observedBox,!0);return H_(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},n}(),T_=function(){function n(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return n}(),Es=new WeakMap,gC=function(n,e){for(var t=0;t<n.length;t+=1)if(n[t].target===e)return t;return-1},Qs=function(){function n(){}return n.connect=function(e,t){var i=new T_(e,t);Es.set(e,i)},n.observe=function(e,t,i){var u=Es.get(e),I=u.observationTargets.length===0;gC(u.observationTargets,t)<0&&(I&&ao.push(u),u.observationTargets.push(new K_(t,i&&i.box)),cC(1),ig.schedule())},n.unobserve=function(e,t){var i=Es.get(e),u=gC(i.observationTargets,t),I=i.observationTargets.length===1;u>=0&&(I&&ao.splice(ao.indexOf(i),1),i.observationTargets.splice(u,1),cC(-1))},n.disconnect=function(e){var t=this,i=Es.get(e);i.observationTargets.slice().forEach(function(u){return t.unobserve(e,u.target)}),i.activeTargets.splice(0,i.activeTargets.length)},n}(),U_=function(){function n(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Qs.connect(this,e)}return n.prototype.observe=function(e,t){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!AC(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Qs.observe(this,e,t)},n.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!AC(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Qs.unobserve(this,e)},n.prototype.disconnect=function(){Qs.disconnect(this)},n.toString=function(){return"function ResizeObserver () { [polyfill code] }"},n}();const Is=new WeakMap;function Y_(n){var e;for(let t=0,i=n.length;t<i;++t){const u=n[t],I=Is.get(u.target);if(typeof I=="function"){const{inlineSize:o,blockSize:b}=(e=u.borderBoxSize)==null?void 0:e[0],{offsetWidth:y,offsetHeight:w}=u.target;I(Object.assign(u,{offsetWidth:y,offsetHeight:w,width:o??y,height:b??w}))}}}const uC=new(ro&&window.ResizeObserver||U_)(Y_);function dC(n,e){Is.set(n,e),uC.observe(n)}function hC(n){Is.has(n)&&(uC.unobserve(n),Is.delete(n))}function O_(n={}){let e=Kr;const t=A.watch(()=>A.unref(n.target),u=>{e(),!(!u||typeof n.onResize!="function")&&(dC(u,n.onResize),e=()=>{hC(u),e=Kr})},{immediate:!0}),i=()=>{t(),e()};return A.getCurrentScope()&&A.onScopeDispose(i),{observeResize:dC,unobserveResize:hC,unobserve:i}}const $_=A.ref(!1);A.computed(()=>$_.value);const pC="__theme_style__",og="__theme_observer__",CC=A.reactive(new Map),BC=new Map;A.watch(CC,()=>{if(!ro)return;BC.clear();const n=document.head.querySelector(`#${pC}`);n&&document.head.removeChild(n);const e=document.createElement("style");let t=`.${og} { width: 1px }`,i=1;for(const[u,[I,o]]of CC.entries())t+=` html.${I} .${og}, .${o} .${og} { width: ${++i}px }`,BC.set(i,u);e.textContent=t,e.id=pC,document.head.appendChild(e)});const z_=A.defineComponent({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(n,{expose:e,emit:t}){const i=n,u=t,I=A.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),o=new Map,b=A.ref(i.layout),y=A.ref(),{observeResize:w,unobserveResize:M}=O_(),N=$k();N.on("resizeEvent",P),N.on("dragEvent",Y),A.onBeforeMount(()=>{u("layout-before-mount",b.value)}),A.onMounted(()=>{u("layout-mounted",b.value),A.nextTick(()=>{t_(b.value),I.originalLayout=b.value,A.nextTick(()=>{g(),y.value&&w(y.value,zk(_,16)),Oo(b.value,i.verticalCompact),u("layout-updated",b.value),L(),_()})})}),A.onBeforeUnmount(()=>{N.clearAll(),y.value&&M(y.value)});function P(h,C,a,r,m,Q){d(h,C,a,r,m,Q)}function Y(h,C,a,r,m,Q){p(h,C,a,r,m,Q)}A.watch(()=>I.width,(h,C)=>{A.nextTick(()=>{N.emit("updateWidth",h),C===-1&&A.nextTick(()=>{u("layout-ready",b.value)}),L()})}),A.watch(()=>[i.layout,i.layout.length],()=>{b.value=i.layout,E()}),A.watch(()=>i.colNum,h=>{N.emit("setColNum",h)}),A.watch(()=>i.rowHeight,h=>{N.emit("setRowHeight",h)}),A.watch(()=>i.isDraggable,h=>{N.emit("setDraggable",h)}),A.watch(()=>i.isResizable,h=>{N.emit("setResizable",h)}),A.watch(()=>i.isBounded,h=>{N.emit("setBounded",h)}),A.watch(()=>i.transformScale,h=>{N.emit("setTransformScale",h)}),A.watch(()=>i.responsive,h=>{h||(u("update:layout",I.originalLayout),N.emit("setColNum",i.colNum)),_()}),A.watch(()=>i.maxRows,h=>{N.emit("setMaxRows",h)}),A.watch([()=>i.margin,()=>i.margin[1]],L),A.provide(Fp,A.reactive({...A.toRefs(i),...A.toRefs(I),increaseItem:G,decreaseItem:K})),A.provide(Rp,N),e({state:I,getItem:D,resizeEvent:d,dragEvent:p,layoutUpdate:E});function G(h){o.set(h.i,h)}function K(h){o.delete(h.i)}function D(h){return o.get(h)}function E(){if(!In(b.value)&&!In(I.originalLayout)){if(b.value.length!==I.originalLayout.length){const h=s(b.value,I.originalLayout);if(h.length>0)if(b.value.length>I.originalLayout.length)I.originalLayout=I.originalLayout.concat(h);else{const C=new Set(h.map(a=>a.i));I.originalLayout=I.originalLayout.filter(a=>!C.has(a.i))}I.lastLayoutLength=b.value.length,g()}Oo(b.value,i.verticalCompact),N.emit("updateWidth",I.width),L(),u("layout-updated",b.value)}}function L(){I.mergedStyle={height:v()}}function _(){y.value&&(I.width=y.value.offsetWidth),N.emit("resizeEvent")}function v(){if(!i.autoSize)return;const h=parseFloat(i.margin[1]);return Zk(b.value)*(i.rowHeight+h)+h+"px"}let B;function p(h,C,a,r,m,Q){let x=Gp(b.value,C);In(x)&&(x={h:0,w:0,x:0,y:0,i:""}),h==="dragstart"&&!i.verticalCompact&&(B=b.value.reduce((S,{i:T,x:$,y:eA})=>({...S,[T]:{x:$,y:eA}}),{})),h==="dragmove"||h==="dragstart"?(I.placeholder.i=C,I.placeholder.x=x.x,I.placeholder.y=x.y,I.placeholder.w=Q,I.placeholder.h=m,A.nextTick(()=>{I.isDragging=!0}),N.emit("updateWidth",I.width)):A.nextTick(()=>{I.isDragging=!1}),b.value=Vc(b.value,x,a,r,!0,i.preventCollision),i.restoreOnDrag?(x.static=!0,Oo(b.value,i.verticalCompact,B),x.static=!1):Oo(b.value,i.verticalCompact),N.emit("compact"),L(),h==="dragend"&&(B=void 0,u("layout-updated",b.value))}function d(h,C,a,r,m,Q){let x=Gp(b.value,C);In(x)&&(x={h:0,w:0,x:0,y:0,i:""});let S;if(i.preventCollision){const T=Pp(b.value,{...x,w:Q,h:m}).filter($=>$.i!==x.i);if(S=T.length>0,S){let $=1/0,eA=1/0;T.forEach(W=>{W.x>x.x&&($=Math.min($,W.x)),W.y>x.y&&(eA=Math.min(eA,W.y))}),Number.isFinite($)&&(x.w=$-x.x),Number.isFinite(eA)&&(x.h=eA-x.y)}}S||(x.w=Q,x.h=m),h==="resizestart"||h==="resizemove"?(I.placeholder.i=C,I.placeholder.x=a,I.placeholder.y=r,I.placeholder.w=x.w,I.placeholder.h=x.h,A.nextTick(()=>{I.isDragging=!0}),N.emit("updateWidth",I.width)):h&&A.nextTick(()=>{I.isDragging=!1}),i.responsive&&l(),Oo(b.value,i.verticalCompact),N.emit("compact"),L(),h==="resizeend"&&u("layout-updated",b.value)}function l(){const h=r_(i.breakpoints,I.width);if(h===I.lastBreakpoint)return;const C=Op(h,i.cols);!In(I.lastBreakpoint)&&!I.layouts[I.lastBreakpoint]&&(I.layouts[I.lastBreakpoint]=Xc(b.value));const a=a_(I.originalLayout,I.layouts,i.breakpoints,h,I.lastBreakpoint,C,i.verticalCompact);I.layouts[h]=a,I.lastBreakpoint!==h&&u("breakpoint-changed",h,a),b.value=a,u("update:layout",a),I.lastBreakpoint=h,N.emit("setColNum",C)}function g(){I.layouts=Object.assign({},i.responsiveLayouts)}function s(h,C){const a=new Set(C.map(x=>x.i)),r=new Set(h.map(x=>x.i)),m=h.filter(x=>!a.has(x.i)),Q=C.filter(x=>!r.has(x.i));return m.concat(Q)}return(h,C)=>(A.openBlock(),A.createElementBlock("div",{ref_key:"wrapper",ref:y,class:"vgl-layout",style:A.normalizeStyle(I.mergedStyle)},[h.$slots.default?A.renderSlot(h.$slots,"default",{key:0}):(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:1},A.renderList(b.value,a=>(A.openBlock(),A.createBlock(Ag,A.mergeProps({key:a.i,ref_for:!0},a),{default:A.withCtx(()=>[A.renderSlot(h.$slots,"item",{item:a})]),_:2},1040))),128)),A.withDirectives(A.createVNode(Ag,{class:"vgl-item--placeholder",x:I.placeholder.x,y:I.placeholder.y,w:I.placeholder.w,h:I.placeholder.h,i:I.placeholder.i},null,8,["x","y","w","h","i"]),[[A.vShow,I.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var n=document.createElement("style");n.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(n)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();const mt=A.defineComponent({__name:"FormItemGroup",props:A.mergeModels({list:{}},{gridData:{},gridDataModifiers:{}}),emits:A.mergeModels(["gridItemMoved"],["update:gridData"]),setup(n,{emit:e}){const t=A.useModel(n,"gridData"),i=gi(),u=It(),I=A.ref({});function o(N,P){N&&(I.value[P]=N)}let b=[];const y=()=>{if(!t.value)return;const N=new Map;for(const P of t.value)N.has(P.x)||N.set(P.x,[]),N.get(P.x).push(P);for(const P of N.values()){P.sort((G,K)=>G.y-K.y);let Y=0;for(const G of P)G.y=Y,Y+=G.h}t.value=[...t.value]},w=e,M=()=>{w("gridItemMoved")};return A.onMounted(()=>{Object.keys(I.value).forEach(N=>{const P=I.value[N];if(!P)return;const Y=new ResizeObserver(G=>{for(let K of G){const D=K.contentRect.height+28;if(t.value){const E=t.value[0].rowHeight||30,L=t.value.find(_=>_.i===N);L&&(L.contentHeight=Math.ceil((D+8)/(E+8)),L.h>0&&(L.h=Math.ceil((D+8)/(E+8))))}}y()});Y.observe(P),b.push(Y)})}),A.onBeforeUnmount(()=>{b.forEach(N=>N.disconnect()),b=[]}),(N,P)=>A.unref(u).design?(A.openBlock(),A.createBlock(qc,{key:0,list:N.list,"empty-text":A.unref(i).canvas.emptyTip,"empty-size":18},null,8,["list","empty-text"])):t.value?(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:1},A.renderList(t.value,(Y,G)=>(A.openBlock(),A.createBlock(A.unref(Ag),{onMoved:M,key:Y.i,x:Y.x,y:Y.y,w:Y.w,h:Y.h,i:Y.i,class:A.normalizeClass(Y.h===0?"noPadding":"defaultPadding")},{default:A.withCtx(()=>[A.createElementVNode("div",{ref_for:!0,ref:K=>o(K,Y.i)},[A.createVNode(oo,A.mergeProps({ref_for:!0},N.list[G]),null,16)],512)]),_:2},1032,["x","y","w","h","i","class"]))),128)):(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:2},A.renderList(N.list,Y=>(A.openBlock(),A.createBlock(oo,A.mergeProps({key:Y.name,ref_for:!0},Y),null,16))),128))}}),J_={key:0,class:"btn-render-wrapper"},lo=ie(A.defineComponent({__name:"ButtonRender",props:{btns:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=A.ref({}),u=async o=>{if(o.onClick&&e){try{i.value[o.key]=!0,await e[o.onClick](t,o)}catch(b){console.error(b+`
105
- onClick: ${o.onClick}`)}i.value[o.key]=!1}},I=o=>({...o,name:o.key,component:"Popover"});return(o,b)=>{const y=A.resolveComponent("el-button"),w=A.resolveComponent("el-tooltip"),M=A.resolveComponent("el-button-group");return o.btns&&o.btns.length>0?(A.openBlock(),A.createElementBlock("div",J_,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(o.btns,N=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:N.key},[N.component==="Popover"?(A.openBlock(),A.createBlock(mt,{key:0,list:[I(N)]},null,8,["list"])):N.component==="BtnGroup"?(A.openBlock(),A.createBlock(M,{key:1},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(N.children,P=>(A.openBlock(),A.createBlock(w,{key:P.key,disabled:!P.tooltip,content:P.tooltip,placement:"top"},{default:A.withCtx(()=>[P.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(y,{key:P.key,onClick:Y=>u(P),disabled:P.disabled,type:P.type,text:P.isTextBtn,link:P.isLinkBtn,plain:P.isPlainBtn||P.type!=="primary"&&!P.orange,color:P.orange?"#FAA21E":P.color,loading:i.value[P.key],class:A.normalizeClass({orangeBtn:P.orange})},{default:A.withCtx(()=>[P.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:P.icon.name,color:P.icon.color,class:A.normalizeClass({"btn-icon":P.text||P.label})},null,8,["name","color","class"])):A.createCommentVNode("",!0),A.createTextVNode(" "+A.toDisplayString(P.text||P.label),1)]),_:2},1032,["onClick","disabled","type","text","link","plain","color","loading","class"]))]),_:2},1032,["disabled","content"]))),128))]),_:2},1024)):N.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(y,{key:2,onClick:P=>u(N),disabled:N.disabled,type:N.type,text:N.isTextBtn,link:N.isLinkBtn,plain:N.isPlainBtn||N.type!=="primary"&&!N.orange,color:N.orange?"#FAA21E":N.color,loading:i.value[N.key],size:N.size,style:A.normalizeStyle(N.style),class:A.normalizeClass({orangeBtn:N.orange})},{default:A.withCtx(()=>{var P;return[A.createElementVNode("div",{class:A.normalizeClass(["flex items-center gap-2 direction",{"flex-row-reverse":N.isReverse}])},[N.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:N.icon.name,color:N.icon.color,size:((P=N==null?void 0:N.icon)==null?void 0:P.size)||"small",class:A.normalizeClass({"btn-icon":N.text||N.label})},null,8,["name","color","size","class"])):A.createCommentVNode("",!0),A.createTextVNode(" "+A.toDisplayString(N.text||N.label),1)],2)]}),_:2},1032,["onClick","disabled","type","text","link","plain","color","loading","size","style","class"]))],64))),128))])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-49a497b9"]]),Z_={key:0,class:"dropdown-render-wrapper"},W_=ie(A.defineComponent({__name:"dropdownRender",props:{dropdowns:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=async(u,I)=>{if(I.onClick&&e)try{await e[I.onClick](t,u)}catch(o){console.error(o+`
104
+ */function Zh(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),t.push.apply(t,i)}return t}function qn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Zh(Object(t),!0).forEach(function(i){G1(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Zh(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function As(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?As=function(e){return typeof e}:As=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},As(n)}function G1(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function di(){return di=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},di.apply(this,arguments)}function P1(n,e){if(n==null)return{};var t={},i=Object.keys(n),u,I;for(I=0;I<i.length;I++)u=i[I],!(e.indexOf(u)>=0)&&(t[u]=n[u]);return t}function H1(n,e){if(n==null)return{};var t=P1(n,e),i,u;if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(n);for(u=0;u<I.length;u++)i=I[u],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}var K1="1.14.0";function hi(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var pi=hi(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),kr=hi(/Edge/i),Wh=hi(/firefox/i),_r=hi(/safari/i)&&!hi(/chrome/i)&&!hi(/android/i),jh=hi(/iP(ad|od|hone)/i),T1=hi(/chrome/i)&&hi(/android/i),qh={capture:!1,passive:!1};function it(n,e,t){n.addEventListener(e,t,!pi&&qh)}function et(n,e,t){n.removeEventListener(e,t,!pi&&qh)}function es(n,e){if(e){if(e[0]===">"&&(e=e.substring(1)),n)try{if(n.matches)return n.matches(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e)}catch{return!1}return!1}}function U1(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function Xn(n,e,t,i){if(n){t=t||document;do{if(e!=null&&(e[0]===">"?n.parentNode===t&&es(n,e):es(n,e))||i&&n===t)return n;if(n===t)break}while(n=U1(n))}return null}var Xh=/\s+/g;function mn(n,e,t){if(n&&e)if(n.classList)n.classList[t?"add":"remove"](e);else{var i=(" "+n.className+" ").replace(Xh," ").replace(" "+e+" "," ");n.className=(i+(t?" "+e:"")).replace(Xh," ")}}function Le(n,e,t){var i=n&&n.style;if(i){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(t=n.currentStyle),e===void 0?t:t[e];!(e in i)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),i[e]=t+(typeof t=="string"?"":"px")}}function Po(n,e){var t="";if(typeof n=="string")t=n;else do{var i=Le(n,"transform");i&&i!=="none"&&(t=i+" "+t)}while(!e&&(n=n.parentNode));var u=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return u&&new u(t)}function Vh(n,e,t){if(n){var i=n.getElementsByTagName(e),u=0,I=i.length;if(t)for(;u<I;u++)t(i[u],u);return i}return[]}function Vn(){var n=document.scrollingElement;return n||document.documentElement}function xt(n,e,t,i,u){if(!(!n.getBoundingClientRect&&n!==window)){var I,o,b,y,w,M,N;if(n!==window&&n.parentNode&&n!==Vn()?(I=n.getBoundingClientRect(),o=I.top,b=I.left,y=I.bottom,w=I.right,M=I.height,N=I.width):(o=0,b=0,y=window.innerHeight,w=window.innerWidth,M=window.innerHeight,N=window.innerWidth),(e||t)&&n!==window&&(u=u||n.parentNode,!pi))do if(u&&u.getBoundingClientRect&&(Le(u,"transform")!=="none"||t&&Le(u,"position")!=="static")){var P=u.getBoundingClientRect();o-=P.top+parseInt(Le(u,"border-top-width")),b-=P.left+parseInt(Le(u,"border-left-width")),y=o+I.height,w=b+I.width;break}while(u=u.parentNode);if(i&&n!==window){var Y=Po(u||n),G=Y&&Y.a,K=Y&&Y.d;Y&&(o/=K,b/=G,N/=G,M/=K,y=o+M,w=b+N)}return{top:o,left:b,bottom:y,right:w,width:N,height:M}}}function Ap(n,e,t){for(var i=Fi(n,!0),u=xt(n)[e];i;){var I=xt(i)[t],o=void 0;if(o=u>=I,!o)return i;if(i===Vn())break;i=Fi(i,!1)}return!1}function Ho(n,e,t,i){for(var u=0,I=0,o=n.children;I<o.length;){if(o[I].style.display!=="none"&&o[I]!==Ge.ghost&&(i||o[I]!==Ge.dragged)&&Xn(o[I],t.draggable,n,!1)){if(u===e)return o[I];u++}I++}return null}function Sc(n,e){for(var t=n.lastElementChild;t&&(t===Ge.ghost||Le(t,"display")==="none"||e&&!es(t,e));)t=t.previousElementSibling;return t||null}function xn(n,e){var t=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==Ge.clone&&(!e||es(n,e))&&t++;return t}function ep(n){var e=0,t=0,i=Vn();if(n)do{var u=Po(n),I=u.a,o=u.d;e+=n.scrollLeft*I,t+=n.scrollTop*o}while(n!==i&&(n=n.parentNode));return[e,t]}function Y1(n,e){for(var t in n)if(n.hasOwnProperty(t)){for(var i in e)if(e.hasOwnProperty(i)&&e[i]===n[t][i])return Number(t)}return-1}function Fi(n,e){if(!n||!n.getBoundingClientRect)return Vn();var t=n,i=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var u=Le(t);if(t.clientWidth<t.scrollWidth&&(u.overflowX=="auto"||u.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(u.overflowY=="auto"||u.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return Vn();if(i||e)return t;i=!0}}while(t=t.parentNode);return Vn()}function O1(n,e){if(n&&e)for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Nc(n,e){return Math.round(n.top)===Math.round(e.top)&&Math.round(n.left)===Math.round(e.left)&&Math.round(n.height)===Math.round(e.height)&&Math.round(n.width)===Math.round(e.width)}var Mr;function tp(n,e){return function(){if(!Mr){var t=arguments,i=this;t.length===1?n.call(i,t[0]):n.apply(i,t),Mr=setTimeout(function(){Mr=void 0},e)}}}function $1(){clearTimeout(Mr),Mr=void 0}function np(n,e,t){n.scrollLeft+=e,n.scrollTop+=t}function ip(n){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(n).cloneNode(!0):t?t(n).clone(!0)[0]:n.cloneNode(!0)}var En="Sortable"+new Date().getTime();function z1(){var n=[],e;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(u){if(!(Le(u,"display")==="none"||u===Ge.ghost)){n.push({target:u,rect:xt(u)});var I=qn({},n[n.length-1].rect);if(u.thisAnimationDuration){var o=Po(u,!0);o&&(I.top-=o.f,I.left-=o.e)}u.fromRect=I}})}},addAnimationState:function(i){n.push(i)},removeAnimationState:function(i){n.splice(Y1(n,{target:i}),1)},animateAll:function(i){var u=this;if(!this.options.animation){clearTimeout(e),typeof i=="function"&&i();return}var I=!1,o=0;n.forEach(function(b){var y=0,w=b.target,M=w.fromRect,N=xt(w),P=w.prevFromRect,Y=w.prevToRect,G=b.rect,K=Po(w,!0);K&&(N.top-=K.f,N.left-=K.e),w.toRect=N,w.thisAnimationDuration&&Nc(P,N)&&!Nc(M,N)&&(G.top-N.top)/(G.left-N.left)===(M.top-N.top)/(M.left-N.left)&&(y=Z1(G,P,Y,u.options)),Nc(N,M)||(w.prevFromRect=M,w.prevToRect=N,y||(y=u.options.animation),u.animate(w,G,N,y)),y&&(I=!0,o=Math.max(o,y),clearTimeout(w.animationResetTimer),w.animationResetTimer=setTimeout(function(){w.animationTime=0,w.prevFromRect=null,w.fromRect=null,w.prevToRect=null,w.thisAnimationDuration=null},y),w.thisAnimationDuration=y)}),clearTimeout(e),I?e=setTimeout(function(){typeof i=="function"&&i()},o):typeof i=="function"&&i(),n=[]},animate:function(i,u,I,o){if(o){Le(i,"transition",""),Le(i,"transform","");var b=Po(this.el),y=b&&b.a,w=b&&b.d,M=(u.left-I.left)/(y||1),N=(u.top-I.top)/(w||1);i.animatingX=!!M,i.animatingY=!!N,Le(i,"transform","translate3d("+M+"px,"+N+"px,0)"),this.forRepaintDummy=J1(i),Le(i,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),Le(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){Le(i,"transition",""),Le(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},o)}}}}function J1(n){return n.offsetWidth}function Z1(n,e,t,i){return Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*i.animation}var Ko=[],Fc={initializeByDefault:!0},xr={mount:function(e){for(var t in Fc)Fc.hasOwnProperty(t)&&!(t in e)&&(e[t]=Fc[t]);Ko.forEach(function(i){if(i.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Ko.push(e)},pluginEvent:function(e,t,i){var u=this;this.eventCanceled=!1,i.cancel=function(){u.eventCanceled=!0};var I=e+"Global";Ko.forEach(function(o){t[o.pluginName]&&(t[o.pluginName][I]&&t[o.pluginName][I](qn({sortable:t},i)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](qn({sortable:t},i)))})},initializePlugins:function(e,t,i,u){Ko.forEach(function(b){var y=b.pluginName;if(!(!e.options[y]&&!b.initializeByDefault)){var w=new b(e,t,e.options);w.sortable=e,w.options=e.options,e[y]=w,di(i,w.defaults)}});for(var I in e.options)if(e.options.hasOwnProperty(I)){var o=this.modifyOption(e,I,e.options[I]);typeof o<"u"&&(e.options[I]=o)}},getEventProperties:function(e,t){var i={};return Ko.forEach(function(u){typeof u.eventProperties=="function"&&di(i,u.eventProperties.call(t[u.pluginName],e))}),i},modifyOption:function(e,t,i){var u;return Ko.forEach(function(I){e[I.pluginName]&&I.optionListeners&&typeof I.optionListeners[t]=="function"&&(u=I.optionListeners[t].call(e[I.pluginName],i))}),u}};function W1(n){var e=n.sortable,t=n.rootEl,i=n.name,u=n.targetEl,I=n.cloneEl,o=n.toEl,b=n.fromEl,y=n.oldIndex,w=n.newIndex,M=n.oldDraggableIndex,N=n.newDraggableIndex,P=n.originalEvent,Y=n.putSortable,G=n.extraEventProperties;if(e=e||t&&t[En],!!e){var K,D=e.options,E="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!pi&&!kr?K=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(K=document.createEvent("Event"),K.initEvent(i,!0,!0)),K.to=o||t,K.from=b||t,K.item=u||t,K.clone=I,K.oldIndex=y,K.newIndex=w,K.oldDraggableIndex=M,K.newDraggableIndex=N,K.originalEvent=P,K.pullMode=Y?Y.lastPutMode:void 0;var L=qn(qn({},G),xr.getEventProperties(i,e));for(var _ in L)K[_]=L[_];t&&t.dispatchEvent(K),D[E]&&D[E].call(e,K)}}var j1=["evt"],ln=function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=i.evt,I=H1(i,j1);xr.pluginEvent.bind(Ge)(e,t,qn({dragEl:me,parentEl:ft,ghostEl:Ye,rootEl:mt,nextEl:to,lastDownEl:ts,cloneEl:wt,cloneHidden:Ri,dragStarted:Nr,putSortable:Kt,activeSortable:Ge.active,originalEvent:u,oldIndex:To,oldDraggableIndex:Sr,newIndex:Qn,newDraggableIndex:Li,hideGhostForTarget:gp,unhideGhostForTarget:up,cloneNowHidden:function(){Ri=!0},cloneNowShown:function(){Ri=!1},dispatchSortableEvent:function(b){Wt({sortable:t,name:b,originalEvent:u})}},I))};function Wt(n){W1(qn({putSortable:Kt,cloneEl:wt,targetEl:me,rootEl:mt,oldIndex:To,oldDraggableIndex:Sr,newIndex:Qn,newDraggableIndex:Li},n))}var me,ft,Ye,mt,to,ts,wt,Ri,To,Qn,Sr,Li,ns,Kt,Uo=!1,is=!1,os=[],no,Yn,Rc,Lc,op,rp,Nr,Yo,Fr,Rr=!1,rs=!1,as,Ot,Gc=[],Pc=!1,ss=[],ls=typeof document<"u",cs=jh,ap=kr||pi?"cssFloat":"float",q1=ls&&!T1&&!jh&&"draggable"in document.createElement("div"),sp=function(){if(ls){if(pi)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),lp=function(e,t){var i=Le(e),u=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),I=Ho(e,0,t),o=Ho(e,1,t),b=I&&Le(I),y=o&&Le(o),w=b&&parseInt(b.marginLeft)+parseInt(b.marginRight)+xt(I).width,M=y&&parseInt(y.marginLeft)+parseInt(y.marginRight)+xt(o).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(I&&b.float&&b.float!=="none"){var N=b.float==="left"?"left":"right";return o&&(y.clear==="both"||y.clear===N)?"vertical":"horizontal"}return I&&(b.display==="block"||b.display==="flex"||b.display==="table"||b.display==="grid"||w>=u&&i[ap]==="none"||o&&i[ap]==="none"&&w+M>u)?"vertical":"horizontal"},X1=function(e,t,i){var u=i?e.left:e.top,I=i?e.right:e.bottom,o=i?e.width:e.height,b=i?t.left:t.top,y=i?t.right:t.bottom,w=i?t.width:t.height;return u===b||I===y||u+o/2===b+w/2},V1=function(e,t){var i;return os.some(function(u){var I=u[En].options.emptyInsertThreshold;if(!(!I||Sc(u))){var o=xt(u),b=e>=o.left-I&&e<=o.right+I,y=t>=o.top-I&&t<=o.bottom+I;if(b&&y)return i=u}}),i},cp=function(e){function t(I,o){return function(b,y,w,M){var N=b.options.group.name&&y.options.group.name&&b.options.group.name===y.options.group.name;if(I==null&&(o||N))return!0;if(I==null||I===!1)return!1;if(o&&I==="clone")return I;if(typeof I=="function")return t(I(b,y,w,M),o)(b,y,w,M);var P=(o?b:y).options.group.name;return I===!0||typeof I=="string"&&I===P||I.join&&I.indexOf(P)>-1}}var i={},u=e.group;(!u||As(u)!="object")&&(u={name:u}),i.name=u.name,i.checkPull=t(u.pull,!0),i.checkPut=t(u.put),i.revertClone=u.revertClone,e.group=i},gp=function(){!sp&&Ye&&Le(Ye,"display","none")},up=function(){!sp&&Ye&&Le(Ye,"display","")};ls&&document.addEventListener("click",function(n){if(is)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),is=!1,!1},!0);var io=function(e){if(me){e=e.touches?e.touches[0]:e;var t=V1(e.clientX,e.clientY);if(t){var i={};for(var u in e)e.hasOwnProperty(u)&&(i[u]=e[u]);i.target=i.rootEl=t,i.preventDefault=void 0,i.stopPropagation=void 0,t[En]._onDragOver(i)}}},Ak=function(e){me&&me.parentNode[En]._isOutsideThisEl(e.target)};function Ge(n,e){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=e=di({},e),n[En]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return lp(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,b){o.setData("Text",b.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Ge.supportPointer!==!1&&"PointerEvent"in window&&!_r,emptyInsertThreshold:5};xr.initializePlugins(this,n,t);for(var i in t)!(i in e)&&(e[i]=t[i]);cp(e);for(var u in this)u.charAt(0)==="_"&&typeof this[u]=="function"&&(this[u]=this[u].bind(this));this.nativeDraggable=e.forceFallback?!1:q1,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?it(n,"pointerdown",this._onTapStart):(it(n,"mousedown",this._onTapStart),it(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(it(n,"dragover",this),it(n,"dragenter",this)),os.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),di(this,z1())}Ge.prototype={constructor:Ge,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Yo=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,me):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,i=this.el,u=this.options,I=u.preventOnFilter,o=e.type,b=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,y=(b||e).target,w=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||y,M=u.filter;if(sk(i),!me&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||u.disabled)&&!w.isContentEditable&&!(!this.nativeDraggable&&_r&&y&&y.tagName.toUpperCase()==="SELECT")&&(y=Xn(y,u.draggable,i,!1),!(y&&y.animated)&&ts!==y)){if(To=xn(y),Sr=xn(y,u.draggable),typeof M=="function"){if(M.call(this,e,y,this)){Wt({sortable:t,rootEl:w,name:"filter",targetEl:y,toEl:i,fromEl:i}),ln("filter",t,{evt:e}),I&&e.cancelable&&e.preventDefault();return}}else if(M&&(M=M.split(",").some(function(N){if(N=Xn(w,N.trim(),i,!1),N)return Wt({sortable:t,rootEl:N,name:"filter",targetEl:y,fromEl:i,toEl:i}),ln("filter",t,{evt:e}),!0}),M)){I&&e.cancelable&&e.preventDefault();return}u.handle&&!Xn(w,u.handle,i,!1)||this._prepareDragStart(e,b,y)}}},_prepareDragStart:function(e,t,i){var u=this,I=u.el,o=u.options,b=I.ownerDocument,y;if(i&&!me&&i.parentNode===I){var w=xt(i);if(mt=I,me=i,ft=me.parentNode,to=me.nextSibling,ts=i,ns=o.group,Ge.dragged=me,no={target:me,clientX:(t||e).clientX,clientY:(t||e).clientY},op=no.clientX-w.left,rp=no.clientY-w.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,me.style["will-change"]="all",y=function(){if(ln("delayEnded",u,{evt:e}),Ge.eventCanceled){u._onDrop();return}u._disableDelayedDragEvents(),!Wh&&u.nativeDraggable&&(me.draggable=!0),u._triggerDragStart(e,t),Wt({sortable:u,name:"choose",originalEvent:e}),mn(me,o.chosenClass,!0)},o.ignore.split(",").forEach(function(M){Vh(me,M.trim(),Hc)}),it(b,"dragover",io),it(b,"mousemove",io),it(b,"touchmove",io),it(b,"mouseup",u._onDrop),it(b,"touchend",u._onDrop),it(b,"touchcancel",u._onDrop),Wh&&this.nativeDraggable&&(this.options.touchStartThreshold=4,me.draggable=!0),ln("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(kr||pi))){if(Ge.eventCanceled){this._onDrop();return}it(b,"mouseup",u._disableDelayedDrag),it(b,"touchend",u._disableDelayedDrag),it(b,"touchcancel",u._disableDelayedDrag),it(b,"mousemove",u._delayedDragTouchMoveHandler),it(b,"touchmove",u._delayedDragTouchMoveHandler),o.supportPointer&&it(b,"pointermove",u._delayedDragTouchMoveHandler),u._dragStartTimer=setTimeout(y,o.delay)}else y()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){me&&Hc(me),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;et(e,"mouseup",this._disableDelayedDrag),et(e,"touchend",this._disableDelayedDrag),et(e,"touchcancel",this._disableDelayedDrag),et(e,"mousemove",this._delayedDragTouchMoveHandler),et(e,"touchmove",this._delayedDragTouchMoveHandler),et(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?it(document,"pointermove",this._onTouchMove):t?it(document,"touchmove",this._onTouchMove):it(document,"mousemove",this._onTouchMove):(it(me,"dragend",this),it(mt,"dragstart",this._onDragStart));try{document.selection?us(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Uo=!1,mt&&me){ln("dragStarted",this,{evt:t}),this.nativeDraggable&&it(document,"dragover",Ak);var i=this.options;!e&&mn(me,i.dragClass,!1),mn(me,i.ghostClass,!0),Ge.active=this,e&&this._appendGhost(),Wt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Yn){this._lastX=Yn.clientX,this._lastY=Yn.clientY,gp();for(var e=document.elementFromPoint(Yn.clientX,Yn.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Yn.clientX,Yn.clientY),e!==t);)t=e;if(me.parentNode[En]._isOutsideThisEl(e),t)do{if(t[En]){var i=void 0;if(i=t[En]._onDragOver({clientX:Yn.clientX,clientY:Yn.clientY,target:e,rootEl:t}),i&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);up()}},_onTouchMove:function(e){if(no){var t=this.options,i=t.fallbackTolerance,u=t.fallbackOffset,I=e.touches?e.touches[0]:e,o=Ye&&Po(Ye,!0),b=Ye&&o&&o.a,y=Ye&&o&&o.d,w=cs&&Ot&&ep(Ot),M=(I.clientX-no.clientX+u.x)/(b||1)+(w?w[0]-Gc[0]:0)/(b||1),N=(I.clientY-no.clientY+u.y)/(y||1)+(w?w[1]-Gc[1]:0)/(y||1);if(!Ge.active&&!Uo){if(i&&Math.max(Math.abs(I.clientX-this._lastX),Math.abs(I.clientY-this._lastY))<i)return;this._onDragStart(e,!0)}if(Ye){o?(o.e+=M-(Rc||0),o.f+=N-(Lc||0)):o={a:1,b:0,c:0,d:1,e:M,f:N};var P="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");Le(Ye,"webkitTransform",P),Le(Ye,"mozTransform",P),Le(Ye,"msTransform",P),Le(Ye,"transform",P),Rc=M,Lc=N,Yn=I}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Ye){var e=this.options.fallbackOnBody?document.body:mt,t=xt(me,!0,cs,!0,e),i=this.options;if(cs){for(Ot=e;Le(Ot,"position")==="static"&&Le(Ot,"transform")==="none"&&Ot!==document;)Ot=Ot.parentNode;Ot!==document.body&&Ot!==document.documentElement?(Ot===document&&(Ot=Vn()),t.top+=Ot.scrollTop,t.left+=Ot.scrollLeft):Ot=Vn(),Gc=ep(Ot)}Ye=me.cloneNode(!0),mn(Ye,i.ghostClass,!1),mn(Ye,i.fallbackClass,!0),mn(Ye,i.dragClass,!0),Le(Ye,"transition",""),Le(Ye,"transform",""),Le(Ye,"box-sizing","border-box"),Le(Ye,"margin",0),Le(Ye,"top",t.top),Le(Ye,"left",t.left),Le(Ye,"width",t.width),Le(Ye,"height",t.height),Le(Ye,"opacity","0.8"),Le(Ye,"position",cs?"absolute":"fixed"),Le(Ye,"zIndex","100000"),Le(Ye,"pointerEvents","none"),Ge.ghost=Ye,e.appendChild(Ye),Le(Ye,"transform-origin",op/parseInt(Ye.style.width)*100+"% "+rp/parseInt(Ye.style.height)*100+"%")}},_onDragStart:function(e,t){var i=this,u=e.dataTransfer,I=i.options;if(ln("dragStart",this,{evt:e}),Ge.eventCanceled){this._onDrop();return}ln("setupClone",this),Ge.eventCanceled||(wt=ip(me),wt.draggable=!1,wt.style["will-change"]="",this._hideClone(),mn(wt,this.options.chosenClass,!1),Ge.clone=wt),i.cloneId=us(function(){ln("clone",i),!Ge.eventCanceled&&(i.options.removeCloneOnHide||mt.insertBefore(wt,me),i._hideClone(),Wt({sortable:i,name:"clone"}))}),!t&&mn(me,I.dragClass,!0),t?(is=!0,i._loopId=setInterval(i._emulateDragOver,50)):(et(document,"mouseup",i._onDrop),et(document,"touchend",i._onDrop),et(document,"touchcancel",i._onDrop),u&&(u.effectAllowed="move",I.setData&&I.setData.call(i,u,me)),it(document,"drop",i),Le(me,"transform","translateZ(0)")),Uo=!0,i._dragStartId=us(i._dragStarted.bind(i,t,e)),it(document,"selectstart",i),Nr=!0,_r&&Le(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,i=e.target,u,I,o,b=this.options,y=b.group,w=Ge.active,M=ns===y,N=b.sort,P=Kt||w,Y,G=this,K=!1;if(Pc)return;function D(S,T){ln(S,G,qn({evt:e,isOwner:M,axis:Y?"vertical":"horizontal",revert:o,dragRect:u,targetRect:I,canSort:N,fromSortable:P,target:i,completed:L,onMove:function(eA,W){return gs(mt,t,me,u,eA,xt(eA),e,W)},changed:_},T))}function E(){D("dragOverAnimationCapture"),G.captureAnimationState(),G!==P&&P.captureAnimationState()}function L(S){return D("dragOverCompleted",{insertion:S}),S&&(M?w._hideClone():w._showClone(G),G!==P&&(mn(me,Kt?Kt.options.ghostClass:w.options.ghostClass,!1),mn(me,b.ghostClass,!0)),Kt!==G&&G!==Ge.active?Kt=G:G===Ge.active&&Kt&&(Kt=null),P===G&&(G._ignoreWhileAnimating=i),G.animateAll(function(){D("dragOverAnimationComplete"),G._ignoreWhileAnimating=null}),G!==P&&(P.animateAll(),P._ignoreWhileAnimating=null)),(i===me&&!me.animated||i===t&&!i.animated)&&(Yo=null),!b.dragoverBubble&&!e.rootEl&&i!==document&&(me.parentNode[En]._isOutsideThisEl(e.target),!S&&io(e)),!b.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),K=!0}function _(){Qn=xn(me),Li=xn(me,b.draggable),Wt({sortable:G,name:"change",toEl:t,newIndex:Qn,newDraggableIndex:Li,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),i=Xn(i,b.draggable,t,!0),D("dragOver"),Ge.eventCanceled)return K;if(me.contains(e.target)||i.animated&&i.animatingX&&i.animatingY||G._ignoreWhileAnimating===i)return L(!1);if(is=!1,w&&!b.disabled&&(M?N||(o=ft!==mt):Kt===this||(this.lastPutMode=ns.checkPull(this,w,me,e))&&y.checkPut(this,w,me,e))){if(Y=this._getDirection(e,i)==="vertical",u=xt(me),D("dragOverValid"),Ge.eventCanceled)return K;if(o)return ft=mt,E(),this._hideClone(),D("revert"),Ge.eventCanceled||(to?mt.insertBefore(me,to):mt.appendChild(me)),L(!0);var v=Sc(t,b.draggable);if(!v||ik(e,Y,this)&&!v.animated){if(v===me)return L(!1);if(v&&t===e.target&&(i=v),i&&(I=xt(i)),gs(mt,t,me,u,i,I,e,!!i)!==!1)return E(),t.appendChild(me),ft=t,_(),L(!0)}else if(v&&nk(e,Y,this)){var B=Ho(t,0,b,!0);if(B===me)return L(!1);if(i=B,I=xt(i),gs(mt,t,me,u,i,I,e,!1)!==!1)return E(),t.insertBefore(me,B),ft=t,_(),L(!0)}else if(i.parentNode===t){I=xt(i);var p=0,d,l=me.parentNode!==t,g=!X1(me.animated&&me.toRect||u,i.animated&&i.toRect||I,Y),s=Y?"top":"left",h=Ap(i,"top","top")||Ap(me,"top","top"),C=h?h.scrollTop:void 0;Yo!==i&&(d=I[s],Rr=!1,rs=!g&&b.invertSwap||l),p=ok(e,i,I,Y,g?1:b.swapThreshold,b.invertedSwapThreshold==null?b.swapThreshold:b.invertedSwapThreshold,rs,Yo===i);var a;if(p!==0){var r=xn(me);do r-=p,a=ft.children[r];while(a&&(Le(a,"display")==="none"||a===Ye))}if(p===0||a===i)return L(!1);Yo=i,Fr=p;var m=i.nextElementSibling,Q=!1;Q=p===1;var x=gs(mt,t,me,u,i,I,e,Q);if(x!==!1)return(x===1||x===-1)&&(Q=x===1),Pc=!0,setTimeout(tk,30),E(),Q&&!m?t.appendChild(me):i.parentNode.insertBefore(me,Q?m:i),h&&np(h,0,C-h.scrollTop),ft=me.parentNode,d!==void 0&&!rs&&(as=Math.abs(d-xt(i)[s])),_(),L(!0)}if(t.contains(me))return L(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){et(document,"mousemove",this._onTouchMove),et(document,"touchmove",this._onTouchMove),et(document,"pointermove",this._onTouchMove),et(document,"dragover",io),et(document,"mousemove",io),et(document,"touchmove",io)},_offUpEvents:function(){var e=this.el.ownerDocument;et(e,"mouseup",this._onDrop),et(e,"touchend",this._onDrop),et(e,"pointerup",this._onDrop),et(e,"touchcancel",this._onDrop),et(document,"selectstart",this)},_onDrop:function(e){var t=this.el,i=this.options;if(Qn=xn(me),Li=xn(me,i.draggable),ln("drop",this,{evt:e}),ft=me&&me.parentNode,Qn=xn(me),Li=xn(me,i.draggable),Ge.eventCanceled){this._nulling();return}Uo=!1,rs=!1,Rr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Kc(this.cloneId),Kc(this._dragStartId),this.nativeDraggable&&(et(document,"drop",this),et(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_r&&Le(document.body,"user-select",""),Le(me,"transform",""),e&&(Nr&&(e.cancelable&&e.preventDefault(),!i.dropBubble&&e.stopPropagation()),Ye&&Ye.parentNode&&Ye.parentNode.removeChild(Ye),(mt===ft||Kt&&Kt.lastPutMode!=="clone")&&wt&&wt.parentNode&&wt.parentNode.removeChild(wt),me&&(this.nativeDraggable&&et(me,"dragend",this),Hc(me),me.style["will-change"]="",Nr&&!Uo&&mn(me,Kt?Kt.options.ghostClass:this.options.ghostClass,!1),mn(me,this.options.chosenClass,!1),Wt({sortable:this,name:"unchoose",toEl:ft,newIndex:null,newDraggableIndex:null,originalEvent:e}),mt!==ft?(Qn>=0&&(Wt({rootEl:ft,name:"add",toEl:ft,fromEl:mt,originalEvent:e}),Wt({sortable:this,name:"remove",toEl:ft,originalEvent:e}),Wt({rootEl:ft,name:"sort",toEl:ft,fromEl:mt,originalEvent:e}),Wt({sortable:this,name:"sort",toEl:ft,originalEvent:e})),Kt&&Kt.save()):Qn!==To&&Qn>=0&&(Wt({sortable:this,name:"update",toEl:ft,originalEvent:e}),Wt({sortable:this,name:"sort",toEl:ft,originalEvent:e})),Ge.active&&((Qn==null||Qn===-1)&&(Qn=To,Li=Sr),Wt({sortable:this,name:"end",toEl:ft,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){ln("nulling",this),mt=me=ft=Ye=to=wt=ts=Ri=no=Yn=Nr=Qn=Li=To=Sr=Yo=Fr=Kt=ns=Ge.dragged=Ge.ghost=Ge.clone=Ge.active=null,ss.forEach(function(e){e.checked=!0}),ss.length=Rc=Lc=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":me&&(this._onDragOver(e),ek(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,i=this.el.children,u=0,I=i.length,o=this.options;u<I;u++)t=i[u],Xn(t,o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||ak(t));return e},sort:function(e,t){var i={},u=this.el;this.toArray().forEach(function(I,o){var b=u.children[o];Xn(b,this.options.draggable,u,!1)&&(i[I]=b)},this),t&&this.captureAnimationState(),e.forEach(function(I){i[I]&&(u.removeChild(i[I]),u.appendChild(i[I]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Xn(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var i=this.options;if(t===void 0)return i[e];var u=xr.modifyOption(this,e,t);typeof u<"u"?i[e]=u:i[e]=t,e==="group"&&cp(i)},destroy:function(){ln("destroy",this);var e=this.el;e[En]=null,et(e,"mousedown",this._onTapStart),et(e,"touchstart",this._onTapStart),et(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(et(e,"dragover",this),et(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),os.splice(os.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Ri){if(ln("hideClone",this),Ge.eventCanceled)return;Le(wt,"display","none"),this.options.removeCloneOnHide&&wt.parentNode&&wt.parentNode.removeChild(wt),Ri=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Ri){if(ln("showClone",this),Ge.eventCanceled)return;me.parentNode==mt&&!this.options.group.revertClone?mt.insertBefore(wt,me):to?mt.insertBefore(wt,to):mt.appendChild(wt),this.options.group.revertClone&&this.animate(me,wt),Le(wt,"display",""),Ri=!1}}};function ek(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function gs(n,e,t,i,u,I,o,b){var y,w=n[En],M=w.options.onMove,N;return window.CustomEvent&&!pi&&!kr?y=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent("move",!0,!0)),y.to=e,y.from=n,y.dragged=t,y.draggedRect=i,y.related=u||e,y.relatedRect=I||xt(e),y.willInsertAfter=b,y.originalEvent=o,n.dispatchEvent(y),M&&(N=M.call(w,y,o)),N}function Hc(n){n.draggable=!1}function tk(){Pc=!1}function nk(n,e,t){var i=xt(Ho(t.el,0,t.options,!0)),u=10;return e?n.clientX<i.left-u||n.clientY<i.top&&n.clientX<i.right:n.clientY<i.top-u||n.clientY<i.bottom&&n.clientX<i.left}function ik(n,e,t){var i=xt(Sc(t.el,t.options.draggable)),u=10;return e?n.clientX>i.right+u||n.clientX<=i.right&&n.clientY>i.bottom&&n.clientX>=i.left:n.clientX>i.right&&n.clientY>i.top||n.clientX<=i.right&&n.clientY>i.bottom+u}function ok(n,e,t,i,u,I,o,b){var y=i?n.clientY:n.clientX,w=i?t.height:t.width,M=i?t.top:t.left,N=i?t.bottom:t.right,P=!1;if(!o){if(b&&as<w*u){if(!Rr&&(Fr===1?y>M+w*I/2:y<N-w*I/2)&&(Rr=!0),Rr)P=!0;else if(Fr===1?y<M+as:y>N-as)return-Fr}else if(y>M+w*(1-u)/2&&y<N-w*(1-u)/2)return rk(e)}return P=P||o,P&&(y<M+w*I/2||y>N-w*I/2)?y>M+w/2?1:-1:0}function rk(n){return xn(me)<xn(n)?1:-1}function ak(n){for(var e=n.tagName+n.className+n.src+n.href+n.textContent,t=e.length,i=0;t--;)i+=e.charCodeAt(t);return i.toString(36)}function sk(n){ss.length=0;for(var e=n.getElementsByTagName("input"),t=e.length;t--;){var i=e[t];i.checked&&ss.push(i)}}function us(n){return setTimeout(n,0)}function Kc(n){return clearTimeout(n)}ls&&it(document,"touchmove",function(n){(Ge.active||Uo)&&n.cancelable&&n.preventDefault()}),Ge.utils={on:it,off:et,css:Le,find:Vh,is:function(e,t){return!!Xn(e,t,e,!1)},extend:O1,throttle:tp,closest:Xn,toggleClass:mn,clone:ip,index:xn,nextTick:us,cancelNextTick:Kc,detectDirection:lp,getChild:Ho},Ge.get=function(n){return n[En]},Ge.mount=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(Ge.utils=qn(qn({},Ge.utils),i.utils)),xr.mount(i)})},Ge.create=function(n,e){return new Ge(n,e)},Ge.version=K1;var _t=[],Lr,Tc,Uc=!1,Yc,Oc,ds,Gr;function lk(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return n.prototype={dragStarted:function(t){var i=t.originalEvent;this.sortable.nativeDraggable?it(document,"dragover",this._handleAutoScroll):this.options.supportPointer?it(document,"pointermove",this._handleFallbackAutoScroll):i.touches?it(document,"touchmove",this._handleFallbackAutoScroll):it(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var i=t.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?et(document,"dragover",this._handleAutoScroll):(et(document,"pointermove",this._handleFallbackAutoScroll),et(document,"touchmove",this._handleFallbackAutoScroll),et(document,"mousemove",this._handleFallbackAutoScroll)),dp(),hs(),$1()},nulling:function(){ds=Tc=Lr=Uc=Gr=Yc=Oc=null,_t.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,i){var u=this,I=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,b=document.elementFromPoint(I,o);if(ds=t,i||this.options.forceAutoScrollFallback||kr||pi||_r){$c(t,this.options,b,i);var y=Fi(b,!0);Uc&&(!Gr||I!==Yc||o!==Oc)&&(Gr&&dp(),Gr=setInterval(function(){var w=Fi(document.elementFromPoint(I,o),!0);w!==y&&(y=w,hs()),$c(t,u.options,w,i)},10),Yc=I,Oc=o)}else{if(!this.options.bubbleScroll||Fi(b,!0)===Vn()){hs();return}$c(t,this.options,Fi(b,!1),!1)}}},di(n,{pluginName:"scroll",initializeByDefault:!0})}function hs(){_t.forEach(function(n){clearInterval(n.pid)}),_t=[]}function dp(){clearInterval(Gr)}var $c=tp(function(n,e,t,i){if(e.scroll){var u=(n.touches?n.touches[0]:n).clientX,I=(n.touches?n.touches[0]:n).clientY,o=e.scrollSensitivity,b=e.scrollSpeed,y=Vn(),w=!1,M;Tc!==t&&(Tc=t,hs(),Lr=e.scroll,M=e.scrollFn,Lr===!0&&(Lr=Fi(t,!0)));var N=0,P=Lr;do{var Y=P,G=xt(Y),K=G.top,D=G.bottom,E=G.left,L=G.right,_=G.width,v=G.height,B=void 0,p=void 0,d=Y.scrollWidth,l=Y.scrollHeight,g=Le(Y),s=Y.scrollLeft,h=Y.scrollTop;Y===y?(B=_<d&&(g.overflowX==="auto"||g.overflowX==="scroll"||g.overflowX==="visible"),p=v<l&&(g.overflowY==="auto"||g.overflowY==="scroll"||g.overflowY==="visible")):(B=_<d&&(g.overflowX==="auto"||g.overflowX==="scroll"),p=v<l&&(g.overflowY==="auto"||g.overflowY==="scroll"));var C=B&&(Math.abs(L-u)<=o&&s+_<d)-(Math.abs(E-u)<=o&&!!s),a=p&&(Math.abs(D-I)<=o&&h+v<l)-(Math.abs(K-I)<=o&&!!h);if(!_t[N])for(var r=0;r<=N;r++)_t[r]||(_t[r]={});(_t[N].vx!=C||_t[N].vy!=a||_t[N].el!==Y)&&(_t[N].el=Y,_t[N].vx=C,_t[N].vy=a,clearInterval(_t[N].pid),(C!=0||a!=0)&&(w=!0,_t[N].pid=setInterval((function(){i&&this.layer===0&&Ge.active._onTouchMove(ds);var m=_t[this.layer].vy?_t[this.layer].vy*b:0,Q=_t[this.layer].vx?_t[this.layer].vx*b:0;typeof M=="function"&&M.call(Ge.dragged.parentNode[En],Q,m,n,ds,_t[this.layer].el)!=="continue"||np(_t[this.layer].el,Q,m)}).bind({layer:N}),24))),N++}while(e.bubbleScroll&&P!==y&&(P=Fi(P,!1)));Uc=w}},30),hp=function(e){var t=e.originalEvent,i=e.putSortable,u=e.dragEl,I=e.activeSortable,o=e.dispatchSortableEvent,b=e.hideGhostForTarget,y=e.unhideGhostForTarget;if(t){var w=i||I;b();var M=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,N=document.elementFromPoint(M.clientX,M.clientY);y(),w&&!w.el.contains(N)&&(o("spill"),this.onSpill({dragEl:u,putSortable:i}))}};function zc(){}zc.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,i=e.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var u=Ho(this.sortable.el,this.startIndex,this.options);u?this.sortable.el.insertBefore(t,u):this.sortable.el.appendChild(t),this.sortable.animateAll(),i&&i.animateAll()},drop:hp},di(zc,{pluginName:"revertOnSpill"});function Jc(){}Jc.prototype={onSpill:function(e){var t=e.dragEl,i=e.putSortable,u=i||this.sortable;u.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),u.animateAll()},drop:hp},di(Jc,{pluginName:"removeOnSpill"}),Ge.mount(new lk),Ge.mount(Jc,zc);var ck=Object.defineProperty,gk=Object.defineProperties,uk=Object.getOwnPropertyDescriptors,pp=Object.getOwnPropertySymbols,dk=Object.prototype.hasOwnProperty,hk=Object.prototype.propertyIsEnumerable,Cp=(n,e,t)=>e in n?ck(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Gi=(n,e)=>{for(var t in e||(e={}))dk.call(e,t)&&Cp(n,t,e[t]);if(pp)for(var t of pp(e))hk.call(e,t)&&Cp(n,t,e[t]);return n},ps=(n,e)=>gk(n,uk(e));function Zc(n){n.parentElement!==null&&n.parentElement.removeChild(n)}function Bp(n,e,t){const i=t===0?n.children[0]:n.children[t-1].nextSibling;n.insertBefore(e,i)}function pk(){return typeof window<"u"?window.console:global.console}const Ck=pk();function Bk(n){const e=Object.create(null);return function(i){return e[i]||(e[i]=n(i))}}const mk=/-(\w)/g,Ek=Bk(n=>n.replace(mk,(e,t)=>t.toUpperCase())),mp=["Start","Add","Remove","Update","End"],Ep=["Choose","Unchoose","Sort","Filter","Clone"],Qp=["Move"],Qk=[Qp,mp,Ep].flatMap(n=>n).map(n=>`on${n}`),Wc={manage:Qp,manageAndEmit:mp,emit:Ep};function Ik(n){return Qk.indexOf(n)!==-1}const fk=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","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","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function wk(n){return fk.includes(n)}function bk(n){return["transition-group","TransitionGroup"].includes(n)}function Ip(n){return["id","class","role","style"].includes(n)||n.startsWith("data-")||n.startsWith("aria-")||n.startsWith("on")}function fp(n){return n.reduce((e,[t,i])=>(e[t]=i,e),{})}function yk({$attrs:n,componentData:e={}}){const t=fp(Object.entries(n).filter(([i,u])=>Ip(i)));return Gi(Gi({},t),e)}function Dk({$attrs:n,callBackBuilder:e}){const t=fp(wp(n));Object.entries(e).forEach(([u,I])=>{Wc[u].forEach(o=>{t[`on${o}`]=I(o)})});const i=`[data-draggable]${t.draggable||""}`;return ps(Gi({},t),{draggable:i})}function wp(n){return Object.entries(n).filter(([e,t])=>!Ip(e)).map(([e,t])=>[Ek(e),t]).filter(([e,t])=>!Ik(e))}const bp=n=>{const e=n.el||Array.isArray(n.children)&&n.children[0].el.parentNode;return e||console.error("使用 transition-group , 需要在slot中template内至少2层html标签"),e||{}},vk=(n,e)=>n.__draggable_context=e,yp=n=>n.__draggable_context;class kk{constructor({nodes:{header:e,default:t,footer:i},root:u,realList:I}){this.defaultNodes=t,this.children=[...e,...t,...i],this.externalComponent=u.externalComponent,this.rootTransition=u.transition,this.tag=u.tag,this.realList=I}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(e,t){const{tag:i,children:u,_isRootComponent:I}=this;return e(i,t,I?{default:()=>u}:u)}updated(){const{defaultNodes:e,realList:t}=this;e.forEach((i,u)=>{vk(bp(i),{element:t[u],index:u})})}getUnderlyingVm(e){return yp(e)}getVmIndexFromDomIndex(e,t){const{defaultNodes:i}=this,{length:u}=i,I=t.children,o=I.item(e);if(o===null)return u;const b=yp(o);if(b)return b.index;if(u===0)return 0;const y=bp(i[0]),w=[...I].findIndex(M=>M===y);return e<w?0:u}}function _k(n,e){const t=n[e];return t?t():[]}function Mk({$slots:n,realList:e,getKey:t}){const i=e||[],[u,I]=["header","footer"].map(y=>_k(n,y)),{item:o}=n;if(!o)throw new Error("draggable element must have an item slot");const b=i.flatMap((y,w)=>o({element:y,index:w}).map(M=>(M.key=t(y),M.props=ps(Gi({},M.props||{}),{"data-draggable":!0}),M)));if(b.length!==i.length)throw new Error("Item slot must have only one child");return{header:u,footer:I,default:b}}function xk(n){const e=bk(n),t=!wk(n)&&!e;return{transition:e,externalComponent:t,tag:t?A.resolveComponent(n):e?A.TransitionGroup:n}}function Sk({$slots:n,tag:e,realList:t,getKey:i}){const u=Mk({$slots:n,realList:t,getKey:i}),I=xk(e);return new kk({nodes:u,root:I,realList:t})}function Dp(n,e){A.nextTick(()=>this.$emit(n.toLowerCase(),e))}function vp(n){return(e,t)=>{if(this.realList!==null)return this[`onDrag${n}`](e,t)}}function Nk(n){const e=vp.call(this,n);return(t,i)=>{e.call(this,t,i),Dp.call(this,n,t)}}let jc=null;const Fk={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:n=>n},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Rk=["update:modelValue","change",...[...Wc.manageAndEmit,...Wc.emit].map(n=>n.toLowerCase())],kp=A.defineComponent({name:"draggable",inheritAttrs:!1,props:Fk,emits:Rk,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:n,$attrs:e,tag:t,componentData:i,realList:u,getKey:I}=this,o=Sk({$slots:n,tag:t,realList:u,getKey:I});this.componentStructure=o;const b=yk({$attrs:e,componentData:i});return o.render(A.h,b)}catch(n){return this.error=!0,A.h("pre",{style:{color:"red"}},n.stack)}},created(){this.list!==null&&this.modelValue!==null&&Ck.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:n,$el:e,componentStructure:t}=this;t.updated();const i=Dk({$attrs:n,callBackBuilder:{manageAndEmit:I=>Nk.call(this,I),emit:I=>Dp.bind(this,I),manage:I=>vp.call(this,I)}}),u=e.nodeType===1?e:e.parentElement;this._sortable=new Ge(u,i),this.targetDomElement=u,u.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:n}=this;return n||this.modelValue},getKey(){const{itemKey:n}=this;return typeof n=="function"?n:e=>e[n]}},watch:{$attrs:{handler(n){const{_sortable:e}=this;e&&wp(n).forEach(([t,i])=>{e.option(t,i)})},deep:!0}},methods:{getUnderlyingVm(n){return this.componentStructure.getUnderlyingVm(n)||null},getUnderlyingPotencialDraggableComponent(n){return n.__draggable_component__},emitChanges(n){A.nextTick(()=>this.$emit("change",n))},alterList(n){if(this.list){n(this.list);return}const e=[...this.modelValue];n(e),this.$emit("update:modelValue",e)},spliceList(){const n=e=>e.splice(...arguments);this.alterList(n)},updatePosition(n,e){const t=i=>i.splice(e,0,i.splice(n,1)[0]);this.alterList(t)},getRelatedContextFromMoveEvent({to:n,related:e}){const t=this.getUnderlyingPotencialDraggableComponent(n);if(!t)return{component:t};const i=t.realList,u={list:i,component:t};if(n!==e&&i){const I=t.getUnderlyingVm(e)||{};return Gi(Gi({},I),u)}return u},getVmIndexFromDomIndex(n){return this.componentStructure.getVmIndexFromDomIndex(n,this.targetDomElement)},onDragStart(n){this.context=this.getUnderlyingVm(n.item),n.item._underlying_vm_=this.clone(this.context.element),jc=n.item},onDragAdd(n){const e=n.item._underlying_vm_;if(e===void 0)return;Zc(n.item);const t=this.getVmIndexFromDomIndex(n.newIndex);this.spliceList(t,0,e);const i={element:e,newIndex:t};this.emitChanges({added:i})},onDragRemove(n){if(Bp(this.$el,n.item,n.oldIndex),n.pullMode==="clone"){Zc(n.clone);return}const{index:e,element:t}=this.context;this.spliceList(e,1);const i={element:t,oldIndex:e};this.emitChanges({removed:i})},onDragUpdate(n){Zc(n.item),Bp(n.from,n.item,n.oldIndex);const e=this.context.index,t=this.getVmIndexFromDomIndex(n.newIndex);this.updatePosition(e,t);const i={element:this.context.element,oldIndex:e,newIndex:t};this.emitChanges({moved:i})},computeFutureIndex(n,e){if(!n.element)return 0;const t=[...e.to.children].filter(o=>o.style.display!=="none"),i=t.indexOf(e.related),u=n.component.getVmIndexFromDomIndex(i);return t.indexOf(jc)!==-1||!e.willInsertAfter?u:u+1},onDragMove(n,e){const{move:t,realList:i}=this;if(!t||!i)return!0;const u=this.getRelatedContextFromMoveEvent(n),I=this.computeFutureIndex(u,n),o=ps(Gi({},this.context),{futureIndex:I}),b=ps(Gi({},n),{relatedContext:u,draggedContext:o});return t(b,e)},onDragEnd(){jc=null}}}),oo=A.defineComponent({__name:"FormItem",props:{label:{},name:{},component:{},required:{type:Boolean},props:{},initialValue:{},help:{},labelSuffix:{},children:{},hidden:{type:[Boolean,String]},hideLabel:{type:Boolean},designKey:{},rules:{},class:{},style:{},change:{},dialog:{type:Boolean},width:{}},setup(n){const e=n,t=It(),i=zo(),u=A.reactive({visible:!1,title:""}),I=()=>{u.visible=!0,u.title=e.label},o=A.computed({get(){return ma(t.formValues,e.name)},set(Y){const G=ko(t.formValues,e.name,Y);t.updateFormValues(G)}}),b=A.computed(()=>{const{rules:Y,required:G,component:K}=e,D=[];if(G&&D.push({required:!0,trigger:"blur",message:"Required"}),Y){const E=Y.map(L=>{const{type:_,message:v,trigger:B,customReg:p,templateExp:d}=L,l={message:v,trigger:B};return["email","url"].includes(_)?{...l,type:_}:_==="custom"&&p?{...l,pattern:fm(p)}:Im(_)?{...l,pattern:_}:_==="template"?{...l,validator:()=>d}:{}});return[...D,...E]}if(K==="VerifyCode"){const E={trigger:"blur",message:"验证码错误!",validator:()=>t.vCodePass};return[...D,E]}return D}),y=A.computed(()=>{const Y=i[e.component]||{};return Y.modelName||(Y.modelName="modelValue"),Y}),w=A.computed(()=>{const Y={name:e.name,...e.props};return e.children&&(Y.children=e.children),Y}),M=()=>{if(e.component!=="DragList")return[];const Y=w.value.gridlayout||[],G=w.value.children||[],K=w.value.rowHeight||30;return Y.map((D,E)=>{var L;return{...D,i:(L=G[E])==null?void 0:L.name,rowHeight:K}})},N=A.ref(M()),P=Y=>Y==null?void 0:Y.replace(/&nbsp;/g," ");return A.onBeforeMount(()=>{if(o.value===void 0&&e.initialValue!==void 0&&!t.design){const Y=ko(t.initialValues,e.name,e.initialValue);t.updateInitialValues(Y),o.value=e.initialValue}}),A.watch(o,(Y,G)=>{const K=e.change,D=ut.isEqual(Y,G);if(!K||D)return;let E=ut.cloneDeep(t.formValues);K.forEach(({target:L,value:_,condition:v})=>{if(v!==!1){if(L.includes(".*.")){const B=L.split(".*."),p=B.pop(),d=B.join("."),l=ma(t.formValues,d);ut.isArray(l)&&(E=ko(E,d,l.map(g=>({...g,[p]:_}))));return}E=ko(E,L,_)}}),t.updateFormValues(E)},{immediate:!0}),(Y,G)=>{var _;const K=A.resolveComponent("el-tooltip"),D=A.resolveComponent("el-dialog"),E=A.resolveComponent("el-button"),L=A.resolveComponent("el-form-item");return A.unref(t).design||!Y.hidden?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[y.value.component==="DragList"?(A.openBlock(),A.createBlock(A.resolveDynamicComponent(y.value.render),A.mergeProps({key:0},w.value,{style:{minWidth:0},gridlayout:N.value,"onUpdate:gridlayout":G[0]||(G[0]=v=>N.value=v)}),null,16,["gridlayout"])):y.value.type==="layout"?(A.openBlock(),A.createBlock(A.resolveDynamicComponent(y.value.render),A.mergeProps({key:1},w.value,{style:{minWidth:0}}),null,16)):y.value.type==="assist"?(A.openBlock(),A.createBlock(A.resolveDynamicComponent(y.value.render),A.normalizeProps(A.mergeProps({key:2},w.value)),null,16)):(A.openBlock(),A.createBlock(L,{class:A.normalizeClass([A.unref(je)("form-item"),e.class,`${Y.component}-${Y.name}`,{readMode:((_=e.props)==null?void 0:_.read)||A.unref(t).schema.read}]),style:A.normalizeStyle(Y.style),key:Y.name,prop:Y.name,"label-width":Y.hideLabel?"0":A.unref(t).schema.labelWidth,rules:b.value},{label:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",{class:A.normalizeClass([A.unref(je)("form-item-label"),Y.label&&`${Y.name}-label`])},[A.createElementVNode("div",{style:A.normalizeStyle(A.unref(t).schema.labelBold&&"font-weight: bold")},A.toDisplayString(P(Y.label)),5),Y.help?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(A.unref(je)("form-item-label-ico"))},[A.createVNode(K,{effect:"dark",content:Y.help},{default:A.withCtx(()=>[A.createElementVNode("div",null,[A.createVNode(A.unref(Ie),{name:"help"})])]),_:1},8,["content"])],2)):A.createCommentVNode("",!0),Y.labelSuffix?(A.openBlock(),A.createElementBlock("div",{key:1,class:A.normalizeClass(A.unref(je)("form-item-label-suffix"))},[Y.labelSuffix.component==="Popover"?(A.openBlock(),A.createBlock(mC,A.normalizeProps(A.mergeProps({key:0},A.unref(Rt)(Y.labelSuffix.props,A.unref(t).context))),null,16)):A.createCommentVNode("",!0)],2)):A.createCommentVNode("",!0)],2),[[A.vShow,!Y.hideLabel]])]),default:A.withCtx(()=>[Y.dialog?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[A.createVNode(D,{modelValue:u.visible,"onUpdate:modelValue":G[2]||(G[2]=v=>u.visible=v),title:u.title,width:"70%",center:"","destroy-on-close":""},{default:A.withCtx(()=>[(A.openBlock(),A.createBlock(A.resolveDynamicComponent(y.value.render),A.mergeProps({size:A.unref(t).schema.size},w.value,{disabled:A.unref(t).schema.disabled,[y.value.modelName]:o.value,["onUpdate:"+y.value.modelName]:G[1]||(G[1]=v=>o.value=v)}),null,16,["size","disabled"]))]),_:1},8,["modelValue","title"]),A.createVNode(E,{type:"primary",plain:"",onClick:I},{default:A.withCtx(()=>G[4]||(G[4]=[A.createTextVNode("配置")])),_:1})],64)):(A.openBlock(),A.createBlock(A.resolveDynamicComponent(y.value.render),A.mergeProps({key:1,size:A.unref(t).schema.size,disabled:A.unref(t).schema.disabled},A.unref(Rt)(w.value,A.unref(t).context),{[y.value.modelName]:o.value,["onUpdate:"+y.value.modelName]:G[3]||(G[3]=v=>o.value=v)}),null,16,["size","disabled"]))]),_:1},8,["class","style","prop","label-width","rules"]))],64)):A.createCommentVNode("",!0)}}}),Lk={key:0,class:"actions-lt"},Gk={class:"canvas-move",size:"small",type:"primary"},Pk={key:1,class:"hidden-ico"},Hk={key:2,class:"actions-rb"},Kk=["onClick"],Tk={key:3,class:"layout-title"},Uk=A.defineComponent({__name:"CanvasItem",props:{data:{}},setup(n){const e=n,t=Sn(),u=zo()[e.data.component],I=A.computed(()=>{var P;return{[je("canvas-item")]:!0,active:e.data.designKey===((P=t.current)==null?void 0:P.designKey),hover:e.data.designKey===t.hoverKey,mask:e.data.designKey===t.hoverKey&&!e.data.children,collapse:w.value}}),o=()=>{e.data.designKey&&t.updateHoverKey(e.data.designKey)},b=()=>{t.updateHoverKey("")},y=P=>{t.updateCurrent(P),t.rightTab="attr"},w=A.ref(!1),M=()=>{w.value=!w.value},N=[{icon:"copy",handle:P=>{const Y=Gd(t.list,P.designKey);t.updateList(Y)}},{icon:"delete",bg:"var(--el-color-danger)",handle:P=>{const Y=wu(t.list,G=>G.designKey!==P.designKey);t.updateList(Y)}}];return(P,Y)=>{var G,K;return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(I.value),onClick:Y[0]||(Y[0]=A.withModifiers(D=>y(P.data),["stop"])),onMousemove:A.withModifiers(o,["stop"]),onMouseleave:A.withModifiers(b,["stop"])},[P.data.designKey===((G=A.unref(t).current)==null?void 0:G.designKey)?(A.openBlock(),A.createElementBlock("div",Lk,[A.createElementVNode("div",Gk,[A.createVNode(A.unref(Ie),{name:"move"})]),A.createElementVNode("div",{class:"canvas-collapse",size:"small",type:"primary",onClick:M},[A.createVNode(A.unref(Ie),{name:"select"})])])):A.createCommentVNode("",!0),P.data.hidden?(A.openBlock(),A.createElementBlock("div",Pk,[A.createVNode(A.unref(Ie),{name:"hidden"})])):A.createCommentVNode("",!0),P.data.designKey===((K=A.unref(t).current)==null?void 0:K.designKey)?(A.openBlock(),A.createElementBlock("ul",Hk,[(A.openBlock(),A.createElementBlock(A.Fragment,null,A.renderList(N,({icon:D,handle:E,bg:L})=>A.createElementVNode("li",{class:"actions-rb-item",onClick:A.withModifiers(_=>E(P.data),["stop"]),key:D,style:A.normalizeStyle({backgroundColor:L})},[A.createVNode(A.unref(Ie),{name:D},null,8,["name"])],12,Kk)),64))])):A.createCommentVNode("",!0),A.unref(u).lbTitle?(A.openBlock(),A.createElementBlock("div",Tk,A.toDisplayString(A.unref(u).title),1)):A.createCommentVNode("",!0),A.createVNode(oo,A.mergeProps(P.data,{props:P.data.props}),null,16,["props"])],34)}}}),qc=A.defineComponent({__name:"CanvasGroup",props:{list:{},style:{},class:{},emptyText:{default:"请拖入子字段"},emptySize:{default:12}},setup(n){const e=n,t=Sn(),i=u=>{const I=u.item._underlying_vm_;t.updateCurrent(tc(t.list,I.designKey)),t.hoverKey=I.designKey,t.rightTab="attr",t.handleEmit("add",I)};return(u,I)=>(A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("canvas-group")),style:A.normalizeStyle({overflow:u.list.length?"auto":"hidden"})},[u.list.length?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(A.unref(je)("canvas-group-empty")),style:A.normalizeStyle({fontSize:u.emptySize+"px"})},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("canvas-group-empty-ico"))},[A.createVNode(A.unref(Ie),{name:"add"})],2),A.createElementVNode("p",null,A.toDisplayString(u.emptyText),1)],6)),A.createVNode(A.unref(kp),{list:u.list,group:"formDesign",itemKey:"name","ghost-class":A.unref(je)("canvas-group-ghost"),class:A.normalizeClass([A.unref(je)("canvas-group-draggable"),e.class]),style:A.normalizeStyle(u.style),animation:300,handle:".canvas-move","force-fallback":"",onAdd:i},{item:A.withCtx(({element:o})=>[o.designKey?(A.openBlock(),A.createBlock(Uk,{key:0,data:o},null,8,["data"])):A.createCommentVNode("",!0)]),_:1},8,["list","ghost-class","class","style"])],6))}}),Yk=typeof window<"u";var _p;Yk&&((_p=window==null?void 0:window.navigator)!=null&&_p.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function In(n){return n==null}function Mp(){}const Ok=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(Ok)));function $k(){const n=new Map;return{on(e,t){const i=n.get(e);i!=null&&i.add(t)||n.set(e,new Set([t]))},off(e,t){const i=n.get(e);i&&i.delete(t)},clear(e){const t=n.get(e);t&&t.clear()},clearAll(){n.clear()},emit(e,...t){const i=n.get(e);i&&i.forEach(u=>{u(...t)})}}}function xp(n,e=16){if(typeof n!="function")return Mp;const t=(...I)=>{n(...I)};if(e<=0)return Sp(t);let i=0,u;return function(...I){const o=Date.now(),b=o-i;clearTimeout(u),b>=e?(i=o,t(...I)):u=setTimeout(()=>{i=Date.now(),t(...I)},Math.max(0,e-b))}}function zk(n,e=100){if(typeof n!="function")return Mp;const t=(...u)=>{n(...u)};if(e<=0)return Sp(t);let i;return function(...u){clearTimeout(i),i=setTimeout(()=>{t(...u)},e)}}function Sp(n){if(typeof n!="function")return n;let e=!1,t,i;return function(...u){return t=u,e||(e=!0,i=Promise.resolve().then(()=>(e=!1,i=void 0,n(...t)))),i}}const Pr=new Set,Np=new WeakMap;function Jk(){Pr.forEach(n=>{n(...Np.get(n))}),Pr.clear()}function jt(n,...e){if(typeof n!="function")return n;Np.set(n,e),!Pr.has(n)&&(Pr.add(n),Pr.size===1&&Promise.resolve().then(Jk))}const Fp=Symbol("LAYOUT_KEY"),Rp=Symbol("EMITTER_KEY");function Zk(n){let e=0,t;for(let i=0,u=n.length;i<u;i++)t=n[i].y+n[i].h,t>e&&(e=t);return e}function Xc(n){const e=Array(n.length);for(let t=0,i=n.length;t<i;t++)e[t]=Wk(n[t]);return e}function Wk(n){return{...n}}function Lp(n,e){return!(n===e||n.x+n.w<=e.x||n.x>=e.x+e.w||n.y+n.h<=e.y||n.y>=e.y+e.h)}function Oo(n,e,t){const i=Hp(n),u=Tp(n),I=Array(n.length);for(let o=0,b=u.length;o<b;o++){let y=u[o];y.static||(y=jk(i,y,e,t),i.push(y)),I[n.findIndex(w=>w.i===y.i)]=y,y.moved=!1}return I}function jk(n,e,t,i){if(t)for(;e.y>0&&!Hr(n,e);)e.y--;else if(i){const I=i[e.i].y;for(;e.y>I&&!Hr(n,e);)e.y--}let u;for(;u=Hr(n,e);)e.y=u.y+u.h;return e}function qk(n,e){const t=Hp(n);for(let i=0,u=n.length;i<u;i++){const I=n[i];if(I.x+I.w>e.cols&&(I.x=e.cols-I.w),I.x<0&&(I.x=0,I.w=e.cols),!I.static)t.push(I);else for(;Hr(t,I);)I.y++}return n}function Gp(n,e){for(let t=0,i=n.length;t<i;t++)if(n[t].i===e)return n[t]}function Hr(n,e){for(let t=0,i=n.length;t<i;t++)if(Lp(n[t],e))return n[t]}function Pp(n,e){return n.filter(t=>Lp(t,e))}function Hp(n){return n.filter(e=>e.static)}function Vc(n,e,t,i,u=!1,I=!1){if(e.static)return n;const o=e.x,b=e.y,y=i&&e.y>i;typeof t=="number"&&(e.x=t),typeof i=="number"&&(e.y=i),e.moved=!0;let w=Tp(n);y&&(w=w.reverse());const M=Pp(w,e);if(I&&M.length)return e.x=o,e.y=b,e.moved=!1,n;for(let N=0,P=M.length;N<P;N++){const Y=M[N];Y.moved||e.y>Y.y&&e.y-Y.y>Y.h/4||(Y.static?n=Kp(n,Y,e,u):n=Kp(n,e,Y,u))}return n}function Kp(n,e,t,i){if(i){const u={x:t.x,y:t.y,w:t.w,h:t.h};if(u.y=Math.max(e.y-t.h,0),!Hr(n,u))return Vc(n,t,void 0,u.y,!1)}return Vc(n,t,void 0,t.y+1,!1)}function Xk(n,e,t,i){const u="translate3d("+e+"px,"+n+"px, 0)";return{transform:u,WebkitTransform:u,MozTransform:u,msTransform:u,OTransform:u,width:t+"px",height:i+"px",position:"absolute"}}function Vk(n,e,t,i){const u="translate3d("+e*-1+"px,"+n+"px, 0)";return{transform:u,WebkitTransform:u,MozTransform:u,msTransform:u,OTransform:u,width:t+"px",height:i+"px",position:"absolute"}}function A_(n,e,t,i){return{top:n+"px",left:e+"px",width:t+"px",height:i+"px",position:"absolute"}}function e_(n,e,t,i){return{top:n+"px",right:e+"px",width:t+"px",height:i+"px",position:"absolute"}}function Tp(n){return Array.from(n).sort(function(e,t){return e.y===t.y&&e.x===t.x?0:e.y>t.y||e.y===t.y&&e.x>t.x?1:-1})}function t_(n,e){e=e||"Layout";const t=["x","y","w","h"],i=[];if(!Array.isArray(n))throw new Error(e+" must be an array!");for(let u=0,I=n.length;u<I;u++){const o=n[u];for(let b=0;b<t.length;b++)if(typeof o[t[b]]!="number")throw new Error("VueGridLayout: "+e+"["+u+"]."+t[b]+" must be a number!");if(o.i===void 0||o.i===null)throw new Error("VueGridLayout: "+e+"["+u+"].i cannot be null!");if(typeof o.i!="number"&&typeof o.i!="string")throw new Error("VueGridLayout: "+e+"["+u+"].i must be a string or number!");if(i.indexOf(o.i)>=0)throw new Error("VueGridLayout: "+e+"["+u+"].i must be unique!");if(i.push(o.i),o.static!==void 0&&typeof o.static!="boolean")throw new Error("VueGridLayout: "+e+"["+u+"].static must be a boolean!")}}function n_(n,e="vgl"){const t=()=>`${e}-${n}`;return{b:t,be:i=>`${t()}__${i}`,bm:i=>`${t()}--${i}`,bem:(i,u)=>`${t()}__${i}--${u}`}}function Up(n){return i_(n)}function i_(n){var e;const t=((e=n.target)==null?void 0:e.offsetParent)||document.body,i=n.offsetParent===document.body?{left:0,top:0}:t.getBoundingClientRect(),u=n.clientX+t.scrollLeft-i.left,I=n.clientY+t.scrollTop-i.top;return{x:u,y:I}}function Yp(n,e,t,i){return o_(n)?{deltaX:t-n,deltaY:i-e,lastX:n,lastY:e,x:t,y:i}:{deltaX:0,deltaY:0,lastX:t,lastY:i,x:t,y:i}}function o_(n){return typeof n=="number"&&!Number.isNaN(n)}function r_(n,e){const t=$p(n);let i=t[0];for(let u=1,I=t.length;u<I;u++){const o=t[u];e>n[o]&&(i=o)}return i}function Op(n,e){if(!e[n])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+n+" is missing!");return e[n]}function a_(n,e,t,i,u,I,o){if(e[i])return Xc(e[i]);let b=n;const y=$p(t),w=y.slice(y.indexOf(i));for(let M=0,N=w.length;M<N;M++){const P=w[M];if(e[P]){b=e[P];break}}return b=Xc(b||[]),Oo(qk(b,{cols:I}),o)}function $p(n){return Object.keys(n).sort((e,t)=>n[e]-n[t])}let s_="auto";function l_(){return typeof document<"u"}function zp(){return l_()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):s_}var Cs={exports:{}};Cs.exports,function(n,e){(function(t,i){n.exports=i()})(vo,function(){function t(R,F){var Z=Object.keys(R);if(Object.getOwnPropertySymbols){var nA=Object.getOwnPropertySymbols(R);F&&(nA=nA.filter(function(lA){return Object.getOwnPropertyDescriptor(R,lA).enumerable})),Z.push.apply(Z,nA)}return Z}function i(R){for(var F=1;F<arguments.length;F++){var Z=arguments[F]!=null?arguments[F]:{};F%2?t(Object(Z),!0).forEach(function(nA){y(R,nA,Z[nA])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(Z)):t(Object(Z)).forEach(function(nA){Object.defineProperty(R,nA,Object.getOwnPropertyDescriptor(Z,nA))})}return R}function u(R){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},u(R)}function I(R,F){if(!(R instanceof F))throw new TypeError("Cannot call a class as a function")}function o(R,F){for(var Z=0;Z<F.length;Z++){var nA=F[Z];nA.enumerable=nA.enumerable||!1,nA.configurable=!0,"value"in nA&&(nA.writable=!0),Object.defineProperty(R,K(nA.key),nA)}}function b(R,F,Z){return F&&o(R.prototype,F),Object.defineProperty(R,"prototype",{writable:!1}),R}function y(R,F,Z){return(F=K(F))in R?Object.defineProperty(R,F,{value:Z,enumerable:!0,configurable:!0,writable:!0}):R[F]=Z,R}function w(R,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(F&&F.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),F&&N(R,F)}function M(R){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},M(R)}function N(R,F){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,nA){return Z.__proto__=nA,Z},N(R,F)}function P(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function Y(R){var F=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Z,nA=M(R);if(F){var lA=M(this).constructor;Z=Reflect.construct(nA,arguments,lA)}else Z=nA.apply(this,arguments);return function(hA,mA){if(mA&&(typeof mA=="object"||typeof mA=="function"))return mA;if(mA!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P(hA)}(this,Z)}}function G(){return G=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(R,F,Z){var nA=function(hA,mA){for(;!Object.prototype.hasOwnProperty.call(hA,mA)&&(hA=M(hA))!==null;);return hA}(R,F);if(nA){var lA=Object.getOwnPropertyDescriptor(nA,F);return lA.get?lA.get.call(arguments.length<3?R:Z):lA.value}},G.apply(this,arguments)}function K(R){var F=function(Z,nA){if(typeof Z!="object"||Z===null)return Z;var lA=Z[Symbol.toPrimitive];if(lA!==void 0){var hA=lA.call(Z,nA);if(typeof hA!="object")return hA;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Z)}(R,"string");return typeof F=="symbol"?F:F+""}var D=function(R){return!(!R||!R.Window)&&R instanceof R.Window},E=void 0,L=void 0;function _(R){E=R;var F=R.document.createTextNode("");F.ownerDocument!==R.document&&typeof R.wrap=="function"&&R.wrap(F)===F&&(R=R.wrap(R)),L=R}function v(R){return D(R)?R:(R.ownerDocument||R).defaultView||L.window}typeof window<"u"&&window&&_(window);var B=function(R){return!!R&&u(R)==="object"},p=function(R){return typeof R=="function"},d={window:function(R){return R===L||D(R)},docFrag:function(R){return B(R)&&R.nodeType===11},object:B,func:p,number:function(R){return typeof R=="number"},bool:function(R){return typeof R=="boolean"},string:function(R){return typeof R=="string"},element:function(R){if(!R||u(R)!=="object")return!1;var F=v(R)||L;return/object|function/.test(typeof Element>"u"?"undefined":u(Element))?R instanceof Element||R instanceof F.Element:R.nodeType===1&&typeof R.nodeName=="string"},plainObject:function(R){return B(R)&&!!R.constructor&&/function Object\b/.test(R.constructor.toString())},array:function(R){return B(R)&&R.length!==void 0&&p(R.splice)}};function l(R){var F=R.interaction;if(F.prepared.name==="drag"){var Z=F.prepared.axis;Z==="x"?(F.coords.cur.page.y=F.coords.start.page.y,F.coords.cur.client.y=F.coords.start.client.y,F.coords.velocity.client.y=0,F.coords.velocity.page.y=0):Z==="y"&&(F.coords.cur.page.x=F.coords.start.page.x,F.coords.cur.client.x=F.coords.start.client.x,F.coords.velocity.client.x=0,F.coords.velocity.page.x=0)}}function g(R){var F=R.iEvent,Z=R.interaction;if(Z.prepared.name==="drag"){var nA=Z.prepared.axis;if(nA==="x"||nA==="y"){var lA=nA==="x"?"y":"x";F.page[lA]=Z.coords.start.page[lA],F.client[lA]=Z.coords.start.client[lA],F.delta[lA]=0}}}var s={id:"actions/drag",install:function(R){var F=R.actions,Z=R.Interactable,nA=R.defaults;Z.prototype.draggable=s.draggable,F.map.drag=s,F.methodDict.drag="draggable",nA.actions.drag=s.defaults},listeners:{"interactions:before-action-move":l,"interactions:action-resume":l,"interactions:action-move":g,"auto-start:check":function(R){var F=R.interaction,Z=R.interactable,nA=R.buttons,lA=Z.options.drag;if(lA&&lA.enabled&&(!F.pointerIsDown||!/mouse|pointer/.test(F.pointerType)||nA&Z.options.drag.mouseButtons))return R.action={name:"drag",axis:lA.lockAxis==="start"?lA.startAxis:lA.lockAxis},!1}},draggable:function(R){return d.object(R)?(this.options.drag.enabled=R.enabled!==!1,this.setPerAction("drag",R),this.setOnEvents("drag",R),/^(xy|x|y|start)$/.test(R.lockAxis)&&(this.options.drag.lockAxis=R.lockAxis),/^(xy|x|y)$/.test(R.startAxis)&&(this.options.drag.startAxis=R.startAxis),this):d.bool(R)?(this.options.drag.enabled=R,this):this.options.drag},beforeMove:l,move:g,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(R){return R.search("drag")===0}},h=s,C={init:function(R){var F=R;C.document=F.document,C.DocumentFragment=F.DocumentFragment||a,C.SVGElement=F.SVGElement||a,C.SVGSVGElement=F.SVGSVGElement||a,C.SVGElementInstance=F.SVGElementInstance||a,C.Element=F.Element||a,C.HTMLElement=F.HTMLElement||C.Element,C.Event=F.Event,C.Touch=F.Touch||a,C.PointerEvent=F.PointerEvent||F.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function a(){}var r=C,m={init:function(R){var F=r.Element,Z=R.navigator||{};m.supportsTouch="ontouchstart"in R||d.func(R.DocumentTouch)&&r.document instanceof R.DocumentTouch,m.supportsPointerEvent=Z.pointerEnabled!==!1&&!!r.PointerEvent,m.isIOS=/iP(hone|od|ad)/.test(Z.platform),m.isIOS7=/iP(hone|od|ad)/.test(Z.platform)&&/OS 7[^\d]/.test(Z.appVersion),m.isIe9=/MSIE 9/.test(Z.userAgent),m.isOperaMobile=Z.appName==="Opera"&&m.supportsTouch&&/Presto/.test(Z.userAgent),m.prefixedMatchesSelector="matches"in F.prototype?"matches":"webkitMatchesSelector"in F.prototype?"webkitMatchesSelector":"mozMatchesSelector"in F.prototype?"mozMatchesSelector":"oMatchesSelector"in F.prototype?"oMatchesSelector":"msMatchesSelector",m.pEventTypes=m.supportsPointerEvent?r.PointerEvent===R.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,m.wheelEvent=r.document&&"onmousewheel"in r.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},Q=m;function x(R,F){if(R.contains)return R.contains(F);for(;F;){if(F===R)return!0;F=F.parentNode}return!1}function S(R,F){for(;d.element(R);){if($(R,F))return R;R=T(R)}return null}function T(R){var F=R.parentNode;if(d.docFrag(F)){for(;(F=F.host)&&d.docFrag(F););return F}return F}function $(R,F){return L!==E&&(F=F.replace(/\/deep\//g," ")),R[Q.prefixedMatchesSelector](F)}var eA=function(R){return R.parentNode||R.host};function W(R,F){for(var Z,nA=[],lA=R;(Z=eA(lA))&&lA!==F&&Z!==lA.ownerDocument;)nA.unshift(lA),lA=Z;return nA}function J(R,F,Z){for(;d.element(R);){if($(R,F))return!0;if((R=T(R))===Z)return $(R,F)}return!1}function O(R){return R.correspondingUseElement||R}function q(R){var F=R instanceof r.SVGElement?R.getBoundingClientRect():R.getClientRects()[0];return F&&{left:F.left,right:F.right,top:F.top,bottom:F.bottom,width:F.width||F.right-F.left,height:F.height||F.bottom-F.top}}function k(R){var F,Z=q(R);if(!Q.isIOS7&&Z){var nA={x:(F=(F=v(R))||L).scrollX||F.document.documentElement.scrollLeft,y:F.scrollY||F.document.documentElement.scrollTop};Z.left+=nA.x,Z.right+=nA.x,Z.top+=nA.y,Z.bottom+=nA.y}return Z}function V(R){for(var F=[];R;)F.push(R),R=T(R);return F}function H(R){return!!d.string(R)&&(r.document.querySelector(R),!0)}function AA(R,F){for(var Z in F)R[Z]=F[Z];return R}function sA(R,F,Z){return R==="parent"?T(Z):R==="self"?F.getRect(Z):S(Z,R)}function oA(R,F,Z,nA){var lA=R;return d.string(lA)?lA=sA(lA,F,Z):d.func(lA)&&(lA=lA.apply(void 0,nA)),d.element(lA)&&(lA=k(lA)),lA}function dA(R){return R&&{x:"x"in R?R.x:R.left,y:"y"in R?R.y:R.top}}function EA(R){return!R||"x"in R&&"y"in R||((R=AA({},R)).x=R.left||0,R.y=R.top||0,R.width=R.width||(R.right||0)-R.x,R.height=R.height||(R.bottom||0)-R.y),R}function uA(R,F,Z){R.left&&(F.left+=Z.x),R.right&&(F.right+=Z.x),R.top&&(F.top+=Z.y),R.bottom&&(F.bottom+=Z.y),F.width=F.right-F.left,F.height=F.bottom-F.top}function BA(R,F,Z){var nA=Z&&R.options[Z];return dA(oA(nA&&nA.origin||R.options.origin,R,F,[R&&F]))||{x:0,y:0}}function j(R,F){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(yA){return!0},nA=arguments.length>3?arguments[3]:void 0;if(nA=nA||{},d.string(R)&&R.search(" ")!==-1&&(R=tA(R)),d.array(R))return R.forEach(function(yA){return j(yA,F,Z,nA)}),nA;if(d.object(R)&&(F=R,R=""),d.func(F)&&Z(R))nA[R]=nA[R]||[],nA[R].push(F);else if(d.array(F))for(var lA=0,hA=F;lA<hA.length;lA++){var mA=hA[lA];j(R,mA,Z,nA)}else if(d.object(F))for(var IA in F)j(tA(IA).map(function(yA){return"".concat(R).concat(yA)}),F[IA],Z,nA);return nA}function tA(R){return R.trim().split(/ +/)}var rA=function(R,F){return Math.sqrt(R*R+F*F)},gA=["webkit","moz"];function z(R,F){R.__set||(R.__set={});var Z=function(lA){if(gA.some(function(hA){return lA.indexOf(hA)===0}))return 1;typeof R[lA]!="function"&&lA!=="__set"&&Object.defineProperty(R,lA,{get:function(){return lA in R.__set?R.__set[lA]:R.__set[lA]=F[lA]},set:function(hA){R.__set[lA]=hA},configurable:!0})};for(var nA in F)Z(nA);return R}function X(R,F){R.page=R.page||{},R.page.x=F.page.x,R.page.y=F.page.y,R.client=R.client||{},R.client.x=F.client.x,R.client.y=F.client.y,R.timeStamp=F.timeStamp}function iA(R){R.page.x=0,R.page.y=0,R.client.x=0,R.client.y=0}function cA(R){return R instanceof r.Event||R instanceof r.Touch}function CA(R,F,Z){return R=R||"page",(Z=Z||{}).x=F[R+"X"],Z.y=F[R+"Y"],Z}function vA(R,F){return F=F||{x:0,y:0},Q.isOperaMobile&&cA(R)?(CA("screen",R,F),F.x+=window.scrollX,F.y+=window.scrollY):CA("page",R,F),F}function GA(R){return d.number(R.pointerId)?R.pointerId:R.identifier}function JA(R,F,Z){var nA=F.length>1?WA(F):F[0];vA(nA,R.page),function(lA,hA){hA=hA||{},Q.isOperaMobile&&cA(lA)?CA("screen",lA,hA):CA("client",lA,hA)}(nA,R.client),R.timeStamp=Z}function qA(R){var F=[];return d.array(R)?(F[0]=R[0],F[1]=R[1]):R.type==="touchend"?R.touches.length===1?(F[0]=R.touches[0],F[1]=R.changedTouches[0]):R.touches.length===0&&(F[0]=R.changedTouches[0],F[1]=R.changedTouches[1]):(F[0]=R.touches[0],F[1]=R.touches[1]),F}function WA(R){for(var F={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},Z=0;Z<R.length;Z++){var nA=R[Z];for(var lA in F)F[lA]+=nA[lA]}for(var hA in F)F[hA]/=R.length;return F}function ue(R){if(!R.length)return null;var F=qA(R),Z=Math.min(F[0].pageX,F[1].pageX),nA=Math.min(F[0].pageY,F[1].pageY),lA=Math.max(F[0].pageX,F[1].pageX),hA=Math.max(F[0].pageY,F[1].pageY);return{x:Z,y:nA,left:Z,top:nA,right:lA,bottom:hA,width:lA-Z,height:hA-nA}}function te(R,F){var Z=F+"X",nA=F+"Y",lA=qA(R),hA=lA[0][Z]-lA[1][Z],mA=lA[0][nA]-lA[1][nA];return rA(hA,mA)}function LA(R,F){var Z=F+"X",nA=F+"Y",lA=qA(R),hA=lA[1][Z]-lA[0][Z],mA=lA[1][nA]-lA[0][nA];return 180*Math.atan2(mA,hA)/Math.PI}function SA(R){return d.string(R.pointerType)?R.pointerType:d.number(R.pointerType)?[void 0,void 0,"touch","pen","mouse"][R.pointerType]:/touch/.test(R.type||"")||R instanceof r.Touch?"touch":"mouse"}function ZA(R){var F=d.func(R.composedPath)?R.composedPath():R.path;return[O(F?F[0]:R.target),O(R.currentTarget)]}var Be=function(){function R(F){I(this,R),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=F}return b(R,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),R}();Object.defineProperty(Be.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var De=function(R,F){for(var Z=0;Z<F.length;Z++){var nA=F[Z];R.push(nA)}return R},Se=function(R){return De([],R)},YA=function(R,F){for(var Z=0;Z<R.length;Z++)if(F(R[Z],Z,R))return Z;return-1},$A=function(R,F){return R[YA(R,F)]},XA=function(R){w(Z,R);var F=Y(Z);function Z(nA,lA,hA){var mA;I(this,Z),(mA=F.call(this,lA._interaction)).dropzone=void 0,mA.dragEvent=void 0,mA.relatedTarget=void 0,mA.draggable=void 0,mA.propagationStopped=!1,mA.immediatePropagationStopped=!1;var IA=hA==="dragleave"?nA.prev:nA.cur,yA=IA.element,xA=IA.dropzone;return mA.type=hA,mA.target=yA,mA.currentTarget=yA,mA.dropzone=xA,mA.dragEvent=lA,mA.relatedTarget=lA.target,mA.draggable=lA.interactable,mA.timeStamp=lA.timeStamp,mA}return b(Z,[{key:"reject",value:function(){var nA=this,lA=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&lA.cur.dropzone===this.dropzone&&lA.cur.element===this.target)if(lA.prev.dropzone=this.dropzone,lA.prev.element=this.target,lA.rejected=!0,lA.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var hA=lA.activeDrops,mA=YA(hA,function(yA){var xA=yA.dropzone,DA=yA.element;return xA===nA.dropzone&&DA===nA.target});lA.activeDrops.splice(mA,1);var IA=new Z(lA,this.dragEvent,"dropdeactivate");IA.dropzone=this.dropzone,IA.target=this.target,this.dropzone.fire(IA)}else this.dropzone.fire(new Z(lA,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),Z}(Be);function he(R,F){for(var Z=0,nA=R.slice();Z<nA.length;Z++){var lA=nA[Z],hA=lA.dropzone,mA=lA.element;F.dropzone=hA,F.target=mA,hA.fire(F),F.propagationStopped=F.immediatePropagationStopped=!1}}function ce(R,F){for(var Z=function(hA,mA){for(var IA=[],yA=0,xA=hA.interactables.list;yA<xA.length;yA++){var DA=xA[yA];if(DA.options.drop.enabled){var PA=DA.options.drop.accept;if(!(d.element(PA)&&PA!==mA||d.string(PA)&&!$(mA,PA)||d.func(PA)&&!PA({dropzone:DA,draggableElement:mA})))for(var jA=0,le=DA.getAllElements();jA<le.length;jA++){var ae=le[jA];ae!==mA&&IA.push({dropzone:DA,element:ae,rect:DA.getRect(ae)})}}}return IA}(R,F),nA=0;nA<Z.length;nA++){var lA=Z[nA];lA.rect=lA.dropzone.getRect(lA.element)}return Z}function Ee(R,F,Z){for(var nA=R.dropState,lA=R.interactable,hA=R.element,mA=[],IA=0,yA=nA.activeDrops;IA<yA.length;IA++){var xA=yA[IA],DA=xA.dropzone,PA=xA.element,jA=xA.rect,le=DA.dropCheck(F,Z,lA,hA,PA,jA);mA.push(le?PA:null)}var ae=function(de){for(var ye,Qe,kA,UA=[],HA=0;HA<de.length;HA++){var VA=de[HA],Ce=de[ye];if(VA&&HA!==ye)if(Ce){var He=eA(VA),Ke=eA(Ce);if(He!==VA.ownerDocument)if(Ke!==VA.ownerDocument)if(He!==Ke){UA=UA.length?UA:W(Ce);var Oe=void 0;if(Ce instanceof r.HTMLElement&&VA instanceof r.SVGElement&&!(VA instanceof r.SVGSVGElement)){if(VA===Ke)continue;Oe=VA.ownerSVGElement}else Oe=VA;for(var on=W(Oe,Ce.ownerDocument),zn=0;on[zn]&&on[zn]===UA[zn];)zn++;var Ut=[on[zn-1],on[zn],UA[zn]];if(Ut[0])for(var ri=Ut[0].lastChild;ri;){if(ri===Ut[1]){ye=HA,UA=on;break}if(ri===Ut[2])break;ri=ri.previousSibling}}else kA=Ce,(parseInt(v(Qe=VA).getComputedStyle(Qe).zIndex,10)||0)>=(parseInt(v(kA).getComputedStyle(kA).zIndex,10)||0)&&(ye=HA);else ye=HA}else ye=HA}return ye}(mA);return nA.activeDrops[ae]||null}function ke(R,F,Z){var nA=R.dropState,lA={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return Z.type==="dragstart"&&(lA.activate=new XA(nA,Z,"dropactivate"),lA.activate.target=null,lA.activate.dropzone=null),Z.type==="dragend"&&(lA.deactivate=new XA(nA,Z,"dropdeactivate"),lA.deactivate.target=null,lA.deactivate.dropzone=null),nA.rejected||(nA.cur.element!==nA.prev.element&&(nA.prev.dropzone&&(lA.leave=new XA(nA,Z,"dragleave"),Z.dragLeave=lA.leave.target=nA.prev.element,Z.prevDropzone=lA.leave.dropzone=nA.prev.dropzone),nA.cur.dropzone&&(lA.enter=new XA(nA,Z,"dragenter"),Z.dragEnter=nA.cur.element,Z.dropzone=nA.cur.dropzone)),Z.type==="dragend"&&nA.cur.dropzone&&(lA.drop=new XA(nA,Z,"drop"),Z.dropzone=nA.cur.dropzone,Z.relatedTarget=nA.cur.element),Z.type==="dragmove"&&nA.cur.dropzone&&(lA.move=new XA(nA,Z,"dropmove"),Z.dropzone=nA.cur.dropzone)),lA}function wA(R,F){var Z=R.dropState,nA=Z.activeDrops,lA=Z.cur,hA=Z.prev;F.leave&&hA.dropzone.fire(F.leave),F.enter&&lA.dropzone.fire(F.enter),F.move&&lA.dropzone.fire(F.move),F.drop&&lA.dropzone.fire(F.drop),F.deactivate&&he(nA,F.deactivate),Z.prev.dropzone=lA.dropzone,Z.prev.element=lA.element}function NA(R,F){var Z=R.interaction,nA=R.iEvent,lA=R.event;if(nA.type==="dragmove"||nA.type==="dragend"){var hA=Z.dropState;F.dynamicDrop&&(hA.activeDrops=ce(F,Z.element));var mA=nA,IA=Ee(Z,mA,lA);hA.rejected=hA.rejected&&!!IA&&IA.dropzone===hA.cur.dropzone&&IA.element===hA.cur.element,hA.cur.dropzone=IA&&IA.dropzone,hA.cur.element=IA&&IA.element,hA.events=ke(Z,0,mA)}}var KA={id:"actions/drop",install:function(R){var F=R.actions,Z=R.interactStatic,nA=R.Interactable,lA=R.defaults;R.usePlugin(h),nA.prototype.dropzone=function(hA){return function(mA,IA){if(d.object(IA)){if(mA.options.drop.enabled=IA.enabled!==!1,IA.listeners){var yA=j(IA.listeners),xA=Object.keys(yA).reduce(function(PA,jA){return PA[/^(enter|leave)/.test(jA)?"drag".concat(jA):/^(activate|deactivate|move)/.test(jA)?"drop".concat(jA):jA]=yA[jA],PA},{}),DA=mA.options.drop.listeners;DA&&mA.off(DA),mA.on(xA),mA.options.drop.listeners=xA}return d.func(IA.ondrop)&&mA.on("drop",IA.ondrop),d.func(IA.ondropactivate)&&mA.on("dropactivate",IA.ondropactivate),d.func(IA.ondropdeactivate)&&mA.on("dropdeactivate",IA.ondropdeactivate),d.func(IA.ondragenter)&&mA.on("dragenter",IA.ondragenter),d.func(IA.ondragleave)&&mA.on("dragleave",IA.ondragleave),d.func(IA.ondropmove)&&mA.on("dropmove",IA.ondropmove),/^(pointer|center)$/.test(IA.overlap)?mA.options.drop.overlap=IA.overlap:d.number(IA.overlap)&&(mA.options.drop.overlap=Math.max(Math.min(1,IA.overlap),0)),"accept"in IA&&(mA.options.drop.accept=IA.accept),"checker"in IA&&(mA.options.drop.checker=IA.checker),mA}return d.bool(IA)?(mA.options.drop.enabled=IA,mA):mA.options.drop}(this,hA)},nA.prototype.dropCheck=function(hA,mA,IA,yA,xA,DA){return function(PA,jA,le,ae,de,ye,Qe){var kA=!1;if(!(Qe=Qe||PA.getRect(ye)))return!!PA.options.drop.checker&&PA.options.drop.checker(jA,le,kA,PA,ye,ae,de);var UA=PA.options.drop.overlap;if(UA==="pointer"){var HA=BA(ae,de,"drag"),VA=vA(jA);VA.x+=HA.x,VA.y+=HA.y;var Ce=VA.x>Qe.left&&VA.x<Qe.right,He=VA.y>Qe.top&&VA.y<Qe.bottom;kA=Ce&&He}var Ke=ae.getRect(de);if(Ke&&UA==="center"){var Oe=Ke.left+Ke.width/2,on=Ke.top+Ke.height/2;kA=Oe>=Qe.left&&Oe<=Qe.right&&on>=Qe.top&&on<=Qe.bottom}return Ke&&d.number(UA)&&(kA=Math.max(0,Math.min(Qe.right,Ke.right)-Math.max(Qe.left,Ke.left))*Math.max(0,Math.min(Qe.bottom,Ke.bottom)-Math.max(Qe.top,Ke.top))/(Ke.width*Ke.height)>=UA),PA.options.drop.checker&&(kA=PA.options.drop.checker(jA,le,kA,PA,ye,ae,de)),kA}(this,hA,mA,IA,yA,xA,DA)},Z.dynamicDrop=function(hA){return d.bool(hA)?(R.dynamicDrop=hA,Z):R.dynamicDrop},AA(F.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),F.methodDict.drop="dropzone",R.dynamicDrop=!1,lA.actions.drop=KA.defaults},listeners:{"interactions:before-action-start":function(R){var F=R.interaction;F.prepared.name==="drag"&&(F.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(R,F){var Z=R.interaction,nA=(R.event,R.iEvent);if(Z.prepared.name==="drag"){var lA=Z.dropState;lA.activeDrops=[],lA.events={},lA.activeDrops=ce(F,Z.element),lA.events=ke(Z,0,nA),lA.events.activate&&(he(lA.activeDrops,lA.events.activate),F.fire("actions/drop:start",{interaction:Z,dragEvent:nA}))}},"interactions:action-move":NA,"interactions:after-action-move":function(R,F){var Z=R.interaction,nA=R.iEvent;if(Z.prepared.name==="drag"){var lA=Z.dropState;wA(Z,lA.events),F.fire("actions/drop:move",{interaction:Z,dragEvent:nA}),lA.events={}}},"interactions:action-end":function(R,F){if(R.interaction.prepared.name==="drag"){var Z=R.interaction,nA=R.iEvent;NA(R,F),wA(Z,Z.dropState.events),F.fire("actions/drop:end",{interaction:Z,dragEvent:nA})}},"interactions:stop":function(R){var F=R.interaction;if(F.prepared.name==="drag"){var Z=F.dropState;Z&&(Z.activeDrops=null,Z.events=null,Z.cur.dropzone=null,Z.cur.element=null,Z.prev.dropzone=null,Z.prev.element=null,Z.rejected=!1)}}},getActiveDrops:ce,getDrop:Ee,getDropEvents:ke,fireDropEvents:wA,filterEventType:function(R){return R.search("drag")===0||R.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},oe=KA;function be(R){var F=R.interaction,Z=R.iEvent,nA=R.phase;if(F.prepared.name==="gesture"){var lA=F.pointers.map(function(xA){return xA.pointer}),hA=nA==="start",mA=nA==="end",IA=F.interactable.options.deltaSource;if(Z.touches=[lA[0],lA[1]],hA)Z.distance=te(lA,IA),Z.box=ue(lA),Z.scale=1,Z.ds=0,Z.angle=LA(lA,IA),Z.da=0,F.gesture.startDistance=Z.distance,F.gesture.startAngle=Z.angle;else if(mA||F.pointers.length<2){var yA=F.prevEvent;Z.distance=yA.distance,Z.box=yA.box,Z.scale=yA.scale,Z.ds=0,Z.angle=yA.angle,Z.da=0}else Z.distance=te(lA,IA),Z.box=ue(lA),Z.scale=Z.distance/F.gesture.startDistance,Z.angle=LA(lA,IA),Z.ds=Z.scale-F.gesture.scale,Z.da=Z.angle-F.gesture.angle;F.gesture.distance=Z.distance,F.gesture.angle=Z.angle,d.number(Z.scale)&&Z.scale!==1/0&&!isNaN(Z.scale)&&(F.gesture.scale=Z.scale)}}var re={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(R){var F=R.actions,Z=R.Interactable,nA=R.defaults;Z.prototype.gesturable=function(lA){return d.object(lA)?(this.options.gesture.enabled=lA.enabled!==!1,this.setPerAction("gesture",lA),this.setOnEvents("gesture",lA),this):d.bool(lA)?(this.options.gesture.enabled=lA,this):this.options.gesture},F.map.gesture=re,F.methodDict.gesture="gesturable",nA.actions.gesture=re.defaults},listeners:{"interactions:action-start":be,"interactions:action-move":be,"interactions:action-end":be,"interactions:new":function(R){R.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(R){if(!(R.interaction.pointers.length<2)){var F=R.interactable.options.gesture;if(F&&F.enabled)return R.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(R){return R.search("gesture")===0}},ge=re;function Me(R,F,Z,nA,lA,hA,mA){if(!F)return!1;if(F===!0){var IA=d.number(hA.width)?hA.width:hA.right-hA.left,yA=d.number(hA.height)?hA.height:hA.bottom-hA.top;if(mA=Math.min(mA,Math.abs((R==="left"||R==="right"?IA:yA)/2)),IA<0&&(R==="left"?R="right":R==="right"&&(R="left")),yA<0&&(R==="top"?R="bottom":R==="bottom"&&(R="top")),R==="left"){var xA=IA>=0?hA.left:hA.right;return Z.x<xA+mA}if(R==="top"){var DA=yA>=0?hA.top:hA.bottom;return Z.y<DA+mA}if(R==="right")return Z.x>(IA>=0?hA.right:hA.left)-mA;if(R==="bottom")return Z.y>(yA>=0?hA.bottom:hA.top)-mA}return!!d.element(nA)&&(d.element(F)?F===nA:J(nA,F,lA))}function tt(R){var F=R.iEvent,Z=R.interaction;if(Z.prepared.name==="resize"&&Z.resizeAxes){var nA=F;Z.interactable.options.resize.square?(Z.resizeAxes==="y"?nA.delta.x=nA.delta.y:nA.delta.y=nA.delta.x,nA.axes="xy"):(nA.axes=Z.resizeAxes,Z.resizeAxes==="x"?nA.delta.y=0:Z.resizeAxes==="y"&&(nA.delta.x=0))}}var lt,MA,bA={id:"actions/resize",before:["actions/drag"],install:function(R){var F=R.actions,Z=R.browser,nA=R.Interactable,lA=R.defaults;bA.cursors=function(hA){return hA.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(Z),bA.defaultMargin=Z.supportsTouch||Z.supportsPointerEvent?20:10,nA.prototype.resizable=function(hA){return function(mA,IA,yA){return d.object(IA)?(mA.options.resize.enabled=IA.enabled!==!1,mA.setPerAction("resize",IA),mA.setOnEvents("resize",IA),d.string(IA.axis)&&/^x$|^y$|^xy$/.test(IA.axis)?mA.options.resize.axis=IA.axis:IA.axis===null&&(mA.options.resize.axis=yA.defaults.actions.resize.axis),d.bool(IA.preserveAspectRatio)?mA.options.resize.preserveAspectRatio=IA.preserveAspectRatio:d.bool(IA.square)&&(mA.options.resize.square=IA.square),mA):d.bool(IA)?(mA.options.resize.enabled=IA,mA):mA.options.resize}(this,hA,R)},F.map.resize=bA,F.methodDict.resize="resizable",lA.actions.resize=bA.defaults},listeners:{"interactions:new":function(R){R.interaction.resizeAxes="xy"},"interactions:action-start":function(R){(function(F){var Z=F.iEvent,nA=F.interaction;if(nA.prepared.name==="resize"&&nA.prepared.edges){var lA=Z,hA=nA.rect;nA._rects={start:AA({},hA),corrected:AA({},hA),previous:AA({},hA),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},lA.edges=nA.prepared.edges,lA.rect=nA._rects.corrected,lA.deltaRect=nA._rects.delta}})(R),tt(R)},"interactions:action-move":function(R){(function(F){var Z=F.iEvent,nA=F.interaction;if(nA.prepared.name==="resize"&&nA.prepared.edges){var lA=Z,hA=nA.interactable.options.resize.invert,mA=hA==="reposition"||hA==="negate",IA=nA.rect,yA=nA._rects,xA=yA.start,DA=yA.corrected,PA=yA.delta,jA=yA.previous;if(AA(jA,DA),mA){if(AA(DA,IA),hA==="reposition"){if(DA.top>DA.bottom){var le=DA.top;DA.top=DA.bottom,DA.bottom=le}if(DA.left>DA.right){var ae=DA.left;DA.left=DA.right,DA.right=ae}}}else DA.top=Math.min(IA.top,xA.bottom),DA.bottom=Math.max(IA.bottom,xA.top),DA.left=Math.min(IA.left,xA.right),DA.right=Math.max(IA.right,xA.left);for(var de in DA.width=DA.right-DA.left,DA.height=DA.bottom-DA.top,DA)PA[de]=DA[de]-jA[de];lA.edges=nA.prepared.edges,lA.rect=DA,lA.deltaRect=PA}})(R),tt(R)},"interactions:action-end":function(R){var F=R.iEvent,Z=R.interaction;if(Z.prepared.name==="resize"&&Z.prepared.edges){var nA=F;nA.edges=Z.prepared.edges,nA.rect=Z._rects.corrected,nA.deltaRect=Z._rects.delta}},"auto-start:check":function(R){var F=R.interaction,Z=R.interactable,nA=R.element,lA=R.rect,hA=R.buttons;if(lA){var mA=AA({},F.coords.cur.page),IA=Z.options.resize;if(IA&&IA.enabled&&(!F.pointerIsDown||!/mouse|pointer/.test(F.pointerType)||hA&IA.mouseButtons)){if(d.object(IA.edges)){var yA={left:!1,right:!1,top:!1,bottom:!1};for(var xA in yA)yA[xA]=Me(xA,IA.edges[xA],mA,F._latestPointer.eventTarget,nA,lA,IA.margin||bA.defaultMargin);yA.left=yA.left&&!yA.right,yA.top=yA.top&&!yA.bottom,(yA.left||yA.right||yA.top||yA.bottom)&&(R.action={name:"resize",edges:yA})}else{var DA=IA.axis!=="y"&&mA.x>lA.right-bA.defaultMargin,PA=IA.axis!=="x"&&mA.y>lA.bottom-bA.defaultMargin;(DA||PA)&&(R.action={name:"resize",axes:(DA?"x":"")+(PA?"y":"")})}return!R.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(R){var F=R.edges,Z=R.axis,nA=R.name,lA=bA.cursors,hA=null;if(Z)hA=lA[nA+Z];else if(F){for(var mA="",IA=0,yA=["top","bottom","left","right"];IA<yA.length;IA++){var xA=yA[IA];F[xA]&&(mA+=xA)}hA=lA[mA]}return hA},filterEventType:function(R){return R.search("resize")===0},defaultMargin:null},RA=bA,zA={id:"actions",install:function(R){R.usePlugin(ge),R.usePlugin(RA),R.usePlugin(h),R.usePlugin(oe)}},OA=0,fe={request:function(R){return lt(R)},cancel:function(R){return MA(R)},init:function(R){if(lt=R.requestAnimationFrame,MA=R.cancelAnimationFrame,!lt)for(var F=["ms","moz","webkit","o"],Z=0;Z<F.length;Z++){var nA=F[Z];lt=R["".concat(nA,"RequestAnimationFrame")],MA=R["".concat(nA,"CancelAnimationFrame")]||R["".concat(nA,"CancelRequestAnimationFrame")]}lt=lt&&lt.bind(R),MA=MA&&MA.bind(R),lt||(lt=function(lA){var hA=Date.now(),mA=Math.max(0,16-(hA-OA)),IA=R.setTimeout(function(){lA(hA+mA)},mA);return OA=hA+mA,IA},MA=function(lA){return clearTimeout(lA)})}},ne={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(R){ne.isScrolling=!0,fe.cancel(ne.i),R.autoScroll=ne,ne.interaction=R,ne.prevTime=ne.now(),ne.i=fe.request(ne.scroll)},stop:function(){ne.isScrolling=!1,ne.interaction&&(ne.interaction.autoScroll=null),fe.cancel(ne.i)},scroll:function(){var R=ne.interaction,F=R.interactable,Z=R.element,nA=R.prepared.name,lA=F.options[nA].autoScroll,hA=_e(lA.container,F,Z),mA=ne.now(),IA=(mA-ne.prevTime)/1e3,yA=lA.speed*IA;if(yA>=1){var xA={x:ne.x*yA,y:ne.y*yA};if(xA.x||xA.y){var DA=qe(hA);d.window(hA)?hA.scrollBy(xA.x,xA.y):hA&&(hA.scrollLeft+=xA.x,hA.scrollTop+=xA.y);var PA=qe(hA),jA={x:PA.x-DA.x,y:PA.y-DA.y};(jA.x||jA.y)&&F.fire({type:"autoscroll",target:Z,interactable:F,delta:jA,interaction:R,container:hA})}ne.prevTime=mA}ne.isScrolling&&(fe.cancel(ne.i),ne.i=fe.request(ne.scroll))},check:function(R,F){var Z;return(Z=R.options[F].autoScroll)==null?void 0:Z.enabled},onInteractionMove:function(R){var F=R.interaction,Z=R.pointer;if(F.interacting()&&ne.check(F.interactable,F.prepared.name))if(F.simulation)ne.x=ne.y=0;else{var nA,lA,hA,mA,IA=F.interactable,yA=F.element,xA=F.prepared.name,DA=IA.options[xA].autoScroll,PA=_e(DA.container,IA,yA);if(d.window(PA))mA=Z.clientX<ne.margin,nA=Z.clientY<ne.margin,lA=Z.clientX>PA.innerWidth-ne.margin,hA=Z.clientY>PA.innerHeight-ne.margin;else{var jA=q(PA);mA=Z.clientX<jA.left+ne.margin,nA=Z.clientY<jA.top+ne.margin,lA=Z.clientX>jA.right-ne.margin,hA=Z.clientY>jA.bottom-ne.margin}ne.x=lA?1:mA?-1:0,ne.y=hA?1:nA?-1:0,ne.isScrolling||(ne.margin=DA.margin,ne.speed=DA.speed,ne.start(F))}}};function _e(R,F,Z){return(d.string(R)?sA(R,F,Z):R)||v(Z)}function qe(R){return d.window(R)&&(R=window.document.body),{x:R.scrollLeft,y:R.scrollTop}}var Ct={id:"auto-scroll",install:function(R){var F=R.defaults,Z=R.actions;R.autoScroll=ne,ne.now=function(){return R.now()},Z.phaselessTypes.autoscroll=!0,F.perAction.autoScroll=ne.defaults},listeners:{"interactions:new":function(R){R.interaction.autoScroll=null},"interactions:destroy":function(R){R.interaction.autoScroll=null,ne.stop(),ne.interaction&&(ne.interaction=null)},"interactions:stop":ne.stop,"interactions:action-move":function(R){return ne.onInteractionMove(R)}}},ze=Ct;function At(R,F){var Z=!1;return function(){return Z||(L.console.warn(F),Z=!0),R.apply(this,arguments)}}function gt(R,F){return R.name=F.name,R.axis=F.axis,R.edges=F.edges,R}function Pe(R){return d.bool(R)?(this.options.styleCursor=R,this):R===null?(delete this.options.styleCursor,this):this.options.styleCursor}function ot(R){return d.func(R)?(this.options.actionChecker=R,this):R===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Et={id:"auto-start/interactableMethods",install:function(R){var F=R.Interactable;F.prototype.getAction=function(Z,nA,lA,hA){var mA=function(IA,yA,xA,DA,PA){var jA=IA.getRect(DA),le=yA.buttons||{0:1,1:4,3:8,4:16}[yA.button],ae={action:null,interactable:IA,interaction:xA,element:DA,rect:jA,buttons:le};return PA.fire("auto-start:check",ae),ae.action}(this,nA,lA,hA,R);return this.options.actionChecker?this.options.actionChecker(Z,nA,mA,this,hA,lA):mA},F.prototype.ignoreFrom=At(function(Z){return this._backCompatOption("ignoreFrom",Z)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),F.prototype.allowFrom=At(function(Z){return this._backCompatOption("allowFrom",Z)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),F.prototype.actionChecker=ot,F.prototype.styleCursor=Pe}};function nt(R,F,Z,nA,lA){return F.testIgnoreAllow(F.options[R.name],Z,nA)&&F.options[R.name].enabled&&gn(F,Z,R,lA)?R:null}function Nn(R,F,Z,nA,lA,hA,mA){for(var IA=0,yA=nA.length;IA<yA;IA++){var xA=nA[IA],DA=lA[IA],PA=xA.getAction(F,Z,R,DA);if(PA){var jA=nt(PA,xA,DA,hA,mA);if(jA)return{action:jA,interactable:xA,element:DA}}}return{action:null,interactable:null,element:null}}function Xt(R,F,Z,nA,lA){var hA=[],mA=[],IA=nA;function yA(DA){hA.push(DA),mA.push(IA)}for(;d.element(IA);){hA=[],mA=[],lA.interactables.forEachMatch(IA,yA);var xA=Nn(R,F,Z,hA,mA,nA,lA);if(xA.action&&!xA.interactable.options[xA.action.name].manualStart)return xA;IA=T(IA)}return{action:null,interactable:null,element:null}}function Vt(R,F,Z){var nA=F.action,lA=F.interactable,hA=F.element;nA=nA||{name:null},R.interactable=lA,R.element=hA,gt(R.prepared,nA),R.rect=lA&&nA.name?lA.getRect(hA):null,An(R,Z),Z.fire("autoStart:prepared",{interaction:R})}function gn(R,F,Z,nA){var lA=R.options,hA=lA[Z.name].max,mA=lA[Z.name].maxPerElement,IA=nA.autoStart.maxInteractions,yA=0,xA=0,DA=0;if(!(hA&&mA&&IA))return!1;for(var PA=0,jA=nA.interactions.list;PA<jA.length;PA++){var le=jA[PA],ae=le.prepared.name;if(le.interacting()&&(++yA>=IA||le.interactable===R&&((xA+=ae===Z.name?1:0)>=hA||le.element===F&&(DA++,ae===Z.name&&DA>=mA))))return!1}return IA>0}function wn(R,F){return d.number(R)?(F.autoStart.maxInteractions=R,this):F.autoStart.maxInteractions}function St(R,F,Z){var nA=Z.autoStart.cursorElement;nA&&nA!==R&&(nA.style.cursor=""),R.ownerDocument.documentElement.style.cursor=F,R.style.cursor=F,Z.autoStart.cursorElement=F?R:null}function An(R,F){var Z=R.interactable,nA=R.element,lA=R.prepared;if(R.pointerType==="mouse"&&Z&&Z.options.styleCursor){var hA="";if(lA.name){var mA=Z.options[lA.name].cursorChecker;hA=d.func(mA)?mA(lA,Z,nA,R._interacting):F.actions.map[lA.name].getCursor(lA)}St(R.element,hA||"",F)}else F.autoStart.cursorElement&&St(F.autoStart.cursorElement,"",F)}var On={id:"auto-start/base",before:["actions"],install:function(R){var F=R.interactStatic,Z=R.defaults;R.usePlugin(Et),Z.base.actionChecker=null,Z.base.styleCursor=!0,AA(Z.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),F.maxInteractions=function(nA){return wn(nA,R)},R.autoStart={maxInteractions:1/0,withinInteractionLimit:gn,cursorElement:null}},listeners:{"interactions:down":function(R,F){var Z=R.interaction,nA=R.pointer,lA=R.event,hA=R.eventTarget;Z.interacting()||Vt(Z,Xt(Z,nA,lA,hA,F),F)},"interactions:move":function(R,F){(function(Z,nA){var lA=Z.interaction,hA=Z.pointer,mA=Z.event,IA=Z.eventTarget;lA.pointerType!=="mouse"||lA.pointerIsDown||lA.interacting()||Vt(lA,Xt(lA,hA,mA,IA,nA),nA)})(R,F),function(Z,nA){var lA=Z.interaction;if(lA.pointerIsDown&&!lA.interacting()&&lA.pointerWasMoved&&lA.prepared.name){nA.fire("autoStart:before-start",Z);var hA=lA.interactable,mA=lA.prepared.name;mA&&hA&&(hA.options[mA].manualStart||!gn(hA,lA.element,lA.prepared,nA)?lA.stop():(lA.start(lA.prepared,hA,lA.element),An(lA,nA)))}}(R,F)},"interactions:stop":function(R,F){var Z=R.interaction,nA=Z.interactable;nA&&nA.options.styleCursor&&St(Z.element,"",F)}},maxInteractions:wn,withinInteractionLimit:gn,validateAction:nt},en=On,Ci={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(R,F){var Z=R.interaction,nA=R.eventTarget,lA=R.dx,hA=R.dy;if(Z.prepared.name==="drag"){var mA=Math.abs(lA),IA=Math.abs(hA),yA=Z.interactable.options.drag,xA=yA.startAxis,DA=mA>IA?"x":mA<IA?"y":"xy";if(Z.prepared.axis=yA.lockAxis==="start"?DA[0]:yA.lockAxis,DA!=="xy"&&xA!=="xy"&&xA!==DA){Z.prepared.name=null;for(var PA=nA,jA=function(ae){if(ae!==Z.interactable){var de=Z.interactable.options.drag;if(!de.manualStart&&ae.testIgnoreAllow(de,PA,nA)){var ye=ae.getAction(Z.downPointer,Z.downEvent,Z,PA);if(ye&&ye.name==="drag"&&function(Qe,kA){if(!kA)return!1;var UA=kA.options.drag.startAxis;return Qe==="xy"||UA==="xy"||UA===Qe}(DA,ae)&&en.validateAction(ye,ae,PA,nA,F))return ae}}};d.element(PA);){var le=F.interactables.forEachMatch(PA,jA);if(le){Z.prepared.name="drag",Z.interactable=le,Z.element=PA;break}PA=T(PA)}}}}}};function Bi(R){var F=R.prepared&&R.prepared.name;if(!F)return null;var Z=R.interactable.options;return Z[F].hold||Z[F].delay}var co={id:"auto-start/hold",install:function(R){var F=R.defaults;R.usePlugin(en),F.perAction.hold=0,F.perAction.delay=0},listeners:{"interactions:new":function(R){R.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(R){var F=R.interaction,Z=Bi(F);Z>0&&(F.autoStartHoldTimer=setTimeout(function(){F.start(F.prepared,F.interactable,F.element)},Z))},"interactions:move":function(R){var F=R.interaction,Z=R.duplicate;F.autoStartHoldTimer&&F.pointerWasMoved&&!Z&&(clearTimeout(F.autoStartHoldTimer),F.autoStartHoldTimer=null)},"autoStart:before-start":function(R){var F=R.interaction;Bi(F)>0&&(F.prepared.name=null)}},getHoldDuration:Bi},mi=co,ti={id:"auto-start",install:function(R){R.usePlugin(en),R.usePlugin(mi),R.usePlugin(Ci)}},Pi=function(R){return/^(always|never|auto)$/.test(R)?(this.options.preventDefault=R,this):d.bool(R)?(this.options.preventDefault=R?"always":"never",this):this.options.preventDefault};function go(R){var F=R.interaction,Z=R.event;F.interactable&&F.interactable.checkAndPreventDefault(Z)}var ni={id:"core/interactablePreventDefault",install:function(R){var F=R.Interactable;F.prototype.preventDefault=Pi,F.prototype.checkAndPreventDefault=function(Z){return function(nA,lA,hA){var mA=nA.options.preventDefault;if(mA!=="never")if(mA!=="always"){if(lA.events.supportsPassive&&/^touch(start|move)$/.test(hA.type)){var IA=v(hA.target).document,yA=lA.getDocOptions(IA);if(!yA||!yA.events||yA.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(hA.type)||d.element(hA.target)&&$(hA.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||hA.preventDefault()}else hA.preventDefault()}(this,R,Z)},R.interactions.docEvents.push({type:"dragstart",listener:function(Z){for(var nA=0,lA=R.interactions.list;nA<lA.length;nA++){var hA=lA[nA];if(hA.element&&(hA.element===Z.target||x(hA.element,Z.target)))return void hA.interactable.checkAndPreventDefault(Z)}}})},listeners:["down","move","up","cancel"].reduce(function(R,F){return R["interactions:".concat(F)]=go,R},{})};function bn(R,F){if(F.phaselessTypes[R])return!0;for(var Z in F.map)if(R.indexOf(Z)===0&&R.substr(Z.length)in F.phases)return!0;return!1}function Hi(R){var F={};for(var Z in R){var nA=R[Z];d.plainObject(nA)?F[Z]=Hi(nA):d.array(nA)?F[Z]=Se(nA):F[Z]=nA}return F}var Jo=function(){function R(F){I(this,R),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=F,this.result=uo(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return b(R,[{key:"start",value:function(F,Z){var nA,lA,hA=F.phase,mA=this.interaction,IA=function(xA){var DA=xA.interactable.options[xA.prepared.name],PA=DA.modifiers;return PA&&PA.length?PA:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(jA){var le=DA[jA];return le&&le.enabled&&{options:le,methods:le._methods}}).filter(function(jA){return!!jA})}(mA);this.prepareStates(IA),this.startEdges=AA({},mA.edges),this.edges=AA({},this.startEdges),this.startOffset=(nA=mA.rect,lA=Z,nA?{left:lA.x-nA.left,top:lA.y-nA.top,right:nA.right-lA.x,bottom:nA.bottom-lA.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var yA=this.fillArg({phase:hA,pageCoords:Z,preEnd:!1});return this.result=uo(),this.startAll(yA),this.result=this.setAll(yA)}},{key:"fillArg",value:function(F){var Z=this.interaction;return F.interaction=Z,F.interactable=Z.interactable,F.element=Z.element,F.rect||(F.rect=Z.rect),F.edges||(F.edges=this.startEdges),F.startOffset=this.startOffset,F}},{key:"startAll",value:function(F){for(var Z=0,nA=this.states;Z<nA.length;Z++){var lA=nA[Z];lA.methods.start&&(F.state=lA,lA.methods.start(F))}}},{key:"setAll",value:function(F){var Z=F.phase,nA=F.preEnd,lA=F.skipModifiers,hA=F.rect,mA=F.edges;F.coords=AA({},F.pageCoords),F.rect=AA({},hA),F.edges=AA({},mA);for(var IA=lA?this.states.slice(lA):this.states,yA=uo(F.coords,F.rect),xA=0;xA<IA.length;xA++){var DA,PA=IA[xA],jA=PA.options,le=AA({},F.coords),ae=null;(DA=PA.methods)!=null&&DA.set&&this.shouldDo(jA,nA,Z)&&(F.state=PA,ae=PA.methods.set(F),uA(F.edges,F.rect,{x:F.coords.x-le.x,y:F.coords.y-le.y})),yA.eventProps.push(ae)}AA(this.edges,F.edges),yA.delta.x=F.coords.x-F.pageCoords.x,yA.delta.y=F.coords.y-F.pageCoords.y,yA.rectDelta.left=F.rect.left-hA.left,yA.rectDelta.right=F.rect.right-hA.right,yA.rectDelta.top=F.rect.top-hA.top,yA.rectDelta.bottom=F.rect.bottom-hA.bottom;var de=this.result.coords,ye=this.result.rect;if(de&&ye){var Qe=yA.rect.left!==ye.left||yA.rect.right!==ye.right||yA.rect.top!==ye.top||yA.rect.bottom!==ye.bottom;yA.changed=Qe||de.x!==yA.coords.x||de.y!==yA.coords.y}return yA}},{key:"applyToInteraction",value:function(F){var Z=this.interaction,nA=F.phase,lA=Z.coords.cur,hA=Z.coords.start,mA=this.result,IA=this.startDelta,yA=mA.delta;nA==="start"&&AA(this.startDelta,mA.delta);for(var xA=0,DA=[[hA,IA],[lA,yA]];xA<DA.length;xA++){var PA=DA[xA],jA=PA[0],le=PA[1];jA.page.x+=le.x,jA.page.y+=le.y,jA.client.x+=le.x,jA.client.y+=le.y}var ae=this.result.rectDelta,de=F.rect||Z.rect;de.left+=ae.left,de.right+=ae.right,de.top+=ae.top,de.bottom+=ae.bottom,de.width=de.right-de.left,de.height=de.bottom-de.top}},{key:"setAndApply",value:function(F){var Z=this.interaction,nA=F.phase,lA=F.preEnd,hA=F.skipModifiers,mA=this.setAll(this.fillArg({preEnd:lA,phase:nA,pageCoords:F.modifiedCoords||Z.coords.cur.page}));if(this.result=mA,!mA.changed&&(!hA||hA<this.states.length)&&Z.interacting())return!1;if(F.modifiedCoords){var IA=Z.coords.cur.page,yA={x:F.modifiedCoords.x-IA.x,y:F.modifiedCoords.y-IA.y};mA.coords.x+=yA.x,mA.coords.y+=yA.y,mA.delta.x+=yA.x,mA.delta.y+=yA.y}this.applyToInteraction(F)}},{key:"beforeEnd",value:function(F){var Z=F.interaction,nA=F.event,lA=this.states;if(lA&&lA.length){for(var hA=!1,mA=0;mA<lA.length;mA++){var IA=lA[mA];F.state=IA;var yA=IA.options,xA=IA.methods,DA=xA.beforeEnd&&xA.beforeEnd(F);if(DA)return this.endResult=DA,!1;hA=hA||!hA&&this.shouldDo(yA,!0,F.phase,!0)}hA&&Z.move({event:nA,preEnd:!0})}}},{key:"stop",value:function(F){var Z=F.interaction;if(this.states&&this.states.length){var nA=AA({states:this.states,interactable:Z.interactable,element:Z.element,rect:null},F);this.fillArg(nA);for(var lA=0,hA=this.states;lA<hA.length;lA++){var mA=hA[lA];nA.state=mA,mA.methods.stop&&mA.methods.stop(nA)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(F){this.states=[];for(var Z=0;Z<F.length;Z++){var nA=F[Z],lA=nA.options,hA=nA.methods,mA=nA.name;this.states.push({options:lA,methods:hA,index:Z,name:mA})}return this.states}},{key:"restoreInteractionCoords",value:function(F){var Z=F.interaction,nA=Z.coords,lA=Z.rect,hA=Z.modification;if(hA.result){for(var mA=hA.startDelta,IA=hA.result,yA=IA.delta,xA=IA.rectDelta,DA=0,PA=[[nA.start,mA],[nA.cur,yA]];DA<PA.length;DA++){var jA=PA[DA],le=jA[0],ae=jA[1];le.page.x-=ae.x,le.page.y-=ae.y,le.client.x-=ae.x,le.client.y-=ae.y}lA.left-=xA.left,lA.right-=xA.right,lA.top-=xA.top,lA.bottom-=xA.bottom}}},{key:"shouldDo",value:function(F,Z,nA,lA){return!(!F||F.enabled===!1||lA&&!F.endOnly||F.endOnly&&!Z||nA==="start"&&!F.setStart)}},{key:"copyFrom",value:function(F){this.startOffset=F.startOffset,this.startDelta=F.startDelta,this.startEdges=F.startEdges,this.edges=F.edges,this.states=F.states.map(function(Z){return Hi(Z)}),this.result=uo(AA({},F.result.coords),AA({},F.result.rect))}},{key:"destroy",value:function(){for(var F in this)this[F]=null}}]),R}();function uo(R,F){return{rect:F,coords:R,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Fn(R,F){var Z=R.defaults,nA={start:R.start,set:R.set,beforeEnd:R.beforeEnd,stop:R.stop},lA=function(hA){var mA=hA||{};for(var IA in mA.enabled=mA.enabled!==!1,Z)IA in mA||(mA[IA]=Z[IA]);var yA={options:mA,methods:nA,name:F,enable:function(){return mA.enabled=!0,yA},disable:function(){return mA.enabled=!1,yA}};return yA};return F&&typeof F=="string"&&(lA._defaults=Z,lA._methods=nA),lA}function ho(R){var F=R.iEvent,Z=R.interaction.modification.result;Z&&(F.modifiers=Z.eventProps)}var bs={id:"modifiers/base",before:["actions"],install:function(R){R.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(R){var F=R.interaction;F.modification=new Jo(F)},"interactions:before-action-start":function(R){var F=R.interaction,Z=R.interaction.modification;Z.start(R,F.coords.start.page),F.edges=Z.edges,Z.applyToInteraction(R)},"interactions:before-action-move":function(R){var F=R.interaction,Z=F.modification,nA=Z.setAndApply(R);return F.edges=Z.edges,nA},"interactions:before-action-end":function(R){var F=R.interaction,Z=F.modification,nA=Z.beforeEnd(R);return F.edges=Z.startEdges,nA},"interactions:action-start":ho,"interactions:action-move":ho,"interactions:action-end":ho,"interactions:after-action-start":function(R){return R.interaction.modification.restoreInteractionCoords(R)},"interactions:after-action-move":function(R){return R.interaction.modification.restoreInteractionCoords(R)},"interactions:stop":function(R){return R.interaction.modification.stop(R)}}},Zo=bs,Wo={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},ii=function(R){w(Z,R);var F=Y(Z);function Z(nA,lA,hA,mA,IA,yA,xA){var DA;I(this,Z),(DA=F.call(this,nA)).relatedTarget=null,DA.screenX=void 0,DA.screenY=void 0,DA.button=void 0,DA.buttons=void 0,DA.ctrlKey=void 0,DA.shiftKey=void 0,DA.altKey=void 0,DA.metaKey=void 0,DA.page=void 0,DA.client=void 0,DA.delta=void 0,DA.rect=void 0,DA.x0=void 0,DA.y0=void 0,DA.t0=void 0,DA.dt=void 0,DA.duration=void 0,DA.clientX0=void 0,DA.clientY0=void 0,DA.velocity=void 0,DA.speed=void 0,DA.swipe=void 0,DA.axes=void 0,DA.preEnd=void 0,IA=IA||nA.element;var PA=nA.interactable,jA=(PA&&PA.options||Wo).deltaSource,le=BA(PA,IA,hA),ae=mA==="start",de=mA==="end",ye=ae?P(DA):nA.prevEvent,Qe=ae?nA.coords.start:de?{page:ye.page,client:ye.client,timeStamp:nA.coords.cur.timeStamp}:nA.coords.cur;return DA.page=AA({},Qe.page),DA.client=AA({},Qe.client),DA.rect=AA({},nA.rect),DA.timeStamp=Qe.timeStamp,de||(DA.page.x-=le.x,DA.page.y-=le.y,DA.client.x-=le.x,DA.client.y-=le.y),DA.ctrlKey=lA.ctrlKey,DA.altKey=lA.altKey,DA.shiftKey=lA.shiftKey,DA.metaKey=lA.metaKey,DA.button=lA.button,DA.buttons=lA.buttons,DA.target=IA,DA.currentTarget=IA,DA.preEnd=yA,DA.type=xA||hA+(mA||""),DA.interactable=PA,DA.t0=ae?nA.pointers[nA.pointers.length-1].downTime:ye.t0,DA.x0=nA.coords.start.page.x-le.x,DA.y0=nA.coords.start.page.y-le.y,DA.clientX0=nA.coords.start.client.x-le.x,DA.clientY0=nA.coords.start.client.y-le.y,DA.delta=ae||de?{x:0,y:0}:{x:DA[jA].x-ye[jA].x,y:DA[jA].y-ye[jA].y},DA.dt=nA.coords.delta.timeStamp,DA.duration=DA.timeStamp-DA.t0,DA.velocity=AA({},nA.coords.velocity[jA]),DA.speed=rA(DA.velocity.x,DA.velocity.y),DA.swipe=de||mA==="inertiastart"?DA.getSwipe():null,DA}return b(Z,[{key:"getSwipe",value:function(){var nA=this._interaction;if(nA.prevEvent.speed<600||this.timeStamp-nA.prevEvent.timeStamp>150)return null;var lA=180*Math.atan2(nA.prevEvent.velocityY,nA.prevEvent.velocityX)/Math.PI;lA<0&&(lA+=360);var hA=112.5<=lA&&lA<247.5,mA=202.5<=lA&&lA<337.5;return{up:mA,down:!mA&&22.5<=lA&&lA<157.5,left:hA,right:!hA&&(292.5<=lA||lA<67.5),angle:lA,speed:nA.prevEvent.speed,velocity:{x:nA.prevEvent.velocityX,y:nA.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),Z}(Be);Object.defineProperties(ii.prototype,{pageX:{get:function(){return this.page.x},set:function(R){this.page.x=R}},pageY:{get:function(){return this.page.y},set:function(R){this.page.y=R}},clientX:{get:function(){return this.client.x},set:function(R){this.client.x=R}},clientY:{get:function(){return this.client.y},set:function(R){this.client.y=R}},dx:{get:function(){return this.delta.x},set:function(R){this.delta.x=R}},dy:{get:function(){return this.delta.y},set:function(R){this.delta.y=R}},velocityX:{get:function(){return this.velocity.x},set:function(R){this.velocity.x=R}},velocityY:{get:function(){return this.velocity.y},set:function(R){this.velocity.y=R}}});var ys=b(function R(F,Z,nA,lA,hA){I(this,R),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=F,this.pointer=Z,this.event=nA,this.downTime=lA,this.downTarget=hA}),Ds=function(R){return R.interactable="",R.element="",R.prepared="",R.pointerIsDown="",R.pointerWasMoved="",R._proxy="",R}({}),vs=function(R){return R.start="",R.move="",R.end="",R.stop="",R.interacting="",R}({}),ks=0,_s=function(){function R(F){var Z=this,nA=F.pointerType,lA=F.scopeFire;I(this,R),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=At(function(DA){this.move(DA)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=ks++,this._scopeFire=lA,this.pointerType=nA;var hA=this;this._proxy={};var mA=function(DA){Object.defineProperty(Z._proxy,DA,{get:function(){return hA[DA]}})};for(var IA in Ds)mA(IA);var yA=function(DA){Object.defineProperty(Z._proxy,DA,{value:function(){return hA[DA].apply(hA,arguments)}})};for(var xA in vs)yA(xA);this._scopeFire("interactions:new",{interaction:this})}return b(R,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(F,Z,nA){var lA=this.updatePointer(F,Z,nA,!0),hA=this.pointers[lA];this._scopeFire("interactions:down",{pointer:F,event:Z,eventTarget:nA,pointerIndex:lA,pointerInfo:hA,type:"down",interaction:this})}},{key:"start",value:function(F,Z,nA){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(F.name==="gesture"?2:1)||!Z.options[F.name].enabled)&&(gt(this.prepared,F),this.interactable=Z,this.element=nA,this.rect=Z.getRect(nA),this.edges=this.prepared.edges?AA({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(F,Z,nA){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(F,Z,nA,!1);var lA,hA,mA=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(lA=this.coords.cur.client.x-this.coords.start.client.x,hA=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=rA(lA,hA)>this.pointerMoveTolerance);var IA,yA,xA,DA=this.getPointerIndex(F),PA={pointer:F,pointerIndex:DA,pointerInfo:this.pointers[DA],event:Z,type:"move",eventTarget:nA,dx:lA,dy:hA,duplicate:mA,interaction:this};mA||(IA=this.coords.velocity,yA=this.coords.delta,xA=Math.max(yA.timeStamp/1e3,.001),IA.page.x=yA.page.x/xA,IA.page.y=yA.page.y/xA,IA.client.x=yA.client.x/xA,IA.client.y=yA.client.y/xA,IA.timeStamp=xA),this._scopeFire("interactions:move",PA),mA||this.simulation||(this.interacting()&&(PA.type=null,this.move(PA)),this.pointerWasMoved&&X(this.coords.prev,this.coords.cur))}},{key:"move",value:function(F){F&&F.event||iA(this.coords.delta),(F=AA({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},F||{})).phase="move",this._doPhase(F)}},{key:"pointerUp",value:function(F,Z,nA,lA){var hA=this.getPointerIndex(F);hA===-1&&(hA=this.updatePointer(F,Z,nA,!1));var mA=/cancel$/i.test(Z.type)?"cancel":"up";this._scopeFire("interactions:".concat(mA),{pointer:F,pointerIndex:hA,pointerInfo:this.pointers[hA],event:Z,eventTarget:nA,type:mA,curEventTarget:lA,interaction:this}),this.simulation||this.end(Z),this.removePointer(F,Z)}},{key:"documentBlur",value:function(F){this.end(F),this._scopeFire("interactions:blur",{event:F,type:"blur",interaction:this})}},{key:"end",value:function(F){var Z;this._ending=!0,F=F||this._latestPointer.event,this.interacting()&&(Z=this._doPhase({event:F,interaction:this,phase:"end"})),this._ending=!1,Z===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(F){var Z=GA(F);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:YA(this.pointers,function(nA){return nA.id===Z})}},{key:"getPointerInfo",value:function(F){return this.pointers[this.getPointerIndex(F)]}},{key:"updatePointer",value:function(F,Z,nA,lA){var hA,mA,IA,yA=GA(F),xA=this.getPointerIndex(F),DA=this.pointers[xA];return lA=lA!==!1&&(lA||/(down|start)$/i.test(Z.type)),DA?DA.pointer=F:(DA=new ys(yA,F,Z,null,null),xA=this.pointers.length,this.pointers.push(DA)),JA(this.coords.cur,this.pointers.map(function(PA){return PA.pointer}),this._now()),hA=this.coords.delta,mA=this.coords.prev,IA=this.coords.cur,hA.page.x=IA.page.x-mA.page.x,hA.page.y=IA.page.y-mA.page.y,hA.client.x=IA.client.x-mA.client.x,hA.client.y=IA.client.y-mA.client.y,hA.timeStamp=IA.timeStamp-mA.timeStamp,lA&&(this.pointerIsDown=!0,DA.downTime=this.coords.cur.timeStamp,DA.downTarget=nA,z(this.downPointer,F),this.interacting()||(X(this.coords.start,this.coords.cur),X(this.coords.prev,this.coords.cur),this.downEvent=Z,this.pointerWasMoved=!1)),this._updateLatestPointer(F,Z,nA),this._scopeFire("interactions:update-pointer",{pointer:F,event:Z,eventTarget:nA,down:lA,pointerInfo:DA,pointerIndex:xA,interaction:this}),xA}},{key:"removePointer",value:function(F,Z){var nA=this.getPointerIndex(F);if(nA!==-1){var lA=this.pointers[nA];this._scopeFire("interactions:remove-pointer",{pointer:F,event:Z,eventTarget:null,pointerIndex:nA,pointerInfo:lA,interaction:this}),this.pointers.splice(nA,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(F,Z,nA){this._latestPointer.pointer=F,this._latestPointer.event=Z,this._latestPointer.eventTarget=nA}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(F,Z,nA,lA){return new ii(this,F,this.prepared.name,Z,this.element,nA,lA)}},{key:"_fireEvent",value:function(F){var Z;(Z=this.interactable)==null||Z.fire(F),(!this.prevEvent||F.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=F)}},{key:"_doPhase",value:function(F){var Z=F.event,nA=F.phase,lA=F.preEnd,hA=F.type,mA=this.rect;if(mA&&nA==="move"&&(uA(this.edges,mA,this.coords.delta[this.interactable.options.deltaSource]),mA.width=mA.right-mA.left,mA.height=mA.bottom-mA.top),this._scopeFire("interactions:before-action-".concat(nA),F)===!1)return!1;var IA=F.iEvent=this._createPreparedEvent(Z,nA,lA,hA);return this._scopeFire("interactions:action-".concat(nA),F),nA==="start"&&(this.prevEvent=IA),this._fireEvent(IA),this._scopeFire("interactions:after-action-".concat(nA),F),!0}},{key:"_now",value:function(){return Date.now()}}]),R}();function Or(R){$r(R.interaction)}function $r(R){if(!function(Z){return!(!Z.offset.pending.x&&!Z.offset.pending.y)}(R))return!1;var F=R.offset.pending;return zr(R.coords.cur,F),zr(R.coords.delta,F),uA(R.edges,R.rect,F),F.x=0,F.y=0,!0}function sg(R){var F=R.x,Z=R.y;this.offset.pending.x+=F,this.offset.pending.y+=Z,this.offset.total.x+=F,this.offset.total.y+=Z}function zr(R,F){var Z=R.page,nA=R.client,lA=F.x,hA=F.y;Z.x+=lA,Z.y+=hA,nA.x+=lA,nA.y+=hA}vs.offsetBy="";var lg={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(R){R.Interaction.prototype.offsetBy=sg},listeners:{"interactions:new":function(R){R.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(R){return function(F){F.pointerIsDown&&(zr(F.coords.cur,F.offset.total),F.offset.pending.x=0,F.offset.pending.y=0)}(R.interaction)},"interactions:before-action-start":Or,"interactions:before-action-move":Or,"interactions:before-action-end":function(R){var F=R.interaction;if($r(F))return F.move({offset:!0}),F.end(),!1},"interactions:stop":function(R){var F=R.interaction;F.offset.total.x=0,F.offset.total.y=0,F.offset.pending.x=0,F.offset.pending.y=0}}},Jr=lg,cg=function(){function R(F){I(this,R),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=F}return b(R,[{key:"start",value:function(F){var Z=this.interaction,nA=jo(Z);if(!nA||!nA.enabled)return!1;var lA=Z.coords.velocity.client,hA=rA(lA.x,lA.y),mA=this.modification||(this.modification=new Jo(Z));if(mA.copyFrom(Z.modification),this.t0=Z._now(),this.allowResume=nA.allowResume,this.v0=hA,this.currentOffset={x:0,y:0},this.startCoords=Z.coords.cur.page,this.modifierArg=mA.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-Z.coords.cur.timeStamp<50&&hA>nA.minSpeed&&hA>nA.endSpeed)this.startInertia();else{if(mA.result=mA.setAll(this.modifierArg),!mA.result.changed)return!1;this.startSmoothEnd()}return Z.modification.result.rect=null,Z.offsetBy(this.targetOffset),Z._doPhase({interaction:Z,event:F,phase:"inertiastart"}),Z.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),Z.modification.result.rect=null,this.active=!0,Z.simulation=this,!0}},{key:"startInertia",value:function(){var F=this,Z=this.interaction.coords.velocity.client,nA=jo(this.interaction),lA=nA.resistance,hA=-Math.log(nA.endSpeed/this.v0)/lA;this.targetOffset={x:(Z.x-hA)/lA,y:(Z.y-hA)/lA},this.te=hA,this.lambda_v0=lA/this.v0,this.one_ve_v0=1-nA.endSpeed/this.v0;var mA=this.modification,IA=this.modifierArg;IA.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},mA.result=mA.setAll(IA),mA.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+mA.result.delta.x,y:this.targetOffset.y+mA.result.delta.y}),this.onNextFrame(function(){return F.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var F=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return F.smoothEndTick()})}},{key:"onNextFrame",value:function(F){var Z=this;this.timeout=fe.request(function(){Z.active&&F()})}},{key:"inertiaTick",value:function(){var F,Z,nA,lA,hA,mA,IA,yA=this,xA=this.interaction,DA=jo(xA).resistance,PA=(xA._now()-this.t0)/1e3;if(PA<this.te){var jA,le=1-(Math.exp(-DA*PA)-this.lambda_v0)/this.one_ve_v0;this.isModified?(F=0,Z=0,nA=this.targetOffset.x,lA=this.targetOffset.y,hA=this.modifiedOffset.x,mA=this.modifiedOffset.y,jA={x:Ms(IA=le,F,nA,hA),y:Ms(IA,Z,lA,mA)}):jA={x:this.targetOffset.x*le,y:this.targetOffset.y*le};var ae={x:jA.x-this.currentOffset.x,y:jA.y-this.currentOffset.y};this.currentOffset.x+=ae.x,this.currentOffset.y+=ae.y,xA.offsetBy(ae),xA.move(),this.onNextFrame(function(){return yA.inertiaTick()})}else xA.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var F=this,Z=this.interaction,nA=Z._now()-this.t0,lA=jo(Z).smoothEndDuration;if(nA<lA){var hA={x:qo(nA,0,this.targetOffset.x,lA),y:qo(nA,0,this.targetOffset.y,lA)},mA={x:hA.x-this.currentOffset.x,y:hA.y-this.currentOffset.y};this.currentOffset.x+=mA.x,this.currentOffset.y+=mA.y,Z.offsetBy(mA),Z.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return F.smoothEndTick()})}else Z.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(F){var Z=F.pointer,nA=F.event,lA=F.eventTarget,hA=this.interaction;hA.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),hA.updatePointer(Z,nA,lA,!0),hA._doPhase({interaction:hA,event:nA,phase:"resume"}),X(hA.coords.prev,hA.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,fe.cancel(this.timeout)}}]),R}();function jo(R){var F=R.interactable,Z=R.prepared;return F&&F.options&&Z.name&&F.options[Z.name].inertia}var gg={id:"inertia",before:["modifiers","actions"],install:function(R){var F=R.defaults;R.usePlugin(Jr),R.usePlugin(Zo),R.actions.phases.inertiastart=!0,R.actions.phases.resume=!0,F.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(R){var F=R.interaction;F.inertia=new cg(F)},"interactions:before-action-end":function(R){var F=R.interaction,Z=R.event;return(!F._interacting||F.simulation||!F.inertia.start(Z))&&null},"interactions:down":function(R){var F=R.interaction,Z=R.eventTarget,nA=F.inertia;if(nA.active)for(var lA=Z;d.element(lA);){if(lA===F.element){nA.resume(R);break}lA=T(lA)}},"interactions:stop":function(R){var F=R.interaction.inertia;F.active&&F.stop()},"interactions:before-action-resume":function(R){var F=R.interaction.modification;F.stop(R),F.start(R,R.interaction.coords.cur.page),F.applyToInteraction(R)},"interactions:before-action-inertiastart":function(R){return R.interaction.modification.setAndApply(R)},"interactions:action-resume":ho,"interactions:action-inertiastart":ho,"interactions:after-action-inertiastart":function(R){return R.interaction.modification.restoreInteractionCoords(R)},"interactions:after-action-resume":function(R){return R.interaction.modification.restoreInteractionCoords(R)}}};function Ms(R,F,Z,nA){var lA=1-R;return lA*lA*F+2*lA*R*Z+R*R*nA}function qo(R,F,Z,nA){return-Z*(R/=nA)*(R-2)+F}var ug=gg;function xs(R,F){for(var Z=0;Z<F.length;Z++){var nA=F[Z];if(R.immediatePropagationStopped)break;nA(R)}}var Ss=function(){function R(F){I(this,R),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=AA({},F||{})}return b(R,[{key:"fire",value:function(F){var Z,nA=this.global;(Z=this.types[F.type])&&xs(F,Z),!F.propagationStopped&&nA&&(Z=nA[F.type])&&xs(F,Z)}},{key:"on",value:function(F,Z){var nA=j(F,Z);for(F in nA)this.types[F]=De(this.types[F]||[],nA[F])}},{key:"off",value:function(F,Z){var nA=j(F,Z);for(F in nA){var lA=this.types[F];if(lA&&lA.length)for(var hA=0,mA=nA[F];hA<mA.length;hA++){var IA=mA[hA],yA=lA.indexOf(IA);yA!==-1&&lA.splice(yA,1)}}}},{key:"getRect",value:function(F){return null}}]),R}(),dg=function(){function R(F){I(this,R),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=F,z(this,F)}return b(R,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),R}();function po(R){return d.object(R)?{capture:!!R.capture,passive:!!R.passive}:{capture:!!R,passive:!1}}function rt(R,F){return R===F||(typeof R=="boolean"?!!F.capture===R&&!F.passive:!!R.capture==!!F.capture&&!!R.passive==!!F.passive)}var ct={id:"events",install:function(R){var F,Z=[],nA={},lA=[],hA={add:mA,remove:IA,addDelegate:function(DA,PA,jA,le,ae){var de=po(ae);if(!nA[jA]){nA[jA]=[];for(var ye=0;ye<lA.length;ye++){var Qe=lA[ye];mA(Qe,jA,yA),mA(Qe,jA,xA,!0)}}var kA=nA[jA],UA=$A(kA,function(HA){return HA.selector===DA&&HA.context===PA});UA||(UA={selector:DA,context:PA,listeners:[]},kA.push(UA)),UA.listeners.push({func:le,options:de})},removeDelegate:function(DA,PA,jA,le,ae){var de,ye=po(ae),Qe=nA[jA],kA=!1;if(Qe)for(de=Qe.length-1;de>=0;de--){var UA=Qe[de];if(UA.selector===DA&&UA.context===PA){for(var HA=UA.listeners,VA=HA.length-1;VA>=0;VA--){var Ce=HA[VA];if(Ce.func===le&&rt(Ce.options,ye)){HA.splice(VA,1),HA.length||(Qe.splice(de,1),IA(PA,jA,yA),IA(PA,jA,xA,!0)),kA=!0;break}}if(kA)break}}},delegateListener:yA,delegateUseCapture:xA,delegatedEvents:nA,documents:lA,targets:Z,supportsOptions:!1,supportsPassive:!1};function mA(DA,PA,jA,le){if(DA.addEventListener){var ae=po(le),de=$A(Z,function(ye){return ye.eventTarget===DA});de||(de={eventTarget:DA,events:{}},Z.push(de)),de.events[PA]||(de.events[PA]=[]),$A(de.events[PA],function(ye){return ye.func===jA&&rt(ye.options,ae)})||(DA.addEventListener(PA,jA,hA.supportsOptions?ae:ae.capture),de.events[PA].push({func:jA,options:ae}))}}function IA(DA,PA,jA,le){if(DA.addEventListener&&DA.removeEventListener){var ae=YA(Z,function(He){return He.eventTarget===DA}),de=Z[ae];if(de&&de.events)if(PA!=="all"){var ye=!1,Qe=de.events[PA];if(Qe){if(jA==="all"){for(var kA=Qe.length-1;kA>=0;kA--){var UA=Qe[kA];IA(DA,PA,UA.func,UA.options)}return}for(var HA=po(le),VA=0;VA<Qe.length;VA++){var Ce=Qe[VA];if(Ce.func===jA&&rt(Ce.options,HA)){DA.removeEventListener(PA,jA,hA.supportsOptions?HA:HA.capture),Qe.splice(VA,1),Qe.length===0&&(delete de.events[PA],ye=!0);break}}}ye&&!Object.keys(de.events).length&&Z.splice(ae,1)}else for(PA in de.events)de.events.hasOwnProperty(PA)&&IA(DA,PA,"all")}}function yA(DA,PA){for(var jA=po(PA),le=new dg(DA),ae=nA[DA.type],de=ZA(DA)[0],ye=de;d.element(ye);){for(var Qe=0;Qe<ae.length;Qe++){var kA=ae[Qe],UA=kA.selector,HA=kA.context;if($(ye,UA)&&x(HA,de)&&x(HA,ye)){var VA=kA.listeners;le.currentTarget=ye;for(var Ce=0;Ce<VA.length;Ce++){var He=VA[Ce];rt(He.options,jA)&&He.func(le)}}}ye=T(ye)}}function xA(DA){return yA(DA,!0)}return(F=R.document)==null||F.createElement("div").addEventListener("test",null,{get capture(){return hA.supportsOptions=!0},get passive(){return hA.supportsPassive=!0}}),R.events=hA,hA}},Zr={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(R){for(var F=0,Z=Zr.methodOrder;F<Z.length;F++){var nA=Z[F],lA=Zr[nA](R);if(lA)return lA}return null},simulationResume:function(R){var F=R.pointerType,Z=R.eventType,nA=R.eventTarget,lA=R.scope;if(!/down|start/i.test(Z))return null;for(var hA=0,mA=lA.interactions.list;hA<mA.length;hA++){var IA=mA[hA],yA=nA;if(IA.simulation&&IA.simulation.allowResume&&IA.pointerType===F)for(;yA;){if(yA===IA.element)return IA;yA=T(yA)}}return null},mouseOrPen:function(R){var F,Z=R.pointerId,nA=R.pointerType,lA=R.eventType,hA=R.scope;if(nA!=="mouse"&&nA!=="pen")return null;for(var mA=0,IA=hA.interactions.list;mA<IA.length;mA++){var yA=IA[mA];if(yA.pointerType===nA){if(yA.simulation&&!Ns(yA,Z))continue;if(yA.interacting())return yA;F||(F=yA)}}if(F)return F;for(var xA=0,DA=hA.interactions.list;xA<DA.length;xA++){var PA=DA[xA];if(!(PA.pointerType!==nA||/down/i.test(lA)&&PA.simulation))return PA}return null},hasPointer:function(R){for(var F=R.pointerId,Z=0,nA=R.scope.interactions.list;Z<nA.length;Z++){var lA=nA[Z];if(Ns(lA,F))return lA}return null},idle:function(R){for(var F=R.pointerType,Z=0,nA=R.scope.interactions.list;Z<nA.length;Z++){var lA=nA[Z];if(lA.pointers.length===1){var hA=lA.interactable;if(hA&&(!hA.options.gesture||!hA.options.gesture.enabled))continue}else if(lA.pointers.length>=2)continue;if(!lA.interacting()&&F===lA.pointerType)return lA}return null}};function Ns(R,F){return R.pointers.some(function(Z){return Z.id===F})}var hg=Zr,Wr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Fs(R,F){return function(Z){var nA=F.interactions.list,lA=SA(Z),hA=ZA(Z),mA=hA[0],IA=hA[1],yA=[];if(/^touch/.test(Z.type)){F.prevTouchTime=F.now();for(var xA=0,DA=Z.changedTouches;xA<DA.length;xA++){var PA=DA[xA],jA={pointer:PA,pointerId:GA(PA),pointerType:lA,eventType:Z.type,eventTarget:mA,curEventTarget:IA,scope:F},le=Rs(jA);yA.push([jA.pointer,jA.eventTarget,jA.curEventTarget,le])}}else{var ae=!1;if(!Q.supportsPointerEvent&&/mouse/.test(Z.type)){for(var de=0;de<nA.length&&!ae;de++)ae=nA[de].pointerType!=="mouse"&&nA[de].pointerIsDown;ae=ae||F.now()-F.prevTouchTime<500||Z.timeStamp===0}if(!ae){var ye={pointer:Z,pointerId:GA(Z),pointerType:lA,eventType:Z.type,curEventTarget:IA,eventTarget:mA,scope:F},Qe=Rs(ye);yA.push([ye.pointer,ye.eventTarget,ye.curEventTarget,Qe])}}for(var kA=0;kA<yA.length;kA++){var UA=yA[kA],HA=UA[0],VA=UA[1],Ce=UA[2];UA[3][R](HA,Z,VA,Ce)}}}function Rs(R){var F=R.pointerType,Z=R.scope,nA={interaction:hg.search(R),searchDetails:R};return Z.fire("interactions:find",nA),nA.interaction||Z.interactions.new({pointerType:F})}function Xo(R,F){var Z=R.doc,nA=R.scope,lA=R.options,hA=nA.interactions.docEvents,mA=nA.events,IA=mA[F];for(var yA in nA.browser.isIOS&&!lA.events&&(lA.events={passive:!1}),mA.delegatedEvents)IA(Z,yA,mA.delegateListener),IA(Z,yA,mA.delegateUseCapture,!0);for(var xA=lA&&lA.events,DA=0;DA<hA.length;DA++){var PA=hA[DA];IA(Z,PA.type,PA.listener,xA)}}var pg={id:"core/interactions",install:function(R){for(var F={},Z=0;Z<Wr.length;Z++){var nA=Wr[Z];F[nA]=Fs(nA,R)}var lA,hA=Q.pEventTypes;function mA(){for(var IA=0,yA=R.interactions.list;IA<yA.length;IA++){var xA=yA[IA];if(xA.pointerIsDown&&xA.pointerType==="touch"&&!xA._interacting)for(var DA=function(){var le=jA[PA];R.documents.some(function(ae){return x(ae.doc,le.downTarget)})||xA.removePointer(le.pointer,le.event)},PA=0,jA=xA.pointers;PA<jA.length;PA++)DA()}}(lA=r.PointerEvent?[{type:hA.down,listener:mA},{type:hA.down,listener:F.pointerDown},{type:hA.move,listener:F.pointerMove},{type:hA.up,listener:F.pointerUp},{type:hA.cancel,listener:F.pointerUp}]:[{type:"mousedown",listener:F.pointerDown},{type:"mousemove",listener:F.pointerMove},{type:"mouseup",listener:F.pointerUp},{type:"touchstart",listener:mA},{type:"touchstart",listener:F.pointerDown},{type:"touchmove",listener:F.pointerMove},{type:"touchend",listener:F.pointerUp},{type:"touchcancel",listener:F.pointerUp}]).push({type:"blur",listener:function(IA){for(var yA=0,xA=R.interactions.list;yA<xA.length;yA++)xA[yA].documentBlur(IA)}}),R.prevTouchTime=0,R.Interaction=function(IA){w(xA,IA);var yA=Y(xA);function xA(){return I(this,xA),yA.apply(this,arguments)}return b(xA,[{key:"pointerMoveTolerance",get:function(){return R.interactions.pointerMoveTolerance},set:function(DA){R.interactions.pointerMoveTolerance=DA}},{key:"_now",value:function(){return R.now()}}]),xA}(_s),R.interactions={list:[],new:function(IA){IA.scopeFire=function(xA,DA){return R.fire(xA,DA)};var yA=new R.Interaction(IA);return R.interactions.list.push(yA),yA},listeners:F,docEvents:lA,pointerMoveTolerance:1},R.usePlugin(ni)},listeners:{"scope:add-document":function(R){return Xo(R,"add")},"scope:remove-document":function(R){return Xo(R,"remove")},"interactable:unset":function(R,F){for(var Z=R.interactable,nA=F.interactions.list.length-1;nA>=0;nA--){var lA=F.interactions.list[nA];lA.interactable===Z&&(lA.stop(),F.fire("interactions:destroy",{interaction:lA}),lA.destroy(),F.interactions.list.length>2&&F.interactions.list.splice(nA,1))}}},onDocSignal:Xo,doOnInteractions:Fs,methodNames:Wr},Nt=pg,Rn=function(R){return R[R.On=0]="On",R[R.Off=1]="Off",R}(Rn||{}),Ei=function(){function R(F,Z,nA,lA){I(this,R),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Ss,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=Z.actions,this.target=F,this._context=Z.context||nA,this._win=v(H(F)?this._context:F),this._doc=this._win.document,this._scopeEvents=lA,this.set(Z)}return b(R,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(F,Z){return d.func(Z.onstart)&&this.on("".concat(F,"start"),Z.onstart),d.func(Z.onmove)&&this.on("".concat(F,"move"),Z.onmove),d.func(Z.onend)&&this.on("".concat(F,"end"),Z.onend),d.func(Z.oninertiastart)&&this.on("".concat(F,"inertiastart"),Z.oninertiastart),this}},{key:"updatePerActionListeners",value:function(F,Z,nA){var lA,hA=this,mA=(lA=this._actions.map[F])==null?void 0:lA.filterEventType,IA=function(yA){return(mA==null||mA(yA))&&bn(yA,hA._actions)};(d.array(Z)||d.object(Z))&&this._onOff(Rn.Off,F,Z,void 0,IA),(d.array(nA)||d.object(nA))&&this._onOff(Rn.On,F,nA,void 0,IA)}},{key:"setPerAction",value:function(F,Z){var nA=this._defaults;for(var lA in Z){var hA=lA,mA=this.options[F],IA=Z[hA];hA==="listeners"&&this.updatePerActionListeners(F,mA.listeners,IA),d.array(IA)?mA[hA]=Se(IA):d.plainObject(IA)?(mA[hA]=AA(mA[hA]||{},Hi(IA)),d.object(nA.perAction[hA])&&"enabled"in nA.perAction[hA]&&(mA[hA].enabled=IA.enabled!==!1)):d.bool(IA)&&d.object(nA.perAction[hA])?mA[hA].enabled=IA:mA[hA]=IA}}},{key:"getRect",value:function(F){return F=F||(d.element(this.target)?this.target:null),d.string(this.target)&&(F=F||this._context.querySelector(this.target)),k(F)}},{key:"rectChecker",value:function(F){var Z=this;return d.func(F)?(this.getRect=function(nA){var lA=AA({},F.apply(Z,nA));return"width"in lA||(lA.width=lA.right-lA.left,lA.height=lA.bottom-lA.top),lA},this):F===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(F,Z){if(H(Z)||d.object(Z)){for(var nA in this.options[F]=Z,this._actions.map)this.options[nA][F]=Z;return this}return this.options[F]}},{key:"origin",value:function(F){return this._backCompatOption("origin",F)}},{key:"deltaSource",value:function(F){return F==="page"||F==="client"?(this.options.deltaSource=F,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var F=this.target;return d.string(F)?Array.from(this._context.querySelectorAll(F)):d.func(F)&&F.getAllElements?F.getAllElements():d.element(F)?[F]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(F){return this._context===F.ownerDocument||x(this._context,F)}},{key:"testIgnoreAllow",value:function(F,Z,nA){return!this.testIgnore(F.ignoreFrom,Z,nA)&&this.testAllow(F.allowFrom,Z,nA)}},{key:"testAllow",value:function(F,Z,nA){return!F||!!d.element(nA)&&(d.string(F)?J(nA,F,Z):!!d.element(F)&&x(F,nA))}},{key:"testIgnore",value:function(F,Z,nA){return!(!F||!d.element(nA))&&(d.string(F)?J(nA,F,Z):!!d.element(F)&&x(F,nA))}},{key:"fire",value:function(F){return this.events.fire(F),this}},{key:"_onOff",value:function(F,Z,nA,lA,hA){d.object(Z)&&!d.array(Z)&&(lA=nA,nA=null);var mA=j(Z,nA,hA);for(var IA in mA){IA==="wheel"&&(IA=Q.wheelEvent);for(var yA=0,xA=mA[IA];yA<xA.length;yA++){var DA=xA[yA];bn(IA,this._actions)?this.events[F===Rn.On?"on":"off"](IA,DA):d.string(this.target)?this._scopeEvents[F===Rn.On?"addDelegate":"removeDelegate"](this.target,this._context,IA,DA,lA):this._scopeEvents[F===Rn.On?"add":"remove"](this.target,IA,DA,lA)}}return this}},{key:"on",value:function(F,Z,nA){return this._onOff(Rn.On,F,Z,nA)}},{key:"off",value:function(F,Z,nA){return this._onOff(Rn.Off,F,Z,nA)}},{key:"set",value:function(F){var Z=this._defaults;for(var nA in d.object(F)||(F={}),this.options=Hi(Z.base),this._actions.methodDict){var lA=nA,hA=this._actions.methodDict[lA];this.options[lA]={},this.setPerAction(lA,AA(AA({},Z.perAction),Z.actions[lA])),this[hA](F[lA])}for(var mA in F)mA!=="getRect"?d.func(this[mA])&&this[mA](F[mA]):this.rectChecker(F.getRect);return this}},{key:"unset",value:function(){if(d.string(this.target))for(var F in this._scopeEvents.delegatedEvents)for(var Z=this._scopeEvents.delegatedEvents[F],nA=Z.length-1;nA>=0;nA--){var lA=Z[nA],hA=lA.selector,mA=lA.context,IA=lA.listeners;hA===this.target&&mA===this._context&&Z.splice(nA,1);for(var yA=IA.length-1;yA>=0;yA--)this._scopeEvents.removeDelegate(this.target,this._context,F,IA[yA][0],IA[yA][1])}else this._scopeEvents.remove(this.target,"all")}}]),R}(),Ls=function(){function R(F){var Z=this;I(this,R),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=F,F.addListeners({"interactable:unset":function(nA){var lA=nA.interactable,hA=lA.target,mA=d.string(hA)?Z.selectorMap[hA]:hA[Z.scope.id],IA=YA(mA,function(yA){return yA===lA});mA.splice(IA,1)}})}return b(R,[{key:"new",value:function(F,Z){Z=AA(Z||{},{actions:this.scope.actions});var nA=new this.scope.Interactable(F,Z,this.scope.document,this.scope.events);return this.scope.addDocument(nA._doc),this.list.push(nA),d.string(F)?(this.selectorMap[F]||(this.selectorMap[F]=[]),this.selectorMap[F].push(nA)):(nA.target[this.scope.id]||Object.defineProperty(F,this.scope.id,{value:[],configurable:!0}),F[this.scope.id].push(nA)),this.scope.fire("interactable:new",{target:F,options:Z,interactable:nA,win:this.scope._win}),nA}},{key:"getExisting",value:function(F,Z){var nA=Z&&Z.context||this.scope.document,lA=d.string(F),hA=lA?this.selectorMap[F]:F[this.scope.id];if(hA)return $A(hA,function(mA){return mA._context===nA&&(lA||mA.inContext(F))})}},{key:"forEachMatch",value:function(F,Z){for(var nA=0,lA=this.list;nA<lA.length;nA++){var hA=lA[nA],mA=void 0;if((d.string(hA.target)?d.element(F)&&$(F,hA.target):F===hA.target)&&hA.inContext(F)&&(mA=Z(hA)),mA!==void 0)return mA}}}]),R}(),jr=function(){function R(){var F=this;I(this,R),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=Q,this.defaults=Hi(Wo),this.Eventable=Ss,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(nA){var lA=function hA(mA,IA){var yA=nA.interactables.getExisting(mA,IA);return yA||((yA=nA.interactables.new(mA,IA)).events.global=hA.globalEvents),yA};return lA.getPointerAverage=WA,lA.getTouchBBox=ue,lA.getTouchDistance=te,lA.getTouchAngle=LA,lA.getElementRect=k,lA.getElementClientRect=q,lA.matchesSelector=$,lA.closest=S,lA.globalEvents={},lA.version="1.10.27",lA.scope=nA,lA.use=function(hA,mA){return this.scope.usePlugin(hA,mA),this},lA.isSet=function(hA,mA){return!!this.scope.interactables.get(hA,mA&&mA.context)},lA.on=At(function(hA,mA,IA){if(d.string(hA)&&hA.search(" ")!==-1&&(hA=hA.trim().split(/ +/)),d.array(hA)){for(var yA=0,xA=hA;yA<xA.length;yA++){var DA=xA[yA];this.on(DA,mA,IA)}return this}if(d.object(hA)){for(var PA in hA)this.on(PA,hA[PA],mA);return this}return bn(hA,this.scope.actions)?this.globalEvents[hA]?this.globalEvents[hA].push(mA):this.globalEvents[hA]=[mA]:this.scope.events.add(this.scope.document,hA,mA,{options:IA}),this},"The interact.on() method is being deprecated"),lA.off=At(function(hA,mA,IA){if(d.string(hA)&&hA.search(" ")!==-1&&(hA=hA.trim().split(/ +/)),d.array(hA)){for(var yA=0,xA=hA;yA<xA.length;yA++){var DA=xA[yA];this.off(DA,mA,IA)}return this}if(d.object(hA)){for(var PA in hA)this.off(PA,hA[PA],mA);return this}var jA;return bn(hA,this.scope.actions)?hA in this.globalEvents&&(jA=this.globalEvents[hA].indexOf(mA))!==-1&&this.globalEvents[hA].splice(jA,1):this.scope.events.remove(this.scope.document,hA,mA,IA),this},"The interact.off() method is being deprecated"),lA.debug=function(){return this.scope},lA.supportsTouch=function(){return Q.supportsTouch},lA.supportsPointerEvent=function(){return Q.supportsPointerEvent},lA.stop=function(){for(var hA=0,mA=this.scope.interactions.list;hA<mA.length;hA++)mA[hA].stop();return this},lA.pointerMoveTolerance=function(hA){return d.number(hA)?(this.scope.interactions.pointerMoveTolerance=hA,this):this.scope.interactions.pointerMoveTolerance},lA.addDocument=function(hA,mA){this.scope.addDocument(hA,mA)},lA.removeDocument=function(hA){this.scope.removeDocument(hA)},lA}(this),this.InteractEvent=ii,this.Interactable=void 0,this.interactables=new Ls(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(nA){return F.removeDocument(nA.target)};var Z=this;this.Interactable=function(nA){w(hA,nA);var lA=Y(hA);function hA(){return I(this,hA),lA.apply(this,arguments)}return b(hA,[{key:"_defaults",get:function(){return Z.defaults}},{key:"set",value:function(mA){return G(M(hA.prototype),"set",this).call(this,mA),Z.fire("interactable:set",{options:mA,interactable:this}),this}},{key:"unset",value:function(){G(M(hA.prototype),"unset",this).call(this);var mA=Z.interactables.list.indexOf(this);mA<0||(Z.interactables.list.splice(mA,1),Z.fire("interactable:unset",{interactable:this}))}}]),hA}(Ei)}return b(R,[{key:"addListeners",value:function(F,Z){this.listenerMaps.push({id:Z,map:F})}},{key:"fire",value:function(F,Z){for(var nA=0,lA=this.listenerMaps;nA<lA.length;nA++){var hA=lA[nA].map[F];if(hA&&hA(Z,this,F)===!1)return!1}}},{key:"init",value:function(F){return this.isInitialized?this:function(Z,nA){return Z.isInitialized=!0,d.window(nA)&&_(nA),r.init(nA),Q.init(nA),fe.init(nA),Z.window=nA,Z.document=nA.document,Z.usePlugin(Nt),Z.usePlugin(ct),Z}(this,F)}},{key:"pluginIsInstalled",value:function(F){var Z=F.id;return Z?!!this._plugins.map[Z]:this._plugins.list.indexOf(F)!==-1}},{key:"usePlugin",value:function(F,Z){if(!this.isInitialized)return this;if(this.pluginIsInstalled(F))return this;if(F.id&&(this._plugins.map[F.id]=F),this._plugins.list.push(F),F.install&&F.install(this,Z),F.listeners&&F.before){for(var nA=0,lA=this.listenerMaps.length,hA=F.before.reduce(function(IA,yA){return IA[yA]=!0,IA[tn(yA)]=!0,IA},{});nA<lA;nA++){var mA=this.listenerMaps[nA].id;if(mA&&(hA[mA]||hA[tn(mA)]))break}this.listenerMaps.splice(nA,0,{id:F.id,map:F.listeners})}else F.listeners&&this.listenerMaps.push({id:F.id,map:F.listeners});return this}},{key:"addDocument",value:function(F,Z){if(this.getDocIndex(F)!==-1)return!1;var nA=v(F);Z=Z?AA({},Z):{},this.documents.push({doc:F,options:Z}),this.events.documents.push(F),F!==this.document&&this.events.add(nA,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:F,window:nA,scope:this,options:Z})}},{key:"removeDocument",value:function(F){var Z=this.getDocIndex(F),nA=v(F),lA=this.documents[Z].options;this.events.remove(nA,"unload",this.onWindowUnload),this.documents.splice(Z,1),this.events.documents.splice(Z,1),this.fire("scope:remove-document",{doc:F,window:nA,scope:this,options:lA})}},{key:"getDocIndex",value:function(F){for(var Z=0;Z<this.documents.length;Z++)if(this.documents[Z].doc===F)return Z;return-1}},{key:"getDocOptions",value:function(F){var Z=this.getDocIndex(F);return Z===-1?null:this.documents[Z].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),R}();function tn(R){return R&&R.replace(/\/.*$/,"")}var qr=new jr,Gt=qr.interactStatic,Gs=typeof globalThis<"u"?globalThis:window;qr.init(Gs);var Ps=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(R){var F=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(nA){var lA=nA[0],hA=nA[1];return lA in R||hA in R}),Z=function(nA,lA){for(var hA=R.range,mA=R.limits,IA=mA===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:mA,yA=R.offset,xA=yA===void 0?{x:0,y:0}:yA,DA={range:hA,grid:R,x:null,y:null},PA=0;PA<F.length;PA++){var jA=F[PA],le=jA[0],ae=jA[1],de=Math.round((nA-xA.x)/R[le]),ye=Math.round((lA-xA.y)/R[ae]);DA[le]=Math.max(IA.left,Math.min(IA.right,de*R[le]+xA.x)),DA[ae]=Math.max(IA.top,Math.min(IA.bottom,ye*R[ae]+xA.y))}return DA};return Z.grid=R,Z.coordFields=F,Z}}),Hs={id:"snappers",install:function(R){var F=R.interactStatic;F.snappers=AA(F.snappers||{},Ps),F.createSnapGrid=F.snappers.grid}},Ks=Hs,nn={start:function(R){var F=R.state,Z=R.rect,nA=R.edges,lA=R.pageCoords,hA=F.options,mA=hA.ratio,IA=hA.enabled,yA=F.options,xA=yA.equalDelta,DA=yA.modifiers;mA==="preserve"&&(mA=Z.width/Z.height),F.startCoords=AA({},lA),F.startRect=AA({},Z),F.ratio=mA,F.equalDelta=xA;var PA=F.linkedEdges={top:nA.top||nA.left&&!nA.bottom,left:nA.left||nA.top&&!nA.right,bottom:nA.bottom||nA.right&&!nA.top,right:nA.right||nA.bottom&&!nA.left};if(F.xIsPrimaryAxis=!(!nA.left&&!nA.right),F.equalDelta){var jA=(PA.left?1:-1)*(PA.top?1:-1);F.edgeSign={x:jA,y:jA}}else F.edgeSign={x:PA.left?-1:1,y:PA.top?-1:1};if(IA!==!1&&AA(nA,PA),DA!=null&&DA.length){var le=new Jo(R.interaction);le.copyFrom(R.interaction.modification),le.prepareStates(DA),F.subModification=le,le.startAll(i({},R))}},set:function(R){var F=R.state,Z=R.rect,nA=R.coords,lA=F.linkedEdges,hA=AA({},nA),mA=F.equalDelta?Cg:un;if(AA(R.edges,lA),mA(F,F.xIsPrimaryAxis,nA,Z),!F.subModification)return null;var IA=AA({},Z);uA(lA,IA,{x:nA.x-hA.x,y:nA.y-hA.y});var yA=F.subModification.setAll(i(i({},R),{},{rect:IA,edges:lA,pageCoords:nA,prevCoords:nA,prevRect:IA})),xA=yA.delta;return yA.changed&&(mA(F,Math.abs(xA.x)>Math.abs(xA.y),yA.coords,yA.rect),AA(nA,yA.coords)),yA.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Cg(R,F,Z){var nA=R.startCoords,lA=R.edgeSign;F?Z.y=nA.y+(Z.x-nA.x)*lA.y:Z.x=nA.x+(Z.y-nA.y)*lA.x}function un(R,F,Z,nA){var lA=R.startRect,hA=R.startCoords,mA=R.ratio,IA=R.edgeSign;if(F){var yA=nA.width/mA;Z.y=hA.y+(yA-lA.height)*IA.y}else{var xA=nA.height*mA;Z.x=hA.x+(xA-lA.width)*IA.x}}var Bg=Fn(nn,"aspectRatio"),Xr=function(){};Xr._defaults={};var yn=Xr;function Ln(R,F,Z){return d.func(R)?oA(R,F.interactable,F.element,[Z.x,Z.y,F]):oA(R,F.interactable,F.element)}var Ki={start:function(R){var F=R.rect,Z=R.startOffset,nA=R.state,lA=R.interaction,hA=R.pageCoords,mA=nA.options,IA=mA.elementRect,yA=AA({left:0,top:0,right:0,bottom:0},mA.offset||{});if(F&&IA){var xA=Ln(mA.restriction,lA,hA);if(xA){var DA=xA.right-xA.left-F.width,PA=xA.bottom-xA.top-F.height;DA<0&&(yA.left+=DA,yA.right+=DA),PA<0&&(yA.top+=PA,yA.bottom+=PA)}yA.left+=Z.left-F.width*IA.left,yA.top+=Z.top-F.height*IA.top,yA.right+=Z.right-F.width*(1-IA.right),yA.bottom+=Z.bottom-F.height*(1-IA.bottom)}nA.offset=yA},set:function(R){var F=R.coords,Z=R.interaction,nA=R.state,lA=nA.options,hA=nA.offset,mA=Ln(lA.restriction,Z,F);if(mA){var IA=function(yA){return!yA||"left"in yA&&"top"in yA||((yA=AA({},yA)).left=yA.x||0,yA.top=yA.y||0,yA.right=yA.right||yA.left+yA.width,yA.bottom=yA.bottom||yA.top+yA.height),yA}(mA);F.x=Math.max(Math.min(IA.right-hA.right,F.x),IA.left+hA.left),F.y=Math.max(Math.min(IA.bottom-hA.bottom,F.y),IA.top+hA.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},ht=Fn(Ki,"restrict"),$n={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Vo={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Ts(R,F){for(var Z=0,nA=["top","left","bottom","right"];Z<nA.length;Z++){var lA=nA[Z];lA in R||(R[lA]=F[lA])}return R}var Qi={noInner:$n,noOuter:Vo,start:function(R){var F,Z=R.interaction,nA=R.startOffset,lA=R.state,hA=lA.options;hA&&(F=dA(Ln(hA.offset,Z,Z.coords.start.page))),F=F||{x:0,y:0},lA.offset={top:F.y+nA.top,left:F.x+nA.left,bottom:F.y-nA.bottom,right:F.x-nA.right}},set:function(R){var F=R.coords,Z=R.edges,nA=R.interaction,lA=R.state,hA=lA.offset,mA=lA.options;if(Z){var IA=AA({},F),yA=Ln(mA.inner,nA,IA)||{},xA=Ln(mA.outer,nA,IA)||{};Ts(yA,$n),Ts(xA,Vo),Z.top?F.y=Math.min(Math.max(xA.top+hA.top,IA.y),yA.top+hA.top):Z.bottom&&(F.y=Math.max(Math.min(xA.bottom+hA.bottom,IA.y),yA.bottom+hA.bottom)),Z.left?F.x=Math.min(Math.max(xA.left+hA.left,IA.x),yA.left+hA.left):Z.right&&(F.x=Math.max(Math.min(xA.right+hA.right,IA.x),yA.right+hA.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},mg=Fn(Qi,"restrictEdges"),Eg=AA({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(R){}},Ki.defaults),Qg=Fn({start:Ki.start,set:Ki.set,defaults:Eg},"restrictRect"),Us={width:-1/0,height:-1/0},Ar={width:1/0,height:1/0},Ti=Fn({start:function(R){return Qi.start(R)},set:function(R){var F=R.interaction,Z=R.state,nA=R.rect,lA=R.edges,hA=Z.options;if(lA){var mA=EA(Ln(hA.min,F,R.coords))||Us,IA=EA(Ln(hA.max,F,R.coords))||Ar;Z.options={endOnly:hA.endOnly,inner:AA({},Qi.noInner),outer:AA({},Qi.noOuter)},lA.top?(Z.options.inner.top=nA.bottom-mA.height,Z.options.outer.top=nA.bottom-IA.height):lA.bottom&&(Z.options.inner.bottom=nA.top+mA.height,Z.options.outer.bottom=nA.top+IA.height),lA.left?(Z.options.inner.left=nA.right-mA.width,Z.options.outer.left=nA.right-IA.width):lA.right&&(Z.options.inner.right=nA.left+mA.width,Z.options.outer.right=nA.left+IA.width),Qi.set(R),Z.options=hA}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Vr={start:function(R){var F,Z=R.interaction,nA=R.interactable,lA=R.element,hA=R.rect,mA=R.state,IA=R.startOffset,yA=mA.options,xA=yA.offsetWithOrigin?function(jA){var le=jA.interaction.element,ae=dA(oA(jA.state.options.origin,null,null,[le])),de=ae||BA(jA.interactable,le,jA.interaction.prepared.name);return de}(R):{x:0,y:0};if(yA.offset==="startCoords")F={x:Z.coords.start.page.x,y:Z.coords.start.page.y};else{var DA=oA(yA.offset,nA,lA,[Z]);(F=dA(DA)||{x:0,y:0}).x+=xA.x,F.y+=xA.y}var PA=yA.relativePoints;mA.offsets=hA&&PA&&PA.length?PA.map(function(jA,le){return{index:le,relativePoint:jA,x:IA.left-hA.width*jA.x+F.x,y:IA.top-hA.height*jA.y+F.y}}):[{index:0,relativePoint:null,x:F.x,y:F.y}]},set:function(R){var F=R.interaction,Z=R.coords,nA=R.state,lA=nA.options,hA=nA.offsets,mA=BA(F.interactable,F.element,F.prepared.name),IA=AA({},Z),yA=[];lA.offsetWithOrigin||(IA.x-=mA.x,IA.y-=mA.y);for(var xA=0,DA=hA;xA<DA.length;xA++)for(var PA=DA[xA],jA=IA.x-PA.x,le=IA.y-PA.y,ae=0,de=lA.targets.length;ae<de;ae++){var ye=lA.targets[ae],Qe=void 0;(Qe=d.func(ye)?ye(jA,le,F._proxy,PA,ae):ye)&&yA.push({x:(d.number(Qe.x)?Qe.x:jA)+PA.x,y:(d.number(Qe.y)?Qe.y:le)+PA.y,range:d.number(Qe.range)?Qe.range:lA.range,source:ye,index:ae,offset:PA})}for(var kA={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},UA=0;UA<yA.length;UA++){var HA=yA[UA],VA=HA.range,Ce=HA.x-IA.x,He=HA.y-IA.y,Ke=rA(Ce,He),Oe=Ke<=VA;VA===1/0&&kA.inRange&&kA.range!==1/0&&(Oe=!1),kA.target&&!(Oe?kA.inRange&&VA!==1/0?Ke/VA<kA.distance/kA.range:VA===1/0&&kA.range!==1/0||Ke<kA.distance:!kA.inRange&&Ke<kA.distance)||(kA.target=HA,kA.distance=Ke,kA.range=VA,kA.inRange=Oe,kA.delta.x=Ce,kA.delta.y=He)}return kA.inRange&&(Z.x=kA.target.x,Z.y=kA.target.y),nA.closest=kA,kA},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Ys=Fn(Vr,"snap"),Co={start:function(R){var F=R.state,Z=R.edges,nA=F.options;if(!Z)return null;R.state={options:{targets:null,relativePoints:[{x:Z.left?0:1,y:Z.top?0:1}],offset:nA.offset||"self",origin:{x:0,y:0},range:nA.range}},F.targetFields=F.targetFields||[["width","height"],["x","y"]],Vr.start(R),F.offsets=R.state.offsets,R.state=F},set:function(R){var F=R.interaction,Z=R.state,nA=R.coords,lA=Z.options,hA=Z.offsets,mA={x:nA.x-hA[0].x,y:nA.y-hA[0].y};Z.options=AA({},lA),Z.options.targets=[];for(var IA=0,yA=lA.targets||[];IA<yA.length;IA++){var xA=yA[IA],DA=void 0;if(DA=d.func(xA)?xA(mA.x,mA.y,F):xA){for(var PA=0,jA=Z.targetFields;PA<jA.length;PA++){var le=jA[PA],ae=le[0],de=le[1];if(ae in DA||de in DA){DA.x=DA[ae],DA.y=DA[de];break}}Z.options.targets.push(DA)}}var ye=Vr.set(R);return Z.options=lA,ye},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Aa=Fn(Co,"snapSize"),Bo={aspectRatio:Bg,restrictEdges:mg,restrict:ht,restrictRect:Qg,restrictSize:Ti,snapEdges:Fn({start:function(R){var F=R.edges;return F?(R.state.targetFields=R.state.targetFields||[[F.left?"left":"right",F.top?"top":"bottom"]],Co.start(R)):null},set:Co.set,defaults:AA(Hi(Co.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Ys,snapSize:Aa,spring:yn,avoid:yn,transform:yn,rubberband:yn},Os={id:"modifiers",install:function(R){var F=R.interactStatic;for(var Z in R.usePlugin(Zo),R.usePlugin(Ks),F.modifiers=Bo,Bo){var nA=Bo[Z],lA=nA._defaults,hA=nA._methods;lA._methods=hA,R.defaults.perAction[Z]=lA}}},Ig=Os,er=function(R){w(Z,R);var F=Y(Z);function Z(nA,lA,hA,mA,IA,yA){var xA;if(I(this,Z),z(P(xA=F.call(this,IA)),hA),hA!==lA&&z(P(xA),lA),xA.timeStamp=yA,xA.originalEvent=hA,xA.type=nA,xA.pointerId=GA(lA),xA.pointerType=SA(lA),xA.target=mA,xA.currentTarget=null,nA==="tap"){var DA=IA.getPointerIndex(lA);xA.dt=xA.timeStamp-IA.pointers[DA].downTime;var PA=xA.timeStamp-IA.tapTime;xA.double=!!IA.prevTap&&IA.prevTap.type!=="doubletap"&&IA.prevTap.target===xA.target&&PA<500}else nA==="doubletap"&&(xA.dt=lA.timeStamp-IA.tapTime,xA.double=!0);return xA}return b(Z,[{key:"_subtractOrigin",value:function(nA){var lA=nA.x,hA=nA.y;return this.pageX-=lA,this.pageY-=hA,this.clientX-=lA,this.clientY-=hA,this}},{key:"_addOrigin",value:function(nA){var lA=nA.x,hA=nA.y;return this.pageX+=lA,this.pageY+=hA,this.clientX+=lA,this.clientY+=hA,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),Z}(Be),Ii={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(R){R.pointerEvents=Ii,R.defaults.actions.pointerEvents=Ii.defaults,AA(R.actions.phaselessTypes,Ii.types)},listeners:{"interactions:new":function(R){var F=R.interaction;F.prevTap=null,F.tapTime=0},"interactions:update-pointer":function(R){var F=R.down,Z=R.pointerInfo;!F&&Z.hold||(Z.hold={duration:1/0,timeout:null})},"interactions:move":function(R,F){var Z=R.interaction,nA=R.pointer,lA=R.event,hA=R.eventTarget;R.duplicate||Z.pointerIsDown&&!Z.pointerWasMoved||(Z.pointerIsDown&&Tt(R),oi({interaction:Z,pointer:nA,event:lA,eventTarget:hA,type:"move"},F))},"interactions:down":function(R,F){(function(Z,nA){for(var lA=Z.interaction,hA=Z.pointer,mA=Z.event,IA=Z.eventTarget,yA=Z.pointerIndex,xA=lA.pointers[yA].hold,DA=V(IA),PA={interaction:lA,pointer:hA,event:mA,eventTarget:IA,type:"hold",targets:[],path:DA,node:null},jA=0;jA<DA.length;jA++){var le=DA[jA];PA.node=le,nA.fire("pointerEvents:collect-targets",PA)}if(PA.targets.length){for(var ae=1/0,de=0,ye=PA.targets;de<ye.length;de++){var Qe=ye[de].eventable.options.holdDuration;Qe<ae&&(ae=Qe)}xA.duration=ae,xA.timeout=setTimeout(function(){oi({interaction:lA,eventTarget:IA,pointer:hA,event:mA,type:"hold"},nA)},ae)}})(R,F),oi(R,F)},"interactions:up":function(R,F){Tt(R),oi(R,F),function(Z,nA){var lA=Z.interaction,hA=Z.pointer,mA=Z.event,IA=Z.eventTarget;lA.pointerWasMoved||oi({interaction:lA,eventTarget:IA,pointer:hA,event:mA,type:"tap"},nA)}(R,F)},"interactions:cancel":function(R,F){Tt(R),oi(R,F)}},PointerEvent:er,fire:oi,collectEventTargets:ea,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function oi(R,F){var Z=R.interaction,nA=R.pointer,lA=R.event,hA=R.eventTarget,mA=R.type,IA=R.targets,yA=IA===void 0?ea(R,F):IA,xA=new er(mA,nA,lA,hA,Z,F.now());F.fire("pointerEvents:new",{pointerEvent:xA});for(var DA={interaction:Z,pointer:nA,event:lA,eventTarget:hA,targets:yA,type:mA,pointerEvent:xA},PA=0;PA<yA.length;PA++){var jA=yA[PA];for(var le in jA.props||{})xA[le]=jA.props[le];var ae=BA(jA.eventable,jA.node);if(xA._subtractOrigin(ae),xA.eventable=jA.eventable,xA.currentTarget=jA.node,jA.eventable.fire(xA),xA._addOrigin(ae),xA.immediatePropagationStopped||xA.propagationStopped&&PA+1<yA.length&&yA[PA+1].node!==xA.currentTarget)break}if(F.fire("pointerEvents:fired",DA),mA==="tap"){var de=xA.double?oi({interaction:Z,pointer:nA,event:lA,eventTarget:hA,type:"doubletap"},F):xA;Z.prevTap=de,Z.tapTime=de.timeStamp}return xA}function ea(R,F){var Z=R.interaction,nA=R.pointer,lA=R.event,hA=R.eventTarget,mA=R.type,IA=Z.getPointerIndex(nA),yA=Z.pointers[IA];if(mA==="tap"&&(Z.pointerWasMoved||!yA||yA.downTarget!==hA))return[];for(var xA=V(hA),DA={interaction:Z,pointer:nA,event:lA,eventTarget:hA,type:mA,path:xA,targets:[],node:null},PA=0;PA<xA.length;PA++){var jA=xA[PA];DA.node=jA,F.fire("pointerEvents:collect-targets",DA)}return mA==="hold"&&(DA.targets=DA.targets.filter(function(le){var ae,de;return le.eventable.options.holdDuration===((ae=Z.pointers[IA])==null||(de=ae.hold)==null?void 0:de.duration)})),DA.targets}function Tt(R){var F=R.interaction,Z=R.pointerIndex,nA=F.pointers[Z].hold;nA&&nA.timeout&&(clearTimeout(nA.timeout),nA.timeout=null)}var ta=Object.freeze({__proto__:null,default:Ii});function mo(R){var F=R.interaction;F.holdIntervalHandle&&(clearInterval(F.holdIntervalHandle),F.holdIntervalHandle=null)}var $s={id:"pointer-events/holdRepeat",install:function(R){R.usePlugin(Ii);var F=R.pointerEvents;F.defaults.holdRepeatInterval=0,F.types.holdrepeat=R.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(R,F){return R["pointerEvents:".concat(F)]=mo,R},{"pointerEvents:new":function(R){var F=R.pointerEvent;F.type==="hold"&&(F.count=(F.count||0)+1)},"pointerEvents:fired":function(R,F){var Z=R.interaction,nA=R.pointerEvent,lA=R.eventTarget,hA=R.targets;if(nA.type==="hold"&&hA.length){var mA=hA[0].eventable.options.holdRepeatInterval;mA<=0||(Z.holdIntervalHandle=setTimeout(function(){F.pointerEvents.fire({interaction:Z,eventTarget:lA,type:"hold",pointer:nA,event:nA},F)},mA))}}})},zs=$s,fg={id:"pointer-events/interactableTargets",install:function(R){var F=R.Interactable;F.prototype.pointerEvents=function(nA){return AA(this.events.options,nA),this};var Z=F.prototype._backCompatOption;F.prototype._backCompatOption=function(nA,lA){var hA=Z.call(this,nA,lA);return hA===this&&(this.events.options[nA]=lA),hA}},listeners:{"pointerEvents:collect-targets":function(R,F){var Z=R.targets,nA=R.node,lA=R.type,hA=R.eventTarget;F.interactables.forEachMatch(nA,function(mA){var IA=mA.events,yA=IA.options;IA.types[lA]&&IA.types[lA].length&&mA.testIgnoreAllow(yA,nA,hA)&&Z.push({node:nA,eventable:IA,props:{interactable:mA}})})},"interactable:new":function(R){var F=R.interactable;F.events.getRect=function(Z){return F.getRect(Z)}},"interactable:set":function(R,F){var Z=R.interactable,nA=R.options;AA(Z.events.options,F.pointerEvents.defaults),AA(Z.events.options,nA.pointerEvents||{})}}},wg=fg,bg={id:"pointer-events",install:function(R){R.usePlugin(ta),R.usePlugin(zs),R.usePlugin(wg)}},yg=bg,Dg={id:"reflow",install:function(R){var F=R.Interactable;R.actions.phases.reflow=!0,F.prototype.reflow=function(Z){return function(nA,lA,hA){for(var mA=nA.getAllElements(),IA=hA.window.Promise,yA=IA?[]:null,xA=function(){var PA=mA[DA],jA=nA.getRect(PA);if(!jA)return 1;var le,ae=$A(hA.interactions.list,function(Qe){return Qe.interacting()&&Qe.interactable===nA&&Qe.element===PA&&Qe.prepared.name===lA.name});if(ae)ae.move(),yA&&(le=ae._reflowPromise||new IA(function(Qe){ae._reflowResolve=Qe}));else{var de=EA(jA),ye=function(Qe){return{coords:Qe,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:de.x,y:de.y},client:{x:de.x,y:de.y},timeStamp:hA.now()});le=function(Qe,kA,UA,HA,VA){var Ce=Qe.interactions.new({pointerType:"reflow"}),He={interaction:Ce,event:VA,pointer:VA,eventTarget:UA,phase:"reflow"};Ce.interactable=kA,Ce.element=UA,Ce.prevEvent=VA,Ce.updatePointer(VA,VA,UA,!0),iA(Ce.coords.delta),gt(Ce.prepared,HA),Ce._doPhase(He);var Ke=Qe.window,Oe=Ke.Promise,on=Oe?new Oe(function(zn){Ce._reflowResolve=zn}):void 0;return Ce._reflowPromise=on,Ce.start(HA,kA,UA),Ce._interacting?(Ce.move(He),Ce.end(VA)):(Ce.stop(),Ce._reflowResolve()),Ce.removePointer(VA,VA),on}(hA,nA,PA,lA,ye)}yA&&yA.push(le)},DA=0;DA<mA.length&&!xA();DA++);return yA&&IA.all(yA).then(function(){return nA})}(this,Z,R)}},listeners:{"interactions:stop":function(R,F){var Z=R.interaction;Z.pointerType==="reflow"&&(Z._reflowResolve&&Z._reflowResolve(),function(nA,lA){nA.splice(nA.indexOf(lA),1)}(F.interactions.list,Z))}}},Ui=Dg;if(Gt.use(ni),Gt.use(Jr),Gt.use(yg),Gt.use(ug),Gt.use(Ig),Gt.use(ti),Gt.use(zA),Gt.use(ze),Gt.use(Ui),Gt.default=Gt,u(n)==="object"&&n)try{n.exports=Gt}catch{}return Gt.default=Gt,Gt})}(Cs,Cs.exports);var c_=Cs.exports;const Jp=fu(c_),Ag=A.defineComponent({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(n,{expose:e,emit:t}){const i=n,u=t,I=A.inject(Fp),o=A.inject(Rp);if(!I)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const b=A.ref(null),y=A.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let w=!1,M=!1,N=NaN,P=NaN,Y=NaN,G=NaN,K=-1,D=-1,E=-1,L=-1,_=i.x,v=i.y,B=i.w,p=i.h;const d=A.ref(),l=A.reactive({i:A.toRef(i,"i"),state:y,wrapper:d,calcXY:oA});function g(cA){j(cA)}function s(){tA()}function h(cA){In(i.isDraggable)&&(y.draggable=cA)}function C(cA){In(i.isResizable)&&(y.resizable=cA)}function a(cA){In(i.isBounded)&&(y.bounded=cA)}function r(cA){y.transformScale=cA}function m(cA){y.rowHeight=cA}function Q(cA){y.maxRows=cA}function x(){y.rtl=zp()==="rtl",tA()}function S(cA){y.cols=Math.floor(cA)}I.increaseItem(l),A.onBeforeMount(()=>{y.rtl=zp()==="rtl"}),A.onMounted(()=>{I.responsive&&I.lastBreakpoint?y.cols=Op(I.lastBreakpoint,I.cols):y.cols=I.colNum,y.rowHeight=I.rowHeight,y.containerWidth=I.width!==null?I.width:100,y.margin=I.margin!==void 0?I.margin.map(Number):[10,10],y.maxRows=I.maxRows,In(i.isDraggable)?y.draggable=I.isDraggable:y.draggable=i.isDraggable,In(i.isResizable)?y.resizable=I.isResizable:y.resizable=i.isResizable,In(i.isBounded)?y.bounded=I.isBounded:y.bounded=i.isBounded,y.transformScale=I.transformScale,y.useCssTransforms=I.useCssTransforms,y.useStyleCursor=I.useStyleCursor,A.watchEffect(()=>{_=i.x,v=i.y,p=i.h,B=i.w,jt(k)}),o.on("updateWidth",g),o.on("compact",s),o.on("setDraggable",h),o.on("setResizable",C),o.on("setBounded",a),o.on("setTransformScale",r),o.on("setRowHeight",m),o.on("setMaxRows",Q),o.on("directionchange",x),o.on("setColNum",S)}),A.onBeforeUnmount(()=>{o.off("updateWidth",g),o.off("compact",s),o.off("setDraggable",h),o.off("setResizable",C),o.off("setBounded",a),o.off("setTransformScale",r),o.off("setRowHeight",m),o.off("setMaxRows",Q),o.off("directionchange",x),o.off("setColNum",S),b.value&&(b.value.unset(),b.value=null),I.decreaseItem(l)}),e({state:y,wrapper:d});const T=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,$=A.computed(()=>y.resizable&&!i.static),eA=A.computed(()=>I.isMirrored?!y.rtl:y.rtl),W=A.computed(()=>(y.draggable||y.resizable)&&!i.static),J=n_("item"),O=A.computed(()=>({[J.b()]:!0,[J.bm("resizable")]:$.value,[J.bm("static")]:i.static,[J.bm("resizing")]:y.isResizing,[J.bm("dragging")]:y.isDragging,[J.bm("transform")]:y.useCssTransforms,[J.bm("rtl")]:eA.value,[J.bm("no-touch")]:T&&W.value})),q=A.computed(()=>[J.be("resizer"),eA.value&&J.bem("resizer","rtl")].filter(Boolean));A.watch(()=>i.isDraggable,cA=>{y.draggable=cA}),A.watch(()=>i.static,()=>{jt(z),jt(iA)}),A.watch(()=>y.draggable,()=>{jt(z)}),A.watch(()=>i.isResizable,cA=>{y.resizable=cA}),A.watch(()=>i.isBounded,cA=>{y.bounded=cA}),A.watch(()=>y.resizable,()=>{jt(iA)}),A.watch(()=>y.rowHeight,()=>{jt(k),jt(V)}),A.watch([()=>y.cols,()=>y.containerWidth],()=>{jt(iA),jt(k),jt(V)}),A.watch([()=>i.minH,()=>i.maxH,()=>i.minW,()=>i.maxW],()=>{jt(iA)}),A.watch(eA,()=>{jt(iA),jt(k)}),A.watch([()=>I.margin,()=>I.margin[0],()=>I.margin[1]],()=>{const cA=I.margin;!cA||cA[0]===y.margin[0]&&cA[1]===y.margin[1]||(y.margin=cA.map(Number),jt(k),jt(V))});function k(){i.x+i.w>y.cols?(_=0,B=i.w>y.cols?y.cols:i.w):(_=i.x,B=i.w);const cA=sA(_,v,B,p);y.isDragging&&(cA.top=y.dragging.top,eA.value?cA.right=y.dragging.left:cA.left=y.dragging.left),y.isResizing&&(cA.width=y.resizing.width,cA.height=y.resizing.height);let CA;y.useCssTransforms?eA.value?CA=Vk(cA.top,cA.right,cA.width,cA.height):CA=Xk(cA.top,cA.left,cA.width,cA.height):eA.value?CA=e_(cA.top,cA.right,cA.width,cA.height):CA=A_(cA.top,cA.left,cA.width,cA.height),y.style=CA}function V(){const cA={};for(const CA of["width","height"]){const vA=y.style[CA].match(/^(\d+)px$/);if(!vA)return;cA[CA]=vA[1]}u("container-resized",i.i,i.h,i.w,cA.height,cA.width)}function H(cA){if(i.static)return;const CA=cA.type;if(CA==="resizestart"&&y.isResizing||CA!=="resizestart"&&!y.isResizing)return;const vA=Up(cA);if(In(vA))return;const{x:GA,y:JA}=vA,qA={width:0,height:0};let WA;switch(CA){case"resizestart":{iA(),K=B,D=p,WA=sA(_,v,B,p),qA.width=WA.width,qA.height=WA.height,y.resizing=qA,y.isResizing=!0;break}case"resizemove":{!cA.edges.right&&!cA.edges.left&&(Y=GA),!cA.edges.top&&!cA.edges.bottom&&(G=JA);const ue=Yp(Y,G,GA,JA);eA.value?qA.width=y.resizing.width-ue.deltaX/y.transformScale:qA.width=y.resizing.width+ue.deltaX/y.transformScale,qA.height=y.resizing.height+ue.deltaY/y.transformScale,y.resizing=qA;break}case"resizeend":{WA=sA(_,v,B,p),qA.width=WA.width,qA.height=WA.height,y.resizing={width:-1,height:-1},y.isResizing=!1;break}}WA=BA(qA.height,qA.width),WA.w<i.minW&&(WA.w=i.minW),WA.w>i.maxW&&(WA.w=i.maxW),WA.h<i.minH&&(WA.h=i.minH),WA.h>i.maxH&&(WA.h=i.maxH),WA.h<1&&(WA.h=1),WA.w<1&&(WA.w=1),Y=GA,G=JA,(B!==WA.w||p!==WA.h)&&u("resize",i.i,WA.h,WA.w,qA.height,qA.width),cA.type==="resizeend"&&(K!==B||D!==p)&&u("resized",i.i,WA.h,WA.w,qA.height,qA.width),o.emit("resizeEvent",cA.type,i.i,_,v,WA.h,WA.w)}function AA(cA){if(i.static||y.isResizing)return;const CA=cA.type;if(CA==="dragstart"&&y.isDragging||CA!=="dragstart"&&!y.isDragging)return;const vA=Up(cA);if(In(vA))return;const{x:GA,y:JA}=vA,qA=cA.target;if(!qA.offsetParent)return;const WA={top:0,left:0};switch(CA){case"dragstart":{E=_,L=v;const te=qA.offsetParent.getBoundingClientRect(),LA=qA.getBoundingClientRect(),SA=LA.left/y.transformScale,ZA=te.left/y.transformScale,Be=LA.right/y.transformScale,De=te.right/y.transformScale,Se=LA.top/y.transformScale,YA=te.top/y.transformScale;eA.value?WA.left=(Be-De)*-1:WA.left=SA-ZA,WA.top=Se-YA,y.dragging=WA,y.isDragging=!0;break}case"dragmove":{const te=Yp(N,P,GA,JA);if(eA.value?WA.left=y.dragging.left-te.deltaX/y.transformScale:WA.left=y.dragging.left+te.deltaX/y.transformScale,WA.top=y.dragging.top+te.deltaY/y.transformScale,y.bounded){const LA=qA.offsetParent.clientHeight-EA(i.h,y.rowHeight,y.margin[1]);WA.top=uA(WA.top,0,LA);const SA=dA(),ZA=y.containerWidth-EA(i.w,SA,y.margin[0]);WA.left=uA(WA.left,0,ZA)}y.dragging=WA;break}case"dragend":{const te=qA.offsetParent.getBoundingClientRect(),LA=qA.getBoundingClientRect(),SA=LA.left/y.transformScale,ZA=te.left/y.transformScale,Be=LA.right/y.transformScale,De=te.right/y.transformScale,Se=LA.top/y.transformScale,YA=te.top/y.transformScale;eA.value?WA.left=(Be-De)*-1:WA.left=SA-ZA,WA.top=Se-YA,y.dragging={top:-1,left:-1},y.isDragging=!1;break}}let ue;eA.value,ue=oA(WA.top,WA.left),N=GA,P=JA,(_!==ue.x||v!==ue.y)&&u("move",i.i,ue.x,ue.y),cA.type==="dragend"&&(E!==_||L!==v)&&u("moved",i.i,ue.x,ue.y),o.emit("dragEvent",cA.type,i.i,ue.x,ue.y,p,B)}function sA(cA,CA,vA,GA){const JA=dA();let qA;return eA.value?qA={right:Math.round(JA*cA+(cA+1)*y.margin[0]),top:Math.round(y.rowHeight*CA+(CA+1)*y.margin[1]),width:vA===1/0?vA:Math.round(JA*vA+Math.max(0,vA-1)*y.margin[0]),height:GA===1/0?GA:Math.round(y.rowHeight*GA+Math.max(0,GA-1)*y.margin[1])}:qA={left:Math.round(JA*cA+(cA+1)*y.margin[0]),top:Math.round(y.rowHeight*CA+(CA+1)*y.margin[1]),width:vA===1/0?vA:Math.round(JA*vA+Math.max(0,vA-1)*y.margin[0]),height:GA===1/0?GA:Math.round(y.rowHeight*GA+Math.max(0,GA-1)*y.margin[1])},qA}function oA(cA,CA){const vA=dA();let GA=Math.round((CA-y.margin[0])/(vA+y.margin[0])),JA=Math.round((cA-y.margin[1])/(y.rowHeight+y.margin[1]));return GA=Math.max(Math.min(GA,y.cols-B),0),JA=Math.max(Math.min(JA,y.maxRows-p),0),{x:GA,y:JA}}function dA(){return(y.containerWidth-y.margin[0]*(y.cols+1))/y.cols}function EA(cA,CA,vA){return Number.isFinite(cA)?Math.round(CA*cA+Math.max(0,cA-1)*vA):cA}function uA(cA,CA,vA){return Math.max(Math.min(cA,vA),CA)}function BA(cA,CA,vA=!1){const GA=dA();let JA=Math.round((CA+y.margin[0])/(GA+y.margin[0])),qA=0;return vA?qA=Math.ceil((cA+y.margin[1])/(y.rowHeight+y.margin[1])):qA=Math.round((cA+y.margin[1])/(y.rowHeight+y.margin[1])),JA=Math.max(Math.min(JA,y.cols-_),0),qA=Math.max(Math.min(qA,y.maxRows-v),0),{w:JA,h:qA}}function j(cA,CA){y.containerWidth=cA}function tA(){k()}function rA(){!b.value&&d.value&&(b.value=Jp(d.value),y.useStyleCursor||b.value.styleCursor(!1))}const gA=xp(AA);function z(){if(rA(),!!b.value)if(y.draggable&&!i.static){const cA={ignoreFrom:i.dragIgnoreFrom,allowFrom:i.dragAllowFrom,...i.dragOption};b.value.draggable(cA),w||(w=!0,b.value.on("dragstart dragmove dragend",CA=>{CA.type==="dragmove"?gA(CA):AA(CA)}))}else b.value.draggable({enabled:!1})}const X=xp(H);function iA(){if(rA(),!!b.value)if(y.resizable&&!i.static){const cA=sA(0,0,i.maxW,i.maxH),CA=sA(0,0,i.minW,i.minH),vA={edges:{left:eA.value?`.${q.value[0]}`:!1,right:eA.value?!1:`.${q.value[0]}`,bottom:`.${q.value[0]}`,top:!1},ignoreFrom:i.resizeIgnoreFrom,restrictSize:{min:{height:CA.height*y.transformScale,width:CA.width*y.transformScale},max:{height:cA.height*y.transformScale,width:cA.width*y.transformScale}},...i.resizeOption};i.preserveAspectRatio&&(vA.modifiers=[Jp.modifiers.aspectRatio({ratio:"preserve"})]),b.value.resizable(vA),M||(M=!0,b.value.on("resizestart resizemove resizeend",GA=>{GA.type==="resizemove"?X(GA):H(GA)}))}else b.value.resizable({enabled:!1})}return(cA,CA)=>(A.openBlock(),A.createElementBlock("section",{ref_key:"wrapper",ref:d,class:A.normalizeClass(O.value),style:A.normalizeStyle(y.style)},[A.renderSlot(cA.$slots,"default"),$.value?(A.openBlock(),A.createElementBlock("span",{key:0,class:A.normalizeClass(q.value)},null,2)):A.createCommentVNode("",!0)],6))}}),ro=typeof window<"u";var Zp;ro&&(Zp=window==null?void 0:window.navigator)!=null&&Zp.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Wp(n){return n!=null}function Kr(){}const g_=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(g_)));const u_=ro&&("ontouchstart"in window||h_()>0),d_=u_?"pointerdown":"click";function h_(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function p_(n,e,t=window.Event){const{type:i,bubbles:u=!1,cancelable:I=!1,...o}=e;if(!Wp(i)||i==="")return!1;let b;return Wp(t)?b=new t(i,{bubbles:u,cancelable:I}):(b=document.createEvent("HTMLEvents"),b.initEvent(i,u,I)),Object.assign(b,o),n.dispatchEvent(b)}const C_="clickoutside",B_=new Set;ro&&document.addEventListener(d_,n=>{const e=n.target,t=n.composedPath&&n.composedPath();B_.forEach(i=>{i!==e&&(t?!t.includes(i):!i.contains(e))&&(!i.__transferElement||i.__transferElement!==e&&!i.__transferElement.contains(e))&&p_(i,{type:C_})})},!0);const m_=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let Tr;if(ro){for(const n of m_)if(n[1]in document){Tr=n;break}}const E_=!!Tr;A.computed(()=>!1);const Q_=new Set,I_=new WeakMap;if(ro&&Tr){const n=Tr[2],e=Tr[4];document.addEventListener(e,()=>{if(Q_.forEach(t=>{t.value=!1}),document[n]){const t=I_.get(document[n]);t&&(t.value=!0)}},!1)}const jp=new Map;jp.set("x",0),jp.set("y",0);var ao=[],f_=function(){return ao.some(function(n){return n.activeTargets.length>0})},w_=function(){return ao.some(function(n){return n.skippedTargets.length>0})},qp="ResizeObserver loop completed with undelivered notifications.",b_=function(){var n;typeof ErrorEvent=="function"?n=new ErrorEvent("error",{message:qp}):(n=document.createEvent("Event"),n.initEvent("error",!1,!1),n.message=qp),window.dispatchEvent(n)},Ur;(function(n){n.BORDER_BOX="border-box",n.CONTENT_BOX="content-box",n.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ur||(Ur={}));var so=function(n){return Object.freeze(n)},y_=function(){function n(e,t){this.inlineSize=e,this.blockSize=t,so(this)}return n}(),Xp=function(){function n(e,t,i,u){return this.x=e,this.y=t,this.width=i,this.height=u,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,so(this)}return n.prototype.toJSON=function(){var e=this,t=e.x,i=e.y,u=e.top,I=e.right,o=e.bottom,b=e.left,y=e.width,w=e.height;return{x:t,y:i,top:u,right:I,bottom:o,left:b,width:y,height:w}},n.fromRect=function(e){return new n(e.x,e.y,e.width,e.height)},n}(),eg=function(n){return n instanceof SVGElement&&"getBBox"in n},Vp=function(n){if(eg(n)){var e=n.getBBox(),t=e.width,i=e.height;return!t&&!i}var u=n,I=u.offsetWidth,o=u.offsetHeight;return!(I||o||n.getClientRects().length)},AC=function(n){var e;if(n instanceof Element)return!0;var t=(e=n==null?void 0:n.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(t&&n instanceof t.Element)},D_=function(n){switch(n.tagName){case"INPUT":if(n.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Yr=typeof window<"u"?window:{},Bs=new WeakMap,eC=/auto|scroll/,v_=/^tb|vertical/,k_=/msie|trident/i.test(Yr.navigator&&Yr.navigator.userAgent),Ai=function(n){return parseFloat(n||"0")},$o=function(n,e,t){return n===void 0&&(n=0),e===void 0&&(e=0),t===void 0&&(t=!1),new y_((t?e:n)||0,(t?n:e)||0)},tC=so({devicePixelContentBoxSize:$o(),borderBoxSize:$o(),contentBoxSize:$o(),contentRect:new Xp(0,0,0,0)}),nC=function(n,e){if(e===void 0&&(e=!1),Bs.has(n)&&!e)return Bs.get(n);if(Vp(n))return Bs.set(n,tC),tC;var t=getComputedStyle(n),i=eg(n)&&n.ownerSVGElement&&n.getBBox(),u=!k_&&t.boxSizing==="border-box",I=v_.test(t.writingMode||""),o=!i&&eC.test(t.overflowY||""),b=!i&&eC.test(t.overflowX||""),y=i?0:Ai(t.paddingTop),w=i?0:Ai(t.paddingRight),M=i?0:Ai(t.paddingBottom),N=i?0:Ai(t.paddingLeft),P=i?0:Ai(t.borderTopWidth),Y=i?0:Ai(t.borderRightWidth),G=i?0:Ai(t.borderBottomWidth),K=i?0:Ai(t.borderLeftWidth),D=N+w,E=y+M,L=K+Y,_=P+G,v=b?n.offsetHeight-_-n.clientHeight:0,B=o?n.offsetWidth-L-n.clientWidth:0,p=u?D+L:0,d=u?E+_:0,l=i?i.width:Ai(t.width)-p-B,g=i?i.height:Ai(t.height)-d-v,s=l+D+B+L,h=g+E+v+_,C=so({devicePixelContentBoxSize:$o(Math.round(l*devicePixelRatio),Math.round(g*devicePixelRatio),I),borderBoxSize:$o(s,h,I),contentBoxSize:$o(l,g,I),contentRect:new Xp(N,y,l,g)});return Bs.set(n,C),C},iC=function(n,e,t){var i=nC(n,t),u=i.borderBoxSize,I=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(e){case Ur.DEVICE_PIXEL_CONTENT_BOX:return o;case Ur.BORDER_BOX:return u;default:return I}},__=function(){function n(e){var t=nC(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=so([t.borderBoxSize]),this.contentBoxSize=so([t.contentBoxSize]),this.devicePixelContentBoxSize=so([t.devicePixelContentBoxSize])}return n}(),oC=function(n){if(Vp(n))return 1/0;for(var e=0,t=n.parentNode;t;)e+=1,t=t.parentNode;return e},M_=function(){var n=1/0,e=[];ao.forEach(function(I){if(I.activeTargets.length!==0){var o=[];I.activeTargets.forEach(function(b){var y=new __(b.target),w=oC(b.target);o.push(y),b.lastReportedSize=iC(b.target,b.observedBox),w<n&&(n=w)}),e.push(function(){I.callback.call(I.observer,o,I.observer)}),I.activeTargets.splice(0,I.activeTargets.length)}});for(var t=0,i=e;t<i.length;t++){var u=i[t];u()}return n},rC=function(n){ao.forEach(function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach(function(t){t.isActive()&&(oC(t.target)>n?e.activeTargets.push(t):e.skippedTargets.push(t))})})},x_=function(){var n=0;for(rC(n);f_();)n=M_(),rC(n);return w_()&&b_(),n>0},tg,aC=[],S_=function(){return aC.splice(0).forEach(function(n){return n()})},N_=function(n){if(!tg){var e=0,t=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return S_()}).observe(t,i),tg=function(){t.textContent="".concat(e?e--:e++)}}aC.push(n),tg()},F_=function(n){N_(function(){requestAnimationFrame(n)})},ms=0,R_=function(){return!!ms},L_=250,G_={attributes:!0,characterData:!0,childList:!0,subtree:!0},sC=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],lC=function(n){return n===void 0&&(n=0),Date.now()+n},ng=!1,P_=function(){function n(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return n.prototype.run=function(e){var t=this;if(e===void 0&&(e=L_),!ng){ng=!0;var i=lC(e);F_(function(){var u=!1;try{u=x_()}finally{if(ng=!1,e=i-lC(),!R_())return;u?t.run(1e3):e>0?t.run(e):t.start()}})}},n.prototype.schedule=function(){this.stop(),this.run()},n.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,G_)};document.body?t():Yr.addEventListener("DOMContentLoaded",t)},n.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),sC.forEach(function(t){return Yr.addEventListener(t,e.listener,!0)}))},n.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),sC.forEach(function(t){return Yr.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},n}(),ig=new P_,cC=function(n){!ms&&n>0&&ig.start(),ms+=n,!ms&&ig.stop()},H_=function(n){return!eg(n)&&!D_(n)&&getComputedStyle(n).display==="inline"},K_=function(){function n(e,t){this.target=e,this.observedBox=t||Ur.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return n.prototype.isActive=function(){var e=iC(this.target,this.observedBox,!0);return H_(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},n}(),T_=function(){function n(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return n}(),Es=new WeakMap,gC=function(n,e){for(var t=0;t<n.length;t+=1)if(n[t].target===e)return t;return-1},Qs=function(){function n(){}return n.connect=function(e,t){var i=new T_(e,t);Es.set(e,i)},n.observe=function(e,t,i){var u=Es.get(e),I=u.observationTargets.length===0;gC(u.observationTargets,t)<0&&(I&&ao.push(u),u.observationTargets.push(new K_(t,i&&i.box)),cC(1),ig.schedule())},n.unobserve=function(e,t){var i=Es.get(e),u=gC(i.observationTargets,t),I=i.observationTargets.length===1;u>=0&&(I&&ao.splice(ao.indexOf(i),1),i.observationTargets.splice(u,1),cC(-1))},n.disconnect=function(e){var t=this,i=Es.get(e);i.observationTargets.slice().forEach(function(u){return t.unobserve(e,u.target)}),i.activeTargets.splice(0,i.activeTargets.length)},n}(),U_=function(){function n(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Qs.connect(this,e)}return n.prototype.observe=function(e,t){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!AC(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Qs.observe(this,e,t)},n.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!AC(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Qs.unobserve(this,e)},n.prototype.disconnect=function(){Qs.disconnect(this)},n.toString=function(){return"function ResizeObserver () { [polyfill code] }"},n}();const Is=new WeakMap;function Y_(n){var e;for(let t=0,i=n.length;t<i;++t){const u=n[t],I=Is.get(u.target);if(typeof I=="function"){const{inlineSize:o,blockSize:b}=(e=u.borderBoxSize)==null?void 0:e[0],{offsetWidth:y,offsetHeight:w}=u.target;I(Object.assign(u,{offsetWidth:y,offsetHeight:w,width:o??y,height:b??w}))}}}const uC=new(ro&&window.ResizeObserver||U_)(Y_);function dC(n,e){Is.set(n,e),uC.observe(n)}function hC(n){Is.has(n)&&(uC.unobserve(n),Is.delete(n))}function O_(n={}){let e=Kr;const t=A.watch(()=>A.unref(n.target),u=>{e(),!(!u||typeof n.onResize!="function")&&(dC(u,n.onResize),e=()=>{hC(u),e=Kr})},{immediate:!0}),i=()=>{t(),e()};return A.getCurrentScope()&&A.onScopeDispose(i),{observeResize:dC,unobserveResize:hC,unobserve:i}}const $_=A.ref(!1);A.computed(()=>$_.value);const pC="__theme_style__",og="__theme_observer__",CC=A.reactive(new Map),BC=new Map;A.watch(CC,()=>{if(!ro)return;BC.clear();const n=document.head.querySelector(`#${pC}`);n&&document.head.removeChild(n);const e=document.createElement("style");let t=`.${og} { width: 1px }`,i=1;for(const[u,[I,o]]of CC.entries())t+=` html.${I} .${og}, .${o} .${og} { width: ${++i}px }`,BC.set(i,u);e.textContent=t,e.id=pC,document.head.appendChild(e)});const z_=A.defineComponent({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(n,{expose:e,emit:t}){const i=n,u=t,I=A.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),o=new Map,b=A.ref(i.layout),y=A.ref(),{observeResize:w,unobserveResize:M}=O_(),N=$k();N.on("resizeEvent",P),N.on("dragEvent",Y),A.onBeforeMount(()=>{u("layout-before-mount",b.value)}),A.onMounted(()=>{u("layout-mounted",b.value),A.nextTick(()=>{t_(b.value),I.originalLayout=b.value,A.nextTick(()=>{g(),y.value&&w(y.value,zk(_,16)),Oo(b.value,i.verticalCompact),u("layout-updated",b.value),L(),_()})})}),A.onBeforeUnmount(()=>{N.clearAll(),y.value&&M(y.value)});function P(h,C,a,r,m,Q){d(h,C,a,r,m,Q)}function Y(h,C,a,r,m,Q){p(h,C,a,r,m,Q)}A.watch(()=>I.width,(h,C)=>{A.nextTick(()=>{N.emit("updateWidth",h),C===-1&&A.nextTick(()=>{u("layout-ready",b.value)}),L()})}),A.watch(()=>[i.layout,i.layout.length],()=>{b.value=i.layout,E()}),A.watch(()=>i.colNum,h=>{N.emit("setColNum",h)}),A.watch(()=>i.rowHeight,h=>{N.emit("setRowHeight",h)}),A.watch(()=>i.isDraggable,h=>{N.emit("setDraggable",h)}),A.watch(()=>i.isResizable,h=>{N.emit("setResizable",h)}),A.watch(()=>i.isBounded,h=>{N.emit("setBounded",h)}),A.watch(()=>i.transformScale,h=>{N.emit("setTransformScale",h)}),A.watch(()=>i.responsive,h=>{h||(u("update:layout",I.originalLayout),N.emit("setColNum",i.colNum)),_()}),A.watch(()=>i.maxRows,h=>{N.emit("setMaxRows",h)}),A.watch([()=>i.margin,()=>i.margin[1]],L),A.provide(Fp,A.reactive({...A.toRefs(i),...A.toRefs(I),increaseItem:G,decreaseItem:K})),A.provide(Rp,N),e({state:I,getItem:D,resizeEvent:d,dragEvent:p,layoutUpdate:E});function G(h){o.set(h.i,h)}function K(h){o.delete(h.i)}function D(h){return o.get(h)}function E(){if(!In(b.value)&&!In(I.originalLayout)){if(b.value.length!==I.originalLayout.length){const h=s(b.value,I.originalLayout);if(h.length>0)if(b.value.length>I.originalLayout.length)I.originalLayout=I.originalLayout.concat(h);else{const C=new Set(h.map(a=>a.i));I.originalLayout=I.originalLayout.filter(a=>!C.has(a.i))}I.lastLayoutLength=b.value.length,g()}Oo(b.value,i.verticalCompact),N.emit("updateWidth",I.width),L(),u("layout-updated",b.value)}}function L(){I.mergedStyle={height:v()}}function _(){y.value&&(I.width=y.value.offsetWidth),N.emit("resizeEvent")}function v(){if(!i.autoSize)return;const h=parseFloat(i.margin[1]);return Zk(b.value)*(i.rowHeight+h)+h+"px"}let B;function p(h,C,a,r,m,Q){let x=Gp(b.value,C);In(x)&&(x={h:0,w:0,x:0,y:0,i:""}),h==="dragstart"&&!i.verticalCompact&&(B=b.value.reduce((S,{i:T,x:$,y:eA})=>({...S,[T]:{x:$,y:eA}}),{})),h==="dragmove"||h==="dragstart"?(I.placeholder.i=C,I.placeholder.x=x.x,I.placeholder.y=x.y,I.placeholder.w=Q,I.placeholder.h=m,A.nextTick(()=>{I.isDragging=!0}),N.emit("updateWidth",I.width)):A.nextTick(()=>{I.isDragging=!1}),b.value=Vc(b.value,x,a,r,!0,i.preventCollision),i.restoreOnDrag?(x.static=!0,Oo(b.value,i.verticalCompact,B),x.static=!1):Oo(b.value,i.verticalCompact),N.emit("compact"),L(),h==="dragend"&&(B=void 0,u("layout-updated",b.value))}function d(h,C,a,r,m,Q){let x=Gp(b.value,C);In(x)&&(x={h:0,w:0,x:0,y:0,i:""});let S;if(i.preventCollision){const T=Pp(b.value,{...x,w:Q,h:m}).filter($=>$.i!==x.i);if(S=T.length>0,S){let $=1/0,eA=1/0;T.forEach(W=>{W.x>x.x&&($=Math.min($,W.x)),W.y>x.y&&(eA=Math.min(eA,W.y))}),Number.isFinite($)&&(x.w=$-x.x),Number.isFinite(eA)&&(x.h=eA-x.y)}}S||(x.w=Q,x.h=m),h==="resizestart"||h==="resizemove"?(I.placeholder.i=C,I.placeholder.x=a,I.placeholder.y=r,I.placeholder.w=x.w,I.placeholder.h=x.h,A.nextTick(()=>{I.isDragging=!0}),N.emit("updateWidth",I.width)):h&&A.nextTick(()=>{I.isDragging=!1}),i.responsive&&l(),Oo(b.value,i.verticalCompact),N.emit("compact"),L(),h==="resizeend"&&u("layout-updated",b.value)}function l(){const h=r_(i.breakpoints,I.width);if(h===I.lastBreakpoint)return;const C=Op(h,i.cols);!In(I.lastBreakpoint)&&!I.layouts[I.lastBreakpoint]&&(I.layouts[I.lastBreakpoint]=Xc(b.value));const a=a_(I.originalLayout,I.layouts,i.breakpoints,h,I.lastBreakpoint,C,i.verticalCompact);I.layouts[h]=a,I.lastBreakpoint!==h&&u("breakpoint-changed",h,a),b.value=a,u("update:layout",a),I.lastBreakpoint=h,N.emit("setColNum",C)}function g(){I.layouts=Object.assign({},i.responsiveLayouts)}function s(h,C){const a=new Set(C.map(x=>x.i)),r=new Set(h.map(x=>x.i)),m=h.filter(x=>!a.has(x.i)),Q=C.filter(x=>!r.has(x.i));return m.concat(Q)}return(h,C)=>(A.openBlock(),A.createElementBlock("div",{ref_key:"wrapper",ref:y,class:"vgl-layout",style:A.normalizeStyle(I.mergedStyle)},[h.$slots.default?A.renderSlot(h.$slots,"default",{key:0}):(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:1},A.renderList(b.value,a=>(A.openBlock(),A.createBlock(Ag,A.mergeProps({key:a.i,ref_for:!0},a),{default:A.withCtx(()=>[A.renderSlot(h.$slots,"item",{item:a})]),_:2},1040))),128)),A.withDirectives(A.createVNode(Ag,{class:"vgl-item--placeholder",x:I.placeholder.x,y:I.placeholder.y,w:I.placeholder.w,h:I.placeholder.h,i:I.placeholder.i},null,8,["x","y","w","h","i"]),[[A.vShow,I.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var n=document.createElement("style");n.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(n)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();const pt=A.defineComponent({__name:"FormItemGroup",props:A.mergeModels({list:{}},{gridData:{},gridDataModifiers:{}}),emits:A.mergeModels(["gridItemMoved"],["update:gridData"]),setup(n,{emit:e}){const t=A.useModel(n,"gridData"),i=gi(),u=It(),I=A.ref({});function o(N,P){N&&(I.value[P]=N)}let b=[];const y=()=>{if(!t.value)return;const N=new Map;for(const P of t.value)N.has(P.x)||N.set(P.x,[]),N.get(P.x).push(P);for(const P of N.values()){P.sort((G,K)=>G.y-K.y);let Y=0;for(const G of P)G.y=Y,Y+=G.h}t.value=[...t.value]},w=e,M=()=>{w("gridItemMoved")};return A.onMounted(()=>{Object.keys(I.value).forEach(N=>{const P=I.value[N];if(!P)return;const Y=new ResizeObserver(G=>{for(let K of G){const D=K.contentRect.height+28;if(t.value){const E=t.value[0].rowHeight||30,L=t.value.find(_=>_.i===N);L&&(L.contentHeight=Math.ceil((D+8)/(E+8)),L.h>0&&(L.h=Math.ceil((D+8)/(E+8))))}}y()});Y.observe(P),b.push(Y)})}),A.onBeforeUnmount(()=>{b.forEach(N=>N.disconnect()),b=[]}),(N,P)=>A.unref(u).design?(A.openBlock(),A.createBlock(qc,{key:0,list:N.list,"empty-text":A.unref(i).canvas.emptyTip,"empty-size":18},null,8,["list","empty-text"])):t.value?(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:1},A.renderList(t.value,(Y,G)=>(A.openBlock(),A.createBlock(A.unref(Ag),{onMoved:M,key:Y.i,x:Y.x,y:Y.y,w:Y.w,h:Y.h,i:Y.i,class:A.normalizeClass(Y.h===0?"noPadding":"defaultPadding")},{default:A.withCtx(()=>[A.createElementVNode("div",{ref_for:!0,ref:K=>o(K,Y.i)},[A.createVNode(oo,A.mergeProps({ref_for:!0},N.list[G]),null,16)],512)]),_:2},1032,["x","y","w","h","i","class"]))),128)):(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:2},A.renderList(N.list,Y=>(A.openBlock(),A.createBlock(oo,A.mergeProps({key:Y.name,ref_for:!0},Y),null,16))),128))}}),J_={key:0,class:"btn-render-wrapper"},lo=ie(A.defineComponent({__name:"ButtonRender",props:{btns:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=A.ref({}),u=async o=>{if(o.onClick&&e){try{i.value[o.key]=!0,await e[o.onClick](t,o)}catch(b){console.error(b+`
105
+ onClick: ${o.onClick}`)}i.value[o.key]=!1}},I=o=>({...o,name:o.key,component:"Popover"});return(o,b)=>{const y=A.resolveComponent("el-button"),w=A.resolveComponent("el-tooltip"),M=A.resolveComponent("el-button-group");return o.btns&&o.btns.length>0?(A.openBlock(),A.createElementBlock("div",J_,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(o.btns,N=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:N.key},[N.component==="Popover"?(A.openBlock(),A.createBlock(pt,{key:0,list:[I(N)]},null,8,["list"])):N.component==="BtnGroup"?(A.openBlock(),A.createBlock(M,{key:1},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(N.children,P=>(A.openBlock(),A.createBlock(w,{key:P.key,disabled:!P.tooltip,content:P.tooltip,placement:"top"},{default:A.withCtx(()=>[P.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(y,{key:P.key,onClick:Y=>u(P),disabled:P.disabled,type:P.type,text:P.isTextBtn,link:P.isLinkBtn,plain:P.isPlainBtn||P.type!=="primary"&&!P.orange,color:P.orange?"#FAA21E":P.color,loading:i.value[P.key],class:A.normalizeClass({orangeBtn:P.orange})},{default:A.withCtx(()=>[P.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:P.icon.name,color:P.icon.color,class:A.normalizeClass({"btn-icon":P.text||P.label})},null,8,["name","color","class"])):A.createCommentVNode("",!0),A.createTextVNode(" "+A.toDisplayString(P.text||P.label),1)]),_:2},1032,["onClick","disabled","type","text","link","plain","color","loading","class"]))]),_:2},1032,["disabled","content"]))),128))]),_:2},1024)):N.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(y,{key:2,onClick:P=>u(N),disabled:N.disabled,type:N.type,text:N.isTextBtn,link:N.isLinkBtn,plain:N.isPlainBtn||N.type!=="primary"&&!N.orange,color:N.orange?"#FAA21E":N.color,loading:i.value[N.key],size:N.size,style:A.normalizeStyle(N.style),class:A.normalizeClass({orangeBtn:N.orange})},{default:A.withCtx(()=>{var P;return[A.createElementVNode("div",{class:A.normalizeClass(["flex items-center gap-2 direction",{"flex-row-reverse":N.isReverse}])},[N.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:N.icon.name,color:N.icon.color,size:((P=N==null?void 0:N.icon)==null?void 0:P.size)||"small",class:A.normalizeClass({"btn-icon":N.text||N.label})},null,8,["name","color","size","class"])):A.createCommentVNode("",!0),A.createTextVNode(" "+A.toDisplayString(N.text||N.label),1)],2)]}),_:2},1032,["onClick","disabled","type","text","link","plain","color","loading","size","style","class"]))],64))),128))])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-49a497b9"]]),Z_={key:0,class:"dropdown-render-wrapper"},W_=ie(A.defineComponent({__name:"dropdownRender",props:{dropdowns:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=async(u,I)=>{if(I.onClick&&e)try{await e[I.onClick](t,u)}catch(o){console.error(o+`
106
106
  onClick: ${I.onClick}`)}};return(u,I)=>{const o=A.resolveComponent("el-button"),b=A.resolveComponent("el-dropdown-item"),y=A.resolveComponent("el-dropdown-menu"),w=A.resolveComponent("el-dropdown");return u.dropdowns&&u.dropdowns.length>0?(A.openBlock(),A.createElementBlock("div",Z_,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.dropdowns,M=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:M.key},[M.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(w,{key:0,disabled:M.disabled},{dropdown:A.withCtx(()=>[A.createVNode(y,null,{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(M.options,N=>(A.openBlock(),A.createBlock(b,{key:N.value,command:N.value,onClick:P=>i(N,M)},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(N.label),1)]),_:2},1032,["command","onClick"]))),128))]),_:2},1024)]),default:A.withCtx(()=>[A.createVNode(o,{plain:"",color:M.color},{default:A.withCtx(()=>{var N,P;return[M.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:(N=M.icon)==null?void 0:N.name,class:"left-icon",color:(P=M.icon)==null?void 0:P.color},null,8,["name","color"])):A.createCommentVNode("",!0),A.createElementVNode("span",null,A.toDisplayString(M.text),1),A.createVNode(xe,{name:"icon-gongnengjixiajiantou",class:"right-icon"})]}),_:2},1032,["color"])]),_:2},1032,["disabled"]))],64))),128))])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-b9eeb69a"]]),mC=ie(A.defineComponent({__name:"Popover",props:{title:{},placement:{},reference:{},trigger:{},hoverStyle:{},ostyle:{},children:{},width:{},size:{},hoverColor:{},noPadding:{type:Boolean},beforeEnter:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=A.ref(!1),u=n,I=async()=>{var y,w;const b=(w=(y=u.reference)==null?void 0:y.props)==null?void 0:w.onClick;if(b&&e)try{await e[b](t)}catch(M){console.error(M+`
107
107
  onClick: ${b}`)}},o=async()=>{if(u.beforeEnter&&e)try{await e[u.beforeEnter](t)}catch(b){console.error(b+`
108
- onClick: ${u.beforeEnter}`)}};return(b,y)=>{const w=A.resolveComponent("el-popover");return A.openBlock(),A.createBlock(w,{trigger:u.trigger||"hover",width:u.width,"popper-class":u.noPadding?"no-padding":"",title:u.title,placement:u.placement,onBeforeEnter:o,"popper-style":{overflow:"auto"}},{reference:A.withCtx(()=>{var M,N,P,Y,G;return[A.createElementVNode("div",{style:A.normalizeStyle(u.ostyle+(i.value?u.hoverStyle:"")),onMouseenter:y[0]||(y[0]=K=>i.value=!0),onMouseleave:y[1]||(y[1]=K=>i.value=!1)},[((M=u.reference)==null?void 0:M.component)==="Icon"?(A.openBlock(),A.createBlock(xe,{key:0,name:(P=(N=u.reference)==null?void 0:N.props)==null?void 0:P.name,color:i.value&&u.hoverColor?u.hoverColor:(G=(Y=u.reference)==null?void 0:Y.props)==null?void 0:G.color,class:"btn-icon cursor-pointer",size:u.size||"normal",onClick:I},null,8,["name","color","size"])):u.reference?(A.openBlock(),A.createBlock(A.unref(mt),{key:1,list:[u.reference]},null,8,["list"])):A.createCommentVNode("",!0)],36)]}),default:A.withCtx(()=>[A.createElementVNode("div",null,[b.children?(A.openBlock(),A.createBlock(A.unref(mt),{key:0,list:b.children},null,8,["list"])):A.createCommentVNode("",!0)])]),_:1},8,["trigger","width","popper-class","title","placement"])}}}),[["__scopeId","data-v-a2ca82fe"]]),j_={title:"气泡框",component:"Popover",render:mC,icon:A.h(Ie,{name:"password"}),type:"layout",order:9},q_=["innerHTML"],X_=A.defineComponent({__name:"HtmlRender",props:{data:{}},setup(n){return(e,t)=>(A.openBlock(),A.createElementBlock("div",{innerHTML:e.data,class:"html-render"},null,8,q_))}}),V_={title:"HTML",component:"HtmlRender",icon:A.h(Ie,{name:"button"}),type:"assist",order:19,render:X_},A2={title:"分页",component:"Pagination",icon:A.h(Ie,{name:"library"}),type:"assist",order:10,render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>G8))},e2=ie(A.defineComponent({__name:"Menu",props:{mode:{default:"horizontal"},data:{default:()=>[]},onClickMenu:{},defaultActive:{default:""},refresh:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=A.ref(null),u=n,I=A.ref(!0),o=b=>{e&&e[u.onClickMenu||"onClickMenu"](t,b)};return A.watch(()=>u.data,()=>{I.value=!1,A.nextTick(()=>{I.value=!0})}),A.watch(()=>u.defaultActive,()=>{i.value.updateActiveIndex(u.defaultActive)}),(b,y)=>{var N;const w=A.resolveComponent("el-menu-item"),M=A.resolveComponent("el-menu");return((N=b.data)==null?void 0:N.length)>0&&I.value?(A.openBlock(),A.createBlock(M,{key:0,ref_key:"menuRef",ref:i,"popper-class":"sui-menu-popper",mode:b.mode,class:"sui-menu","default-active":b.defaultActive},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data,P=>(A.openBlock(),A.createBlock(w,{onClick:Y=>o(P),key:P.id,index:P.id},{default:A.withCtx(()=>[P.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:P.icon.name,size:"x-small",class:"sui-menu-icon"},null,8,["name"])):A.createCommentVNode("",!0),A.createElementVNode("span",null,A.toDisplayString(P.name),1)]),_:2},1032,["onClick","index"]))),128))]),_:1},8,["mode","default-active"])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-ad592696"]]),t2={title:"Menu",component:"Menu",icon:A.h(Ie,{name:"button"}),type:"assist",order:19,render:e2},n2={title:"筛选搜索",component:"FilterSearch",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>U8)),icon:A.h(Ie,{name:"card"}),type:"layout",order:10},i2={title:"无限滚动",component:"InfiniteScroll",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>sS)),icon:A.h(Ie,{name:"card"}),type:"layout",order:10,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"}]}},o2={title:"文字提示",component:"Tooltip",render:A.defineComponent({__name:"Component",props:{children:{},content:{}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-tooltip");return A.openBlock(),A.createBlock(i,A.mergeProps(e.$attrs,{content:e.content}),{default:A.withCtx(()=>[A.createElementVNode("div",null,[A.createVNode(A.unref(mt),{list:e.children},null,8,["list"])])]),_:1},16,["content"])}}}),icon:A.h(Ie,{name:"card"}),type:"layout",order:9,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"}]}},r2={title:"进度条",component:"NormalProgress",render:ie(A.defineComponent({__name:"NormalProgress",props:{percentage:{},width:{}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-progress");return A.openBlock(),A.createElementBlock("div",{class:"normal-progress",style:A.normalizeStyle({width:e.width})},[A.createVNode(i,A.mergeProps(e.$attrs,{percentage:e.percentage}),null,16,["percentage"])],4)}}}),[["__scopeId","data-v-2257060b"]]),icon:A.h(Ie,{name:"card"}),type:"assist",order:10},a2=ie(A.defineComponent({__name:"IconInForm",props:{iconName:{},color:{},size:{}},setup(n){return(e,t)=>(A.openBlock(),A.createBlock(xe,{name:e.iconName,color:e.color,size:e.size,class:"icon-in-form"},null,8,["name","color","size"]))}}),[["__scopeId","data-v-acc35cea"]]),s2={title:"字体图标",component:"IconInForm",icon:A.h(Ie,{name:"icon"}),type:"assist",order:9,render:a2},l2=Object.freeze(Object.defineProperty({__proto__:null,Alert:w0,Button:Fb,Card:b0,CardList:ry,Cascader:D0,Checkbox:M0,Collapse:Bb,ColorInput:F0,ColorPicker:S0,CurdCard:Hb,Custom:L0,DatePicker:P0,Divider:K0,DragList:cy,Esign:U0,FilterSearch:n2,FormList:z0,Grid:J0,HtmlRender:V_,IconInForm:s2,InfiniteScroll:i2,Inline:Z0,Input:p0,InputNumber:j0,JsonEdit:k0,LogList:ly,Menu:t2,NormalProgress:r2,ObjGroup:Eb,OfferDetails:ay,OrderProgress:sy,Pagination:A2,Password:V0,Popover:j_,Radio:O0,Rate:nb,SearchInput:_b,SearchSelect:xb,Select:eb,SelectInput:ob,Slider:rb,Switch:sb,Table:Pb,Tabs:mb,Tag:lb,Text:gb,TextArea:B0,Title:ub,Tooltip:o2,Transfer:Db,Tree:Lb,Upload:hb,VerifyCode:Cb,Wrapper:Kb},Symbol.toStringTag,{value:"Module"})),zo=()=>{const n=A.inject(jn),e={...l2};return n!=null&&n.extendElements&&Object.assign(e,n.extendElements),e},Sn=()=>A.inject(Nd),ei=()=>{const n=A.inject("ruleModule",void 0),e=A.inject("pageMethodMap",{});return{ruleModule:n,pageMethodMap:e}},c2=A.defineComponent({__name:"Footer",setup(n){const e=It(),t=A.computed(()=>({marginLeft:e.schema.labelWidth+"px"}));return(i,u)=>{const I=A.resolveComponent("el-button");return A.unref(e).footer?(A.openBlock(),A.createElementBlock("div",{key:0,style:A.normalizeStyle(t.value)},[A.createVNode(I,{type:"primary",onClick:A.unref(e).submit,name:"submit-btn"},{default:A.withCtx(()=>u[1]||(u[1]=[A.createTextVNode("提交")])),_:1},8,["onClick"]),A.createVNode(I,{onClick:u[0]||(u[0]=()=>A.unref(e).resetFields()),name:"reset-btn"},{default:A.withCtx(()=>u[2]||(u[2]=[A.createTextVNode("重置")])),_:1})],4)):A.createCommentVNode("",!0)}}}),EC=n=>{let e=[];const t=["Table","DragList","Pagination","FilterSearch"];for(const i of n)t.includes(i.component)&&i.name&&!i.hidden&&e.push(i.name),i.children&&Array.isArray(i.children)&&(e=e.concat(EC(i.children)));return e},QC=n=>{var t;if(!(n!=null&&n.content))return[];let e=[];for(const i of n.content)i.type==="form"&&((t=i.schema)!=null&&t.items)&&(e=e.concat(EC(i.schema.items)));return e},IC=Symbol("RefManager"),g2=()=>{const n=new Map,e=new Map;function t(i){const u=i.sort().join(","),I=e.get(u);I&&I.resolve&&i.every(b=>n.has(b))&&(I.resolve(),I.resolve=null)}return{register:(i,u)=>{n.set(i,u);for(const[I]of e)t(I.split(","))},unregister:i=>{n.delete(i)},findRef:i=>n.get(i),waitForKeys:i=>{if(i.every(b=>n.has(b)))return Promise.resolve();const u=i.sort().join(",");if(e.has(u))return e.get(u).promise;let I=null;const o=new Promise(b=>{I=b});return e.set(u,{promise:o,resolve:I}),t(i),o}}},u2=()=>{const n=g2();return A.provide(IC,n),n},fC=()=>{const n=A.inject(IC);if(!n)throw new Error("RefManager not provided. Make sure to call provideRefManager first.");return n},fs=(n,e)=>{const t=fC();return t.register(n,e),()=>{t.unregister(n)}},d2=["id"],fn=A.defineComponent({__name:"index",props:A.mergeModels({schema:{},schemaContext:{},design:{type:Boolean},footer:{type:Boolean},pageRulePath:{}},{modelValue:{default:{}},modelModifiers:{},realValues:{default:{}},realValuesModifiers:{},schema:{default:A.reactive({labelWidth:150,labelPosition:"right",scrollToError:!0,size:"default",items:[]})},schemaModifiers:{}}),emits:A.mergeModels(["finish","failed","reset"],["update:modelValue","update:realValues","update:schema"]),setup(n,{expose:e,emit:t}){const i=n,u=A.inject("ruleMap",{}),I=A.inject("pageMethodMap",{}),o=A.computed(()=>i.schema.rulePath&&u[i.schema.rulePath]?i.schema.rulePath:i.pageRulePath);o.value&&A.provide("ruleModule",u[o.value]);const b=t,y=A.ref(),w=A.useModel(n,"modelValue"),M=A.useModel(n,"realValues"),N=(W,J,O)=>{O===void 0?w.value[W]=J:(M.value[W]=J,w.value[W]=O)},P=W=>w.value[W],Y=(W,J)=>{let O=m(K.value.items,W);O&&O.props&&(O.props.disabled=!J)},G=(W,J)=>{let O=m(K.value.items,W);O&&(O.hidden=!J)},K=A.useModel(n,"schema");if(K.value.onValuesChange){const W=A.ref(JSON.stringify(w.value));A.watch(()=>w.value,J=>{W.value=JSON.stringify(J)},{deep:!0}),A.watch(()=>W.value,(J,O)=>{const q=JSON.parse(J),k=JSON.parse(O),V=Object.keys(q).filter(H=>JSON.stringify(q[H])!==JSON.stringify(k[H]));if(!(!o.value||!K.value.onValuesChange))try{u[o.value][K.value.onValuesChange](I,V,k,q)}catch(H){console.error(H)}})}const D=A.reactive({}),E=A.ref({}),L=A.ref(!1),_=gi(),v=A.computed(()=>({...i.schemaContext,$values:w.value,$selectData:D,$locale:_.value})),B=fC();A.onMounted(async()=>{var O,q;if((O=i.schema)!=null&&O.initialValues){const k=(q=i.schema)==null?void 0:q.initialValues;C(k),w.value=ut.mergeWith(k,w.value,(V,H)=>{if(Array.isArray(V))return H})}await A.nextTick();const W=QC({content:[{type:"form",schema:K.value}]});if(await B.waitForKeys(W),!K.value||!K.value.onMounted||!o.value)return;const J=K.value.onMounted;try{u[o.value][J](I)}catch(k){console.error(k)}}),A.onActivated(()=>{if(!K.value||!K.value.onActivated||!o.value)return;const W=K.value.onActivated;try{u[o.value][W](I)}catch(J){console.error(J)}});const p=()=>{var W;return(W=y.value)==null?void 0:W.validate()},d=W=>{const J=["Input","InputNumber","Select","DatePicker","TextArea","SearchInput","SearchSelect","Radio","SelectInput","Upload"],O=q=>{q.forEach(k=>{J.includes(k.component)?k.props&&(k.props.disabled=W):k.children&&O(k.children)})};O(K.value.items)},l=()=>{var W;(W=p())==null||W.then(()=>{b("finish",w.value)}).catch(J=>{b("failed",J)})},g=W=>{if(b("reset"),W){let J=ut.cloneDeep(w.value);W.forEach(O=>{J=ko(J,O,ma(E.value,O))}),w.value=J}else w.value=ut.cloneDeep(A.toRaw(E.value))},s=(W,J=!0)=>{J?Object.assign(w.value,W):w.value=W},h=(W,J)=>{D[W]=J},C=W=>{E.value={...W}},a=()=>E.value,r=W=>{L.value=W},m=(W,J)=>{for(const O of W){if(O.name===J)return O;if(O.children&&O.children.length>0){const q=m(O.children,J);if(q)return q}}return null},Q=W=>{const J=m(K.value.items,W);!J||J.component!=="Select"||(J.props&&J.props.mode==="static"&&(Array.isArray(J.props.options)&&J.props.options.findIndex(q=>{var k;return q[((k=J.props)==null?void 0:k.valueKey)||"value"]===w.value[W]})!==-1||(w.value[W]=J.props.options[0][J.props.valueKey||"value"])),J.props&&(J.props.refreshFlag=!0))},x=W=>{var q;const J=W.target;if(Array.from(((q=J.parentElement)==null?void 0:q.classList)||[]).includes("is-focus")&&K.value.onEnter&&o.value)try{u[o.value][K.value.onEnter](I)}catch(k){console.error(k)}},S=W=>{var J;(J=y.value)==null||J.clearValidate(W)},T=W=>{K.value.hidden=W},$=A.useTemplateRef("rootRef"),eA=A.reactive({...A.toRefs(i),formValues:w,formRealValues:M,selectData:D,initialValues:E,context:v,vCodePass:L,updateFormValues:s,updateSelectData:h,updateInitialValues:C,getInitialValues:a,updateVCodePass:r,validate:p,resetFields:g,submit:l,setDisabled:d,findItemByName:m,setFieldEditSts:Y,setFieldVisibleSts:G,setFieldValue:N,getFieldValue:P,refreshDynamicListBox:Q,setHidden:T,clearValidate:S,rootRef:$,type:"form"});return A.provide(Sd,eA),e(eA),(W,J)=>{const O=A.resolveComponent("el-form");return A.openBlock(),A.createElementBlock("div",{ref_key:"rootRef",ref:$,id:K.value.key},[K.value.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(O,A.mergeProps({key:0,model:w.value,"label-position":K.value.labelPosition,size:K.value.size,"hide-required-asterisk":K.value.hideRequiredAsterisk,"scroll-to-error":K.value.scrollToError,"scroll-into-view-options":{behavior:"smooth",block:"center"},"require-asterisk-position":"right",ref_key:"formRef",ref:y},W.$attrs,{onSubmit:J[0]||(J[0]=A.withModifiers(()=>{},["prevent"])),onKeyup:A.withKeys(x,["enter"])}),{default:A.withCtx(()=>[A.renderSlot(W.$slots,"default"),A.createVNode(A.unref(mt),{list:K.value.items},null,8,["list"]),A.createVNode(c2)]),_:3},16,["model","label-position","size","hide-required-asterisk","scroll-to-error"]))],8,d2)}}}),h2=({elements:n,lang:e,omits:t})=>{const i=o=>Object.values(n).filter(b=>b.type===o&&!t.includes(b.component)).sort((b,y)=>b.order-y.order).map(b=>({...b,title:e==="zh"?b.title:b.component})),u=Fd[e];return[{title:u.menus.basicTitle,children:i("basic")},{title:u.menus.highTitle,children:i("high")},{title:u.menus.layoutTitle,children:i("layout")},{title:u.menus.assistTitle,children:i("assist")}]},p2=A.defineComponent({__name:"index",setup(n){var M;const e=A.ref(!1),t=Sn(),i=zo(),u=gi(),I=nc(),o=(M=t.templates)!=null&&M.length?t.templates:PE,b=A.computed(()=>h2({elements:i,omits:t.omitMenus||[],lang:I.value})),y=N=>{t.updateSchema(N)},w=N=>{const P={component:N.component,designKey:`design-${xi(4)}`,name:`form-${xi(4)}`};return N.type==="layout"&&(P.children=[]),P};return(N,P)=>{const Y=A.resolveComponent("el-button"),G=A.resolveComponent("el-space"),K=A.resolveComponent("el-drawer");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("form-design-left")),style:A.normalizeStyle({overflow:e.value?"hidden":"auto"})},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("template"))},[A.createVNode(Y,{class:A.normalizeClass(A.unref(je)("template-button")),size:"small",onClick:P[0]||(P[0]=D=>e.value=!0)},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(A.unref(u).menus.useTemplateBtn),1)]),_:1},8,["class"]),A.createVNode(K,{modelValue:e.value,"onUpdate:modelValue":P[1]||(P[1]=D=>e.value=D),title:"模板列表",size:"70%",class:A.normalizeClass(A.unref(je)("template-drawer")),"append-to-body":!1},{default:A.withCtx(()=>[A.createVNode(G,{wrap:"",direction:"vertical",alignment:"start"},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(A.unref(o),({name:D,schema:E})=>(A.openBlock(),A.createBlock(Y,{key:D,onClick:L=>y(E)},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(D),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","class"])],2),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.value,({title:D,children:E})=>(A.openBlock(),A.createElementBlock("div",{key:D,class:A.normalizeClass(A.unref(je)("menu"))},[A.createElementVNode("h4",{class:A.normalizeClass(A.unref(je)("menu-title"))},A.toDisplayString(D),3),A.createVNode(A.unref(kp),{class:A.normalizeClass(A.unref(je)("menu-list")),list:E,group:{name:"formDesign",pull:"clone",put:!1},sort:!1,"ghost-class":A.unref(je)("menu-list-ghost"),"drag-class":A.unref(je)("menu-list-drag"),"fallback-class":A.unref(je)("menu-list-fallback"),"item-key":"designKey",clone:w},{item:A.withCtx(({element:L})=>[A.createElementVNode("li",{class:A.normalizeClass(A.unref(je)("menu-list-item"))},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("menu-list-item-ico"))},[(A.openBlock(),A.createBlock(A.resolveDynamicComponent(L.icon),{class:"ico-content"}))],2),A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("menu-list-item-name")),style:A.normalizeStyle({fontSize:A.unref(I)==="zh"?"12px":"10px"})},A.toDisplayString(L.title),7)],2)]),_:2},1032,["class","list","ghost-class","drag-class","fallback-class"])],2))),128))],6)}}}),C2=n=>`<template>
108
+ onClick: ${u.beforeEnter}`)}};return(b,y)=>{const w=A.resolveComponent("el-popover");return A.openBlock(),A.createBlock(w,{trigger:u.trigger||"hover",width:u.width,"popper-class":u.noPadding?"no-padding":"",title:u.title,placement:u.placement,onBeforeEnter:o,"popper-style":{overflow:"auto"}},{reference:A.withCtx(()=>{var M,N,P,Y,G;return[A.createElementVNode("div",{style:A.normalizeStyle(u.ostyle+(i.value?u.hoverStyle:"")),onMouseenter:y[0]||(y[0]=K=>i.value=!0),onMouseleave:y[1]||(y[1]=K=>i.value=!1)},[((M=u.reference)==null?void 0:M.component)==="Icon"?(A.openBlock(),A.createBlock(xe,{key:0,name:(P=(N=u.reference)==null?void 0:N.props)==null?void 0:P.name,color:i.value&&u.hoverColor?u.hoverColor:(G=(Y=u.reference)==null?void 0:Y.props)==null?void 0:G.color,class:"btn-icon cursor-pointer",size:u.size||"normal",onClick:I},null,8,["name","color","size"])):u.reference?(A.openBlock(),A.createBlock(A.unref(pt),{key:1,list:[u.reference]},null,8,["list"])):A.createCommentVNode("",!0)],36)]}),default:A.withCtx(()=>[A.createElementVNode("div",null,[b.children?(A.openBlock(),A.createBlock(A.unref(pt),{key:0,list:b.children},null,8,["list"])):A.createCommentVNode("",!0)])]),_:1},8,["trigger","width","popper-class","title","placement"])}}}),[["__scopeId","data-v-a2ca82fe"]]),j_={title:"气泡框",component:"Popover",render:mC,icon:A.h(Ie,{name:"password"}),type:"layout",order:9},q_=["innerHTML"],X_=A.defineComponent({__name:"HtmlRender",props:{data:{}},setup(n){return(e,t)=>(A.openBlock(),A.createElementBlock("div",{innerHTML:e.data,class:"html-render"},null,8,q_))}}),V_={title:"HTML",component:"HtmlRender",icon:A.h(Ie,{name:"button"}),type:"assist",order:19,render:X_},A2={title:"分页",component:"Pagination",icon:A.h(Ie,{name:"library"}),type:"assist",order:10,render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>G8))},e2=ie(A.defineComponent({__name:"Menu",props:{mode:{default:"horizontal"},data:{default:()=>[]},onClickMenu:{},defaultActive:{default:""},refresh:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=A.ref(null),u=n,I=A.ref(!0),o=b=>{e&&e[u.onClickMenu||"onClickMenu"](t,b)};return A.watch(()=>u.data,()=>{I.value=!1,A.nextTick(()=>{I.value=!0})}),A.watch(()=>u.defaultActive,()=>{i.value.updateActiveIndex(u.defaultActive)}),(b,y)=>{var N;const w=A.resolveComponent("el-menu-item"),M=A.resolveComponent("el-menu");return((N=b.data)==null?void 0:N.length)>0&&I.value?(A.openBlock(),A.createBlock(M,{key:0,ref_key:"menuRef",ref:i,"popper-class":"sui-menu-popper",mode:b.mode,class:"sui-menu","default-active":b.defaultActive},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data,P=>(A.openBlock(),A.createBlock(w,{onClick:Y=>o(P),key:P.id,index:P.id},{default:A.withCtx(()=>[P.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:P.icon.name,size:"x-small",class:"sui-menu-icon"},null,8,["name"])):A.createCommentVNode("",!0),A.createElementVNode("span",null,A.toDisplayString(P.name),1)]),_:2},1032,["onClick","index"]))),128))]),_:1},8,["mode","default-active"])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-ad592696"]]),t2={title:"Menu",component:"Menu",icon:A.h(Ie,{name:"button"}),type:"assist",order:19,render:e2},n2={title:"筛选搜索",component:"FilterSearch",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>U8)),icon:A.h(Ie,{name:"card"}),type:"layout",order:10},i2={title:"无限滚动",component:"InfiniteScroll",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>sS)),icon:A.h(Ie,{name:"card"}),type:"layout",order:10,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"}]}},o2={title:"文字提示",component:"Tooltip",render:A.defineComponent({__name:"Component",props:{children:{},content:{}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-tooltip");return A.openBlock(),A.createBlock(i,A.mergeProps(e.$attrs,{content:e.content}),{default:A.withCtx(()=>[A.createElementVNode("div",null,[A.createVNode(A.unref(pt),{list:e.children},null,8,["list"])])]),_:1},16,["content"])}}}),icon:A.h(Ie,{name:"card"}),type:"layout",order:9,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"}]}},r2={title:"进度条",component:"NormalProgress",render:ie(A.defineComponent({__name:"NormalProgress",props:{percentage:{},width:{}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-progress");return A.openBlock(),A.createElementBlock("div",{class:"normal-progress",style:A.normalizeStyle({width:e.width})},[A.createVNode(i,A.mergeProps(e.$attrs,{percentage:e.percentage}),null,16,["percentage"])],4)}}}),[["__scopeId","data-v-2257060b"]]),icon:A.h(Ie,{name:"card"}),type:"assist",order:10},a2=ie(A.defineComponent({__name:"IconInForm",props:{iconName:{},color:{},size:{}},setup(n){return(e,t)=>(A.openBlock(),A.createBlock(xe,{name:e.iconName,color:e.color,size:e.size,class:"icon-in-form"},null,8,["name","color","size"]))}}),[["__scopeId","data-v-acc35cea"]]),s2={title:"字体图标",component:"IconInForm",icon:A.h(Ie,{name:"icon"}),type:"assist",order:9,render:a2},l2=Object.freeze(Object.defineProperty({__proto__:null,Alert:w0,Button:Fb,Card:b0,CardList:ry,Cascader:D0,Checkbox:M0,Collapse:Bb,ColorInput:F0,ColorPicker:S0,CurdCard:Hb,Custom:L0,DatePicker:P0,Divider:K0,DragList:cy,Esign:U0,FilterSearch:n2,FormList:z0,Grid:J0,HtmlRender:V_,IconInForm:s2,InfiniteScroll:i2,Inline:Z0,Input:p0,InputNumber:j0,JsonEdit:k0,LogList:ly,Menu:t2,NormalProgress:r2,ObjGroup:Eb,OfferDetails:ay,OrderProgress:sy,Pagination:A2,Password:V0,Popover:j_,Radio:O0,Rate:nb,SearchInput:_b,SearchSelect:xb,Select:eb,SelectInput:ob,Slider:rb,Switch:sb,Table:Pb,Tabs:mb,Tag:lb,Text:gb,TextArea:B0,Title:ub,Tooltip:o2,Transfer:Db,Tree:Lb,Upload:hb,VerifyCode:Cb,Wrapper:Kb},Symbol.toStringTag,{value:"Module"})),zo=()=>{const n=A.inject(jn),e={...l2};return n!=null&&n.extendElements&&Object.assign(e,n.extendElements),e},Sn=()=>A.inject(Nd),ei=()=>{const n=A.inject("ruleModule",void 0),e=A.inject("pageMethodMap",{});return{ruleModule:n,pageMethodMap:e}},c2=A.defineComponent({__name:"Footer",setup(n){const e=It(),t=A.computed(()=>({marginLeft:e.schema.labelWidth+"px"}));return(i,u)=>{const I=A.resolveComponent("el-button");return A.unref(e).footer?(A.openBlock(),A.createElementBlock("div",{key:0,style:A.normalizeStyle(t.value)},[A.createVNode(I,{type:"primary",onClick:A.unref(e).submit,name:"submit-btn"},{default:A.withCtx(()=>u[1]||(u[1]=[A.createTextVNode("提交")])),_:1},8,["onClick"]),A.createVNode(I,{onClick:u[0]||(u[0]=()=>A.unref(e).resetFields()),name:"reset-btn"},{default:A.withCtx(()=>u[2]||(u[2]=[A.createTextVNode("重置")])),_:1})],4)):A.createCommentVNode("",!0)}}}),EC=n=>{let e=[];const t=["Table","DragList","Pagination","FilterSearch"];for(const i of n)t.includes(i.component)&&i.name&&!i.hidden&&e.push(i.name),i.children&&Array.isArray(i.children)&&(e=e.concat(EC(i.children)));return e},QC=n=>{var t;if(!(n!=null&&n.content))return[];let e=[];for(const i of n.content)i.type==="form"&&((t=i.schema)!=null&&t.items)&&(e=e.concat(EC(i.schema.items)));return e},IC=Symbol("RefManager"),g2=()=>{const n=new Map,e=new Map;function t(i){const u=i.sort().join(","),I=e.get(u);I&&I.resolve&&i.every(b=>n.has(b))&&(I.resolve(),I.resolve=null)}return{register:(i,u)=>{n.set(i,u);for(const[I]of e)t(I.split(","))},unregister:i=>{n.delete(i)},findRef:i=>n.get(i),waitForKeys:i=>{if(i.every(b=>n.has(b)))return Promise.resolve();const u=i.sort().join(",");if(e.has(u))return e.get(u).promise;let I=null;const o=new Promise(b=>{I=b});return e.set(u,{promise:o,resolve:I}),t(i),o}}},u2=()=>{const n=g2();return A.provide(IC,n),n},fC=()=>{const n=A.inject(IC);if(!n)throw new Error("RefManager not provided. Make sure to call provideRefManager first.");return n},fs=(n,e)=>{const t=fC();return t.register(n,e),()=>{t.unregister(n)}},d2=["id"],fn=A.defineComponent({__name:"index",props:A.mergeModels({schema:{},schemaContext:{},design:{type:Boolean},footer:{type:Boolean},pageRulePath:{}},{modelValue:{default:{}},modelModifiers:{},realValues:{default:{}},realValuesModifiers:{},schema:{default:A.reactive({labelWidth:150,labelPosition:"right",scrollToError:!0,size:"default",items:[]})},schemaModifiers:{}}),emits:A.mergeModels(["finish","failed","reset"],["update:modelValue","update:realValues","update:schema"]),setup(n,{expose:e,emit:t}){const i=n,u=A.inject("ruleMap",{}),I=A.inject("pageMethodMap",{}),o=A.computed(()=>i.schema.rulePath&&u[i.schema.rulePath]?i.schema.rulePath:i.pageRulePath);o.value&&A.provide("ruleModule",u[o.value]);const b=t,y=A.ref(),w=A.useModel(n,"modelValue"),M=A.useModel(n,"realValues"),N=(W,J,O)=>{O===void 0?w.value[W]=J:(M.value[W]=J,w.value[W]=O)},P=W=>w.value[W],Y=(W,J)=>{let O=m(K.value.items,W);O&&O.props&&(O.props.disabled=!J)},G=(W,J)=>{let O=m(K.value.items,W);O&&(O.hidden=!J)},K=A.useModel(n,"schema");if(K.value.onValuesChange){const W=A.ref(JSON.stringify(w.value));A.watch(()=>w.value,J=>{W.value=JSON.stringify(J)},{deep:!0}),A.watch(()=>W.value,(J,O)=>{const q=JSON.parse(J),k=JSON.parse(O),V=Object.keys(q).filter(H=>JSON.stringify(q[H])!==JSON.stringify(k[H]));if(!(!o.value||!K.value.onValuesChange))try{u[o.value][K.value.onValuesChange](I,V,k,q)}catch(H){console.error(H)}})}const D=A.reactive({}),E=A.ref({}),L=A.ref(!1),_=gi(),v=A.computed(()=>({...i.schemaContext,$values:w.value,$selectData:D,$locale:_.value})),B=fC();A.onMounted(async()=>{var O,q;if((O=i.schema)!=null&&O.initialValues){const k=(q=i.schema)==null?void 0:q.initialValues;C(k),w.value=ut.mergeWith(k,w.value,(V,H)=>{if(Array.isArray(V))return H})}await A.nextTick();const W=QC({content:[{type:"form",schema:K.value}]});if(await B.waitForKeys(W),!K.value||!K.value.onMounted||!o.value)return;const J=K.value.onMounted;try{u[o.value][J](I)}catch(k){console.error(k)}}),A.onActivated(()=>{if(!K.value||!K.value.onActivated||!o.value)return;const W=K.value.onActivated;try{u[o.value][W](I)}catch(J){console.error(J)}});const p=()=>{var W;return(W=y.value)==null?void 0:W.validate()},d=W=>{const J=["Input","InputNumber","Select","DatePicker","TextArea","SearchInput","SearchSelect","Radio","SelectInput","Upload"],O=q=>{q.forEach(k=>{J.includes(k.component)?k.props&&(k.props.disabled=W):k.children&&O(k.children)})};O(K.value.items)},l=()=>{var W;(W=p())==null||W.then(()=>{b("finish",w.value)}).catch(J=>{b("failed",J)})},g=W=>{if(b("reset"),W){let J=ut.cloneDeep(w.value);W.forEach(O=>{J=ko(J,O,ma(E.value,O))}),w.value=J}else w.value=ut.cloneDeep(A.toRaw(E.value))},s=(W,J=!0)=>{J?Object.assign(w.value,W):w.value=W},h=(W,J)=>{D[W]=J},C=W=>{E.value={...W}},a=()=>E.value,r=W=>{L.value=W},m=(W,J)=>{for(const O of W){if(O.name===J)return O;if(O.children&&O.children.length>0){const q=m(O.children,J);if(q)return q}}return null},Q=W=>{const J=m(K.value.items,W);!J||J.component!=="Select"||(J.props&&J.props.mode==="static"&&(Array.isArray(J.props.options)&&J.props.options.findIndex(q=>{var k;return q[((k=J.props)==null?void 0:k.valueKey)||"value"]===w.value[W]})!==-1||(w.value[W]=J.props.options[0][J.props.valueKey||"value"])),J.props&&(J.props.refreshFlag=!0))},x=W=>{var q;const J=W.target;if(Array.from(((q=J.parentElement)==null?void 0:q.classList)||[]).includes("is-focus")&&K.value.onEnter&&o.value)try{u[o.value][K.value.onEnter](I)}catch(k){console.error(k)}},S=W=>{var J;(J=y.value)==null||J.clearValidate(W)},T=W=>{K.value.hidden=W},$=A.useTemplateRef("rootRef"),eA=A.reactive({...A.toRefs(i),formValues:w,formRealValues:M,selectData:D,initialValues:E,context:v,vCodePass:L,updateFormValues:s,updateSelectData:h,updateInitialValues:C,getInitialValues:a,updateVCodePass:r,validate:p,resetFields:g,submit:l,setDisabled:d,findItemByName:m,setFieldEditSts:Y,setFieldVisibleSts:G,setFieldValue:N,getFieldValue:P,refreshDynamicListBox:Q,setHidden:T,clearValidate:S,rootRef:$,type:"form"});return A.provide(Sd,eA),e(eA),(W,J)=>{const O=A.resolveComponent("el-form");return A.openBlock(),A.createElementBlock("div",{ref_key:"rootRef",ref:$,id:K.value.key},[K.value.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(O,A.mergeProps({key:0,model:w.value,"label-position":K.value.labelPosition,size:K.value.size,"hide-required-asterisk":K.value.hideRequiredAsterisk,"scroll-to-error":K.value.scrollToError,"scroll-into-view-options":{behavior:"smooth",block:"center"},"require-asterisk-position":"right",ref_key:"formRef",ref:y},W.$attrs,{onSubmit:J[0]||(J[0]=A.withModifiers(()=>{},["prevent"])),onKeyup:A.withKeys(x,["enter"])}),{default:A.withCtx(()=>[A.renderSlot(W.$slots,"default"),A.createVNode(A.unref(pt),{list:K.value.items},null,8,["list"]),A.createVNode(c2)]),_:3},16,["model","label-position","size","hide-required-asterisk","scroll-to-error"]))],8,d2)}}}),h2=({elements:n,lang:e,omits:t})=>{const i=o=>Object.values(n).filter(b=>b.type===o&&!t.includes(b.component)).sort((b,y)=>b.order-y.order).map(b=>({...b,title:e==="zh"?b.title:b.component})),u=Fd[e];return[{title:u.menus.basicTitle,children:i("basic")},{title:u.menus.highTitle,children:i("high")},{title:u.menus.layoutTitle,children:i("layout")},{title:u.menus.assistTitle,children:i("assist")}]},p2=A.defineComponent({__name:"index",setup(n){var M;const e=A.ref(!1),t=Sn(),i=zo(),u=gi(),I=nc(),o=(M=t.templates)!=null&&M.length?t.templates:PE,b=A.computed(()=>h2({elements:i,omits:t.omitMenus||[],lang:I.value})),y=N=>{t.updateSchema(N)},w=N=>{const P={component:N.component,designKey:`design-${xi(4)}`,name:`form-${xi(4)}`};return N.type==="layout"&&(P.children=[]),P};return(N,P)=>{const Y=A.resolveComponent("el-button"),G=A.resolveComponent("el-space"),K=A.resolveComponent("el-drawer");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("form-design-left")),style:A.normalizeStyle({overflow:e.value?"hidden":"auto"})},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("template"))},[A.createVNode(Y,{class:A.normalizeClass(A.unref(je)("template-button")),size:"small",onClick:P[0]||(P[0]=D=>e.value=!0)},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(A.unref(u).menus.useTemplateBtn),1)]),_:1},8,["class"]),A.createVNode(K,{modelValue:e.value,"onUpdate:modelValue":P[1]||(P[1]=D=>e.value=D),title:"模板列表",size:"70%",class:A.normalizeClass(A.unref(je)("template-drawer")),"append-to-body":!1},{default:A.withCtx(()=>[A.createVNode(G,{wrap:"",direction:"vertical",alignment:"start"},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(A.unref(o),({name:D,schema:E})=>(A.openBlock(),A.createBlock(Y,{key:D,onClick:L=>y(E)},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(D),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","class"])],2),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.value,({title:D,children:E})=>(A.openBlock(),A.createElementBlock("div",{key:D,class:A.normalizeClass(A.unref(je)("menu"))},[A.createElementVNode("h4",{class:A.normalizeClass(A.unref(je)("menu-title"))},A.toDisplayString(D),3),A.createVNode(A.unref(kp),{class:A.normalizeClass(A.unref(je)("menu-list")),list:E,group:{name:"formDesign",pull:"clone",put:!1},sort:!1,"ghost-class":A.unref(je)("menu-list-ghost"),"drag-class":A.unref(je)("menu-list-drag"),"fallback-class":A.unref(je)("menu-list-fallback"),"item-key":"designKey",clone:w},{item:A.withCtx(({element:L})=>[A.createElementVNode("li",{class:A.normalizeClass(A.unref(je)("menu-list-item"))},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("menu-list-item-ico"))},[(A.openBlock(),A.createBlock(A.resolveDynamicComponent(L.icon),{class:"ico-content"}))],2),A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("menu-list-item-name")),style:A.normalizeStyle({fontSize:A.unref(I)==="zh"?"12px":"10px"})},A.toDisplayString(L.title),7)],2)]),_:2},1032,["class","list","ghost-class","drag-class","fallback-class"])],2))),128))],6)}}}),C2=n=>`<template>
109
109
  <FormRender v-model="formValues" :schema="schema" ref="formRef" />
110
110
  <el-button @click="handleSubmit">提交</el-button>
111
111
  </template>
@@ -189,7 +189,7 @@ const handleSubmit = async () => {
189
189
  ]
190
190
  }`,E2=n=>`import type { FormSchema } from "asiaint-lowcode";
191
191
 
192
- export default ${JSON.stringify(n,null,2)} satisfies FormSchema`,Q2=n=>`export default ${JSON.stringify(n,null,2)}`,I2=A.defineComponent({__name:"JsonSchema",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){var w;const e=Sn(),t=gi(),u=(w=zo().JsonEdit)==null?void 0:w.render,I=A.computed({get(){return e.schema},set(M){M.items&&e.updateSchema(M)}}),o=A.ref({}),b=A.useModel(n,"modelValue"),y=M=>{e.updateSchema({...e.schema,items:Pd(e.schema.items)}),M.repair()};return(M,N)=>{const P=A.resolveComponent("el-tab-pane"),Y=A.resolveComponent("el-tabs"),G=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(G,{modelValue:b.value,"onUpdate:modelValue":N[1]||(N[1]=K=>b.value=K),title:A.unref(t).actions.previewJson,width:"70%",center:"","destroy-on-close":"",top:"10vh",onClose:N[2]||(N[2]=K=>o.value={})},{default:A.withCtx(()=>[A.createVNode(Y,{"model-value":"edit",class:"demo-tabs"},{default:A.withCtx(()=>[A.createVNode(P,{label:"在线编辑",name:"edit"},{default:A.withCtx(()=>[A.createVNode(A.unref(u),{modelValue:I.value,"onUpdate:modelValue":N[0]||(N[0]=K=>I.value=K),style:{height:"70vh"},onBlur:y},null,8,["modelValue"])]),_:1}),A.createVNode(P,{label:"生成ts文件",name:"ts"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},language:"ts",code:A.unref(E2)(I.value)},null,8,["code"])]),_:1}),A.createVNode(P,{label:"生成js文件",name:"js"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},language:"js",code:A.unref(Q2)(I.value)},null,8,["code"])]),_:1}),A.createVNode(P,{label:"帮助",name:"help"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},language:"json",code:A.unref(m2)},null,8,["code"])]),_:1})]),_:1})]),_:1},8,["modelValue","title"])}}}),f2=A.defineComponent({__name:"VueCode",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Sn(),t=gi(),i=A.useModel(n,"modelValue");return(u,I)=>{const o=A.resolveComponent("el-tab-pane"),b=A.resolveComponent("el-tabs"),y=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(y,{modelValue:i.value,"onUpdate:modelValue":I[0]||(I[0]=w=>i.value=w),title:A.unref(t).actions.previewVueCode,width:"70%",center:"","destroy-on-close":"",top:"10vh"},{default:A.withCtx(()=>[A.createVNode(b,{"model-value":"ts",class:"demo-tabs"},{default:A.withCtx(()=>[A.createVNode(o,{label:"Typescript",name:"ts"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},code:A.unref(C2)(A.unref(e).schema),language:"vue"},null,8,["code"])]),_:1}),A.createVNode(o,{label:"Javascript",name:"js"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},code:A.unref(B2)(A.unref(e).schema),language:"vue"},null,8,["code"])]),_:1})]),_:1})]),_:1},8,["modelValue","title"])}}}),w2=ie(A.defineComponent({__name:"Preview",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Sn(),{JsonEdit:t}=zo(),i=A.ref("edit"),u=A.ref(),I=A.ref({}),o=A.useModel(n,"modelValue"),b=A.computed(()=>{var w;return(w=u.value)==null?void 0:w.context}),y=gi();return(w,M)=>{const N=A.resolveComponent("el-tab-pane"),P=A.resolveComponent("el-tabs"),Y=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(Y,{modelValue:o.value,"onUpdate:modelValue":M[4]||(M[4]=G=>o.value=G),title:A.unref(y).actions.previewForm,width:"70%",center:"","destroy-on-close":"",top:"10vh",onClose:M[5]||(M[5]=G=>I.value={})},{default:A.withCtx(()=>[A.createVNode(P,{modelValue:i.value,"onUpdate:modelValue":M[3]||(M[3]=G=>i.value=G)},{default:A.withCtx(()=>[A.createVNode(N,{label:"编辑模式",name:"edit"},{default:A.withCtx(()=>[A.createVNode(A.unref(fn),{modelValue:I.value,"onUpdate:modelValue":M[0]||(M[0]=G=>I.value=G),schema:A.unref(e).schema,ref_key:"formRef",ref:u,schemaContext:A.unref(e).schemaContext,style:{minHeight:"200px",padding:"20px"}},null,8,["modelValue","schema","schemaContext"])]),_:1}),A.createVNode(N,{label:"阅读模式",name:"read",lazy:""},{default:A.withCtx(()=>[A.createVNode(A.unref(fn),{modelValue:I.value,"onUpdate:modelValue":M[1]||(M[1]=G=>I.value=G),schema:{...A.unref(e).schema},schemaContext:A.unref(e).schemaContext,style:{minHeight:"200px",padding:"20px"},read:""},null,8,["modelValue","schema","schemaContext"])]),_:1}),A.createVNode(N,{label:"联动变量",name:"context"},{default:A.withCtx(()=>[M[6]||(M[6]=A.createElementVNode("p",null,"实时预览的联动变量,在JsonSchema中可以通过双大括号模版语法使用,用于触发各种联动",-1)),(A.openBlock(),A.createBlock(A.unref(t).render,{modelValue:b.value,"onUpdate:modelValue":M[2]||(M[2]=G=>b.value=G),style:{height:"60vh"},key:i.value},null,8,["modelValue"]))]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue","title"])}}}),[["__scopeId","data-v-a9d66bb1"]]),b2=A.defineComponent({__name:"ChangeLang",setup(n){const e=A.inject("asiaint-lang");return(t,i)=>{const u=A.resolveComponent("el-option"),I=A.resolveComponent("el-select");return A.openBlock(),A.createBlock(I,{modelValue:A.unref(e),"onUpdate:modelValue":i[0]||(i[0]=o=>A.isRef(e)?e.value=o:null),size:"small"},{default:A.withCtx(()=>[A.createVNode(u,{label:"中文",value:"zh"}),A.createVNode(u,{label:"English",value:"en"})]),_:1},8,["modelValue"])}}}),y2=A.defineComponent({__name:"index",setup(n){const e=Sn(),t=gi(),i=A.ref(!1),u=A.ref(!1),I=A.ref(!1),o=A.computed(()=>[{label:t.value.actions.previewJson,btnType:"primary",icon:"script",onClick:()=>{i.value=!0}},{label:t.value.actions.previewVueCode,btnType:"default",icon:"vue",onClick:()=>{u.value=!0}},{label:t.value.actions.previewForm,btnType:"default",icon:"eye",onClick:()=>{I.value=!0}}]),b=A.computed(()=>[{label:t.value.actions.clear,btnType:"danger",icon:"trash",onClick:async()=>{await Ht.ElMessageBox.confirm("确认清空当前设计吗?"),e.updateSchema({...e.schema,items:[]})}},{label:t.value.actions.save,icon:"save",btnType:"primary",onClick:()=>{e.handleEmit("save"),e.handleEmit("onSave")}}]);return(y,w)=>{const M=A.resolveComponent("el-button");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("actions"))},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("actions-left"))},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(o.value,N=>(A.openBlock(),A.createBlock(M,{key:N.label,type:N.btnType,size:"small",onClick:N.onClick},A.createSlots({default:A.withCtx(()=>[A.createTextVNode(" "+A.toDisplayString(N.label),1)]),_:2},[N.icon?{name:"icon",fn:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:N.icon},null,8,["name"])]),key:"0"}:void 0]),1032,["type","onClick"]))),128)),A.createVNode(b2,{class:A.normalizeClass(A.unref(je)("actions-left-lang"))},null,8,["class"])],2),A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("actions-right"))},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.value,({label:N,btnType:P,icon:Y,onClick:G})=>(A.openBlock(),A.createBlock(M,{key:N,type:P,size:"small",onClick:G},A.createSlots({default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(N),1)]),_:2},[Y?{name:"icon",fn:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:Y},null,8,["name"])]),key:"0"}:void 0]),1032,["type","onClick"]))),128))],2),A.createVNode(I2,{modelValue:i.value,"onUpdate:modelValue":w[0]||(w[0]=N=>i.value=N)},null,8,["modelValue"]),A.createVNode(f2,{modelValue:u.value,"onUpdate:modelValue":w[1]||(w[1]=N=>u.value=N)},null,8,["modelValue"]),A.createVNode(w2,{modelValue:I.value,"onUpdate:modelValue":w[2]||(w[2]=N=>I.value=N),"schema-context":A.unref(e).schemaContext},null,8,["modelValue","schema-context"])],2)}}}),D2=A.defineComponent({__name:"index",setup(n){const e=Sn();return(t,i)=>(A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("form-design-center"))},[A.createVNode(y2),A.createVNode(A.unref(fn),{class:A.normalizeClass(A.unref(je)("canvas")),schema:A.unref(e).schema,"onUpdate:schema":i[0]||(i[0]=u=>A.unref(e).schema=u),design:""},null,8,["class","schema"])],2))}}),v2=()=>({labelWidth:100,labelPosition:"top",items:[{hideLabel:!0,name:"change",component:"FormList",children:[{label:"目标字段",name:"target",component:"Input",help:"如果是自增组件内部联动,直接输入子组件的name。如果是外部联动自增组件,就是formlist.*.key"},{label:"触发条件",name:"condition",component:"Input",help:"必须输入一个模板表达式,当表达式结果为true时才触发联动。如果不设置,默认会一直触发"},{label:"值",name:"value",component:"Input",help:"支持模板表达式"}],props:{mode:"card",title:"联动字段"}}]}),k2=A.defineComponent({__name:"Change",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Sn(),t=A.useModel(n,"modelValue");return(i,u)=>{const I=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(I,{"destroy-on-close":"",modelValue:t.value,"onUpdate:modelValue":u[1]||(u[1]=o=>t.value=o),top:"3vh",title:"值联动"},{default:A.withCtx(()=>[A.createVNode(A.unref(fn),{modelValue:A.unref(e).current,"onUpdate:modelValue":u[0]||(u[0]=o=>A.unref(e).current=o),schema:A.unref(v2)()},null,8,["modelValue","schema"])]),_:1},8,["modelValue"])}}}),_2={labelWidth:100,labelPosition:"top",items:[{label:"手动配置",component:"JsonEdit",designKey:"design-A2bj",name:".",props:{style:{height:"70vh"}}}]},M2={class:"config-linkages"},x2=ie(A.defineComponent({__name:"Config",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Sn(),t=A.useModel(n,"modelValue");return A.ref({}),(i,u)=>{var o;const I=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(I,{"destroy-on-close":"",modelValue:t.value,"onUpdate:modelValue":u[1]||(u[1]=b=>t.value=b),top:"3vh",title:`${(o=A.unref(e).current)==null?void 0:o.label} - 配置级联动`,width:"70vw",center:""},{default:A.withCtx(()=>[A.createElementVNode("div",M2,[A.createVNode(A.unref(fn),{modelValue:A.unref(e).current,"onUpdate:modelValue":u[0]||(u[0]=b=>A.unref(e).current=b),schema:A.unref(_2),class:"edit"},null,8,["modelValue","schema"])])]),_:1},8,["modelValue","title"])}}}),[["__scopeId","data-v-e4ab3ef4"]]),S2=A.defineComponent({__name:"index",setup(n){const e=gi(),t=A.ref(!1),i=A.ref(!1),u=A.computed(()=>[{title:e.value.attr.tab1.linkage.action1,onClick:()=>{t.value=!0}},{title:e.value.attr.tab1.linkage.action2,onClick:()=>{i.value=!0}}]);return(I,o)=>{const b=A.resolveComponent("el-divider"),y=A.resolveComponent("el-button");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("linkageConfig"))},[A.createVNode(b,null,{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(A.unref(e).attr.tab1.linkage.text),1)]),_:1}),A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("linkageConfig-btns"))},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.value,({title:w,onClick:M})=>(A.openBlock(),A.createBlock(y,{key:w,type:"primary",plain:"",size:"small",onClick:M},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(w),1)]),_:2},1032,["onClick"]))),128))],2),A.createVNode(x2,{modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=w=>t.value=w)},null,8,["modelValue"]),A.createVNode(k2,{modelValue:i.value,"onUpdate:modelValue":o[1]||(o[1]=w=>i.value=w)},null,8,["modelValue"])],2)}}}),N2={labelWidth:60,labelPosition:"right",size:"small",items:[{label:"class",component:"Input",props:{placeholder:""},designKey:"design-KUlI",name:"class"},{label:"宽度",component:"SelectInput",props:{selectPosition:"append",selectWidth:50,selectInitialValue:"%",placeholder:"100",options:[{label:"%",value:"%"},{label:"px",value:"px"},{label:"vw",value:"vw"},{label:"rem",value:"rem"}],clearable:!0},designKey:"design-Bvi4",name:"style.width"},{label:"高度",component:"SelectInput",props:{selectPosition:"append",selectWidth:50,selectInitialValue:"px",placeholder:"auto",options:[{label:"%",value:"%"},{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"rem",value:"rem"}],clearable:!0},designKey:"design-Bvi44",name:"style.height"}]},F2={labelWidth:60,labelPosition:"top",size:"small",items:[{label:"ID",component:"Input",props:{placeholder:""},designKey:"form-0vQJ",name:"id"},{label:"class",component:"Input",props:{placeholder:""},designKey:"design-KUlI",name:"class"},{label:"宽度",component:"SelectInput",props:{selectPosition:"append",selectWidth:50,selectInitialValue:"%",placeholder:"100",options:[{label:"%",value:"%"},{label:"px",value:"px"},{label:"vw",value:"vw"},{label:"rem",value:"rem"}],clearable:!0},designKey:"design-Bvi4",name:"style.width"},{label:"高度",component:"SelectInput",props:{selectPosition:"append",selectWidth:50,selectInitialValue:"px",placeholder:"auto",options:[{label:"%",value:"%"},{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"rem",value:"rem"}],clearable:!0},designKey:"design-Bvi44",name:"style.height"},{label:"背景色",component:"ColorInput",designKey:"form-YicU",name:"style.backgroundColor"},{label:"文字颜色",component:"ColorInput",designKey:"design-A2bj",name:"style.color"},{label:"缩放",component:"Slider",designKey:"design-A2sf",name:"style.transform",props:{min:50,max:150},initialValue:100,change:[{target:"style.transform",value:"{{ `scale(${$values.style.transform / 100 })` }}"}]},{children:[{label:"外间距",name:"margin",component:"TabsItem",children:[{props:{columns:2,columnGap:20,rowGap:20},component:"Grid",designKey:"design-QqeY",name:"form-3eBs",children:[{label:"上",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"design-F9CI",name:"style.marginTop"},{label:"下",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-XHJ7",name:"style.marginBottom"},{label:"左",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-Aeb5",name:"style.marginLeft"},{label:"右",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-g0Ss",name:"style.marginRight"}]}]},{label:"内间距",name:"padding",component:"TabsItem",children:[{props:{columns:2,columnGap:20,rowGap:20},component:"Grid",designKey:"design-QqeY",name:"form-3eBs",children:[{label:"上",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"design-F9CI",name:"style.paddingTop"},{label:"下",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-XHJ7",name:"style.paddingBottom"},{label:"左",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-Aeb5",name:"style.paddingLeft"},{label:"右",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-g0Ss",name:"style.paddingRight"}]}]}],props:{defaultKey:"margin",tabPosition:"top"},component:"Tabs",designKey:"design-WK8O",name:"form-e9YD"},{label:"自定义",component:"JsonEdit",designKey:"design-A2bj",name:"style"}]},R2={class:"more"},L2=A.defineComponent({__name:"index",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=A.useModel(n,"modelValue"),t=A.ref(!1);return(i,u)=>{const I=A.resolveComponent("el-divider"),o=A.resolveComponent("el-button"),b=A.resolveComponent("el-drawer");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("style-config"))},[A.createVNode(I,null,{default:A.withCtx(()=>u[4]||(u[4]=[A.createTextVNode("组件样式")])),_:1}),A.createVNode(A.unref(fn),{modelValue:e.value,"onUpdate:modelValue":u[0]||(u[0]=y=>e.value=y),schema:A.unref(N2),ref:"formRef"},null,8,["modelValue","schema"]),A.createElementVNode("div",R2,[A.createVNode(o,{type:"primary",plain:"",size:"small",onClick:u[1]||(u[1]=y=>t.value=!0)},{default:A.withCtx(()=>u[5]||(u[5]=[A.createTextVNode("自定义更多样式")])),_:1})]),A.createVNode(b,{modelValue:t.value,"onUpdate:modelValue":u[3]||(u[3]=y=>t.value=y),title:"组件样式"},{default:A.withCtx(()=>[A.createVNode(A.unref(fn),{modelValue:e.value,"onUpdate:modelValue":u[2]||(u[2]=y=>e.value=y),schema:A.unref(F2),ref:"formRef",style:{padding:"0 15px"}},null,8,["modelValue","schema"])]),_:1},8,["modelValue"])],2)}}}),G2=A.defineComponent({__name:"index",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=zo(),t=nc(),i=A.useModel(n,"modelValue"),u=A.computed(()=>{const o=e[i.value.component];if(o!=null&&o.attrSchema){const b=(w=[])=>w.map(M=>{const N=ma(i.value,M.name),P=ut.isString(N)&&/^{{\s*(.*?)\s*}}$/.test(N);return{...M,label:t.value==="zh"?M.label:M.name.split(".").pop(),component:P?"Input":M.component,dialog:P||M.dialog,children:M.children&&b(M.children)}}),y=b(o.attrSchema.items);return{...o.attrSchema,items:[{label:"组件类型",component:"Tag",name:"componentType",props:{text:o.title,style:{marginBottom:"10px"}}},...y]}}return{size:"small",labelPosition:"top",items:[]}}),I=A.computed({get(){var o;return((o=i.value)==null?void 0:o.props)||{}},set(o){i.value=ko(i.value,"props",o)}});return(o,b)=>(A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("attr"))},[(A.openBlock(),A.createBlock(A.unref(fn),{key:i.value.designKey,modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=y=>i.value=y),schema:u.value},null,8,["modelValue","schema"])),(A.openBlock(),A.createBlock(L2,{key:i.value.designKey,modelValue:I.value,"onUpdate:modelValue":b[1]||(b[1]=y=>I.value=y)},null,8,["modelValue"])),A.createVNode(S2,{modelValue:i.value,"onUpdate:modelValue":b[2]||(b[2]=y=>i.value=y)},null,8,["modelValue"])],2))}}),P2={size:"small",labelPosition:"top",items:[{label:"label宽度",component:"InputNumber",name:"labelWidth",props:{min:60,unit:"px",step:10},initialValue:150},{label:"label对齐方式",component:"Radio",name:"labelPosition",props:{mode:"static",options:[{label:"左对齐",value:"left"},{label:"居上",value:"top"},{label:"右对齐",value:"right"}]},initialValue:"right"},{label:"表单组件尺寸",component:"Radio",name:"size",props:{mode:"static",options:[{label:"默认",value:"default"},{label:"较小",value:"small"},{label:"较大",value:"large"}]},initialValue:"default"},{label:"禁用整个表单",component:"Switch",name:"disabled"},{label:"隐藏必填星号",component:"Switch",name:"hideRequiredAsterisk"},{label:"label加粗",component:"Switch",name:"labelBold"},{label:"自动滚动到校验失败的第一项",component:"Switch",name:"scrollToError"},{label:"规则文件路径",component:"Input",name:"rulePath"},{label:"表单编码",component:"Input",name:"key"},{label:"数据对象",component:"Input",name:"dataModel"}]},H2=A.defineComponent({__name:"FormEdit",setup(n){const e=Sn(),t=A.computed({get(){return e.schema},set(i){e.updateSchema(i)}});return(i,u)=>(A.openBlock(),A.createBlock(A.unref(fn),{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=I=>t.value=I),schema:A.unref(P2)},null,8,["modelValue","schema"]))}}),K2=A.defineComponent({__name:"index",setup(n){const e=gi(),t=Sn();return A.watch(()=>t.current,i=>{i||(t.rightTab="form")}),(i,u)=>{const I=A.resolveComponent("el-tab-pane"),o=A.resolveComponent("el-tabs");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("form-design-right"))},[A.createVNode(o,{modelValue:A.unref(t).rightTab,"onUpdate:modelValue":u[1]||(u[1]=b=>A.unref(t).rightTab=b)},{default:A.withCtx(()=>[A.unref(t).current?(A.openBlock(),A.createBlock(I,{key:0,label:A.unref(e).attr.tab1.title,name:"attr"},{default:A.withCtx(()=>[A.createVNode(G2,{modelValue:A.unref(t).current,"onUpdate:modelValue":u[0]||(u[0]=b=>A.unref(t).current=b)},null,8,["modelValue"])]),_:1},8,["label"])):A.createCommentVNode("",!0),A.createVNode(I,{label:A.unref(e).attr.tab2.title,name:"form"},{default:A.withCtx(()=>[A.createVNode(H2)]),_:1},8,["label"])]),_:1},8,["modelValue"])],2)}}}),wC=A.defineComponent({__name:"index",props:A.mergeModels({schemaContext:{default:()=>({})},templates:{default:()=>[]},omitMenus:{default:()=>[]}},{modelValue:{default:A.reactive({labelWidth:150,labelPosition:"right",scrollToError:!0,size:"default",items:[]})},modelModifiers:{}}),emits:A.mergeModels(["onSave","save","add"],["update:modelValue"]),setup(n,{emit:e}){const t=n,i=e,u=A.ref(""),I=A.useModel(n,"modelValue"),o=A.computed({get(){return I.value.items},set(w){I.value.items=w}}),b=A.computed({get(){return tc(o.value,u.value)},set(w){u.value=w.designKey,o.value=Rd(o.value,w)}}),y=A.reactive({...A.toRefs(t),currentKey:u,hoverKey:"",schema:I,current:b,list:o,rightTab:"form",updateCurrent(w){y.current=w},updateHoverKey(w){y.hoverKey=w},updateSchema:w=>{Object.assign(I.value,w)},updateList:w=>{o.value=w},handleEmit:(w,M)=>{i(w,M)}});return A.provide(Nd,y),(w,M)=>(A.openBlock(),A.createElementBlock("div",A.mergeProps({class:A.unref(je)("form-design")},w.$attrs),[A.createVNode(p2),A.createVNode(D2),A.createVNode(K2)],16))}}),T2={class:"card-header"},U2={class:"card-btns"},Y2={key:0,class:"switch-panel"},O2=ie(A.defineComponent({__name:"CardWrapper",props:{collapsible:{type:Boolean},header:{},btns:{},tableType:{default:"table"},typeSwitch:{type:Boolean,default:!1},switchTableType:{},shadowless:{type:Boolean}},setup(n){const e=n,t=A.ref(!1),i=A.computed(()=>e.btns?e.btns.map(u=>({isLinkBtn:!0,...u})):[]);return(u,I)=>{const o=A.resolveComponent("el-collapse-transition"),b=A.resolveComponent("ElCard");return A.openBlock(),A.createBlock(b,A.mergeProps(u.$attrs,{class:["crm-card",{collapsed:t.value,shadowless:u.shadowless}],shadow:"never"}),{header:A.withCtx(()=>[A.createElementVNode("div",T2,[u.collapsible?(A.openBlock(),A.createElementBlock("div",{key:0,class:"icon-wrapper",onClick:I[0]||(I[0]=y=>t.value=!t.value)},[A.createVNode(A.unref(Ie),{name:"dropdown",class:A.normalizeClass(["dropdown-icon",{"is-collapsed":t.value}])},null,8,["class"])])):A.createCommentVNode("",!0),A.createElementVNode("span",null,A.toDisplayString(u.header),1),A.createElementVNode("div",U2,[u.typeSwitch?(A.openBlock(),A.createElementBlock("div",Y2,[A.createElementVNode("div",{class:A.normalizeClass(["switch-icon-wrapper",{active:u.tableType==="card"}]),onClick:I[1]||(I[1]=y=>u.switchTableType("card"))},[A.createVNode(xe,{name:"icon-kapian"})],2),A.createElementVNode("div",{class:A.normalizeClass(["switch-icon-wrapper",{active:u.tableType==="table"}]),onClick:I[2]||(I[2]=y=>u.switchTableType("table"))},[A.createVNode(xe,{name:"icon-biaoge"})],2)])):A.createCommentVNode("",!0),A.createElementVNode("div",null,[A.createVNode(A.unref(lo),{btns:i.value||[]},null,8,["btns"])])])])]),default:A.withCtx(()=>[A.createVNode(o,null,{default:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",null,[A.renderSlot(u.$slots,"default",{},void 0,!0)],512),[[A.vShow,!t.value]])]),_:3})]),_:3},16,["class"])}}}),[["__scopeId","data-v-d8e65e0c"]]),$2={class:"empty-content"},z2=["title"],J2=["title","onClick"],Z2={key:1,class:"icon-text-wrapper"},W2=["title"],j2=["title"],q2={class:"row-btn-wrapper"},bC=ie(A.defineComponent({__name:"TableContent",props:A.mergeModels({tableData:{},total:{},hasVisibleRowBtn:{type:Boolean},handleSizeChange:{type:Function},handlePageChange:{type:Function},handleRowClick:{type:Function},handleRowDblclick:{type:Function},handleSelectionChange:{type:Function},handleCurrentChange:{type:Function},getColText:{type:Function},getGlobalParams:{type:Function},handleClick:{type:Function},schema:{},selectable:{type:Function},getIconInfo:{type:Function}},{pagination:{required:!0},paginationModifiers:{}}),emits:["update:pagination"],setup(n,{expose:e}){const t=A.useModel(n,"pagination"),i=A.useTemplateRef("tableRef");return e({tableRef:i}),(u,I)=>{const o=A.resolveComponent("el-table-column"),b=A.resolveComponent("el-tooltip"),y=A.resolveComponent("el-button"),w=A.resolveComponent("FormItemGroup"),M=A.resolveComponent("el-popover"),N=A.resolveComponent("el-table"),P=A.resolveComponent("el-pagination");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(["table-render",{tableBorder:u.schema.displayType==="table",[u.schema.key]:!0}])},[A.withDirectives(A.createElementVNode("div",null,[A.createVNode(N,{ref_key:"tableRef",ref:i,data:u.tableData,stripe:u.schema.stripe,"highlight-current-row":"","row-key":u.schema.rowKey,onRowClick:u.handleRowClick,onRowDblclick:u.handleRowDblclick,onSelectionChange:u.handleSelectionChange,onCurrentChange:u.handleCurrentChange,height:u.schema.height},{empty:A.withCtx(()=>[A.createElementVNode("div",$2,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),I[2]||(I[2]=A.createElementVNode("div",null,"No data available,please check",-1))])]),default:A.withCtx(()=>{var Y;return[u.schema.multipleSelection?(A.openBlock(),A.createBlock(o,{key:0,type:"selection",width:"55",selectable:u.selectable},null,8,["selectable"])):A.createCommentVNode("",!0),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.schema.columns,G=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:G.key},[G.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(o,{key:0,prop:G.key,"min-width":G.minWidth,fixed:G.fixed||!1,sortable:G.sortable||u.schema.sortable||!0},{header:A.withCtx(()=>[A.createElementVNode("div",{class:"text-ellipsis",title:G.label},A.toDisplayString(G.label),9,z2)]),default:A.withCtx(({row:K,$index:D})=>{var E,L,_,v;return[G.type==="link"?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["text-ellipsis link-style",{"click-style":G.onClick}]),title:u.getColText(G,K),onClick:B=>u.handleClick(G,K,D,B)},A.toDisplayString(u.getColText(G,K)),11,J2)):G.type==="iconText"?(A.openBlock(),A.createElementBlock("div",Z2,[G.iconPosition==="left"?(A.openBlock(),A.createBlock(xe,{key:0,name:(E=u.getIconInfo(G,K))==null?void 0:E.name,color:(L=u.getIconInfo(G,K))==null?void 0:L.color},null,8,["name","color"])):A.createCommentVNode("",!0),A.createElementVNode("span",{class:"text-ellipsis",title:u.getColText(G,K)},A.toDisplayString(u.getColText(G,K)),9,W2),G.iconPosition==="right"?(A.openBlock(),A.createBlock(xe,{key:1,name:(_=u.getIconInfo(G,K))==null?void 0:_.name,color:(v=u.getIconInfo(G,K))==null?void 0:v.color},null,8,["name","color"])):A.createCommentVNode("",!0)])):(A.openBlock(),A.createElementBlock("div",{key:2,class:A.normalizeClass({"text-ellipsis":!G.noEllipsis}),title:u.getColText(G,K)},A.toDisplayString(u.getColText(G,K)),11,j2))]}),_:2},1032,["prop","min-width","fixed","sortable"]))],64))),128)),u.hasVisibleRowBtn&&((Y=u.schema.rowBtns)!=null&&Y.length)?(A.openBlock(),A.createBlock(o,{key:1,label:u.schema.rowBtnsLabel||"Action",fixed:"right",align:"left",width:u.schema.rowBtnsWidth||(u.schema.rowBtns.length*34+12>100?u.schema.rowBtns.length*34+12:100)},{default:A.withCtx(({row:G,$index:K})=>[A.createElementVNode("div",q2,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.schema.rowBtns,D=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:D.key},[D.component==="Popover"?(A.openBlock(),A.createBlock(M,{key:0},{reference:A.withCtx(()=>[D.condition===void 0||D.condition===null||A.unref(Rt)(D.condition,{$row:G,$globalParams:u.getGlobalParams()})?(A.openBlock(),A.createBlock(y,{key:0,disabled:D.disabled,link:"",size:"small",type:D.type,onClick:E=>u.handleClick(D,G,K,E)},{default:A.withCtx(()=>[A.createVNode(b,{class:"box-item",effect:"dark",content:D.label,placement:"top","popper-class":"low-tsp","show-after":300},{default:A.withCtx(()=>[D.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:D.icon.name,color:D.icon.color},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"]),D.buttonText?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:D.buttonText.color,fontSize:"14px"})},A.toDisplayString(A.unref(Rt)(D.buttonText.text,{$row:G,$globalParams:u.getGlobalParams()})),5)):A.createCommentVNode("",!0)]),_:2},1032,["disabled","type","onClick"])):A.createCommentVNode("",!0)]),default:A.withCtx(()=>[A.createElementVNode("div",null,[A.createVNode(w,{list:D.children},null,8,["list"])])]),_:2},1024)):(A.openBlock(),A.createElementBlock(A.Fragment,{key:1},[D.condition===void 0||D.condition===null||A.unref(Rt)(D.condition,{$row:G,$globalParams:u.getGlobalParams()})?(A.openBlock(),A.createBlock(y,{key:0,disabled:D.disabled,link:"",size:"small",type:D.type,onClick:E=>u.handleClick(D,G,K,E)},{default:A.withCtx(()=>[A.createVNode(b,{class:"box-item",effect:"dark",content:D.label,placement:"top","popper-class":"low-tsp","show-after":300},{default:A.withCtx(()=>[D.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:D.icon.name,color:D.icon.color},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"]),D.buttonText?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:D.buttonText.color,fontSize:"14px"})},A.toDisplayString(A.unref(Rt)(D.buttonText.text,{$row:G,$globalParams:u.getGlobalParams()})),5)):A.createCommentVNode("",!0)]),_:2},1032,["disabled","type","onClick"])):A.createCommentVNode("",!0)],64))],64))),128))])]),_:1},8,["label","width"])):A.createCommentVNode("",!0)]}),_:1},8,["data","stripe","row-key","onRowClick","onRowDblclick","onSelectionChange","onCurrentChange","height"])],512),[[A.vShow,u.schema.displayType==="table"]]),A.withDirectives(A.createVNode(ic,A.mergeProps(u.schema,{data:u.tableData,"get-col-text":u.getColText}),null,16,["data","get-col-text"]),[[A.vShow,u.schema.displayType==="card"]]),A.createElementVNode("div",{class:A.normalizeClass(["pagination-wrapper",{hidePagination:u.schema.hiddenPagination||u.tableData.length===0,cardlistPadding:u.schema.displayType==="card"}])},[A.createVNode(P,{layout:u.schema.paginationLayout||"total,sizes, prev, pager, next,jumper",total:u.total,"page-sizes":u.schema.pageSizes||[5,6,10,20,30,40],"default-page-size":u.schema.defaultPageSize,"current-page":t.value.pageNum,"onUpdate:currentPage":I[0]||(I[0]=Y=>t.value.pageNum=Y),"page-size":t.value.pageSize,"onUpdate:pageSize":I[1]||(I[1]=Y=>t.value.pageSize=Y),"pager-count":u.schema.pagerCount,onSizeChange:u.handleSizeChange,onCurrentChange:u.handlePageChange},null,8,["layout","total","page-sizes","default-page-size","current-page","page-size","pager-count","onSizeChange","onCurrentChange"])],2)],2)}}}),[["__scopeId","data-v-548eb882"]]),X2=["id"],rg=A.defineComponent({__name:"index",props:A.mergeModels({design:{type:Boolean},read:{type:Boolean},pageRulePath:{},pageKey:{}},{schema:{required:!0},schemaModifiers:{},modelValue:{default:[]},modelModifiers:{}}),emits:["update:schema","update:modelValue"],setup(n,{expose:e}){const t=n,i=A.useModel(n,"schema"),u=A.computed(()=>i.value.rulePath&&I[i.value.rulePath]?i.value.rulePath:t.pageRulePath),I=A.inject("ruleMap",{}),o=A.inject("pageMethodMap",{}),b=A.inject("getGlobalParams",()=>{}),y=A.inject(jn),w=y?y.translateFn:null;u.value&&A.provide("ruleModule",I[u.value]);const M=A.useTemplateRef("tableContentRef"),N=A.useModel(n,"modelValue"),P=(BA,j)=>{const tA=i.value.columns.find(rA=>rA.key===BA);tA&&(tA.hidden=!j)},Y=(BA,j,tA,rA)=>{if(u.value)try{I[u.value][BA.onClick](o,j,tA),rA==null||rA.stopPropagation()}catch(gA){console.error(gA)}},G=BA=>{if(!(!i.value.rowClick||!u.value))try{I[u.value][i.value.rowClick](o,BA)}catch(j){console.error(j)}},K=BA=>{if(!(!i.value.rowDbClick||!u.value))try{I[u.value][i.value.rowDbClick](o,BA)}catch(j){console.error(j)}},D=A.ref([]),E=BA=>{D.value=BA},L=(BA,j)=>{if(!i.value.selectable||!u.value)return!0;try{return I[u.value][i.value.selectable](o,BA,j)}catch(tA){console.error(tA)}return!0},_=(BA,j,tA)=>{N.value[BA]&&(N.value[BA][j]=tA)},v=()=>{var BA,j;(j=(BA=M.value)==null?void 0:BA.tableRef)==null||j.clearSelection()},B=()=>N.value,p=A.ref(),d=BA=>{if(p.value=BA,!(!i.value.handleCurrentChange||!u.value))try{I[u.value][i.value.handleCurrentChange](o,BA)}catch(j){console.error(j)}},l=()=>p.value,g=()=>{var BA,j;return(j=(BA=M.value)==null?void 0:BA.tableRef)==null?void 0:j.getSelectionRows()},s=(BA={})=>{N.value.push(BA)},h=BA=>{BA>=0&&BA<N.value.length&&N.value.splice(BA,1)},C=async()=>{N.value=[...N.value]},a=async()=>!0,r=BA=>{N.value=BA},m=(BA,j)=>{var rA;const tA=(rA=i.value.topBtns)==null?void 0:rA.find(gA=>gA.key===BA);tA&&(tA.hidden=j)},Q=(BA,j)=>{var rA;const tA=(rA=i.value.rowBtns)==null?void 0:rA.find(gA=>gA.key===BA);tA&&(tA.condition=!j)},x=A.computed(()=>!i.value.rowBtns||i.value.rowBtns.length===0||!N.value||N.value.length===0?!1:N.value.some(BA=>{var j;return(j=i.value.rowBtns)==null?void 0:j.some(tA=>tA.condition===void 0||tA.condition===null?!0:Rt(tA.condition,{$row:BA,$globalParams:b()}))})),S=A.ref(0),T=BA=>{S.value=BA},$=A.ref({pageNum:1,pageSize:i.value.defaultPageSize||5}),eA=A.ref({pageNum:1,pageSize:i.value.defaultPageSize||5}),W=()=>$.value,J=BA=>{let j=!1;return BA.pageNum!==void 0&&BA.pageNum>-1&&($.value.pageNum!==BA.pageNum&&(j=!0),$.value.pageNum=BA.pageNum),BA.pageSize!==void 0&&BA.pageSize>-1&&($.value.pageSize!==BA.pageSize&&(j=!0),$.value.pageSize=BA.pageSize),{pagination:$.value,isChange:j}},O=async BA=>{var rA;if($.value.pageNum=1,$.value.pageSize=BA,!i.value.sizeChange||!u.value)return;const j=(rA=document.getElementById(t.pageKey))==null?void 0:rA.querySelector(`.${i.value.key}`),tA=Ht.ElLoading.service({target:j||`#${i.value.key}`,text:"Loading..."});try{await I[u.value][i.value.sizeChange](o,$.value),eA.value.pageNum=$.value.pageNum,eA.value.pageSize=$.value.pageSize}catch(gA){console.error(gA),$.value.pageNum=eA.value.pageNum,$.value.pageSize=eA.value.pageSize}finally{tA.close()}},q=async BA=>{var rA;if($.value.pageNum=BA,!i.value.pageChange||!u.value)return;const j=(rA=document.getElementById(t.pageKey))==null?void 0:rA.querySelector(`.${i.value.key}`),tA=Ht.ElLoading.service({target:j||`#${i.value.key}`,text:"Loading..."});try{await I[u.value][i.value.pageChange](o,$.value),eA.value.pageNum=$.value.pageNum,eA.value.pageSize=$.value.pageSize}catch(gA){console.error(gA),$.value.pageNum=eA.value.pageNum,$.value.pageSize=eA.value.pageSize}finally{tA.close()}},k=BA=>{var j,tA;(tA=(j=M.value)==null?void 0:j.tableRef)==null||tA.setCurrentRow(BA)},V=BA=>{var j,tA;(tA=(j=M.value)==null?void 0:j.tableRef)==null||tA.setCurrentRow(N.value[BA])},H=(BA,j,tA)=>{i.value.columns.forEach(rA=>{rA.key===BA&&rA[j]&&(rA[j]=tA)})},AA=BA=>{i.value.displayType=BA},sA=BA=>{i.value.shadowless=BA},oA=(BA,j)=>{const tA=w?w(BA.key,j):j[BA.key];if(!Rt(BA.encrypted,{$row:j,$col:BA})||!tA)return tA;const gA=`${tA}`;return gA.length<=4?"*".repeat(gA.length):gA.slice(0,-4)+"****"},dA=(BA,j)=>{if(!(!BA.getIconInfo||!u.value))try{return I[u.value][BA.getIconInfo](o,j,BA)}catch(tA){console.error(tA)}},EA=A.useTemplateRef("rootRef");i.value.displayType||(i.value.displayType=i.value.typeSwitch?"card":"table"),A.onMounted(async()=>{if(!i.value||!i.value.onMounted||!u.value)return;await A.nextTick();const BA=i.value.onMounted;try{I[u.value][BA](o)}catch(j){console.error(j)}}),A.onActivated(()=>{if(!i.value||!i.value.onActivated||!u.value)return;const BA=i.value.onActivated;try{I[u.value][BA](o)}catch(j){console.error(j)}});const uA=A.readonly({...A.toRefs(t),setCellData:_,clearSelection:v,getData:B,getCurrentRow:l,getSelectedRows:g,addRow:s,deleteRow:h,refresh:C,validate:a,setData:r,selectRow:k,selectRowNum:V,setTotal:T,getPagination:W,setPagination:J,setTopBtnHidden:m,setColVisible:P,setColumn:H,setRowsBtnHidden:Q,setShadowless:sA,rootRef:EA,type:"table"});return e(uA),(BA,j)=>i.value.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,ref_key:"rootRef",ref:EA,id:i.value.key},[i.value.cardless?(A.openBlock(),A.createBlock(bC,{key:1,ref_key:"tableContentRef",ref:M,tableData:N.value,total:S.value,hasVisibleRowBtn:x.value,handleSizeChange:O,handlePageChange:q,handleRowClick:G,handleRowDblclick:K,handleSelectionChange:E,handleCurrentChange:d,getColText:oA,getGlobalParams:A.unref(b),handleClick:Y,selectable:L,schema:i.value,getIconInfo:dA,pagination:$.value,"onUpdate:pagination":j[1]||(j[1]=tA=>$.value=tA)},null,8,["tableData","total","hasVisibleRowBtn","getGlobalParams","schema","pagination"])):(A.openBlock(),A.createBlock(O2,{key:0,header:i.value.title,btns:i.value.topBtns,collapsible:i.value.collapsible!==!1,switchTableType:AA,tableType:i.value.displayType,typeSwitch:i.value.typeSwitch,shadowless:i.value.shadowless},{default:A.withCtx(()=>[A.createVNode(bC,{ref_key:"tableContentRef",ref:M,tableData:N.value,total:S.value,hasVisibleRowBtn:x.value,handleSizeChange:O,handlePageChange:q,handleRowClick:G,handleRowDblclick:K,handleSelectionChange:E,handleCurrentChange:d,getColText:oA,getGlobalParams:A.unref(b),handleClick:Y,selectable:L,schema:i.value,getIconInfo:dA,pagination:$.value,"onUpdate:pagination":j[0]||(j[0]=tA=>$.value=tA)},null,8,["tableData","total","hasVisibleRowBtn","getGlobalParams","schema","pagination"])]),_:1},8,["header","btns","collapsible","tableType","typeSwitch","shadowless"]))],8,X2))}}),V2=["id"],A8={class:"tab-label"},e8={class:"tab-label-text"},t8={key:0,class:"divider"},n8=ie(A.defineComponent({__name:"index",props:A.mergeModels({ruleMap:{},pageParams:{},pageRulePath:{}},{schema:{required:!0},schemaModifiers:{}}),emits:A.mergeModels(["addPageParams"],["update:schema"]),setup(n,{expose:e,emit:t}){const i=A.useModel(n,"schema"),u=A.ref({}),I=t,o=A.ref({}),b=B=>p=>{p?o.value[B]=p:delete o.value[B]},y=n,w=A.computed(()=>{var B;return(B=i.value.content.find(p=>p.url===P.value))==null?void 0:B.mixMode}),M=B=>{i.value.content=B},N=B=>{Array.isArray(B)?i.value.content.push(...B):i.value.content.push(B)},P=A.ref(i.value.content[0].url),Y=B=>{u.value[B]=!0,A.nextTick(()=>{u.value[B]=!1})},G=A.useTemplateRef("rootRef"),K=B=>o.value[B],D=(B,p)=>{p&&I("addPageParams",p),A.nextTick(()=>{P.value=B,v(B)})},E=(B,p)=>{const d=i.value.content.find(l=>l.url===B);d&&(d.mixMode=p)},L=A.inject("pageMethodMap",{}),_=A.computed(()=>i.value.rulePath&&y.ruleMap[i.value.rulePath]?i.value.rulePath:y.pageRulePath),v=B=>{o.value[B]&&o.value[B].activate();const p=i.value.onChange;try{p&&y.ruleMap[_.value][p](L,B)}catch{}};return e(A.readonly({setTabContent:M,addTabContent:N,schema:i,rootRef:G,findRef:K,changeActiveTab:D,type:"tabs"})),(B,p)=>{var s,h,C;const d=A.resolveComponent("el-skeleton"),l=A.resolveComponent("el-tab-pane"),g=A.resolveComponent("el-tabs");return A.openBlock(),A.createElementBlock("div",{ref_key:"rootRef",ref:G,id:i.value.key},[i.value.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(g,A.mergeProps({key:0},i.value.tabProps,{modelValue:P.value,"onUpdate:modelValue":p[0]||(p[0]=a=>P.value=a),class:["crm-tabs",{mixmode:w.value}],style:{"--top":(s=i.value)!=null&&s.stickyTop?`${(h=i.value)==null?void 0:h.stickyTop}px`:"110px","--is-sticky":(C=i.value)!=null&&C.isSticky?"sticky":"static"},onTabChange:v}),{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(i.value.content,(a,r)=>(A.openBlock(),A.createBlock(l,{name:a.key||a.url,key:a.key||a.url,lazy:r!==0},{label:A.withCtx(()=>[A.createElementVNode("div",A8,[A.createElementVNode("span",e8,A.toDisplayString(a.label),1),r!==i.value.content.length-1?(A.openBlock(),A.createElementBlock("span",t8)):A.createCommentVNode("",!0)])]),default:A.withCtx(()=>[u.value[r]?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(ag,{key:0,pageUrl:a.url,"rule-map":B.ruleMap,"page-params":a.pageParams?{...B.pageParams,...a.pageParams}:B.pageParams,ref_for:!0,ref:b(a.url),onRefresh:m=>Y(r),onChangeTab:D,onChangeMixMode:E},{loading:A.withCtx(()=>[A.createVNode(d,{rows:5,animated:""})]),_:2},1032,["pageUrl","rule-map","page-params","onRefresh"]))]),_:2},1032,["name","lazy"]))),128))]),_:1},16,["modelValue","style","class"]))],8,V2)}}}),[["__scopeId","data-v-7ac2d7d6"]]),i8=["id"],o8={class:"info-card-header"},r8={class:"left-part"},a8={class:"title-part"},s8={class:"sub-title-container"},l8={class:"right-part"},c8={class:"info info-card-infos"},g8={class:"info-label"},u8={class:"ml-2"},d8={class:"info-card-detail"},h8={class:"info-card-detail-left"},p8={class:"label"},C8={key:0,class:"divider"},B8={key:0,class:"info-card-detail-right"},m8={key:0},E8={key:1,class:"detail-right-label"},Q8={key:2,class:"detail-right-value"},I8=ie(A.defineComponent({__name:"InfoCard",props:A.mergeModels({pageRulePath:{}},{schema:{required:!0},schemaModifiers:{}}),emits:["update:schema"],setup(n,{expose:e}){const t=A.useModel(n,"schema"),i=A.inject("ruleMap",{}),u=n,I=A.computed(()=>t.value.rulePath&&i[t.value.rulePath]?i[t.value.rulePath]:i[u.pageRulePath]);A.provide("ruleModule",I.value);const o=A.inject("pageMethodMap",{}),b=N=>{const P=document.createElement("textarea");P.value=N??"",P.style.position="absolute",P.style.opacity="0",document.body.appendChild(P),P.select(),document.execCommand("copy"),P.remove()},y=async()=>{try{await navigator.clipboard.writeText(t.value.header.subTitle)}catch(N){console.error("Clipboard API error:",N),b(t.value.header.subTitle)}Ht.ElMessage.success("Copy Successful")},w=N=>{var P;if(I.value[N||"clickTitleIcon"])try{I.value[N||"clickTitleIcon"](o,(P=t.value.header)==null?void 0:P.titleIcon)}catch(Y){console.error(Y+`
192
+ export default ${JSON.stringify(n,null,2)} satisfies FormSchema`,Q2=n=>`export default ${JSON.stringify(n,null,2)}`,I2=A.defineComponent({__name:"JsonSchema",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){var w;const e=Sn(),t=gi(),u=(w=zo().JsonEdit)==null?void 0:w.render,I=A.computed({get(){return e.schema},set(M){M.items&&e.updateSchema(M)}}),o=A.ref({}),b=A.useModel(n,"modelValue"),y=M=>{e.updateSchema({...e.schema,items:Pd(e.schema.items)}),M.repair()};return(M,N)=>{const P=A.resolveComponent("el-tab-pane"),Y=A.resolveComponent("el-tabs"),G=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(G,{modelValue:b.value,"onUpdate:modelValue":N[1]||(N[1]=K=>b.value=K),title:A.unref(t).actions.previewJson,width:"70%",center:"","destroy-on-close":"",top:"10vh",onClose:N[2]||(N[2]=K=>o.value={})},{default:A.withCtx(()=>[A.createVNode(Y,{"model-value":"edit",class:"demo-tabs"},{default:A.withCtx(()=>[A.createVNode(P,{label:"在线编辑",name:"edit"},{default:A.withCtx(()=>[A.createVNode(A.unref(u),{modelValue:I.value,"onUpdate:modelValue":N[0]||(N[0]=K=>I.value=K),style:{height:"70vh"},onBlur:y},null,8,["modelValue"])]),_:1}),A.createVNode(P,{label:"生成ts文件",name:"ts"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},language:"ts",code:A.unref(E2)(I.value)},null,8,["code"])]),_:1}),A.createVNode(P,{label:"生成js文件",name:"js"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},language:"js",code:A.unref(Q2)(I.value)},null,8,["code"])]),_:1}),A.createVNode(P,{label:"帮助",name:"help"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},language:"json",code:A.unref(m2)},null,8,["code"])]),_:1})]),_:1})]),_:1},8,["modelValue","title"])}}}),f2=A.defineComponent({__name:"VueCode",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Sn(),t=gi(),i=A.useModel(n,"modelValue");return(u,I)=>{const o=A.resolveComponent("el-tab-pane"),b=A.resolveComponent("el-tabs"),y=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(y,{modelValue:i.value,"onUpdate:modelValue":I[0]||(I[0]=w=>i.value=w),title:A.unref(t).actions.previewVueCode,width:"70%",center:"","destroy-on-close":"",top:"10vh"},{default:A.withCtx(()=>[A.createVNode(b,{"model-value":"ts",class:"demo-tabs"},{default:A.withCtx(()=>[A.createVNode(o,{label:"Typescript",name:"ts"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},code:A.unref(C2)(A.unref(e).schema),language:"vue"},null,8,["code"])]),_:1}),A.createVNode(o,{label:"Javascript",name:"js"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},code:A.unref(B2)(A.unref(e).schema),language:"vue"},null,8,["code"])]),_:1})]),_:1})]),_:1},8,["modelValue","title"])}}}),w2=ie(A.defineComponent({__name:"Preview",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Sn(),{JsonEdit:t}=zo(),i=A.ref("edit"),u=A.ref(),I=A.ref({}),o=A.useModel(n,"modelValue"),b=A.computed(()=>{var w;return(w=u.value)==null?void 0:w.context}),y=gi();return(w,M)=>{const N=A.resolveComponent("el-tab-pane"),P=A.resolveComponent("el-tabs"),Y=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(Y,{modelValue:o.value,"onUpdate:modelValue":M[4]||(M[4]=G=>o.value=G),title:A.unref(y).actions.previewForm,width:"70%",center:"","destroy-on-close":"",top:"10vh",onClose:M[5]||(M[5]=G=>I.value={})},{default:A.withCtx(()=>[A.createVNode(P,{modelValue:i.value,"onUpdate:modelValue":M[3]||(M[3]=G=>i.value=G)},{default:A.withCtx(()=>[A.createVNode(N,{label:"编辑模式",name:"edit"},{default:A.withCtx(()=>[A.createVNode(A.unref(fn),{modelValue:I.value,"onUpdate:modelValue":M[0]||(M[0]=G=>I.value=G),schema:A.unref(e).schema,ref_key:"formRef",ref:u,schemaContext:A.unref(e).schemaContext,style:{minHeight:"200px",padding:"20px"}},null,8,["modelValue","schema","schemaContext"])]),_:1}),A.createVNode(N,{label:"阅读模式",name:"read",lazy:""},{default:A.withCtx(()=>[A.createVNode(A.unref(fn),{modelValue:I.value,"onUpdate:modelValue":M[1]||(M[1]=G=>I.value=G),schema:{...A.unref(e).schema},schemaContext:A.unref(e).schemaContext,style:{minHeight:"200px",padding:"20px"},read:""},null,8,["modelValue","schema","schemaContext"])]),_:1}),A.createVNode(N,{label:"联动变量",name:"context"},{default:A.withCtx(()=>[M[6]||(M[6]=A.createElementVNode("p",null,"实时预览的联动变量,在JsonSchema中可以通过双大括号模版语法使用,用于触发各种联动",-1)),(A.openBlock(),A.createBlock(A.unref(t).render,{modelValue:b.value,"onUpdate:modelValue":M[2]||(M[2]=G=>b.value=G),style:{height:"60vh"},key:i.value},null,8,["modelValue"]))]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue","title"])}}}),[["__scopeId","data-v-a9d66bb1"]]),b2=A.defineComponent({__name:"ChangeLang",setup(n){const e=A.inject("asiaint-lang");return(t,i)=>{const u=A.resolveComponent("el-option"),I=A.resolveComponent("el-select");return A.openBlock(),A.createBlock(I,{modelValue:A.unref(e),"onUpdate:modelValue":i[0]||(i[0]=o=>A.isRef(e)?e.value=o:null),size:"small"},{default:A.withCtx(()=>[A.createVNode(u,{label:"中文",value:"zh"}),A.createVNode(u,{label:"English",value:"en"})]),_:1},8,["modelValue"])}}}),y2=A.defineComponent({__name:"index",setup(n){const e=Sn(),t=gi(),i=A.ref(!1),u=A.ref(!1),I=A.ref(!1),o=A.computed(()=>[{label:t.value.actions.previewJson,btnType:"primary",icon:"script",onClick:()=>{i.value=!0}},{label:t.value.actions.previewVueCode,btnType:"default",icon:"vue",onClick:()=>{u.value=!0}},{label:t.value.actions.previewForm,btnType:"default",icon:"eye",onClick:()=>{I.value=!0}}]),b=A.computed(()=>[{label:t.value.actions.clear,btnType:"danger",icon:"trash",onClick:async()=>{await Ht.ElMessageBox.confirm("确认清空当前设计吗?"),e.updateSchema({...e.schema,items:[]})}},{label:t.value.actions.save,icon:"save",btnType:"primary",onClick:()=>{e.handleEmit("save"),e.handleEmit("onSave")}}]);return(y,w)=>{const M=A.resolveComponent("el-button");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("actions"))},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("actions-left"))},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(o.value,N=>(A.openBlock(),A.createBlock(M,{key:N.label,type:N.btnType,size:"small",onClick:N.onClick},A.createSlots({default:A.withCtx(()=>[A.createTextVNode(" "+A.toDisplayString(N.label),1)]),_:2},[N.icon?{name:"icon",fn:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:N.icon},null,8,["name"])]),key:"0"}:void 0]),1032,["type","onClick"]))),128)),A.createVNode(b2,{class:A.normalizeClass(A.unref(je)("actions-left-lang"))},null,8,["class"])],2),A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("actions-right"))},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.value,({label:N,btnType:P,icon:Y,onClick:G})=>(A.openBlock(),A.createBlock(M,{key:N,type:P,size:"small",onClick:G},A.createSlots({default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(N),1)]),_:2},[Y?{name:"icon",fn:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:Y},null,8,["name"])]),key:"0"}:void 0]),1032,["type","onClick"]))),128))],2),A.createVNode(I2,{modelValue:i.value,"onUpdate:modelValue":w[0]||(w[0]=N=>i.value=N)},null,8,["modelValue"]),A.createVNode(f2,{modelValue:u.value,"onUpdate:modelValue":w[1]||(w[1]=N=>u.value=N)},null,8,["modelValue"]),A.createVNode(w2,{modelValue:I.value,"onUpdate:modelValue":w[2]||(w[2]=N=>I.value=N),"schema-context":A.unref(e).schemaContext},null,8,["modelValue","schema-context"])],2)}}}),D2=A.defineComponent({__name:"index",setup(n){const e=Sn();return(t,i)=>(A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("form-design-center"))},[A.createVNode(y2),A.createVNode(A.unref(fn),{class:A.normalizeClass(A.unref(je)("canvas")),schema:A.unref(e).schema,"onUpdate:schema":i[0]||(i[0]=u=>A.unref(e).schema=u),design:""},null,8,["class","schema"])],2))}}),v2=()=>({labelWidth:100,labelPosition:"top",items:[{hideLabel:!0,name:"change",component:"FormList",children:[{label:"目标字段",name:"target",component:"Input",help:"如果是自增组件内部联动,直接输入子组件的name。如果是外部联动自增组件,就是formlist.*.key"},{label:"触发条件",name:"condition",component:"Input",help:"必须输入一个模板表达式,当表达式结果为true时才触发联动。如果不设置,默认会一直触发"},{label:"值",name:"value",component:"Input",help:"支持模板表达式"}],props:{mode:"card",title:"联动字段"}}]}),k2=A.defineComponent({__name:"Change",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Sn(),t=A.useModel(n,"modelValue");return(i,u)=>{const I=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(I,{"destroy-on-close":"",modelValue:t.value,"onUpdate:modelValue":u[1]||(u[1]=o=>t.value=o),top:"3vh",title:"值联动"},{default:A.withCtx(()=>[A.createVNode(A.unref(fn),{modelValue:A.unref(e).current,"onUpdate:modelValue":u[0]||(u[0]=o=>A.unref(e).current=o),schema:A.unref(v2)()},null,8,["modelValue","schema"])]),_:1},8,["modelValue"])}}}),_2={labelWidth:100,labelPosition:"top",items:[{label:"手动配置",component:"JsonEdit",designKey:"design-A2bj",name:".",props:{style:{height:"70vh"}}}]},M2={class:"config-linkages"},x2=ie(A.defineComponent({__name:"Config",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Sn(),t=A.useModel(n,"modelValue");return A.ref({}),(i,u)=>{var o;const I=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(I,{"destroy-on-close":"",modelValue:t.value,"onUpdate:modelValue":u[1]||(u[1]=b=>t.value=b),top:"3vh",title:`${(o=A.unref(e).current)==null?void 0:o.label} - 配置级联动`,width:"70vw",center:""},{default:A.withCtx(()=>[A.createElementVNode("div",M2,[A.createVNode(A.unref(fn),{modelValue:A.unref(e).current,"onUpdate:modelValue":u[0]||(u[0]=b=>A.unref(e).current=b),schema:A.unref(_2),class:"edit"},null,8,["modelValue","schema"])])]),_:1},8,["modelValue","title"])}}}),[["__scopeId","data-v-e4ab3ef4"]]),S2=A.defineComponent({__name:"index",setup(n){const e=gi(),t=A.ref(!1),i=A.ref(!1),u=A.computed(()=>[{title:e.value.attr.tab1.linkage.action1,onClick:()=>{t.value=!0}},{title:e.value.attr.tab1.linkage.action2,onClick:()=>{i.value=!0}}]);return(I,o)=>{const b=A.resolveComponent("el-divider"),y=A.resolveComponent("el-button");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("linkageConfig"))},[A.createVNode(b,null,{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(A.unref(e).attr.tab1.linkage.text),1)]),_:1}),A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("linkageConfig-btns"))},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.value,({title:w,onClick:M})=>(A.openBlock(),A.createBlock(y,{key:w,type:"primary",plain:"",size:"small",onClick:M},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(w),1)]),_:2},1032,["onClick"]))),128))],2),A.createVNode(x2,{modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=w=>t.value=w)},null,8,["modelValue"]),A.createVNode(k2,{modelValue:i.value,"onUpdate:modelValue":o[1]||(o[1]=w=>i.value=w)},null,8,["modelValue"])],2)}}}),N2={labelWidth:60,labelPosition:"right",size:"small",items:[{label:"class",component:"Input",props:{placeholder:""},designKey:"design-KUlI",name:"class"},{label:"宽度",component:"SelectInput",props:{selectPosition:"append",selectWidth:50,selectInitialValue:"%",placeholder:"100",options:[{label:"%",value:"%"},{label:"px",value:"px"},{label:"vw",value:"vw"},{label:"rem",value:"rem"}],clearable:!0},designKey:"design-Bvi4",name:"style.width"},{label:"高度",component:"SelectInput",props:{selectPosition:"append",selectWidth:50,selectInitialValue:"px",placeholder:"auto",options:[{label:"%",value:"%"},{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"rem",value:"rem"}],clearable:!0},designKey:"design-Bvi44",name:"style.height"}]},F2={labelWidth:60,labelPosition:"top",size:"small",items:[{label:"ID",component:"Input",props:{placeholder:""},designKey:"form-0vQJ",name:"id"},{label:"class",component:"Input",props:{placeholder:""},designKey:"design-KUlI",name:"class"},{label:"宽度",component:"SelectInput",props:{selectPosition:"append",selectWidth:50,selectInitialValue:"%",placeholder:"100",options:[{label:"%",value:"%"},{label:"px",value:"px"},{label:"vw",value:"vw"},{label:"rem",value:"rem"}],clearable:!0},designKey:"design-Bvi4",name:"style.width"},{label:"高度",component:"SelectInput",props:{selectPosition:"append",selectWidth:50,selectInitialValue:"px",placeholder:"auto",options:[{label:"%",value:"%"},{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"rem",value:"rem"}],clearable:!0},designKey:"design-Bvi44",name:"style.height"},{label:"背景色",component:"ColorInput",designKey:"form-YicU",name:"style.backgroundColor"},{label:"文字颜色",component:"ColorInput",designKey:"design-A2bj",name:"style.color"},{label:"缩放",component:"Slider",designKey:"design-A2sf",name:"style.transform",props:{min:50,max:150},initialValue:100,change:[{target:"style.transform",value:"{{ `scale(${$values.style.transform / 100 })` }}"}]},{children:[{label:"外间距",name:"margin",component:"TabsItem",children:[{props:{columns:2,columnGap:20,rowGap:20},component:"Grid",designKey:"design-QqeY",name:"form-3eBs",children:[{label:"上",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"design-F9CI",name:"style.marginTop"},{label:"下",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-XHJ7",name:"style.marginBottom"},{label:"左",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-Aeb5",name:"style.marginLeft"},{label:"右",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-g0Ss",name:"style.marginRight"}]}]},{label:"内间距",name:"padding",component:"TabsItem",children:[{props:{columns:2,columnGap:20,rowGap:20},component:"Grid",designKey:"design-QqeY",name:"form-3eBs",children:[{label:"上",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"design-F9CI",name:"style.paddingTop"},{label:"下",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-XHJ7",name:"style.paddingBottom"},{label:"左",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-Aeb5",name:"style.paddingLeft"},{label:"右",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-g0Ss",name:"style.paddingRight"}]}]}],props:{defaultKey:"margin",tabPosition:"top"},component:"Tabs",designKey:"design-WK8O",name:"form-e9YD"},{label:"自定义",component:"JsonEdit",designKey:"design-A2bj",name:"style"}]},R2={class:"more"},L2=A.defineComponent({__name:"index",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=A.useModel(n,"modelValue"),t=A.ref(!1);return(i,u)=>{const I=A.resolveComponent("el-divider"),o=A.resolveComponent("el-button"),b=A.resolveComponent("el-drawer");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("style-config"))},[A.createVNode(I,null,{default:A.withCtx(()=>u[4]||(u[4]=[A.createTextVNode("组件样式")])),_:1}),A.createVNode(A.unref(fn),{modelValue:e.value,"onUpdate:modelValue":u[0]||(u[0]=y=>e.value=y),schema:A.unref(N2),ref:"formRef"},null,8,["modelValue","schema"]),A.createElementVNode("div",R2,[A.createVNode(o,{type:"primary",plain:"",size:"small",onClick:u[1]||(u[1]=y=>t.value=!0)},{default:A.withCtx(()=>u[5]||(u[5]=[A.createTextVNode("自定义更多样式")])),_:1})]),A.createVNode(b,{modelValue:t.value,"onUpdate:modelValue":u[3]||(u[3]=y=>t.value=y),title:"组件样式"},{default:A.withCtx(()=>[A.createVNode(A.unref(fn),{modelValue:e.value,"onUpdate:modelValue":u[2]||(u[2]=y=>e.value=y),schema:A.unref(F2),ref:"formRef",style:{padding:"0 15px"}},null,8,["modelValue","schema"])]),_:1},8,["modelValue"])],2)}}}),G2=A.defineComponent({__name:"index",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=zo(),t=nc(),i=A.useModel(n,"modelValue"),u=A.computed(()=>{const o=e[i.value.component];if(o!=null&&o.attrSchema){const b=(w=[])=>w.map(M=>{const N=ma(i.value,M.name),P=ut.isString(N)&&/^{{\s*(.*?)\s*}}$/.test(N);return{...M,label:t.value==="zh"?M.label:M.name.split(".").pop(),component:P?"Input":M.component,dialog:P||M.dialog,children:M.children&&b(M.children)}}),y=b(o.attrSchema.items);return{...o.attrSchema,items:[{label:"组件类型",component:"Tag",name:"componentType",props:{text:o.title,style:{marginBottom:"10px"}}},...y]}}return{size:"small",labelPosition:"top",items:[]}}),I=A.computed({get(){var o;return((o=i.value)==null?void 0:o.props)||{}},set(o){i.value=ko(i.value,"props",o)}});return(o,b)=>(A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("attr"))},[(A.openBlock(),A.createBlock(A.unref(fn),{key:i.value.designKey,modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=y=>i.value=y),schema:u.value},null,8,["modelValue","schema"])),(A.openBlock(),A.createBlock(L2,{key:i.value.designKey,modelValue:I.value,"onUpdate:modelValue":b[1]||(b[1]=y=>I.value=y)},null,8,["modelValue"])),A.createVNode(S2,{modelValue:i.value,"onUpdate:modelValue":b[2]||(b[2]=y=>i.value=y)},null,8,["modelValue"])],2))}}),P2={size:"small",labelPosition:"top",items:[{label:"label宽度",component:"InputNumber",name:"labelWidth",props:{min:60,unit:"px",step:10},initialValue:150},{label:"label对齐方式",component:"Radio",name:"labelPosition",props:{mode:"static",options:[{label:"左对齐",value:"left"},{label:"居上",value:"top"},{label:"右对齐",value:"right"}]},initialValue:"right"},{label:"表单组件尺寸",component:"Radio",name:"size",props:{mode:"static",options:[{label:"默认",value:"default"},{label:"较小",value:"small"},{label:"较大",value:"large"}]},initialValue:"default"},{label:"禁用整个表单",component:"Switch",name:"disabled"},{label:"隐藏必填星号",component:"Switch",name:"hideRequiredAsterisk"},{label:"label加粗",component:"Switch",name:"labelBold"},{label:"自动滚动到校验失败的第一项",component:"Switch",name:"scrollToError"},{label:"规则文件路径",component:"Input",name:"rulePath"},{label:"表单编码",component:"Input",name:"key"},{label:"数据对象",component:"Input",name:"dataModel"}]},H2=A.defineComponent({__name:"FormEdit",setup(n){const e=Sn(),t=A.computed({get(){return e.schema},set(i){e.updateSchema(i)}});return(i,u)=>(A.openBlock(),A.createBlock(A.unref(fn),{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=I=>t.value=I),schema:A.unref(P2)},null,8,["modelValue","schema"]))}}),K2=A.defineComponent({__name:"index",setup(n){const e=gi(),t=Sn();return A.watch(()=>t.current,i=>{i||(t.rightTab="form")}),(i,u)=>{const I=A.resolveComponent("el-tab-pane"),o=A.resolveComponent("el-tabs");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("form-design-right"))},[A.createVNode(o,{modelValue:A.unref(t).rightTab,"onUpdate:modelValue":u[1]||(u[1]=b=>A.unref(t).rightTab=b)},{default:A.withCtx(()=>[A.unref(t).current?(A.openBlock(),A.createBlock(I,{key:0,label:A.unref(e).attr.tab1.title,name:"attr"},{default:A.withCtx(()=>[A.createVNode(G2,{modelValue:A.unref(t).current,"onUpdate:modelValue":u[0]||(u[0]=b=>A.unref(t).current=b)},null,8,["modelValue"])]),_:1},8,["label"])):A.createCommentVNode("",!0),A.createVNode(I,{label:A.unref(e).attr.tab2.title,name:"form"},{default:A.withCtx(()=>[A.createVNode(H2)]),_:1},8,["label"])]),_:1},8,["modelValue"])],2)}}}),wC=A.defineComponent({__name:"index",props:A.mergeModels({schemaContext:{default:()=>({})},templates:{default:()=>[]},omitMenus:{default:()=>[]}},{modelValue:{default:A.reactive({labelWidth:150,labelPosition:"right",scrollToError:!0,size:"default",items:[]})},modelModifiers:{}}),emits:A.mergeModels(["onSave","save","add"],["update:modelValue"]),setup(n,{emit:e}){const t=n,i=e,u=A.ref(""),I=A.useModel(n,"modelValue"),o=A.computed({get(){return I.value.items},set(w){I.value.items=w}}),b=A.computed({get(){return tc(o.value,u.value)},set(w){u.value=w.designKey,o.value=Rd(o.value,w)}}),y=A.reactive({...A.toRefs(t),currentKey:u,hoverKey:"",schema:I,current:b,list:o,rightTab:"form",updateCurrent(w){y.current=w},updateHoverKey(w){y.hoverKey=w},updateSchema:w=>{Object.assign(I.value,w)},updateList:w=>{o.value=w},handleEmit:(w,M)=>{i(w,M)}});return A.provide(Nd,y),(w,M)=>(A.openBlock(),A.createElementBlock("div",A.mergeProps({class:A.unref(je)("form-design")},w.$attrs),[A.createVNode(p2),A.createVNode(D2),A.createVNode(K2)],16))}}),T2={class:"card-header"},U2={class:"card-btns"},Y2={key:0,class:"switch-panel"},O2=ie(A.defineComponent({__name:"CardWrapper",props:{collapsible:{type:Boolean},header:{},btns:{},tableType:{default:"table"},typeSwitch:{type:Boolean,default:!1},switchTableType:{},shadowless:{type:Boolean}},setup(n){const e=n,t=A.ref(!1),i=A.computed(()=>e.btns?e.btns.map(u=>({isLinkBtn:!0,...u})):[]);return(u,I)=>{const o=A.resolveComponent("el-collapse-transition"),b=A.resolveComponent("ElCard");return A.openBlock(),A.createBlock(b,A.mergeProps(u.$attrs,{class:["crm-card",{collapsed:t.value,shadowless:u.shadowless}],shadow:"never"}),{header:A.withCtx(()=>[A.createElementVNode("div",T2,[u.collapsible?(A.openBlock(),A.createElementBlock("div",{key:0,class:"icon-wrapper",onClick:I[0]||(I[0]=y=>t.value=!t.value)},[A.createVNode(A.unref(Ie),{name:"dropdown",class:A.normalizeClass(["dropdown-icon",{"is-collapsed":t.value}])},null,8,["class"])])):A.createCommentVNode("",!0),A.createElementVNode("span",null,A.toDisplayString(u.header),1),A.createElementVNode("div",U2,[u.typeSwitch?(A.openBlock(),A.createElementBlock("div",Y2,[A.createElementVNode("div",{class:A.normalizeClass(["switch-icon-wrapper",{active:u.tableType==="card"}]),onClick:I[1]||(I[1]=y=>u.switchTableType("card"))},[A.createVNode(xe,{name:"icon-kapian"})],2),A.createElementVNode("div",{class:A.normalizeClass(["switch-icon-wrapper",{active:u.tableType==="table"}]),onClick:I[2]||(I[2]=y=>u.switchTableType("table"))},[A.createVNode(xe,{name:"icon-biaoge"})],2)])):A.createCommentVNode("",!0),A.createElementVNode("div",null,[A.createVNode(A.unref(lo),{btns:i.value||[]},null,8,["btns"])])])])]),default:A.withCtx(()=>[A.createVNode(o,null,{default:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",null,[A.renderSlot(u.$slots,"default",{},void 0,!0)],512),[[A.vShow,!t.value]])]),_:3})]),_:3},16,["class"])}}}),[["__scopeId","data-v-d8e65e0c"]]),$2={class:"empty-content"},z2=["title"],J2=["title","onClick"],Z2={key:1,class:"icon-text-wrapper"},W2=["title"],j2=["title"],q2={class:"row-btn-wrapper"},bC=ie(A.defineComponent({__name:"TableContent",props:A.mergeModels({tableData:{},total:{},hasVisibleRowBtn:{type:Boolean},handleSizeChange:{type:Function},handlePageChange:{type:Function},handleRowClick:{type:Function},handleRowDblclick:{type:Function},handleSelectionChange:{type:Function},handleCurrentChange:{type:Function},getColText:{type:Function},getGlobalParams:{type:Function},handleClick:{type:Function},schema:{},selectable:{type:Function},getIconInfo:{type:Function}},{pagination:{required:!0},paginationModifiers:{}}),emits:["update:pagination"],setup(n,{expose:e}){const t=A.useModel(n,"pagination"),i=A.useTemplateRef("tableRef");return e({tableRef:i}),(u,I)=>{const o=A.resolveComponent("el-table-column"),b=A.resolveComponent("el-tooltip"),y=A.resolveComponent("el-button"),w=A.resolveComponent("FormItemGroup"),M=A.resolveComponent("el-popover"),N=A.resolveComponent("el-table"),P=A.resolveComponent("el-pagination");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(["table-render",{tableBorder:u.schema.displayType==="table",[u.schema.key]:!0}])},[A.withDirectives(A.createElementVNode("div",null,[A.createVNode(N,{ref_key:"tableRef",ref:i,data:u.tableData,stripe:u.schema.stripe,"highlight-current-row":"","row-key":u.schema.rowKey,onRowClick:u.handleRowClick,onRowDblclick:u.handleRowDblclick,onSelectionChange:u.handleSelectionChange,onCurrentChange:u.handleCurrentChange,height:u.schema.height},{empty:A.withCtx(()=>[A.createElementVNode("div",$2,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),I[2]||(I[2]=A.createElementVNode("div",null,"No data available,please check",-1))])]),default:A.withCtx(()=>{var Y;return[u.schema.multipleSelection?(A.openBlock(),A.createBlock(o,{key:0,type:"selection",width:"55",selectable:u.selectable},null,8,["selectable"])):A.createCommentVNode("",!0),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.schema.columns,G=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:G.key},[G.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(o,{key:0,prop:G.key,"min-width":G.minWidth,fixed:G.fixed||!1,sortable:G.sortable??u.schema.sortable??!0},{header:A.withCtx(()=>[A.createElementVNode("div",{class:"text-ellipsis",title:G.label},A.toDisplayString(G.label),9,z2)]),default:A.withCtx(({row:K,$index:D})=>{var E,L,_,v;return[G.type==="link"?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["text-ellipsis link-style",{"click-style":G.onClick}]),title:u.getColText(G,K),onClick:B=>u.handleClick(G,K,D,B)},A.toDisplayString(u.getColText(G,K)),11,J2)):G.type==="iconText"?(A.openBlock(),A.createElementBlock("div",Z2,[G.iconPosition==="left"?(A.openBlock(),A.createBlock(xe,{key:0,name:(E=u.getIconInfo(G,K))==null?void 0:E.name,color:(L=u.getIconInfo(G,K))==null?void 0:L.color},null,8,["name","color"])):A.createCommentVNode("",!0),A.createElementVNode("span",{class:"text-ellipsis",title:u.getColText(G,K)},A.toDisplayString(u.getColText(G,K)),9,W2),G.iconPosition==="right"?(A.openBlock(),A.createBlock(xe,{key:1,name:(_=u.getIconInfo(G,K))==null?void 0:_.name,color:(v=u.getIconInfo(G,K))==null?void 0:v.color},null,8,["name","color"])):A.createCommentVNode("",!0)])):(A.openBlock(),A.createElementBlock("div",{key:2,class:A.normalizeClass({"text-ellipsis":!G.noEllipsis}),title:u.getColText(G,K)},A.toDisplayString(u.getColText(G,K)),11,j2))]}),_:2},1032,["prop","min-width","fixed","sortable"]))],64))),128)),u.hasVisibleRowBtn&&((Y=u.schema.rowBtns)!=null&&Y.length)?(A.openBlock(),A.createBlock(o,{key:1,label:u.schema.rowBtnsLabel||"Action",fixed:"right",align:"left",width:u.schema.rowBtnsWidth||(u.schema.rowBtns.length*34+12>100?u.schema.rowBtns.length*34+12:100)},{default:A.withCtx(({row:G,$index:K})=>[A.createElementVNode("div",q2,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.schema.rowBtns,D=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:D.key},[D.component==="Popover"?(A.openBlock(),A.createBlock(M,{key:0},{reference:A.withCtx(()=>[D.condition===void 0||D.condition===null||A.unref(Rt)(D.condition,{$row:G,$globalParams:u.getGlobalParams()})?(A.openBlock(),A.createBlock(y,{key:0,disabled:D.disabled,link:"",size:"small",type:D.type,onClick:E=>u.handleClick(D,G,K,E)},{default:A.withCtx(()=>[A.createVNode(b,{class:"box-item",effect:"dark",content:D.label,placement:"top","popper-class":"low-tsp","show-after":300},{default:A.withCtx(()=>[D.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:D.icon.name,color:D.icon.color},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"]),D.buttonText?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:D.buttonText.color,fontSize:"14px"})},A.toDisplayString(A.unref(Rt)(D.buttonText.text,{$row:G,$globalParams:u.getGlobalParams()})),5)):A.createCommentVNode("",!0)]),_:2},1032,["disabled","type","onClick"])):A.createCommentVNode("",!0)]),default:A.withCtx(()=>[A.createElementVNode("div",null,[A.createVNode(w,{list:D.children},null,8,["list"])])]),_:2},1024)):(A.openBlock(),A.createElementBlock(A.Fragment,{key:1},[D.condition===void 0||D.condition===null||A.unref(Rt)(D.condition,{$row:G,$globalParams:u.getGlobalParams()})?(A.openBlock(),A.createBlock(y,{key:0,disabled:D.disabled,link:"",size:"small",type:D.type,onClick:E=>u.handleClick(D,G,K,E)},{default:A.withCtx(()=>[A.createVNode(b,{class:"box-item",effect:"dark",content:D.label,placement:"top","popper-class":"low-tsp","show-after":300},{default:A.withCtx(()=>[D.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:D.icon.name,color:D.icon.color},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"]),D.buttonText?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:D.buttonText.color,fontSize:"14px"})},A.toDisplayString(A.unref(Rt)(D.buttonText.text,{$row:G,$globalParams:u.getGlobalParams()})),5)):A.createCommentVNode("",!0)]),_:2},1032,["disabled","type","onClick"])):A.createCommentVNode("",!0)],64))],64))),128))])]),_:1},8,["label","width"])):A.createCommentVNode("",!0)]}),_:1},8,["data","stripe","row-key","onRowClick","onRowDblclick","onSelectionChange","onCurrentChange","height"])],512),[[A.vShow,u.schema.displayType==="table"]]),A.withDirectives(A.createVNode(ic,A.mergeProps(u.schema,{data:u.tableData,"get-col-text":u.getColText}),null,16,["data","get-col-text"]),[[A.vShow,u.schema.displayType==="card"]]),A.createElementVNode("div",{class:A.normalizeClass(["pagination-wrapper",{hidePagination:u.schema.hiddenPagination||u.tableData.length===0,cardlistPadding:u.schema.displayType==="card"}])},[A.createVNode(P,{layout:u.schema.paginationLayout||"total,sizes, prev, pager, next,jumper",total:u.total,"page-sizes":u.schema.pageSizes||[5,6,10,20,30,40],"default-page-size":u.schema.defaultPageSize,"current-page":t.value.pageNum,"onUpdate:currentPage":I[0]||(I[0]=Y=>t.value.pageNum=Y),"page-size":t.value.pageSize,"onUpdate:pageSize":I[1]||(I[1]=Y=>t.value.pageSize=Y),"pager-count":u.schema.pagerCount,onSizeChange:u.handleSizeChange,onCurrentChange:u.handlePageChange},null,8,["layout","total","page-sizes","default-page-size","current-page","page-size","pager-count","onSizeChange","onCurrentChange"])],2)],2)}}}),[["__scopeId","data-v-7dfcef5f"]]),X2=["id"],rg=A.defineComponent({__name:"index",props:A.mergeModels({design:{type:Boolean},read:{type:Boolean},pageRulePath:{},pageKey:{}},{schema:{required:!0},schemaModifiers:{},modelValue:{default:[]},modelModifiers:{}}),emits:["update:schema","update:modelValue"],setup(n,{expose:e}){const t=n,i=A.useModel(n,"schema"),u=A.computed(()=>i.value.rulePath&&I[i.value.rulePath]?i.value.rulePath:t.pageRulePath),I=A.inject("ruleMap",{}),o=A.inject("pageMethodMap",{}),b=A.inject("getGlobalParams",()=>{}),y=A.inject(jn),w=y?y.translateFn:null;u.value&&A.provide("ruleModule",I[u.value]);const M=A.useTemplateRef("tableContentRef"),N=A.useModel(n,"modelValue"),P=(BA,j)=>{const tA=i.value.columns.find(rA=>rA.key===BA);tA&&(tA.hidden=!j)},Y=(BA,j,tA,rA)=>{if(u.value)try{I[u.value][BA.onClick](o,j,tA),rA==null||rA.stopPropagation()}catch(gA){console.error(gA)}},G=BA=>{if(!(!i.value.rowClick||!u.value))try{I[u.value][i.value.rowClick](o,BA)}catch(j){console.error(j)}},K=BA=>{if(!(!i.value.rowDbClick||!u.value))try{I[u.value][i.value.rowDbClick](o,BA)}catch(j){console.error(j)}},D=A.ref([]),E=BA=>{D.value=BA},L=(BA,j)=>{if(!i.value.selectable||!u.value)return!0;try{return I[u.value][i.value.selectable](o,BA,j)}catch(tA){console.error(tA)}return!0},_=(BA,j,tA)=>{N.value[BA]&&(N.value[BA][j]=tA)},v=()=>{var BA,j;(j=(BA=M.value)==null?void 0:BA.tableRef)==null||j.clearSelection()},B=()=>N.value,p=A.ref(),d=BA=>{if(p.value=BA,!(!i.value.handleCurrentChange||!u.value))try{I[u.value][i.value.handleCurrentChange](o,BA)}catch(j){console.error(j)}},l=()=>p.value,g=()=>{var BA,j;return(j=(BA=M.value)==null?void 0:BA.tableRef)==null?void 0:j.getSelectionRows()},s=(BA={})=>{N.value.push(BA)},h=BA=>{BA>=0&&BA<N.value.length&&N.value.splice(BA,1)},C=async()=>{N.value=[...N.value]},a=async()=>!0,r=BA=>{N.value=BA},m=(BA,j)=>{var rA;const tA=(rA=i.value.topBtns)==null?void 0:rA.find(gA=>gA.key===BA);tA&&(tA.hidden=j)},Q=(BA,j)=>{var rA;const tA=(rA=i.value.rowBtns)==null?void 0:rA.find(gA=>gA.key===BA);tA&&(tA.condition=!j)},x=A.computed(()=>!i.value.rowBtns||i.value.rowBtns.length===0||!N.value||N.value.length===0?!1:N.value.some(BA=>{var j;return(j=i.value.rowBtns)==null?void 0:j.some(tA=>tA.condition===void 0||tA.condition===null?!0:Rt(tA.condition,{$row:BA,$globalParams:b()}))})),S=A.ref(0),T=BA=>{S.value=BA},$=A.ref({pageNum:1,pageSize:i.value.defaultPageSize||5}),eA=A.ref({pageNum:1,pageSize:i.value.defaultPageSize||5}),W=()=>$.value,J=BA=>{let j=!1;return BA.pageNum!==void 0&&BA.pageNum>-1&&($.value.pageNum!==BA.pageNum&&(j=!0),$.value.pageNum=BA.pageNum),BA.pageSize!==void 0&&BA.pageSize>-1&&($.value.pageSize!==BA.pageSize&&(j=!0),$.value.pageSize=BA.pageSize),{pagination:$.value,isChange:j}},O=async BA=>{var rA;if($.value.pageNum=1,$.value.pageSize=BA,!i.value.sizeChange||!u.value)return;const j=(rA=document.getElementById(t.pageKey))==null?void 0:rA.querySelector(`.${i.value.key}`),tA=Ht.ElLoading.service({target:j||`#${i.value.key}`,text:"Loading..."});try{await I[u.value][i.value.sizeChange](o,$.value),eA.value.pageNum=$.value.pageNum,eA.value.pageSize=$.value.pageSize}catch(gA){console.error(gA),$.value.pageNum=eA.value.pageNum,$.value.pageSize=eA.value.pageSize}finally{tA.close()}},q=async BA=>{var rA;if($.value.pageNum=BA,!i.value.pageChange||!u.value)return;const j=(rA=document.getElementById(t.pageKey))==null?void 0:rA.querySelector(`.${i.value.key}`),tA=Ht.ElLoading.service({target:j||`#${i.value.key}`,text:"Loading..."});try{await I[u.value][i.value.pageChange](o,$.value),eA.value.pageNum=$.value.pageNum,eA.value.pageSize=$.value.pageSize}catch(gA){console.error(gA),$.value.pageNum=eA.value.pageNum,$.value.pageSize=eA.value.pageSize}finally{tA.close()}},k=BA=>{var j,tA;(tA=(j=M.value)==null?void 0:j.tableRef)==null||tA.setCurrentRow(BA)},V=BA=>{var j,tA;(tA=(j=M.value)==null?void 0:j.tableRef)==null||tA.setCurrentRow(N.value[BA])},H=(BA,j,tA)=>{i.value.columns.forEach(rA=>{rA.key===BA&&rA[j]&&(rA[j]=tA)})},AA=BA=>{i.value.displayType=BA},sA=BA=>{i.value.shadowless=BA},oA=(BA,j)=>{const tA=w?w(BA.key,j):j[BA.key];if(!Rt(BA.encrypted,{$row:j,$col:BA})||!tA)return tA;const gA=`${tA}`;return gA.length<=4?"*".repeat(gA.length):gA.slice(0,-4)+"****"},dA=(BA,j)=>{if(!(!BA.getIconInfo||!u.value))try{return I[u.value][BA.getIconInfo](o,j,BA)}catch(tA){console.error(tA)}},EA=A.useTemplateRef("rootRef");i.value.displayType||(i.value.displayType=i.value.typeSwitch?"card":"table"),A.onMounted(async()=>{if(!i.value||!i.value.onMounted||!u.value)return;await A.nextTick();const BA=i.value.onMounted;try{I[u.value][BA](o)}catch(j){console.error(j)}}),A.onActivated(()=>{if(!i.value||!i.value.onActivated||!u.value)return;const BA=i.value.onActivated;try{I[u.value][BA](o)}catch(j){console.error(j)}});const uA=A.readonly({...A.toRefs(t),setCellData:_,clearSelection:v,getData:B,getCurrentRow:l,getSelectedRows:g,addRow:s,deleteRow:h,refresh:C,validate:a,setData:r,selectRow:k,selectRowNum:V,setTotal:T,getPagination:W,setPagination:J,setTopBtnHidden:m,setColVisible:P,setColumn:H,setRowsBtnHidden:Q,setShadowless:sA,rootRef:EA,type:"table"});return e(uA),(BA,j)=>i.value.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,ref_key:"rootRef",ref:EA,id:i.value.key},[i.value.cardless?(A.openBlock(),A.createBlock(bC,{key:1,ref_key:"tableContentRef",ref:M,tableData:N.value,total:S.value,hasVisibleRowBtn:x.value,handleSizeChange:O,handlePageChange:q,handleRowClick:G,handleRowDblclick:K,handleSelectionChange:E,handleCurrentChange:d,getColText:oA,getGlobalParams:A.unref(b),handleClick:Y,selectable:L,schema:i.value,getIconInfo:dA,pagination:$.value,"onUpdate:pagination":j[1]||(j[1]=tA=>$.value=tA)},null,8,["tableData","total","hasVisibleRowBtn","getGlobalParams","schema","pagination"])):(A.openBlock(),A.createBlock(O2,{key:0,header:i.value.title,btns:i.value.topBtns,collapsible:i.value.collapsible!==!1,switchTableType:AA,tableType:i.value.displayType,typeSwitch:i.value.typeSwitch,shadowless:i.value.shadowless},{default:A.withCtx(()=>[A.createVNode(bC,{ref_key:"tableContentRef",ref:M,tableData:N.value,total:S.value,hasVisibleRowBtn:x.value,handleSizeChange:O,handlePageChange:q,handleRowClick:G,handleRowDblclick:K,handleSelectionChange:E,handleCurrentChange:d,getColText:oA,getGlobalParams:A.unref(b),handleClick:Y,selectable:L,schema:i.value,getIconInfo:dA,pagination:$.value,"onUpdate:pagination":j[0]||(j[0]=tA=>$.value=tA)},null,8,["tableData","total","hasVisibleRowBtn","getGlobalParams","schema","pagination"])]),_:1},8,["header","btns","collapsible","tableType","typeSwitch","shadowless"]))],8,X2))}}),V2=["id"],A8={class:"tab-label"},e8={class:"tab-label-text"},t8={key:0,class:"divider"},n8=ie(A.defineComponent({__name:"index",props:A.mergeModels({ruleMap:{},pageParams:{},pageRulePath:{}},{schema:{required:!0},schemaModifiers:{}}),emits:A.mergeModels(["addPageParams"],["update:schema"]),setup(n,{expose:e,emit:t}){const i=A.useModel(n,"schema"),u=A.ref({}),I=t,o=A.ref({}),b=B=>p=>{p?o.value[B]=p:delete o.value[B]},y=n,w=A.computed(()=>{var B;return(B=i.value.content.find(p=>p.url===P.value))==null?void 0:B.mixMode}),M=B=>{i.value.content=B},N=B=>{Array.isArray(B)?i.value.content.push(...B):i.value.content.push(B)},P=A.ref(i.value.content[0].url),Y=B=>{u.value[B]=!0,A.nextTick(()=>{u.value[B]=!1})},G=A.useTemplateRef("rootRef"),K=B=>o.value[B],D=(B,p)=>{p&&I("addPageParams",p),A.nextTick(()=>{P.value=B,v(B)})},E=(B,p)=>{const d=i.value.content.find(l=>l.url===B);d&&(d.mixMode=p)},L=A.inject("pageMethodMap",{}),_=A.computed(()=>i.value.rulePath&&y.ruleMap[i.value.rulePath]?i.value.rulePath:y.pageRulePath),v=B=>{o.value[B]&&o.value[B].activate();const p=i.value.onChange;try{p&&y.ruleMap[_.value][p](L,B)}catch{}};return e(A.readonly({setTabContent:M,addTabContent:N,schema:i,rootRef:G,findRef:K,changeActiveTab:D,type:"tabs"})),(B,p)=>{var s,h,C;const d=A.resolveComponent("el-skeleton"),l=A.resolveComponent("el-tab-pane"),g=A.resolveComponent("el-tabs");return A.openBlock(),A.createElementBlock("div",{ref_key:"rootRef",ref:G,id:i.value.key},[i.value.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(g,A.mergeProps({key:0},i.value.tabProps,{modelValue:P.value,"onUpdate:modelValue":p[0]||(p[0]=a=>P.value=a),class:["crm-tabs",{mixmode:w.value}],style:{"--top":(s=i.value)!=null&&s.stickyTop?`${(h=i.value)==null?void 0:h.stickyTop}px`:"110px","--is-sticky":(C=i.value)!=null&&C.isSticky?"sticky":"static"},onTabChange:v}),{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(i.value.content,(a,r)=>(A.openBlock(),A.createBlock(l,{name:a.key||a.url,key:a.key||a.url,lazy:r!==0},{label:A.withCtx(()=>[A.createElementVNode("div",A8,[A.createElementVNode("span",e8,A.toDisplayString(a.label),1),r!==i.value.content.length-1?(A.openBlock(),A.createElementBlock("span",t8)):A.createCommentVNode("",!0)])]),default:A.withCtx(()=>[u.value[r]?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(ag,{key:0,pageUrl:a.url,"rule-map":B.ruleMap,"page-params":a.pageParams?{...B.pageParams,...a.pageParams}:B.pageParams,ref_for:!0,ref:b(a.url),onRefresh:m=>Y(r),onChangeTab:D,onChangeMixMode:E},{loading:A.withCtx(()=>[A.createVNode(d,{rows:5,animated:""})]),_:2},1032,["pageUrl","rule-map","page-params","onRefresh"]))]),_:2},1032,["name","lazy"]))),128))]),_:1},16,["modelValue","style","class"]))],8,V2)}}}),[["__scopeId","data-v-7ac2d7d6"]]),i8=["id"],o8={class:"info-card-header"},r8={class:"left-part"},a8={class:"title-part"},s8={class:"sub-title-container"},l8={class:"right-part"},c8={class:"info info-card-infos"},g8={class:"info-label"},u8={class:"ml-2"},d8={class:"info-card-detail"},h8={class:"info-card-detail-left"},p8={class:"label"},C8={key:0,class:"divider"},B8={key:0,class:"info-card-detail-right"},m8={key:0},E8={key:1,class:"detail-right-label"},Q8={key:2,class:"detail-right-value"},I8=ie(A.defineComponent({__name:"InfoCard",props:A.mergeModels({pageRulePath:{}},{schema:{required:!0},schemaModifiers:{}}),emits:["update:schema"],setup(n,{expose:e}){const t=A.useModel(n,"schema"),i=A.inject("ruleMap",{}),u=n,I=A.computed(()=>t.value.rulePath&&i[t.value.rulePath]?i[t.value.rulePath]:i[u.pageRulePath]);A.provide("ruleModule",I.value);const o=A.inject("pageMethodMap",{}),b=N=>{const P=document.createElement("textarea");P.value=N??"",P.style.position="absolute",P.style.opacity="0",document.body.appendChild(P),P.select(),document.execCommand("copy"),P.remove()},y=async()=>{try{await navigator.clipboard.writeText(t.value.header.subTitle)}catch(N){console.error("Clipboard API error:",N),b(t.value.header.subTitle)}Ht.ElMessage.success("Copy Successful")},w=N=>{var P;if(I.value[N||"clickTitleIcon"])try{I.value[N||"clickTitleIcon"](o,(P=t.value.header)==null?void 0:P.titleIcon)}catch(Y){console.error(Y+`
193
193
 
194
194
  rulePath: ${t.value.rulePath}
195
195
 
@@ -214,9 +214,9 @@ mountedFuncName: ${N}
214
214
  rulePath: ${t.value.rulePath}
215
215
 
216
216
  mountedFuncName: ${N}
217
- `)}}),e({type:"infocard",schema:t}),(N,P)=>{const Y=A.resolveComponent("el-scrollbar");return t.value.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,class:"info-card-container",id:t.value.key},[A.createVNode(Y,{class:"info-card",always:""},{default:A.withCtx(()=>{var G,K,D,E,L,_,v,B,p,d,l;return[A.createElementVNode("div",o8,[A.createElementVNode("div",r8,[A.createElementVNode("div",{class:"avatar",style:A.normalizeStyle(t.value.header.avatarBgColor?{backgroundColor:t.value.header.avatarBgColor}:{})},[A.createVNode(xe,{name:(G=t.value.header)==null?void 0:G.avatar,color:(K=t.value.header)==null?void 0:K.avatarIconColor,size:t.value.header.avatarSize||"small"},null,8,["name","color","size"])],4),A.createElementVNode("div",a8,[A.createElementVNode("div",{class:A.normalizeClass(["title",(D=t.value.header)!=null&&D.titleClick?"is-click":""]),style:A.normalizeStyle(t.value.header.titleColor?{color:t.value.header.titleColor}:{})},[A.createElementVNode("span",{class:A.normalizeClass((E=t.value.header)!=null&&E.titleClick?"cursor-pointer":""),onClick:P[0]||(P[0]=g=>{var s;return w((s=t.value.header)==null?void 0:s.titleClick)})},A.toDisplayString((L=t.value.header)==null?void 0:L.title),3),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList((_=t.value.header)==null?void 0:_.titleIcons,(g,s)=>(A.openBlock(),A.createBlock(xe,{key:s,name:g.icon,class:"title-icon",size:(g==null?void 0:g.size)||"large",onClick:h=>w(g.onClick)},null,8,["name","size","onClick"]))),128)),A.createVNode(A.unref(lo),{class:"title-icon",btns:(v=t.value.header)==null?void 0:v.btns},null,8,["btns"])],6),A.createElementVNode("div",s8,[A.createElementVNode("span",{class:A.normalizeClass(["sub-title",{clickStyle:(B=t.value.header)==null?void 0:B.subTitleClick}]),onClick:P[1]||(P[1]=g=>{var s;return M((s=t.value.header)==null?void 0:s.subTitleClick)})},A.toDisplayString((p=t.value.header)==null?void 0:p.subTitlePrefix)+A.toDisplayString((d=t.value.header)==null?void 0:d.subTitle),3),A.createVNode(xe,{name:"icon-fuzhi",class:"copy-icon",onClick:y}),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList((l=t.value.header)==null?void 0:l.subTitleIcons,(g,s)=>{var h,C;return A.openBlock(),A.createBlock(xe,{key:s,name:(h=g.icon)==null?void 0:h.name,color:(C=g.icon)==null?void 0:C.color,class:"title-icon ml-2 cursor-pointer",onClick:a=>w(g.onClick)},null,8,["name","color","onClick"])}),128))])])]),A.createElementVNode("div",l8,[A.createElementVNode("div",c8,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(t.value.infos,g=>(A.openBlock(),A.createElementBlock("div",{key:g.key,class:"info-item"},[A.createElementVNode("span",g8,A.toDisplayString(g.label)+": ",1),A.createElementVNode("span",{class:A.normalizeClass(["info-value",g.type])},A.toDisplayString(g.value||"-"),3),A.createElementVNode("div",u8,[g.expendComponents?(A.openBlock(),A.createBlock(A.unref(mt),{key:0,class:"expend-components",list:g.expendComponents},null,8,["list"])):A.createCommentVNode("",!0)])]))),128))]),A.createVNode(A.unref(lo),{btns:t.value.btns},null,8,["btns"]),A.createVNode(A.unref(W_),{dropdowns:t.value.dropdowns},null,8,["dropdowns"])])]),A.createElementVNode("div",d8,[A.createElementVNode("div",h8,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(t.value.detail,(g,s)=>(A.openBlock(),A.createElementBlock("div",{key:g.label,class:"detail-item"},[A.createElementVNode("div",null,[A.createElementVNode("div",p8,A.toDisplayString(g.label),1),A.createElementVNode("div",{class:"value",style:A.normalizeStyle(g.color?{color:g.color}:{})},A.toDisplayString(g.value||"- -"),5)]),s!==t.value.detail.length-1?(A.openBlock(),A.createElementBlock("div",C8)):A.createCommentVNode("",!0)]))),128))]),t.value.bottomRightDetail||t.value.bottomRightFormSlots?(A.openBlock(),A.createElementBlock("div",B8,[t.value.bottomRightFormSlots?(A.openBlock(),A.createElementBlock("div",m8,[A.createVNode(A.unref(mt),{list:t.value.bottomRightFormSlots},null,8,["list"])])):A.createCommentVNode("",!0),t.value.bottomRightDetail?(A.openBlock(),A.createElementBlock("div",E8,A.toDisplayString(t.value.bottomRightDetail.label),1)):A.createCommentVNode("",!0),t.value.bottomRightDetail?(A.openBlock(),A.createElementBlock("div",Q8,A.toDisplayString(t.value.bottomRightDetail.value),1)):A.createCommentVNode("",!0)])):A.createCommentVNode("",!0)])]}),_:1})],8,i8))}}}),[["__scopeId","data-v-a77fab5d"]]),f8=["id"],w8={class:"left-part"},b8={class:"nav-title"},y8=["onClick"],D8={class:"nav-footer"},v8={class:"left-actions"},k8=["onClick"],_8={class:"footer-text"},M8={key:1,class:"divider"},x8={class:"right-actions"},S8=ie(A.defineComponent({__name:"NavBar",props:A.mergeModels({pageRulePath:{},findRef:{type:Function}},{schema:{required:!0},schemaModifiers:{}}),emits:["update:schema"],setup(n,{expose:e}){const t=A.useModel(n,"schema"),i=A.computed(()=>(t.value.leftActions||[]).filter(P=>!P.hidden)),u=A.inject("ruleMap",{}),I=A.inject("pageMethodMap",{}),o=n,b=A.computed(()=>t.value.rulePath&&u[t.value.rulePath]?u[t.value.rulePath]:u[o.pageRulePath]);A.provide("ruleModule",b.value);const y=P=>{if(P&&b.value)try{b.value[P](I)}catch(Y){console.error(Y+`
217
+ `)}}),e({type:"infocard",schema:t}),(N,P)=>{const Y=A.resolveComponent("el-popover"),G=A.resolveComponent("el-scrollbar");return t.value.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,class:"info-card-container",id:t.value.key},[A.createVNode(G,{class:"info-card",always:""},{default:A.withCtx(()=>{var K,D,E,L,_,v,B,p,d,l,g;return[A.createElementVNode("div",o8,[A.createElementVNode("div",r8,[A.createElementVNode("div",{class:"avatar",style:A.normalizeStyle(t.value.header.avatarBgColor?{backgroundColor:t.value.header.avatarBgColor}:{})},[A.createVNode(xe,{name:(K=t.value.header)==null?void 0:K.avatar,color:(D=t.value.header)==null?void 0:D.avatarIconColor,size:t.value.header.avatarSize||"small"},null,8,["name","color","size"])],4),A.createElementVNode("div",a8,[A.createElementVNode("div",{class:A.normalizeClass(["title",(E=t.value.header)!=null&&E.titleClick?"is-click":""]),style:A.normalizeStyle(t.value.header.titleColor?{color:t.value.header.titleColor}:{})},[A.createElementVNode("span",{class:A.normalizeClass((L=t.value.header)!=null&&L.titleClick?"cursor-pointer":""),onClick:P[0]||(P[0]=s=>{var h;return w((h=t.value.header)==null?void 0:h.titleClick)})},A.toDisplayString((_=t.value.header)==null?void 0:_.title),3),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList((v=t.value.header)==null?void 0:v.titleIcons,(s,h)=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:h},[s.type==="popover"?(A.openBlock(),A.createBlock(Y,{key:0,width:s.popoverWidth},{reference:A.withCtx(()=>[A.createVNode(xe,{name:s.icon,class:"title-icon",size:(s==null?void 0:s.size)||"large",onClick:C=>w(s.onClick)},null,8,["name","size","onClick"])]),default:A.withCtx(()=>[s.popoverContent?(A.openBlock(),A.createBlock(A.unref(pt),{key:0,list:s.popoverContent},null,8,["list"])):A.createCommentVNode("",!0)]),_:2},1032,["width"])):(A.openBlock(),A.createBlock(xe,{key:1,name:s.icon,class:"title-icon",size:(s==null?void 0:s.size)||"large",onClick:C=>w(s.onClick)},null,8,["name","size","onClick"]))],64))),128)),A.createVNode(A.unref(lo),{class:"title-icon",btns:(B=t.value.header)==null?void 0:B.btns},null,8,["btns"])],6),A.createElementVNode("div",s8,[A.createElementVNode("span",{class:A.normalizeClass(["sub-title",{clickStyle:(p=t.value.header)==null?void 0:p.subTitleClick}]),onClick:P[1]||(P[1]=s=>{var h;return M((h=t.value.header)==null?void 0:h.subTitleClick)})},A.toDisplayString((d=t.value.header)==null?void 0:d.subTitlePrefix)+A.toDisplayString((l=t.value.header)==null?void 0:l.subTitle),3),A.createVNode(xe,{name:"icon-fuzhi",class:"copy-icon",onClick:y}),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList((g=t.value.header)==null?void 0:g.subTitleIcons,(s,h)=>{var C,a;return A.openBlock(),A.createBlock(xe,{key:h,name:(C=s.icon)==null?void 0:C.name,color:(a=s.icon)==null?void 0:a.color,class:"title-icon ml-2 cursor-pointer",onClick:r=>w(s.onClick)},null,8,["name","color","onClick"])}),128))])])]),A.createElementVNode("div",l8,[A.createElementVNode("div",c8,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(t.value.infos,s=>(A.openBlock(),A.createElementBlock("div",{key:s.key,class:"info-item"},[A.createElementVNode("span",g8,A.toDisplayString(s.label)+": ",1),A.createElementVNode("span",{class:A.normalizeClass(["info-value",s.type])},A.toDisplayString(s.value||"-"),3),A.createElementVNode("div",u8,[s.expendComponents?(A.openBlock(),A.createBlock(A.unref(pt),{key:0,class:"expend-components",list:s.expendComponents},null,8,["list"])):A.createCommentVNode("",!0)])]))),128))]),A.createVNode(A.unref(lo),{btns:t.value.btns},null,8,["btns"]),A.createVNode(A.unref(W_),{dropdowns:t.value.dropdowns},null,8,["dropdowns"])])]),A.createElementVNode("div",d8,[A.createElementVNode("div",h8,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(t.value.detail,(s,h)=>(A.openBlock(),A.createElementBlock("div",{key:s.label,class:"detail-item"},[A.createElementVNode("div",null,[A.createElementVNode("div",p8,A.toDisplayString(s.label),1),A.createElementVNode("div",{class:"value",style:A.normalizeStyle(s.color?{color:s.color}:{})},A.toDisplayString(s.value||"- -"),5)]),h!==t.value.detail.length-1?(A.openBlock(),A.createElementBlock("div",C8)):A.createCommentVNode("",!0)]))),128))]),t.value.bottomRightDetail||t.value.bottomRightFormSlots?(A.openBlock(),A.createElementBlock("div",B8,[t.value.bottomRightFormSlots?(A.openBlock(),A.createElementBlock("div",m8,[A.createVNode(A.unref(pt),{list:t.value.bottomRightFormSlots},null,8,["list"])])):A.createCommentVNode("",!0),t.value.bottomRightDetail?(A.openBlock(),A.createElementBlock("div",E8,A.toDisplayString(t.value.bottomRightDetail.label),1)):A.createCommentVNode("",!0),t.value.bottomRightDetail?(A.openBlock(),A.createElementBlock("div",Q8,A.toDisplayString(t.value.bottomRightDetail.value),1)):A.createCommentVNode("",!0)])):A.createCommentVNode("",!0)])]}),_:1})],8,i8))}}}),[["__scopeId","data-v-44d94b18"]]),f8=["id"],w8={class:"left-part"},b8={class:"nav-title"},y8=["onClick"],D8={class:"nav-footer"},v8={class:"left-actions"},k8=["onClick"],_8={class:"footer-text"},M8={key:1,class:"divider"},x8={class:"right-actions"},S8=ie(A.defineComponent({__name:"NavBar",props:A.mergeModels({pageRulePath:{},findRef:{type:Function}},{schema:{required:!0},schemaModifiers:{}}),emits:["update:schema"],setup(n,{expose:e}){const t=A.useModel(n,"schema"),i=A.computed(()=>(t.value.leftActions||[]).filter(P=>!P.hidden)),u=A.inject("ruleMap",{}),I=A.inject("pageMethodMap",{}),o=n,b=A.computed(()=>t.value.rulePath&&u[t.value.rulePath]?u[t.value.rulePath]:u[o.pageRulePath]);A.provide("ruleModule",b.value);const y=P=>{if(P&&b.value)try{b.value[P](I)}catch(Y){console.error(Y+`
218
218
  funcName: ${P}`)}},w=A.inject(jn),M=()=>{w&&w.navigateFn&&w.navigateFn(-1)},N=P=>{const Y=o.findRef(P);if(Y&&Y.rootRef)Y.rootRef.scrollIntoView({behavior:"smooth",block:"center"});else{const G=document.getElementById(P);G&&G.scrollIntoView({behavior:"smooth",block:"center"})}};return e({type:"navbar",schema:t}),(P,Y)=>t.value.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["nav-bar",{mixmode:t.value.mixMode,simple:t.value.simple,"no-sticky":t.value.noSticky}]),style:A.normalizeStyle(t.value.top?{top:`${t.value.top}px`}:{}),id:t.value.key},[t.value.title||t.value.btns?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["nav-header",{mb10:t.value.content&&t.value.content.length>0||t.value.leftActions&&t.value.leftActions.length>0}])},[A.createElementVNode("div",w8,[t.value.back?(A.openBlock(),A.createBlock(xe,{key:0,name:"icon-back",class:"back-icon",onClick:M})):A.createCommentVNode("",!0),A.createElementVNode("div",b8,A.toDisplayString(t.value.title),1)]),A.createElementVNode("div",null,[A.createVNode(A.unref(lo),{btns:t.value.btns||[]},null,8,["btns"])])],2)):A.createCommentVNode("",!0),t.value.content&&t.value.content.length>0?(A.openBlock(),A.createElementBlock("div",{key:1,class:A.normalizeClass(["steps",{mb8:i.value.length>0||(t.value.footerBtns||[]).length>0}])},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(t.value.content,(G,K)=>(A.openBlock(),A.createElementBlock("div",{key:K,class:A.normalizeClass(["hexagon",{"first-item":K===0,"middle-item":K>0&&K<t.value.content.length-1,"last-item":K===t.value.content.length-1}]),onClick:D=>N(G.ref)},[A.createElementVNode("span",null,A.toDisplayString(G.text),1)],10,y8))),128))],2)):A.createCommentVNode("",!0),A.createElementVNode("div",D8,[A.createElementVNode("div",v8,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(i.value,(G,K)=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:G.key},[G.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,onClick:D=>y(G.onClick),class:"footer-item"},[G.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:G.icon.name,color:G.icon.color,class:"footer-icon"},null,8,["name","color"])):A.createCommentVNode("",!0),A.createElementVNode("span",_8,A.toDisplayString(G.text),1),K!==i.value.length-1?(A.openBlock(),A.createElementBlock("div",M8)):A.createCommentVNode("",!0)],8,k8))],64))),128))]),A.createElementVNode("div",x8,[A.createVNode(A.unref(lo),{btns:t.value.footerBtns||[]},null,8,["btns"])])])],14,f8))}}),[["__scopeId","data-v-2dd52ddc"]]),N8=["onClick"],F8={key:1},R8=ie(A.defineComponent({__name:"AlertRender",props:A.mergeModels({pageRulePath:{},pageUrl:{},pageEmit:{type:Function}},{schema:{required:!0},schemaModifiers:{}}),emits:["update:schema"],setup(n,{expose:e}){const t=A.useModel(n,"schema"),i=A.inject("ruleMap",{}),u=A.inject("pageMethodMap",{}),I=n,o=A.computed(()=>t.value.rulePath&&i[t.value.rulePath]?i[t.value.rulePath]:i[I.pageRulePath]);A.provide("ruleModule",o.value);const b=(N,P)=>{try{o.value[N](u,P)}catch(Y){console.error(Y)}},y=()=>{if(I.pageEmit("changeMixMode",I.pageUrl,!1),!!t.value.onClose)try{o.value[t.value.onClose](u)}catch(N){console.error(N)}},w=A.computed(()=>{const N=/\{(\d+)\}/g,P=[];let Y=0,G;for(;(G=N.exec(t.value.description))!==null;)G.index>Y&&P.push({type:"text",value:t.value.description.slice(Y,G.index)}),P.push({type:"value",index:Number(G[1])}),Y=N.lastIndex;return Y<t.value.description.length&&P.push({type:"text",value:t.value.description.slice(Y)}),P}),M=A.computed(()=>t.value.type?{primary:{name:"icon-tishitubiao",color:"var(--el-color-primary)"},success:{name:"icon-successtubiao",color:"var(--el-color-primary)"},warning:{name:"icon-gaojingtongzhitishi",color:"#FF0D00"},info:{name:"icon-tishitubiao",color:"var(--el-color-primary)"},error:{name:"icon-tishitubiao",color:"#FF0D00"}}[t.value.type]:{name:"icon-tishitubiao",color:"var(--el-color-primary)"});return e({type:"alert",schema:t}),(N,P)=>{const Y=A.resolveComponent("el-alert");return t.value.description?(A.openBlock(),A.createBlock(Y,{key:0,type:t.value.type,"show-icon":!0,class:A.normalizeClass(["alert-container",{mixmode:t.value.mixMode,"no-sticky":t.value.noSticky}]),style:A.normalizeStyle(t.value.top?{top:`${t.value.top}px`}:{}),onClose:y},{icon:A.withCtx(()=>[A.createVNode(xe,{name:M.value.name,color:M.value.color},null,8,["name","color"])]),default:A.withCtx(()=>[A.createElementVNode("div",null,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(w.value,(G,K)=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:K},[G.type==="text"?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[A.createTextVNode(A.toDisplayString(G.value),1)],64)):(A.openBlock(),A.createElementBlock(A.Fragment,{key:1},[typeof G.index=="number"&&t.value.values&&t.value.values[G.index]&&typeof t.value.values[G.index].onClick=="string"?(A.openBlock(),A.createElementBlock("span",{key:0,class:"link-style",onClick:D=>b(t.value.values[G.index].onClick,t.value.values[G.index].text)},A.toDisplayString(typeof G.index=="number"&&t.value.values&&t.value.values[G.index]?t.value.values[G.index].text:""),9,N8)):(A.openBlock(),A.createElementBlock("span",F8,A.toDisplayString(typeof G.index=="number"&&t.value.values&&t.value.values[G.index]?t.value.values[G.index].text:""),1))],64))],64))),128))])]),_:1},8,["type","class","style"])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-9c6215e5"]]),L8=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"DragList",props:A.mergeModels({children:{},rowHeight:{},colNum:{},maxRows:{},isDraggable:{type:Boolean},name:{},onMoved:{}},{gridlayout:{required:!0},gridlayoutModifiers:{}}),emits:["update:gridlayout"],setup(n,{expose:e}){const t=n,i=A.useModel(n,"gridlayout"),y={getLayout:()=>A.readonly(i),setItemX:(P,Y)=>{i.value[P].x=Y},setItemY:(P,Y)=>{i.value[P].y=Y},setItemVisible:(P,Y)=>{const G=i.value.find(K=>K.i===P);G&&(G.h=Y?G.contentHeight||1:0)},type:"draglist"},{ruleModule:w,pageMethodMap:M}=ei(),N=()=>{if(t.onMoved&&w)try{w[t.onMoved](M,A.readonly(i.value))}catch(P){console.error(P+`
219
- onMoved: ${t.onMoved}`)}};if(e(y),t.name){const P=fs(t.name,y);A.onUnmounted(()=>{P()})}return(P,Y)=>(A.openBlock(),A.createBlock(A.unref(z_),{layout:i.value,"onUpdate:layout":Y[1]||(Y[1]=G=>i.value=G),"col-num":P.colNum||12,"row-height":P.rowHeight||30,"max-rows":P.maxRows,margin:[8,8],"is-draggable":P.isDraggable,"is-bounded":"","is-resizable":!1,"vertical-compact":"","use-css-transforms":""},{default:A.withCtx(()=>[A.createVNode(A.unref(mt),{list:P.children,gridData:i.value,"onUpdate:gridData":Y[0]||(Y[0]=G=>i.value=G),onGridItemMoved:N},null,8,["list","gridData"])]),_:1},8,["layout","col-num","row-height","max-rows","is-draggable"]))}}),[["__scopeId","data-v-f58dab66"]])},Symbol.toStringTag,{value:"Module"})),G8=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Pagination",props:{pageSizes:{},defaultPageSize:{},paginationLayout:{},hiddenPagination:{type:Boolean},pagerCount:{},style:{type:[Boolean,null,String,Object,Array]},sizeChange:{},pageChange:{},name:{}},setup(n,{expose:e}){const t=n,{ruleModule:i,pageMethodMap:u}=ei(),I=A.ref(0),o=P=>{I.value=P},b=A.ref({pageNum:1,pageSize:t.defaultPageSize||5}),y=()=>b.value,w=async P=>{if(b.value.pageNum=1,b.value.pageSize=P,!!t.sizeChange)try{await i[t.sizeChange](u,b.value)}catch(Y){console.error(Y)}},M=async P=>{if(b.value.pageNum=P,!!t.pageChange)try{await i[t.pageChange](u,b.value)}catch(Y){console.error(Y)}},N=A.readonly({getPagination:y,setTotal:o,type:"pagination"});if(t.name){const P=fs(t.name,N);A.onUnmounted(()=>{P()})}return e(N),(P,Y)=>{const G=A.resolveComponent("el-pagination");return A.openBlock(),A.createElementBlock("div",{class:"pagination-wrapper",style:A.normalizeStyle(P.style)},[A.createVNode(G,{layout:P.paginationLayout||"total,sizes, prev, pager, next,jumper",total:I.value,"page-sizes":P.pageSizes||[5,6,10,20,30,40],"default-page-size":P.defaultPageSize,"current-page":b.value.pageNum,"onUpdate:currentPage":Y[0]||(Y[0]=K=>b.value.pageNum=K),"page-size":b.value.pageSize,"onUpdate:pageSize":Y[1]||(Y[1]=K=>b.value.pageSize=K),"pager-count":Number(P.pagerCount)||5,onSizeChange:w,onCurrentChange:M},null,8,["layout","total","page-sizes","default-page-size","current-page","page-size","pager-count"])],4)}}}),[["__scopeId","data-v-0cc06d1f"]])},Symbol.toStringTag,{value:"Module"})),P8={class:"filter-search-header"},H8={class:"input-tag-wrapper"},K8={class:"input-action"},T8={class:"input-action-tag-wrapper"},U8=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"FilterSearch",props:{name:{},children:{},placeholder:{},defaultCollapse:{type:Boolean},searchTypes:{},onSearch:{},onChange:{},onSearchTypeChange:{}},setup(n,{expose:e}){const t=n,i=A.ref(t.defaultCollapse),u=A.ref(t.searchTypes?t.searchTypes[0]:null),I=()=>u.value,o=E=>{if(t.searchTypes){const L=t.searchTypes.find(_=>_.value===E);L&&(u.value=L)}},b=A.ref(""),y=E=>{b.value=E},w=()=>b.value,M=E=>{u.value=E;try{G[t.onSearchTypeChange](K,E)}catch(L){console.error(L)}},N=E=>{if(t.onChange)try{G[t.onChange](K,E)}catch(L){console.error(L)}},P=async()=>{try{await G[t.onSearch](K,b.value)}catch(E){console.error(E)}},Y=()=>{i.value=!i.value},{ruleModule:G,pageMethodMap:K}=ei(),D=A.readonly({setSearchValue:y,getSearchValue:w,getSearchType:I,setSearchType:o,type:"filterSearch"});if(t.name){const E=fs(t.name,D);A.onUnmounted(()=>{E()})}return e(D),(E,L)=>{const _=A.resolveComponent("el-tag"),v=A.resolveComponent("el-input"),B=A.resolveComponent("el-collapse-transition");return A.openBlock(),A.createElementBlock("div",null,[A.createElementVNode("div",P8,[A.createVNode(v,{modelValue:b.value,"onUpdate:modelValue":L[0]||(L[0]=p=>b.value=p),placeholder:E.placeholder,size:"large",onKeyup:A.withKeys(A.withModifiers(P,["stop"]),["enter"]),class:"filter-search-input",clearable:!0,onInput:N},{prefix:A.withCtx(()=>[A.createElementVNode("div",H8,[u.value?(A.openBlock(),A.createBlock(_,{key:0,class:"search-tag",type:"primary"},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(u.value.label),1)]),_:1})):A.createCommentVNode("",!0)])]),suffix:A.withCtx(()=>[A.createVNode(xe,{name:"icon-lujing2",size:"small",color:"#666666",onClick:P,class:"search-icon"})]),_:1},8,["modelValue","placeholder","onKeyup"]),A.createElementVNode("div",K8,[A.createElementVNode("div",T8,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(E.searchTypes,p=>{var d;return A.openBlock(),A.createElementBlock("div",{class:"input-action-tag",key:p.value},[A.createVNode(_,{class:A.normalizeClass({"is-active":((d=u.value)==null?void 0:d.value)===p.value}),type:"info",round:"",size:"large",onClick:l=>M(p)},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(p.label),1)]),_:2},1032,["class","onClick"])])}),128))]),A.createElementVNode("div",{class:A.normalizeClass(["filter-wrapper",{active:!i.value}]),onClick:Y},[A.createVNode(xe,{name:"icon-shaixuan",size:"small"}),L[1]||(L[1]=A.createElementVNode("span",{class:"filter-text"},"Filter",-1))],2)])]),A.createVNode(B,null,{default:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",null,[A.createVNode(A.unref(mt),{list:E.children},null,8,["list"])],512),[[A.vShow,!i.value]])]),_:1})])}}}),[["__scopeId","data-v-024fa7ea"]])},Symbol.toStringTag,{value:"Module"})),Y8=["id"],ag=ie(A.defineComponent({__name:"index",props:{ruleMap:{},pageUrl:{},pageParams:{}},emits:["done","refresh","changeTab","changeMixMode","addPageParams"],setup(n,{expose:e,emit:t}){const i=t,u={form:fn,table:rg,tabs:n8,infocard:I8,navbar:S8,alert:R8},I=n,o=A.ref(I.pageParams),b=A.ref({}),y=A.ref(),w=A.ref({});A.watch(()=>I.pageParams,()=>{o.value=ut.cloneDeep(I.pageParams)});const M=W=>{if(y.value){if(W.type==="tabs")return{...W.schema.tabProps,schema:W.schema,"onUpdate:schema":J=>{W.schema=J},ruleMap:I.ruleMap,pageParams:o.value,pageRulePath:y.value.rulePath||""};if(W.type==="form")return{modelValue:W.model,"onUpdate:modelValue":J=>{W.model=J},realValues:W.realValues,"onUpdate:realValues":J=>{W.realValues=J},schema:W.schema,"onUpdate:schema":J=>{W.schema=J},pageRulePath:y.value.rulePath||"",pageKey:y.value.key};if(W.type==="table")return{modelValue:W.model,"onUpdate:modelValue":J=>{W.model=J},schema:W.schema,"onUpdate:schema":J=>{W.schema=J},pageRulePath:y.value.rulePath||"",pageKey:y.value.key};if(W.type==="infocard")return{schema:W.schema,"onUpdate:schema":J=>{W.schema=J},pageRulePath:y.value.rulePath||""};if(W.type==="navbar")return{schema:W.schema,"onUpdate:schema":J=>{W.schema=J},pageRulePath:y.value.rulePath||"",findRef:Y};if(W.type==="alert")return{schema:W.schema,"onUpdate:schema":J=>{W.schema=J},pageRulePath:y.value.rulePath||"",pageUrl:I.pageUrl,pageEmit:i}}},N=A.ref([]),P=u2(),Y=W=>{var O;const J=(O=N.value)==null?void 0:O.find(q=>q.schema.key===W);return J||P.findRef(W)},G=W=>{var O;return(O=N.value)==null?void 0:O.filter(q=>q.schema.key&&W.includes(q.schema.key))},K=(W,J)=>{var V;const O=["Input","InputNumber","Select","DatePicker","TextArea","SearchInput","SearchSelect","Radio","SelectInput","Upload"],q=H=>{H.forEach(AA=>{O.includes(AA.component)?AA.props&&(AA.props.disabled=J):AA.children&&q(AA.children)})},k=(V=y.value)==null?void 0:V.content.find(H=>H.schema.key===W);k&&k.type==="form"&&q(k.schema.items)},D=(W,J)=>{var V;const O=["Input","InputNumber","Select","DatePicker","TextArea","SearchInput","SearchSelect","Radio","SelectInput","Upload"],q=H=>{H.forEach(AA=>{O.includes(AA.component)?AA.props&&(AA.props.read=J):AA.children&&q(AA.children)})},k=(V=y.value)==null?void 0:V.content.find(H=>H.schema.key===W);k&&k.type==="form"&&q(k.schema.items)},E=async W=>{if(Array.isArray(W)){const J=G(W);for(const O of J||[])O.type==="form"&&await O.validate()}else{const J=Y(W);return J?await J.validate():!1}},L=W=>{if(y.value){if(!W){const J={};for(const O of y.value.content)O.schema.key&&(O.type==="form"?J[O.schema.key]=ut.cloneDeep(A.toRaw({...O.model,...O.realValues})):O.type==="table"&&(J[O.schema.key]=ut.cloneDeep(A.toRaw(O.model))));return J}if(Array.isArray(W)){const J={};for(const O of y.value.content)O.schema.key&&W.includes(O.schema.key)&&(O.type==="form"?J[O.schema.key]=ut.cloneDeep(A.toRaw({...O.model,...O.realValues})):O.type==="table"&&(J[O.schema.key]=ut.cloneDeep(A.toRaw(O.model))));return J}else{const J=y.value.content.find(O=>O.schema.key===W);if(J){if(J.type==="form")return ut.cloneDeep(A.toRaw({...J.model,...J.realValues}));if(J.type==="table")return ut.cloneDeep(A.toRaw(J.model))}}}},_=(W,J,O=!1)=>{if(!y.value)return;const q=y.value.content.find(k=>k.schema.key===W);if(q)if(q.type==="form")if(O)Object.assign(q.model,J);else{for(let k in q.model)delete q.model[k];Object.assign(q.model,J)}else q.type==="table"&&(q.model=J)},v=W=>{if(W)if(Array.isArray(W)){const J=G(W);for(const O of J||[])O.type==="form"&&O.resetFields()}else{const J=Y(W);if(!J)return;J.type==="form"&&J.resetFields()}},B=(W,J)=>{const O=Y(W);O&&O.type==="form"&&O.clearValidate(J)},p=(W,J)=>{var q;const O=(q=y.value)==null?void 0:q.content.find(k=>k.schema.key===W);if(O&&O.type==="form")return Si(O.schema.items,J)};function d(){return o.value}const l=W=>{o.value=W},g=W=>{o.value={...o.value,...W}},s=(W,J)=>{if(!y.value)return;const O=y.value.content.find(q=>q.schema.key===W);O&&(O.schema.hidden=J)},h=(W,J)=>{if(!y.value)return;const O=y.value.btns.find(q=>q.key===W);O&&(O.hidden=J)},C=(W,J,O)=>{var q;if(y.value){if(W.type==="form"){const k=p(W.formKey,W.btnKey);k&&(J==="disabled"?k.props[J]=O:k[J]=O)}else if(W.type==="page"){const k=y.value.btns.find(V=>V.key===W.btnKey);k&&(k[J]=O)}else if(W.type==="table"){const k=(q=y.value)==null?void 0:q.content.find(V=>V.schema.key===W.tableKey);if(!k||k.type!=="table")return;W.btnPosition==="top"?k.schema.topBtns.find(V=>V.key===W.btnKey)[J]=O:W.btnPosition==="row"&&(J==="hidden"?k.schema.rowBtns.find(V=>V.key===W.btnKey).condition=!O:k.schema.rowBtns.find(V=>V.key===W.btnKey)[J]=O)}else if(W.type==="card"){const k=p(W.formKey,W.cardKey);k&&(k.props.btns.find(V=>V.key===W.btnKey)[J]=O)}}},a=(W,J,O)=>{var k,V,H,AA,sA;if(!y.value)return;const q=(J==="disabled"||J==="hidden")&&typeof O=="boolean";if(y.value.btns){const oA=y.value.btns.find(dA=>dA.key===W);if(oA&&q){oA[J]=O;return}}for(const oA of y.value.content){if(oA.type==="infocard"){const dA=oA.schema.btns.find(EA=>EA.key===W);if(dA&&q){dA[J]=O;return}}if(oA.type==="navbar"){const dA=(k=oA.schema.btns)==null?void 0:k.find(BA=>BA.key===W);if(dA&&q){dA[J]=O;return}const EA=(V=oA.schema.footerBtns)==null?void 0:V.find(BA=>BA.key===W);if(EA&&q){EA[J]=O;return}const uA=(H=oA.schema.leftActions)==null?void 0:H.find(BA=>BA.key===W);if(uA&&q&&J==="hidden"){uA[J]=O;return}}if(oA.type==="table"){const dA=(AA=oA.schema.topBtns)==null?void 0:AA.find(uA=>uA.key===W);if(dA&&q){dA[J]=O;return}const EA=(sA=oA.schema.rowBtns)==null?void 0:sA.find(uA=>uA.key===W);if(EA){J==="hidden"?EA.condition=!O:J==="condition"&&typeof O=="string"?EA.condition=O:q&&(EA[J]=O);return}}if(oA.type==="form"){const dA=EA=>{var uA,BA;for(const j of EA){if(j.component==="Button"&&j.name===W)return j.props&&(j.props[J]=O),!0;if((j.component==="Card"||j.component==="CurdCard")&&j.props&&Array.isArray(j.props.btns)){const tA=j.props.btns.find(rA=>rA.key===W);if(tA)return tA[J]=O,!0}if(j.component==="Table"&&j.props){const tA=(uA=j.props.topBtns)==null?void 0:uA.find(gA=>gA.key===W);if(tA)return tA[J]=O,!0;const rA=(BA=j.props.rowBtns)==null?void 0:BA.find(gA=>gA.key===W);if(rA)return J==="hidden"?rA.condition=!O:J==="condition"&&typeof O=="string"?rA.condition=O:q&&(rA[J]=O),!0}if(j.children&&Array.isArray(j.children)&&dA(j.children))return!0}return!1};if(dA(oA.schema.items))return}}},r=(W,J)=>{if(!y.value)return;const O=y.value.btns.find(q=>q.key===W);O&&(O.disabled=J)},m=W=>{Object.assign(b.value,W)},Q=()=>b.value,x=A.inject(jn),S={findRef:Y,setFormDisabled:K,clearValidate:B,validate:E,getData:L,resetFields:v,emit:i,setData:_,getItemByName:p,getPageParams:d,setHidden:s,setBtnHidden:h,setBtnStateByKey:a,setBtnDisabled:r,addPageParams:g,setPageParams:l,setGlobalParams:m,getGlobalParams:Q,setBtnState:C,setReadMode:D,setPageMask:(x==null?void 0:x.setPageMaskFn)||(()=>{})},T=async W=>{if(!(!y.value||!y.value.rulePath)){try{w.value[W.key]=!0,await I.ruleMap[y.value.rulePath][W.onClick](S)}catch(J){console.error(J)}w.value[W.key]=!1}};A.provide("pageMethodMap",S),A.provide("ruleMap",I.ruleMap),A.provide("getGlobalParams",Q),A.onMounted(async()=>{if(x&&x.fetchSchemaFn&&I.pageUrl){const W=await x.fetchSchemaFn(I.pageUrl);if(W&&W.rulePath&&W.onBeforeMount){const q=W.onBeforeMount;try{await I.ruleMap[W.rulePath][q](W,S)}catch(k){console.error(k+`
219
+ onMoved: ${t.onMoved}`)}};if(e(y),t.name){const P=fs(t.name,y);A.onUnmounted(()=>{P()})}return(P,Y)=>(A.openBlock(),A.createBlock(A.unref(z_),{layout:i.value,"onUpdate:layout":Y[1]||(Y[1]=G=>i.value=G),"col-num":P.colNum||12,"row-height":P.rowHeight||30,"max-rows":P.maxRows,margin:[8,8],"is-draggable":P.isDraggable,"is-bounded":"","is-resizable":!1,"vertical-compact":"","use-css-transforms":""},{default:A.withCtx(()=>[A.createVNode(A.unref(pt),{list:P.children,gridData:i.value,"onUpdate:gridData":Y[0]||(Y[0]=G=>i.value=G),onGridItemMoved:N},null,8,["list","gridData"])]),_:1},8,["layout","col-num","row-height","max-rows","is-draggable"]))}}),[["__scopeId","data-v-f58dab66"]])},Symbol.toStringTag,{value:"Module"})),G8=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Pagination",props:{pageSizes:{},defaultPageSize:{},paginationLayout:{},hiddenPagination:{type:Boolean},pagerCount:{},style:{type:[Boolean,null,String,Object,Array]},sizeChange:{},pageChange:{},name:{}},setup(n,{expose:e}){const t=n,{ruleModule:i,pageMethodMap:u}=ei(),I=A.ref(0),o=P=>{I.value=P},b=A.ref({pageNum:1,pageSize:t.defaultPageSize||5}),y=()=>b.value,w=async P=>{if(b.value.pageNum=1,b.value.pageSize=P,!!t.sizeChange)try{await i[t.sizeChange](u,b.value)}catch(Y){console.error(Y)}},M=async P=>{if(b.value.pageNum=P,!!t.pageChange)try{await i[t.pageChange](u,b.value)}catch(Y){console.error(Y)}},N=A.readonly({getPagination:y,setTotal:o,type:"pagination"});if(t.name){const P=fs(t.name,N);A.onUnmounted(()=>{P()})}return e(N),(P,Y)=>{const G=A.resolveComponent("el-pagination");return A.openBlock(),A.createElementBlock("div",{class:"pagination-wrapper",style:A.normalizeStyle(P.style)},[A.createVNode(G,{layout:P.paginationLayout||"total,sizes, prev, pager, next,jumper",total:I.value,"page-sizes":P.pageSizes||[5,6,10,20,30,40],"default-page-size":P.defaultPageSize,"current-page":b.value.pageNum,"onUpdate:currentPage":Y[0]||(Y[0]=K=>b.value.pageNum=K),"page-size":b.value.pageSize,"onUpdate:pageSize":Y[1]||(Y[1]=K=>b.value.pageSize=K),"pager-count":Number(P.pagerCount)||5,onSizeChange:w,onCurrentChange:M},null,8,["layout","total","page-sizes","default-page-size","current-page","page-size","pager-count"])],4)}}}),[["__scopeId","data-v-0cc06d1f"]])},Symbol.toStringTag,{value:"Module"})),P8={class:"filter-search-header"},H8={class:"input-tag-wrapper"},K8={class:"input-action"},T8={class:"input-action-tag-wrapper"},U8=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"FilterSearch",props:{name:{},children:{},placeholder:{},defaultCollapse:{type:Boolean},searchTypes:{},onSearch:{},onChange:{},onSearchTypeChange:{}},setup(n,{expose:e}){const t=n,i=A.ref(t.defaultCollapse),u=A.ref(t.searchTypes?t.searchTypes[0]:null),I=()=>u.value,o=E=>{if(t.searchTypes){const L=t.searchTypes.find(_=>_.value===E);L&&(u.value=L)}},b=A.ref(""),y=E=>{b.value=E},w=()=>b.value,M=E=>{u.value=E;try{G[t.onSearchTypeChange](K,E)}catch(L){console.error(L)}},N=E=>{if(t.onChange)try{G[t.onChange](K,E)}catch(L){console.error(L)}},P=async()=>{try{await G[t.onSearch](K,b.value)}catch(E){console.error(E)}},Y=()=>{i.value=!i.value},{ruleModule:G,pageMethodMap:K}=ei(),D=A.readonly({setSearchValue:y,getSearchValue:w,getSearchType:I,setSearchType:o,type:"filterSearch"});if(t.name){const E=fs(t.name,D);A.onUnmounted(()=>{E()})}return e(D),(E,L)=>{const _=A.resolveComponent("el-tag"),v=A.resolveComponent("el-input"),B=A.resolveComponent("el-collapse-transition");return A.openBlock(),A.createElementBlock("div",null,[A.createElementVNode("div",P8,[A.createVNode(v,{modelValue:b.value,"onUpdate:modelValue":L[0]||(L[0]=p=>b.value=p),placeholder:E.placeholder,size:"large",onKeyup:A.withKeys(A.withModifiers(P,["stop"]),["enter"]),class:"filter-search-input",clearable:!0,onInput:N},{prefix:A.withCtx(()=>[A.createElementVNode("div",H8,[u.value?(A.openBlock(),A.createBlock(_,{key:0,class:"search-tag",type:"primary"},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(u.value.label),1)]),_:1})):A.createCommentVNode("",!0)])]),suffix:A.withCtx(()=>[A.createVNode(xe,{name:"icon-lujing2",size:"small",color:"#666666",onClick:P,class:"search-icon"})]),_:1},8,["modelValue","placeholder","onKeyup"]),A.createElementVNode("div",K8,[A.createElementVNode("div",T8,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(E.searchTypes,p=>{var d;return A.openBlock(),A.createElementBlock("div",{class:"input-action-tag",key:p.value},[A.createVNode(_,{class:A.normalizeClass({"is-active":((d=u.value)==null?void 0:d.value)===p.value}),type:"info",round:"",size:"large",onClick:l=>M(p)},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(p.label),1)]),_:2},1032,["class","onClick"])])}),128))]),A.createElementVNode("div",{class:A.normalizeClass(["filter-wrapper",{active:!i.value}]),onClick:Y},[A.createVNode(xe,{name:"icon-shaixuan",size:"small"}),L[1]||(L[1]=A.createElementVNode("span",{class:"filter-text"},"Filter",-1))],2)])]),A.createVNode(B,null,{default:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",null,[A.createVNode(A.unref(pt),{list:E.children},null,8,["list"])],512),[[A.vShow,!i.value]])]),_:1})])}}}),[["__scopeId","data-v-024fa7ea"]])},Symbol.toStringTag,{value:"Module"})),Y8=["id"],ag=ie(A.defineComponent({__name:"index",props:{ruleMap:{},pageUrl:{},pageParams:{}},emits:["done","refresh","changeTab","changeMixMode","addPageParams"],setup(n,{expose:e,emit:t}){const i=t,u={form:fn,table:rg,tabs:n8,infocard:I8,navbar:S8,alert:R8},I=n,o=A.ref(I.pageParams),b=A.ref({}),y=A.ref(),w=A.ref({});A.watch(()=>I.pageParams,()=>{o.value=ut.cloneDeep(I.pageParams)});const M=W=>{if(y.value){if(W.type==="tabs")return{...W.schema.tabProps,schema:W.schema,"onUpdate:schema":J=>{W.schema=J},ruleMap:I.ruleMap,pageParams:o.value,pageRulePath:y.value.rulePath||""};if(W.type==="form")return{modelValue:W.model,"onUpdate:modelValue":J=>{W.model=J},realValues:W.realValues,"onUpdate:realValues":J=>{W.realValues=J},schema:W.schema,"onUpdate:schema":J=>{W.schema=J},pageRulePath:y.value.rulePath||"",pageKey:y.value.key};if(W.type==="table")return{modelValue:W.model,"onUpdate:modelValue":J=>{W.model=J},schema:W.schema,"onUpdate:schema":J=>{W.schema=J},pageRulePath:y.value.rulePath||"",pageKey:y.value.key};if(W.type==="infocard")return{schema:W.schema,"onUpdate:schema":J=>{W.schema=J},pageRulePath:y.value.rulePath||""};if(W.type==="navbar")return{schema:W.schema,"onUpdate:schema":J=>{W.schema=J},pageRulePath:y.value.rulePath||"",findRef:Y};if(W.type==="alert")return{schema:W.schema,"onUpdate:schema":J=>{W.schema=J},pageRulePath:y.value.rulePath||"",pageUrl:I.pageUrl,pageEmit:i}}},N=A.ref([]),P=u2(),Y=W=>{var O;const J=(O=N.value)==null?void 0:O.find(q=>q.schema.key===W);return J||P.findRef(W)},G=W=>{var O;return(O=N.value)==null?void 0:O.filter(q=>q.schema.key&&W.includes(q.schema.key))},K=(W,J)=>{var V;const O=["Input","InputNumber","Select","DatePicker","TextArea","SearchInput","SearchSelect","Radio","SelectInput","Upload"],q=H=>{H.forEach(AA=>{O.includes(AA.component)?AA.props&&(AA.props.disabled=J):AA.children&&q(AA.children)})},k=(V=y.value)==null?void 0:V.content.find(H=>H.schema.key===W);k&&k.type==="form"&&q(k.schema.items)},D=(W,J)=>{var V;const O=["Input","InputNumber","Select","DatePicker","TextArea","SearchInput","SearchSelect","Radio","SelectInput","Upload"],q=H=>{H.forEach(AA=>{O.includes(AA.component)?AA.props&&(AA.props.read=J):AA.children&&q(AA.children)})},k=(V=y.value)==null?void 0:V.content.find(H=>H.schema.key===W);k&&k.type==="form"&&q(k.schema.items)},E=async W=>{if(Array.isArray(W)){const J=G(W);for(const O of J||[])O.type==="form"&&await O.validate()}else{const J=Y(W);return J?await J.validate():!1}},L=W=>{if(y.value){if(!W){const J={};for(const O of y.value.content)O.schema.key&&(O.type==="form"?J[O.schema.key]=ut.cloneDeep(A.toRaw({...O.model,...O.realValues})):O.type==="table"&&(J[O.schema.key]=ut.cloneDeep(A.toRaw(O.model))));return J}if(Array.isArray(W)){const J={};for(const O of y.value.content)O.schema.key&&W.includes(O.schema.key)&&(O.type==="form"?J[O.schema.key]=ut.cloneDeep(A.toRaw({...O.model,...O.realValues})):O.type==="table"&&(J[O.schema.key]=ut.cloneDeep(A.toRaw(O.model))));return J}else{const J=y.value.content.find(O=>O.schema.key===W);if(J){if(J.type==="form")return ut.cloneDeep(A.toRaw({...J.model,...J.realValues}));if(J.type==="table")return ut.cloneDeep(A.toRaw(J.model))}}}},_=(W,J,O=!1)=>{if(!y.value)return;const q=y.value.content.find(k=>k.schema.key===W);if(q)if(q.type==="form")if(O)Object.assign(q.model,J);else{for(let k in q.model)delete q.model[k];Object.assign(q.model,J)}else q.type==="table"&&(q.model=J)},v=W=>{if(W)if(Array.isArray(W)){const J=G(W);for(const O of J||[])O.type==="form"&&O.resetFields()}else{const J=Y(W);if(!J)return;J.type==="form"&&J.resetFields()}},B=(W,J)=>{const O=Y(W);O&&O.type==="form"&&O.clearValidate(J)},p=(W,J)=>{var q;const O=(q=y.value)==null?void 0:q.content.find(k=>k.schema.key===W);if(O&&O.type==="form")return Si(O.schema.items,J)};function d(){return o.value}const l=W=>{o.value=W},g=W=>{o.value={...o.value,...W}},s=(W,J)=>{if(!y.value)return;const O=y.value.content.find(q=>q.schema.key===W);O&&(O.schema.hidden=J)},h=(W,J)=>{if(!y.value)return;const O=y.value.btns.find(q=>q.key===W);O&&(O.hidden=J)},C=(W,J,O)=>{var q;if(y.value){if(W.type==="form"){const k=p(W.formKey,W.btnKey);k&&(J==="disabled"?k.props[J]=O:k[J]=O)}else if(W.type==="page"){const k=y.value.btns.find(V=>V.key===W.btnKey);k&&(k[J]=O)}else if(W.type==="table"){const k=(q=y.value)==null?void 0:q.content.find(V=>V.schema.key===W.tableKey);if(!k||k.type!=="table")return;W.btnPosition==="top"?k.schema.topBtns.find(V=>V.key===W.btnKey)[J]=O:W.btnPosition==="row"&&(J==="hidden"?k.schema.rowBtns.find(V=>V.key===W.btnKey).condition=!O:k.schema.rowBtns.find(V=>V.key===W.btnKey)[J]=O)}else if(W.type==="card"){const k=p(W.formKey,W.cardKey);k&&(k.props.btns.find(V=>V.key===W.btnKey)[J]=O)}}},a=(W,J,O)=>{var k,V,H,AA,sA;if(!y.value)return;const q=(J==="disabled"||J==="hidden")&&typeof O=="boolean";if(y.value.btns){const oA=y.value.btns.find(dA=>dA.key===W);if(oA&&q){oA[J]=O;return}}for(const oA of y.value.content){if(oA.type==="infocard"){const dA=oA.schema.btns.find(EA=>EA.key===W);if(dA&&q){dA[J]=O;return}}if(oA.type==="navbar"){const dA=(k=oA.schema.btns)==null?void 0:k.find(BA=>BA.key===W);if(dA&&q){dA[J]=O;return}const EA=(V=oA.schema.footerBtns)==null?void 0:V.find(BA=>BA.key===W);if(EA&&q){EA[J]=O;return}const uA=(H=oA.schema.leftActions)==null?void 0:H.find(BA=>BA.key===W);if(uA&&q&&J==="hidden"){uA[J]=O;return}}if(oA.type==="table"){const dA=(AA=oA.schema.topBtns)==null?void 0:AA.find(uA=>uA.key===W);if(dA&&q){dA[J]=O;return}const EA=(sA=oA.schema.rowBtns)==null?void 0:sA.find(uA=>uA.key===W);if(EA){J==="hidden"?EA.condition=!O:J==="condition"&&typeof O=="string"?EA.condition=O:q&&(EA[J]=O);return}}if(oA.type==="form"){const dA=EA=>{var uA,BA;for(const j of EA){if(j.component==="Button"&&j.name===W)return j.props&&(j.props[J]=O),!0;if((j.component==="Card"||j.component==="CurdCard")&&j.props&&Array.isArray(j.props.btns)){const tA=j.props.btns.find(rA=>rA.key===W);if(tA)return tA[J]=O,!0}if(j.component==="Table"&&j.props){const tA=(uA=j.props.topBtns)==null?void 0:uA.find(gA=>gA.key===W);if(tA)return tA[J]=O,!0;const rA=(BA=j.props.rowBtns)==null?void 0:BA.find(gA=>gA.key===W);if(rA)return J==="hidden"?rA.condition=!O:J==="condition"&&typeof O=="string"?rA.condition=O:q&&(rA[J]=O),!0}if(j.children&&Array.isArray(j.children)&&dA(j.children))return!0}return!1};if(dA(oA.schema.items))return}}},r=(W,J)=>{if(!y.value)return;const O=y.value.btns.find(q=>q.key===W);O&&(O.disabled=J)},m=W=>{Object.assign(b.value,W)},Q=()=>b.value,x=A.inject(jn),S={findRef:Y,setFormDisabled:K,clearValidate:B,validate:E,getData:L,resetFields:v,emit:i,setData:_,getItemByName:p,getPageParams:d,setHidden:s,setBtnHidden:h,setBtnStateByKey:a,setBtnDisabled:r,addPageParams:g,setPageParams:l,setGlobalParams:m,getGlobalParams:Q,setBtnState:C,setReadMode:D,setPageMask:(x==null?void 0:x.setPageMaskFn)||(()=>{})},T=async W=>{if(!(!y.value||!y.value.rulePath)){try{w.value[W.key]=!0,await I.ruleMap[y.value.rulePath][W.onClick](S)}catch(J){console.error(J)}w.value[W.key]=!1}};A.provide("pageMethodMap",S),A.provide("ruleMap",I.ruleMap),A.provide("getGlobalParams",Q),A.onMounted(async()=>{if(x&&x.fetchSchemaFn&&I.pageUrl){const W=await x.fetchSchemaFn(I.pageUrl);if(W&&W.rulePath&&W.onBeforeMount){const q=W.onBeforeMount;try{await I.ruleMap[W.rulePath][q](W,S)}catch(k){console.error(k+`
220
220
 
221
221
  rulePath: ${W.rulePath}
222
222
 
@@ -237,7 +237,7 @@ rulePath: ${y.value.rulePath}
237
237
 
238
238
  mountedFuncName: ${W}
239
239
  `)}}),A.onActivated(()=>{eA()}),e({...S,activate:eA,ruleFunction:$}),(W,J)=>{const O=A.resolveComponent("el-button"),q=A.resolveComponent("el-row");return A.openBlock(),A.createElementBlock("div",null,[y.value?(A.openBlock(),A.createElementBlock("div",{key:0,class:"page-render",id:y.value.key},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(y.value.content,k=>(A.openBlock(),A.createBlock(A.resolveDynamicComponent(u[k.type]),A.mergeProps({key:k.schema.key,class:"page-render__item",ref_for:!0,ref_key:"pageRenderRef",ref:N,onAddPageParams:g},M(k)),null,16))),128)),y.value.btns&&y.value.btns.length>0?(A.openBlock(),A.createBlock(q,{key:0,justify:y.value.btnPosition||"end",class:"btn-wrapper"},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(y.value.btns,k=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:k.key},[k.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(O,{key:0,type:k.type,loading:w.value[k.key],onClick:V=>T(k),disabled:k.disabled},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(k.text),1)]),_:2},1032,["type","loading","onClick","disabled"]))],64))),128))]),_:1},8,["justify"])):A.createCommentVNode("",!0)],8,Y8)):A.renderSlot(W.$slots,"loading",{key:1},void 0,!0)])}}}),[["__scopeId","data-v-cc70db18"]]),O8={install:(n,e={})=>{n.provide(jn,e),n.component("FormRender",fn),n.component("FormDesign",wC),n.component("TableRender",rg),n.component("PageRender",ag)}},$8={key:0,class:"special-read"},z8={class:"special-read-value"},J8={key:1},Z8=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"TextArea",props:A.mergeModels({name:{},read:{type:Boolean},specialRead:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=A.useModel(n,"modelValue"),t=n,i=It(),u=A.computed(()=>t.read||i.schema.read);return i.findItemByName(i.schema.items,t.name),(I,o)=>{const b=A.resolveComponent("el-input");return I.specialRead?(A.openBlock(),A.createElementBlock("div",$8,[A.createElementVNode("div",z8,A.toDisplayString(e.value||"--"),1)])):u.value?(A.openBlock(),A.createElementBlock("div",J8,A.toDisplayString(e.value||"--"),1)):(A.openBlock(),A.createBlock(b,A.mergeProps({key:2},I.$attrs,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=y=>e.value=y),type:"textarea"}),null,16,["modelValue"]))}}}),[["__scopeId","data-v-898f0af6"]])},Symbol.toStringTag,{value:"Module"})),W8={key:2},j8={class:"card-btns"},q8={class:"card-sub-header"},X8=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Card",props:{hidden:{type:Boolean},children:{},headerFormSlots:{},collapsible:{type:Boolean},header:{},btns:{},mainIcon:{},extraIcons:{},shadowless:{type:Boolean},subHeaders:{}},setup(n){const e=A.ref(!1),t=A.inject("ruleModule",void 0),i=A.inject("pageMethodMap",{}),u=I=>{if(I&&t)try{t[I](i)}catch(o){console.error(o+`
240
- funcName: ${I}`)}};return(I,o)=>{const b=A.resolveComponent("el-tooltip"),y=A.resolveComponent("el-collapse-transition"),w=A.resolveComponent("ElCard");return I.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(w,A.mergeProps({key:0},I.$attrs,{class:["crm-card",{collapsed:e.value,shadowless:I.shadowless}],shadow:"never"}),{header:A.withCtx(()=>[A.createElementVNode("div",{class:A.normalizeClass(["card-header",{"has-collapsed":I.collapsible}])},[I.collapsible?(A.openBlock(),A.createElementBlock("div",{key:0,class:"icon-wrapper",onClick:o[0]||(o[0]=M=>e.value=!e.value)},[A.createVNode(A.unref(Ie),{name:"dropdown",class:A.normalizeClass(["dropdown-icon",{"is-collapsed":e.value}])},null,8,["class"])])):A.createCommentVNode("",!0),I.mainIcon?(A.openBlock(),A.createBlock(xe,{key:1,class:"title-icon",size:"large",name:I.mainIcon.name,color:I.mainIcon.color},null,8,["name","color"])):A.createCommentVNode("",!0),A.createElementVNode("span",null,A.toDisplayString(I.header),1),I.headerFormSlots?(A.openBlock(),A.createElementBlock("div",W8,[A.createVNode(A.unref(mt),{list:I.headerFormSlots},null,8,["list"])])):A.createCommentVNode("",!0),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(I.extraIcons,M=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:M.name},[M.tips?(A.openBlock(),A.createBlock(b,{key:0,content:M.tips,placement:"right"},{default:A.withCtx(()=>[A.createVNode(xe,{class:"extra-icon",name:M.name,color:M.color,size:M.size||"small",onClick:N=>u(M.onClick)},null,8,["name","color","size","onClick"])]),_:2},1032,["content"])):(A.openBlock(),A.createBlock(xe,{key:1,class:"extra-icon",name:M.name,color:M.color,size:M.size||"small",onClick:N=>u(M.onClick)},null,8,["name","color","size","onClick"]))],64))),128)),A.createElementVNode("div",j8,[A.createVNode(A.unref(lo),{btns:I.btns||[]},null,8,["btns"])]),A.createElementVNode("div",q8,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(I.subHeaders,M=>(A.openBlock(),A.createElementBlock("div",{key:M,class:"card-sub-header-item"},[A.createElementVNode("span",null,A.toDisplayString(M),1)]))),128))])],2)]),default:A.withCtx(()=>[A.createVNode(y,null,{default:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",null,[A.createVNode(A.unref(mt),{list:I.children},null,8,["list"])],512),[[A.vShow,!e.value]])]),_:1})]),_:1},16,["class"]))}}}),[["__scopeId","data-v-dabefafe"]])},Symbol.toStringTag,{value:"Module"})),V8=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Cascader",props:A.mergeModels({options:{default:()=>[]},defaultOptions:{},multiple:{type:Boolean,default:!1},mode:{default:"static"},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{},env:{},apiParams:{},dependentFields:{},name:{default:""},onChange:{},read:{type:Boolean},readTextColor:{},filters:{},refreshFlag:{type:Boolean},clearable:{type:Boolean},width:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,t=A.useModel(n,"modelValue"),i=A.inject("ruleModule",void 0),u=A.inject("pageMethodMap",{}),I=y=>{if(e.onChange&&i)try{i[e.onChange](u,y)}catch(w){console.error(w+`
240
+ funcName: ${I}`)}};return(I,o)=>{const b=A.resolveComponent("el-tooltip"),y=A.resolveComponent("el-collapse-transition"),w=A.resolveComponent("ElCard");return I.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(w,A.mergeProps({key:0},I.$attrs,{class:["crm-card",{collapsed:e.value,shadowless:I.shadowless}],shadow:"never"}),{header:A.withCtx(()=>[A.createElementVNode("div",{class:A.normalizeClass(["card-header",{"has-collapsed":I.collapsible}])},[I.collapsible?(A.openBlock(),A.createElementBlock("div",{key:0,class:"icon-wrapper",onClick:o[0]||(o[0]=M=>e.value=!e.value)},[A.createVNode(A.unref(Ie),{name:"dropdown",class:A.normalizeClass(["dropdown-icon",{"is-collapsed":e.value}])},null,8,["class"])])):A.createCommentVNode("",!0),I.mainIcon?(A.openBlock(),A.createBlock(xe,{key:1,class:"title-icon",size:"large",name:I.mainIcon.name,color:I.mainIcon.color},null,8,["name","color"])):A.createCommentVNode("",!0),A.createElementVNode("span",null,A.toDisplayString(I.header),1),I.headerFormSlots?(A.openBlock(),A.createElementBlock("div",W8,[A.createVNode(A.unref(pt),{list:I.headerFormSlots},null,8,["list"])])):A.createCommentVNode("",!0),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(I.extraIcons,M=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:M.name},[M.tips?(A.openBlock(),A.createBlock(b,{key:0,content:M.tips,placement:"right"},{default:A.withCtx(()=>[A.createVNode(xe,{class:"extra-icon",name:M.name,color:M.color,size:M.size||"small",onClick:N=>u(M.onClick)},null,8,["name","color","size","onClick"])]),_:2},1032,["content"])):(A.openBlock(),A.createBlock(xe,{key:1,class:"extra-icon",name:M.name,color:M.color,size:M.size||"small",onClick:N=>u(M.onClick)},null,8,["name","color","size","onClick"]))],64))),128)),A.createElementVNode("div",j8,[A.createVNode(A.unref(lo),{btns:I.btns||[]},null,8,["btns"])]),A.createElementVNode("div",q8,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(I.subHeaders,M=>(A.openBlock(),A.createElementBlock("div",{key:M,class:"card-sub-header-item"},[A.createElementVNode("span",null,A.toDisplayString(M),1)]))),128))])],2)]),default:A.withCtx(()=>[A.createVNode(y,null,{default:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",null,[A.createVNode(A.unref(pt),{list:I.children},null,8,["list"])],512),[[A.vShow,!e.value]])]),_:1})]),_:1},16,["class"]))}}}),[["__scopeId","data-v-dabefafe"]])},Symbol.toStringTag,{value:"Module"})),V8=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Cascader",props:A.mergeModels({options:{default:()=>[]},defaultOptions:{},multiple:{type:Boolean,default:!1},mode:{default:"static"},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{},env:{},apiParams:{},dependentFields:{},name:{default:""},onChange:{},read:{type:Boolean},readTextColor:{},filters:{},refreshFlag:{type:Boolean},clearable:{type:Boolean},width:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,t=A.useModel(n,"modelValue"),i=A.inject("ruleModule",void 0),u=A.inject("pageMethodMap",{}),I=y=>{if(e.onChange&&i)try{i[e.onChange](u,y)}catch(w){console.error(w+`
241
241
  onChange: ${e.onChange}`)}},{currentOptions:o,loading:b}=Cr(e);return(y,w)=>{const M=A.resolveComponent("el-cascader");return A.openBlock(),A.createBlock(M,A.mergeProps({modelValue:t.value,"onUpdate:modelValue":w[0]||(w[0]=N=>t.value=N),options:A.unref(o),loading:A.unref(b),props:{multiple:y.multiple,label:y.labelKey,value:y.valueKey}},y.$attrs,{onChange:I}),null,16,["modelValue","options","loading","props"])}}})},Symbol.toStringTag,{value:"Module"}));var yC={exports:{}};/*!
242
242
  * jsoneditor.js
243
243
  *
@@ -1633,18 +1633,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1633
1633
  `,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},y=97,w=(o.parse=function(B,p,d){var l={},g=0,s=0,h=0,C=d&&d.bigint&&typeof BigInt<"u";return{data:a("",!0),pointers:l};function a(k,V){r(),$(k,"value");var H,AA=x();switch(AA){case"t":Q("rue"),H=!0;break;case"f":Q("alse"),H=!1;break;case"n":Q("ull"),H=null;break;case'"':H=m();break;case"[":H=function(sA){r();var oA=[],dA=0;if(x()!="]")for(S();;){oA.push(a(sA+"/"+dA)),r();var EA=x();if(EA=="]")break;EA!=","&&O(),r(),dA++}return oA}(k);break;case"{":H=function(sA){r();var oA={};if(x()!="}")for(S();;){var uA=W(),dA=(x()!='"'&&O(),m()),EA=sA+"/"+v(dA),uA=(eA(EA,"key",uA),$(EA,"keyEnd"),r(),x()!=":"&&O(),r(),oA[dA]=a(EA),r(),x());if(uA=="}")break;uA!=","&&O(),r()}return oA}(k);break;default:S(),0<="-0123456789".indexOf(AA)?H=function(){var sA="",oA=!0;B[h]=="-"&&(sA+=x()),sA+=(B[h]=="0"?x:T)(),B[h]=="."&&(sA+=x()+T(),oA=!1),B[h]!="e"&&B[h]!="E"||(sA+=x(),B[h]!="+"&&B[h]!="-"||(sA+=x()),sA+=T(),oA=!1);var dA=+sA;return C&&oA&&(dA>Number.MAX_SAFE_INTEGER||dA<Number.MIN_SAFE_INTEGER)?BigInt(sA):dA}():J()}return $(k,"valueEnd"),r(),V&&h<B.length&&J(),H}function r(){A:for(;h<B.length;){switch(B[h]){case" ":s++;break;case" ":s+=4;break;case"\r":s=0;break;case`
1634
1634
  `:s=0,g++;break;default:break A}h++}}function m(){for(var k,V="";(k=x())!='"';)k=="\\"?(k=x())in b?V+=b[k]:k=="u"?V+=function(){for(var H=4,AA=0;H--;){AA<<=4;var sA=x().toLowerCase();"a"<=sA&&sA<="f"?AA+=sA.charCodeAt()-y+10:"0"<=sA&&sA<="9"?AA+=+sA:O()}return String.fromCharCode(AA)}():O():V+=k;return V}function Q(k){for(var V=0;V<k.length;V++)x()!==k[V]&&O()}function x(){q();var k=B[h];return h++,s++,k}function S(){h--,s--}function T(){for(var k="";"0"<=B[h]&&B[h]<="9";)k+=x();if(k.length)return k;q(),J()}function $(k,V){eA(k,V,W())}function eA(k,V,H){l[k]=l[k]||{},l[k][V]=H}function W(){return{line:g,column:s,pos:h}}function J(){throw new SyntaxError("Unexpected token "+B[h]+" in JSON at position "+h)}function O(){S(),J()}function q(){if(h>=B.length)throw new SyntaxError("Unexpected end of JSON input")}},o.stringify=function(B,p,d){if(M(B)){var l=0;switch(typeof(s=typeof d=="object"?d.space:d)){case"number":var g=10<s?10:s<0?0:Math.floor(s),s=g&&J(g," "),h=g,C=g;break;case"string":s=s.slice(0,10);for(var a=C=h=0;a<s.length;a++){switch(s[a]){case" ":C++;break;case" ":C+=4;break;case"\r":C=0;break;case`
1635
1635
  `:C=0,l++;break;default:throw new Error("whitespace characters not allowed in JSON")}h++}break;default:s=void 0}var r="",m={},Q=0,x=0,S=0,T=d&&d.es6&&typeof Map=="function";return function O(q,k,V){switch(W(V,"value"),typeof q){case"number":case"bigint":case"boolean":$(""+q);break;case"string":$(E(q));break;case"object":q===null?$("null"):typeof q.toJSON=="function"?$(E(q.toJSON())):Array.isArray(q)?H():T?q.constructor.BYTES_PER_ELEMENT?H():q instanceof Map?sA():q instanceof Set?sA(!0):AA():AA()}W(V,"valueEnd");function H(){if(q.length){$("[");for(var oA=k+1,dA=0;dA<q.length;dA++){dA&&$(","),eA(oA);var EA=M(q[dA])?q[dA]:null,uA=V+"/"+dA;O(EA,oA,uA)}eA(k),$("]")}else $("[]")}function AA(){var oA=Object.keys(q);if(oA.length){$("{");for(var dA=k+1,EA=0;EA<oA.length;EA++){var uA,BA=oA[EA],j=q[BA];M(j)&&(EA&&$(","),uA=V+"/"+v(BA),eA(dA),W(uA,"key"),$(E(BA)),W(uA,"keyEnd"),$(":"),s&&$(" "),O(j,dA,uA))}eA(k),$("}")}else $("{}")}function sA(oA){if(q.size){$("{");for(var dA=k+1,EA=!0,uA=q.entries(),BA=uA.next();!BA.done;){var j,rA=BA.value,tA=rA[0],rA=!!oA||rA[1];M(rA)&&(EA||$(","),EA=!1,j=V+"/"+v(tA),eA(dA),W(j,"key"),$(E(tA)),W(j,"keyEnd"),$(":"),s&&$(" "),O(rA,dA,j)),BA=uA.next()}eA(k),$("}")}else $("{}")}}(B,0,""),{json:r,pointers:m}}function $(O){x+=O.length,S+=O.length,r+=O}function eA(O){if(s){for(r+=`
1636
- `+J(O,s),Q++,x=0;O--;)l?(Q+=l,x=C):x+=C,S+=h;S+=1}}function W(O,q){m[O]=m[O]||{},m[O][q]={line:Q,column:x,pos:S}}function J(O,q){return Array(O+1).join(q)}},["number","bigint","boolean","string","object"]);function M(B){return 0<=w.indexOf(typeof B)}var N=/"|\\/g,P=/[\b]/g,Y=/\f/g,G=/\n/g,K=/\r/g,D=/\t/g;function E(B){return'"'+(B=B.replace(N,"\\$&").replace(Y,"\\f").replace(P,"\\b").replace(G,"\\n").replace(K,"\\r").replace(D,"\\t"))+'"'}var L=/~/g,_=/\//g;function v(B){return B.replace(L,"~0").replace(_,"~1")}},8340:function(I,o){var b;(o=typeof(b=function(){function y(p){return typeof Node=="object"?p instanceof Node:p&&typeof p=="object"&&typeof p.nodeType=="number"}function w(p){return typeof p=="string"}function M(){var p=[];return{watch:p.push.bind(p),trigger:function(d,l){for(var g=!0,s={detail:l,preventDefault:function(){g=!1}},h=0;h<p.length;h++)p[h](d,s);return g}}}function N(p){return window.getComputedStyle(p).display==="none"}function P(p){this.elem=p}function Y(p,d){return P.make(p("parent")).clazz("pico-overlay").clazz(p("overlayClass","")).stylize({display:"none",position:"fixed",top:"0px",left:"0px",height:"100%",width:"100%",zIndex:1e4}).stylize(p("overlayStyles",{opacity:.5,background:"#000"})).onClick(function(){p("overlayClose",!0)&&d()})}P.make=function(p,d){typeof p=="string"&&(p=document.querySelector(p));var l=document.createElement(d||"div");return(p||document.body).appendChild(l),new P(l)},P.prototype={child:function(p){return P.make(this.elem,p)},stylize:function(p){p=p||{},typeof p.opacity<"u"&&(p.filter="alpha(opacity="+p.opacity*100+")");for(var d in p)p.hasOwnProperty(d)&&(this.elem.style[d]=p[d]);return this},clazz:function(p){return this.elem.className+=" "+p,this},html:function(p){return y(p)?this.elem.appendChild(p):this.elem.innerHTML=p,this},onClick:function(p){return this.elem.addEventListener("click",p),this},destroy:function(){this.elem.parentNode.removeChild(this.elem)},hide:function(){this.elem.style.display="none"},show:function(){this.elem.style.display="block"},attr:function(p,d){return d!==void 0&&this.elem.setAttribute(p,d),this},anyAncestor:function(p){for(var d=this.elem;d;){if(p(new P(d)))return!0;d=d.parentNode}return!1},isVisible:function(){return!N(this.elem)}};var G=1;function K(p,d){var l=p("width","auto");typeof l=="number"&&(l=""+l+"px");var g=p("modalId","pico-"+G++),s=P.make(p("parent")).clazz("pico-content").clazz(p("modalClass","")).stylize({display:"none",position:"fixed",zIndex:10001,left:"50%",top:"38.1966%",maxHeight:"90%",boxSizing:"border-box",width:l,"-ms-transform":"translate(-50%,-38.1966%)","-moz-transform":"translate(-50%,-38.1966%)","-webkit-transform":"translate(-50%,-38.1966%)","-o-transform":"translate(-50%,-38.1966%)",transform:"translate(-50%,-38.1966%)"}).stylize(p("modalStyles",{overflow:"auto",backgroundColor:"white",padding:"20px",borderRadius:"5px"})).html(p("content")).attr("id",g).attr("role","dialog").attr("aria-labelledby",p("ariaLabelledBy")).attr("aria-describedby",p("ariaDescribedBy",g)).onClick(function(h){var C=new P(h.target).anyAncestor(function(a){return/\bpico-close\b/.test(a.elem.className)});C&&d()});return s}function D(p,d){if(d("closeButton",!0))return p.child("button").html(d("closeHtml","&#xD7;")).clazz("pico-close").clazz(d("closeClass","")).stylize(d("closeStyles",{borderRadius:"2px",border:0,padding:0,cursor:"pointer",height:"15px",width:"15px",position:"absolute",top:"5px",right:"5px",fontSize:"16px",textAlign:"center",lineHeight:"15px",background:"#CCC"})).attr("aria-label",d("close-label","Close"))}function E(p){return function(){return p().elem}}var L=M(),_=M();function v(p,d){function l(a,r){var m=a.msMatchesSelector||a.webkitMatchesSelector||a.matches;return m.call(a,r)}function g(a){return N(a)||l(a,":disabled")||a.hasAttribute("contenteditable")?!1:a.hasAttribute("tabindex")||l(a,"input,select,textarea,button,a[href],area[href],iframe")}function s(a){for(var r=a.getElementsByTagName("*"),m=0;m<r.length;m++)if(g(r[m]))return r[m]}function h(a){for(var r=a.getElementsByTagName("*"),m=r.length;m--;)if(g(r[m]))return r[m]}var C;p.beforeShow(function(){C=document.activeElement}),p.afterShow(function(){if(d()){var r=s(p.modalElem());r&&r.focus()}}),p.afterClose(function(){d()&&C&&C.focus(),C=null}),_.watch(function(r){if(d()&&p.isVisible()){var m=s(p.modalElem()),Q=h(p.modalElem()),x=r.shiftKey?m:Q;x===document.activeElement&&((r.shiftKey?Q:m).focus(),r.preventDefault())}})}function B(p,d){var l,g=new P(document.body);p.beforeShow(function(){l=g.elem.style.overflow,d()&&g.stylize({overflow:"hidden"})}),p.afterClose(function(){g.stylize({overflow:l})})}return document.documentElement.addEventListener("keydown",function(d){var l=d.which||d.keyCode;l===27?L.trigger():l===9&&_.trigger(d)}),function(d){(w(d)||y(d))&&(d={content:d});var l=M(),g=M(),s=M(),h=M(),C=M();function a(J,O){var q=d[J];return typeof q=="function"&&(q=q(O)),q===void 0?O:q}var r=W.bind(window,"modal"),m=W.bind(window,"overlay"),Q=W.bind(window,"close"),x;function S(J){m().hide(),r().hide(),C.trigger(x,J)}function T(J){h.trigger(x,J)&&S(J)}function $(J){return function(){return J.apply(this,arguments),x}}var eA;function W(J,O){if(!eA){var q=K(a,T);eA={modal:q,overlay:Y(a,T),close:D(q,a)},l.trigger(x,O)}return eA[J]}return x={modalElem:E(r),closeElem:E(Q),overlayElem:E(m),buildDom:$(W.bind(null,null)),isVisible:function(){return!!(eA&&r&&r().isVisible())},show:function(J){return g.trigger(x,J)&&(m().show(),Q(),r().show(),s.trigger(x,J)),this},close:$(T),forceClose:$(S),destroy:function(){r().destroy(),m().destroy(),m=r=Q=void 0},options:function(J){Object.keys(J).map(function(O){d[O]=J[O]})},afterCreate:$(l.watch),beforeShow:$(g.watch),afterShow:$(s.watch),beforeClose:$(h.watch),afterClose:$(C.watch)},v(x,a.bind(null,"focus",!0)),B(x,a.bind(null,"bodyOverflow",!0)),L.watch(function(){a("escCloses",!0)&&x.isVisible()&&x.close()}),x}})=="function"?b.apply(o,[]):b)!==void 0&&(I.exports=o)},6777:function(I,o){/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(b){function y(){for(var MA=arguments.length,bA=Array(MA),RA=0;RA<MA;RA++)bA[RA]=arguments[RA];if(bA.length>1){bA[0]=bA[0].slice(0,-1);for(var zA=bA.length-1,OA=1;OA<zA;++OA)bA[OA]=bA[OA].slice(1,-1);return bA[zA]=bA[zA].slice(1),bA.join("")}else return bA[0]}function w(MA){return"(?:"+MA+")"}function M(MA){return MA===void 0?"undefined":MA===null?"null":Object.prototype.toString.call(MA).split(" ").pop().split("]").shift().toLowerCase()}function N(MA){return MA.toUpperCase()}function P(MA){return MA!=null?MA instanceof Array?MA:typeof MA.length!="number"||MA.split||MA.setInterval||MA.call?[MA]:Array.prototype.slice.call(MA):[]}function Y(MA,bA){var RA=MA;if(bA)for(var zA in bA)RA[zA]=bA[zA];return RA}function G(MA){var bA="[A-Za-z]",RA="[0-9]",zA=y(RA,"[A-Fa-f]"),OA=w(w("%[EFef]"+zA+"%"+zA+zA+"%"+zA+zA)+"|"+w("%[89A-Fa-f]"+zA+"%"+zA+zA)+"|"+w("%"+zA+zA)),fe="[\\:\\/\\?\\#\\[\\]\\@]",ne="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",_e=y(fe,ne),qe=MA?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",pt=MA?"[\\uE000-\\uF8FF]":"[]",ze=y(bA,RA,"[\\-\\.\\_\\~]",qe);w(bA+y(bA,RA,"[\\+\\-\\.]")+"*"),w(w(OA+"|"+y(ze,ne,"[\\:]"))+"*");var At=w(w("25[0-5]")+"|"+w("2[0-4]"+RA)+"|"+w("1"+RA+RA)+"|"+w("0?[1-9]"+RA)+"|0?0?"+RA),gt=w(At+"\\."+At+"\\."+At+"\\."+At),Pe=w(zA+"{1,4}"),ot=w(w(Pe+"\\:"+Pe)+"|"+gt),Et=w(w(Pe+"\\:")+"{6}"+ot),nt=w("\\:\\:"+w(Pe+"\\:")+"{5}"+ot),Nn=w(w(Pe)+"?\\:\\:"+w(Pe+"\\:")+"{4}"+ot),Xt=w(w(w(Pe+"\\:")+"{0,1}"+Pe)+"?\\:\\:"+w(Pe+"\\:")+"{3}"+ot),Vt=w(w(w(Pe+"\\:")+"{0,2}"+Pe)+"?\\:\\:"+w(Pe+"\\:")+"{2}"+ot),gn=w(w(w(Pe+"\\:")+"{0,3}"+Pe)+"?\\:\\:"+Pe+"\\:"+ot),wn=w(w(w(Pe+"\\:")+"{0,4}"+Pe)+"?\\:\\:"+ot),St=w(w(w(Pe+"\\:")+"{0,5}"+Pe)+"?\\:\\:"+Pe),An=w(w(w(Pe+"\\:")+"{0,6}"+Pe)+"?\\:\\:"),On=w([Et,nt,Nn,Xt,Vt,gn,wn,St,An].join("|")),en=w(w(ze+"|"+OA)+"+");w("[vV]"+zA+"+\\."+y(ze,ne,"[\\:]")+"+"),w(w(OA+"|"+y(ze,ne))+"*");var Ci=w(OA+"|"+y(ze,ne,"[\\:\\@]"));return w(w(OA+"|"+y(ze,ne,"[\\@]"))+"+"),w(w(Ci+"|"+y("[\\/\\?]",pt))+"*"),{NOT_SCHEME:new RegExp(y("[^]",bA,RA,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(y("[^\\%\\:]",ze,ne),"g"),NOT_HOST:new RegExp(y("[^\\%\\[\\]\\:]",ze,ne),"g"),NOT_PATH:new RegExp(y("[^\\%\\/\\:\\@]",ze,ne),"g"),NOT_PATH_NOSCHEME:new RegExp(y("[^\\%\\/\\@]",ze,ne),"g"),NOT_QUERY:new RegExp(y("[^\\%]",ze,ne,"[\\:\\@\\/\\?]",pt),"g"),NOT_FRAGMENT:new RegExp(y("[^\\%]",ze,ne,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(y("[^]",ze,ne),"g"),UNRESERVED:new RegExp(ze,"g"),OTHER_CHARS:new RegExp(y("[^\\%]",ze,_e),"g"),PCT_ENCODED:new RegExp(OA,"g"),IPV4ADDRESS:new RegExp("^("+gt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+On+")"+w(w("\\%25|\\%(?!"+zA+"{2})")+"("+en+")")+"?\\]?$")}}var K=G(!1),D=G(!0),E=function(){function MA(bA,RA){var zA=[],OA=!0,fe=!1,ne=void 0;try{for(var _e=bA[Symbol.iterator](),qe;!(OA=(qe=_e.next()).done)&&(zA.push(qe.value),!(RA&&zA.length===RA));OA=!0);}catch(pt){fe=!0,ne=pt}finally{try{!OA&&_e.return&&_e.return()}finally{if(fe)throw ne}}return zA}return function(bA,RA){if(Array.isArray(bA))return bA;if(Symbol.iterator in Object(bA))return MA(bA,RA);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),L=function(MA){if(Array.isArray(MA)){for(var bA=0,RA=Array(MA.length);bA<MA.length;bA++)RA[bA]=MA[bA];return RA}else return Array.from(MA)},_=2147483647,v=36,B=1,p=26,d=38,l=700,g=72,s=128,h="-",C=/^xn--/,a=/[^\0-\x7E]/,r=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Q=v-B,x=Math.floor,S=String.fromCharCode;function T(MA){throw new RangeError(m[MA])}function $(MA,bA){for(var RA=[],zA=MA.length;zA--;)RA[zA]=bA(MA[zA]);return RA}function eA(MA,bA){var RA=MA.split("@"),zA="";RA.length>1&&(zA=RA[0]+"@",MA=RA[1]),MA=MA.replace(r,".");var OA=MA.split("."),fe=$(OA,bA).join(".");return zA+fe}function W(MA){for(var bA=[],RA=0,zA=MA.length;RA<zA;){var OA=MA.charCodeAt(RA++);if(OA>=55296&&OA<=56319&&RA<zA){var fe=MA.charCodeAt(RA++);(fe&64512)==56320?bA.push(((OA&1023)<<10)+(fe&1023)+65536):(bA.push(OA),RA--)}else bA.push(OA)}return bA}var J=function(bA){return bA-48<10?bA-22:bA-65<26?bA-65:bA-97<26?bA-97:v},O=function(bA,RA){return bA+22+75*(bA<26)-((RA!=0)<<5)},q=function(bA,RA,zA){var OA=0;for(bA=zA?x(bA/l):bA>>1,bA+=x(bA/RA);bA>Q*p>>1;OA+=v)bA=x(bA/Q);return x(OA+(Q+1)*bA/(bA+d))},k=function(bA){var RA=[],zA=bA.length,OA=0,fe=s,ne=g,_e=bA.lastIndexOf(h);_e<0&&(_e=0);for(var qe=0;qe<_e;++qe)bA.charCodeAt(qe)>=128&&T("not-basic"),RA.push(bA.charCodeAt(qe));for(var pt=_e>0?_e+1:0;pt<zA;){for(var ze=OA,At=1,gt=v;;gt+=v){pt>=zA&&T("invalid-input");var Pe=J(bA.charCodeAt(pt++));(Pe>=v||Pe>x((_-OA)/At))&&T("overflow"),OA+=Pe*At;var ot=gt<=ne?B:gt>=ne+p?p:gt-ne;if(Pe<ot)break;var Et=v-ot;At>x(_/Et)&&T("overflow"),At*=Et}var nt=RA.length+1;ne=q(OA-ze,nt,ze==0),x(OA/nt)>_-fe&&T("overflow"),fe+=x(OA/nt),OA%=nt,RA.splice(OA++,0,fe)}return String.fromCodePoint.apply(String,RA)},V=function(bA){var RA=[];bA=W(bA);var zA=bA.length,OA=s,fe=0,ne=g,_e=!0,qe=!1,pt=void 0;try{for(var ze=bA[Symbol.iterator](),At;!(_e=(At=ze.next()).done);_e=!0){var gt=At.value;gt<128&&RA.push(S(gt))}}catch(bn){qe=!0,pt=bn}finally{try{!_e&&ze.return&&ze.return()}finally{if(qe)throw pt}}var Pe=RA.length,ot=Pe;for(Pe&&RA.push(h);ot<zA;){var Et=_,nt=!0,Nn=!1,Xt=void 0;try{for(var Vt=bA[Symbol.iterator](),gn;!(nt=(gn=Vt.next()).done);nt=!0){var wn=gn.value;wn>=OA&&wn<Et&&(Et=wn)}}catch(bn){Nn=!0,Xt=bn}finally{try{!nt&&Vt.return&&Vt.return()}finally{if(Nn)throw Xt}}var St=ot+1;Et-OA>x((_-fe)/St)&&T("overflow"),fe+=(Et-OA)*St,OA=Et;var An=!0,On=!1,en=void 0;try{for(var Ci=bA[Symbol.iterator](),Bi;!(An=(Bi=Ci.next()).done);An=!0){var co=Bi.value;if(co<OA&&++fe>_&&T("overflow"),co==OA){for(var mi=fe,ti=v;;ti+=v){var Pi=ti<=ne?B:ti>=ne+p?p:ti-ne;if(mi<Pi)break;var go=mi-Pi,ni=v-Pi;RA.push(S(O(Pi+go%ni,0))),mi=x(go/ni)}RA.push(S(O(mi,0))),ne=q(fe,St,ot==Pe),fe=0,++ot}}}catch(bn){On=!0,en=bn}finally{try{!An&&Ci.return&&Ci.return()}finally{if(On)throw en}}++fe,++OA}return RA.join("")},H={version:"2.1.0",ucs2:{decode:W,encode:function(bA){return String.fromCodePoint.apply(String,L(bA))}},decode:k,encode:V,toASCII:function(bA){return eA(bA,function(RA){return a.test(RA)?"xn--"+V(RA):RA})},toUnicode:function(bA){return eA(bA,function(RA){return C.test(RA)?k(RA.slice(4).toLowerCase()):RA})}},AA={};function sA(MA){var bA=MA.charCodeAt(0),RA=void 0;return bA<16?RA="%0"+bA.toString(16).toUpperCase():bA<128?RA="%"+bA.toString(16).toUpperCase():bA<2048?RA="%"+(bA>>6|192).toString(16).toUpperCase()+"%"+(bA&63|128).toString(16).toUpperCase():RA="%"+(bA>>12|224).toString(16).toUpperCase()+"%"+(bA>>6&63|128).toString(16).toUpperCase()+"%"+(bA&63|128).toString(16).toUpperCase(),RA}function oA(MA){for(var bA="",RA=0,zA=MA.length;RA<zA;){var OA=parseInt(MA.substr(RA+1,2),16);if(OA<128)bA+=String.fromCharCode(OA),RA+=3;else if(OA>=194&&OA<224){if(zA-RA>=6){var fe=parseInt(MA.substr(RA+4,2),16);bA+=String.fromCharCode((OA&31)<<6|fe&63)}else bA+=MA.substr(RA,6);RA+=6}else if(OA>=224){if(zA-RA>=9){var ne=parseInt(MA.substr(RA+4,2),16),_e=parseInt(MA.substr(RA+7,2),16);bA+=String.fromCharCode((OA&15)<<12|(ne&63)<<6|_e&63)}else bA+=MA.substr(RA,9);RA+=9}else bA+=MA.substr(RA,3),RA+=3}return bA}function dA(MA,bA){function RA(zA){var OA=oA(zA);return OA.match(bA.UNRESERVED)?OA:zA}return MA.scheme&&(MA.scheme=String(MA.scheme).replace(bA.PCT_ENCODED,RA).toLowerCase().replace(bA.NOT_SCHEME,"")),MA.userinfo!==void 0&&(MA.userinfo=String(MA.userinfo).replace(bA.PCT_ENCODED,RA).replace(bA.NOT_USERINFO,sA).replace(bA.PCT_ENCODED,N)),MA.host!==void 0&&(MA.host=String(MA.host).replace(bA.PCT_ENCODED,RA).toLowerCase().replace(bA.NOT_HOST,sA).replace(bA.PCT_ENCODED,N)),MA.path!==void 0&&(MA.path=String(MA.path).replace(bA.PCT_ENCODED,RA).replace(MA.scheme?bA.NOT_PATH:bA.NOT_PATH_NOSCHEME,sA).replace(bA.PCT_ENCODED,N)),MA.query!==void 0&&(MA.query=String(MA.query).replace(bA.PCT_ENCODED,RA).replace(bA.NOT_QUERY,sA).replace(bA.PCT_ENCODED,N)),MA.fragment!==void 0&&(MA.fragment=String(MA.fragment).replace(bA.PCT_ENCODED,RA).replace(bA.NOT_FRAGMENT,sA).replace(bA.PCT_ENCODED,N)),MA}function EA(MA){return MA.replace(/^0*(.*)/,"$1")||"0"}function uA(MA,bA){var RA=MA.match(bA.IPV4ADDRESS)||[],zA=E(RA,2),OA=zA[1];return OA?OA.split(".").map(EA).join("."):MA}function BA(MA,bA){var RA=MA.match(bA.IPV6ADDRESS)||[],zA=E(RA,3),OA=zA[1],fe=zA[2];if(OA){for(var ne=OA.toLowerCase().split("::").reverse(),_e=E(ne,2),qe=_e[0],pt=_e[1],ze=pt?pt.split(":").map(EA):[],At=qe.split(":").map(EA),gt=bA.IPV4ADDRESS.test(At[At.length-1]),Pe=gt?7:8,ot=At.length-Pe,Et=Array(Pe),nt=0;nt<Pe;++nt)Et[nt]=ze[nt]||At[ot+nt]||"";gt&&(Et[Pe-1]=uA(Et[Pe-1],bA));var Nn=Et.reduce(function(St,An,On){if(!An||An==="0"){var en=St[St.length-1];en&&en.index+en.length===On?en.length++:St.push({index:On,length:1})}return St},[]),Xt=Nn.sort(function(St,An){return An.length-St.length})[0],Vt=void 0;if(Xt&&Xt.length>1){var gn=Et.slice(0,Xt.index),wn=Et.slice(Xt.index+Xt.length);Vt=gn.join(":")+"::"+wn.join(":")}else Vt=Et.join(":");return fe&&(Vt+="%"+fe),Vt}else return MA}var j=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,tA="".match(/(){0}/)[1]===void 0;function rA(MA){var bA=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},RA={},zA=bA.iri!==!1?D:K;bA.reference==="suffix"&&(MA=(bA.scheme?bA.scheme+":":"")+"//"+MA);var OA=MA.match(j);if(OA){tA?(RA.scheme=OA[1],RA.userinfo=OA[3],RA.host=OA[4],RA.port=parseInt(OA[5],10),RA.path=OA[6]||"",RA.query=OA[7],RA.fragment=OA[8],isNaN(RA.port)&&(RA.port=OA[5])):(RA.scheme=OA[1]||void 0,RA.userinfo=MA.indexOf("@")!==-1?OA[3]:void 0,RA.host=MA.indexOf("//")!==-1?OA[4]:void 0,RA.port=parseInt(OA[5],10),RA.path=OA[6]||"",RA.query=MA.indexOf("?")!==-1?OA[7]:void 0,RA.fragment=MA.indexOf("#")!==-1?OA[8]:void 0,isNaN(RA.port)&&(RA.port=MA.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?OA[4]:void 0)),RA.host&&(RA.host=BA(uA(RA.host,zA),zA)),RA.scheme===void 0&&RA.userinfo===void 0&&RA.host===void 0&&RA.port===void 0&&!RA.path&&RA.query===void 0?RA.reference="same-document":RA.scheme===void 0?RA.reference="relative":RA.fragment===void 0?RA.reference="absolute":RA.reference="uri",bA.reference&&bA.reference!=="suffix"&&bA.reference!==RA.reference&&(RA.error=RA.error||"URI is not a "+bA.reference+" reference.");var fe=AA[(bA.scheme||RA.scheme||"").toLowerCase()];if(!bA.unicodeSupport&&(!fe||!fe.unicodeSupport)){if(RA.host&&(bA.domainHost||fe&&fe.domainHost))try{RA.host=H.toASCII(RA.host.replace(zA.PCT_ENCODED,oA).toLowerCase())}catch(ne){RA.error=RA.error||"Host's domain name can not be converted to ASCII via punycode: "+ne}dA(RA,K)}else dA(RA,zA);fe&&fe.parse&&fe.parse(RA,bA)}else RA.error=RA.error||"URI can not be parsed.";return RA}function gA(MA,bA){var RA=bA.iri!==!1?D:K,zA=[];return MA.userinfo!==void 0&&(zA.push(MA.userinfo),zA.push("@")),MA.host!==void 0&&zA.push(BA(uA(String(MA.host),RA),RA).replace(RA.IPV6ADDRESS,function(OA,fe,ne){return"["+fe+(ne?"%25"+ne:"")+"]"})),(typeof MA.port=="number"||typeof MA.port=="string")&&(zA.push(":"),zA.push(String(MA.port))),zA.length?zA.join(""):void 0}var z=/^\.\.?\//,X=/^\/\.(\/|$)/,iA=/^\/\.\.(\/|$)/,cA=/^\/?(?:.|\n)*?(?=\/|$)/;function CA(MA){for(var bA=[];MA.length;)if(MA.match(z))MA=MA.replace(z,"");else if(MA.match(X))MA=MA.replace(X,"/");else if(MA.match(iA))MA=MA.replace(iA,"/"),bA.pop();else if(MA==="."||MA==="..")MA="";else{var RA=MA.match(cA);if(RA){var zA=RA[0];MA=MA.slice(zA.length),bA.push(zA)}else throw new Error("Unexpected dot segment condition")}return bA.join("")}function vA(MA){var bA=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},RA=bA.iri?D:K,zA=[],OA=AA[(bA.scheme||MA.scheme||"").toLowerCase()];if(OA&&OA.serialize&&OA.serialize(MA,bA),MA.host&&!RA.IPV6ADDRESS.test(MA.host)){if(bA.domainHost||OA&&OA.domainHost)try{MA.host=bA.iri?H.toUnicode(MA.host):H.toASCII(MA.host.replace(RA.PCT_ENCODED,oA).toLowerCase())}catch(_e){MA.error=MA.error||"Host's domain name can not be converted to "+(bA.iri?"Unicode":"ASCII")+" via punycode: "+_e}}dA(MA,RA),bA.reference!=="suffix"&&MA.scheme&&(zA.push(MA.scheme),zA.push(":"));var fe=gA(MA,bA);if(fe!==void 0&&(bA.reference!=="suffix"&&zA.push("//"),zA.push(fe),MA.path&&MA.path.charAt(0)!=="/"&&zA.push("/")),MA.path!==void 0){var ne=MA.path;!bA.absolutePath&&(!OA||!OA.absolutePath)&&(ne=CA(ne)),fe===void 0&&(ne=ne.replace(/^\/\//,"/%2F")),zA.push(ne)}return MA.query!==void 0&&(zA.push("?"),zA.push(MA.query)),MA.fragment!==void 0&&(zA.push("#"),zA.push(MA.fragment)),zA.join("")}function GA(MA,bA){var RA=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},zA=arguments[3],OA={};return zA||(MA=rA(vA(MA,RA),RA),bA=rA(vA(bA,RA),RA)),RA=RA||{},!RA.tolerant&&bA.scheme?(OA.scheme=bA.scheme,OA.userinfo=bA.userinfo,OA.host=bA.host,OA.port=bA.port,OA.path=CA(bA.path||""),OA.query=bA.query):(bA.userinfo!==void 0||bA.host!==void 0||bA.port!==void 0?(OA.userinfo=bA.userinfo,OA.host=bA.host,OA.port=bA.port,OA.path=CA(bA.path||""),OA.query=bA.query):(bA.path?(bA.path.charAt(0)==="/"?OA.path=CA(bA.path):((MA.userinfo!==void 0||MA.host!==void 0||MA.port!==void 0)&&!MA.path?OA.path="/"+bA.path:MA.path?OA.path=MA.path.slice(0,MA.path.lastIndexOf("/")+1)+bA.path:OA.path=bA.path,OA.path=CA(OA.path)),OA.query=bA.query):(OA.path=MA.path,bA.query!==void 0?OA.query=bA.query:OA.query=MA.query),OA.userinfo=MA.userinfo,OA.host=MA.host,OA.port=MA.port),OA.scheme=MA.scheme),OA.fragment=bA.fragment,OA}function JA(MA,bA,RA){var zA=Y({scheme:"null"},RA);return vA(GA(rA(MA,zA),rA(bA,zA),zA,!0),zA)}function qA(MA,bA){return typeof MA=="string"?MA=vA(rA(MA,bA),bA):M(MA)==="object"&&(MA=rA(vA(MA,bA),bA)),MA}function WA(MA,bA,RA){return typeof MA=="string"?MA=vA(rA(MA,RA),RA):M(MA)==="object"&&(MA=vA(MA,RA)),typeof bA=="string"?bA=vA(rA(bA,RA),RA):M(bA)==="object"&&(bA=vA(bA,RA)),MA===bA}function ue(MA,bA){return MA&&MA.toString().replace(!bA||!bA.iri?K.ESCAPE:D.ESCAPE,sA)}function te(MA,bA){return MA&&MA.toString().replace(!bA||!bA.iri?K.PCT_ENCODED:D.PCT_ENCODED,oA)}var LA={scheme:"http",domainHost:!0,parse:function(bA,RA){return bA.host||(bA.error=bA.error||"HTTP URIs must have a host."),bA},serialize:function(bA,RA){var zA=String(bA.scheme).toLowerCase()==="https";return(bA.port===(zA?443:80)||bA.port==="")&&(bA.port=void 0),bA.path||(bA.path="/"),bA}},SA={scheme:"https",domainHost:LA.domainHost,parse:LA.parse,serialize:LA.serialize};function ZA(MA){return typeof MA.secure=="boolean"?MA.secure:String(MA.scheme).toLowerCase()==="wss"}var Be={scheme:"ws",domainHost:!0,parse:function(bA,RA){var zA=bA;return zA.secure=ZA(zA),zA.resourceName=(zA.path||"/")+(zA.query?"?"+zA.query:""),zA.path=void 0,zA.query=void 0,zA},serialize:function(bA,RA){if((bA.port===(ZA(bA)?443:80)||bA.port==="")&&(bA.port=void 0),typeof bA.secure=="boolean"&&(bA.scheme=bA.secure?"wss":"ws",bA.secure=void 0),bA.resourceName){var zA=bA.resourceName.split("?"),OA=E(zA,2),fe=OA[0],ne=OA[1];bA.path=fe&&fe!=="/"?fe:void 0,bA.query=ne,bA.resourceName=void 0}return bA.fragment=void 0,bA}},De={scheme:"wss",domainHost:Be.domainHost,parse:Be.parse,serialize:Be.serialize},Se={},YA="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",$A="[0-9A-Fa-f]",XA=w(w("%[EFef]"+$A+"%"+$A+$A+"%"+$A+$A)+"|"+w("%[89A-Fa-f]"+$A+"%"+$A+$A)+"|"+w("%"+$A+$A)),he="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",ce=y("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Ee="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",ke=new RegExp(YA,"g"),wA=new RegExp(XA,"g"),NA=new RegExp(y("[^]",he,"[\\.]",'[\\"]',ce),"g"),KA=new RegExp(y("[^]",YA,Ee),"g"),oe=KA;function be(MA){var bA=oA(MA);return bA.match(ke)?bA:MA}var re={scheme:"mailto",parse:function(bA,RA){var zA=bA,OA=zA.to=zA.path?zA.path.split(","):[];if(zA.path=void 0,zA.query){for(var fe=!1,ne={},_e=zA.query.split("&"),qe=0,pt=_e.length;qe<pt;++qe){var ze=_e[qe].split("=");switch(ze[0]){case"to":for(var At=ze[1].split(","),gt=0,Pe=At.length;gt<Pe;++gt)OA.push(At[gt]);break;case"subject":zA.subject=te(ze[1],RA);break;case"body":zA.body=te(ze[1],RA);break;default:fe=!0,ne[te(ze[0],RA)]=te(ze[1],RA);break}}fe&&(zA.headers=ne)}zA.query=void 0;for(var ot=0,Et=OA.length;ot<Et;++ot){var nt=OA[ot].split("@");if(nt[0]=te(nt[0]),RA.unicodeSupport)nt[1]=te(nt[1],RA).toLowerCase();else try{nt[1]=H.toASCII(te(nt[1],RA).toLowerCase())}catch(Nn){zA.error=zA.error||"Email address's domain name can not be converted to ASCII via punycode: "+Nn}OA[ot]=nt.join("@")}return zA},serialize:function(bA,RA){var zA=bA,OA=P(bA.to);if(OA){for(var fe=0,ne=OA.length;fe<ne;++fe){var _e=String(OA[fe]),qe=_e.lastIndexOf("@"),pt=_e.slice(0,qe).replace(wA,be).replace(wA,N).replace(NA,sA),ze=_e.slice(qe+1);try{ze=RA.iri?H.toUnicode(ze):H.toASCII(te(ze,RA).toLowerCase())}catch(ot){zA.error=zA.error||"Email address's domain name can not be converted to "+(RA.iri?"Unicode":"ASCII")+" via punycode: "+ot}OA[fe]=pt+"@"+ze}zA.path=OA.join(",")}var At=bA.headers=bA.headers||{};bA.subject&&(At.subject=bA.subject),bA.body&&(At.body=bA.body);var gt=[];for(var Pe in At)At[Pe]!==Se[Pe]&&gt.push(Pe.replace(wA,be).replace(wA,N).replace(KA,sA)+"="+At[Pe].replace(wA,be).replace(wA,N).replace(oe,sA));return gt.length&&(zA.query=gt.join("&")),zA}},ge=/^([^\:]+)\:(.*)/,Me={scheme:"urn",parse:function(bA,RA){var zA=bA.path&&bA.path.match(ge),OA=bA;if(zA){var fe=RA.scheme||OA.scheme||"urn",ne=zA[1].toLowerCase(),_e=zA[2],qe=fe+":"+(RA.nid||ne),pt=AA[qe];OA.nid=ne,OA.nss=_e,OA.path=void 0,pt&&(OA=pt.parse(OA,RA))}else OA.error=OA.error||"URN can not be parsed.";return OA},serialize:function(bA,RA){var zA=RA.scheme||bA.scheme||"urn",OA=bA.nid,fe=zA+":"+(RA.nid||OA),ne=AA[fe];ne&&(bA=ne.serialize(bA,RA));var _e=bA,qe=bA.nss;return _e.path=(OA||RA.nid)+":"+qe,_e}},tt=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,lt={scheme:"urn:uuid",parse:function(bA,RA){var zA=bA;return zA.uuid=zA.nss,zA.nss=void 0,!RA.tolerant&&(!zA.uuid||!zA.uuid.match(tt))&&(zA.error=zA.error||"UUID is not valid."),zA},serialize:function(bA,RA){var zA=bA;return zA.nss=(bA.uuid||"").toLowerCase(),zA}};AA[LA.scheme]=LA,AA[SA.scheme]=SA,AA[Be.scheme]=Be,AA[De.scheme]=De,AA[re.scheme]=re,AA[Me.scheme]=Me,AA[lt.scheme]=lt,b.SCHEMES=AA,b.pctEncChar=sA,b.pctDecChars=oA,b.parse=rA,b.removeDotSegments=CA,b.serialize=vA,b.resolveComponents=GA,b.resolve=JA,b.normalize=qA,b.equal=WA,b.escapeComponent=ue,b.unescapeComponent=te,Object.defineProperty(b,"__esModule",{value:!0})})(o)},7598:function(I){I.exports=function(){var o=function(g,s){if(!(g instanceof s))throw new TypeError("Cannot call a class as a function")},b=function(){function g(s,h){for(var C=0;C<h.length;C++){var a=h[C];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}return function(s,h,C){return h&&g(s.prototype,h),C&&g(s,C),s}}(),y=function(){function g(s,h){var C=[],a=!0,r=!1,m=void 0;try{for(var Q=s[Symbol.iterator](),x;!(a=(x=Q.next()).done)&&(C.push(x.value),!(h&&C.length===h));a=!0);}catch(S){r=!0,m=S}finally{try{!a&&Q.return&&Q.return()}finally{if(r)throw m}}return C}return function(s,h){if(Array.isArray(s))return s;if(Symbol.iterator in Object(s))return g(s,h);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=(String.prototype.startsWith=String.prototype.startsWith||function(g){return this.indexOf(g)===0},String.prototype.padStart=String.prototype.padStart||function(g,s){for(var h=this;h.length<g;)h=s+h;return h},{cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"});function M(g){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,h=s>0?g.toFixed(s).replace(/0+$/,"").replace(/\.$/,""):g.toString();return h||"0"}var N=function(){function g(s,h,C,a){o(this,g);var r=this;function m(x){if(x.startsWith("hsl")){var S=x.match(/([\-\d\.e]+)/g).map(Number),T=y(S,4),$=T[0],eA=T[1],W=T[2],J=T[3];J===void 0&&(J=1),$/=360,eA/=100,W/=100,r.hsla=[$,eA,W,J]}else if(x.startsWith("rgb")){var O=x.match(/([\-\d\.e]+)/g).map(Number),q=y(O,4),k=q[0],V=q[1],H=q[2],AA=q[3];AA===void 0&&(AA=1),r.rgba=[k,V,H,AA]}else x.startsWith("#")?r.rgba=g.hexToRgb(x):r.rgba=g.nameToRgb(x)||g.hexToRgb(x)}if(s!==void 0)if(Array.isArray(s))this.rgba=s;else if(C===void 0){var Q=s&&""+s;Q&&m(Q.toLowerCase())}else this.rgba=[s,h,C,a===void 0?1:a]}return b(g,[{key:"printRGB",value:function(h){var C=h?this.rgba:this.rgba.slice(0,3),a=C.map(function(r,m){return M(r,m===3?3:0)});return h?"rgba("+a+")":"rgb("+a+")"}},{key:"printHSL",value:function(h){var C=[360,100,100,1],a=["","%","%",""],r=h?this.hsla:this.hsla.slice(0,3),m=r.map(function(Q,x){return M(Q*C[x],x===3?3:1)+a[x]});return h?"hsla("+m+")":"hsl("+m+")"}},{key:"printHex",value:function(h){var C=this.hex;return h?C:C.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=g.hslToRgb(this._hsla)},set:function(h){h.length===3&&(h[3]=1),this._rgba=h,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=g.rgbToHsl(this._rgba)},set:function(h){h.length===3&&(h[3]=1),this._hsla=h,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var h=this.rgba,C=h.map(function(a,r){return r<3?a.toString(16):Math.round(a*255).toString(16)});return"#"+C.map(function(a){return a.padStart(2,"0")}).join("")},set:function(h){this.rgba=g.hexToRgb(h)}}],[{key:"hexToRgb",value:function(h){var C=(h.startsWith("#")?h.slice(1):h).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!C.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+h);var a=C.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(r){return parseInt(r,16)});return a[3]=a[3]/255,a}},{key:"nameToRgb",value:function(h){var C=h.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),a=w[C];return a===void 0?a:g.hexToRgb(a.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(h){var C=y(h,4),a=C[0],r=C[1],m=C[2],Q=C[3];a/=255,r/=255,m/=255;var x=Math.max(a,r,m),S=Math.min(a,r,m),T=void 0,$=void 0,eA=(x+S)/2;if(x===S)T=$=0;else{var W=x-S;switch($=eA>.5?W/(2-x-S):W/(x+S),x){case a:T=(r-m)/W+(r<m?6:0);break;case r:T=(m-a)/W+2;break;case m:T=(a-r)/W+4;break}T/=6}return[T,$,eA,Q]}},{key:"hslToRgb",value:function(h){var C=y(h,4),a=C[0],r=C[1],m=C[2],Q=C[3],x=void 0,S=void 0,T=void 0;if(r===0)x=S=T=m;else{var $=function(q,k,V){return V<0&&(V+=1),V>1&&(V-=1),V<.16666666666666666?q+(k-q)*6*V:V<.5?k:V<.6666666666666666?q+(k-q)*(.6666666666666666-V)*6:q},eA=m<.5?m*(1+r):m+r-m*r,W=2*m-eA;x=$(W,eA,a+1/3),S=$(W,eA,a),T=$(W,eA,a-1/3)}var J=[x*255,S*255,T*255].map(Math.round);return J[3]=Q,J}}]),g}(),P=function(){function g(){o(this,g),this._events=[]}return b(g,[{key:"add",value:function(h,C,a){h.addEventListener(C,a,!1),this._events.push({target:h,type:C,handler:a})}},{key:"remove",value:function(h,C,a){this._events=this._events.filter(function(r){var m=!0;return h&&h!==r.target&&(m=!1),C&&C!==r.type&&(m=!1),a&&a!==r.handler&&(m=!1),m&&g._doRemove(r.target,r.type,r.handler),!m})}},{key:"destroy",value:function(){this._events.forEach(function(h){return g._doRemove(h.target,h.type,h.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(h,C,a){h.removeEventListener(C,a,!1)}}]),g}();function Y(g){var s=document.createElement("div");return s.innerHTML=g,s.firstElementChild}function G(g,s,h){var C=!1;function a(x,S,T){return Math.max(S,Math.min(x,T))}function r(x,S,T){if(T&&(C=!0),!!C){x.preventDefault();var $=s.getBoundingClientRect(),eA=$.width,W=$.height,J=S.clientX,O=S.clientY,q=a(J-$.left,0,eA),k=a(O-$.top,0,W);h(q/eA,k/W)}}function m(x,S){var T=x.buttons===void 0?x.which:x.buttons;T===1?r(x,x,S):C=!1}function Q(x,S){x.touches.length===1?r(x,x.touches[0],S):C=!1}g.add(s,"mousedown",function(x){m(x,!0)}),g.add(s,"touchstart",function(x){Q(x,!0)}),g.add(window,"mousemove",m),g.add(s,"touchmove",Q),g.add(window,"mouseup",function(x){C=!1}),g.add(s,"touchend",function(x){C=!1}),g.add(s,"touchcancel",function(x){C=!1})}var K=`linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,
1636
+ `+J(O,s),Q++,x=0;O--;)l?(Q+=l,x=C):x+=C,S+=h;S+=1}}function W(O,q){m[O]=m[O]||{},m[O][q]={line:Q,column:x,pos:S}}function J(O,q){return Array(O+1).join(q)}},["number","bigint","boolean","string","object"]);function M(B){return 0<=w.indexOf(typeof B)}var N=/"|\\/g,P=/[\b]/g,Y=/\f/g,G=/\n/g,K=/\r/g,D=/\t/g;function E(B){return'"'+(B=B.replace(N,"\\$&").replace(Y,"\\f").replace(P,"\\b").replace(G,"\\n").replace(K,"\\r").replace(D,"\\t"))+'"'}var L=/~/g,_=/\//g;function v(B){return B.replace(L,"~0").replace(_,"~1")}},8340:function(I,o){var b;(o=typeof(b=function(){function y(p){return typeof Node=="object"?p instanceof Node:p&&typeof p=="object"&&typeof p.nodeType=="number"}function w(p){return typeof p=="string"}function M(){var p=[];return{watch:p.push.bind(p),trigger:function(d,l){for(var g=!0,s={detail:l,preventDefault:function(){g=!1}},h=0;h<p.length;h++)p[h](d,s);return g}}}function N(p){return window.getComputedStyle(p).display==="none"}function P(p){this.elem=p}function Y(p,d){return P.make(p("parent")).clazz("pico-overlay").clazz(p("overlayClass","")).stylize({display:"none",position:"fixed",top:"0px",left:"0px",height:"100%",width:"100%",zIndex:1e4}).stylize(p("overlayStyles",{opacity:.5,background:"#000"})).onClick(function(){p("overlayClose",!0)&&d()})}P.make=function(p,d){typeof p=="string"&&(p=document.querySelector(p));var l=document.createElement(d||"div");return(p||document.body).appendChild(l),new P(l)},P.prototype={child:function(p){return P.make(this.elem,p)},stylize:function(p){p=p||{},typeof p.opacity<"u"&&(p.filter="alpha(opacity="+p.opacity*100+")");for(var d in p)p.hasOwnProperty(d)&&(this.elem.style[d]=p[d]);return this},clazz:function(p){return this.elem.className+=" "+p,this},html:function(p){return y(p)?this.elem.appendChild(p):this.elem.innerHTML=p,this},onClick:function(p){return this.elem.addEventListener("click",p),this},destroy:function(){this.elem.parentNode.removeChild(this.elem)},hide:function(){this.elem.style.display="none"},show:function(){this.elem.style.display="block"},attr:function(p,d){return d!==void 0&&this.elem.setAttribute(p,d),this},anyAncestor:function(p){for(var d=this.elem;d;){if(p(new P(d)))return!0;d=d.parentNode}return!1},isVisible:function(){return!N(this.elem)}};var G=1;function K(p,d){var l=p("width","auto");typeof l=="number"&&(l=""+l+"px");var g=p("modalId","pico-"+G++),s=P.make(p("parent")).clazz("pico-content").clazz(p("modalClass","")).stylize({display:"none",position:"fixed",zIndex:10001,left:"50%",top:"38.1966%",maxHeight:"90%",boxSizing:"border-box",width:l,"-ms-transform":"translate(-50%,-38.1966%)","-moz-transform":"translate(-50%,-38.1966%)","-webkit-transform":"translate(-50%,-38.1966%)","-o-transform":"translate(-50%,-38.1966%)",transform:"translate(-50%,-38.1966%)"}).stylize(p("modalStyles",{overflow:"auto",backgroundColor:"white",padding:"20px",borderRadius:"5px"})).html(p("content")).attr("id",g).attr("role","dialog").attr("aria-labelledby",p("ariaLabelledBy")).attr("aria-describedby",p("ariaDescribedBy",g)).onClick(function(h){var C=new P(h.target).anyAncestor(function(a){return/\bpico-close\b/.test(a.elem.className)});C&&d()});return s}function D(p,d){if(d("closeButton",!0))return p.child("button").html(d("closeHtml","&#xD7;")).clazz("pico-close").clazz(d("closeClass","")).stylize(d("closeStyles",{borderRadius:"2px",border:0,padding:0,cursor:"pointer",height:"15px",width:"15px",position:"absolute",top:"5px",right:"5px",fontSize:"16px",textAlign:"center",lineHeight:"15px",background:"#CCC"})).attr("aria-label",d("close-label","Close"))}function E(p){return function(){return p().elem}}var L=M(),_=M();function v(p,d){function l(a,r){var m=a.msMatchesSelector||a.webkitMatchesSelector||a.matches;return m.call(a,r)}function g(a){return N(a)||l(a,":disabled")||a.hasAttribute("contenteditable")?!1:a.hasAttribute("tabindex")||l(a,"input,select,textarea,button,a[href],area[href],iframe")}function s(a){for(var r=a.getElementsByTagName("*"),m=0;m<r.length;m++)if(g(r[m]))return r[m]}function h(a){for(var r=a.getElementsByTagName("*"),m=r.length;m--;)if(g(r[m]))return r[m]}var C;p.beforeShow(function(){C=document.activeElement}),p.afterShow(function(){if(d()){var r=s(p.modalElem());r&&r.focus()}}),p.afterClose(function(){d()&&C&&C.focus(),C=null}),_.watch(function(r){if(d()&&p.isVisible()){var m=s(p.modalElem()),Q=h(p.modalElem()),x=r.shiftKey?m:Q;x===document.activeElement&&((r.shiftKey?Q:m).focus(),r.preventDefault())}})}function B(p,d){var l,g=new P(document.body);p.beforeShow(function(){l=g.elem.style.overflow,d()&&g.stylize({overflow:"hidden"})}),p.afterClose(function(){g.stylize({overflow:l})})}return document.documentElement.addEventListener("keydown",function(d){var l=d.which||d.keyCode;l===27?L.trigger():l===9&&_.trigger(d)}),function(d){(w(d)||y(d))&&(d={content:d});var l=M(),g=M(),s=M(),h=M(),C=M();function a(J,O){var q=d[J];return typeof q=="function"&&(q=q(O)),q===void 0?O:q}var r=W.bind(window,"modal"),m=W.bind(window,"overlay"),Q=W.bind(window,"close"),x;function S(J){m().hide(),r().hide(),C.trigger(x,J)}function T(J){h.trigger(x,J)&&S(J)}function $(J){return function(){return J.apply(this,arguments),x}}var eA;function W(J,O){if(!eA){var q=K(a,T);eA={modal:q,overlay:Y(a,T),close:D(q,a)},l.trigger(x,O)}return eA[J]}return x={modalElem:E(r),closeElem:E(Q),overlayElem:E(m),buildDom:$(W.bind(null,null)),isVisible:function(){return!!(eA&&r&&r().isVisible())},show:function(J){return g.trigger(x,J)&&(m().show(),Q(),r().show(),s.trigger(x,J)),this},close:$(T),forceClose:$(S),destroy:function(){r().destroy(),m().destroy(),m=r=Q=void 0},options:function(J){Object.keys(J).map(function(O){d[O]=J[O]})},afterCreate:$(l.watch),beforeShow:$(g.watch),afterShow:$(s.watch),beforeClose:$(h.watch),afterClose:$(C.watch)},v(x,a.bind(null,"focus",!0)),B(x,a.bind(null,"bodyOverflow",!0)),L.watch(function(){a("escCloses",!0)&&x.isVisible()&&x.close()}),x}})=="function"?b.apply(o,[]):b)!==void 0&&(I.exports=o)},6777:function(I,o){/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(b){function y(){for(var MA=arguments.length,bA=Array(MA),RA=0;RA<MA;RA++)bA[RA]=arguments[RA];if(bA.length>1){bA[0]=bA[0].slice(0,-1);for(var zA=bA.length-1,OA=1;OA<zA;++OA)bA[OA]=bA[OA].slice(1,-1);return bA[zA]=bA[zA].slice(1),bA.join("")}else return bA[0]}function w(MA){return"(?:"+MA+")"}function M(MA){return MA===void 0?"undefined":MA===null?"null":Object.prototype.toString.call(MA).split(" ").pop().split("]").shift().toLowerCase()}function N(MA){return MA.toUpperCase()}function P(MA){return MA!=null?MA instanceof Array?MA:typeof MA.length!="number"||MA.split||MA.setInterval||MA.call?[MA]:Array.prototype.slice.call(MA):[]}function Y(MA,bA){var RA=MA;if(bA)for(var zA in bA)RA[zA]=bA[zA];return RA}function G(MA){var bA="[A-Za-z]",RA="[0-9]",zA=y(RA,"[A-Fa-f]"),OA=w(w("%[EFef]"+zA+"%"+zA+zA+"%"+zA+zA)+"|"+w("%[89A-Fa-f]"+zA+"%"+zA+zA)+"|"+w("%"+zA+zA)),fe="[\\:\\/\\?\\#\\[\\]\\@]",ne="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",_e=y(fe,ne),qe=MA?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ct=MA?"[\\uE000-\\uF8FF]":"[]",ze=y(bA,RA,"[\\-\\.\\_\\~]",qe);w(bA+y(bA,RA,"[\\+\\-\\.]")+"*"),w(w(OA+"|"+y(ze,ne,"[\\:]"))+"*");var At=w(w("25[0-5]")+"|"+w("2[0-4]"+RA)+"|"+w("1"+RA+RA)+"|"+w("0?[1-9]"+RA)+"|0?0?"+RA),gt=w(At+"\\."+At+"\\."+At+"\\."+At),Pe=w(zA+"{1,4}"),ot=w(w(Pe+"\\:"+Pe)+"|"+gt),Et=w(w(Pe+"\\:")+"{6}"+ot),nt=w("\\:\\:"+w(Pe+"\\:")+"{5}"+ot),Nn=w(w(Pe)+"?\\:\\:"+w(Pe+"\\:")+"{4}"+ot),Xt=w(w(w(Pe+"\\:")+"{0,1}"+Pe)+"?\\:\\:"+w(Pe+"\\:")+"{3}"+ot),Vt=w(w(w(Pe+"\\:")+"{0,2}"+Pe)+"?\\:\\:"+w(Pe+"\\:")+"{2}"+ot),gn=w(w(w(Pe+"\\:")+"{0,3}"+Pe)+"?\\:\\:"+Pe+"\\:"+ot),wn=w(w(w(Pe+"\\:")+"{0,4}"+Pe)+"?\\:\\:"+ot),St=w(w(w(Pe+"\\:")+"{0,5}"+Pe)+"?\\:\\:"+Pe),An=w(w(w(Pe+"\\:")+"{0,6}"+Pe)+"?\\:\\:"),On=w([Et,nt,Nn,Xt,Vt,gn,wn,St,An].join("|")),en=w(w(ze+"|"+OA)+"+");w("[vV]"+zA+"+\\."+y(ze,ne,"[\\:]")+"+"),w(w(OA+"|"+y(ze,ne))+"*");var Ci=w(OA+"|"+y(ze,ne,"[\\:\\@]"));return w(w(OA+"|"+y(ze,ne,"[\\@]"))+"+"),w(w(Ci+"|"+y("[\\/\\?]",Ct))+"*"),{NOT_SCHEME:new RegExp(y("[^]",bA,RA,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(y("[^\\%\\:]",ze,ne),"g"),NOT_HOST:new RegExp(y("[^\\%\\[\\]\\:]",ze,ne),"g"),NOT_PATH:new RegExp(y("[^\\%\\/\\:\\@]",ze,ne),"g"),NOT_PATH_NOSCHEME:new RegExp(y("[^\\%\\/\\@]",ze,ne),"g"),NOT_QUERY:new RegExp(y("[^\\%]",ze,ne,"[\\:\\@\\/\\?]",Ct),"g"),NOT_FRAGMENT:new RegExp(y("[^\\%]",ze,ne,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(y("[^]",ze,ne),"g"),UNRESERVED:new RegExp(ze,"g"),OTHER_CHARS:new RegExp(y("[^\\%]",ze,_e),"g"),PCT_ENCODED:new RegExp(OA,"g"),IPV4ADDRESS:new RegExp("^("+gt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+On+")"+w(w("\\%25|\\%(?!"+zA+"{2})")+"("+en+")")+"?\\]?$")}}var K=G(!1),D=G(!0),E=function(){function MA(bA,RA){var zA=[],OA=!0,fe=!1,ne=void 0;try{for(var _e=bA[Symbol.iterator](),qe;!(OA=(qe=_e.next()).done)&&(zA.push(qe.value),!(RA&&zA.length===RA));OA=!0);}catch(Ct){fe=!0,ne=Ct}finally{try{!OA&&_e.return&&_e.return()}finally{if(fe)throw ne}}return zA}return function(bA,RA){if(Array.isArray(bA))return bA;if(Symbol.iterator in Object(bA))return MA(bA,RA);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),L=function(MA){if(Array.isArray(MA)){for(var bA=0,RA=Array(MA.length);bA<MA.length;bA++)RA[bA]=MA[bA];return RA}else return Array.from(MA)},_=2147483647,v=36,B=1,p=26,d=38,l=700,g=72,s=128,h="-",C=/^xn--/,a=/[^\0-\x7E]/,r=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Q=v-B,x=Math.floor,S=String.fromCharCode;function T(MA){throw new RangeError(m[MA])}function $(MA,bA){for(var RA=[],zA=MA.length;zA--;)RA[zA]=bA(MA[zA]);return RA}function eA(MA,bA){var RA=MA.split("@"),zA="";RA.length>1&&(zA=RA[0]+"@",MA=RA[1]),MA=MA.replace(r,".");var OA=MA.split("."),fe=$(OA,bA).join(".");return zA+fe}function W(MA){for(var bA=[],RA=0,zA=MA.length;RA<zA;){var OA=MA.charCodeAt(RA++);if(OA>=55296&&OA<=56319&&RA<zA){var fe=MA.charCodeAt(RA++);(fe&64512)==56320?bA.push(((OA&1023)<<10)+(fe&1023)+65536):(bA.push(OA),RA--)}else bA.push(OA)}return bA}var J=function(bA){return bA-48<10?bA-22:bA-65<26?bA-65:bA-97<26?bA-97:v},O=function(bA,RA){return bA+22+75*(bA<26)-((RA!=0)<<5)},q=function(bA,RA,zA){var OA=0;for(bA=zA?x(bA/l):bA>>1,bA+=x(bA/RA);bA>Q*p>>1;OA+=v)bA=x(bA/Q);return x(OA+(Q+1)*bA/(bA+d))},k=function(bA){var RA=[],zA=bA.length,OA=0,fe=s,ne=g,_e=bA.lastIndexOf(h);_e<0&&(_e=0);for(var qe=0;qe<_e;++qe)bA.charCodeAt(qe)>=128&&T("not-basic"),RA.push(bA.charCodeAt(qe));for(var Ct=_e>0?_e+1:0;Ct<zA;){for(var ze=OA,At=1,gt=v;;gt+=v){Ct>=zA&&T("invalid-input");var Pe=J(bA.charCodeAt(Ct++));(Pe>=v||Pe>x((_-OA)/At))&&T("overflow"),OA+=Pe*At;var ot=gt<=ne?B:gt>=ne+p?p:gt-ne;if(Pe<ot)break;var Et=v-ot;At>x(_/Et)&&T("overflow"),At*=Et}var nt=RA.length+1;ne=q(OA-ze,nt,ze==0),x(OA/nt)>_-fe&&T("overflow"),fe+=x(OA/nt),OA%=nt,RA.splice(OA++,0,fe)}return String.fromCodePoint.apply(String,RA)},V=function(bA){var RA=[];bA=W(bA);var zA=bA.length,OA=s,fe=0,ne=g,_e=!0,qe=!1,Ct=void 0;try{for(var ze=bA[Symbol.iterator](),At;!(_e=(At=ze.next()).done);_e=!0){var gt=At.value;gt<128&&RA.push(S(gt))}}catch(bn){qe=!0,Ct=bn}finally{try{!_e&&ze.return&&ze.return()}finally{if(qe)throw Ct}}var Pe=RA.length,ot=Pe;for(Pe&&RA.push(h);ot<zA;){var Et=_,nt=!0,Nn=!1,Xt=void 0;try{for(var Vt=bA[Symbol.iterator](),gn;!(nt=(gn=Vt.next()).done);nt=!0){var wn=gn.value;wn>=OA&&wn<Et&&(Et=wn)}}catch(bn){Nn=!0,Xt=bn}finally{try{!nt&&Vt.return&&Vt.return()}finally{if(Nn)throw Xt}}var St=ot+1;Et-OA>x((_-fe)/St)&&T("overflow"),fe+=(Et-OA)*St,OA=Et;var An=!0,On=!1,en=void 0;try{for(var Ci=bA[Symbol.iterator](),Bi;!(An=(Bi=Ci.next()).done);An=!0){var co=Bi.value;if(co<OA&&++fe>_&&T("overflow"),co==OA){for(var mi=fe,ti=v;;ti+=v){var Pi=ti<=ne?B:ti>=ne+p?p:ti-ne;if(mi<Pi)break;var go=mi-Pi,ni=v-Pi;RA.push(S(O(Pi+go%ni,0))),mi=x(go/ni)}RA.push(S(O(mi,0))),ne=q(fe,St,ot==Pe),fe=0,++ot}}}catch(bn){On=!0,en=bn}finally{try{!An&&Ci.return&&Ci.return()}finally{if(On)throw en}}++fe,++OA}return RA.join("")},H={version:"2.1.0",ucs2:{decode:W,encode:function(bA){return String.fromCodePoint.apply(String,L(bA))}},decode:k,encode:V,toASCII:function(bA){return eA(bA,function(RA){return a.test(RA)?"xn--"+V(RA):RA})},toUnicode:function(bA){return eA(bA,function(RA){return C.test(RA)?k(RA.slice(4).toLowerCase()):RA})}},AA={};function sA(MA){var bA=MA.charCodeAt(0),RA=void 0;return bA<16?RA="%0"+bA.toString(16).toUpperCase():bA<128?RA="%"+bA.toString(16).toUpperCase():bA<2048?RA="%"+(bA>>6|192).toString(16).toUpperCase()+"%"+(bA&63|128).toString(16).toUpperCase():RA="%"+(bA>>12|224).toString(16).toUpperCase()+"%"+(bA>>6&63|128).toString(16).toUpperCase()+"%"+(bA&63|128).toString(16).toUpperCase(),RA}function oA(MA){for(var bA="",RA=0,zA=MA.length;RA<zA;){var OA=parseInt(MA.substr(RA+1,2),16);if(OA<128)bA+=String.fromCharCode(OA),RA+=3;else if(OA>=194&&OA<224){if(zA-RA>=6){var fe=parseInt(MA.substr(RA+4,2),16);bA+=String.fromCharCode((OA&31)<<6|fe&63)}else bA+=MA.substr(RA,6);RA+=6}else if(OA>=224){if(zA-RA>=9){var ne=parseInt(MA.substr(RA+4,2),16),_e=parseInt(MA.substr(RA+7,2),16);bA+=String.fromCharCode((OA&15)<<12|(ne&63)<<6|_e&63)}else bA+=MA.substr(RA,9);RA+=9}else bA+=MA.substr(RA,3),RA+=3}return bA}function dA(MA,bA){function RA(zA){var OA=oA(zA);return OA.match(bA.UNRESERVED)?OA:zA}return MA.scheme&&(MA.scheme=String(MA.scheme).replace(bA.PCT_ENCODED,RA).toLowerCase().replace(bA.NOT_SCHEME,"")),MA.userinfo!==void 0&&(MA.userinfo=String(MA.userinfo).replace(bA.PCT_ENCODED,RA).replace(bA.NOT_USERINFO,sA).replace(bA.PCT_ENCODED,N)),MA.host!==void 0&&(MA.host=String(MA.host).replace(bA.PCT_ENCODED,RA).toLowerCase().replace(bA.NOT_HOST,sA).replace(bA.PCT_ENCODED,N)),MA.path!==void 0&&(MA.path=String(MA.path).replace(bA.PCT_ENCODED,RA).replace(MA.scheme?bA.NOT_PATH:bA.NOT_PATH_NOSCHEME,sA).replace(bA.PCT_ENCODED,N)),MA.query!==void 0&&(MA.query=String(MA.query).replace(bA.PCT_ENCODED,RA).replace(bA.NOT_QUERY,sA).replace(bA.PCT_ENCODED,N)),MA.fragment!==void 0&&(MA.fragment=String(MA.fragment).replace(bA.PCT_ENCODED,RA).replace(bA.NOT_FRAGMENT,sA).replace(bA.PCT_ENCODED,N)),MA}function EA(MA){return MA.replace(/^0*(.*)/,"$1")||"0"}function uA(MA,bA){var RA=MA.match(bA.IPV4ADDRESS)||[],zA=E(RA,2),OA=zA[1];return OA?OA.split(".").map(EA).join("."):MA}function BA(MA,bA){var RA=MA.match(bA.IPV6ADDRESS)||[],zA=E(RA,3),OA=zA[1],fe=zA[2];if(OA){for(var ne=OA.toLowerCase().split("::").reverse(),_e=E(ne,2),qe=_e[0],Ct=_e[1],ze=Ct?Ct.split(":").map(EA):[],At=qe.split(":").map(EA),gt=bA.IPV4ADDRESS.test(At[At.length-1]),Pe=gt?7:8,ot=At.length-Pe,Et=Array(Pe),nt=0;nt<Pe;++nt)Et[nt]=ze[nt]||At[ot+nt]||"";gt&&(Et[Pe-1]=uA(Et[Pe-1],bA));var Nn=Et.reduce(function(St,An,On){if(!An||An==="0"){var en=St[St.length-1];en&&en.index+en.length===On?en.length++:St.push({index:On,length:1})}return St},[]),Xt=Nn.sort(function(St,An){return An.length-St.length})[0],Vt=void 0;if(Xt&&Xt.length>1){var gn=Et.slice(0,Xt.index),wn=Et.slice(Xt.index+Xt.length);Vt=gn.join(":")+"::"+wn.join(":")}else Vt=Et.join(":");return fe&&(Vt+="%"+fe),Vt}else return MA}var j=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,tA="".match(/(){0}/)[1]===void 0;function rA(MA){var bA=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},RA={},zA=bA.iri!==!1?D:K;bA.reference==="suffix"&&(MA=(bA.scheme?bA.scheme+":":"")+"//"+MA);var OA=MA.match(j);if(OA){tA?(RA.scheme=OA[1],RA.userinfo=OA[3],RA.host=OA[4],RA.port=parseInt(OA[5],10),RA.path=OA[6]||"",RA.query=OA[7],RA.fragment=OA[8],isNaN(RA.port)&&(RA.port=OA[5])):(RA.scheme=OA[1]||void 0,RA.userinfo=MA.indexOf("@")!==-1?OA[3]:void 0,RA.host=MA.indexOf("//")!==-1?OA[4]:void 0,RA.port=parseInt(OA[5],10),RA.path=OA[6]||"",RA.query=MA.indexOf("?")!==-1?OA[7]:void 0,RA.fragment=MA.indexOf("#")!==-1?OA[8]:void 0,isNaN(RA.port)&&(RA.port=MA.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?OA[4]:void 0)),RA.host&&(RA.host=BA(uA(RA.host,zA),zA)),RA.scheme===void 0&&RA.userinfo===void 0&&RA.host===void 0&&RA.port===void 0&&!RA.path&&RA.query===void 0?RA.reference="same-document":RA.scheme===void 0?RA.reference="relative":RA.fragment===void 0?RA.reference="absolute":RA.reference="uri",bA.reference&&bA.reference!=="suffix"&&bA.reference!==RA.reference&&(RA.error=RA.error||"URI is not a "+bA.reference+" reference.");var fe=AA[(bA.scheme||RA.scheme||"").toLowerCase()];if(!bA.unicodeSupport&&(!fe||!fe.unicodeSupport)){if(RA.host&&(bA.domainHost||fe&&fe.domainHost))try{RA.host=H.toASCII(RA.host.replace(zA.PCT_ENCODED,oA).toLowerCase())}catch(ne){RA.error=RA.error||"Host's domain name can not be converted to ASCII via punycode: "+ne}dA(RA,K)}else dA(RA,zA);fe&&fe.parse&&fe.parse(RA,bA)}else RA.error=RA.error||"URI can not be parsed.";return RA}function gA(MA,bA){var RA=bA.iri!==!1?D:K,zA=[];return MA.userinfo!==void 0&&(zA.push(MA.userinfo),zA.push("@")),MA.host!==void 0&&zA.push(BA(uA(String(MA.host),RA),RA).replace(RA.IPV6ADDRESS,function(OA,fe,ne){return"["+fe+(ne?"%25"+ne:"")+"]"})),(typeof MA.port=="number"||typeof MA.port=="string")&&(zA.push(":"),zA.push(String(MA.port))),zA.length?zA.join(""):void 0}var z=/^\.\.?\//,X=/^\/\.(\/|$)/,iA=/^\/\.\.(\/|$)/,cA=/^\/?(?:.|\n)*?(?=\/|$)/;function CA(MA){for(var bA=[];MA.length;)if(MA.match(z))MA=MA.replace(z,"");else if(MA.match(X))MA=MA.replace(X,"/");else if(MA.match(iA))MA=MA.replace(iA,"/"),bA.pop();else if(MA==="."||MA==="..")MA="";else{var RA=MA.match(cA);if(RA){var zA=RA[0];MA=MA.slice(zA.length),bA.push(zA)}else throw new Error("Unexpected dot segment condition")}return bA.join("")}function vA(MA){var bA=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},RA=bA.iri?D:K,zA=[],OA=AA[(bA.scheme||MA.scheme||"").toLowerCase()];if(OA&&OA.serialize&&OA.serialize(MA,bA),MA.host&&!RA.IPV6ADDRESS.test(MA.host)){if(bA.domainHost||OA&&OA.domainHost)try{MA.host=bA.iri?H.toUnicode(MA.host):H.toASCII(MA.host.replace(RA.PCT_ENCODED,oA).toLowerCase())}catch(_e){MA.error=MA.error||"Host's domain name can not be converted to "+(bA.iri?"Unicode":"ASCII")+" via punycode: "+_e}}dA(MA,RA),bA.reference!=="suffix"&&MA.scheme&&(zA.push(MA.scheme),zA.push(":"));var fe=gA(MA,bA);if(fe!==void 0&&(bA.reference!=="suffix"&&zA.push("//"),zA.push(fe),MA.path&&MA.path.charAt(0)!=="/"&&zA.push("/")),MA.path!==void 0){var ne=MA.path;!bA.absolutePath&&(!OA||!OA.absolutePath)&&(ne=CA(ne)),fe===void 0&&(ne=ne.replace(/^\/\//,"/%2F")),zA.push(ne)}return MA.query!==void 0&&(zA.push("?"),zA.push(MA.query)),MA.fragment!==void 0&&(zA.push("#"),zA.push(MA.fragment)),zA.join("")}function GA(MA,bA){var RA=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},zA=arguments[3],OA={};return zA||(MA=rA(vA(MA,RA),RA),bA=rA(vA(bA,RA),RA)),RA=RA||{},!RA.tolerant&&bA.scheme?(OA.scheme=bA.scheme,OA.userinfo=bA.userinfo,OA.host=bA.host,OA.port=bA.port,OA.path=CA(bA.path||""),OA.query=bA.query):(bA.userinfo!==void 0||bA.host!==void 0||bA.port!==void 0?(OA.userinfo=bA.userinfo,OA.host=bA.host,OA.port=bA.port,OA.path=CA(bA.path||""),OA.query=bA.query):(bA.path?(bA.path.charAt(0)==="/"?OA.path=CA(bA.path):((MA.userinfo!==void 0||MA.host!==void 0||MA.port!==void 0)&&!MA.path?OA.path="/"+bA.path:MA.path?OA.path=MA.path.slice(0,MA.path.lastIndexOf("/")+1)+bA.path:OA.path=bA.path,OA.path=CA(OA.path)),OA.query=bA.query):(OA.path=MA.path,bA.query!==void 0?OA.query=bA.query:OA.query=MA.query),OA.userinfo=MA.userinfo,OA.host=MA.host,OA.port=MA.port),OA.scheme=MA.scheme),OA.fragment=bA.fragment,OA}function JA(MA,bA,RA){var zA=Y({scheme:"null"},RA);return vA(GA(rA(MA,zA),rA(bA,zA),zA,!0),zA)}function qA(MA,bA){return typeof MA=="string"?MA=vA(rA(MA,bA),bA):M(MA)==="object"&&(MA=rA(vA(MA,bA),bA)),MA}function WA(MA,bA,RA){return typeof MA=="string"?MA=vA(rA(MA,RA),RA):M(MA)==="object"&&(MA=vA(MA,RA)),typeof bA=="string"?bA=vA(rA(bA,RA),RA):M(bA)==="object"&&(bA=vA(bA,RA)),MA===bA}function ue(MA,bA){return MA&&MA.toString().replace(!bA||!bA.iri?K.ESCAPE:D.ESCAPE,sA)}function te(MA,bA){return MA&&MA.toString().replace(!bA||!bA.iri?K.PCT_ENCODED:D.PCT_ENCODED,oA)}var LA={scheme:"http",domainHost:!0,parse:function(bA,RA){return bA.host||(bA.error=bA.error||"HTTP URIs must have a host."),bA},serialize:function(bA,RA){var zA=String(bA.scheme).toLowerCase()==="https";return(bA.port===(zA?443:80)||bA.port==="")&&(bA.port=void 0),bA.path||(bA.path="/"),bA}},SA={scheme:"https",domainHost:LA.domainHost,parse:LA.parse,serialize:LA.serialize};function ZA(MA){return typeof MA.secure=="boolean"?MA.secure:String(MA.scheme).toLowerCase()==="wss"}var Be={scheme:"ws",domainHost:!0,parse:function(bA,RA){var zA=bA;return zA.secure=ZA(zA),zA.resourceName=(zA.path||"/")+(zA.query?"?"+zA.query:""),zA.path=void 0,zA.query=void 0,zA},serialize:function(bA,RA){if((bA.port===(ZA(bA)?443:80)||bA.port==="")&&(bA.port=void 0),typeof bA.secure=="boolean"&&(bA.scheme=bA.secure?"wss":"ws",bA.secure=void 0),bA.resourceName){var zA=bA.resourceName.split("?"),OA=E(zA,2),fe=OA[0],ne=OA[1];bA.path=fe&&fe!=="/"?fe:void 0,bA.query=ne,bA.resourceName=void 0}return bA.fragment=void 0,bA}},De={scheme:"wss",domainHost:Be.domainHost,parse:Be.parse,serialize:Be.serialize},Se={},YA="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",$A="[0-9A-Fa-f]",XA=w(w("%[EFef]"+$A+"%"+$A+$A+"%"+$A+$A)+"|"+w("%[89A-Fa-f]"+$A+"%"+$A+$A)+"|"+w("%"+$A+$A)),he="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",ce=y("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Ee="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",ke=new RegExp(YA,"g"),wA=new RegExp(XA,"g"),NA=new RegExp(y("[^]",he,"[\\.]",'[\\"]',ce),"g"),KA=new RegExp(y("[^]",YA,Ee),"g"),oe=KA;function be(MA){var bA=oA(MA);return bA.match(ke)?bA:MA}var re={scheme:"mailto",parse:function(bA,RA){var zA=bA,OA=zA.to=zA.path?zA.path.split(","):[];if(zA.path=void 0,zA.query){for(var fe=!1,ne={},_e=zA.query.split("&"),qe=0,Ct=_e.length;qe<Ct;++qe){var ze=_e[qe].split("=");switch(ze[0]){case"to":for(var At=ze[1].split(","),gt=0,Pe=At.length;gt<Pe;++gt)OA.push(At[gt]);break;case"subject":zA.subject=te(ze[1],RA);break;case"body":zA.body=te(ze[1],RA);break;default:fe=!0,ne[te(ze[0],RA)]=te(ze[1],RA);break}}fe&&(zA.headers=ne)}zA.query=void 0;for(var ot=0,Et=OA.length;ot<Et;++ot){var nt=OA[ot].split("@");if(nt[0]=te(nt[0]),RA.unicodeSupport)nt[1]=te(nt[1],RA).toLowerCase();else try{nt[1]=H.toASCII(te(nt[1],RA).toLowerCase())}catch(Nn){zA.error=zA.error||"Email address's domain name can not be converted to ASCII via punycode: "+Nn}OA[ot]=nt.join("@")}return zA},serialize:function(bA,RA){var zA=bA,OA=P(bA.to);if(OA){for(var fe=0,ne=OA.length;fe<ne;++fe){var _e=String(OA[fe]),qe=_e.lastIndexOf("@"),Ct=_e.slice(0,qe).replace(wA,be).replace(wA,N).replace(NA,sA),ze=_e.slice(qe+1);try{ze=RA.iri?H.toUnicode(ze):H.toASCII(te(ze,RA).toLowerCase())}catch(ot){zA.error=zA.error||"Email address's domain name can not be converted to "+(RA.iri?"Unicode":"ASCII")+" via punycode: "+ot}OA[fe]=Ct+"@"+ze}zA.path=OA.join(",")}var At=bA.headers=bA.headers||{};bA.subject&&(At.subject=bA.subject),bA.body&&(At.body=bA.body);var gt=[];for(var Pe in At)At[Pe]!==Se[Pe]&&gt.push(Pe.replace(wA,be).replace(wA,N).replace(KA,sA)+"="+At[Pe].replace(wA,be).replace(wA,N).replace(oe,sA));return gt.length&&(zA.query=gt.join("&")),zA}},ge=/^([^\:]+)\:(.*)/,Me={scheme:"urn",parse:function(bA,RA){var zA=bA.path&&bA.path.match(ge),OA=bA;if(zA){var fe=RA.scheme||OA.scheme||"urn",ne=zA[1].toLowerCase(),_e=zA[2],qe=fe+":"+(RA.nid||ne),Ct=AA[qe];OA.nid=ne,OA.nss=_e,OA.path=void 0,Ct&&(OA=Ct.parse(OA,RA))}else OA.error=OA.error||"URN can not be parsed.";return OA},serialize:function(bA,RA){var zA=RA.scheme||bA.scheme||"urn",OA=bA.nid,fe=zA+":"+(RA.nid||OA),ne=AA[fe];ne&&(bA=ne.serialize(bA,RA));var _e=bA,qe=bA.nss;return _e.path=(OA||RA.nid)+":"+qe,_e}},tt=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,lt={scheme:"urn:uuid",parse:function(bA,RA){var zA=bA;return zA.uuid=zA.nss,zA.nss=void 0,!RA.tolerant&&(!zA.uuid||!zA.uuid.match(tt))&&(zA.error=zA.error||"UUID is not valid."),zA},serialize:function(bA,RA){var zA=bA;return zA.nss=(bA.uuid||"").toLowerCase(),zA}};AA[LA.scheme]=LA,AA[SA.scheme]=SA,AA[Be.scheme]=Be,AA[De.scheme]=De,AA[re.scheme]=re,AA[Me.scheme]=Me,AA[lt.scheme]=lt,b.SCHEMES=AA,b.pctEncChar=sA,b.pctDecChars=oA,b.parse=rA,b.removeDotSegments=CA,b.serialize=vA,b.resolveComponents=GA,b.resolve=JA,b.normalize=qA,b.equal=WA,b.escapeComponent=ue,b.unescapeComponent=te,Object.defineProperty(b,"__esModule",{value:!0})})(o)},7598:function(I){I.exports=function(){var o=function(g,s){if(!(g instanceof s))throw new TypeError("Cannot call a class as a function")},b=function(){function g(s,h){for(var C=0;C<h.length;C++){var a=h[C];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}return function(s,h,C){return h&&g(s.prototype,h),C&&g(s,C),s}}(),y=function(){function g(s,h){var C=[],a=!0,r=!1,m=void 0;try{for(var Q=s[Symbol.iterator](),x;!(a=(x=Q.next()).done)&&(C.push(x.value),!(h&&C.length===h));a=!0);}catch(S){r=!0,m=S}finally{try{!a&&Q.return&&Q.return()}finally{if(r)throw m}}return C}return function(s,h){if(Array.isArray(s))return s;if(Symbol.iterator in Object(s))return g(s,h);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=(String.prototype.startsWith=String.prototype.startsWith||function(g){return this.indexOf(g)===0},String.prototype.padStart=String.prototype.padStart||function(g,s){for(var h=this;h.length<g;)h=s+h;return h},{cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"});function M(g){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,h=s>0?g.toFixed(s).replace(/0+$/,"").replace(/\.$/,""):g.toString();return h||"0"}var N=function(){function g(s,h,C,a){o(this,g);var r=this;function m(x){if(x.startsWith("hsl")){var S=x.match(/([\-\d\.e]+)/g).map(Number),T=y(S,4),$=T[0],eA=T[1],W=T[2],J=T[3];J===void 0&&(J=1),$/=360,eA/=100,W/=100,r.hsla=[$,eA,W,J]}else if(x.startsWith("rgb")){var O=x.match(/([\-\d\.e]+)/g).map(Number),q=y(O,4),k=q[0],V=q[1],H=q[2],AA=q[3];AA===void 0&&(AA=1),r.rgba=[k,V,H,AA]}else x.startsWith("#")?r.rgba=g.hexToRgb(x):r.rgba=g.nameToRgb(x)||g.hexToRgb(x)}if(s!==void 0)if(Array.isArray(s))this.rgba=s;else if(C===void 0){var Q=s&&""+s;Q&&m(Q.toLowerCase())}else this.rgba=[s,h,C,a===void 0?1:a]}return b(g,[{key:"printRGB",value:function(h){var C=h?this.rgba:this.rgba.slice(0,3),a=C.map(function(r,m){return M(r,m===3?3:0)});return h?"rgba("+a+")":"rgb("+a+")"}},{key:"printHSL",value:function(h){var C=[360,100,100,1],a=["","%","%",""],r=h?this.hsla:this.hsla.slice(0,3),m=r.map(function(Q,x){return M(Q*C[x],x===3?3:1)+a[x]});return h?"hsla("+m+")":"hsl("+m+")"}},{key:"printHex",value:function(h){var C=this.hex;return h?C:C.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=g.hslToRgb(this._hsla)},set:function(h){h.length===3&&(h[3]=1),this._rgba=h,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=g.rgbToHsl(this._rgba)},set:function(h){h.length===3&&(h[3]=1),this._hsla=h,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var h=this.rgba,C=h.map(function(a,r){return r<3?a.toString(16):Math.round(a*255).toString(16)});return"#"+C.map(function(a){return a.padStart(2,"0")}).join("")},set:function(h){this.rgba=g.hexToRgb(h)}}],[{key:"hexToRgb",value:function(h){var C=(h.startsWith("#")?h.slice(1):h).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!C.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+h);var a=C.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(r){return parseInt(r,16)});return a[3]=a[3]/255,a}},{key:"nameToRgb",value:function(h){var C=h.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),a=w[C];return a===void 0?a:g.hexToRgb(a.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(h){var C=y(h,4),a=C[0],r=C[1],m=C[2],Q=C[3];a/=255,r/=255,m/=255;var x=Math.max(a,r,m),S=Math.min(a,r,m),T=void 0,$=void 0,eA=(x+S)/2;if(x===S)T=$=0;else{var W=x-S;switch($=eA>.5?W/(2-x-S):W/(x+S),x){case a:T=(r-m)/W+(r<m?6:0);break;case r:T=(m-a)/W+2;break;case m:T=(a-r)/W+4;break}T/=6}return[T,$,eA,Q]}},{key:"hslToRgb",value:function(h){var C=y(h,4),a=C[0],r=C[1],m=C[2],Q=C[3],x=void 0,S=void 0,T=void 0;if(r===0)x=S=T=m;else{var $=function(q,k,V){return V<0&&(V+=1),V>1&&(V-=1),V<.16666666666666666?q+(k-q)*6*V:V<.5?k:V<.6666666666666666?q+(k-q)*(.6666666666666666-V)*6:q},eA=m<.5?m*(1+r):m+r-m*r,W=2*m-eA;x=$(W,eA,a+1/3),S=$(W,eA,a),T=$(W,eA,a-1/3)}var J=[x*255,S*255,T*255].map(Math.round);return J[3]=Q,J}}]),g}(),P=function(){function g(){o(this,g),this._events=[]}return b(g,[{key:"add",value:function(h,C,a){h.addEventListener(C,a,!1),this._events.push({target:h,type:C,handler:a})}},{key:"remove",value:function(h,C,a){this._events=this._events.filter(function(r){var m=!0;return h&&h!==r.target&&(m=!1),C&&C!==r.type&&(m=!1),a&&a!==r.handler&&(m=!1),m&&g._doRemove(r.target,r.type,r.handler),!m})}},{key:"destroy",value:function(){this._events.forEach(function(h){return g._doRemove(h.target,h.type,h.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(h,C,a){h.removeEventListener(C,a,!1)}}]),g}();function Y(g){var s=document.createElement("div");return s.innerHTML=g,s.firstElementChild}function G(g,s,h){var C=!1;function a(x,S,T){return Math.max(S,Math.min(x,T))}function r(x,S,T){if(T&&(C=!0),!!C){x.preventDefault();var $=s.getBoundingClientRect(),eA=$.width,W=$.height,J=S.clientX,O=S.clientY,q=a(J-$.left,0,eA),k=a(O-$.top,0,W);h(q/eA,k/W)}}function m(x,S){var T=x.buttons===void 0?x.which:x.buttons;T===1?r(x,x,S):C=!1}function Q(x,S){x.touches.length===1?r(x,x.touches[0],S):C=!1}g.add(s,"mousedown",function(x){m(x,!0)}),g.add(s,"touchstart",function(x){Q(x,!0)}),g.add(window,"mousemove",m),g.add(s,"touchmove",Q),g.add(window,"mouseup",function(x){C=!1}),g.add(s,"touchend",function(x){C=!1}),g.add(s,"touchcancel",function(x){C=!1})}var K=`linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,
1637
1637
  linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,D=360,E="keydown",L="mousedown",_="focusin";function v(g,s){return(s||document).querySelector(g)}function B(g){g.preventDefault(),g.stopPropagation()}function p(g,s,h,C,a){g.add(s,E,function(r){h.indexOf(r.key)>=0&&C(r)})}var d=function(){function g(s){o(this,g),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new P,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(s)}return b(g,[{key:"setOptions",value:function(h){var C=this;if(!h)return;var a=this.settings;function r(S,T,$){for(var eA in S)T[eA]=S[eA]}if(h instanceof HTMLElement)a.parent=h;else{a.parent&&h.parent&&a.parent!==h.parent&&(this._events.remove(a.parent),this._popupInited=!1),r(h,a),h.onChange&&(this.onChange=h.onChange),h.onDone&&(this.onDone=h.onDone),h.onOpen&&(this.onOpen=h.onOpen),h.onClose&&(this.onClose=h.onClose);var m=h.color||h.colour;m&&this._setColor(m)}var Q=a.parent;if(Q&&a.popup&&!this._popupInited){var x=function(T){return C.openHandler(T)};this._events.add(Q,"click",x),p(this._events,Q,[" ","Spacebar","Enter"],x),this._popupInited=!0}else h.parent&&!a.popup&&this.show()}},{key:"openHandler",value:function(h){if(this.show()){h&&h.preventDefault(),this.settings.parent.style.pointerEvents="none";var C=h&&h.type===E?this._domEdit:this.domElement;setTimeout(function(){return C.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(h){var C=h&&h.type,a=!1;if(!h)a=!0;else if(C===L||C===_){var r=(this.__containedEvent||0)+100;h.timeStamp>r&&(a=!0)}else B(h),a=!0;a&&this.hide()&&(this.settings.parent.style.pointerEvents="",C!==L&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(h,C){this.closeHandler(),this.setOptions(h),C&&this.openHandler()}},{key:"setColor",value:function(h,C){this._setColor(h,{silent:C})}},{key:"_setColor",value:function(h,C){if(typeof h=="string"&&(h=h.trim()),!!h){C=C||{};var a=void 0;try{a=new N(h)}catch(m){if(C.failSilently)return;throw m}if(!this.settings.alpha){var r=a.hsla;r[3]=1,a.hsla=r}this.colour=this.color=a,this._setHSLA(null,null,null,null,C)}}},{key:"setColour",value:function(h,C){this.setColor(h,C)}},{key:"show",value:function(){var h=this.settings.parent;if(!h)return!1;if(this.domElement){var C=this._toggleDOM(!0);return this._setPosition(),C}var a=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',r=Y(a);return this.domElement=r,this._domH=v(".picker_hue",r),this._domSL=v(".picker_sl",r),this._domA=v(".picker_alpha",r),this._domEdit=v(".picker_editor input",r),this._domSample=v(".picker_sample",r),this._domOkay=v(".picker_done button",r),this._domCancel=v(".picker_cancel button",r),r.classList.add("layout_"+this.settings.layout),this.settings.alpha||r.classList.add("no_alpha"),this.settings.editor||r.classList.add("no_editor"),this.settings.cancelButton||r.classList.add("no_cancel"),this._ifPopup(function(){return r.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var h=this,C=this,a=this.domElement,r=this._events;function m(S,T,$){r.add(S,T,$)}m(a,"click",function(S){return S.preventDefault()}),G(r,this._domH,function(S,T){return C._setHSLA(S)}),G(r,this._domSL,function(S,T){return C._setHSLA(null,S,1-T)}),this.settings.alpha&&G(r,this._domA,function(S,T){return C._setHSLA(null,null,null,1-T)});var Q=this._domEdit;m(Q,"input",function(S){C._setColor(this.value,{fromEditor:!0,failSilently:!0})}),m(Q,"focus",function(S){var T=this;T.selectionStart===T.selectionEnd&&T.select()}),this._ifPopup(function(){var S=function(eA){return h.closeHandler(eA)};m(window,L,S),m(window,_,S),p(r,a,["Esc","Escape"],S);var T=function(eA){h.__containedEvent=eA.timeStamp};m(a,L,T),m(a,_,T),m(h._domCancel,"click",S)});var x=function(T){h._ifPopup(function(){return h.closeHandler(T)}),h.onDone&&h.onDone(h.colour)};m(this._domOkay,"click",x),p(r,a,["Enter"],x)}},{key:"_setPosition",value:function(){var h=this.settings.parent,C=this.domElement;h!==C.parentNode&&h.appendChild(C),this._ifPopup(function(a){getComputedStyle(h).position==="static"&&(h.style.position="relative");var r=a===!0?"popup_right":"popup_"+a;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(m){m===r?C.classList.add(m):C.classList.remove(m)}),C.classList.add(r)})}},{key:"_setHSLA",value:function(h,C,a,r,m){m=m||{};var Q=this.colour,x=Q.hsla;[h,C,a,r].forEach(function(S,T){(S||S===0)&&(x[T]=S)}),Q.hsla=x,this._updateUI(m),this.onChange&&!m.silent&&this.onChange(Q)}},{key:"_updateUI",value:function(h){if(!this.domElement)return;h=h||{};var C=this.colour,a=C.hsla,r="hsl("+a[0]*D+", 100%, 50%)",m=C.hslString,Q=C.hslaString,x=this._domH,S=this._domSL,T=this._domA,$=v(".picker_selector",x),eA=v(".picker_selector",S),W=v(".picker_selector",T);function J(oA,dA,EA){dA.style.left=EA*100+"%"}function O(oA,dA,EA){dA.style.top=EA*100+"%"}J(x,$,a[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,J(S,eA,a[1]),O(S,eA,1-a[2]),S.style.color=m,O(T,W,1-a[3]);var q=m,k=q.replace("hsl","hsla").replace(")",", 0)"),V="linear-gradient("+[q,k]+")";if(this._domA.style.background=V+", "+K,!h.fromEditor){var H=this.settings.editorFormat,AA=this.settings.alpha,sA=void 0;switch(H){case"rgb":sA=C.printRGB(AA);break;case"hsl":sA=C.printHSL(AA);break;default:sA=C.printHex(AA)}this._domEdit.value=sA}this._domSample.style.color=Q}},{key:"_ifPopup",value:function(h,C){this.settings.parent&&this.settings.popup?h&&h(this.settings.popup):C&&C()}},{key:"_toggleDOM",value:function(h){var C=this.domElement;if(!C)return!1;var a=h?"":"none",r=C.style.display!==a;return r&&(C.style.display=a),r}}]),g}(),l=document.createElement("style");return l.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(l),d.StyleElement=l,d}()},9857:function(I,o,b){b.d(o,{m:function(){return te}});class y extends Error{constructor(SA,ZA){super(SA+" at position "+ZA),this.position=ZA}}let w=92,M=47,N=42,P=123,Y=125,G=91,K=93,D=40,E=41,L=32,_=10,v=9,B=13,p=8,d=12,l=34,g=43,s=45,h=39,C=48,a=57,r=44,m=46,Q=58,x=59,S=65,T=97,$=69,eA=101,W=70,J=102,O=160,q=8192,k=8202,V=8239,H=8287,AA=12288,sA=8220,oA=8221,dA=8216,EA=8217,uA=96,BA=180;function j(LA){return LA>=C&&LA<=a}function tA(LA){return rA.test(LA)}let rA=/^[,:[\]/{}()\n+]$/;function gA(LA){return z.test(LA)||LA&&iA(LA.charCodeAt(0))}let z=/^[[{\w-]$/;function X(LA){return LA===L||LA===_||LA===v||LA===B}function iA(LA){return cA(LA)||vA(LA)}function cA(LA){return LA===l||LA===sA||LA===oA}function CA(LA){return LA===l}function vA(LA){return LA===h||LA===dA||LA===EA||LA===uA||LA===BA}function GA(LA){return LA===h}function JA(LA,SA,ZA){return ZA=2<arguments.length&&ZA!==void 0&&ZA,SA=LA.lastIndexOf(SA),SA!==-1?LA.substring(0,SA)+(ZA?"":LA.substring(SA+1)):LA}function qA(LA,SA){let ZA=LA.length;if(!X(LA.charCodeAt(ZA-1)))return LA+SA;for(;X(LA.charCodeAt(ZA-1));)ZA--;return LA.substring(0,ZA)+SA+LA.substring(ZA)}let WA={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},ue={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
1638
1638
  `,r:"\r",t:" "};function te(LA){let SA=0,ZA="";if(!De())throw new y("Unexpected end of json string",LA.length);var Be=$A(r);if(Be&&Se(),gA(LA[SA])&&/[,\n][ \t\r]*$/.test(ZA)){Be||(ZA=qA(ZA,","));{let re=!0,ge=!0;for(;ge;)re?re=!1:$A(r)||(ZA=qA(ZA,",")),ge=De();ge||(ZA=JA(ZA,",")),ZA=`[
1639
1639
  `.concat(ZA,`
1640
1640
  ]`)}}else Be&&(ZA=JA(ZA,","));for(;LA.charCodeAt(SA)===Y||LA.charCodeAt(SA)===K;)SA++,Se();if(SA>=LA.length)return ZA;throw new y("Unexpected character "+JSON.stringify(LA[SA]),SA);function De(){Se();var re=function(){if(LA.charCodeAt(SA)!==P)return!1;{ZA+="{",SA++,Se(),XA(r)&&Se();let lt=!0;for(;SA<LA.length&&LA.charCodeAt(SA)!==Y;){if(lt?lt=!1:($A(r)||(ZA=qA(ZA,",")),Se()),he(),!(ce()||wA())){LA.charCodeAt(SA)===Y||LA.charCodeAt(SA)===P||LA.charCodeAt(SA)===K||LA.charCodeAt(SA)===G||LA[SA]===void 0?ZA=JA(ZA,","):function(){throw new y("Object key expected",SA)}();break}Se();var ge=$A(Q),Me=SA>=LA.length,tt=(ge||(gA(LA[SA])||Me?ZA=qA(ZA,":"):be()),De());tt||(ge||Me?ZA+="null":be())}return LA.charCodeAt(SA)===Y?(ZA+="}",SA++):ZA=qA(ZA,"}"),!0}}()||function(){if(LA.charCodeAt(SA)!==G)return!1;{ZA+="[",SA++,Se(),XA(r)&&Se();let Me=!0;for(;SA<LA.length&&LA.charCodeAt(SA)!==K;){Me?Me=!1:$A(r)||(ZA=qA(ZA,",")),he();var ge=De();if(!ge){ZA=JA(ZA,",");break}}return LA.charCodeAt(SA)===K?(ZA+="]",SA++):ZA=qA(ZA,"]"),!0}}()||ce()||function(){var ge=SA;if(LA.charCodeAt(SA)===s){if(SA++,KA())return oe(ge),!0;if(!j(LA.charCodeAt(SA)))return SA=ge,!1}for(;j(LA.charCodeAt(SA));)SA++;if(LA.charCodeAt(SA)===m){if(SA++,KA())return oe(ge),!0;if(!j(LA.charCodeAt(SA)))return SA=ge,!1;for(;j(LA.charCodeAt(SA));)SA++}if(LA.charCodeAt(SA)===eA||LA.charCodeAt(SA)===$){if(SA++,LA.charCodeAt(SA)!==s&&LA.charCodeAt(SA)!==g||SA++,KA())return oe(ge),!0;if(!j(LA.charCodeAt(SA)))return SA=ge,!1;for(;j(LA.charCodeAt(SA));)SA++}var Me,tt;if(KA()){if(SA>ge)return Me=LA.slice(ge,SA),tt=/^0\d/.test(Me),ZA+=tt?'"'.concat(Me,'"'):Me,!0}else SA=ge;return!1}()||ke("true","true")||ke("false","false")||ke("null","null")||ke("True","true")||ke("False","false")||ke("None","null")||wA();return Se(),re}function Se(){for(YA();function(){if(LA.charCodeAt(SA)===M&&LA.charCodeAt(SA+1)===N){for(;SA<LA.length&&!function(re,ge){return re[ge]==="*"&&re[ge+1]==="/"}(LA,SA);)SA++;SA+=2}else{if(LA.charCodeAt(SA)!==M||LA.charCodeAt(SA+1)!==M)return!1;for(;SA<LA.length&&LA.charCodeAt(SA)!==_;)SA++}return!0}()&&YA(););}function YA(){let re="";for(var ge,Me;(ge=X(LA.charCodeAt(SA)))||(Me=LA.charCodeAt(SA))===O||Me>=q&&Me<=k||Me===V||Me===H||Me===AA;)re+=ge?LA[SA]:" ",SA++;return 0<re.length&&(ZA+=re,!0)}function $A(re){return LA.charCodeAt(SA)===re&&(ZA+=LA[SA],SA++,!0)}function XA(re){return LA.charCodeAt(SA)===re&&(SA++,!0)}function he(){Se(),LA.charCodeAt(SA)===m&&LA.charCodeAt(SA+1)===m&&LA.charCodeAt(SA+2)===m&&(SA+=3,Se(),XA(r))}function ce(re){var ge,Me,tt=0<arguments.length&&re!==void 0&&re;let lt=LA.charCodeAt(SA)===w;if(lt&&(SA++,lt=!0),iA(LA.charCodeAt(SA))){var MA=CA(LA.charCodeAt(SA))?CA:GA(LA.charCodeAt(SA))?GA:vA(LA.charCodeAt(SA))?vA:cA,bA=SA,RA=ZA.length;let _e='"';for(SA++;;){if(SA>=LA.length)return zA=NA(SA-1),!tt&&tA(LA.charAt(zA))?(SA=bA,ZA=ZA.substring(0,RA),ce(!0)):(_e=qA(_e,'"'),ZA+=_e,!0);if(MA(LA.charCodeAt(SA))){var zA=SA,OA=_e.length;if(_e+='"',SA++,ZA+=_e,Se(),tt||SA>=LA.length||tA(LA.charAt(SA))||iA(LA.charCodeAt(SA))||j(LA.charCodeAt(SA)))return Ee(),!0;if(tA(LA.charAt(NA(zA-1))))return SA=bA,ZA=ZA.substring(0,RA),ce(!0);ZA=ZA.substring(0,RA),SA=zA+1,_e=_e.substring(0,OA)+"\\"+_e.substring(OA)}else{if(tt&&tA(LA[SA]))return _e=qA(_e,'"'),ZA+=_e,Ee(),!0;if(LA.charCodeAt(SA)===w)if(OA=LA.charAt(SA+1),ue[OA]!==void 0)_e+=LA.slice(SA,SA+2),SA+=2;else if(OA==="u"){let qe=2;for(;qe<6&&((Me=LA.charCodeAt(SA+qe))>=C&&Me<=a||Me>=S&&Me<=W||Me>=T&&Me<=J);)qe++;if(qe===6)_e+=LA.slice(SA,SA+6),SA+=6;else{if(!(SA+qe>=LA.length))throw fe=void 0,fe=LA.slice(SA,SA+6),new y('Invalid unicode character "'.concat(fe,'"'),SA);SA=LA.length}}else _e+=OA,SA+=2;else{var fe=LA.charAt(SA),ne=LA.charCodeAt(SA);if(ne===l&&LA.charCodeAt(SA-1)!==w)_e+="\\"+fe;else if((ge=ne)===_||ge===B||ge===v||ge===p||ge===d)_e+=WA[fe];else{if(!(32<=(ge=ne)&&ge<=1114111))throw ne=void 0,ne=fe,new y("Invalid character "+JSON.stringify(ne),SA);_e+=fe}SA++}}lt&&XA(w)}}return!1}function Ee(){for(Se();LA.charCodeAt(SA)===g;){SA++,Se();var re=(ZA=JA(ZA,'"',!0)).length,ge=ce();ZA=ge?(ge=ZA,re=re,Me=1,ge.substring(0,re)+ge.substring(re+Me)):qA(ZA,'"')}var Me}function ke(re,ge){return LA.slice(SA,SA+re.length)===re&&(ZA+=ge,SA+=re.length,!0)}function wA(){for(var re,ge=SA;SA<LA.length&&(!tA(re=LA[SA])||re==="/")&&!iA(LA.charCodeAt(SA));)SA++;if(SA>ge){if(LA.charCodeAt(SA)===D&&/^\w+$/.test(LA.slice(ge,SA).trim()))SA++,De(),LA.charCodeAt(SA)===E&&(SA++,LA.charCodeAt(SA)===x)&&SA++;else{for(;X(LA.charCodeAt(SA-1))&&0<SA;)SA--;ge=LA.slice(ge,SA),ZA+=ge==="undefined"?"null":JSON.stringify(ge),LA.charCodeAt(SA)===l&&SA++}return!0}}function NA(re){let ge=re;for(;0<ge&&X(LA.charCodeAt(ge));)ge--;return ge}function KA(){return SA>=LA.length||tA(LA[SA])||X(LA.charCodeAt(SA))}function oe(re){ZA+=LA.slice(re,SA)+"0"}function be(){throw new y("Colon expected",SA)}}},3420:function(I){I.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},5207:function(I){I.exports=JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}')},6801:function(I){I.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-06/schema#","$id":"http://json-schema.org/draft-06/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"examples":{"type":"array","items":{}},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":{},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},8198:function(I){I.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},u={},t.amdD=function(){throw new Error("define cannot be used indirect")},t.n=function(I){var o=I&&I.__esModule?function(){return I.default}:function(){return I};return t.d(o,{a:o}),o},t.d=function(I,o){for(var b in o)t.o(o,b)&&!t.o(I,b)&&Object.defineProperty(I,b,{enumerable:!0,get:o[b]})},t.o=function(I,o){return Object.prototype.hasOwnProperty.call(I,o)},t.r=function(I){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(I,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(I,"__esModule",{value:!0})},t.nmd=function(I){return I.paths=[],I.children||(I.children=[]),I},t(1346);function t(I){var o=u[I];return o!==void 0||(o=u[I]={id:I,loaded:!1,exports:{}},i[I].call(o.exports,o,o.exports,t),o.loaded=!0),o.exports}var i,u})})(yC);var AM=yC.exports;const eM=fu(AM),tM={editor:null,name:"json-editor-vue",internalChange:!1,props:{modelValue:Object,options:Object,currentMode:{type:String,default:"code"},modeList:{type:Array,default:()=>["tree","code","form","text","view"]},language:{type:String,default:"en"}},data(){return{json:this.modelValue,expandedModes:["tree","view","form"],isFullScreen:!1,hasLogo:!0,showFullScreen:!1}},watch:{modelValue:{immediate:!0,deep:!0,handler(n){this.internalChange||(this.setEditorContent(n),this.$nextTick(()=>{this.expandAll()}))}}},mounted(){this.init();const n=document.querySelector(".jsoneditor-menu .jsoneditor-poweredBy");this.hasLogo=n&&window.getComputedStyle(n).display!=="none",this.showFullScreen=!0},unmounted(){var n;(n=this.editor)==null||n.destroy(),this.editor=null},methods:{toggleFullScreen(){this.isFullScreen=!this.isFullScreen,this.$nextTick(()=>{const n=new Event("resize");window.dispatchEvent(n)})},init(){const{currentMode:n,modeList:e,options:t}=this,i=()=>{const P=G=>{this.json=G,this.$emit("update:modelValue",G),this.$emit("change",G),this.internalChange=!0,this.$nextTick(()=>{this.internalChange=!1})};if(!this.editor.getText()){P("");return}try{const G=this.editor.get();P(G)}catch{}},u=()=>{this.expandAll()},I=(P,Y,G)=>{this.$emit("textSelectionChange",this.editor,P,Y,G)},o=(P,Y)=>{this.$emit("selectionChange",this.editor,P,Y)},b=(P,Y,G)=>{this.$emit("colorPicker",this.editor,P,Y,G)},y=({target:P})=>{this.$emit("focus",this.editor,P)},w=({target:P})=>{this.$emit("blur",this.editor,P)},M=P=>{this.$emit("validationError",this.editor,P)},N={...t,indentation:2,language:this.language,mode:n,modes:e,onChange:i,onModeChange:u,onTextSelectionChange:I,onSelectionChange:o,onColorPicker:b,onFocus:y,onBlur:w,onValidationError:M};this.editor=new eM(this.$refs.jsonEditorVue,N,this.json)},expandAll(){var n,e;this.expandedModes.includes((n=this.editor)==null?void 0:n.getMode())&&((e=this.editor)==null||e.expandAll())},setEditorContent(n){var e;(e=this.editor)==null||e.set(n)}}},nM={ref:"jsonEditorVue",class:"json-editor-vue"};function iM(n,e,t,i,u,I){return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(["container",{"full-screen-container":u.isFullScreen}])},[A.createElementVNode("div",nM,null,512),A.createElementVNode("div",{class:A.normalizeClass(["full-screen",{show:u.showFullScreen,right:!u.hasLogo}]),onClick:e[0]||(e[0]=(...o)=>I.toggleFullScreen&&I.toggleFullScreen(...o))},null,2)],2)}const oM=ie(tM,[["render",iM],["__scopeId","data-v-c53d52f1"]]),rM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({inheritAttrs:!1,__name:"JsonEdit",props:A.mergeModels({disabled:Boolean},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=A.useModel(n,"modelValue");return(t,i)=>(A.openBlock(),A.createBlock(A.unref(gy),{disabled:n.disabled,class:"jsonEdit-disabled"},{default:A.withCtx(()=>[A.createVNode(oM,A.mergeProps({class:"editor-direct",modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=u=>e.value=u),currentMode:"code",modeList:["text","view","tree","code","form"],options:{search:!1,history:!1}},t.$attrs),null,16,["modelValue"])]),_:1},8,["disabled"]))}})},Symbol.toStringTag,{value:"Module"})),aM={key:0},sM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Checkbox",props:A.mergeModels({options:{default:()=>[]},defaultOptions:{},mode:{default:"static"},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{},env:{},apiParams:{},dependentFields:{},name:{default:""},onChange:{},read:{type:Boolean},readTextColor:{},filters:{},refreshFlag:{type:Boolean},clearable:{type:Boolean},width:{},optionType:{default:"circle"},direction:{default:"horizontal"},space:{default:20}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,t=A.useModel(n,"modelValue"),i=It(),{currentOptions:u,selectChange:I,loading:o}=Cr(e),{ruleModule:b,pageMethodMap:y}=ei(),w=M=>{if(I(M),e.onChange&&b)try{b[e.onChange](y,M)}catch(N){console.error(N+`
1641
1641
  onChange: ${e.onChange}`)}};return A.watch(t,I),(M,N)=>{var E;const P=A.resolveComponent("el-checkbox"),Y=A.resolveComponent("el-checkbox-button"),G=A.resolveComponent("el-space"),K=A.resolveComponent("el-checkbox-group"),D=A.resolveDirective("loading");return A.unref(i).schema.read?(A.openBlock(),A.createElementBlock("div",aM,A.toDisplayString((E=t.value)==null?void 0:E.map(L=>{var _;return(_=A.unref(u).find(v=>v[M.valueKey]===L))==null?void 0:_[M.labelKey]}).join("、")),1)):A.withDirectives((A.openBlock(),A.createBlock(K,A.mergeProps({key:1},M.$attrs,{modelValue:t.value,"onUpdate:modelValue":N[0]||(N[0]=L=>t.value=L),onChange:w}),{default:A.withCtx(()=>[M.optionType==="circle"||M.optionType==="border"?(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:0},A.renderList(A.unref(u),L=>(A.openBlock(),A.createBlock(P,{key:L[M.valueKey],label:L[M.labelKey],value:L[M.valueKey],border:M.optionType==="border"},null,8,["label","value","border"]))),128)):A.createCommentVNode("",!0),M.optionType==="button"?(A.openBlock(),A.createBlock(G,{key:1,wrap:"",size:[M.space,M.space]},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(A.unref(u),L=>(A.openBlock(),A.createBlock(Y,{key:L[M.valueKey],label:L[M.labelKey],value:L[M.valueKey],size:"large"},null,8,["label","value"]))),128))]),_:1},8,["size"])):A.createCommentVNode("",!0)]),_:1},16,["modelValue"])),[[D,A.unref(o)]])}}})},Symbol.toStringTag,{value:"Module"})),lM={class:"vfc-color-input"},cM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"ColorInput",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=A.useModel(n,"modelValue");return(t,i)=>{const u=A.resolveComponent("el-input"),I=A.resolveComponent("el-color-picker");return A.openBlock(),A.createElementBlock("div",lM,[A.createVNode(u,{modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=o=>e.value=o)},null,8,["modelValue"]),A.createVNode(I,{modelValue:e.value,"onUpdate:modelValue":i[1]||(i[1]=o=>e.value=o)},null,8,["modelValue"])])}}})},Symbol.toStringTag,{value:"Module"})),gM={key:0,class:"empty"},uM=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Custom",props:A.mergeModels({componentName:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=A.useModel(n,"modelValue");return(t,i)=>t.componentName?(A.openBlock(),A.createBlock(A.resolveDynamicComponent(t.componentName),A.mergeProps({key:1,modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=u=>e.value=u)},t.$attrs),null,16,["modelValue"])):(A.openBlock(),A.createElementBlock("span",gM,"请输入全局注册得组件名"))}}),[["__scopeId","data-v-a013b8cf"]])},Symbol.toStringTag,{value:"Module"})),dM={key:0},hM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"DatePicker",props:A.mergeModels({onChange:{},onInput:{},onEnter:{},rulePath:{},read:{type:Boolean},readTextColor:{},onClick:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=A.useModel(n,"modelValue"),t=n,i=A.useAttrs(),u=It(),I=A.computed(()=>t.read||u.schema.read),o=A.computed(()=>e.value?i.valueFormat?Ht.dayjs(e.value).format(i.valueFormat):e.value:"--"),b=[{text:"Today",value:new Date}],y=A.inject("ruleModule",void 0),w=A.inject("pageMethodMap",{}),M=N=>{if(console.log("zytest-----handleChange",N),t.onChange&&y)try{y[t.onChange](w,N)}catch(P){console.error(P+`
1642
1642
  onChange: ${t.onChange}`)}};return(N,P)=>{const Y=A.resolveComponent("el-date-picker");return I.value?(A.openBlock(),A.createElementBlock("span",dM,A.toDisplayString(o.value),1)):(A.openBlock(),A.createBlock(Y,A.mergeProps({key:1},N.$attrs,{modelValue:e.value,"onUpdate:modelValue":P[0]||(P[0]=G=>e.value=G),style:{width:"100%"},shortcuts:b,onChange:M}),null,16,["modelValue"]))}}})},Symbol.toStringTag,{value:"Module"})),pM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Divider",props:{title:{}},setup(n){return(e,t)=>{const i=A.resolveComponent("ElDivider");return A.openBlock(),A.createBlock(i,A.normalizeProps(A.guardReactiveProps(e.$attrs)),{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(e.title),1)]),_:1},16)}}})},Symbol.toStringTag,{value:"Module"})),CM=A.defineComponent({props:{width:{type:Number,default:800},height:{type:Number,default:300},lineWidth:{type:Number,default:4},lineColor:{type:String,default:"#000000"},bgColor:{type:String,default:""},isCrop:{type:Boolean,default:!1},isClearBgColor:{type:Boolean,default:!1},format:{type:String,default:"image/png"},quality:{type:Number,default:1}},setup(n){const e=A.ref(!1),t=A.ref(""),i=A.ref([]),u=A.ref(null),I=A.ref(0),o=A.ref(0),b=A.ref(!1),y=A.ref(1),w=A.ref(null),M=A.computed(()=>n.height/n.width),N=A.computed(()=>n.bgColor?n.bgColor:"rgba(255, 255, 255, 0)");A.watch(N,_=>{w.value&&(w.value.style.background=_)});const P=()=>{if(w.value){w.value.style.width=`${n.width}px`;const _=parseFloat(window.getComputedStyle(w.value).width);w.value.style.height=`${M.value*_}px`,u.value=w.value.getContext("2d"),u.value&&(u.value.scale(1*y.value,1*y.value),y.value=_/n.width,u.value.scale(1/y.value,1/y.value))}};A.onMounted(()=>{w.value&&(w.value.height=n.height,w.value.width=n.width,w.value.style.background=N.value,P(),document.onmouseup=()=>{b.value=!1}),window.addEventListener("resize",P)}),A.onBeforeUnmount(()=>{window.removeEventListener("resize",P)});const Y=_=>{I.value=_.x,o.value=_.y,u.value&&(u.value.beginPath(),u.value.moveTo(I.value,o.value),u.value.lineTo(_.x,_.y),u.value.lineCap="round",u.value.lineJoin="round",u.value.lineWidth=n.lineWidth*y.value,u.value.stroke(),u.value.closePath(),i.value.push(_))},G=_=>{u.value&&(u.value.beginPath(),u.value.moveTo(I.value,o.value),u.value.lineTo(_.x,_.y),u.value.strokeStyle=n.lineColor,u.value.lineWidth=n.lineWidth*y.value,u.value.lineCap="round",u.value.lineJoin="round",u.value.stroke(),u.value.closePath(),o.value=_.y,I.value=_.x,i.value.push(_))},K=_=>{u.value&&(u.value.beginPath(),u.value.moveTo(I.value,o.value),u.value.lineTo(_.x,_.y),u.value.lineCap="round",u.value.lineJoin="round",u.value.stroke(),u.value.closePath(),i.value.push(_),i.value.push({x:-1,y:-1}))},D=_=>{const v=(_==null?void 0:_.format)||n.format,B=(_==null?void 0:_.quality)||n.quality;return new Promise((p,d)=>{if(!e.value){d("Warning: Not Signed!");return}if(u.value){const l=u.value.getImageData(0,0,w.value.width,w.value.height);u.value.globalCompositeOperation="destination-over",u.value.fillStyle=N.value,u.value.fillRect(0,0,w.value.width,w.value.height),t.value=w.value.toDataURL(v,B);let g=t.value;if(u.value.clearRect(0,0,w.value.width,w.value.height),u.value.putImageData(l,0,0),u.value.globalCompositeOperation="source-over",n.isCrop){const s=L(l.data),h=document.createElement("canvas"),C=h.getContext("2d");if(C){h.width=s[2]-s[0],h.height=s[3]-s[1];const a=u.value.getImageData(s[0],s[1],s[2],s[3]);C.globalCompositeOperation="destination-over",C.putImageData(a,0,0),C.fillStyle=N.value,C.fillRect(0,0,h.width,h.height),g=h.toDataURL(v,B)}}p(g)}})},E=()=>{u.value&&u.value.clearRect(0,0,w.value.width,w.value.height),n.isClearBgColor&&(i.value=[],e.value=!1,t.value="")},L=_=>{let v=w.value.width,B=0,p=w.value.height,d=0;for(let l=0;l<w.value.width;l++)for(let g=0;g<w.value.height;g++){const s=(l+w.value.width*g)*4;(_[s]>0||_[s+1]>0||_[s+2]>0||_[s+3]>0)&&(d=Math.max(g,d),B=Math.max(l,B),p=Math.min(g,p),v=Math.min(l,v))}return[v+1,p+1,B+1,d+1]};return{canvas:w,myBg:N,drawStart:Y,drawMove:G,drawEnd:K,generate:D,reset:E,touchStart:_=>{if(_.preventDefault(),e.value=!0,_.touches.length===1&&w.value){const v={x:_.targetTouches[0].clientX-w.value.getBoundingClientRect().left,y:_.targetTouches[0].clientY-w.value.getBoundingClientRect().top};Y(v)}},touchMove:_=>{if(_.preventDefault(),_.touches.length===1){const v={x:_.targetTouches[0].clientX-w.value.getBoundingClientRect().left,y:_.targetTouches[0].clientY-w.value.getBoundingClientRect().top};G(v)}},touchEnd:_=>{if(_.preventDefault(),_.touches.length===1){const v={x:_.targetTouches[0].clientX-w.value.getBoundingClientRect().left,y:_.targetTouches[0].clientY-w.value.getBoundingClientRect().top};K(v)}},mouseDown:_=>{_.preventDefault(),b.value=!0,e.value=!0;const v={x:_.offsetX,y:_.offsetY};Y(v)},mouseMove:_=>{if(_.preventDefault(),b.value){const v={x:_.offsetX,y:_.offsetY};G(v)}},mouseUp:_=>{_.preventDefault();const v={x:_.offsetX,y:_.offsetY};K(v),b.value=!1}}}});function BM(n,e,t,i,u,I){return A.openBlock(),A.createElementBlock("canvas",{ref:"canvas",onMousedown:e[0]||(e[0]=(...o)=>n.mouseDown&&n.mouseDown(...o)),onMousemove:e[1]||(e[1]=(...o)=>n.mouseMove&&n.mouseMove(...o)),onMouseup:e[2]||(e[2]=(...o)=>n.mouseUp&&n.mouseUp(...o)),onTouchstart:e[3]||(e[3]=(...o)=>n.touchStart&&n.touchStart(...o)),onTouchmove:e[4]||(e[4]=(...o)=>n.touchMove&&n.touchMove(...o)),onTouchend:e[5]||(e[5]=(...o)=>n.touchEnd&&n.touchEnd(...o))},null,544)}const mM=ie(CM,[["render",BM],["__scopeId","data-v-5f3bfcf7"]]),EM={key:0},QM={class:"vfc-esign-preview"},IM=["src"],fM={key:1,class:"vfc-esign"},wM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Component",props:A.mergeModels({lineWidth:{default:6},lineColor:{default:"#000000"},bgColor:{default:"#f6f6f6"},isCrop:{type:Boolean,default:!1},width:{default:700},height:{default:300},disabled:{type:Boolean},format:{default:"image/png"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,t=A.ref(),i=It(),u=A.useModel(n,"modelValue"),I={size:"small",labelPosition:"right",items:[{component:"Inline",children:[{label:"画笔粗细",component:"InputNumber",name:"lineWidth",props:{controlsPosition:"right"}},{label:"画笔颜色",component:"ColorPicker",name:"lineColor"},{label:"画板背景色",component:"ColorPicker",name:"bgColor"}],props:{align:"left",gap:20},designKey:"design-ZuIT",name:"form-OqAi",style:{marginBottom:"10px"}}]},o=A.ref({lineWidth:6,lineColor:"#000000",bgColor:"#fff"}),b=()=>{t.value.reset()},y=()=>{t.value.generate().then(N=>{u.value=N}).catch(N=>{alert(N)})},w=A.ref(""),M=()=>{w.value=u.value,u.value=""};return A.onMounted(()=>{Object.assign(o.value,e)}),(N,P)=>{const Y=A.resolveComponent("el-button");return A.unref(i).read||u.value?(A.openBlock(),A.createElementBlock("div",EM,[A.createElementVNode("div",QM,[A.createElementVNode("img",{src:u.value,alt:"未签名"},null,8,IM)]),A.unref(i).read?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(Y,{key:0,disabled:N.disabled,onClick:M,type:"primary"},{default:A.withCtx(()=>P[2]||(P[2]=[A.createTextVNode("重写")])),_:1},8,["disabled"]))])):(A.openBlock(),A.createElementBlock("div",fM,[A.createVNode(A.unref(fn),{modelValue:o.value,"onUpdate:modelValue":P[0]||(P[0]=G=>o.value=G),schema:I,class:"vfc-esign-actions"},null,8,["modelValue"]),A.createVNode(mM,{class:"vfc-esign-canvas",ref_key:"esign",ref:t,width:N.width,height:N.height,isCrop:N.isCrop,lineWidth:o.value.lineWidth,lineColor:o.value.lineColor,bgColor:o.value.bgColor,format:N.format},null,8,["width","height","isCrop","lineWidth","lineColor","bgColor","format"]),A.createElementVNode("div",null,[w.value?(A.openBlock(),A.createBlock(Y,{key:0,disabled:N.disabled,onClick:P[1]||(P[1]=G=>u.value=w.value),plain:"",type:"primary"},{default:A.withCtx(()=>P[3]||(P[3]=[A.createTextVNode("取消")])),_:1},8,["disabled"])):A.createCommentVNode("",!0),A.createVNode(Y,{disabled:N.disabled,onClick:b,plain:"",type:"primary"},{default:A.withCtx(()=>P[4]||(P[4]=[A.createTextVNode("清空")])),_:1},8,["disabled"]),A.createVNode(Y,{disabled:N.disabled,onClick:y,type:"primary"},{default:A.withCtx(()=>P[5]||(P[5]=[A.createTextVNode("保存")])),_:1},8,["disabled"])])]))}}})},Symbol.toStringTag,{value:"Module"})),bM={key:0},yM=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Radio",props:A.mergeModels({options:{default:()=>[]},defaultOptions:{},mode:{default:"static"},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},env:{},apiParams:{},dependentFields:{},name:{default:""},onChange:{},read:{type:Boolean},readTextColor:{},filters:{},refreshFlag:{type:Boolean},clearable:{type:Boolean},width:{},optionType:{default:"circle"},direction:{default:"horizontal"},space:{default:8}},{modelValue:{type:[String,Number,Boolean],default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,t=A.useModel(n,"modelValue"),i=It(),u=A.inject("ruleModule",void 0),I=A.inject("pageMethodMap",{}),o=w=>{const{valueKey:M="value",name:N}=e;let P={};if(P=b.value.find(Y=>Y[M]===w)||{},i.selectData&&N&&i.updateSelectData(N,P),e.onChange&&u)try{u[e.onChange](I,w,P)}catch(Y){console.error(Y+`
1643
- onChange: ${e.onChange}`)}},{currentOptions:b,loading:y}=Cr(e);return(w,M)=>{var D;const N=A.resolveComponent("el-radio"),P=A.resolveComponent("el-radio-button"),Y=A.resolveComponent("el-space"),G=A.resolveComponent("el-radio-group"),K=A.resolveDirective("loading");return w.read?(A.openBlock(),A.createElementBlock("div",bM,A.toDisplayString(((D=A.unref(b).find(E=>E[w.valueKey]===t.value))==null?void 0:D[w.labelKey])||"--"),1)):A.withDirectives((A.openBlock(),A.createBlock(G,A.mergeProps({key:1,modelValue:t.value,"onUpdate:modelValue":M[0]||(M[0]=E=>t.value=E),onChange:o},w.$attrs),{default:A.withCtx(()=>[A.createVNode(Y,{wrap:"",direction:w.direction,size:[w.space,w.space],alignment:"normal"},{default:A.withCtx(()=>[w.optionType==="circle"||w.optionType==="border"?(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:0},A.renderList(A.unref(b),E=>(A.openBlock(),A.createBlock(N,{key:E[w.valueKey],label:E[w.labelKey],value:E[w.valueKey],disabled:E[w.disabledKey],border:w.optionType==="border"},null,8,["label","value","disabled","border"]))),128)):(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:1},A.renderList(A.unref(b),E=>(A.openBlock(),A.createBlock(P,A.mergeProps({key:E[w.valueKey],label:E[w.labelKey],value:E[w.valueKey],class:"radio-button",disabled:E[w.disabledKey],ref_for:!0},w.$attrs),null,16,["label","value","disabled"]))),128))]),_:1},8,["direction","size"])]),_:1},16,["modelValue"])),[[K,A.unref(y)]])}}}),[["__scopeId","data-v-1e24870a"]])},Symbol.toStringTag,{value:"Module"})),DM={class:"vfc-formList"},vM={key:1},kM={class:"list-item-content"},_M={class:"card-header"},MM={style:{"margin-top":"5px"}},xM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"FormList",props:A.mergeModels({children:{default:()=>[]},allowAdd:{type:Boolean,default:!0},allowReduce:{type:Boolean,default:!0},minLines:{default:0},maxLines:{default:999},mode:{default:"table"},title:{default:""},name:{default:""},disabled:{type:Boolean}},{modelValue:{default:[]},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,t=A.useModel(n,"modelValue"),i=A.ref(0),u=It(),I=N=>Rt(e.children,{$item:t.value[N],$index:N}),o=A.computed(()=>t.value.length>=e.maxLines),b=A.computed(()=>t.value.length<=e.minLines),y=()=>{o.value||(t.value=[...t.value,{}])},w=N=>{const P=t.value.filter((Y,G)=>G!==N);t.value=P},M=(N,P,Y,G)=>{const K=P.no,D=I(G)[K];return A.h(oo,{...D,hideLabel:!0,style:{marginBottom:0},name:`${e.name}.${G}.${D.name}`})};return A.watch(t,(N,P)=>{const Y=N.reduce((E,L,_)=>(ut.isEqual(L,P[_])||(E=_),E),0);if(i.value=Y,!e.children.some(E=>E.change))return;const G=I(Y),K=N[Y]||{},D=P[Y]||{};G.forEach(E=>{E.change&&D&&!ut.isEqual(K[E.name],D[E.name])&&E.change.forEach(L=>{if(L.condition!==!1){if(ut.isString(L.condition)&&/^{{\s*(.*?)\s*}}$/.test(L.condition))return;const _=L.target.split(".").pop();t.value[Y][_]=L.value}})})}),A.onMounted(()=>{var N;e.minLines&&!((N=t.value)!=null&&N.length)&&(t.value=Array.from({length:e.minLines},()=>({})))}),A.provide("$objGroupBase",A.computed(()=>`${e.name}.${i.value}`)),(N,P)=>{const Y=A.resolveComponent("el-space"),G=A.resolveComponent("el-button"),K=A.resolveComponent("el-form-item"),D=A.resolveComponent("el-card"),E=A.resolveComponent("el-table-column"),L=A.resolveComponent("el-table");return A.openBlock(),A.createElementBlock("div",DM,[A.unref(u).design?(A.openBlock(),A.createBlock(A.unref(qc),{key:0,list:N.children,class:"layoutRender"},null,8,["list"])):(A.openBlock(),A.createElementBlock("div",vM,[N.mode==="inline"?(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:0},A.renderList(t.value,(_,v)=>(A.openBlock(),A.createBlock(K,{key:_.key,class:"list-item"},{default:A.withCtx(()=>[A.createElementVNode("div",kM,[A.createVNode(Y,null,{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(I(v),B=>(A.openBlock(),A.createBlock(A.unref(oo),A.mergeProps({ref_for:!0},B,{key:B.label,name:`${N.name}.${v}.${B.name}`,hideLabel:""}),null,16,["name"]))),128))]),_:2},1024),N.allowReduce&&!b.value?(A.openBlock(),A.createBlock(G,{key:0,onClick:B=>w(v),circle:"",type:"primary",class:"list-btn reduceBtn",disabled:N.disabled,size:"small"},{icon:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:"reduce",color:"#fff"})]),_:2},1032,["onClick","disabled"])):A.createCommentVNode("",!0)])]),_:2},1024))),128)):A.createCommentVNode("",!0),N.mode==="card"?(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:1},A.renderList(t.value,(_,v)=>(A.openBlock(),A.createBlock(D,{key:_.key,class:"list-card"},{header:A.withCtx(()=>[A.createElementVNode("div",_M,[A.createElementVNode("span",null,A.toDisplayString(N.title+(v+1)),1),N.allowReduce&&!b.value?(A.openBlock(),A.createBlock(G,{key:0,onClick:B=>w(v),circle:"",type:"primary",class:"list-btn reduceBtn",disabled:N.disabled,size:"small"},{icon:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:"reduce",color:"#fff"})]),_:2},1032,["onClick","disabled"])):A.createCommentVNode("",!0)])]),default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(I(v),B=>(A.openBlock(),A.createBlock(A.unref(oo),A.mergeProps({ref_for:!0},B,{key:B.label,class:"list-card-item",name:`${N.name}.${v}.${B.name}`}),null,16,["name"]))),128))]),_:2},1024))),128)):A.createCommentVNode("",!0),N.mode==="table"&&t.value.length?(A.openBlock(),A.createBlock(L,{key:2,data:t.value,style:{width:"100%"}},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(N.children,_=>(A.openBlock(),A.createBlock(E,A.mergeProps({prop:_.name,label:_.label,key:_.name,ref_for:!0},A.unref(ut.pickBy)(_,Boolean),{formatter:M}),null,16,["prop","label"]))),128)),A.createVNode(E,{fixed:"right","min-width":"60"},{default:A.withCtx(_=>[N.allowReduce&&!b.value?(A.openBlock(),A.createBlock(G,{key:0,onClick:v=>w(_.$index),circle:"",type:"primary",class:"list-btn reduceBtn",disabled:N.disabled,size:"small",plain:""},{icon:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:"reduce"})]),_:2},1032,["onClick","disabled"])):A.createCommentVNode("",!0)]),_:1})]),_:1},8,["data"])):A.createCommentVNode("",!0),A.createElementVNode("div",MM,[N.allowAdd&&!o.value?(A.openBlock(),A.createBlock(G,{key:0,onClick:y,type:"primary",class:"list-btn addBtn",disabled:N.disabled,size:"small",plain:""},{icon:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:"add"})]),default:A.withCtx(()=>[A.createTextVNode(" "+A.toDisplayString(N.title),1)]),_:1},8,["disabled"])):A.createCommentVNode("",!0)])]))])}}})},Symbol.toStringTag,{value:"Module"})),SM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Grid",props:{children:{},columns:{},rowGap:{},columnGap:{},alignItems:{},paddingTop:{},paddingBottom:{},paddingLeft:{},paddingRight:{}},setup(n){const e=n,t=A.computed(()=>({display:"grid","grid-template-columns":`repeat(${e.columns}, minmax(0, 1fr))`,"row-gap":(e.rowGap||12)+"px","column-gap":(e.columnGap||12)+"px","align-items":e.alignItems,"padding-top":e.paddingTop+"px","padding-bottom":e.paddingBottom+"px","padding-left":e.paddingLeft+"px","padding-right":e.paddingRight+"px"}));return(i,u)=>(A.openBlock(),A.createElementBlock("div",{class:"form-item-grid",style:A.normalizeStyle(t.value)},[A.createVNode(A.unref(mt),{list:i.children},null,8,["list"])],4))}})},Symbol.toStringTag,{value:"Module"})),NM=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Inline",props:{children:{},align:{},autoWrap:{type:Boolean},gap:{},alignItems:{},style:{type:[Boolean,null,String,Object,Array]}},setup(n){const e=n,t=A.computed(()=>({width:"100%",display:"flex","justify-content":e.align,"align-items":e.alignItems,"flex-wrap":e.autoWrap?"wrap":"nowrap","overflow-x":"auto",gap:`${isNaN(e.gap)?12:e.gap}px`,...e.style||{}}));return(i,u)=>(A.openBlock(),A.createElementBlock("div",{class:"form-item-inline",style:A.normalizeStyle(t.value)},[A.createVNode(A.unref(mt),{list:i.children},null,8,["list"])],4))}}),[["__scopeId","data-v-8ba696e7"]])},Symbol.toStringTag,{value:"Module"})),FM={key:0},RM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Component",props:A.mergeModels({min:{},read:{type:Boolean},precision:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=A.useModel(n,"modelValue"),t=It(),i=A.computed(()=>t.schema.read),u=I=>{["E","e","+","-"].includes(I.key)&&I.preventDefault()};return(I,o)=>{const b=A.resolveComponent("el-input-number");return I.read||i.value?(A.openBlock(),A.createElementBlock("span",FM,A.toDisplayString(typeof e.value=="number"?e.value.toFixed(I.precision||0).replace(".",","):"--"),1)):(A.openBlock(),A.createBlock(b,A.mergeProps({key:1},I.$attrs,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=y=>e.value=y),style:{width:"100%"},min:I.min||0,onKeydown:u}),null,16,["modelValue","min"]))}}})},Symbol.toStringTag,{value:"Module"})),LM={style:{"min-height":"32px"}},GM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Select",props:A.mergeModels({options:{default:()=>[]},defaultOptions:{},multiple:{type:Boolean,default:!1},mode:{default:"static"},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},env:{},apiParams:{},dependentFields:{},name:{default:""},onChange:{},read:{type:Boolean},readTextColor:{},filters:{},refreshFlag:{type:Boolean},clearable:{type:Boolean,default:!0},width:{}},{modelValue:{type:[String,Number,Boolean,Array]},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,t=A.computed(()=>e.clearable===null||e.clearable===void 0?!0:!!e.clearable),i=A.useModel(n,"modelValue"),u=It(),I=A.computed(()=>e.read||u.schema.read),o=A.inject("ruleModule",void 0),b=A.inject("pageMethodMap",{}),y=P=>{const{valueKey:Y="value",multiple:G,name:K}=e;let D={};if(G&&Array.isArray(P)?D=w.value.filter(E=>P.includes(E[Y])):D=w.value.find(E=>E[Y]===P)||{},u.selectData&&K&&u.updateSelectData(K,D),e.onChange&&o)try{o[e.onChange](b,P,D)}catch(E){console.error(E+`
1644
- onChange: ${e.onChange}`)}},{currentOptions:w,loading:M}=Cr(e),N=A.computed(()=>{var Y;if(e.multiple)return w.value.filter(K=>i.value.includes(K[e.valueKey])).map(K=>K[e.labelKey]).join(",");const P=(Y=w.value.find(G=>G[e.valueKey]===i.value))==null?void 0:Y[e.labelKey];return!P||`${P}`.trim().length===0?"--":P});return(P,Y)=>{const G=A.resolveComponent("el-option"),K=A.resolveComponent("el-select");return I.value?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:P.readTextColor})},A.toDisplayString(N.value),5)):(A.openBlock(),A.createBlock(K,A.mergeProps({key:1,modelValue:i.value,"onUpdate:modelValue":Y[0]||(Y[0]=D=>i.value=D)},P.$attrs,{onChange:y,multiple:P.multiple,clearable:t.value,filterable:"","fallback-placements":["bottom"],loading:A.unref(M),placeholder:"",style:{width:P.width}}),{loading:A.withCtx(()=>Y[1]||(Y[1]=[A.createElementVNode("svg",{class:"circular",viewBox:"0 0 20 20"},[A.createElementVNode("g",{class:"path2 loading-path","stroke-width":"0",style:{animation:"none",stroke:"none"}},[A.createElementVNode("circle",{r:"3.375",class:"dot1",rx:"0",ry:"0"}),A.createElementVNode("circle",{r:"3.375",class:"dot2",rx:"0",ry:"0"}),A.createElementVNode("circle",{r:"3.375",class:"dot4",rx:"0",ry:"0"}),A.createElementVNode("circle",{r:"3.375",class:"dot3",rx:"0",ry:"0"})])],-1)])),default:A.withCtx(()=>[A.createElementVNode("div",LM,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(A.unref(w),D=>(A.openBlock(),A.createBlock(G,{key:D[P.valueKey],label:D[P.labelKey],value:D[P.valueKey],disabled:D[P.disabledKey]},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(D[P.labelKey]),1)]),_:2},1032,["label","value","disabled"]))),128))])]),_:1},16,["modelValue","multiple","clearable","loading","style"]))}}})},Symbol.toStringTag,{value:"Module"})),PM={key:0},HM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Component",props:A.mergeModels({selectPosition:{default:"append"},selectWidth:{default:70},selectInitialValue:{},read:{type:Boolean},options:{default:()=>[]},parse:{}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,t=A.useModel(n,"modelValue"),i=A.ref(""),u=A.computed({get(){var I;return(I=t.value)==null?void 0:I.replaceAll(i.value,"")},set(I){I?t.value=I+i.value:t.value=I}});return A.watch(i,(I,o)=>{var b;t.value&&(t.value=((b=t.value)==null?void 0:b.replaceAll(o,""))+I)}),A.onMounted(()=>{e.selectInitialValue&&(i.value=e.selectInitialValue)}),(I,o)=>{const b=A.resolveComponent("el-option"),y=A.resolveComponent("el-select"),w=A.resolveComponent("el-input");return I.read?(A.openBlock(),A.createElementBlock("span",PM,A.toDisplayString(u.value||"--"),1)):(A.openBlock(),A.createBlock(w,A.mergeProps({key:1,"show-word-limit":"",autocomplete:"off"},I.$attrs,{modelValue:u.value,"onUpdate:modelValue":o[1]||(o[1]=M=>u.value=M)}),{[I.selectPosition]:A.withCtx(()=>[A.createVNode(y,{modelValue:i.value,"onUpdate:modelValue":o[0]||(o[0]=M=>i.value=M),style:A.normalizeStyle({width:I.selectWidth+"px"}),placeholder:" "},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(I.options,M=>(A.openBlock(),A.createBlock(b,{label:M.label,value:M.value,disabled:M.disabled,key:M.value},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue","style"])]),_:2},1040,["modelValue"]))}}})},Symbol.toStringTag,{value:"Module"})),KM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Component",props:A.mergeModels({disabled:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=It(),t=A.useModel(n,"modelValue");return(i,u)=>{const I=A.resolveComponent("el-switch");return A.openBlock(),A.createBlock(I,A.mergeProps(i.$attrs,{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=o=>t.value=o),disabled:A.unref(e).read||i.disabled}),null,16,["modelValue","disabled"])}}})},Symbol.toStringTag,{value:"Module"})),TM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Tag",props:{text:{default:"标签"},type:{default:"primary"}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-tag");return A.openBlock(),A.createBlock(i,A.mergeProps({type:e.type},e.$attrs),{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(e.text),1)]),_:1},16,["type"])}}})},Symbol.toStringTag,{value:"Module"})),UM=["innerHTML"],YM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Component",props:{text:{}},setup(n){return(e,t)=>(A.openBlock(),A.createElementBlock("div",A.mergeProps(e.$attrs,{innerHTML:e.text}),null,16,UM))}})},Symbol.toStringTag,{value:"Module"})),DC=A.defineComponent({__name:"Title",props:{title:{default:"标题"},type:{default:"h3"},italic:{type:Boolean,default:!1}},setup(n){return(e,t)=>(A.openBlock(),A.createBlock(A.resolveDynamicComponent(e.type),{class:"Title",style:A.normalizeStyle({fontStyle:e.italic?"italic":"normal"})},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(e.title),1)]),_:1},8,["style"]))}}),OM=Object.freeze(Object.defineProperty({__proto__:null,default:DC},Symbol.toStringTag,{value:"Module"})),$M={class:"el-upload__tip"},zM={key:0,class:"upload-bottom-part"},JM={class:"file-list-wrapper"},ZM={class:"file-item-name"},WM=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Component",props:A.mergeModels({action:{},multiple:{type:Boolean},btnText:{default:"点击上传"},tip:{},limit:{},drag:{type:Boolean},name:{default:"file"},listType:{default:"text"},attachmentTitle:{},showFileList:{type:Boolean,default:!0},autoUpload:{type:Boolean},beforeUpload:{},isOnlyOne:{type:Boolean,default:!1},onChange:{}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,t=A.useModel(n,"modelValue"),{ruleModule:i,pageMethodMap:u}=ei(),I=Y=>{if(e.beforeUpload)try{return i[e.beforeUpload](u,Y)}catch(G){console.error(G)}return!0},o=(Y,G)=>{if(e.onChange)try{i[e.onChange](u,Y,G)}catch(K){console.error(K)}},b=Y=>{const G=t.value.findIndex(K=>K.uid===Y.uid);G!==-1&&t.value.splice(G,1)},y=(Y,G)=>{console.log(Y,G)},w=Y=>{console.log(Y)},M=A.ref(),N=(Y,G)=>{if(e.isOnlyOne&&e.limit===1){M.value.clearFiles();const K=Y[0];K.uid=Ht.genFileId(),M.value.handleStart(K)}else Ht.ElMessage.warning(`The limit is ${e.limit}, you selected ${Y.length} files this time, add up to ${Y.length+G.length} totally`)},P=(Y,G)=>e.beforeUpload?!1:Ht.ElMessageBox.confirm(`Cancel the transfer of ${Y.name} ?`).then(()=>!0,()=>!1);return(Y,G)=>{const K=A.resolveComponent("el-button"),D=A.resolveComponent("el-upload");return A.openBlock(),A.createElementBlock(A.Fragment,null,[A.createVNode(D,{"file-list":t.value,"onUpdate:fileList":G[0]||(G[0]=E=>t.value=E),action:Y.action,multiple:Y.multiple,limit:Y.limit,drag:Y.drag,name:Y.name,listType:Y.listType,"show-file-list":Y.showFileList,"on-preview":w,"on-remove":y,"before-remove":P,"before-upload":I,"on-change":o,"on-exceed":N,class:A.normalizeClass({dragUpload:Y.drag}),ref_key:"upload",ref:M},A.createSlots({default:A.withCtx(()=>[Y.listType==="text"?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[Y.drag?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[A.createVNode(xe,{name:"icon-shangchuan",color:"var(--el-color-primary)"}),G[1]||(G[1]=A.createElementVNode("div",null,[A.createTextVNode("Drop file here or "),A.createElementVNode("em",null,"click to upload")],-1))],64)):(A.openBlock(),A.createBlock(K,{key:1,type:"primary"},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(Y.btnText),1)]),_:1}))],64)):A.createCommentVNode("",!0),Y.listType==="picture-card"?(A.openBlock(),A.createBlock(A.unref(Ie),{key:1,name:"add"})):A.createCommentVNode("",!0)]),_:2},[Y.tip?{name:"tip",fn:A.withCtx(()=>[A.createElementVNode("div",$M,A.toDisplayString(Y.tip),1)]),key:"0"}:void 0]),1032,["file-list","action","multiple","limit","drag","name","listType","show-file-list","class"]),Y.drag&&t.value.length>0?(A.openBlock(),A.createElementBlock("div",zM,[A.createElementVNode("div",null,A.toDisplayString(Y.attachmentTitle),1),A.createElementVNode("div",JM,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(t.value,E=>(A.openBlock(),A.createElementBlock("div",{class:"file-item",key:E.uid},[A.createVNode(xe,{name:"icon-fujiantubiao1",size:"ultra-large"}),A.createElementVNode("div",ZM,A.toDisplayString(E.name),1),A.createVNode(xe,{name:"icon-guanbi",class:"file-item-close",size:"x-small",onClick:L=>b(E)},null,8,["onClick"])]))),128))])])):A.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-faced280"]])},Symbol.toStringTag,{value:"Module"}));function jM(){return"a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",")}function qt(n,e){return Math.floor(Math.random()*(e-n)+n)}function ws(n,e){const t=qt(n,e),i=qt(n,e),u=qt(n,e);return`rgb(${t},${i},${u})`}class qM{constructor(e,t){Ct(this,"version","1.0.0");Ct(this,"options");Ct(this,"_init",()=>{const e=this.options.element;if(!e)return;const t=document.createElement("canvas");this.options.width=e.offsetWidth>0?e.offsetWidth.toString():"100",this.options.height=e.offsetHeight>0?e.offsetHeight.toString():"30",t.id=this.options.canvasId,t.width=parseInt(this.options.width),t.height=parseInt(this.options.height),t.style.cursor="pointer",t.innerHTML="您的浏览器版本不支持canvas",e.appendChild(t),t.onclick=()=>{this.refresh()}});Ct(this,"refresh",()=>{this.options.code="";const e=document.getElementById(this.options.canvasId);if(!e||!e.getContext)return;const t=e.getContext("2d");t.textBaseline="middle",t.fillStyle=ws(180,240),t.fillRect(0,0,parseInt(this.options.width),parseInt(this.options.height));let i;this.options.type==="blend"?i=[...this.options.numArr,...this.options.letterArr]:this.options.type==="number"?i=this.options.numArr:i=this.options.letterArr;for(let u=1;u<=4;u++){const I=i[qt(0,i.length)];this.options.code+=I,t.font=`${qt(parseInt(this.options.height)/2,parseInt(this.options.height))}px SimHei`,t.fillStyle=ws(50,160),t.shadowOffsetX=qt(-3,3),t.shadowOffsetY=qt(-3,3),t.shadowBlur=qt(-3,3),t.shadowColor="rgba(0, 0, 0, 0.3)";const o=parseInt(this.options.width)/5*u,b=parseInt(this.options.height)/2,y=qt(-30,30);t.translate(o,b),t.rotate(y*Math.PI/180),t.fillText(I,0,0),t.rotate(-y*Math.PI/180),t.translate(-o,-b)}for(let u=0;u<4;u++)t.strokeStyle=ws(40,180),t.beginPath(),t.moveTo(qt(0,parseInt(this.options.width)),qt(0,parseInt(this.options.height))),t.lineTo(qt(0,parseInt(this.options.width)),qt(0,parseInt(this.options.height))),t.stroke();for(let u=0;u<parseInt(this.options.width)/4;u++)t.fillStyle=ws(0,255),t.beginPath(),t.arc(qt(0,parseInt(this.options.width)),qt(0,parseInt(this.options.height)),1,0,2*Math.PI),t.fill()});Ct(this,"validate",e=>{const t=e.toLowerCase(),i=this.options.code.toLowerCase();return console.log(i),t===i?!0:(this.refresh(),!1)});this.options={element:null,canvasId:"verifyCanvas",width:"100",height:"30",type:"blend",code:"",numArr:"0,1,2,3,4,5,6,7,8,9".split(","),letterArr:jM(),...t},e&&(this.options.element=e,this._init(),this.refresh())}}const XM={class:"vfc-verify-code"},VM=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Component",props:A.mergeModels({placeholder:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=A.useModel(n,"modelValue"),t=A.ref(null),i=A.ref(null),u=It(),I=()=>{var b;if(!e.value)return;const o=(b=i.value)==null?void 0:b.validate(e.value);console.log("res",o),o?u.updateVCodePass(!0):u.updateVCodePass(!1)};return A.onMounted(()=>{i.value=new qM(t.value)}),(o,b)=>{const y=A.resolveComponent("el-input");return A.openBlock(),A.createElementBlock("div",XM,[A.createVNode(y,{modelValue:e.value,"onUpdate:modelValue":b[0]||(b[0]=w=>e.value=w),class:"verify-input",placeholder:o.placeholder,onBlur:I},null,8,["modelValue","placeholder"]),A.createElementVNode("div",{class:"verify-code",ref_key:"codeEl",ref:t},null,512)])}}}),[["__scopeId","data-v-eda48825"]])},Symbol.toStringTag,{value:"Module"})),Ax=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Collapse",props:{children:{}},setup(n){const e=n,t=A.ref([]);return A.onMounted(()=>{t.value=e.children.filter(i=>i.checked).map(i=>i.name)}),A.watch(()=>e.children,()=>{e.children.forEach(i=>{i.children||(i.children=[])})}),(i,u)=>{const I=A.resolveComponent("ElCollapseItem"),o=A.resolveComponent("ElCollapse");return A.openBlock(),A.createBlock(o,A.mergeProps(i.$attrs,{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=b=>t.value=b)}),{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(i.children,b=>(A.openBlock(),A.createBlock(I,{key:b.name,name:b.name},{title:A.withCtx(()=>[A.createVNode(DC,{title:b.title,italic:"",type:"h4"},null,8,["title"])]),default:A.withCtx(()=>[A.createVNode(A.unref(mt),{list:b.children},null,8,["list"])]),_:2},1032,["name"]))),128))]),_:1},16,["modelValue"])}}})},Symbol.toStringTag,{value:"Module"})),ex={class:"tab-label"},tx={class:"tab-label-text"},nx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Tabs",props:{children:{},defaultKey:{},tabChange:{}},setup(n){const e=n,t=A.ref(""),i=A.computed(()=>{const b=e.children.findIndex(y=>y.name===t.value);return b-1>=0?b-1:null}),{ruleModule:u,pageMethodMap:I}=ei();function o(b){if(e.tabChange)try{u[e.tabChange](I,b)}catch(y){console.error(y)}}return A.watch(()=>e.children,()=>{e.children.forEach(b=>{b.children||(b.children=[])})}),A.onMounted(()=>{e.defaultKey&&(t.value=e.defaultKey)}),(b,y)=>{const w=A.resolveComponent("el-tab-pane"),M=A.resolveComponent("el-tabs");return A.openBlock(),A.createBlock(M,A.mergeProps(b.$attrs,{modelValue:t.value,"onUpdate:modelValue":y[0]||(y[0]=N=>t.value=N),class:"form-item-tabs",onTabChange:o}),{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.children,(N,P)=>(A.openBlock(),A.createBlock(w,A.mergeProps({key:N.name,ref_for:!0},N),{label:A.withCtx(()=>[A.createElementVNode("div",ex,[A.createElementVNode("span",tx,A.toDisplayString(N.label),1),P!==b.children.length-1?(A.openBlock(),A.createElementBlock("span",{key:0,class:A.normalizeClass(["divider",{"divider-hidden":t.value===N.name||i.value===P}])},null,2)):A.createCommentVNode("",!0)])]),default:A.withCtx(()=>[A.createVNode(A.unref(mt),{list:N.children},null,8,["list"])]),_:2},1040))),128))]),_:1},16,["modelValue"])}}}),[["__scopeId","data-v-71169a4c"]])},Symbol.toStringTag,{value:"Module"})),ix={class:"vfc-ObjGroup"},ox={key:1,class:"vfc-ObjGroup-render"},rx=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"ObjGroup",props:{children:{},name:{}},setup(n){const e=n,t=It(),i=A.inject("$objGroupBase"),u=i?`${i.value}.${e.name}`:e.name;return A.provide("$objGroupBase",A.ref(u)),(I,o)=>(A.openBlock(),A.createElementBlock("div",ix,[A.unref(t).design?(A.openBlock(),A.createBlock(A.unref(qc),{key:0,list:I.children},null,8,["list"])):(A.openBlock(),A.createElementBlock("div",ox,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(I.children,b=>(A.openBlock(),A.createBlock(A.unref(oo),A.mergeProps({key:b.name,ref_for:!0},b,{name:`${A.unref(u)}.${b.name}`}),null,16,["name"]))),128))]))]))}})},Symbol.toStringTag,{value:"Module"})),ax={key:0},sx={key:0},lx={key:1},cx={key:1,class:"search-select-wrapper"},gx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"SearchSelect",props:A.mergeModels({onSearch:{},disabled:{type:Boolean},read:{type:Boolean},options:{default:()=>[]},defaultOptions:{},multiple:{type:Boolean,default:!1},mode:{default:"static"},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},env:{},apiParams:{},dependentFields:{},name:{default:""},onChange:{},readTextColor:{},filters:{},refreshFlag:{type:Boolean},clearable:{type:Boolean},width:{}},{modelValue:{type:[String,Number,Boolean,Array]},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,t=A.useModel(n,"modelValue"),i=It(),u=A.inject("ruleModule",void 0),I=A.inject("pageMethodMap",{}),o=M=>{const{valueKey:N="value",multiple:P,name:Y}=e;let G={};if(P&&Array.isArray(M)?G=y.value.filter(K=>M.includes(K[N])):G=y.value.find(K=>K[N]===M)||{},i.selectData&&Y&&i.updateSelectData(Y,G),e.onChange&&u)try{u[e.onChange](I,M,G)}catch(K){console.error(K+`
1643
+ onChange: ${e.onChange}`)}},{currentOptions:b,loading:y}=Cr(e);return(w,M)=>{var D;const N=A.resolveComponent("el-radio"),P=A.resolveComponent("el-radio-button"),Y=A.resolveComponent("el-space"),G=A.resolveComponent("el-radio-group"),K=A.resolveDirective("loading");return w.read?(A.openBlock(),A.createElementBlock("div",bM,A.toDisplayString(((D=A.unref(b).find(E=>E[w.valueKey]===t.value))==null?void 0:D[w.labelKey])||"--"),1)):A.withDirectives((A.openBlock(),A.createBlock(G,A.mergeProps({key:1,modelValue:t.value,"onUpdate:modelValue":M[0]||(M[0]=E=>t.value=E),onChange:o},w.$attrs),{default:A.withCtx(()=>[A.createVNode(Y,{wrap:"",direction:w.direction,size:[w.space,w.space],alignment:"normal"},{default:A.withCtx(()=>[w.optionType==="circle"||w.optionType==="border"?(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:0},A.renderList(A.unref(b),E=>(A.openBlock(),A.createBlock(N,{key:E[w.valueKey],label:E[w.labelKey],value:E[w.valueKey],disabled:E[w.disabledKey],border:w.optionType==="border"},null,8,["label","value","disabled","border"]))),128)):(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:1},A.renderList(A.unref(b),E=>(A.openBlock(),A.createBlock(P,A.mergeProps({key:E[w.valueKey],label:E[w.labelKey],value:E[w.valueKey],class:"radio-button",disabled:E[w.disabledKey],ref_for:!0},w.$attrs),null,16,["label","value","disabled"]))),128))]),_:1},8,["direction","size"])]),_:1},16,["modelValue"])),[[K,A.unref(y)]])}}}),[["__scopeId","data-v-1e24870a"]])},Symbol.toStringTag,{value:"Module"})),DM={class:"vfc-formList"},vM={key:1},kM={class:"list-item-content"},_M={class:"card-header"},MM={style:{"margin-top":"5px"}},xM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"FormList",props:A.mergeModels({children:{default:()=>[]},allowAdd:{type:Boolean,default:!0},allowReduce:{type:Boolean,default:!0},minLines:{default:0},maxLines:{default:999},mode:{default:"table"},title:{default:""},name:{default:""},disabled:{type:Boolean}},{modelValue:{default:[]},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,t=A.useModel(n,"modelValue"),i=A.ref(0),u=It(),I=N=>Rt(e.children,{$item:t.value[N],$index:N}),o=A.computed(()=>t.value.length>=e.maxLines),b=A.computed(()=>t.value.length<=e.minLines),y=()=>{o.value||(t.value=[...t.value,{}])},w=N=>{const P=t.value.filter((Y,G)=>G!==N);t.value=P},M=(N,P,Y,G)=>{const K=P.no,D=I(G)[K];return A.h(oo,{...D,hideLabel:!0,style:{marginBottom:0},name:`${e.name}.${G}.${D.name}`})};return A.watch(t,(N,P)=>{const Y=N.reduce((E,L,_)=>(ut.isEqual(L,P[_])||(E=_),E),0);if(i.value=Y,!e.children.some(E=>E.change))return;const G=I(Y),K=N[Y]||{},D=P[Y]||{};G.forEach(E=>{E.change&&D&&!ut.isEqual(K[E.name],D[E.name])&&E.change.forEach(L=>{if(L.condition!==!1){if(ut.isString(L.condition)&&/^{{\s*(.*?)\s*}}$/.test(L.condition))return;const _=L.target.split(".").pop();t.value[Y][_]=L.value}})})}),A.onMounted(()=>{var N;e.minLines&&!((N=t.value)!=null&&N.length)&&(t.value=Array.from({length:e.minLines},()=>({})))}),A.provide("$objGroupBase",A.computed(()=>`${e.name}.${i.value}`)),(N,P)=>{const Y=A.resolveComponent("el-space"),G=A.resolveComponent("el-button"),K=A.resolveComponent("el-form-item"),D=A.resolveComponent("el-card"),E=A.resolveComponent("el-table-column"),L=A.resolveComponent("el-table");return A.openBlock(),A.createElementBlock("div",DM,[A.unref(u).design?(A.openBlock(),A.createBlock(A.unref(qc),{key:0,list:N.children,class:"layoutRender"},null,8,["list"])):(A.openBlock(),A.createElementBlock("div",vM,[N.mode==="inline"?(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:0},A.renderList(t.value,(_,v)=>(A.openBlock(),A.createBlock(K,{key:_.key,class:"list-item"},{default:A.withCtx(()=>[A.createElementVNode("div",kM,[A.createVNode(Y,null,{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(I(v),B=>(A.openBlock(),A.createBlock(A.unref(oo),A.mergeProps({ref_for:!0},B,{key:B.label,name:`${N.name}.${v}.${B.name}`,hideLabel:""}),null,16,["name"]))),128))]),_:2},1024),N.allowReduce&&!b.value?(A.openBlock(),A.createBlock(G,{key:0,onClick:B=>w(v),circle:"",type:"primary",class:"list-btn reduceBtn",disabled:N.disabled,size:"small"},{icon:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:"reduce",color:"#fff"})]),_:2},1032,["onClick","disabled"])):A.createCommentVNode("",!0)])]),_:2},1024))),128)):A.createCommentVNode("",!0),N.mode==="card"?(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:1},A.renderList(t.value,(_,v)=>(A.openBlock(),A.createBlock(D,{key:_.key,class:"list-card"},{header:A.withCtx(()=>[A.createElementVNode("div",_M,[A.createElementVNode("span",null,A.toDisplayString(N.title+(v+1)),1),N.allowReduce&&!b.value?(A.openBlock(),A.createBlock(G,{key:0,onClick:B=>w(v),circle:"",type:"primary",class:"list-btn reduceBtn",disabled:N.disabled,size:"small"},{icon:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:"reduce",color:"#fff"})]),_:2},1032,["onClick","disabled"])):A.createCommentVNode("",!0)])]),default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(I(v),B=>(A.openBlock(),A.createBlock(A.unref(oo),A.mergeProps({ref_for:!0},B,{key:B.label,class:"list-card-item",name:`${N.name}.${v}.${B.name}`}),null,16,["name"]))),128))]),_:2},1024))),128)):A.createCommentVNode("",!0),N.mode==="table"&&t.value.length?(A.openBlock(),A.createBlock(L,{key:2,data:t.value,style:{width:"100%"}},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(N.children,_=>(A.openBlock(),A.createBlock(E,A.mergeProps({prop:_.name,label:_.label,key:_.name,ref_for:!0},A.unref(ut.pickBy)(_,Boolean),{formatter:M}),null,16,["prop","label"]))),128)),A.createVNode(E,{fixed:"right","min-width":"60"},{default:A.withCtx(_=>[N.allowReduce&&!b.value?(A.openBlock(),A.createBlock(G,{key:0,onClick:v=>w(_.$index),circle:"",type:"primary",class:"list-btn reduceBtn",disabled:N.disabled,size:"small",plain:""},{icon:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:"reduce"})]),_:2},1032,["onClick","disabled"])):A.createCommentVNode("",!0)]),_:1})]),_:1},8,["data"])):A.createCommentVNode("",!0),A.createElementVNode("div",MM,[N.allowAdd&&!o.value?(A.openBlock(),A.createBlock(G,{key:0,onClick:y,type:"primary",class:"list-btn addBtn",disabled:N.disabled,size:"small",plain:""},{icon:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:"add"})]),default:A.withCtx(()=>[A.createTextVNode(" "+A.toDisplayString(N.title),1)]),_:1},8,["disabled"])):A.createCommentVNode("",!0)])]))])}}})},Symbol.toStringTag,{value:"Module"})),SM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Grid",props:{children:{},columns:{},rowGap:{},columnGap:{},alignItems:{},paddingTop:{},paddingBottom:{},paddingLeft:{},paddingRight:{}},setup(n){const e=n,t=A.computed(()=>({display:"grid","grid-template-columns":`repeat(${e.columns}, minmax(0, 1fr))`,"row-gap":(e.rowGap||12)+"px","column-gap":(e.columnGap||12)+"px","align-items":e.alignItems,"padding-top":e.paddingTop+"px","padding-bottom":e.paddingBottom+"px","padding-left":e.paddingLeft+"px","padding-right":e.paddingRight+"px"}));return(i,u)=>(A.openBlock(),A.createElementBlock("div",{class:"form-item-grid",style:A.normalizeStyle(t.value)},[A.createVNode(A.unref(pt),{list:i.children},null,8,["list"])],4))}})},Symbol.toStringTag,{value:"Module"})),NM=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Inline",props:{children:{},align:{},autoWrap:{type:Boolean},gap:{},alignItems:{},style:{type:[Boolean,null,String,Object,Array]}},setup(n){const e=n,t=A.computed(()=>({width:"100%",display:"flex","justify-content":e.align,"align-items":e.alignItems,"flex-wrap":e.autoWrap?"wrap":"nowrap","overflow-x":"auto",gap:`${isNaN(e.gap)?12:e.gap}px`,...e.style||{}}));return(i,u)=>(A.openBlock(),A.createElementBlock("div",{class:"form-item-inline",style:A.normalizeStyle(t.value)},[A.createVNode(A.unref(pt),{list:i.children},null,8,["list"])],4))}}),[["__scopeId","data-v-8ba696e7"]])},Symbol.toStringTag,{value:"Module"})),FM={key:0},RM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Component",props:A.mergeModels({min:{},read:{type:Boolean},precision:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=A.useModel(n,"modelValue"),t=It(),i=A.computed(()=>t.schema.read),u=I=>{["E","e","+","-"].includes(I.key)&&I.preventDefault()};return(I,o)=>{const b=A.resolveComponent("el-input-number");return I.read||i.value?(A.openBlock(),A.createElementBlock("span",FM,A.toDisplayString(typeof e.value=="number"?e.value.toFixed(I.precision||0).replace(".",","):"--"),1)):(A.openBlock(),A.createBlock(b,A.mergeProps({key:1},I.$attrs,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=y=>e.value=y),style:{width:"100%"},min:I.min||0,onKeydown:u}),null,16,["modelValue","min"]))}}})},Symbol.toStringTag,{value:"Module"})),LM={style:{"min-height":"32px"}},GM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Select",props:A.mergeModels({options:{default:()=>[]},defaultOptions:{},multiple:{type:Boolean,default:!1},mode:{default:"static"},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},env:{},apiParams:{},dependentFields:{},name:{default:""},onChange:{},read:{type:Boolean},readTextColor:{},filters:{},refreshFlag:{type:Boolean},clearable:{type:Boolean,default:!0},width:{}},{modelValue:{type:[String,Number,Boolean,Array]},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,t=A.computed(()=>e.clearable===null||e.clearable===void 0?!0:!!e.clearable),i=A.useModel(n,"modelValue"),u=It(),I=A.computed(()=>e.read||u.schema.read),o=A.inject("ruleModule",void 0),b=A.inject("pageMethodMap",{}),y=P=>{const{valueKey:Y="value",multiple:G,name:K}=e;let D={};if(G&&Array.isArray(P)?D=w.value.filter(E=>P.includes(E[Y])):D=w.value.find(E=>E[Y]===P)||{},u.selectData&&K&&u.updateSelectData(K,D),e.onChange&&o)try{o[e.onChange](b,P,D)}catch(E){console.error(E+`
1644
+ onChange: ${e.onChange}`)}},{currentOptions:w,loading:M}=Cr(e),N=A.computed(()=>{var Y;if(e.multiple)return w.value.filter(K=>i.value.includes(K[e.valueKey])).map(K=>K[e.labelKey]).join(",");const P=(Y=w.value.find(G=>G[e.valueKey]===i.value))==null?void 0:Y[e.labelKey];return!P||`${P}`.trim().length===0?"--":P});return(P,Y)=>{const G=A.resolveComponent("el-option"),K=A.resolveComponent("el-select");return I.value?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:P.readTextColor})},A.toDisplayString(N.value),5)):(A.openBlock(),A.createBlock(K,A.mergeProps({key:1,modelValue:i.value,"onUpdate:modelValue":Y[0]||(Y[0]=D=>i.value=D)},P.$attrs,{onChange:y,multiple:P.multiple,clearable:t.value,filterable:"","fallback-placements":["bottom"],loading:A.unref(M),placeholder:"",style:{width:P.width}}),{loading:A.withCtx(()=>Y[1]||(Y[1]=[A.createElementVNode("svg",{class:"circular",viewBox:"0 0 20 20"},[A.createElementVNode("g",{class:"path2 loading-path","stroke-width":"0",style:{animation:"none",stroke:"none"}},[A.createElementVNode("circle",{r:"3.375",class:"dot1",rx:"0",ry:"0"}),A.createElementVNode("circle",{r:"3.375",class:"dot2",rx:"0",ry:"0"}),A.createElementVNode("circle",{r:"3.375",class:"dot4",rx:"0",ry:"0"}),A.createElementVNode("circle",{r:"3.375",class:"dot3",rx:"0",ry:"0"})])],-1)])),default:A.withCtx(()=>[A.createElementVNode("div",LM,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(A.unref(w),D=>(A.openBlock(),A.createBlock(G,{key:D[P.valueKey],label:D[P.labelKey],value:D[P.valueKey],disabled:D[P.disabledKey]},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(D[P.labelKey]),1)]),_:2},1032,["label","value","disabled"]))),128))])]),_:1},16,["modelValue","multiple","clearable","loading","style"]))}}})},Symbol.toStringTag,{value:"Module"})),PM={key:0},HM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Component",props:A.mergeModels({selectPosition:{default:"append"},selectWidth:{default:70},selectInitialValue:{},read:{type:Boolean},options:{default:()=>[]},parse:{}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,t=A.useModel(n,"modelValue"),i=A.ref(""),u=A.computed({get(){var I;return(I=t.value)==null?void 0:I.replaceAll(i.value,"")},set(I){I?t.value=I+i.value:t.value=I}});return A.watch(i,(I,o)=>{var b;t.value&&(t.value=((b=t.value)==null?void 0:b.replaceAll(o,""))+I)}),A.onMounted(()=>{e.selectInitialValue&&(i.value=e.selectInitialValue)}),(I,o)=>{const b=A.resolveComponent("el-option"),y=A.resolveComponent("el-select"),w=A.resolveComponent("el-input");return I.read?(A.openBlock(),A.createElementBlock("span",PM,A.toDisplayString(u.value||"--"),1)):(A.openBlock(),A.createBlock(w,A.mergeProps({key:1,"show-word-limit":"",autocomplete:"off"},I.$attrs,{modelValue:u.value,"onUpdate:modelValue":o[1]||(o[1]=M=>u.value=M)}),{[I.selectPosition]:A.withCtx(()=>[A.createVNode(y,{modelValue:i.value,"onUpdate:modelValue":o[0]||(o[0]=M=>i.value=M),style:A.normalizeStyle({width:I.selectWidth+"px"}),placeholder:" "},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(I.options,M=>(A.openBlock(),A.createBlock(b,{label:M.label,value:M.value,disabled:M.disabled,key:M.value},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue","style"])]),_:2},1040,["modelValue"]))}}})},Symbol.toStringTag,{value:"Module"})),KM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Component",props:A.mergeModels({disabled:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=It(),t=A.useModel(n,"modelValue");return(i,u)=>{const I=A.resolveComponent("el-switch");return A.openBlock(),A.createBlock(I,A.mergeProps(i.$attrs,{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=o=>t.value=o),disabled:A.unref(e).read||i.disabled}),null,16,["modelValue","disabled"])}}})},Symbol.toStringTag,{value:"Module"})),TM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Tag",props:{text:{default:"标签"},type:{default:"primary"}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-tag");return A.openBlock(),A.createBlock(i,A.mergeProps({type:e.type},e.$attrs),{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(e.text),1)]),_:1},16,["type"])}}})},Symbol.toStringTag,{value:"Module"})),UM=["innerHTML"],YM=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Component",props:{text:{}},setup(n){return(e,t)=>(A.openBlock(),A.createElementBlock("div",A.mergeProps(e.$attrs,{innerHTML:e.text}),null,16,UM))}})},Symbol.toStringTag,{value:"Module"})),DC=A.defineComponent({__name:"Title",props:{title:{default:"标题"},type:{default:"h3"},italic:{type:Boolean,default:!1}},setup(n){return(e,t)=>(A.openBlock(),A.createBlock(A.resolveDynamicComponent(e.type),{class:"Title",style:A.normalizeStyle({fontStyle:e.italic?"italic":"normal"})},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(e.title),1)]),_:1},8,["style"]))}}),OM=Object.freeze(Object.defineProperty({__proto__:null,default:DC},Symbol.toStringTag,{value:"Module"})),$M={class:"el-upload__tip"},zM={key:0,class:"upload-bottom-part"},JM={class:"file-list-wrapper"},ZM={class:"file-item-name"},WM=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Component",props:A.mergeModels({action:{},multiple:{type:Boolean},btnText:{default:"点击上传"},tip:{},limit:{},drag:{type:Boolean},name:{default:"file"},listType:{default:"text"},attachmentTitle:{},showFileList:{type:Boolean,default:!0},autoUpload:{type:Boolean},beforeUpload:{},isOnlyOne:{type:Boolean,default:!1},onChange:{}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,t=A.useModel(n,"modelValue"),{ruleModule:i,pageMethodMap:u}=ei(),I=Y=>{if(e.beforeUpload)try{return i[e.beforeUpload](u,Y)}catch(G){console.error(G)}return!0},o=(Y,G)=>{if(e.onChange)try{i[e.onChange](u,Y,G)}catch(K){console.error(K)}},b=Y=>{const G=t.value.findIndex(K=>K.uid===Y.uid);G!==-1&&t.value.splice(G,1)},y=(Y,G)=>{console.log(Y,G)},w=Y=>{console.log(Y)},M=A.ref(),N=(Y,G)=>{if(e.isOnlyOne&&e.limit===1){M.value.clearFiles();const K=Y[0];K.uid=Ht.genFileId(),M.value.handleStart(K)}else Ht.ElMessage.warning(`The limit is ${e.limit}, you selected ${Y.length} files this time, add up to ${Y.length+G.length} totally`)},P=(Y,G)=>e.beforeUpload?!1:Ht.ElMessageBox.confirm(`Cancel the transfer of ${Y.name} ?`).then(()=>!0,()=>!1);return(Y,G)=>{const K=A.resolveComponent("el-button"),D=A.resolveComponent("el-upload");return A.openBlock(),A.createElementBlock(A.Fragment,null,[A.createVNode(D,{"file-list":t.value,"onUpdate:fileList":G[0]||(G[0]=E=>t.value=E),action:Y.action,multiple:Y.multiple,limit:Y.limit,drag:Y.drag,name:Y.name,listType:Y.listType,"show-file-list":Y.showFileList,"on-preview":w,"on-remove":y,"before-remove":P,"before-upload":I,"on-change":o,"on-exceed":N,class:A.normalizeClass({dragUpload:Y.drag}),ref_key:"upload",ref:M},A.createSlots({default:A.withCtx(()=>[Y.listType==="text"?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[Y.drag?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[A.createVNode(xe,{name:"icon-shangchuan",color:"var(--el-color-primary)"}),G[1]||(G[1]=A.createElementVNode("div",null,[A.createTextVNode("Drop file here or "),A.createElementVNode("em",null,"click to upload")],-1))],64)):(A.openBlock(),A.createBlock(K,{key:1,type:"primary"},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(Y.btnText),1)]),_:1}))],64)):A.createCommentVNode("",!0),Y.listType==="picture-card"?(A.openBlock(),A.createBlock(A.unref(Ie),{key:1,name:"add"})):A.createCommentVNode("",!0)]),_:2},[Y.tip?{name:"tip",fn:A.withCtx(()=>[A.createElementVNode("div",$M,A.toDisplayString(Y.tip),1)]),key:"0"}:void 0]),1032,["file-list","action","multiple","limit","drag","name","listType","show-file-list","class"]),Y.drag&&t.value.length>0?(A.openBlock(),A.createElementBlock("div",zM,[A.createElementVNode("div",null,A.toDisplayString(Y.attachmentTitle),1),A.createElementVNode("div",JM,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(t.value,E=>(A.openBlock(),A.createElementBlock("div",{class:"file-item",key:E.uid},[A.createVNode(xe,{name:"icon-fujiantubiao1",size:"ultra-large"}),A.createElementVNode("div",ZM,A.toDisplayString(E.name),1),A.createVNode(xe,{name:"icon-guanbi",class:"file-item-close",size:"x-small",onClick:L=>b(E)},null,8,["onClick"])]))),128))])])):A.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-faced280"]])},Symbol.toStringTag,{value:"Module"}));function jM(){return"a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",")}function qt(n,e){return Math.floor(Math.random()*(e-n)+n)}function ws(n,e){const t=qt(n,e),i=qt(n,e),u=qt(n,e);return`rgb(${t},${i},${u})`}class qM{constructor(e,t){Bt(this,"version","1.0.0");Bt(this,"options");Bt(this,"_init",()=>{const e=this.options.element;if(!e)return;const t=document.createElement("canvas");this.options.width=e.offsetWidth>0?e.offsetWidth.toString():"100",this.options.height=e.offsetHeight>0?e.offsetHeight.toString():"30",t.id=this.options.canvasId,t.width=parseInt(this.options.width),t.height=parseInt(this.options.height),t.style.cursor="pointer",t.innerHTML="您的浏览器版本不支持canvas",e.appendChild(t),t.onclick=()=>{this.refresh()}});Bt(this,"refresh",()=>{this.options.code="";const e=document.getElementById(this.options.canvasId);if(!e||!e.getContext)return;const t=e.getContext("2d");t.textBaseline="middle",t.fillStyle=ws(180,240),t.fillRect(0,0,parseInt(this.options.width),parseInt(this.options.height));let i;this.options.type==="blend"?i=[...this.options.numArr,...this.options.letterArr]:this.options.type==="number"?i=this.options.numArr:i=this.options.letterArr;for(let u=1;u<=4;u++){const I=i[qt(0,i.length)];this.options.code+=I,t.font=`${qt(parseInt(this.options.height)/2,parseInt(this.options.height))}px SimHei`,t.fillStyle=ws(50,160),t.shadowOffsetX=qt(-3,3),t.shadowOffsetY=qt(-3,3),t.shadowBlur=qt(-3,3),t.shadowColor="rgba(0, 0, 0, 0.3)";const o=parseInt(this.options.width)/5*u,b=parseInt(this.options.height)/2,y=qt(-30,30);t.translate(o,b),t.rotate(y*Math.PI/180),t.fillText(I,0,0),t.rotate(-y*Math.PI/180),t.translate(-o,-b)}for(let u=0;u<4;u++)t.strokeStyle=ws(40,180),t.beginPath(),t.moveTo(qt(0,parseInt(this.options.width)),qt(0,parseInt(this.options.height))),t.lineTo(qt(0,parseInt(this.options.width)),qt(0,parseInt(this.options.height))),t.stroke();for(let u=0;u<parseInt(this.options.width)/4;u++)t.fillStyle=ws(0,255),t.beginPath(),t.arc(qt(0,parseInt(this.options.width)),qt(0,parseInt(this.options.height)),1,0,2*Math.PI),t.fill()});Bt(this,"validate",e=>{const t=e.toLowerCase(),i=this.options.code.toLowerCase();return console.log(i),t===i?!0:(this.refresh(),!1)});this.options={element:null,canvasId:"verifyCanvas",width:"100",height:"30",type:"blend",code:"",numArr:"0,1,2,3,4,5,6,7,8,9".split(","),letterArr:jM(),...t},e&&(this.options.element=e,this._init(),this.refresh())}}const XM={class:"vfc-verify-code"},VM=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Component",props:A.mergeModels({placeholder:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=A.useModel(n,"modelValue"),t=A.ref(null),i=A.ref(null),u=It(),I=()=>{var b;if(!e.value)return;const o=(b=i.value)==null?void 0:b.validate(e.value);console.log("res",o),o?u.updateVCodePass(!0):u.updateVCodePass(!1)};return A.onMounted(()=>{i.value=new qM(t.value)}),(o,b)=>{const y=A.resolveComponent("el-input");return A.openBlock(),A.createElementBlock("div",XM,[A.createVNode(y,{modelValue:e.value,"onUpdate:modelValue":b[0]||(b[0]=w=>e.value=w),class:"verify-input",placeholder:o.placeholder,onBlur:I},null,8,["modelValue","placeholder"]),A.createElementVNode("div",{class:"verify-code",ref_key:"codeEl",ref:t},null,512)])}}}),[["__scopeId","data-v-eda48825"]])},Symbol.toStringTag,{value:"Module"})),Ax=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"Collapse",props:{children:{}},setup(n){const e=n,t=A.ref([]);return A.onMounted(()=>{t.value=e.children.filter(i=>i.checked).map(i=>i.name)}),A.watch(()=>e.children,()=>{e.children.forEach(i=>{i.children||(i.children=[])})}),(i,u)=>{const I=A.resolveComponent("ElCollapseItem"),o=A.resolveComponent("ElCollapse");return A.openBlock(),A.createBlock(o,A.mergeProps(i.$attrs,{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=b=>t.value=b)}),{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(i.children,b=>(A.openBlock(),A.createBlock(I,{key:b.name,name:b.name},{title:A.withCtx(()=>[A.createVNode(DC,{title:b.title,italic:"",type:"h4"},null,8,["title"])]),default:A.withCtx(()=>[A.createVNode(A.unref(pt),{list:b.children},null,8,["list"])]),_:2},1032,["name"]))),128))]),_:1},16,["modelValue"])}}})},Symbol.toStringTag,{value:"Module"})),ex={class:"tab-label"},tx={class:"tab-label-text"},nx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Tabs",props:{children:{},defaultKey:{},tabChange:{}},setup(n){const e=n,t=A.ref(""),i=A.computed(()=>{const b=e.children.findIndex(y=>y.name===t.value);return b-1>=0?b-1:null}),{ruleModule:u,pageMethodMap:I}=ei();function o(b){if(e.tabChange)try{u[e.tabChange](I,b)}catch(y){console.error(y)}}return A.watch(()=>e.children,()=>{e.children.forEach(b=>{b.children||(b.children=[])})}),A.onMounted(()=>{e.defaultKey&&(t.value=e.defaultKey)}),(b,y)=>{const w=A.resolveComponent("el-tab-pane"),M=A.resolveComponent("el-tabs");return A.openBlock(),A.createBlock(M,A.mergeProps(b.$attrs,{modelValue:t.value,"onUpdate:modelValue":y[0]||(y[0]=N=>t.value=N),class:"form-item-tabs",onTabChange:o}),{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.children,(N,P)=>(A.openBlock(),A.createBlock(w,A.mergeProps({key:N.name,ref_for:!0},N),{label:A.withCtx(()=>[A.createElementVNode("div",ex,[A.createElementVNode("span",tx,A.toDisplayString(N.label),1),P!==b.children.length-1?(A.openBlock(),A.createElementBlock("span",{key:0,class:A.normalizeClass(["divider",{"divider-hidden":t.value===N.name||i.value===P}])},null,2)):A.createCommentVNode("",!0)])]),default:A.withCtx(()=>[A.createVNode(A.unref(pt),{list:N.children},null,8,["list"])]),_:2},1040))),128))]),_:1},16,["modelValue"])}}}),[["__scopeId","data-v-71169a4c"]])},Symbol.toStringTag,{value:"Module"})),ix={class:"vfc-ObjGroup"},ox={key:1,class:"vfc-ObjGroup-render"},rx=Object.freeze(Object.defineProperty({__proto__:null,default:A.defineComponent({__name:"ObjGroup",props:{children:{},name:{}},setup(n){const e=n,t=It(),i=A.inject("$objGroupBase"),u=i?`${i.value}.${e.name}`:e.name;return A.provide("$objGroupBase",A.ref(u)),(I,o)=>(A.openBlock(),A.createElementBlock("div",ix,[A.unref(t).design?(A.openBlock(),A.createBlock(A.unref(qc),{key:0,list:I.children},null,8,["list"])):(A.openBlock(),A.createElementBlock("div",ox,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(I.children,b=>(A.openBlock(),A.createBlock(A.unref(oo),A.mergeProps({key:b.name,ref_for:!0},b,{name:`${A.unref(u)}.${b.name}`}),null,16,["name"]))),128))]))]))}})},Symbol.toStringTag,{value:"Module"})),ax={key:0},sx={key:0},lx={key:1},cx={key:1,class:"search-select-wrapper"},gx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"SearchSelect",props:A.mergeModels({onSearch:{},disabled:{type:Boolean},read:{type:Boolean},options:{default:()=>[]},defaultOptions:{},multiple:{type:Boolean,default:!1},mode:{default:"static"},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},env:{},apiParams:{},dependentFields:{},name:{default:""},onChange:{},readTextColor:{},filters:{},refreshFlag:{type:Boolean},clearable:{type:Boolean},width:{}},{modelValue:{type:[String,Number,Boolean,Array]},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,t=A.useModel(n,"modelValue"),i=It(),u=A.inject("ruleModule",void 0),I=A.inject("pageMethodMap",{}),o=M=>{const{valueKey:N="value",multiple:P,name:Y}=e;let G={};if(P&&Array.isArray(M)?G=y.value.filter(K=>M.includes(K[N])):G=y.value.find(K=>K[N]===M)||{},i.selectData&&Y&&i.updateSelectData(Y,G),e.onChange&&u)try{u[e.onChange](I,M,G)}catch(K){console.error(K+`
1645
1645
  onChange: ${e.onChange}`)}},b=()=>{if(e.onSearch&&u)try{u[e.onSearch](I)}catch(M){console.error(M+`
1646
1646
  onSearch: ${e.onSearch}`)}},{currentOptions:y,loading:w}=Cr(e);return(M,N)=>{var D;const P=A.resolveComponent("el-option"),Y=A.resolveComponent("el-select"),G=A.resolveComponent("el-button"),K=A.resolveDirective("loading");return M.read?(A.openBlock(),A.createElementBlock("div",ax,[M.multiple?(A.openBlock(),A.createElementBlock("div",sx,A.toDisplayString(t.value&&t.value.map(E=>{var L;return(L=A.unref(y).find(_=>_[M.valueKey]===E))==null?void 0:L[M.labelKey]}).join("、")),1)):(A.openBlock(),A.createElementBlock("div",lx,A.toDisplayString(((D=A.unref(y).find(E=>E[M.valueKey]===t.value))==null?void 0:D[M.labelKey])||"--"),1))])):(A.openBlock(),A.createElementBlock("div",cx,[A.withDirectives((A.openBlock(),A.createBlock(Y,A.mergeProps({modelValue:t.value,"onUpdate:modelValue":N[0]||(N[0]=E=>t.value=E)},M.$attrs,{onChange:o,multiple:M.multiple,clearable:"",filterable:"",disabled:M.disabled}),{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(A.unref(y),E=>(A.openBlock(),A.createBlock(P,{key:E[M.valueKey],label:E[M.labelKey],value:E[M.valueKey],disabled:E[M.disabledKey]},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(E[M.labelKey]),1)]),_:2},1032,["label","value","disabled"]))),128))]),_:1},16,["modelValue","multiple","disabled"])),[[K,A.unref(w)]]),A.createVNode(G,{onClick:b,disabled:M.disabled,class:"search-btn"},{default:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:"search"})]),_:1},8,["disabled"])]))}}}),[["__scopeId","data-v-b14d9207"]])},Symbol.toStringTag,{value:"Module"})),ux={class:"custom-tree-node"},dx={class:"tree-node-text"},hx={class:"tree-node-label"},px={key:0,class:"tree-node-present"},Cx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Component",props:{onNodeClick:{},onLoad:{},btns:{},data:{},props:{},nodeKey:{}},setup(n){const e=n,t=A.inject("ruleModule",void 0),i=A.inject("pageMethodMap",{}),u=A.ref(),I=(M,N)=>{u.value=M[e.nodeKey]},o=(M,N,P)=>{if(M&&t)try{t[M](i,{node:N,data:P})}catch(Y){console.error(Y+`
1647
1647
  onNodeClick: ${e.onNodeClick}`)}},b=(M,N)=>{if(e.onNodeClick&&t)try{t[e.onNodeClick](i,{node:M,data:N})}catch(P){console.error(P+`
1648
1648
  onNodeClick: ${e.onNodeClick}`)}},y=(M,N,P)=>{if(e.onLoad&&t)try{t[e.onLoad](i,{node:M,resolve:N,reject:P})}catch(Y){console.error(Y+`
1649
- onLoad: ${e.onLoad}`)}},w=A.ref([]);return A.watch(()=>e.data,()=>{if(!e.data||!Array.isArray(e.data)||e.data.length===0)return;const N=[e.data[0][e.nodeKey]];w.value=N},{immediate:!0}),(M,N)=>{const P=A.resolveComponent("el-tooltip"),Y=A.resolveComponent("el-button"),G=A.resolveComponent("el-tree");return A.openBlock(),A.createBlock(G,A.mergeProps(M.$attrs,{onNodeClick:b,load:y,ref:"treeRef",class:"crm-tree",indent:32,"current-node-key":u.value,onCurrentChange:I,"node-key":M.nodeKey,props:e.props,data:M.data,"default-expanded-keys":w.value}),{default:A.withCtx(({node:K,data:D})=>[A.createElementVNode("div",ux,[A.createElementVNode("div",dx,[A.createElementVNode("span",hx,A.toDisplayString(K.label),1),D[M.nodeKey]===u.value?(A.openBlock(),A.createElementBlock("div",px,"Present")):A.createCommentVNode("",!0)]),A.createElementVNode("div",null,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(M.btns,E=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:E.key},[A.unref(Rt)(E.hidden,{$node:K,$data:D})?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(Y,{key:0,link:"",onClick:A.withModifiers(L=>o(E.onClick||"",K,D),["stop"]),disabled:E.disabled,type:E.type},{default:A.withCtx(()=>[A.createVNode(P,{class:"box-item",effect:"dark",content:E.text,placement:"top","popper-class":"low-tsp"},{default:A.withCtx(()=>[E.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:E.icon.name,color:E.icon.color,class:"btn-icon"},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"])]),_:2},1032,["onClick","disabled","type"]))],64))),128))])])]),_:1},16,["current-node-key","node-key","props","data","default-expanded-keys"])}}}),[["__scopeId","data-v-016a1506"]])},Symbol.toStringTag,{value:"Module"})),Bx=["id"],mx={class:"empty-content"},Ex=["title"],Qx=["title","onClick"],Ix={key:1,class:"icon-text-wrapper"},fx=["title","onClick"],wx={key:2},bx=["title"],yx={class:"row-btn-wrapper"},Dx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Table",props:{title:{},key:{},rulePath:{},rowKey:{},showDynamicSearch:{type:Boolean},multipleSelection:{type:Boolean},highlightCurrentRow:{type:Boolean},"highlight-current-row":{type:Boolean},stripe:{type:Boolean},rowClick:{},rowDbClick:{},sizeChange:{},pageChange:{},topBtns:{},rowBtns:{},rowBtnsLabel:{},rowBtnsWidth:{},columns:{},hidden:{type:Boolean},hiddenPagination:{type:Boolean},handleCurrentChange:{},selectable:{},pageSizes:{},pagerCount:{},paginationLayout:{},defaultPageSize:{},typeSwitch:{type:Boolean},displayType:{default:"table"},onMounted:{},onActivated:{},height:{},collapsible:{type:Boolean},sortable:{type:Boolean},name:{},gridColumns:{}},setup(n,{expose:e}){const t=n,i=A.computed(()=>t.displayType?t.displayType:t.typeSwitch?"card":"table"),u=A.inject("ruleModule",void 0),I=A.inject("ruleMap",void 0),o=A.computed(()=>t.rulePath&&I[t.rulePath]?I[t.rulePath]:u),b=A.inject("pageMethodMap",{}),y=A.inject("getGlobalParams",()=>{}),w=A.inject(jn),M=w?w.translateFn:null,N=A.ref(),P=(tA,rA,gA)=>{O.value[tA]&&(O.value[tA][rA]=gA)},Y=(tA,rA)=>{const gA=t.columns.find(z=>z.key===tA);gA&&(gA.hidden=!rA)},G=(tA,rA,gA,z)=>{try{o.value[tA.onClick](b,rA,gA,z),z==null||z.stopPropagation()}catch(X){console.error(X)}},K=tA=>{if(t.rowClick)try{o.value[t.rowClick](b,tA)}catch(rA){console.error(rA)}},D=tA=>{if(t.rowDbClick)try{o.value[t.rowDbClick](b,tA)}catch(rA){console.error(rA)}},E=A.ref([]),L=tA=>{E.value=tA},_=(tA,rA)=>{if(!t.selectable)return!0;try{return o.value[t.selectable](b,tA,rA)}catch(gA){console.error(gA)}return!0},v=()=>{var tA;(tA=N.value)==null||tA.clearSelection()},B=()=>O.value,p=A.ref(),d=tA=>{if(p.value=tA,!!t.handleCurrentChange)try{o.value[t.handleCurrentChange](b,tA)}catch(rA){console.error(rA)}},l=()=>p.value,g=()=>{var tA;return(tA=N.value)==null?void 0:tA.getSelectionRows()},s=async()=>!0,h=(tA,rA)=>{var z;const gA=(z=t.topBtns)==null?void 0:z.find(X=>X.key===tA);gA&&(gA.hidden=rA)},C=(tA,rA)=>{var z;const gA=(z=t.rowBtns)==null?void 0:z.find(X=>X.key===tA);gA&&(gA.condition=!rA)},a=A.ref(0),r=tA=>{a.value=tA},m=A.ref({pageNum:1,pageSize:t.defaultPageSize||5}),Q=A.ref({pageNum:1,pageSize:t.defaultPageSize||5}),x=()=>m.value,S=tA=>{let rA=!1;return tA.pageNum!==void 0&&tA.pageNum>-1&&(m.value.pageNum!==tA.pageNum&&(rA=!0),m.value.pageNum=tA.pageNum),tA.pageSize!==void 0&&tA.pageSize>-1&&(m.value.pageSize!==tA.pageSize&&(rA=!0),m.value.pageSize=tA.pageSize),{pagination:m.value,isChange:rA}},T=async()=>{if(m.value.pageNum=1,!t.sizeChange)return;const tA=Ht.ElLoading.service({target:`#${t.name}`,text:"Loading..."});try{await o.value[t.sizeChange](b,m.value),Q.value.pageNum=m.value.pageNum,Q.value.pageSize=m.value.pageSize}catch(rA){console.error(rA),m.value.pageNum=Q.value.pageNum,m.value.pageSize=Q.value.pageSize}finally{tA.close()}},$=async()=>{if(!t.pageChange)return;const tA=Ht.ElLoading.service({target:`#${t.name}`,text:"Loading..."});try{await o.value[t.pageChange](b,m.value),Q.value.pageNum=m.value.pageNum,Q.value.pageSize=m.value.pageSize}catch(rA){console.error(rA),m.value.pageNum=Q.value.pageNum,m.value.pageSize=Q.value.pageSize}finally{tA.close()}},eA=tA=>{var rA;(rA=N.value)==null||rA.setCurrentRow(tA)},W=tA=>{var rA;(rA=N.value)==null||rA.setCurrentRow(O.value[tA])},J=(tA,rA,gA)=>{t.columns.forEach(z=>{z.key===tA&&z[rA]&&(z[rA]=gA)})},O=A.ref([]),q=tA=>{O.value=tA},k=(tA={})=>{O.value.push(tA)},V=tA=>{tA>=0&&tA<O.value.length&&O.value.splice(tA,1)},H=async()=>{O.value=[...O.value]},AA=A.useTemplateRef("rootRef"),sA=A.readonly({...A.toRefs(t),setCellData:P,clearSelection:v,getData:B,getCurrentRow:l,getSelectedRows:g,addRow:k,deleteRow:V,refresh:H,validate:s,setData:q,selectRow:eA,selectRowNum:W,setTotal:r,getPagination:x,setPagination:S,setTopBtnHidden:h,setColVisible:Y,setColumn:J,setRowsBtnHidden:C,rootRef:AA,type:"table"}),oA=(tA,rA)=>{const gA=M?M(tA.key,rA):rA[tA.key];if(!tA.encrypted||!gA)return gA;const z=`${gA}`;return z.length<=4?"*".repeat(z.length):z.slice(0,-4)+"****"},dA=(tA,rA)=>{if(!tA.getTextStyle||!o.value)return{};try{return o.value[tA.getTextStyle](b,rA,tA)}catch(gA){console.error(gA)}},EA=(tA,rA)=>{if(!(!tA.getIconInfo||!o.value))try{return o.value[tA.getIconInfo](b,rA,tA)}catch(gA){console.error(gA)}},uA=(tA,rA)=>{if(!(!tA.getIconPopoverContent||!o.value))try{return o.value[tA.getIconPopoverContent](b,rA,tA)}catch(gA){console.error(gA)}},BA=(tA,rA)=>{if(!(!tA.getCustomContent||!o.value))try{return o.value[tA.getCustomContent](b,rA,tA)}catch(gA){console.error(gA)}},j=A.computed(()=>!t.rowBtns||t.rowBtns.length===0||!O.value||O.value.length===0?!1:O.value.some(tA=>{var rA;return(rA=t.rowBtns)==null?void 0:rA.some(gA=>gA.condition===void 0||gA.condition===null?!0:Rt(gA.condition,{$row:tA,$globalParams:y()}))}));if(A.onMounted(async()=>{if(!t.onMounted||!o.value)return;await A.nextTick();const tA=t.onMounted;try{o.value[tA](b)}catch(rA){console.error(rA)}}),A.onActivated(()=>{if(!t.onActivated||!o.value)return;const tA=t.onActivated;try{o.value[tA](b)}catch(rA){console.error(rA)}}),t.name){const tA=fs(t.name,sA);A.onUnmounted(()=>{tA()})}return e(sA),(tA,rA)=>{const gA=A.resolveComponent("el-table-column"),z=A.resolveComponent("el-popover"),X=A.resolveComponent("el-tooltip"),iA=A.resolveComponent("el-button"),cA=A.resolveComponent("el-pagination");return tA.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["table-render",{tableBorder:i.value==="table",[tA.name]:!0}]),ref_key:"rootRef",ref:AA,id:tA.name},[A.withDirectives(A.createElementVNode("div",null,[A.createVNode(A.unref(Ht.ElTable),{ref_key:"tableRef",ref:N,data:O.value,"highlight-current-row":"","row-key":tA.rowKey,stripe:tA.stripe,onRowClick:K,onRowDblclick:D,onSelectionChange:L,onCurrentChange:d,height:tA.height},{empty:A.withCtx(()=>[A.createElementVNode("div",mx,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),rA[2]||(rA[2]=A.createElementVNode("div",null,"No data available,please check",-1))])]),default:A.withCtx(()=>[tA.multipleSelection?(A.openBlock(),A.createBlock(gA,{key:0,type:"selection",width:"55",selectable:_})):A.createCommentVNode("",!0),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(tA.columns,CA=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:CA.key},[CA.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(gA,{key:0,prop:CA.key,"min-width":CA.minWidth,fixed:CA.fixed||!1,sortable:CA.sortable||tA.sortable||!0},{header:A.withCtx(()=>[A.createElementVNode("div",{class:"text-ellipsis",title:CA.label},A.toDisplayString(CA.label),9,Ex)]),default:A.withCtx(({row:vA,$index:GA})=>{var JA,qA,WA,ue;return[CA.type==="link"?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["text-ellipsis link-style",{"click-style":CA.onClick}]),title:oA(CA,vA),onClick:te=>G(CA,vA,GA,te)},A.toDisplayString(oA(CA,vA)),11,Qx)):CA.type==="iconText"?(A.openBlock(),A.createElementBlock("div",Ix,[CA.iconPosition==="left"?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[CA.iconPopover&&Array.isArray(uA(CA,vA))?(A.openBlock(),A.createBlock(z,{key:0},{reference:A.withCtx(()=>{var te,LA;return[A.createVNode(xe,{name:(te=EA(CA,vA))==null?void 0:te.name,color:(LA=EA(CA,vA))==null?void 0:LA.color},null,8,["name","color"])]}),default:A.withCtx(()=>[A.createVNode(A.unref(mt),{list:uA(CA,vA)||[]},null,8,["list"])]),_:2},1024)):(A.openBlock(),A.createBlock(xe,{key:1,name:(JA=EA(CA,vA))==null?void 0:JA.name,color:(qA=EA(CA,vA))==null?void 0:qA.color},null,8,["name","color"]))],64)):A.createCommentVNode("",!0),A.createElementVNode("span",{class:A.normalizeClass(["text-ellipsis",{"click-style":CA.onClick}]),title:oA(CA,vA),onClick:te=>G(CA,vA,GA,te)},A.toDisplayString(oA(CA,vA)),11,fx),CA.iconPosition==="right"?(A.openBlock(),A.createElementBlock(A.Fragment,{key:1},[CA.iconPopover&&Array.isArray(uA(CA,vA))?(A.openBlock(),A.createBlock(z,{key:0},{reference:A.withCtx(()=>{var te,LA;return[A.createVNode(xe,{name:(te=EA(CA,vA))==null?void 0:te.name,color:(LA=EA(CA,vA))==null?void 0:LA.color},null,8,["name","color"])]}),default:A.withCtx(()=>[A.createVNode(A.unref(mt),{list:uA(CA,vA)||[]},null,8,["list"])]),_:2},1024)):(A.openBlock(),A.createBlock(xe,{key:1,name:(WA=EA(CA,vA))==null?void 0:WA.name,color:(ue=EA(CA,vA))==null?void 0:ue.color},null,8,["name","color"]))],64)):A.createCommentVNode("",!0)])):CA.type==="customContent"?(A.openBlock(),A.createElementBlock("div",wx,[A.createVNode(A.unref(mt),{list:BA(CA,vA)||[]},null,8,["list"])])):(A.openBlock(),A.createElementBlock("div",{key:3,class:A.normalizeClass({"text-ellipsis":!CA.noEllipsis}),title:oA(CA,vA),style:A.normalizeStyle(dA(CA,vA))},A.toDisplayString(oA(CA,vA)),15,bx))]}),_:2},1032,["prop","min-width","fixed","sortable"]))],64))),128)),j.value&&tA.rowBtns&&tA.rowBtns.length>0?(A.openBlock(),A.createBlock(gA,{key:1,label:tA.rowBtnsLabel||"Action",fixed:"right",align:"left",width:tA.rowBtnsWidth||(tA.rowBtns.length*34+12>100?tA.rowBtns.length*34+12:100)},{default:A.withCtx(({row:CA,$index:vA})=>[A.createElementVNode("div",yx,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(tA.rowBtns,GA=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:GA.key},[GA.component==="Popover"?(A.openBlock(),A.createBlock(z,{key:0,title:GA.label,trigger:"click","popper-class":"btn-popover",width:"400"},{reference:A.withCtx(()=>[GA.condition===void 0||GA.condition===null||A.unref(Rt)(GA.condition,{$row:CA,$globalParams:A.unref(y)()})?(A.openBlock(),A.createBlock(iA,{key:0,disabled:GA.disabled,link:"",size:"small",type:GA.type,onClick:A.withModifiers(JA=>G(GA,CA,vA,JA),["stop"])},{default:A.withCtx(()=>[A.createVNode(X,{class:"box-item",effect:"dark",content:GA.label,placement:"top","popper-class":"low-tsp"},{default:A.withCtx(()=>[GA.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:GA.icon.name,color:GA.icon.color},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"]),GA.buttonText?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:GA.buttonText.color,fontSize:"14px"})},A.toDisplayString(A.unref(Rt)(GA.buttonText.text,{$row:CA,$globalParams:A.unref(y)()})),5)):A.createCommentVNode("",!0)]),_:2},1032,["disabled","type","onClick"])):A.createCommentVNode("",!0)]),default:A.withCtx(()=>[A.createElementVNode("div",null,[A.createVNode(A.unref(mt),{list:GA.children},null,8,["list"])])]),_:2},1032,["title"])):(A.openBlock(),A.createElementBlock(A.Fragment,{key:1},[GA.condition===void 0||GA.condition===null||A.unref(Rt)(GA.condition,{$row:CA,$globalParams:A.unref(y)()})?(A.openBlock(),A.createBlock(iA,{key:0,disabled:GA.disabled,link:"",size:"small",type:GA.type,onClick:A.withModifiers(JA=>G(GA,CA,vA,JA),["stop"])},{default:A.withCtx(()=>[A.createVNode(X,{class:"box-item",effect:"dark",content:GA.label,placement:"top","popper-class":"low-tsp"},{default:A.withCtx(()=>[GA.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:GA.icon.name,color:GA.icon.color},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"]),GA.buttonText?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:GA.buttonText.color,fontSize:"14px"})},A.toDisplayString(A.unref(Rt)(GA.buttonText.text,{$row:CA,$globalParams:A.unref(y)()})),5)):A.createCommentVNode("",!0)]),_:2},1032,["disabled","type","onClick"])):A.createCommentVNode("",!0)],64))],64))),128))])]),_:1},8,["label","width"])):A.createCommentVNode("",!0)]),_:1},8,["data","row-key","stripe","height"])],512),[[A.vShow,i.value==="table"]]),A.withDirectives(A.createVNode(ic,A.mergeProps({data:O.value},t,{getColText:oA}),null,16,["data"]),[[A.vShow,i.value==="card"]]),A.createElementVNode("div",{class:A.normalizeClass(["pagination-wrapper",{hidePagination:(tA.hiddenPagination||O.value.length===0)&&!tA.height,transparentPagination:(tA.hiddenPagination||O.value.length===0)&&tA.height,cardlistPadding:i.value==="card"}])},[A.createVNode(cA,{layout:tA.paginationLayout||"total,sizes, prev, pager, next,jumper",total:a.value,"page-sizes":tA.pageSizes||[5,6,10,20,30,40],"default-page-size":tA.defaultPageSize,"current-page":m.value.pageNum,"onUpdate:currentPage":rA[0]||(rA[0]=CA=>m.value.pageNum=CA),"page-size":m.value.pageSize,"onUpdate:pageSize":rA[1]||(rA[1]=CA=>m.value.pageSize=CA),"pager-count":Number(tA.pagerCount)||5,onSizeChange:T,onCurrentChange:$},null,8,["layout","total","page-sizes","default-page-size","current-page","page-size","pager-count"])],2)],10,Bx))}}}),[["__scopeId","data-v-f1a1b583"]])},Symbol.toStringTag,{value:"Module"})),vx=["id"],kx={class:"left-part"},_x={class:"title"},Mx={class:"right-part"},xx={key:0},Sx={key:1,class:"switch-panel"},Nx={key:3},Fx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"CurdCard",props:{name:{},children:{},defaultCollapse:{type:Boolean},collapsible:{type:Boolean},onCollapsed:{},typeSwitch:{type:Boolean},title:{},btns:{},type:{},mainIcon:{},extraIcons:{},displayType:{},radioList:{},onRadioChange:{},radioDefault:{},formSlots:{},style:{type:[Boolean,null,String,Object,Array]},hasSearchInput:{type:Boolean},searchPlaceholder:{},handleSearch:{},searchInputChange:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=A.ref(""),u=n,I=A.ref(u.radioDefault??"2"),o=K=>{if(K&&e)try{e[K](t)}catch(D){console.error(D+`
1650
- funcName: ${K}`)}},b=K=>{u.onRadioChange&&e&&e[u.onRadioChange](t,K)},y=()=>{w.value=!w.value,u.onCollapsed&&e&&e[u.onCollapsed](t,w.value)},w=A.ref(u.defaultCollapse??!1);A.watch(()=>u.defaultCollapse,()=>{w.value=u.defaultCollapse??!1});const M=A.ref(u.displayType||(u.typeSwitch?"card":"table")),N=It(),P=K=>{M.value=K;const D=Si(N.schema.items,u.name),E=L=>{L.forEach(_=>{_.component==="Table"&&_.props&&(_.props.displayType=K),_.children&&_.children.length>0&&E(_.children)})};D&&D.children&&E(D.children)},Y=K=>{u.handleSearch&&e&&e[u.handleSearch](t,K)},G=K=>{u.searchInputChange&&e&&e[u.searchInputChange](t,K)};return P(M.value),(K,D)=>{const E=A.resolveComponent("el-radio"),L=A.resolveComponent("el-radio-group"),_=A.resolveComponent("el-tooltip"),v=A.resolveComponent("el-input"),B=A.resolveComponent("el-collapse-transition");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(["crm-curd-card",{gridItem:K.type==="gridItem"}]),style:A.normalizeStyle(K.style),id:K.name},[A.createElementVNode("div",{class:A.normalizeClass(["card-header",{inline:K.type==="inline",mix:K.type==="mix",default:K.type==="default",gridItem:K.type==="gridItem",collapsedPadding:w.value&&K.onCollapsed,"has-search-input":K.hasSearchInput}])},[A.createElementVNode("div",kx,[K.mainIcon?(A.openBlock(),A.createBlock(xe,{key:0,class:"title-icon",size:"large",name:K.mainIcon.name,color:K.mainIcon.color},null,8,["name","color"])):A.createCommentVNode("",!0),A.createElementVNode("span",_x,A.toDisplayString(K.title),1),K.radioList?(A.openBlock(),A.createBlock(L,{key:1,class:"ml-9",modelValue:I.value,"onUpdate:modelValue":D[0]||(D[0]=p=>I.value=p),onChange:D[1]||(D[1]=p=>b(I.value))},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(K.radioList,p=>(A.openBlock(),A.createBlock(E,{value:p.value,key:p.value},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(p.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])):A.createCommentVNode("",!0),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(K.extraIcons,p=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:p.name},[p.tips?(A.openBlock(),A.createBlock(_,{key:0,content:p.tips,placement:"right"},{default:A.withCtx(()=>[A.createVNode(xe,{class:"extra-icon",name:p.name,color:p.color,onClick:d=>o(p.onClick)},null,8,["name","color","onClick"])]),_:2},1032,["content"])):(A.openBlock(),A.createBlock(xe,{key:1,class:"extra-icon",name:p.name,color:p.color,onClick:d=>o(p.onClick)},null,8,["name","color","onClick"]))],64))),128))]),K.hasSearchInput?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["card-search-input",{collapsedPadding:w.value&&K.onCollapsed}])},[A.createVNode(v,{modelValue:i.value,"onUpdate:modelValue":D[2]||(D[2]=p=>i.value=p),placeholder:K.searchPlaceholder,size:"large",onInput:G,onKeyup:A.withKeys(Y,["enter"])},{prefix:A.withCtx(()=>D[5]||(D[5]=[])),suffix:A.withCtx(()=>[A.createVNode(xe,{class:"cursor-pointer",name:"icon-lujing2",color:"#666666",size:"normal",onClick:Y})]),_:1},8,["modelValue","placeholder"])],2)):A.createCommentVNode("",!0),A.createElementVNode("div",Mx,[K.formSlots?(A.openBlock(),A.createElementBlock("div",xx,[A.createVNode(A.unref(mt),{list:K.formSlots},null,8,["list"])])):A.createCommentVNode("",!0),K.typeSwitch?(A.openBlock(),A.createElementBlock("div",Sx,[A.createElementVNode("div",{class:A.normalizeClass(["switch-icon-wrapper",{active:M.value==="card"}]),onClick:D[3]||(D[3]=p=>P("card"))},[A.createVNode(xe,{name:"icon-kapian"})],2),A.createElementVNode("div",{class:A.normalizeClass(["switch-icon-wrapper",{active:M.value==="table"}]),onClick:D[4]||(D[4]=p=>P("table"))},[A.createVNode(xe,{name:"icon-biaoge"})],2)])):A.createCommentVNode("",!0),K.collapsible?(A.openBlock(),A.createElementBlock("div",{key:2,class:A.normalizeClass(["collapse-icon-wrapper",{collapsed:w.value}]),onClick:y},[A.createVNode(xe,{name:"icon-shaixuan"})],2)):A.createCommentVNode("",!0),K.btns&&K.btns.length>0?(A.openBlock(),A.createElementBlock("div",Nx,[A.createVNode(A.unref(lo),{btns:K.btns||[]},null,8,["btns"])])):A.createCommentVNode("",!0)])],2),K.onCollapsed?(A.openBlock(),A.createBlock(A.unref(mt),{key:1,list:K.children},null,8,["list"])):(A.openBlock(),A.createBlock(B,{key:0},{default:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",null,[A.createVNode(A.unref(mt),{list:K.children},null,8,["list"])],512),[[A.vShow,!w.value]])]),_:1}))],14,vx)}}}),[["__scopeId","data-v-e9f5991b"]])},Symbol.toStringTag,{value:"Module"})),Rx={key:0,class:"dropdown-icon-wrapper"},Lx={key:1,class:"expansion-icon-wrapper"},Gx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Wrapper",props:{children:{},style:{type:[Boolean,null,String,Object,Array]},innerStyle:{type:[Boolean,null,String,Object,Array]},type:{},collapse:{type:Boolean},dropdown:{type:Boolean},expansion:{type:Boolean},expansionIconTop:{},onDropdownChange:{},onExpand:{}},setup(n){const e=n,{ruleModule:t,pageMethodMap:i}=ei(),u=A.ref(!1),I=()=>{if(e.onDropdownChange){u.value=!u.value;try{t[e.onDropdownChange](i,u.value)}catch(b){console.error(b)}}},o=()=>{if(e.onExpand)try{t[e.onExpand](i)}catch(b){console.error(b)}};return(b,y)=>{const w=A.resolveComponent("el-collapse-transition");return A.openBlock(),A.createElementBlock("div",{style:A.normalizeStyle(b.style)},[A.createVNode(w,null,{default:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",{class:A.normalizeClass({normal:b.type==="normal",onlytable:b.type==="onlytable",dropdownChildren:b.type==="dropdown-children",expansionWrapper:b.expansion}),style:A.normalizeStyle(b.innerStyle)},[A.createVNode(A.unref(mt),{list:b.children},null,8,["list"]),b.dropdown?(A.openBlock(),A.createElementBlock("div",Rx,[A.createVNode(xe,{name:"icon-xialaliebiao",color:"#666666",onClick:I,class:A.normalizeClass({reversed:u.value})},null,8,["class"])])):A.createCommentVNode("",!0),b.expansion?(A.openBlock(),A.createElementBlock("div",Lx,[A.createVNode(xe,{name:"icon-shuangxiangjiantou",color:"#666666",onClick:o})])):A.createCommentVNode("",!0)],6),[[A.vShow,!b.collapse]])]),_:1})],4)}}}),[["__scopeId","data-v-61efcb0f"]])},Symbol.toStringTag,{value:"Module"})),Px={class:"content"},Hx={class:"product-list"},Kx={class:"attribute-list"},Tx={key:0,class:"attribute-list-item"},Ux={class:"product-title attribute-title"},Yx={class:"attribute-item-list"},Ox={class:"attribute-label"},$x={class:"attribute-value"},zx=A.defineComponent({__name:"OfferDetailItem",props:{data:{},btns:{},index:{}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-popover");return A.openBlock(),A.createBlock(i,{"popper-class":"offer-detail",placement:"right"},{reference:A.withCtx(()=>[A.createVNode(Hd,{data:e.data,btns:e.btns,index:e.index},null,8,["data","btns","index"])]),default:A.withCtx(()=>[A.createElementVNode("div",Px,[t[0]||(t[0]=A.createElementVNode("div",{class:"product-title"},"Product",-1)),A.createElementVNode("div",Hx,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(e.data.product,u=>(A.openBlock(),A.createElementBlock("div",{class:"product-item",key:u.label},A.toDisplayString(u.label),1))),128))]),A.createElementVNode("div",Kx,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(e.data.product,u=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:u.label},[u.children.length>0?(A.openBlock(),A.createElementBlock("div",Tx,[A.createElementVNode("div",Ux,A.toDisplayString(u.label),1),A.createElementVNode("div",Yx,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.children,I=>(A.openBlock(),A.createElementBlock("div",{class:"attribute-item",key:I.label},[A.createElementVNode("div",Ox,A.toDisplayString(I.label),1),A.createElementVNode("div",$x,A.toDisplayString(I.value||"--"),1)]))),128))])])):A.createCommentVNode("",!0)],64))),128))])])]),_:1})}}}),Jx={key:0,class:"empty-content"},Zx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"OfferDetails",props:{title:{},key:{},rulePath:{},rowKey:{},showDynamicSearch:{type:Boolean},multipleSelection:{type:Boolean},highlightCurrentRow:{type:Boolean},"highlight-current-row":{type:Boolean},stripe:{type:Boolean},rowClick:{},rowDbClick:{},sizeChange:{},pageChange:{},topBtns:{},rowBtns:{},rowBtnsLabel:{},rowBtnsWidth:{},hidden:{type:Boolean},hiddenPagination:{type:Boolean},handleCurrentChange:{},selectable:{},pageSizes:{},pagerCount:{},paginationLayout:{},defaultPageSize:{},typeSwitch:{type:Boolean},displayType:{},onMounted:{},onActivated:{},height:{},collapsible:{type:Boolean},sortable:{type:Boolean},gridColumns:{default:3},gap:{default:16},data:{},columns:{},getColText:{}},setup(n){var N,P;const e=n,t=A.ref(),i=A.ref([]),u=(N=e.columns.find(Y=>Y.position==="title"))==null?void 0:N.key,I=(P=e.columns.find(Y=>Y.position==="subTitle"))==null?void 0:P.key,o=e.columns.find(Y=>Y.position==="footer"),b=Y=>{const G=[];return Y.children&&Y.children.length>0&&Y.children.forEach(K=>{const D={label:K.PRODUCT_ITEM_NAME,children:[]};K.children&&K.children.length>0&&K.children.forEach(E=>{D.children.push({label:E.PRODUCT_ITEM_NAME,value:E.ACTION})}),G.push(D)}),G};function y(Y){const G={},K=[];return Y.forEach(D=>{G[D.PRODUCT_ITEM_ID]={...D,children:[]}}),Y.forEach(D=>{const E=G[D.PRODUCT_ITEM_ID],L=D.PARENT_PRODUCT_ITEM_ID;L===0||!G[L]?K.push(E):G[L].children.push(E)}),K}const w=A.inject(jn),M=w?w.translateFn:null;return A.watchEffect(()=>{if(e.data){const Y=y(e.data);t.value=Y.map(G=>{const K={content:[]};return u&&(K.title=M?M(u,G):G[u],K.titleColor="var(--el-color-primary)"),I&&(K.subTitle=M?M(I,G):G[I]),o&&(K.footer={icon:o.footerIcon||"icon-tishi",text:`${o.label}: ${M?M(o.key,G):G[o.key]}`}),G.children&&(K.product=b(G)),e.columns.forEach(D=>{D.position==="content"&&K.content.push({label:D.label,value:M?M(D.key,G):G[D.key]})}),K})}}),A.onMounted(()=>{var Y;i.value=(Y=e.rowBtns)==null?void 0:Y.map(G=>({icon:G.icon&&G.icon.name?G.icon.name:"icon-tishi",label:G.label,onClick:G.onClick}))}),(Y,G)=>(A.openBlock(),A.createElementBlock(A.Fragment,null,[A.createElementVNode("div",{class:"card-list",style:A.normalizeStyle({"--columns":Y.gridColumns,"--gap":Y.gap+"px"})},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(t.value,(K,D)=>(A.openBlock(),A.createElementBlock("div",{class:"card-list-item",key:D},[A.createVNode(zx,{data:K,btns:i.value,index:D},null,8,["data","btns","index"])]))),128))],4),!Y.data||Y.data.length===0?(A.openBlock(),A.createElementBlock("div",Jx,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),G[0]||(G[0]=A.createElementVNode("div",null,"No data available,please check",-1))])):A.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-43ded0ba"]])},Symbol.toStringTag,{value:"Module"})),Wx={class:"progress"},jx={class:"timeline-content"},qx={class:"timeline-content__title"},Xx={key:0,class:"empty-content"},Vx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Progress",props:{data:{}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-timeline-item"),u=A.resolveComponent("el-timeline");return A.openBlock(),A.createElementBlock("div",Wx,[A.createVNode(u,null,{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(e.data,(I,o)=>(A.openBlock(),A.createBlock(i,{key:o,size:"large"},{dot:A.withCtx(()=>[A.createVNode(xe,{name:I.iconName,size:"large"},null,8,["name"])]),default:A.withCtx(()=>[A.createElementVNode("div",jx,[A.createElementVNode("div",qx,[A.createElementVNode("span",null,A.toDisplayString(I.title),1),A.createElementVNode("span",null,A.toDisplayString(I.timestamp),1)]),A.createTextVNode(" "+A.toDisplayString(I.content),1)])]),_:2},1024))),128))]),_:1}),!e.data||e.data.length===0?(A.openBlock(),A.createElementBlock("div",Xx,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),t[0]||(t[0]=A.createElementVNode("div",null,"No data available,please check",-1))])):A.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-088a0692"]])},Symbol.toStringTag,{value:"Module"})),AS={class:"log-list"},eS={class:"title-part"},tS={class:"title"},nS={class:"sub-title"},iS={class:"content"},oS={key:0},rS=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"LogList",props:{content:{}},setup(n){return(e,t)=>(A.openBlock(),A.createElementBlock("div",AS,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(e.content,i=>{var u;return A.openBlock(),A.createElementBlock("div",{class:"log-list-item",key:i.id},[A.createElementVNode("div",{class:"left-bar",style:A.normalizeStyle({backgroundColor:i.color})},null,4),A.createElementVNode("div",eS,[A.createElementVNode("div",{class:"circle",style:A.normalizeStyle({backgroundColor:i.color})},A.toDisplayString((u=i.title)==null?void 0:u[0]),5),A.createElementVNode("div",tS,A.toDisplayString(i.title),1),A.createElementVNode("div",nS,A.toDisplayString(i.subTitle),1)]),A.createElementVNode("div",iS,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(i.content,(I,o)=>(A.openBlock(),A.createElementBlock("span",{key:o,class:A.normalizeClass({bold:I.style==="bold",normal:I.style==="normal"})},[A.createTextVNode(A.toDisplayString(I.text),1),o!==i.content.length-1?(A.openBlock(),A.createElementBlock("span",oS," ")):A.createCommentVNode("",!0)],2))),128))])])}),128))]))}}),[["__scopeId","data-v-646d4f4d"]])},Symbol.toStringTag,{value:"Module"})),aS=["infinite-scroll-disabled"],sS=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"InfiniteScroll",props:{children:{},load:{},disabled:{type:Boolean},style:{type:[Boolean,null,String,Object,Array]}},setup(n){const{ruleModule:e,pageMethodMap:t}=ei(),i=n,u=async()=>{try{await e[i.load](t)}catch(I){console.error(I)}};return(I,o)=>{const b=A.resolveDirective("infinite-scroll");return A.withDirectives((A.openBlock(),A.createElementBlock("div",{"infinite-scroll-disabled":I.disabled,"infinite-scroll-immediate":!1,"infinite-scroll-distance":20,class:"infinite-scroll-wrapper",style:A.normalizeStyle(I.style)},[A.createVNode(A.unref(mt),{list:I.children},null,8,["list"])],12,aS)),[[b,u]])}}}),[["__scopeId","data-v-6746ff5d"]])},Symbol.toStringTag,{value:"Module"}));yt.$options=jn,yt.FormDesign=wC,yt.FormRender=fn,yt.PageRender=ag,yt.TableRender=rg,yt.default=O8,yt.useFormInstance=It,yt.useRuleContext=ei,Object.defineProperties(yt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1649
+ onLoad: ${e.onLoad}`)}},w=A.ref([]);return A.watch(()=>e.data,()=>{if(!e.data||!Array.isArray(e.data)||e.data.length===0)return;const N=[e.data[0][e.nodeKey]];w.value=N},{immediate:!0}),(M,N)=>{const P=A.resolveComponent("el-tooltip"),Y=A.resolveComponent("el-button"),G=A.resolveComponent("el-tree");return A.openBlock(),A.createBlock(G,A.mergeProps(M.$attrs,{onNodeClick:b,load:y,ref:"treeRef",class:"crm-tree",indent:32,"current-node-key":u.value,onCurrentChange:I,"node-key":M.nodeKey,props:e.props,data:M.data,"default-expanded-keys":w.value}),{default:A.withCtx(({node:K,data:D})=>[A.createElementVNode("div",ux,[A.createElementVNode("div",dx,[A.createElementVNode("span",hx,A.toDisplayString(K.label),1),D[M.nodeKey]===u.value?(A.openBlock(),A.createElementBlock("div",px,"Present")):A.createCommentVNode("",!0)]),A.createElementVNode("div",null,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(M.btns,E=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:E.key},[A.unref(Rt)(E.hidden,{$node:K,$data:D})?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(Y,{key:0,link:"",onClick:A.withModifiers(L=>o(E.onClick||"",K,D),["stop"]),disabled:E.disabled,type:E.type},{default:A.withCtx(()=>[A.createVNode(P,{class:"box-item",effect:"dark",content:E.text,placement:"top","popper-class":"low-tsp"},{default:A.withCtx(()=>[E.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:E.icon.name,color:E.icon.color,class:"btn-icon"},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"])]),_:2},1032,["onClick","disabled","type"]))],64))),128))])])]),_:1},16,["current-node-key","node-key","props","data","default-expanded-keys"])}}}),[["__scopeId","data-v-016a1506"]])},Symbol.toStringTag,{value:"Module"})),Bx=["id"],mx={class:"empty-content"},Ex=["title"],Qx=["title","onClick"],Ix={key:1,class:"icon-text-wrapper"},fx=["title","onClick"],wx={key:2},bx=["title"],yx={class:"row-btn-wrapper"},Dx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Table",props:{title:{},key:{},rulePath:{},rowKey:{},showDynamicSearch:{type:Boolean},multipleSelection:{type:Boolean},highlightCurrentRow:{type:Boolean},"highlight-current-row":{type:Boolean},stripe:{type:Boolean},rowClick:{},rowDbClick:{},sizeChange:{},pageChange:{},topBtns:{},rowBtns:{},rowBtnsLabel:{},rowBtnsWidth:{},columns:{},hidden:{type:Boolean},hiddenPagination:{type:Boolean},handleCurrentChange:{},selectable:{},pageSizes:{},pagerCount:{},paginationLayout:{},defaultPageSize:{},typeSwitch:{type:Boolean},displayType:{default:"table"},onMounted:{},onActivated:{},height:{},collapsible:{type:Boolean},sortable:{type:Boolean},name:{},gridColumns:{}},setup(n,{expose:e}){const t=n,i=A.computed(()=>t.displayType?t.displayType:t.typeSwitch?"card":"table"),u=A.inject("ruleModule",void 0),I=A.inject("ruleMap",void 0),o=A.computed(()=>t.rulePath&&I[t.rulePath]?I[t.rulePath]:u),b=A.inject("pageMethodMap",{}),y=A.inject("getGlobalParams",()=>{}),w=A.inject(jn),M=w?w.translateFn:null,N=A.ref(),P=(tA,rA,gA)=>{O.value[tA]&&(O.value[tA][rA]=gA)},Y=(tA,rA)=>{const gA=t.columns.find(z=>z.key===tA);gA&&(gA.hidden=!rA)},G=(tA,rA,gA,z)=>{try{o.value[tA.onClick](b,rA,gA,z),z==null||z.stopPropagation()}catch(X){console.error(X)}},K=tA=>{if(t.rowClick)try{o.value[t.rowClick](b,tA)}catch(rA){console.error(rA)}},D=tA=>{if(t.rowDbClick)try{o.value[t.rowDbClick](b,tA)}catch(rA){console.error(rA)}},E=A.ref([]),L=tA=>{E.value=tA},_=(tA,rA)=>{if(!t.selectable)return!0;try{return o.value[t.selectable](b,tA,rA)}catch(gA){console.error(gA)}return!0},v=()=>{var tA;(tA=N.value)==null||tA.clearSelection()},B=()=>O.value,p=A.ref(),d=tA=>{if(p.value=tA,!!t.handleCurrentChange)try{o.value[t.handleCurrentChange](b,tA)}catch(rA){console.error(rA)}},l=()=>p.value,g=()=>{var tA;return(tA=N.value)==null?void 0:tA.getSelectionRows()},s=async()=>!0,h=(tA,rA)=>{var z;const gA=(z=t.topBtns)==null?void 0:z.find(X=>X.key===tA);gA&&(gA.hidden=rA)},C=(tA,rA)=>{var z;const gA=(z=t.rowBtns)==null?void 0:z.find(X=>X.key===tA);gA&&(gA.condition=!rA)},a=A.ref(0),r=tA=>{a.value=tA},m=A.ref({pageNum:1,pageSize:t.defaultPageSize||5}),Q=A.ref({pageNum:1,pageSize:t.defaultPageSize||5}),x=()=>m.value,S=tA=>{let rA=!1;return tA.pageNum!==void 0&&tA.pageNum>-1&&(m.value.pageNum!==tA.pageNum&&(rA=!0),m.value.pageNum=tA.pageNum),tA.pageSize!==void 0&&tA.pageSize>-1&&(m.value.pageSize!==tA.pageSize&&(rA=!0),m.value.pageSize=tA.pageSize),{pagination:m.value,isChange:rA}},T=async()=>{if(m.value.pageNum=1,!t.sizeChange)return;const tA=Ht.ElLoading.service({target:`#${t.name}`,text:"Loading..."});try{await o.value[t.sizeChange](b,m.value),Q.value.pageNum=m.value.pageNum,Q.value.pageSize=m.value.pageSize}catch(rA){console.error(rA),m.value.pageNum=Q.value.pageNum,m.value.pageSize=Q.value.pageSize}finally{tA.close()}},$=async()=>{if(!t.pageChange)return;const tA=Ht.ElLoading.service({target:`#${t.name}`,text:"Loading..."});try{await o.value[t.pageChange](b,m.value),Q.value.pageNum=m.value.pageNum,Q.value.pageSize=m.value.pageSize}catch(rA){console.error(rA),m.value.pageNum=Q.value.pageNum,m.value.pageSize=Q.value.pageSize}finally{tA.close()}},eA=tA=>{var rA;(rA=N.value)==null||rA.setCurrentRow(tA)},W=tA=>{var rA;(rA=N.value)==null||rA.setCurrentRow(O.value[tA])},J=(tA,rA,gA)=>{t.columns.forEach(z=>{z.key===tA&&z[rA]&&(z[rA]=gA)})},O=A.ref([]),q=tA=>{O.value=tA},k=(tA={})=>{O.value.push(tA)},V=tA=>{tA>=0&&tA<O.value.length&&O.value.splice(tA,1)},H=async()=>{O.value=[...O.value]},AA=A.useTemplateRef("rootRef"),sA=A.readonly({...A.toRefs(t),setCellData:P,clearSelection:v,getData:B,getCurrentRow:l,getSelectedRows:g,addRow:k,deleteRow:V,refresh:H,validate:s,setData:q,selectRow:eA,selectRowNum:W,setTotal:r,getPagination:x,setPagination:S,setTopBtnHidden:h,setColVisible:Y,setColumn:J,setRowsBtnHidden:C,rootRef:AA,type:"table"}),oA=(tA,rA)=>{const gA=M?M(tA.key,rA):rA[tA.key];if(!tA.encrypted||!gA)return gA;const z=`${gA}`;return z.length<=4?"*".repeat(z.length):z.slice(0,-4)+"****"},dA=(tA,rA)=>{if(!tA.getTextStyle||!o.value)return{};try{return o.value[tA.getTextStyle](b,rA,tA)}catch(gA){console.error(gA)}},EA=(tA,rA)=>{if(!(!tA.getIconInfo||!o.value))try{return o.value[tA.getIconInfo](b,rA,tA)}catch(gA){console.error(gA)}},uA=(tA,rA)=>{if(!(!tA.getIconPopoverContent||!o.value))try{return o.value[tA.getIconPopoverContent](b,rA,tA)}catch(gA){console.error(gA)}},BA=(tA,rA)=>{if(!(!tA.getCustomContent||!o.value))try{return o.value[tA.getCustomContent](b,rA,tA)}catch(gA){console.error(gA)}},j=A.computed(()=>!t.rowBtns||t.rowBtns.length===0||!O.value||O.value.length===0?!1:O.value.some(tA=>{var rA;return(rA=t.rowBtns)==null?void 0:rA.some(gA=>gA.condition===void 0||gA.condition===null?!0:Rt(gA.condition,{$row:tA,$globalParams:y()}))}));if(A.onMounted(async()=>{if(!t.onMounted||!o.value)return;await A.nextTick();const tA=t.onMounted;try{o.value[tA](b)}catch(rA){console.error(rA)}}),A.onActivated(()=>{if(!t.onActivated||!o.value)return;const tA=t.onActivated;try{o.value[tA](b)}catch(rA){console.error(rA)}}),t.name){const tA=fs(t.name,sA);A.onUnmounted(()=>{tA()})}return e(sA),(tA,rA)=>{const gA=A.resolveComponent("el-table-column"),z=A.resolveComponent("el-popover"),X=A.resolveComponent("el-tooltip"),iA=A.resolveComponent("el-button"),cA=A.resolveComponent("el-pagination");return tA.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["table-render",{tableBorder:i.value==="table",[tA.name]:!0}]),ref_key:"rootRef",ref:AA,id:tA.name},[A.withDirectives(A.createElementVNode("div",null,[A.createVNode(A.unref(Ht.ElTable),{ref_key:"tableRef",ref:N,data:O.value,"highlight-current-row":"","row-key":tA.rowKey,stripe:tA.stripe,onRowClick:K,onRowDblclick:D,onSelectionChange:L,onCurrentChange:d,height:tA.height},{empty:A.withCtx(()=>[A.createElementVNode("div",mx,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),rA[2]||(rA[2]=A.createElementVNode("div",null,"No data available,please check",-1))])]),default:A.withCtx(()=>[tA.multipleSelection?(A.openBlock(),A.createBlock(gA,{key:0,type:"selection",width:"55",selectable:_})):A.createCommentVNode("",!0),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(tA.columns,CA=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:CA.key},[CA.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(gA,{key:0,prop:CA.key,"min-width":CA.minWidth,fixed:CA.fixed||!1,sortable:CA.sortable??tA.sortable??!0},{header:A.withCtx(()=>[A.createElementVNode("div",{class:"text-ellipsis",title:CA.label},A.toDisplayString(CA.label),9,Ex)]),default:A.withCtx(({row:vA,$index:GA})=>{var JA,qA,WA,ue;return[CA.type==="link"?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["text-ellipsis link-style",{"click-style":CA.onClick}]),title:oA(CA,vA),onClick:te=>G(CA,vA,GA,te)},A.toDisplayString(oA(CA,vA)),11,Qx)):CA.type==="iconText"?(A.openBlock(),A.createElementBlock("div",Ix,[CA.iconPosition==="left"?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[CA.iconPopover&&Array.isArray(uA(CA,vA))?(A.openBlock(),A.createBlock(z,{key:0},{reference:A.withCtx(()=>{var te,LA;return[A.createVNode(xe,{name:(te=EA(CA,vA))==null?void 0:te.name,color:(LA=EA(CA,vA))==null?void 0:LA.color},null,8,["name","color"])]}),default:A.withCtx(()=>[A.createVNode(A.unref(pt),{list:uA(CA,vA)||[]},null,8,["list"])]),_:2},1024)):(A.openBlock(),A.createBlock(xe,{key:1,name:(JA=EA(CA,vA))==null?void 0:JA.name,color:(qA=EA(CA,vA))==null?void 0:qA.color},null,8,["name","color"]))],64)):A.createCommentVNode("",!0),A.createElementVNode("span",{class:A.normalizeClass(["text-ellipsis",{"click-style":CA.onClick}]),title:oA(CA,vA),onClick:te=>G(CA,vA,GA,te)},A.toDisplayString(oA(CA,vA)),11,fx),CA.iconPosition==="right"?(A.openBlock(),A.createElementBlock(A.Fragment,{key:1},[CA.iconPopover&&Array.isArray(uA(CA,vA))?(A.openBlock(),A.createBlock(z,{key:0},{reference:A.withCtx(()=>{var te,LA;return[A.createVNode(xe,{name:(te=EA(CA,vA))==null?void 0:te.name,color:(LA=EA(CA,vA))==null?void 0:LA.color},null,8,["name","color"])]}),default:A.withCtx(()=>[A.createVNode(A.unref(pt),{list:uA(CA,vA)||[]},null,8,["list"])]),_:2},1024)):(A.openBlock(),A.createBlock(xe,{key:1,name:(WA=EA(CA,vA))==null?void 0:WA.name,color:(ue=EA(CA,vA))==null?void 0:ue.color},null,8,["name","color"]))],64)):A.createCommentVNode("",!0)])):CA.type==="customContent"?(A.openBlock(),A.createElementBlock("div",wx,[A.createVNode(A.unref(pt),{list:BA(CA,vA)||[]},null,8,["list"])])):(A.openBlock(),A.createElementBlock("div",{key:3,class:A.normalizeClass({"text-ellipsis":!CA.noEllipsis}),title:oA(CA,vA),style:A.normalizeStyle(dA(CA,vA))},A.toDisplayString(oA(CA,vA)),15,bx))]}),_:2},1032,["prop","min-width","fixed","sortable"]))],64))),128)),j.value&&tA.rowBtns&&tA.rowBtns.length>0?(A.openBlock(),A.createBlock(gA,{key:1,label:tA.rowBtnsLabel||"Action",fixed:"right",align:"left",width:tA.rowBtnsWidth||(tA.rowBtns.length*34+12>100?tA.rowBtns.length*34+12:100)},{default:A.withCtx(({row:CA,$index:vA})=>[A.createElementVNode("div",yx,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(tA.rowBtns,GA=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:GA.key},[GA.component==="Popover"?(A.openBlock(),A.createBlock(z,{key:0,title:GA.label,trigger:"click","popper-class":"btn-popover",width:"400"},{reference:A.withCtx(()=>[GA.condition===void 0||GA.condition===null||A.unref(Rt)(GA.condition,{$row:CA,$globalParams:A.unref(y)()})?(A.openBlock(),A.createBlock(iA,{key:0,disabled:GA.disabled,link:"",size:"small",type:GA.type,onClick:A.withModifiers(JA=>G(GA,CA,vA,JA),["stop"])},{default:A.withCtx(()=>[A.createVNode(X,{class:"box-item",effect:"dark",content:GA.label,placement:"top","popper-class":"low-tsp"},{default:A.withCtx(()=>[GA.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:GA.icon.name,color:GA.icon.color},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"]),GA.buttonText?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:GA.buttonText.color,fontSize:"14px"})},A.toDisplayString(A.unref(Rt)(GA.buttonText.text,{$row:CA,$globalParams:A.unref(y)()})),5)):A.createCommentVNode("",!0)]),_:2},1032,["disabled","type","onClick"])):A.createCommentVNode("",!0)]),default:A.withCtx(()=>[A.createElementVNode("div",null,[A.createVNode(A.unref(pt),{list:GA.children},null,8,["list"])])]),_:2},1032,["title"])):(A.openBlock(),A.createElementBlock(A.Fragment,{key:1},[GA.condition===void 0||GA.condition===null||A.unref(Rt)(GA.condition,{$row:CA,$globalParams:A.unref(y)()})?(A.openBlock(),A.createBlock(iA,{key:0,disabled:GA.disabled,link:"",size:"small",type:GA.type,onClick:A.withModifiers(JA=>G(GA,CA,vA,JA),["stop"])},{default:A.withCtx(()=>[A.createVNode(X,{class:"box-item",effect:"dark",content:GA.label,placement:"top","popper-class":"low-tsp"},{default:A.withCtx(()=>[GA.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:GA.icon.name,color:GA.icon.color},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"]),GA.buttonText?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:GA.buttonText.color,fontSize:"14px"})},A.toDisplayString(A.unref(Rt)(GA.buttonText.text,{$row:CA,$globalParams:A.unref(y)()})),5)):A.createCommentVNode("",!0)]),_:2},1032,["disabled","type","onClick"])):A.createCommentVNode("",!0)],64))],64))),128))])]),_:1},8,["label","width"])):A.createCommentVNode("",!0)]),_:1},8,["data","row-key","stripe","height"])],512),[[A.vShow,i.value==="table"]]),A.withDirectives(A.createVNode(ic,A.mergeProps({data:O.value},t,{getColText:oA}),null,16,["data"]),[[A.vShow,i.value==="card"]]),A.createElementVNode("div",{class:A.normalizeClass(["pagination-wrapper",{hidePagination:(tA.hiddenPagination||O.value.length===0)&&!tA.height,transparentPagination:(tA.hiddenPagination||O.value.length===0)&&tA.height,cardlistPadding:i.value==="card"}])},[A.createVNode(cA,{layout:tA.paginationLayout||"total,sizes, prev, pager, next,jumper",total:a.value,"page-sizes":tA.pageSizes||[5,6,10,20,30,40],"default-page-size":tA.defaultPageSize,"current-page":m.value.pageNum,"onUpdate:currentPage":rA[0]||(rA[0]=CA=>m.value.pageNum=CA),"page-size":m.value.pageSize,"onUpdate:pageSize":rA[1]||(rA[1]=CA=>m.value.pageSize=CA),"pager-count":Number(tA.pagerCount)||5,onSizeChange:T,onCurrentChange:$},null,8,["layout","total","page-sizes","default-page-size","current-page","page-size","pager-count"])],2)],10,Bx))}}}),[["__scopeId","data-v-c241f51c"]])},Symbol.toStringTag,{value:"Module"})),vx=["id"],kx={class:"left-part"},_x={class:"title"},Mx={class:"right-part"},xx={key:0},Sx={key:1,class:"switch-panel"},Nx={key:3},Fx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"CurdCard",props:{name:{},children:{},defaultCollapse:{type:Boolean},collapsible:{type:Boolean},onCollapsed:{},typeSwitch:{type:Boolean},title:{},btns:{},type:{},mainIcon:{},extraIcons:{},displayType:{},radioList:{},onRadioChange:{},radioDefault:{},formSlots:{},style:{type:[Boolean,null,String,Object,Array]},hasSearchInput:{type:Boolean},searchPlaceholder:{},handleSearch:{},searchInputChange:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=A.ref(""),u=n,I=A.ref(u.radioDefault??"2"),o=K=>{if(K&&e)try{e[K](t)}catch(D){console.error(D+`
1650
+ funcName: ${K}`)}},b=K=>{u.onRadioChange&&e&&e[u.onRadioChange](t,K)},y=()=>{w.value=!w.value,u.onCollapsed&&e&&e[u.onCollapsed](t,w.value)},w=A.ref(u.defaultCollapse??!1);A.watch(()=>u.defaultCollapse,()=>{w.value=u.defaultCollapse??!1});const M=A.ref(u.displayType||(u.typeSwitch?"card":"table")),N=It(),P=K=>{M.value=K;const D=Si(N.schema.items,u.name),E=L=>{L.forEach(_=>{_.component==="Table"&&_.props&&(_.props.displayType=K),_.children&&_.children.length>0&&E(_.children)})};D&&D.children&&E(D.children)},Y=K=>{u.handleSearch&&e&&e[u.handleSearch](t,K)},G=K=>{u.searchInputChange&&e&&e[u.searchInputChange](t,K)};return P(M.value),(K,D)=>{const E=A.resolveComponent("el-radio"),L=A.resolveComponent("el-radio-group"),_=A.resolveComponent("el-tooltip"),v=A.resolveComponent("el-input"),B=A.resolveComponent("el-collapse-transition");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(["crm-curd-card",{gridItem:K.type==="gridItem"}]),style:A.normalizeStyle(K.style),id:K.name},[A.createElementVNode("div",{class:A.normalizeClass(["card-header",{inline:K.type==="inline",mix:K.type==="mix",default:K.type==="default",gridItem:K.type==="gridItem",collapsedPadding:w.value&&K.onCollapsed,"has-search-input":K.hasSearchInput}])},[A.createElementVNode("div",kx,[K.mainIcon?(A.openBlock(),A.createBlock(xe,{key:0,class:"title-icon",size:"large",name:K.mainIcon.name,color:K.mainIcon.color},null,8,["name","color"])):A.createCommentVNode("",!0),A.createElementVNode("span",_x,A.toDisplayString(K.title),1),K.radioList?(A.openBlock(),A.createBlock(L,{key:1,class:"ml-9",modelValue:I.value,"onUpdate:modelValue":D[0]||(D[0]=p=>I.value=p),onChange:D[1]||(D[1]=p=>b(I.value))},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(K.radioList,p=>(A.openBlock(),A.createBlock(E,{value:p.value,key:p.value},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(p.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])):A.createCommentVNode("",!0),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(K.extraIcons,p=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:p.name},[p.tips?(A.openBlock(),A.createBlock(_,{key:0,content:p.tips,placement:"right"},{default:A.withCtx(()=>[A.createVNode(xe,{class:"extra-icon",name:p.name,color:p.color,onClick:d=>o(p.onClick)},null,8,["name","color","onClick"])]),_:2},1032,["content"])):(A.openBlock(),A.createBlock(xe,{key:1,class:"extra-icon",name:p.name,color:p.color,onClick:d=>o(p.onClick)},null,8,["name","color","onClick"]))],64))),128))]),K.hasSearchInput?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["card-search-input",{collapsedPadding:w.value&&K.onCollapsed}])},[A.createVNode(v,{modelValue:i.value,"onUpdate:modelValue":D[2]||(D[2]=p=>i.value=p),placeholder:K.searchPlaceholder,size:"large",onInput:G,onKeyup:A.withKeys(Y,["enter"])},{prefix:A.withCtx(()=>D[5]||(D[5]=[])),suffix:A.withCtx(()=>[A.createVNode(xe,{class:"cursor-pointer",name:"icon-lujing2",color:"#666666",size:"normal",onClick:Y})]),_:1},8,["modelValue","placeholder"])],2)):A.createCommentVNode("",!0),A.createElementVNode("div",Mx,[K.formSlots?(A.openBlock(),A.createElementBlock("div",xx,[A.createVNode(A.unref(pt),{list:K.formSlots},null,8,["list"])])):A.createCommentVNode("",!0),K.typeSwitch?(A.openBlock(),A.createElementBlock("div",Sx,[A.createElementVNode("div",{class:A.normalizeClass(["switch-icon-wrapper",{active:M.value==="card"}]),onClick:D[3]||(D[3]=p=>P("card"))},[A.createVNode(xe,{name:"icon-kapian"})],2),A.createElementVNode("div",{class:A.normalizeClass(["switch-icon-wrapper",{active:M.value==="table"}]),onClick:D[4]||(D[4]=p=>P("table"))},[A.createVNode(xe,{name:"icon-biaoge"})],2)])):A.createCommentVNode("",!0),K.collapsible?(A.openBlock(),A.createElementBlock("div",{key:2,class:A.normalizeClass(["collapse-icon-wrapper",{collapsed:w.value}]),onClick:y},[A.createVNode(xe,{name:"icon-shaixuan"})],2)):A.createCommentVNode("",!0),K.btns&&K.btns.length>0?(A.openBlock(),A.createElementBlock("div",Nx,[A.createVNode(A.unref(lo),{btns:K.btns||[]},null,8,["btns"])])):A.createCommentVNode("",!0)])],2),K.onCollapsed?(A.openBlock(),A.createBlock(A.unref(pt),{key:1,list:K.children},null,8,["list"])):(A.openBlock(),A.createBlock(B,{key:0},{default:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",null,[A.createVNode(A.unref(pt),{list:K.children},null,8,["list"])],512),[[A.vShow,!w.value]])]),_:1}))],14,vx)}}}),[["__scopeId","data-v-e9f5991b"]])},Symbol.toStringTag,{value:"Module"})),Rx={key:0,class:"dropdown-icon-wrapper"},Lx={key:1,class:"expansion-icon-wrapper"},Gx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Wrapper",props:{children:{},style:{type:[Boolean,null,String,Object,Array]},innerStyle:{type:[Boolean,null,String,Object,Array]},type:{},collapse:{type:Boolean},dropdown:{type:Boolean},expansion:{type:Boolean},expansionIconTop:{},onDropdownChange:{},onExpand:{}},setup(n){const e=n,{ruleModule:t,pageMethodMap:i}=ei(),u=A.ref(!1),I=()=>{if(e.onDropdownChange){u.value=!u.value;try{t[e.onDropdownChange](i,u.value)}catch(b){console.error(b)}}},o=()=>{if(e.onExpand)try{t[e.onExpand](i)}catch(b){console.error(b)}};return(b,y)=>{const w=A.resolveComponent("el-collapse-transition");return A.openBlock(),A.createElementBlock("div",{style:A.normalizeStyle(b.style)},[A.createVNode(w,null,{default:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",{class:A.normalizeClass({normal:b.type==="normal",onlytable:b.type==="onlytable",dropdownChildren:b.type==="dropdown-children",expansionWrapper:b.expansion}),style:A.normalizeStyle(b.innerStyle)},[A.createVNode(A.unref(pt),{list:b.children},null,8,["list"]),b.dropdown?(A.openBlock(),A.createElementBlock("div",Rx,[A.createVNode(xe,{name:"icon-xialaliebiao",color:"#666666",onClick:I,class:A.normalizeClass({reversed:u.value})},null,8,["class"])])):A.createCommentVNode("",!0),b.expansion?(A.openBlock(),A.createElementBlock("div",Lx,[A.createVNode(xe,{name:"icon-shuangxiangjiantou",color:"#666666",onClick:o})])):A.createCommentVNode("",!0)],6),[[A.vShow,!b.collapse]])]),_:1})],4)}}}),[["__scopeId","data-v-61efcb0f"]])},Symbol.toStringTag,{value:"Module"})),Px={class:"content"},Hx={class:"product-list"},Kx={class:"attribute-list"},Tx={key:0,class:"attribute-list-item"},Ux={class:"product-title attribute-title"},Yx={class:"attribute-item-list"},Ox={class:"attribute-label"},$x={class:"attribute-value"},zx=A.defineComponent({__name:"OfferDetailItem",props:{data:{},btns:{},index:{}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-popover");return A.openBlock(),A.createBlock(i,{"popper-class":"offer-detail",placement:"right"},{reference:A.withCtx(()=>[A.createVNode(Hd,{data:e.data,btns:e.btns,index:e.index},null,8,["data","btns","index"])]),default:A.withCtx(()=>[A.createElementVNode("div",Px,[t[0]||(t[0]=A.createElementVNode("div",{class:"product-title"},"Product",-1)),A.createElementVNode("div",Hx,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(e.data.product,u=>(A.openBlock(),A.createElementBlock("div",{class:"product-item",key:u.label},A.toDisplayString(u.label),1))),128))]),A.createElementVNode("div",Kx,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(e.data.product,u=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:u.label},[u.children.length>0?(A.openBlock(),A.createElementBlock("div",Tx,[A.createElementVNode("div",Ux,A.toDisplayString(u.label),1),A.createElementVNode("div",Yx,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.children,I=>(A.openBlock(),A.createElementBlock("div",{class:"attribute-item",key:I.label},[A.createElementVNode("div",Ox,A.toDisplayString(I.label),1),A.createElementVNode("div",$x,A.toDisplayString(I.value||"--"),1)]))),128))])])):A.createCommentVNode("",!0)],64))),128))])])]),_:1})}}}),Jx={key:0,class:"empty-content"},Zx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"OfferDetails",props:{title:{},key:{},rulePath:{},rowKey:{},showDynamicSearch:{type:Boolean},multipleSelection:{type:Boolean},highlightCurrentRow:{type:Boolean},"highlight-current-row":{type:Boolean},stripe:{type:Boolean},rowClick:{},rowDbClick:{},sizeChange:{},pageChange:{},topBtns:{},rowBtns:{},rowBtnsLabel:{},rowBtnsWidth:{},hidden:{type:Boolean},hiddenPagination:{type:Boolean},handleCurrentChange:{},selectable:{},pageSizes:{},pagerCount:{},paginationLayout:{},defaultPageSize:{},typeSwitch:{type:Boolean},displayType:{},onMounted:{},onActivated:{},height:{},collapsible:{type:Boolean},sortable:{type:Boolean},gridColumns:{default:3},gap:{default:16},data:{},columns:{},getColText:{}},setup(n){var N,P;const e=n,t=A.ref(),i=A.ref([]),u=(N=e.columns.find(Y=>Y.position==="title"))==null?void 0:N.key,I=(P=e.columns.find(Y=>Y.position==="subTitle"))==null?void 0:P.key,o=e.columns.find(Y=>Y.position==="footer"),b=Y=>{const G=[];return Y.children&&Y.children.length>0&&Y.children.forEach(K=>{const D={label:K.PRODUCT_ITEM_NAME,children:[]};K.children&&K.children.length>0&&K.children.forEach(E=>{D.children.push({label:E.PRODUCT_ITEM_NAME,value:E.ACTION})}),G.push(D)}),G};function y(Y){const G={},K=[];return Y.forEach(D=>{G[D.PRODUCT_ITEM_ID]={...D,children:[]}}),Y.forEach(D=>{const E=G[D.PRODUCT_ITEM_ID],L=D.PARENT_PRODUCT_ITEM_ID;L===0||!G[L]?K.push(E):G[L].children.push(E)}),K}const w=A.inject(jn),M=w?w.translateFn:null;return A.watchEffect(()=>{if(e.data){const Y=y(e.data);t.value=Y.map(G=>{const K={content:[]};return u&&(K.title=M?M(u,G):G[u],K.titleColor="var(--el-color-primary)"),I&&(K.subTitle=M?M(I,G):G[I]),o&&(K.footer={icon:o.footerIcon||"icon-tishi",text:`${o.label}: ${M?M(o.key,G):G[o.key]}`}),G.children&&(K.product=b(G)),e.columns.forEach(D=>{D.position==="content"&&K.content.push({label:D.label,value:M?M(D.key,G):G[D.key]})}),K})}}),A.onMounted(()=>{var Y;i.value=(Y=e.rowBtns)==null?void 0:Y.map(G=>({icon:G.icon&&G.icon.name?G.icon.name:"icon-tishi",label:G.label,onClick:G.onClick}))}),(Y,G)=>(A.openBlock(),A.createElementBlock(A.Fragment,null,[A.createElementVNode("div",{class:"card-list",style:A.normalizeStyle({"--columns":Y.gridColumns,"--gap":Y.gap+"px"})},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(t.value,(K,D)=>(A.openBlock(),A.createElementBlock("div",{class:"card-list-item",key:D},[A.createVNode(zx,{data:K,btns:i.value,index:D},null,8,["data","btns","index"])]))),128))],4),!Y.data||Y.data.length===0?(A.openBlock(),A.createElementBlock("div",Jx,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),G[0]||(G[0]=A.createElementVNode("div",null,"No data available,please check",-1))])):A.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-43ded0ba"]])},Symbol.toStringTag,{value:"Module"})),Wx={class:"progress"},jx={class:"timeline-content"},qx={class:"timeline-content__title"},Xx={key:0,class:"empty-content"},Vx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Progress",props:{data:{}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-timeline-item"),u=A.resolveComponent("el-timeline");return A.openBlock(),A.createElementBlock("div",Wx,[A.createVNode(u,null,{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(e.data,(I,o)=>(A.openBlock(),A.createBlock(i,{key:o,size:"large"},{dot:A.withCtx(()=>[A.createVNode(xe,{name:I.iconName,size:"large"},null,8,["name"])]),default:A.withCtx(()=>[A.createElementVNode("div",jx,[A.createElementVNode("div",qx,[A.createElementVNode("span",null,A.toDisplayString(I.title),1),A.createElementVNode("span",null,A.toDisplayString(I.timestamp),1)]),A.createTextVNode(" "+A.toDisplayString(I.content),1)])]),_:2},1024))),128))]),_:1}),!e.data||e.data.length===0?(A.openBlock(),A.createElementBlock("div",Xx,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),t[0]||(t[0]=A.createElementVNode("div",null,"No data available,please check",-1))])):A.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-088a0692"]])},Symbol.toStringTag,{value:"Module"})),AS={class:"log-list"},eS={class:"title-part"},tS={class:"title"},nS={class:"sub-title"},iS={class:"content"},oS={key:0},rS=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"LogList",props:{content:{}},setup(n){return(e,t)=>(A.openBlock(),A.createElementBlock("div",AS,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(e.content,i=>{var u;return A.openBlock(),A.createElementBlock("div",{class:"log-list-item",key:i.id},[A.createElementVNode("div",{class:"left-bar",style:A.normalizeStyle({backgroundColor:i.color})},null,4),A.createElementVNode("div",eS,[A.createElementVNode("div",{class:"circle",style:A.normalizeStyle({backgroundColor:i.color})},A.toDisplayString((u=i.title)==null?void 0:u[0]),5),A.createElementVNode("div",tS,A.toDisplayString(i.title),1),A.createElementVNode("div",nS,A.toDisplayString(i.subTitle),1)]),A.createElementVNode("div",iS,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(i.content,(I,o)=>(A.openBlock(),A.createElementBlock("span",{key:o,class:A.normalizeClass({bold:I.style==="bold",normal:I.style==="normal"})},[A.createTextVNode(A.toDisplayString(I.text),1),o!==i.content.length-1?(A.openBlock(),A.createElementBlock("span",oS," ")):A.createCommentVNode("",!0)],2))),128))])])}),128))]))}}),[["__scopeId","data-v-646d4f4d"]])},Symbol.toStringTag,{value:"Module"})),aS=["infinite-scroll-disabled"],sS=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"InfiniteScroll",props:{children:{},load:{},disabled:{type:Boolean},style:{type:[Boolean,null,String,Object,Array]}},setup(n){const{ruleModule:e,pageMethodMap:t}=ei(),i=n,u=async()=>{try{await e[i.load](t)}catch(I){console.error(I)}};return(I,o)=>{const b=A.resolveDirective("infinite-scroll");return A.withDirectives((A.openBlock(),A.createElementBlock("div",{"infinite-scroll-disabled":I.disabled,"infinite-scroll-immediate":!1,"infinite-scroll-distance":20,class:"infinite-scroll-wrapper",style:A.normalizeStyle(I.style)},[A.createVNode(A.unref(pt),{list:I.children},null,8,["list"])],12,aS)),[[b,u]])}}}),[["__scopeId","data-v-6746ff5d"]])},Symbol.toStringTag,{value:"Module"}));yt.$options=jn,yt.FormDesign=wC,yt.FormRender=fn,yt.PageRender=ag,yt.TableRender=rg,yt.default=O8,yt.useFormInstance=It,yt.useRuleContext=ei,Object.defineProperties(yt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});