@wangliang139/klinecharts-pro 0.2.22 → 0.2.24

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.
@@ -1,30 +1,30 @@
1
- (function(Mt,ue){typeof exports=="object"&&typeof module<"u"?ue(exports,require("klinecharts")):typeof define=="function"&&define.amd?define(["exports","klinecharts"],ue):(Mt=typeof globalThis<"u"?globalThis:Mt||self,ue(Mt.klinechartspro={},Mt.klinecharts))})(this,function(Mt,ue){"use strict";var $A=Object.defineProperty;var SA=(Mt,ue,gn)=>ue in Mt?$A(Mt,ue,{enumerable:!0,configurable:!0,writable:!0,value:gn}):Mt[ue]=gn;var wn=(Mt,ue,gn)=>(SA(Mt,typeof ue!="symbol"?ue+"":ue,gn),gn);function gn(e,n,i){const a=(e.x-n.x)*Math.cos(i)-(e.y-n.y)*Math.sin(i)+n.x,s=(e.x-n.x)*Math.sin(i)+(e.y-n.y)*Math.cos(i)+n.y;return{x:a,y:s}}function g0(e,n){if(e.length>1){let i;return e[0].x===e[1].x&&e[0].y!==e[1].y?e[0].y<e[1].y?i={x:e[0].x,y:n.height}:i={x:e[0].x,y:0}:e[0].x>e[1].x?i={x:0,y:ue.utils.getLinearYFromCoordinates(e[0],e[1],{x:0,y:e[0].y})}:i={x:n.width,y:ue.utils.getLinearYFromCoordinates(e[0],e[1],{x:n.width,y:e[0].y})},{coordinates:[e[0],i]}}return[]}function Pa(e,n){const i=Math.abs(e.x-n.x),a=Math.abs(e.y-n.y);return Math.sqrt(i*i+a*a)}var Pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function p0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var B1={exports:{}};/**
1
+ (function(Pt,fe){typeof exports=="object"&&typeof module<"u"?fe(exports,require("klinecharts")):typeof define=="function"&&define.amd?define(["exports","klinecharts"],fe):(Pt=typeof globalThis<"u"?globalThis:Pt||self,fe(Pt.klinechartspro={},Pt.klinecharts))})(this,function(Pt,fe){"use strict";var MA=Object.defineProperty;var TA=(Pt,fe,mn)=>fe in Pt?MA(Pt,fe,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Pt[fe]=mn;var kn=(Pt,fe,mn)=>(TA(Pt,typeof fe!="symbol"?fe+"":fe,mn),mn);function mn(e,n,i){const o=(e.x-n.x)*Math.cos(i)-(e.y-n.y)*Math.sin(i)+n.x,s=(e.x-n.x)*Math.sin(i)+(e.y-n.y)*Math.cos(i)+n.y;return{x:o,y:s}}function h0(e,n){if(e.length>1){let i;return e[0].x===e[1].x&&e[0].y!==e[1].y?e[0].y<e[1].y?i={x:e[0].x,y:n.height}:i={x:e[0].x,y:0}:e[0].x>e[1].x?i={x:0,y:fe.utils.getLinearYFromCoordinates(e[0],e[1],{x:0,y:e[0].y})}:i={x:n.width,y:fe.utils.getLinearYFromCoordinates(e[0],e[1],{x:n.width,y:e[0].y})},{coordinates:[e[0],i]}}return[]}function Oa(e,n){const i=Math.abs(e.x-n.x),o=Math.abs(e.y-n.y);return Math.sqrt(i*i+o*o)}var Rn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function g0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var B1={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
- */B1.exports,function(e,n){(function(){var i,a="4.18.1",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="Invalid `variable` option passed into `_.template`",d="Invalid `imports` option passed into `_.template`",g="__lodash_hash_undefined__",_=500,y="__lodash_placeholder__",b=1,k=2,v=4,w=1,L=2,$=1,T=2,P=4,D=8,U=16,X=32,Y=64,E=128,z=256,V=512,Q=30,te="...",ee=800,Pe=16,oe=1,_t=2,wt=3,at=1/0,nt=9007199254740991,$e=17976931348623157e292,Ve=0/0,ze=4294967295,rt=ze-1,ie=ze>>>1,Ae=[["ary",E],["bind",$],["bindKey",T],["curry",D],["curryRight",U],["flip",V],["partial",X],["partialRight",Y],["rearg",z]],ce="[object Arguments]",De="[object Array]",st="[object AsyncFunction]",Xe="[object Boolean]",Pt="[object Date]",on="[object DOMException]",Nn="[object Error]",Wn="[object Function]",er="[object GeneratorFunction]",mt="[object Map]",Ie="[object Number]",Lt="[object Null]",Je="[object Object]",It="[object Promise]",an="[object Proxy]",it="[object RegExp]",I="[object Set]",j="[object String]",xe="[object Symbol]",ge="[object Undefined]",ke="[object WeakMap]",$t="[object WeakSet]",Ht="[object ArrayBuffer]",Et="[object DataView]",Ye="[object Float32Array]",Yt="[object Float64Array]",Me="[object Int8Array]",St="[object Int16Array]",ye="[object Int32Array]",et="[object Uint8Array]",Ue="[object Uint8ClampedArray]",Dt="[object Uint16Array]",C1="[object Uint32Array]",Vb=/\b__p \+= '';/g,Qb=/\b(__p \+=) '' \+/g,jb=/(__e\(.*?\)|\b__t\)) \+\n'';/g,k5=/&(?:amp|lt|gt|quot|#39);/g,A5=/[&<>"']/g,qb=RegExp(k5.source),Xb=RegExp(A5.source),Jb=/<%-([\s\S]+?)%>/g,eC=/<%([\s\S]+?)%>/g,M5=/<%=([\s\S]+?)%>/g,tC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nC=/^\w*$/,rC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vo=/[\\^$.*+?()[\]{}|]/g,iC=RegExp(vo.source),bo=/^\s+/,oC=/\s/,aC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,sC=/\{\n\/\* \[wrapped with (.+)\] \*/,lC=/,? & /,cC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,T5=/[()=,{}\[\]\/\s]/,uC=/\\(\\)?/g,fC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,O5=/\w*$/,dC=/^[-+]0x[0-9a-f]+$/i,hC=/^0b[01]+$/i,gC=/^\[object .+?Constructor\]$/,pC=/^0o[0-7]+$/i,mC=/^(?:0|[1-9]\d*)$/,yC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ki=/($^)/,_C=/['\n\r\u2028\u2029\\]/g,Ai="\\ud800-\\udfff",vC="\\u0300-\\u036f",bC="\\ufe20-\\ufe2f",CC="\\u20d0-\\u20ff",P5=vC+bC+CC,I5="\\u2700-\\u27bf",E5="a-z\\xdf-\\xf6\\xf8-\\xff",xC="\\xac\\xb1\\xd7\\xf7",wC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",LC="\\u2000-\\u206f",$C=" \\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",D5="A-Z\\xc0-\\xd6\\xd8-\\xde",R5="\\ufe0e\\ufe0f",B5=xC+wC+LC+$C,Co="['’]",SC="["+Ai+"]",F5="["+B5+"]",Mi="["+P5+"]",z5="\\d+",kC="["+I5+"]",N5="["+E5+"]",W5="[^"+Ai+B5+z5+I5+E5+D5+"]",xo="\\ud83c[\\udffb-\\udfff]",AC="(?:"+Mi+"|"+xo+")",K5="[^"+Ai+"]",wo="(?:\\ud83c[\\udde6-\\uddff]){2}",Lo="[\\ud800-\\udbff][\\udc00-\\udfff]",Vr="["+D5+"]",U5="\\u200d",Z5="(?:"+N5+"|"+W5+")",MC="(?:"+Vr+"|"+W5+")",H5="(?:"+Co+"(?:d|ll|m|re|s|t|ve))?",Y5="(?:"+Co+"(?:D|LL|M|RE|S|T|VE))?",G5=AC+"?",V5="["+R5+"]?",TC="(?:"+U5+"(?:"+[K5,wo,Lo].join("|")+")"+V5+G5+")*",OC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",PC="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Q5=V5+G5+TC,IC="(?:"+[kC,wo,Lo].join("|")+")"+Q5,EC="(?:"+[K5+Mi+"?",Mi,wo,Lo,SC].join("|")+")",DC=RegExp(Co,"g"),RC=RegExp(Mi,"g"),$o=RegExp(xo+"(?="+xo+")|"+EC+Q5,"g"),BC=RegExp([Vr+"?"+N5+"+"+H5+"(?="+[F5,Vr,"$"].join("|")+")",MC+"+"+Y5+"(?="+[F5,Vr+Z5,"$"].join("|")+")",Vr+"?"+Z5+"+"+H5,Vr+"+"+Y5,PC,OC,z5,IC].join("|"),"g"),FC=RegExp("["+U5+Ai+P5+R5+"]"),zC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,NC=["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"],WC=-1,Ge={};Ge[Ye]=Ge[Yt]=Ge[Me]=Ge[St]=Ge[ye]=Ge[et]=Ge[Ue]=Ge[Dt]=Ge[C1]=!0,Ge[ce]=Ge[De]=Ge[Ht]=Ge[Xe]=Ge[Et]=Ge[Pt]=Ge[Nn]=Ge[Wn]=Ge[mt]=Ge[Ie]=Ge[Je]=Ge[it]=Ge[I]=Ge[j]=Ge[ke]=!1;var Ze={};Ze[ce]=Ze[De]=Ze[Ht]=Ze[Et]=Ze[Xe]=Ze[Pt]=Ze[Ye]=Ze[Yt]=Ze[Me]=Ze[St]=Ze[ye]=Ze[mt]=Ze[Ie]=Ze[Je]=Ze[it]=Ze[I]=Ze[j]=Ze[xe]=Ze[et]=Ze[Ue]=Ze[Dt]=Ze[C1]=!0,Ze[Nn]=Ze[Wn]=Ze[ke]=!1;var KC={À:"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"},UC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ZC={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},HC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},YC=parseFloat,GC=parseInt,j5=typeof Pn=="object"&&Pn&&Pn.Object===Object&&Pn,VC=typeof self=="object"&&self&&self.Object===Object&&self,vt=j5||VC||Function("return this")(),So=n&&!n.nodeType&&n,pr=So&&!0&&e&&!e.nodeType&&e,q5=pr&&pr.exports===So,ko=q5&&j5.process,sn=function(){try{var A=pr&&pr.require&&pr.require("util").types;return A||ko&&ko.binding&&ko.binding("util")}catch{}}(),X5=sn&&sn.isArrayBuffer,J5=sn&&sn.isDate,e2=sn&&sn.isMap,t2=sn&&sn.isRegExp,n2=sn&&sn.isSet,r2=sn&&sn.isTypedArray;function Gt(A,R,O){switch(O.length){case 0:return A.call(R);case 1:return A.call(R,O[0]);case 2:return A.call(R,O[0],O[1]);case 3:return A.call(R,O[0],O[1],O[2])}return A.apply(R,O)}function QC(A,R,O,J){for(var fe=-1,Ee=A==null?0:A.length;++fe<Ee;){var gt=A[fe];R(J,gt,O(gt),A)}return J}function Vt(A,R){for(var O=-1,J=A==null?0:A.length;++O<J&&R(A[O],O,A)!==!1;);return A}function jC(A,R){for(var O=A==null?0:A.length;O--&&R(A[O],O,A)!==!1;);return A}function i2(A,R){for(var O=-1,J=A==null?0:A.length;++O<J;)if(!R(A[O],O,A))return!1;return!0}function tr(A,R){for(var O=-1,J=A==null?0:A.length,fe=0,Ee=[];++O<J;){var gt=A[O];R(gt,O,A)&&(Ee[fe++]=gt)}return Ee}function Ti(A,R){var O=A==null?0:A.length;return!!O&&Qr(A,R,0)>-1}function Ao(A,R,O){for(var J=-1,fe=A==null?0:A.length;++J<fe;)if(O(R,A[J]))return!0;return!1}function Qe(A,R){for(var O=-1,J=A==null?0:A.length,fe=Array(J);++O<J;)fe[O]=R(A[O],O,A);return fe}function nr(A,R){for(var O=-1,J=R.length,fe=A.length;++O<J;)A[fe+O]=R[O];return A}function Mo(A,R,O,J){var fe=-1,Ee=A==null?0:A.length;for(J&&Ee&&(O=A[++fe]);++fe<Ee;)O=R(O,A[fe],fe,A);return O}function qC(A,R,O,J){var fe=A==null?0:A.length;for(J&&fe&&(O=A[--fe]);fe--;)O=R(O,A[fe],fe,A);return O}function To(A,R){for(var O=-1,J=A==null?0:A.length;++O<J;)if(R(A[O],O,A))return!0;return!1}var XC=Oo("length");function JC(A){return A.split("")}function ex(A){return A.match(cC)||[]}function o2(A,R,O){var J;return O(A,function(fe,Ee,gt){if(R(fe,Ee,gt))return J=Ee,!1}),J}function Oi(A,R,O,J){for(var fe=A.length,Ee=O+(J?1:-1);J?Ee--:++Ee<fe;)if(R(A[Ee],Ee,A))return Ee;return-1}function Qr(A,R,O){return R===R?dx(A,R,O):Oi(A,a2,O)}function tx(A,R,O,J){for(var fe=O-1,Ee=A.length;++fe<Ee;)if(J(A[fe],R))return fe;return-1}function a2(A){return A!==A}function s2(A,R){var O=A==null?0:A.length;return O?Io(A,R)/O:Ve}function Oo(A){return function(R){return R==null?i:R[A]}}function Po(A){return function(R){return A==null?i:A[R]}}function l2(A,R,O,J,fe){return fe(A,function(Ee,gt,We){O=J?(J=!1,Ee):R(O,Ee,gt,We)}),O}function nx(A,R){var O=A.length;for(A.sort(R);O--;)A[O]=A[O].value;return A}function Io(A,R){for(var O,J=-1,fe=A.length;++J<fe;){var Ee=R(A[J]);Ee!==i&&(O=O===i?Ee:O+Ee)}return O}function Eo(A,R){for(var O=-1,J=Array(A);++O<A;)J[O]=R(O);return J}function rx(A,R){return Qe(R,function(O){return[O,A[O]]})}function c2(A){return A&&A.slice(0,h2(A)+1).replace(bo,"")}function Qt(A){return function(R){return A(R)}}function Do(A,R){return Qe(R,function(O){return A[O]})}function x1(A,R){return A.has(R)}function u2(A,R){for(var O=-1,J=A.length;++O<J&&Qr(R,A[O],0)>-1;);return O}function f2(A,R){for(var O=A.length;O--&&Qr(R,A[O],0)>-1;);return O}function ix(A,R){for(var O=A.length,J=0;O--;)A[O]===R&&++J;return J}var ox=Po(KC),ax=Po(UC);function sx(A){return"\\"+HC[A]}function lx(A,R){return A==null?i:A[R]}function jr(A){return FC.test(A)}function cx(A){return zC.test(A)}function ux(A){for(var R,O=[];!(R=A.next()).done;)O.push(R.value);return O}function Ro(A){var R=-1,O=Array(A.size);return A.forEach(function(J,fe){O[++R]=[fe,J]}),O}function d2(A,R){return function(O){return A(R(O))}}function rr(A,R){for(var O=-1,J=A.length,fe=0,Ee=[];++O<J;){var gt=A[O];(gt===R||gt===y)&&(A[O]=y,Ee[fe++]=O)}return Ee}function Pi(A){var R=-1,O=Array(A.size);return A.forEach(function(J){O[++R]=J}),O}function fx(A){var R=-1,O=Array(A.size);return A.forEach(function(J){O[++R]=[J,J]}),O}function dx(A,R,O){for(var J=O-1,fe=A.length;++J<fe;)if(A[J]===R)return J;return-1}function hx(A,R,O){for(var J=O+1;J--;)if(A[J]===R)return J;return J}function qr(A){return jr(A)?px(A):XC(A)}function _n(A){return jr(A)?mx(A):JC(A)}function h2(A){for(var R=A.length;R--&&oC.test(A.charAt(R)););return R}var gx=Po(ZC);function px(A){for(var R=$o.lastIndex=0;$o.test(A);)++R;return R}function mx(A){return A.match($o)||[]}function yx(A){return A.match(BC)||[]}var _x=function A(R){R=R==null?vt:Xr.defaults(vt.Object(),R,Xr.pick(vt,NC));var O=R.Array,J=R.Date,fe=R.Error,Ee=R.Function,gt=R.Math,We=R.Object,Bo=R.RegExp,vx=R.String,ln=R.TypeError,Ii=O.prototype,bx=Ee.prototype,Jr=We.prototype,Ei=R["__core-js_shared__"],Di=bx.toString,Re=Jr.hasOwnProperty,Cx=0,g2=function(){var t=/[^.]+$/.exec(Ei&&Ei.keys&&Ei.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ri=Jr.toString,xx=Di.call(We),wx=vt._,Lx=Bo("^"+Di.call(Re).replace(vo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bi=q5?R.Buffer:i,ir=R.Symbol,Fi=R.Uint8Array,p2=Bi?Bi.allocUnsafe:i,zi=d2(We.getPrototypeOf,We),m2=We.create,y2=Jr.propertyIsEnumerable,Ni=Ii.splice,_2=ir?ir.isConcatSpreadable:i,w1=ir?ir.iterator:i,mr=ir?ir.toStringTag:i,Wi=function(){try{var t=Cr(We,"defineProperty");return t({},"",{}),t}catch{}}(),$x=R.clearTimeout!==vt.clearTimeout&&R.clearTimeout,Sx=J&&J.now!==vt.Date.now&&J.now,kx=R.setTimeout!==vt.setTimeout&&R.setTimeout,Ki=gt.ceil,Ui=gt.floor,Fo=We.getOwnPropertySymbols,Ax=Bi?Bi.isBuffer:i,v2=R.isFinite,Mx=Ii.join,Tx=d2(We.keys,We),pt=gt.max,kt=gt.min,Ox=J.now,Px=R.parseInt,b2=gt.random,Ix=Ii.reverse,zo=Cr(R,"DataView"),L1=Cr(R,"Map"),No=Cr(R,"Promise"),e1=Cr(R,"Set"),$1=Cr(R,"WeakMap"),S1=Cr(We,"create"),Zi=$1&&new $1,t1={},Ex=xr(zo),Dx=xr(L1),Rx=xr(No),Bx=xr(e1),Fx=xr($1),Hi=ir?ir.prototype:i,k1=Hi?Hi.valueOf:i,C2=Hi?Hi.toString:i;function p(t){if(ot(t)&&!pe(t)&&!(t instanceof Le)){if(t instanceof cn)return t;if(Re.call(t,"__wrapped__"))return xl(t)}return new cn(t)}var n1=function(){function t(){}return function(r){if(!tt(r))return{};if(m2)return m2(r);t.prototype=r;var o=new t;return t.prototype=i,o}}();function Yi(){}function cn(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=i}p.templateSettings={escape:Jb,evaluate:eC,interpolate:M5,variable:"",imports:{_:p}},p.prototype=Yi.prototype,p.prototype.constructor=p,cn.prototype=n1(Yi.prototype),cn.prototype.constructor=cn;function Le(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ze,this.__views__=[]}function zx(){var t=new Le(this.__wrapped__);return t.__actions__=Nt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Nt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Nt(this.__views__),t}function Nx(){if(this.__filtered__){var t=new Le(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Wx(){var t=this.__wrapped__.value(),r=this.__dir__,o=pe(t),u=r<0,h=o?t.length:0,m=Jw(0,h,this.__views__),x=m.start,S=m.end,M=S-x,B=u?S:x-1,F=this.__iteratees__,K=F.length,q=0,ne=kt(M,this.__takeCount__);if(!o||!u&&h==M&&ne==M)return H2(t,this.__actions__);var le=[];e:for(;M--&&q<ne;){B+=r;for(var ve=-1,ae=t[B];++ve<K;){var we=F[ve],Se=we.iteratee,Xt=we.type,Ft=Se(ae);if(Xt==_t)ae=Ft;else if(!Ft){if(Xt==oe)continue e;break e}}le[q++]=ae}return le}Le.prototype=n1(Yi.prototype),Le.prototype.constructor=Le;function yr(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var u=t[r];this.set(u[0],u[1])}}function Kx(){this.__data__=S1?S1(null):{},this.size=0}function Ux(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}function Zx(t){var r=this.__data__;if(S1){var o=r[t];return o===g?i:o}return Re.call(r,t)?r[t]:i}function Hx(t){var r=this.__data__;return S1?r[t]!==i:Re.call(r,t)}function Yx(t,r){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=S1&&r===i?g:r,this}yr.prototype.clear=Kx,yr.prototype.delete=Ux,yr.prototype.get=Zx,yr.prototype.has=Hx,yr.prototype.set=Yx;function Kn(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var u=t[r];this.set(u[0],u[1])}}function Gx(){this.__data__=[],this.size=0}function Vx(t){var r=this.__data__,o=Gi(r,t);if(o<0)return!1;var u=r.length-1;return o==u?r.pop():Ni.call(r,o,1),--this.size,!0}function Qx(t){var r=this.__data__,o=Gi(r,t);return o<0?i:r[o][1]}function jx(t){return Gi(this.__data__,t)>-1}function qx(t,r){var o=this.__data__,u=Gi(o,t);return u<0?(++this.size,o.push([t,r])):o[u][1]=r,this}Kn.prototype.clear=Gx,Kn.prototype.delete=Vx,Kn.prototype.get=Qx,Kn.prototype.has=jx,Kn.prototype.set=qx;function Un(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var u=t[r];this.set(u[0],u[1])}}function Xx(){this.size=0,this.__data__={hash:new yr,map:new(L1||Kn),string:new yr}}function Jx(t){var r=o0(this,t).delete(t);return this.size-=r?1:0,r}function ew(t){return o0(this,t).get(t)}function tw(t){return o0(this,t).has(t)}function nw(t,r){var o=o0(this,t),u=o.size;return o.set(t,r),this.size+=o.size==u?0:1,this}Un.prototype.clear=Xx,Un.prototype.delete=Jx,Un.prototype.get=ew,Un.prototype.has=tw,Un.prototype.set=nw;function _r(t){var r=-1,o=t==null?0:t.length;for(this.__data__=new Un;++r<o;)this.add(t[r])}function rw(t){return this.__data__.set(t,g),this}function iw(t){return this.__data__.has(t)}_r.prototype.add=_r.prototype.push=rw,_r.prototype.has=iw;function vn(t){var r=this.__data__=new Kn(t);this.size=r.size}function ow(){this.__data__=new Kn,this.size=0}function aw(t){var r=this.__data__,o=r.delete(t);return this.size=r.size,o}function sw(t){return this.__data__.get(t)}function lw(t){return this.__data__.has(t)}function cw(t,r){var o=this.__data__;if(o instanceof Kn){var u=o.__data__;if(!L1||u.length<s-1)return u.push([t,r]),this.size=++o.size,this;o=this.__data__=new Un(u)}return o.set(t,r),this.size=o.size,this}vn.prototype.clear=ow,vn.prototype.delete=aw,vn.prototype.get=sw,vn.prototype.has=lw,vn.prototype.set=cw;function x2(t,r){var o=pe(t),u=!o&&wr(t),h=!o&&!u&&cr(t),m=!o&&!u&&!h&&a1(t),x=o||u||h||m,S=x?Eo(t.length,vx):[],M=S.length;for(var B in t)(r||Re.call(t,B))&&!(x&&(B=="length"||h&&(B=="offset"||B=="parent")||m&&(B=="buffer"||B=="byteLength"||B=="byteOffset")||Yn(B,M)))&&S.push(B);return S}function w2(t){var r=t.length;return r?t[qo(0,r-1)]:i}function uw(t,r){return a0(Nt(t),vr(r,0,t.length))}function fw(t){return a0(Nt(t))}function Wo(t,r,o){(o!==i&&!Cn(t[r],o)||o===i&&!(r in t))&&Mn(t,r,o)}function A1(t,r,o){var u=t[r];(!(Re.call(t,r)&&Cn(u,o))||o===i&&!(r in t))&&Mn(t,r,o)}function Gi(t,r){for(var o=t.length;o--;)if(Cn(t[o][0],r))return o;return-1}function dw(t,r,o,u){return or(t,function(h,m,x){r(u,h,o(h),x)}),u}function L2(t,r){return t&&On(r,yt(r),t)}function hw(t,r){return t&&On(r,Kt(r),t)}function Mn(t,r,o){r=="__proto__"&&Wi?Wi(t,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[r]=o}function Ko(t,r){for(var o=-1,u=r.length,h=O(u),m=t==null;++o<u;)h[o]=m?i:wa(t,r[o]);return h}function vr(t,r,o){return t===t&&(o!==i&&(t=t<=o?t:o),r!==i&&(t=t>=r?t:r)),t}function un(t,r,o,u,h,m){var x,S=r&b,M=r&k,B=r&v;if(o&&(x=h?o(t,u,h,m):o(t)),x!==i)return x;if(!tt(t))return t;var F=pe(t);if(F){if(x=tL(t),!S)return Nt(t,x)}else{var K=At(t),q=K==Wn||K==er;if(cr(t))return V2(t,S);if(K==Je||K==ce||q&&!h){if(x=M||q?{}:hl(t),!S)return M?Zw(t,hw(x,t)):Uw(t,L2(x,t))}else{if(!Ze[K])return h?t:{};x=nL(t,K,S)}}m||(m=new vn);var ne=m.get(t);if(ne)return ne;m.set(t,x),Kl(t)?t.forEach(function(ae){x.add(un(ae,r,o,ae,t,m))}):Nl(t)&&t.forEach(function(ae,we){x.set(we,un(ae,r,o,we,t,m))});var le=B?M?la:sa:M?Kt:yt,ve=F?i:le(t);return Vt(ve||t,function(ae,we){ve&&(we=ae,ae=t[we]),A1(x,we,un(ae,r,o,we,t,m))}),x}function gw(t){var r=yt(t);return function(o){return $2(o,t,r)}}function $2(t,r,o){var u=o.length;if(t==null)return!u;for(t=We(t);u--;){var h=o[u],m=r[h],x=t[h];if(x===i&&!(h in t)||!m(x))return!1}return!0}function S2(t,r,o){if(typeof t!="function")throw new ln(c);return D1(function(){t.apply(i,o)},r)}function M1(t,r,o,u){var h=-1,m=Ti,x=!0,S=t.length,M=[],B=r.length;if(!S)return M;o&&(r=Qe(r,Qt(o))),u?(m=Ao,x=!1):r.length>=s&&(m=x1,x=!1,r=new _r(r));e:for(;++h<S;){var F=t[h],K=o==null?F:o(F);if(F=u||F!==0?F:0,x&&K===K){for(var q=B;q--;)if(r[q]===K)continue e;M.push(F)}else m(r,K,u)||M.push(F)}return M}var or=J2(Tn),k2=J2(Zo,!0);function pw(t,r){var o=!0;return or(t,function(u,h,m){return o=!!r(u,h,m),o}),o}function Vi(t,r,o){for(var u=-1,h=t.length;++u<h;){var m=t[u],x=r(m);if(x!=null&&(S===i?x===x&&!qt(x):o(x,S)))var S=x,M=m}return M}function mw(t,r,o,u){var h=t.length;for(o=_e(o),o<0&&(o=-o>h?0:h+o),u=u===i||u>h?h:_e(u),u<0&&(u+=h),u=o>u?0:Zl(u);o<u;)t[o++]=r;return t}function A2(t,r){var o=[];return or(t,function(u,h,m){r(u,h,m)&&o.push(u)}),o}function bt(t,r,o,u,h){var m=-1,x=t.length;for(o||(o=iL),h||(h=[]);++m<x;){var S=t[m];r>0&&o(S)?r>1?bt(S,r-1,o,u,h):nr(h,S):u||(h[h.length]=S)}return h}var Uo=el(),M2=el(!0);function Tn(t,r){return t&&Uo(t,r,yt)}function Zo(t,r){return t&&M2(t,r,yt)}function Qi(t,r){return tr(r,function(o){return Gn(t[o])})}function br(t,r){r=sr(r,t);for(var o=0,u=r.length;t!=null&&o<u;)t=t[bn(r[o++])];return o&&o==u?t:i}function T2(t,r,o){var u=r(t);return pe(t)?u:nr(u,o(t))}function Rt(t){return t==null?t===i?ge:Lt:mr&&mr in We(t)?Xw(t):fL(t)}function Ho(t,r){return t>r}function yw(t,r){return t!=null&&Re.call(t,r)}function _w(t,r){return t!=null&&r in We(t)}function vw(t,r,o){return t>=kt(r,o)&&t<pt(r,o)}function Yo(t,r,o){for(var u=o?Ao:Ti,h=t[0].length,m=t.length,x=m,S=O(m),M=1/0,B=[];x--;){var F=t[x];x&&r&&(F=Qe(F,Qt(r))),M=kt(F.length,M),S[x]=!o&&(r||h>=120&&F.length>=120)?new _r(x&&F):i}F=t[0];var K=-1,q=S[0];e:for(;++K<h&&B.length<M;){var ne=F[K],le=r?r(ne):ne;if(ne=o||ne!==0?ne:0,!(q?x1(q,le):u(B,le,o))){for(x=m;--x;){var ve=S[x];if(!(ve?x1(ve,le):u(t[x],le,o)))continue e}q&&q.push(le),B.push(ne)}}return B}function bw(t,r,o,u){return Tn(t,function(h,m,x){r(u,o(h),m,x)}),u}function T1(t,r,o){r=sr(r,t),t=yl(t,r);var u=t==null?t:t[bn(dn(r))];return u==null?i:Gt(u,t,o)}function O2(t){return ot(t)&&Rt(t)==ce}function Cw(t){return ot(t)&&Rt(t)==Ht}function xw(t){return ot(t)&&Rt(t)==Pt}function O1(t,r,o,u,h){return t===r?!0:t==null||r==null||!ot(t)&&!ot(r)?t!==t&&r!==r:ww(t,r,o,u,O1,h)}function ww(t,r,o,u,h,m){var x=pe(t),S=pe(r),M=x?De:At(t),B=S?De:At(r);M=M==ce?Je:M,B=B==ce?Je:B;var F=M==Je,K=B==Je,q=M==B;if(q&&cr(t)){if(!cr(r))return!1;x=!0,F=!1}if(q&&!F)return m||(m=new vn),x||a1(t)?ul(t,r,o,u,h,m):jw(t,r,M,o,u,h,m);if(!(o&w)){var ne=F&&Re.call(t,"__wrapped__"),le=K&&Re.call(r,"__wrapped__");if(ne||le){var ve=ne?t.value():t,ae=le?r.value():r;return m||(m=new vn),h(ve,ae,o,u,m)}}return q?(m||(m=new vn),qw(t,r,o,u,h,m)):!1}function Lw(t){return ot(t)&&At(t)==mt}function Go(t,r,o,u){var h=o.length,m=h,x=!u;if(t==null)return!m;for(t=We(t);h--;){var S=o[h];if(x&&S[2]?S[1]!==t[S[0]]:!(S[0]in t))return!1}for(;++h<m;){S=o[h];var M=S[0],B=t[M],F=S[1];if(x&&S[2]){if(B===i&&!(M in t))return!1}else{var K=new vn;if(u)var q=u(B,F,M,t,r,K);if(!(q===i?O1(F,B,w|L,u,K):q))return!1}}return!0}function P2(t){if(!tt(t)||aL(t))return!1;var r=Gn(t)?Lx:gC;return r.test(xr(t))}function $w(t){return ot(t)&&Rt(t)==it}function Sw(t){return ot(t)&&At(t)==I}function kw(t){return ot(t)&&d0(t.length)&&!!Ge[Rt(t)]}function I2(t){return typeof t=="function"?t:t==null?Ut:typeof t=="object"?pe(t)?R2(t[0],t[1]):D2(t):n6(t)}function Vo(t){if(!E1(t))return Tx(t);var r=[];for(var o in We(t))Re.call(t,o)&&o!="constructor"&&r.push(o);return r}function Aw(t){if(!tt(t))return uL(t);var r=E1(t),o=[];for(var u in t)u=="constructor"&&(r||!Re.call(t,u))||o.push(u);return o}function Qo(t,r){return t<r}function E2(t,r){var o=-1,u=Wt(t)?O(t.length):[];return or(t,function(h,m,x){u[++o]=r(h,m,x)}),u}function D2(t){var r=ua(t);return r.length==1&&r[0][2]?pl(r[0][0],r[0][1]):function(o){return o===t||Go(o,t,r)}}function R2(t,r){return da(t)&&gl(r)?pl(bn(t),r):function(o){var u=wa(o,t);return u===i&&u===r?La(o,t):O1(r,u,w|L)}}function ji(t,r,o,u,h){t!==r&&Uo(r,function(m,x){if(h||(h=new vn),tt(m))Mw(t,r,x,o,ji,u,h);else{var S=u?u(ga(t,x),m,x+"",t,r,h):i;S===i&&(S=m),Wo(t,x,S)}},Kt)}function Mw(t,r,o,u,h,m,x){var S=ga(t,o),M=ga(r,o),B=x.get(M);if(B){Wo(t,o,B);return}var F=m?m(S,M,o+"",t,r,x):i,K=F===i;if(K){var q=pe(M),ne=!q&&cr(M),le=!q&&!ne&&a1(M);F=M,q||ne||le?pe(S)?F=S:lt(S)?F=Nt(S):ne?(K=!1,F=V2(M,!0)):le?(K=!1,F=Q2(M,!0)):F=[]:R1(M)||wr(M)?(F=S,wr(S)?F=Hl(S):(!tt(S)||Gn(S))&&(F=hl(M))):K=!1}K&&(x.set(M,F),h(F,M,u,m,x),x.delete(M)),Wo(t,o,F)}function B2(t,r){var o=t.length;if(o)return r+=r<0?o:0,Yn(r,o)?t[r]:i}function F2(t,r,o){r.length?r=Qe(r,function(m){return pe(m)?function(x){return br(x,m.length===1?m[0]:m)}:m}):r=[Ut];var u=-1;r=Qe(r,Qt(se()));var h=E2(t,function(m,x,S){var M=Qe(r,function(B){return B(m)});return{criteria:M,index:++u,value:m}});return nx(h,function(m,x){return Kw(m,x,o)})}function Tw(t,r){return z2(t,r,function(o,u){return La(t,u)})}function z2(t,r,o){for(var u=-1,h=r.length,m={};++u<h;){var x=r[u],S=br(t,x);o(S,x)&&P1(m,sr(x,t),S)}return m}function Ow(t){return function(r){return br(r,t)}}function jo(t,r,o,u){var h=u?tx:Qr,m=-1,x=r.length,S=t;for(t===r&&(r=Nt(r)),o&&(S=Qe(t,Qt(o)));++m<x;)for(var M=0,B=r[m],F=o?o(B):B;(M=h(S,F,M,u))>-1;)S!==t&&Ni.call(S,M,1),Ni.call(t,M,1);return t}function N2(t,r){for(var o=t?r.length:0,u=o-1;o--;){var h=r[o];if(o==u||h!==m){var m=h;Yn(h)?Ni.call(t,h,1):ea(t,h)}}return t}function qo(t,r){return t+Ui(b2()*(r-t+1))}function Pw(t,r,o,u){for(var h=-1,m=pt(Ki((r-t)/(o||1)),0),x=O(m);m--;)x[u?m:++h]=t,t+=o;return x}function Xo(t,r){var o="";if(!t||r<1||r>nt)return o;do r%2&&(o+=t),r=Ui(r/2),r&&(t+=t);while(r);return o}function be(t,r){return pa(ml(t,r,Ut),t+"")}function Iw(t){return w2(s1(t))}function Ew(t,r){var o=s1(t);return a0(o,vr(r,0,o.length))}function P1(t,r,o,u){if(!tt(t))return t;r=sr(r,t);for(var h=-1,m=r.length,x=m-1,S=t;S!=null&&++h<m;){var M=bn(r[h]),B=o;if(M==="__proto__"||M==="constructor"||M==="prototype")return t;if(h!=x){var F=S[M];B=u?u(F,M,S):i,B===i&&(B=tt(F)?F:Yn(r[h+1])?[]:{})}A1(S,M,B),S=S[M]}return t}var W2=Zi?function(t,r){return Zi.set(t,r),t}:Ut,Dw=Wi?function(t,r){return Wi(t,"toString",{configurable:!0,enumerable:!1,value:Sa(r),writable:!0})}:Ut;function Rw(t){return a0(s1(t))}function fn(t,r,o){var u=-1,h=t.length;r<0&&(r=-r>h?0:h+r),o=o>h?h:o,o<0&&(o+=h),h=r>o?0:o-r>>>0,r>>>=0;for(var m=O(h);++u<h;)m[u]=t[u+r];return m}function Bw(t,r){var o;return or(t,function(u,h,m){return o=r(u,h,m),!o}),!!o}function qi(t,r,o){var u=0,h=t==null?u:t.length;if(typeof r=="number"&&r===r&&h<=ie){for(;u<h;){var m=u+h>>>1,x=t[m];x!==null&&!qt(x)&&(o?x<=r:x<r)?u=m+1:h=m}return h}return Jo(t,r,Ut,o)}function Jo(t,r,o,u){var h=0,m=t==null?0:t.length;if(m===0)return 0;r=o(r);for(var x=r!==r,S=r===null,M=qt(r),B=r===i;h<m;){var F=Ui((h+m)/2),K=o(t[F]),q=K!==i,ne=K===null,le=K===K,ve=qt(K);if(x)var ae=u||le;else B?ae=le&&(u||q):S?ae=le&&q&&(u||!ne):M?ae=le&&q&&!ne&&(u||!ve):ne||ve?ae=!1:ae=u?K<=r:K<r;ae?h=F+1:m=F}return kt(m,rt)}function K2(t,r){for(var o=-1,u=t.length,h=0,m=[];++o<u;){var x=t[o],S=r?r(x):x;if(!o||!Cn(S,M)){var M=S;m[h++]=x===0?0:x}}return m}function U2(t){return typeof t=="number"?t:qt(t)?Ve:+t}function jt(t){if(typeof t=="string")return t;if(pe(t))return Qe(t,jt)+"";if(qt(t))return C2?C2.call(t):"";var r=t+"";return r=="0"&&1/t==-at?"-0":r}function ar(t,r,o){var u=-1,h=Ti,m=t.length,x=!0,S=[],M=S;if(o)x=!1,h=Ao;else if(m>=s){var B=r?null:Vw(t);if(B)return Pi(B);x=!1,h=x1,M=new _r}else M=r?[]:S;e:for(;++u<m;){var F=t[u],K=r?r(F):F;if(F=o||F!==0?F:0,x&&K===K){for(var q=M.length;q--;)if(M[q]===K)continue e;r&&M.push(K),S.push(F)}else h(M,K,o)||(M!==S&&M.push(K),S.push(F))}return S}function ea(t,r){r=sr(r,t);var o=-1,u=r.length;if(!u)return!0;for(;++o<u;){var h=bn(r[o]);if(h==="__proto__"&&!Re.call(t,"__proto__")||(h==="constructor"||h==="prototype")&&o<u-1)return!1}var m=yl(t,r);return m==null||delete m[bn(dn(r))]}function Z2(t,r,o,u){return P1(t,r,o(br(t,r)),u)}function Xi(t,r,o,u){for(var h=t.length,m=u?h:-1;(u?m--:++m<h)&&r(t[m],m,t););return o?fn(t,u?0:m,u?m+1:h):fn(t,u?m+1:0,u?h:m)}function H2(t,r){var o=t;return o instanceof Le&&(o=o.value()),Mo(r,function(u,h){return h.func.apply(h.thisArg,nr([u],h.args))},o)}function ta(t,r,o){var u=t.length;if(u<2)return u?ar(t[0]):[];for(var h=-1,m=O(u);++h<u;)for(var x=t[h],S=-1;++S<u;)S!=h&&(m[h]=M1(m[h]||x,t[S],r,o));return ar(bt(m,1),r,o)}function Y2(t,r,o){for(var u=-1,h=t.length,m=r.length,x={};++u<h;){var S=u<m?r[u]:i;o(x,t[u],S)}return x}function na(t){return lt(t)?t:[]}function ra(t){return typeof t=="function"?t:Ut}function sr(t,r){return pe(t)?t:da(t,r)?[t]:Cl(Be(t))}var Fw=be;function lr(t,r,o){var u=t.length;return o=o===i?u:o,!r&&o>=u?t:fn(t,r,o)}var G2=$x||function(t){return vt.clearTimeout(t)};function V2(t,r){if(r)return t.slice();var o=t.length,u=p2?p2(o):new t.constructor(o);return t.copy(u),u}function ia(t){var r=new t.constructor(t.byteLength);return new Fi(r).set(new Fi(t)),r}function zw(t,r){var o=r?ia(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)}function Nw(t){var r=new t.constructor(t.source,O5.exec(t));return r.lastIndex=t.lastIndex,r}function Ww(t){return k1?We(k1.call(t)):{}}function Q2(t,r){var o=r?ia(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}function j2(t,r){if(t!==r){var o=t!==i,u=t===null,h=t===t,m=qt(t),x=r!==i,S=r===null,M=r===r,B=qt(r);if(!S&&!B&&!m&&t>r||m&&x&&M&&!S&&!B||u&&x&&M||!o&&M||!h)return 1;if(!u&&!m&&!B&&t<r||B&&o&&h&&!u&&!m||S&&o&&h||!x&&h||!M)return-1}return 0}function Kw(t,r,o){for(var u=-1,h=t.criteria,m=r.criteria,x=h.length,S=o.length;++u<x;){var M=j2(h[u],m[u]);if(M){if(u>=S)return M;var B=o[u];return M*(B=="desc"?-1:1)}}return t.index-r.index}function q2(t,r,o,u){for(var h=-1,m=t.length,x=o.length,S=-1,M=r.length,B=pt(m-x,0),F=O(M+B),K=!u;++S<M;)F[S]=r[S];for(;++h<x;)(K||h<m)&&(F[o[h]]=t[h]);for(;B--;)F[S++]=t[h++];return F}function X2(t,r,o,u){for(var h=-1,m=t.length,x=-1,S=o.length,M=-1,B=r.length,F=pt(m-S,0),K=O(F+B),q=!u;++h<F;)K[h]=t[h];for(var ne=h;++M<B;)K[ne+M]=r[M];for(;++x<S;)(q||h<m)&&(K[ne+o[x]]=t[h++]);return K}function Nt(t,r){var o=-1,u=t.length;for(r||(r=O(u));++o<u;)r[o]=t[o];return r}function On(t,r,o,u){var h=!o;o||(o={});for(var m=-1,x=r.length;++m<x;){var S=r[m],M=u?u(o[S],t[S],S,o,t):i;M===i&&(M=t[S]),h?Mn(o,S,M):A1(o,S,M)}return o}function Uw(t,r){return On(t,fa(t),r)}function Zw(t,r){return On(t,fl(t),r)}function Ji(t,r){return function(o,u){var h=pe(o)?QC:dw,m=r?r():{};return h(o,t,se(u,2),m)}}function r1(t){return be(function(r,o){var u=-1,h=o.length,m=h>1?o[h-1]:i,x=h>2?o[2]:i;for(m=t.length>3&&typeof m=="function"?(h--,m):i,x&&Bt(o[0],o[1],x)&&(m=h<3?i:m,h=1),r=We(r);++u<h;){var S=o[u];S&&t(r,S,u,m)}return r})}function J2(t,r){return function(o,u){if(o==null)return o;if(!Wt(o))return t(o,u);for(var h=o.length,m=r?h:-1,x=We(o);(r?m--:++m<h)&&u(x[m],m,x)!==!1;);return o}}function el(t){return function(r,o,u){for(var h=-1,m=We(r),x=u(r),S=x.length;S--;){var M=x[t?S:++h];if(o(m[M],M,m)===!1)break}return r}}function Hw(t,r,o){var u=r&$,h=I1(t);function m(){var x=this&&this!==vt&&this instanceof m?h:t;return x.apply(u?o:this,arguments)}return m}function tl(t){return function(r){r=Be(r);var o=jr(r)?_n(r):i,u=o?o[0]:r.charAt(0),h=o?lr(o,1).join(""):r.slice(1);return u[t]()+h}}function i1(t){return function(r){return Mo(e6(Jl(r).replace(DC,"")),t,"")}}function I1(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var o=n1(t.prototype),u=t.apply(o,r);return tt(u)?u:o}}function Yw(t,r,o){var u=I1(t);function h(){for(var m=arguments.length,x=O(m),S=m,M=o1(h);S--;)x[S]=arguments[S];var B=m<3&&x[0]!==M&&x[m-1]!==M?[]:rr(x,M);if(m-=B.length,m<o)return al(t,r,e0,h.placeholder,i,x,B,i,i,o-m);var F=this&&this!==vt&&this instanceof h?u:t;return Gt(F,this,x)}return h}function nl(t){return function(r,o,u){var h=We(r);if(!Wt(r)){var m=se(o,3);r=yt(r),o=function(S){return m(h[S],S,h)}}var x=t(r,o,u);return x>-1?h[m?r[x]:x]:i}}function rl(t){return Hn(function(r){var o=r.length,u=o,h=cn.prototype.thru;for(t&&r.reverse();u--;){var m=r[u];if(typeof m!="function")throw new ln(c);if(h&&!x&&i0(m)=="wrapper")var x=new cn([],!0)}for(u=x?u:o;++u<o;){m=r[u];var S=i0(m),M=S=="wrapper"?ca(m):i;M&&ha(M[0])&&M[1]==(E|D|X|z)&&!M[4].length&&M[9]==1?x=x[i0(M[0])].apply(x,M[3]):x=m.length==1&&ha(m)?x[S]():x.thru(m)}return function(){var B=arguments,F=B[0];if(x&&B.length==1&&pe(F))return x.plant(F).value();for(var K=0,q=o?r[K].apply(this,B):F;++K<o;)q=r[K].call(this,q);return q}})}function e0(t,r,o,u,h,m,x,S,M,B){var F=r&E,K=r&$,q=r&T,ne=r&(D|U),le=r&V,ve=q?i:I1(t);function ae(){for(var we=arguments.length,Se=O(we),Xt=we;Xt--;)Se[Xt]=arguments[Xt];if(ne)var Ft=o1(ae),Jt=ix(Se,Ft);if(u&&(Se=q2(Se,u,h,ne)),m&&(Se=X2(Se,m,x,ne)),we-=Jt,ne&&we<B){var ct=rr(Se,Ft);return al(t,r,e0,ae.placeholder,o,Se,ct,S,M,B-we)}var xn=K?o:this,Qn=q?xn[t]:t;return we=Se.length,S?Se=dL(Se,S):le&&we>1&&Se.reverse(),F&&M<we&&(Se.length=M),this&&this!==vt&&this instanceof ae&&(Qn=ve||I1(Qn)),Qn.apply(xn,Se)}return ae}function il(t,r){return function(o,u){return bw(o,t,r(u),{})}}function t0(t,r){return function(o,u){var h;if(o===i&&u===i)return r;if(o!==i&&(h=o),u!==i){if(h===i)return u;typeof o=="string"||typeof u=="string"?(o=jt(o),u=jt(u)):(o=U2(o),u=U2(u)),h=t(o,u)}return h}}function oa(t){return Hn(function(r){return r=Qe(r,Qt(se())),be(function(o){var u=this;return t(r,function(h){return Gt(h,u,o)})})})}function n0(t,r){r=r===i?" ":jt(r);var o=r.length;if(o<2)return o?Xo(r,t):r;var u=Xo(r,Ki(t/qr(r)));return jr(r)?lr(_n(u),0,t).join(""):u.slice(0,t)}function Gw(t,r,o,u){var h=r&$,m=I1(t);function x(){for(var S=-1,M=arguments.length,B=-1,F=u.length,K=O(F+M),q=this&&this!==vt&&this instanceof x?m:t;++B<F;)K[B]=u[B];for(;M--;)K[B++]=arguments[++S];return Gt(q,h?o:this,K)}return x}function ol(t){return function(r,o,u){return u&&typeof u!="number"&&Bt(r,o,u)&&(o=u=i),r=Vn(r),o===i?(o=r,r=0):o=Vn(o),u=u===i?r<o?1:-1:Vn(u),Pw(r,o,u,t)}}function r0(t){return function(r,o){return typeof r=="string"&&typeof o=="string"||(r=hn(r),o=hn(o)),t(r,o)}}function al(t,r,o,u,h,m,x,S,M,B){var F=r&D,K=F?x:i,q=F?i:x,ne=F?m:i,le=F?i:m;r|=F?X:Y,r&=~(F?Y:X),r&P||(r&=~($|T));var ve=[t,r,h,ne,K,le,q,S,M,B],ae=o.apply(i,ve);return ha(t)&&_l(ae,ve),ae.placeholder=u,vl(ae,t,r)}function aa(t){var r=gt[t];return function(o,u){if(o=hn(o),u=u==null?0:kt(_e(u),292),u&&v2(o)){var h=(Be(o)+"e").split("e"),m=r(h[0]+"e"+(+h[1]+u));return h=(Be(m)+"e").split("e"),+(h[0]+"e"+(+h[1]-u))}return r(o)}}var Vw=e1&&1/Pi(new e1([,-0]))[1]==at?function(t){return new e1(t)}:Ma;function sl(t){return function(r){var o=At(r);return o==mt?Ro(r):o==I?fx(r):rx(r,t(r))}}function Zn(t,r,o,u,h,m,x,S){var M=r&T;if(!M&&typeof t!="function")throw new ln(c);var B=u?u.length:0;if(B||(r&=~(X|Y),u=h=i),x=x===i?x:pt(_e(x),0),S=S===i?S:_e(S),B-=h?h.length:0,r&Y){var F=u,K=h;u=h=i}var q=M?i:ca(t),ne=[t,r,o,u,h,F,K,m,x,S];if(q&&cL(ne,q),t=ne[0],r=ne[1],o=ne[2],u=ne[3],h=ne[4],S=ne[9]=ne[9]===i?M?0:t.length:pt(ne[9]-B,0),!S&&r&(D|U)&&(r&=~(D|U)),!r||r==$)var le=Hw(t,r,o);else r==D||r==U?le=Yw(t,r,S):(r==X||r==($|X))&&!h.length?le=Gw(t,r,o,u):le=e0.apply(i,ne);var ve=q?W2:_l;return vl(ve(le,ne),t,r)}function ll(t,r,o,u){return t===i||Cn(t,Jr[o])&&!Re.call(u,o)?r:t}function cl(t,r,o,u,h,m){return tt(t)&&tt(r)&&(m.set(r,t),ji(t,r,i,cl,m),m.delete(r)),t}function Qw(t){return R1(t)?i:t}function ul(t,r,o,u,h,m){var x=o&w,S=t.length,M=r.length;if(S!=M&&!(x&&M>S))return!1;var B=m.get(t),F=m.get(r);if(B&&F)return B==r&&F==t;var K=-1,q=!0,ne=o&L?new _r:i;for(m.set(t,r),m.set(r,t);++K<S;){var le=t[K],ve=r[K];if(u)var ae=x?u(ve,le,K,r,t,m):u(le,ve,K,t,r,m);if(ae!==i){if(ae)continue;q=!1;break}if(ne){if(!To(r,function(we,Se){if(!x1(ne,Se)&&(le===we||h(le,we,o,u,m)))return ne.push(Se)})){q=!1;break}}else if(!(le===ve||h(le,ve,o,u,m))){q=!1;break}}return m.delete(t),m.delete(r),q}function jw(t,r,o,u,h,m,x){switch(o){case Et:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case Ht:return!(t.byteLength!=r.byteLength||!m(new Fi(t),new Fi(r)));case Xe:case Pt:case Ie:return Cn(+t,+r);case Nn:return t.name==r.name&&t.message==r.message;case it:case j:return t==r+"";case mt:var S=Ro;case I:var M=u&w;if(S||(S=Pi),t.size!=r.size&&!M)return!1;var B=x.get(t);if(B)return B==r;u|=L,x.set(t,r);var F=ul(S(t),S(r),u,h,m,x);return x.delete(t),F;case xe:if(k1)return k1.call(t)==k1.call(r)}return!1}function qw(t,r,o,u,h,m){var x=o&w,S=sa(t),M=S.length,B=sa(r),F=B.length;if(M!=F&&!x)return!1;for(var K=M;K--;){var q=S[K];if(!(x?q in r:Re.call(r,q)))return!1}var ne=m.get(t),le=m.get(r);if(ne&&le)return ne==r&&le==t;var ve=!0;m.set(t,r),m.set(r,t);for(var ae=x;++K<M;){q=S[K];var we=t[q],Se=r[q];if(u)var Xt=x?u(Se,we,q,r,t,m):u(we,Se,q,t,r,m);if(!(Xt===i?we===Se||h(we,Se,o,u,m):Xt)){ve=!1;break}ae||(ae=q=="constructor")}if(ve&&!ae){var Ft=t.constructor,Jt=r.constructor;Ft!=Jt&&"constructor"in t&&"constructor"in r&&!(typeof Ft=="function"&&Ft instanceof Ft&&typeof Jt=="function"&&Jt instanceof Jt)&&(ve=!1)}return m.delete(t),m.delete(r),ve}function Hn(t){return pa(ml(t,i,$l),t+"")}function sa(t){return T2(t,yt,fa)}function la(t){return T2(t,Kt,fl)}var ca=Zi?function(t){return Zi.get(t)}:Ma;function i0(t){for(var r=t.name+"",o=t1[r],u=Re.call(t1,r)?o.length:0;u--;){var h=o[u],m=h.func;if(m==null||m==t)return h.name}return r}function o1(t){var r=Re.call(p,"placeholder")?p:t;return r.placeholder}function se(){var t=p.iteratee||ka;return t=t===ka?I2:t,arguments.length?t(arguments[0],arguments[1]):t}function o0(t,r){var o=t.__data__;return oL(r)?o[typeof r=="string"?"string":"hash"]:o.map}function ua(t){for(var r=yt(t),o=r.length;o--;){var u=r[o],h=t[u];r[o]=[u,h,gl(h)]}return r}function Cr(t,r){var o=lx(t,r);return P2(o)?o:i}function Xw(t){var r=Re.call(t,mr),o=t[mr];try{t[mr]=i;var u=!0}catch{}var h=Ri.call(t);return u&&(r?t[mr]=o:delete t[mr]),h}var fa=Fo?function(t){return t==null?[]:(t=We(t),tr(Fo(t),function(r){return y2.call(t,r)}))}:Ta,fl=Fo?function(t){for(var r=[];t;)nr(r,fa(t)),t=zi(t);return r}:Ta,At=Rt;(zo&&At(new zo(new ArrayBuffer(1)))!=Et||L1&&At(new L1)!=mt||No&&At(No.resolve())!=It||e1&&At(new e1)!=I||$1&&At(new $1)!=ke)&&(At=function(t){var r=Rt(t),o=r==Je?t.constructor:i,u=o?xr(o):"";if(u)switch(u){case Ex:return Et;case Dx:return mt;case Rx:return It;case Bx:return I;case Fx:return ke}return r});function Jw(t,r,o){for(var u=-1,h=o.length;++u<h;){var m=o[u],x=m.size;switch(m.type){case"drop":t+=x;break;case"dropRight":r-=x;break;case"take":r=kt(r,t+x);break;case"takeRight":t=pt(t,r-x);break}}return{start:t,end:r}}function eL(t){var r=t.match(sC);return r?r[1].split(lC):[]}function dl(t,r,o){r=sr(r,t);for(var u=-1,h=r.length,m=!1;++u<h;){var x=bn(r[u]);if(!(m=t!=null&&o(t,x)))break;t=t[x]}return m||++u!=h?m:(h=t==null?0:t.length,!!h&&d0(h)&&Yn(x,h)&&(pe(t)||wr(t)))}function tL(t){var r=t.length,o=new t.constructor(r);return r&&typeof t[0]=="string"&&Re.call(t,"index")&&(o.index=t.index,o.input=t.input),o}function hl(t){return typeof t.constructor=="function"&&!E1(t)?n1(zi(t)):{}}function nL(t,r,o){var u=t.constructor;switch(r){case Ht:return ia(t);case Xe:case Pt:return new u(+t);case Et:return zw(t,o);case Ye:case Yt:case Me:case St:case ye:case et:case Ue:case Dt:case C1:return Q2(t,o);case mt:return new u;case Ie:case j:return new u(t);case it:return Nw(t);case I:return new u;case xe:return Ww(t)}}function rL(t,r){var o=r.length;if(!o)return t;var u=o-1;return r[u]=(o>1?"& ":"")+r[u],r=r.join(o>2?", ":" "),t.replace(aC,`{
8
+ */B1.exports,function(e,n){(function(){var i,o="4.18.1",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="Invalid `variable` option passed into `_.template`",d="Invalid `imports` option passed into `_.template`",g="__lodash_hash_undefined__",_=500,y="__lodash_placeholder__",v=1,k=2,b=4,C=1,L=2,$=1,T=2,O=4,E=8,U=16,X=32,Y=64,I=128,z=256,Q=512,j=30,te="...",ee=800,Oe=16,oe=1,bt=2,St=3,it=1/0,tt=9007199254740991,ke=17976931348623157e292,Qe=0/0,ze=4294967295,nt=ze-1,ie=ze>>>1,Me=[["ary",I],["bind",$],["bindKey",T],["curry",E],["curryRight",U],["flip",Q],["partial",X],["partialRight",Y],["rearg",z]],ue="[object Arguments]",Ee="[object Array]",ot="[object AsyncFunction]",Je="[object Boolean]",Et="[object Date]",rn="[object DOMException]",Un="[object Error]",bn="[object Function]",Cn="[object GeneratorFunction]",kt="[object Map]",Be="[object Number]",At="[object Null]",Ye="[object Object]",_t="[object Promise]",on="[object Proxy]",at="[object RegExp]",gt="[object Set]",an="[object String]",D="[object Symbol]",V="[object Undefined]",me="[object WeakMap]",ce="[object WeakSet]",$e="[object ArrayBuffer]",We="[object DataView]",sn="[object Float32Array]",ln="[object Float64Array]",ve="[object Int8Array]",pt="[object Int16Array]",Ct="[object Int32Array]",Ut="[object Uint8Array]",de="[object Uint8ClampedArray]",st="[object Uint16Array]",Ge="[object Uint32Array]",Zt=/\b__p \+= '';/g,_o=/\b(__p \+=) '' \+/g,eC=/(__e\(.*?\)|\b__t\)) \+\n'';/g,A5=/&(?:amp|lt|gt|quot|#39);/g,M5=/[&<>"']/g,tC=RegExp(A5.source),nC=RegExp(M5.source),rC=/<%-([\s\S]+?)%>/g,iC=/<%([\s\S]+?)%>/g,T5=/<%=([\s\S]+?)%>/g,oC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aC=/^\w*$/,sC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vo=/[\\^$.*+?()[\]{}|]/g,lC=RegExp(vo.source),bo=/^\s+/,cC=/\s/,uC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fC=/\{\n\/\* \[wrapped with (.+)\] \*/,dC=/,? & /,hC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,P5=/[()=,{}\[\]\/\s]/,gC=/\\(\\)?/g,pC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,O5=/\w*$/,mC=/^[-+]0x[0-9a-f]+$/i,yC=/^0b[01]+$/i,_C=/^\[object .+?Constructor\]$/,vC=/^0o[0-7]+$/i,bC=/^(?:0|[1-9]\d*)$/,CC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Si=/($^)/,xC=/['\n\r\u2028\u2029\\]/g,ki="\\ud800-\\udfff",wC="\\u0300-\\u036f",LC="\\ufe20-\\ufe2f",$C="\\u20d0-\\u20ff",I5=wC+LC+$C,E5="\\u2700-\\u27bf",D5="a-z\\xdf-\\xf6\\xf8-\\xff",SC="\\xac\\xb1\\xd7\\xf7",kC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",AC="\\u2000-\\u206f",MC=" \\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",R5="A-Z\\xc0-\\xd6\\xd8-\\xde",B5="\\ufe0e\\ufe0f",F5=SC+kC+AC+MC,Co="['’]",TC="["+ki+"]",z5="["+F5+"]",Ai="["+I5+"]",N5="\\d+",PC="["+E5+"]",K5="["+D5+"]",H5="[^"+ki+F5+N5+E5+D5+R5+"]",xo="\\ud83c[\\udffb-\\udfff]",OC="(?:"+Ai+"|"+xo+")",W5="[^"+ki+"]",wo="(?:\\ud83c[\\udde6-\\uddff]){2}",Lo="[\\ud800-\\udbff][\\udc00-\\udfff]",jr="["+R5+"]",U5="\\u200d",Z5="(?:"+K5+"|"+H5+")",IC="(?:"+jr+"|"+H5+")",Y5="(?:"+Co+"(?:d|ll|m|re|s|t|ve))?",G5="(?:"+Co+"(?:D|LL|M|RE|S|T|VE))?",V5=OC+"?",Q5="["+B5+"]?",EC="(?:"+U5+"(?:"+[W5,wo,Lo].join("|")+")"+Q5+V5+")*",DC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",RC="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",j5=Q5+V5+EC,BC="(?:"+[PC,wo,Lo].join("|")+")"+j5,FC="(?:"+[W5+Ai+"?",Ai,wo,Lo,TC].join("|")+")",zC=RegExp(Co,"g"),NC=RegExp(Ai,"g"),$o=RegExp(xo+"(?="+xo+")|"+FC+j5,"g"),KC=RegExp([jr+"?"+K5+"+"+Y5+"(?="+[z5,jr,"$"].join("|")+")",IC+"+"+G5+"(?="+[z5,jr+Z5,"$"].join("|")+")",jr+"?"+Z5+"+"+Y5,jr+"+"+G5,RC,DC,N5,BC].join("|"),"g"),HC=RegExp("["+U5+ki+I5+B5+"]"),WC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,UC=["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"],ZC=-1,Ve={};Ve[sn]=Ve[ln]=Ve[ve]=Ve[pt]=Ve[Ct]=Ve[Ut]=Ve[de]=Ve[st]=Ve[Ge]=!0,Ve[ue]=Ve[Ee]=Ve[$e]=Ve[Je]=Ve[We]=Ve[Et]=Ve[Un]=Ve[bn]=Ve[kt]=Ve[Be]=Ve[Ye]=Ve[at]=Ve[gt]=Ve[an]=Ve[me]=!1;var Ue={};Ue[ue]=Ue[Ee]=Ue[$e]=Ue[We]=Ue[Je]=Ue[Et]=Ue[sn]=Ue[ln]=Ue[ve]=Ue[pt]=Ue[Ct]=Ue[kt]=Ue[Be]=Ue[Ye]=Ue[at]=Ue[gt]=Ue[an]=Ue[D]=Ue[Ut]=Ue[de]=Ue[st]=Ue[Ge]=!0,Ue[Un]=Ue[bn]=Ue[me]=!1;var YC={À:"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"},GC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},VC={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},QC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jC=parseFloat,qC=parseInt,q5=typeof Rn=="object"&&Rn&&Rn.Object===Object&&Rn,XC=typeof self=="object"&&self&&self.Object===Object&&self,xt=q5||XC||Function("return this")(),So=n&&!n.nodeType&&n,yr=So&&!0&&e&&!e.nodeType&&e,X5=yr&&yr.exports===So,ko=X5&&q5.process,cn=function(){try{var A=yr&&yr.require&&yr.require("util").types;return A||ko&&ko.binding&&ko.binding("util")}catch{}}(),J5=cn&&cn.isArrayBuffer,e2=cn&&cn.isDate,t2=cn&&cn.isMap,n2=cn&&cn.isRegExp,r2=cn&&cn.isSet,i2=cn&&cn.isTypedArray;function Yt(A,R,P){switch(P.length){case 0:return A.call(R);case 1:return A.call(R,P[0]);case 2:return A.call(R,P[0],P[1]);case 3:return A.call(R,P[0],P[1],P[2])}return A.apply(R,P)}function JC(A,R,P,J){for(var he=-1,Ie=A==null?0:A.length;++he<Ie;){var mt=A[he];R(J,mt,P(mt),A)}return J}function Gt(A,R){for(var P=-1,J=A==null?0:A.length;++P<J&&R(A[P],P,A)!==!1;);return A}function ex(A,R){for(var P=A==null?0:A.length;P--&&R(A[P],P,A)!==!1;);return A}function o2(A,R){for(var P=-1,J=A==null?0:A.length;++P<J;)if(!R(A[P],P,A))return!1;return!0}function rr(A,R){for(var P=-1,J=A==null?0:A.length,he=0,Ie=[];++P<J;){var mt=A[P];R(mt,P,A)&&(Ie[he++]=mt)}return Ie}function Mi(A,R){var P=A==null?0:A.length;return!!P&&qr(A,R,0)>-1}function Ao(A,R,P){for(var J=-1,he=A==null?0:A.length;++J<he;)if(P(R,A[J]))return!0;return!1}function je(A,R){for(var P=-1,J=A==null?0:A.length,he=Array(J);++P<J;)he[P]=R(A[P],P,A);return he}function ir(A,R){for(var P=-1,J=R.length,he=A.length;++P<J;)A[he+P]=R[P];return A}function Mo(A,R,P,J){var he=-1,Ie=A==null?0:A.length;for(J&&Ie&&(P=A[++he]);++he<Ie;)P=R(P,A[he],he,A);return P}function tx(A,R,P,J){var he=A==null?0:A.length;for(J&&he&&(P=A[--he]);he--;)P=R(P,A[he],he,A);return P}function To(A,R){for(var P=-1,J=A==null?0:A.length;++P<J;)if(R(A[P],P,A))return!0;return!1}var nx=Po("length");function rx(A){return A.split("")}function ix(A){return A.match(hC)||[]}function a2(A,R,P){var J;return P(A,function(he,Ie,mt){if(R(he,Ie,mt))return J=Ie,!1}),J}function Ti(A,R,P,J){for(var he=A.length,Ie=P+(J?1:-1);J?Ie--:++Ie<he;)if(R(A[Ie],Ie,A))return Ie;return-1}function qr(A,R,P){return R===R?mx(A,R,P):Ti(A,s2,P)}function ox(A,R,P,J){for(var he=P-1,Ie=A.length;++he<Ie;)if(J(A[he],R))return he;return-1}function s2(A){return A!==A}function l2(A,R){var P=A==null?0:A.length;return P?Io(A,R)/P:Qe}function Po(A){return function(R){return R==null?i:R[A]}}function Oo(A){return function(R){return A==null?i:A[R]}}function c2(A,R,P,J,he){return he(A,function(Ie,mt,Ke){P=J?(J=!1,Ie):R(P,Ie,mt,Ke)}),P}function ax(A,R){var P=A.length;for(A.sort(R);P--;)A[P]=A[P].value;return A}function Io(A,R){for(var P,J=-1,he=A.length;++J<he;){var Ie=R(A[J]);Ie!==i&&(P=P===i?Ie:P+Ie)}return P}function Eo(A,R){for(var P=-1,J=Array(A);++P<A;)J[P]=R(P);return J}function sx(A,R){return je(R,function(P){return[P,A[P]]})}function u2(A){return A&&A.slice(0,g2(A)+1).replace(bo,"")}function Vt(A){return function(R){return A(R)}}function Do(A,R){return je(R,function(P){return A[P]})}function x1(A,R){return A.has(R)}function f2(A,R){for(var P=-1,J=A.length;++P<J&&qr(R,A[P],0)>-1;);return P}function d2(A,R){for(var P=A.length;P--&&qr(R,A[P],0)>-1;);return P}function lx(A,R){for(var P=A.length,J=0;P--;)A[P]===R&&++J;return J}var cx=Oo(YC),ux=Oo(GC);function fx(A){return"\\"+QC[A]}function dx(A,R){return A==null?i:A[R]}function Xr(A){return HC.test(A)}function hx(A){return WC.test(A)}function gx(A){for(var R,P=[];!(R=A.next()).done;)P.push(R.value);return P}function Ro(A){var R=-1,P=Array(A.size);return A.forEach(function(J,he){P[++R]=[he,J]}),P}function h2(A,R){return function(P){return A(R(P))}}function or(A,R){for(var P=-1,J=A.length,he=0,Ie=[];++P<J;){var mt=A[P];(mt===R||mt===y)&&(A[P]=y,Ie[he++]=P)}return Ie}function Pi(A){var R=-1,P=Array(A.size);return A.forEach(function(J){P[++R]=J}),P}function px(A){var R=-1,P=Array(A.size);return A.forEach(function(J){P[++R]=[J,J]}),P}function mx(A,R,P){for(var J=P-1,he=A.length;++J<he;)if(A[J]===R)return J;return-1}function yx(A,R,P){for(var J=P+1;J--;)if(A[J]===R)return J;return J}function Jr(A){return Xr(A)?vx(A):nx(A)}function xn(A){return Xr(A)?bx(A):rx(A)}function g2(A){for(var R=A.length;R--&&cC.test(A.charAt(R)););return R}var _x=Oo(VC);function vx(A){for(var R=$o.lastIndex=0;$o.test(A);)++R;return R}function bx(A){return A.match($o)||[]}function Cx(A){return A.match(KC)||[]}var xx=function A(R){R=R==null?xt:e1.defaults(xt.Object(),R,e1.pick(xt,UC));var P=R.Array,J=R.Date,he=R.Error,Ie=R.Function,mt=R.Math,Ke=R.Object,Bo=R.RegExp,wx=R.String,un=R.TypeError,Oi=P.prototype,Lx=Ie.prototype,t1=Ke.prototype,Ii=R["__core-js_shared__"],Ei=Lx.toString,De=t1.hasOwnProperty,$x=0,p2=function(){var t=/[^.]+$/.exec(Ii&&Ii.keys&&Ii.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Di=t1.toString,Sx=Ei.call(Ke),kx=xt._,Ax=Bo("^"+Ei.call(De).replace(vo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ri=X5?R.Buffer:i,ar=R.Symbol,Bi=R.Uint8Array,m2=Ri?Ri.allocUnsafe:i,Fi=h2(Ke.getPrototypeOf,Ke),y2=Ke.create,_2=t1.propertyIsEnumerable,zi=Oi.splice,v2=ar?ar.isConcatSpreadable:i,w1=ar?ar.iterator:i,_r=ar?ar.toStringTag:i,Ni=function(){try{var t=wr(Ke,"defineProperty");return t({},"",{}),t}catch{}}(),Mx=R.clearTimeout!==xt.clearTimeout&&R.clearTimeout,Tx=J&&J.now!==xt.Date.now&&J.now,Px=R.setTimeout!==xt.setTimeout&&R.setTimeout,Ki=mt.ceil,Hi=mt.floor,Fo=Ke.getOwnPropertySymbols,Ox=Ri?Ri.isBuffer:i,b2=R.isFinite,Ix=Oi.join,Ex=h2(Ke.keys,Ke),yt=mt.max,Mt=mt.min,Dx=J.now,Rx=R.parseInt,C2=mt.random,Bx=Oi.reverse,zo=wr(R,"DataView"),L1=wr(R,"Map"),No=wr(R,"Promise"),n1=wr(R,"Set"),$1=wr(R,"WeakMap"),S1=wr(Ke,"create"),Wi=$1&&new $1,r1={},Fx=Lr(zo),zx=Lr(L1),Nx=Lr(No),Kx=Lr(n1),Hx=Lr($1),Ui=ar?ar.prototype:i,k1=Ui?Ui.valueOf:i,x2=Ui?Ui.toString:i;function p(t){if(rt(t)&&!ye(t)&&!(t instanceof Se)){if(t instanceof fn)return t;if(De.call(t,"__wrapped__"))return wl(t)}return new fn(t)}var i1=function(){function t(){}return function(r){if(!et(r))return{};if(y2)return y2(r);t.prototype=r;var a=new t;return t.prototype=i,a}}();function Zi(){}function fn(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=i}p.templateSettings={escape:rC,evaluate:iC,interpolate:T5,variable:"",imports:{_:p}},p.prototype=Zi.prototype,p.prototype.constructor=p,fn.prototype=i1(Zi.prototype),fn.prototype.constructor=fn;function Se(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ze,this.__views__=[]}function Wx(){var t=new Se(this.__wrapped__);return t.__actions__=zt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=zt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=zt(this.__views__),t}function Ux(){if(this.__filtered__){var t=new Se(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Zx(){var t=this.__wrapped__.value(),r=this.__dir__,a=ye(t),u=r<0,h=a?t.length:0,m=rL(0,h,this.__views__),w=m.start,S=m.end,M=S-w,B=u?S:w-1,F=this.__iteratees__,H=F.length,q=0,ne=Mt(M,this.__takeCount__);if(!a||!u&&h==M&&ne==M)return Y2(t,this.__actions__);var le=[];e:for(;M--&&q<ne;){B+=r;for(var Ce=-1,ae=t[B];++Ce<H;){var Le=F[Ce],Ae=Le.iteratee,qt=Le.type,Bt=Ae(ae);if(qt==bt)ae=Bt;else if(!Bt){if(qt==oe)continue e;break e}}le[q++]=ae}return le}Se.prototype=i1(Zi.prototype),Se.prototype.constructor=Se;function vr(t){var r=-1,a=t==null?0:t.length;for(this.clear();++r<a;){var u=t[r];this.set(u[0],u[1])}}function Yx(){this.__data__=S1?S1(null):{},this.size=0}function Gx(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}function Vx(t){var r=this.__data__;if(S1){var a=r[t];return a===g?i:a}return De.call(r,t)?r[t]:i}function Qx(t){var r=this.__data__;return S1?r[t]!==i:De.call(r,t)}function jx(t,r){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=S1&&r===i?g:r,this}vr.prototype.clear=Yx,vr.prototype.delete=Gx,vr.prototype.get=Vx,vr.prototype.has=Qx,vr.prototype.set=jx;function Zn(t){var r=-1,a=t==null?0:t.length;for(this.clear();++r<a;){var u=t[r];this.set(u[0],u[1])}}function qx(){this.__data__=[],this.size=0}function Xx(t){var r=this.__data__,a=Yi(r,t);if(a<0)return!1;var u=r.length-1;return a==u?r.pop():zi.call(r,a,1),--this.size,!0}function Jx(t){var r=this.__data__,a=Yi(r,t);return a<0?i:r[a][1]}function ew(t){return Yi(this.__data__,t)>-1}function tw(t,r){var a=this.__data__,u=Yi(a,t);return u<0?(++this.size,a.push([t,r])):a[u][1]=r,this}Zn.prototype.clear=qx,Zn.prototype.delete=Xx,Zn.prototype.get=Jx,Zn.prototype.has=ew,Zn.prototype.set=tw;function Yn(t){var r=-1,a=t==null?0:t.length;for(this.clear();++r<a;){var u=t[r];this.set(u[0],u[1])}}function nw(){this.size=0,this.__data__={hash:new vr,map:new(L1||Zn),string:new vr}}function rw(t){var r=i0(this,t).delete(t);return this.size-=r?1:0,r}function iw(t){return i0(this,t).get(t)}function ow(t){return i0(this,t).has(t)}function aw(t,r){var a=i0(this,t),u=a.size;return a.set(t,r),this.size+=a.size==u?0:1,this}Yn.prototype.clear=nw,Yn.prototype.delete=rw,Yn.prototype.get=iw,Yn.prototype.has=ow,Yn.prototype.set=aw;function br(t){var r=-1,a=t==null?0:t.length;for(this.__data__=new Yn;++r<a;)this.add(t[r])}function sw(t){return this.__data__.set(t,g),this}function lw(t){return this.__data__.has(t)}br.prototype.add=br.prototype.push=sw,br.prototype.has=lw;function wn(t){var r=this.__data__=new Zn(t);this.size=r.size}function cw(){this.__data__=new Zn,this.size=0}function uw(t){var r=this.__data__,a=r.delete(t);return this.size=r.size,a}function fw(t){return this.__data__.get(t)}function dw(t){return this.__data__.has(t)}function hw(t,r){var a=this.__data__;if(a instanceof Zn){var u=a.__data__;if(!L1||u.length<s-1)return u.push([t,r]),this.size=++a.size,this;a=this.__data__=new Yn(u)}return a.set(t,r),this.size=a.size,this}wn.prototype.clear=cw,wn.prototype.delete=uw,wn.prototype.get=fw,wn.prototype.has=dw,wn.prototype.set=hw;function w2(t,r){var a=ye(t),u=!a&&$r(t),h=!a&&!u&&fr(t),m=!a&&!u&&!h&&l1(t),w=a||u||h||m,S=w?Eo(t.length,wx):[],M=S.length;for(var B in t)(r||De.call(t,B))&&!(w&&(B=="length"||h&&(B=="offset"||B=="parent")||m&&(B=="buffer"||B=="byteLength"||B=="byteOffset")||Qn(B,M)))&&S.push(B);return S}function L2(t){var r=t.length;return r?t[qo(0,r-1)]:i}function gw(t,r){return o0(zt(t),Cr(r,0,t.length))}function pw(t){return o0(zt(t))}function Ko(t,r,a){(a!==i&&!$n(t[r],a)||a===i&&!(r in t))&&In(t,r,a)}function A1(t,r,a){var u=t[r];(!(De.call(t,r)&&$n(u,a))||a===i&&!(r in t))&&In(t,r,a)}function Yi(t,r){for(var a=t.length;a--;)if($n(t[a][0],r))return a;return-1}function mw(t,r,a,u){return sr(t,function(h,m,w){r(u,h,a(h),w)}),u}function $2(t,r){return t&&Dn(r,vt(r),t)}function yw(t,r){return t&&Dn(r,Kt(r),t)}function In(t,r,a){r=="__proto__"&&Ni?Ni(t,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):t[r]=a}function Ho(t,r){for(var a=-1,u=r.length,h=P(u),m=t==null;++a<u;)h[a]=m?i:wa(t,r[a]);return h}function Cr(t,r,a){return t===t&&(a!==i&&(t=t<=a?t:a),r!==i&&(t=t>=r?t:r)),t}function dn(t,r,a,u,h,m){var w,S=r&v,M=r&k,B=r&b;if(a&&(w=h?a(t,u,h,m):a(t)),w!==i)return w;if(!et(t))return t;var F=ye(t);if(F){if(w=oL(t),!S)return zt(t,w)}else{var H=Tt(t),q=H==bn||H==Cn;if(fr(t))return Q2(t,S);if(H==Ye||H==ue||q&&!h){if(w=M||q?{}:gl(t),!S)return M?Vw(t,yw(w,t)):Gw(t,$2(w,t))}else{if(!Ue[H])return h?t:{};w=aL(t,H,S)}}m||(m=new wn);var ne=m.get(t);if(ne)return ne;m.set(t,w),Wl(t)?t.forEach(function(ae){w.add(dn(ae,r,a,ae,t,m))}):Kl(t)&&t.forEach(function(ae,Le){w.set(Le,dn(ae,r,a,Le,t,m))});var le=B?M?la:sa:M?Kt:vt,Ce=F?i:le(t);return Gt(Ce||t,function(ae,Le){Ce&&(Le=ae,ae=t[Le]),A1(w,Le,dn(ae,r,a,Le,t,m))}),w}function _w(t){var r=vt(t);return function(a){return S2(a,t,r)}}function S2(t,r,a){var u=a.length;if(t==null)return!u;for(t=Ke(t);u--;){var h=a[u],m=r[h],w=t[h];if(w===i&&!(h in t)||!m(w))return!1}return!0}function k2(t,r,a){if(typeof t!="function")throw new un(c);return D1(function(){t.apply(i,a)},r)}function M1(t,r,a,u){var h=-1,m=Mi,w=!0,S=t.length,M=[],B=r.length;if(!S)return M;a&&(r=je(r,Vt(a))),u?(m=Ao,w=!1):r.length>=s&&(m=x1,w=!1,r=new br(r));e:for(;++h<S;){var F=t[h],H=a==null?F:a(F);if(F=u||F!==0?F:0,w&&H===H){for(var q=B;q--;)if(r[q]===H)continue e;M.push(F)}else m(r,H,u)||M.push(F)}return M}var sr=el(En),A2=el(Uo,!0);function vw(t,r){var a=!0;return sr(t,function(u,h,m){return a=!!r(u,h,m),a}),a}function Gi(t,r,a){for(var u=-1,h=t.length;++u<h;){var m=t[u],w=r(m);if(w!=null&&(S===i?w===w&&!jt(w):a(w,S)))var S=w,M=m}return M}function bw(t,r,a,u){var h=t.length;for(a=be(a),a<0&&(a=-a>h?0:h+a),u=u===i||u>h?h:be(u),u<0&&(u+=h),u=a>u?0:Zl(u);a<u;)t[a++]=r;return t}function M2(t,r){var a=[];return sr(t,function(u,h,m){r(u,h,m)&&a.push(u)}),a}function wt(t,r,a,u,h){var m=-1,w=t.length;for(a||(a=lL),h||(h=[]);++m<w;){var S=t[m];r>0&&a(S)?r>1?wt(S,r-1,a,u,h):ir(h,S):u||(h[h.length]=S)}return h}var Wo=tl(),T2=tl(!0);function En(t,r){return t&&Wo(t,r,vt)}function Uo(t,r){return t&&T2(t,r,vt)}function Vi(t,r){return rr(r,function(a){return jn(t[a])})}function xr(t,r){r=cr(r,t);for(var a=0,u=r.length;t!=null&&a<u;)t=t[Ln(r[a++])];return a&&a==u?t:i}function P2(t,r,a){var u=r(t);return ye(t)?u:ir(u,a(t))}function Dt(t){return t==null?t===i?V:At:_r&&_r in Ke(t)?nL(t):pL(t)}function Zo(t,r){return t>r}function Cw(t,r){return t!=null&&De.call(t,r)}function xw(t,r){return t!=null&&r in Ke(t)}function ww(t,r,a){return t>=Mt(r,a)&&t<yt(r,a)}function Yo(t,r,a){for(var u=a?Ao:Mi,h=t[0].length,m=t.length,w=m,S=P(m),M=1/0,B=[];w--;){var F=t[w];w&&r&&(F=je(F,Vt(r))),M=Mt(F.length,M),S[w]=!a&&(r||h>=120&&F.length>=120)?new br(w&&F):i}F=t[0];var H=-1,q=S[0];e:for(;++H<h&&B.length<M;){var ne=F[H],le=r?r(ne):ne;if(ne=a||ne!==0?ne:0,!(q?x1(q,le):u(B,le,a))){for(w=m;--w;){var Ce=S[w];if(!(Ce?x1(Ce,le):u(t[w],le,a)))continue e}q&&q.push(le),B.push(ne)}}return B}function Lw(t,r,a,u){return En(t,function(h,m,w){r(u,a(h),m,w)}),u}function T1(t,r,a){r=cr(r,t),t=_l(t,r);var u=t==null?t:t[Ln(gn(r))];return u==null?i:Yt(u,t,a)}function O2(t){return rt(t)&&Dt(t)==ue}function $w(t){return rt(t)&&Dt(t)==$e}function Sw(t){return rt(t)&&Dt(t)==Et}function P1(t,r,a,u,h){return t===r?!0:t==null||r==null||!rt(t)&&!rt(r)?t!==t&&r!==r:kw(t,r,a,u,P1,h)}function kw(t,r,a,u,h,m){var w=ye(t),S=ye(r),M=w?Ee:Tt(t),B=S?Ee:Tt(r);M=M==ue?Ye:M,B=B==ue?Ye:B;var F=M==Ye,H=B==Ye,q=M==B;if(q&&fr(t)){if(!fr(r))return!1;w=!0,F=!1}if(q&&!F)return m||(m=new wn),w||l1(t)?fl(t,r,a,u,h,m):eL(t,r,M,a,u,h,m);if(!(a&C)){var ne=F&&De.call(t,"__wrapped__"),le=H&&De.call(r,"__wrapped__");if(ne||le){var Ce=ne?t.value():t,ae=le?r.value():r;return m||(m=new wn),h(Ce,ae,a,u,m)}}return q?(m||(m=new wn),tL(t,r,a,u,h,m)):!1}function Aw(t){return rt(t)&&Tt(t)==kt}function Go(t,r,a,u){var h=a.length,m=h,w=!u;if(t==null)return!m;for(t=Ke(t);h--;){var S=a[h];if(w&&S[2]?S[1]!==t[S[0]]:!(S[0]in t))return!1}for(;++h<m;){S=a[h];var M=S[0],B=t[M],F=S[1];if(w&&S[2]){if(B===i&&!(M in t))return!1}else{var H=new wn;if(u)var q=u(B,F,M,t,r,H);if(!(q===i?P1(F,B,C|L,u,H):q))return!1}}return!0}function I2(t){if(!et(t)||uL(t))return!1;var r=jn(t)?Ax:_C;return r.test(Lr(t))}function Mw(t){return rt(t)&&Dt(t)==at}function Tw(t){return rt(t)&&Tt(t)==gt}function Pw(t){return rt(t)&&f0(t.length)&&!!Ve[Dt(t)]}function E2(t){return typeof t=="function"?t:t==null?Ht:typeof t=="object"?ye(t)?B2(t[0],t[1]):R2(t):r6(t)}function Vo(t){if(!E1(t))return Ex(t);var r=[];for(var a in Ke(t))De.call(t,a)&&a!="constructor"&&r.push(a);return r}function Ow(t){if(!et(t))return gL(t);var r=E1(t),a=[];for(var u in t)u=="constructor"&&(r||!De.call(t,u))||a.push(u);return a}function Qo(t,r){return t<r}function D2(t,r){var a=-1,u=Nt(t)?P(t.length):[];return sr(t,function(h,m,w){u[++a]=r(h,m,w)}),u}function R2(t){var r=ua(t);return r.length==1&&r[0][2]?ml(r[0][0],r[0][1]):function(a){return a===t||Go(a,t,r)}}function B2(t,r){return da(t)&&pl(r)?ml(Ln(t),r):function(a){var u=wa(a,t);return u===i&&u===r?La(a,t):P1(r,u,C|L)}}function Qi(t,r,a,u,h){t!==r&&Wo(r,function(m,w){if(h||(h=new wn),et(m))Iw(t,r,w,a,Qi,u,h);else{var S=u?u(ga(t,w),m,w+"",t,r,h):i;S===i&&(S=m),Ko(t,w,S)}},Kt)}function Iw(t,r,a,u,h,m,w){var S=ga(t,a),M=ga(r,a),B=w.get(M);if(B){Ko(t,a,B);return}var F=m?m(S,M,a+"",t,r,w):i,H=F===i;if(H){var q=ye(M),ne=!q&&fr(M),le=!q&&!ne&&l1(M);F=M,q||ne||le?ye(S)?F=S:lt(S)?F=zt(S):ne?(H=!1,F=Q2(M,!0)):le?(H=!1,F=j2(M,!0)):F=[]:R1(M)||$r(M)?(F=S,$r(S)?F=Yl(S):(!et(S)||jn(S))&&(F=gl(M))):H=!1}H&&(w.set(M,F),h(F,M,u,m,w),w.delete(M)),Ko(t,a,F)}function F2(t,r){var a=t.length;if(a)return r+=r<0?a:0,Qn(r,a)?t[r]:i}function z2(t,r,a){r.length?r=je(r,function(m){return ye(m)?function(w){return xr(w,m.length===1?m[0]:m)}:m}):r=[Ht];var u=-1;r=je(r,Vt(se()));var h=D2(t,function(m,w,S){var M=je(r,function(B){return B(m)});return{criteria:M,index:++u,value:m}});return ax(h,function(m,w){return Yw(m,w,a)})}function Ew(t,r){return N2(t,r,function(a,u){return La(t,u)})}function N2(t,r,a){for(var u=-1,h=r.length,m={};++u<h;){var w=r[u],S=xr(t,w);a(S,w)&&O1(m,cr(w,t),S)}return m}function Dw(t){return function(r){return xr(r,t)}}function jo(t,r,a,u){var h=u?ox:qr,m=-1,w=r.length,S=t;for(t===r&&(r=zt(r)),a&&(S=je(t,Vt(a)));++m<w;)for(var M=0,B=r[m],F=a?a(B):B;(M=h(S,F,M,u))>-1;)S!==t&&zi.call(S,M,1),zi.call(t,M,1);return t}function K2(t,r){for(var a=t?r.length:0,u=a-1;a--;){var h=r[a];if(a==u||h!==m){var m=h;Qn(h)?zi.call(t,h,1):ea(t,h)}}return t}function qo(t,r){return t+Hi(C2()*(r-t+1))}function Rw(t,r,a,u){for(var h=-1,m=yt(Ki((r-t)/(a||1)),0),w=P(m);m--;)w[u?m:++h]=t,t+=a;return w}function Xo(t,r){var a="";if(!t||r<1||r>tt)return a;do r%2&&(a+=t),r=Hi(r/2),r&&(t+=t);while(r);return a}function xe(t,r){return pa(yl(t,r,Ht),t+"")}function Bw(t){return L2(c1(t))}function Fw(t,r){var a=c1(t);return o0(a,Cr(r,0,a.length))}function O1(t,r,a,u){if(!et(t))return t;r=cr(r,t);for(var h=-1,m=r.length,w=m-1,S=t;S!=null&&++h<m;){var M=Ln(r[h]),B=a;if(M==="__proto__"||M==="constructor"||M==="prototype")return t;if(h!=w){var F=S[M];B=u?u(F,M,S):i,B===i&&(B=et(F)?F:Qn(r[h+1])?[]:{})}A1(S,M,B),S=S[M]}return t}var H2=Wi?function(t,r){return Wi.set(t,r),t}:Ht,zw=Ni?function(t,r){return Ni(t,"toString",{configurable:!0,enumerable:!1,value:Sa(r),writable:!0})}:Ht;function Nw(t){return o0(c1(t))}function hn(t,r,a){var u=-1,h=t.length;r<0&&(r=-r>h?0:h+r),a=a>h?h:a,a<0&&(a+=h),h=r>a?0:a-r>>>0,r>>>=0;for(var m=P(h);++u<h;)m[u]=t[u+r];return m}function Kw(t,r){var a;return sr(t,function(u,h,m){return a=r(u,h,m),!a}),!!a}function ji(t,r,a){var u=0,h=t==null?u:t.length;if(typeof r=="number"&&r===r&&h<=ie){for(;u<h;){var m=u+h>>>1,w=t[m];w!==null&&!jt(w)&&(a?w<=r:w<r)?u=m+1:h=m}return h}return Jo(t,r,Ht,a)}function Jo(t,r,a,u){var h=0,m=t==null?0:t.length;if(m===0)return 0;r=a(r);for(var w=r!==r,S=r===null,M=jt(r),B=r===i;h<m;){var F=Hi((h+m)/2),H=a(t[F]),q=H!==i,ne=H===null,le=H===H,Ce=jt(H);if(w)var ae=u||le;else B?ae=le&&(u||q):S?ae=le&&q&&(u||!ne):M?ae=le&&q&&!ne&&(u||!Ce):ne||Ce?ae=!1:ae=u?H<=r:H<r;ae?h=F+1:m=F}return Mt(m,nt)}function W2(t,r){for(var a=-1,u=t.length,h=0,m=[];++a<u;){var w=t[a],S=r?r(w):w;if(!a||!$n(S,M)){var M=S;m[h++]=w===0?0:w}}return m}function U2(t){return typeof t=="number"?t:jt(t)?Qe:+t}function Qt(t){if(typeof t=="string")return t;if(ye(t))return je(t,Qt)+"";if(jt(t))return x2?x2.call(t):"";var r=t+"";return r=="0"&&1/t==-it?"-0":r}function lr(t,r,a){var u=-1,h=Mi,m=t.length,w=!0,S=[],M=S;if(a)w=!1,h=Ao;else if(m>=s){var B=r?null:Xw(t);if(B)return Pi(B);w=!1,h=x1,M=new br}else M=r?[]:S;e:for(;++u<m;){var F=t[u],H=r?r(F):F;if(F=a||F!==0?F:0,w&&H===H){for(var q=M.length;q--;)if(M[q]===H)continue e;r&&M.push(H),S.push(F)}else h(M,H,a)||(M!==S&&M.push(H),S.push(F))}return S}function ea(t,r){r=cr(r,t);var a=-1,u=r.length;if(!u)return!0;for(;++a<u;){var h=Ln(r[a]);if(h==="__proto__"&&!De.call(t,"__proto__")||(h==="constructor"||h==="prototype")&&a<u-1)return!1}var m=_l(t,r);return m==null||delete m[Ln(gn(r))]}function Z2(t,r,a,u){return O1(t,r,a(xr(t,r)),u)}function qi(t,r,a,u){for(var h=t.length,m=u?h:-1;(u?m--:++m<h)&&r(t[m],m,t););return a?hn(t,u?0:m,u?m+1:h):hn(t,u?m+1:0,u?h:m)}function Y2(t,r){var a=t;return a instanceof Se&&(a=a.value()),Mo(r,function(u,h){return h.func.apply(h.thisArg,ir([u],h.args))},a)}function ta(t,r,a){var u=t.length;if(u<2)return u?lr(t[0]):[];for(var h=-1,m=P(u);++h<u;)for(var w=t[h],S=-1;++S<u;)S!=h&&(m[h]=M1(m[h]||w,t[S],r,a));return lr(wt(m,1),r,a)}function G2(t,r,a){for(var u=-1,h=t.length,m=r.length,w={};++u<h;){var S=u<m?r[u]:i;a(w,t[u],S)}return w}function na(t){return lt(t)?t:[]}function ra(t){return typeof t=="function"?t:Ht}function cr(t,r){return ye(t)?t:da(t,r)?[t]:xl(Re(t))}var Hw=xe;function ur(t,r,a){var u=t.length;return a=a===i?u:a,!r&&a>=u?t:hn(t,r,a)}var V2=Mx||function(t){return xt.clearTimeout(t)};function Q2(t,r){if(r)return t.slice();var a=t.length,u=m2?m2(a):new t.constructor(a);return t.copy(u),u}function ia(t){var r=new t.constructor(t.byteLength);return new Bi(r).set(new Bi(t)),r}function Ww(t,r){var a=r?ia(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.byteLength)}function Uw(t){var r=new t.constructor(t.source,O5.exec(t));return r.lastIndex=t.lastIndex,r}function Zw(t){return k1?Ke(k1.call(t)):{}}function j2(t,r){var a=r?ia(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.length)}function q2(t,r){if(t!==r){var a=t!==i,u=t===null,h=t===t,m=jt(t),w=r!==i,S=r===null,M=r===r,B=jt(r);if(!S&&!B&&!m&&t>r||m&&w&&M&&!S&&!B||u&&w&&M||!a&&M||!h)return 1;if(!u&&!m&&!B&&t<r||B&&a&&h&&!u&&!m||S&&a&&h||!w&&h||!M)return-1}return 0}function Yw(t,r,a){for(var u=-1,h=t.criteria,m=r.criteria,w=h.length,S=a.length;++u<w;){var M=q2(h[u],m[u]);if(M){if(u>=S)return M;var B=a[u];return M*(B=="desc"?-1:1)}}return t.index-r.index}function X2(t,r,a,u){for(var h=-1,m=t.length,w=a.length,S=-1,M=r.length,B=yt(m-w,0),F=P(M+B),H=!u;++S<M;)F[S]=r[S];for(;++h<w;)(H||h<m)&&(F[a[h]]=t[h]);for(;B--;)F[S++]=t[h++];return F}function J2(t,r,a,u){for(var h=-1,m=t.length,w=-1,S=a.length,M=-1,B=r.length,F=yt(m-S,0),H=P(F+B),q=!u;++h<F;)H[h]=t[h];for(var ne=h;++M<B;)H[ne+M]=r[M];for(;++w<S;)(q||h<m)&&(H[ne+a[w]]=t[h++]);return H}function zt(t,r){var a=-1,u=t.length;for(r||(r=P(u));++a<u;)r[a]=t[a];return r}function Dn(t,r,a,u){var h=!a;a||(a={});for(var m=-1,w=r.length;++m<w;){var S=r[m],M=u?u(a[S],t[S],S,a,t):i;M===i&&(M=t[S]),h?In(a,S,M):A1(a,S,M)}return a}function Gw(t,r){return Dn(t,fa(t),r)}function Vw(t,r){return Dn(t,dl(t),r)}function Xi(t,r){return function(a,u){var h=ye(a)?JC:mw,m=r?r():{};return h(a,t,se(u,2),m)}}function o1(t){return xe(function(r,a){var u=-1,h=a.length,m=h>1?a[h-1]:i,w=h>2?a[2]:i;for(m=t.length>3&&typeof m=="function"?(h--,m):i,w&&Rt(a[0],a[1],w)&&(m=h<3?i:m,h=1),r=Ke(r);++u<h;){var S=a[u];S&&t(r,S,u,m)}return r})}function el(t,r){return function(a,u){if(a==null)return a;if(!Nt(a))return t(a,u);for(var h=a.length,m=r?h:-1,w=Ke(a);(r?m--:++m<h)&&u(w[m],m,w)!==!1;);return a}}function tl(t){return function(r,a,u){for(var h=-1,m=Ke(r),w=u(r),S=w.length;S--;){var M=w[t?S:++h];if(a(m[M],M,m)===!1)break}return r}}function Qw(t,r,a){var u=r&$,h=I1(t);function m(){var w=this&&this!==xt&&this instanceof m?h:t;return w.apply(u?a:this,arguments)}return m}function nl(t){return function(r){r=Re(r);var a=Xr(r)?xn(r):i,u=a?a[0]:r.charAt(0),h=a?ur(a,1).join(""):r.slice(1);return u[t]()+h}}function a1(t){return function(r){return Mo(t6(e6(r).replace(zC,"")),t,"")}}function I1(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var a=i1(t.prototype),u=t.apply(a,r);return et(u)?u:a}}function jw(t,r,a){var u=I1(t);function h(){for(var m=arguments.length,w=P(m),S=m,M=s1(h);S--;)w[S]=arguments[S];var B=m<3&&w[0]!==M&&w[m-1]!==M?[]:or(w,M);if(m-=B.length,m<a)return sl(t,r,Ji,h.placeholder,i,w,B,i,i,a-m);var F=this&&this!==xt&&this instanceof h?u:t;return Yt(F,this,w)}return h}function rl(t){return function(r,a,u){var h=Ke(r);if(!Nt(r)){var m=se(a,3);r=vt(r),a=function(S){return m(h[S],S,h)}}var w=t(r,a,u);return w>-1?h[m?r[w]:w]:i}}function il(t){return Vn(function(r){var a=r.length,u=a,h=fn.prototype.thru;for(t&&r.reverse();u--;){var m=r[u];if(typeof m!="function")throw new un(c);if(h&&!w&&r0(m)=="wrapper")var w=new fn([],!0)}for(u=w?u:a;++u<a;){m=r[u];var S=r0(m),M=S=="wrapper"?ca(m):i;M&&ha(M[0])&&M[1]==(I|E|X|z)&&!M[4].length&&M[9]==1?w=w[r0(M[0])].apply(w,M[3]):w=m.length==1&&ha(m)?w[S]():w.thru(m)}return function(){var B=arguments,F=B[0];if(w&&B.length==1&&ye(F))return w.plant(F).value();for(var H=0,q=a?r[H].apply(this,B):F;++H<a;)q=r[H].call(this,q);return q}})}function Ji(t,r,a,u,h,m,w,S,M,B){var F=r&I,H=r&$,q=r&T,ne=r&(E|U),le=r&Q,Ce=q?i:I1(t);function ae(){for(var Le=arguments.length,Ae=P(Le),qt=Le;qt--;)Ae[qt]=arguments[qt];if(ne)var Bt=s1(ae),Xt=lx(Ae,Bt);if(u&&(Ae=X2(Ae,u,h,ne)),m&&(Ae=J2(Ae,m,w,ne)),Le-=Xt,ne&&Le<B){var ct=or(Ae,Bt);return sl(t,r,Ji,ae.placeholder,a,Ae,ct,S,M,B-Le)}var Sn=H?a:this,Xn=q?Sn[t]:t;return Le=Ae.length,S?Ae=mL(Ae,S):le&&Le>1&&Ae.reverse(),F&&M<Le&&(Ae.length=M),this&&this!==xt&&this instanceof ae&&(Xn=Ce||I1(Xn)),Xn.apply(Sn,Ae)}return ae}function ol(t,r){return function(a,u){return Lw(a,t,r(u),{})}}function e0(t,r){return function(a,u){var h;if(a===i&&u===i)return r;if(a!==i&&(h=a),u!==i){if(h===i)return u;typeof a=="string"||typeof u=="string"?(a=Qt(a),u=Qt(u)):(a=U2(a),u=U2(u)),h=t(a,u)}return h}}function oa(t){return Vn(function(r){return r=je(r,Vt(se())),xe(function(a){var u=this;return t(r,function(h){return Yt(h,u,a)})})})}function t0(t,r){r=r===i?" ":Qt(r);var a=r.length;if(a<2)return a?Xo(r,t):r;var u=Xo(r,Ki(t/Jr(r)));return Xr(r)?ur(xn(u),0,t).join(""):u.slice(0,t)}function qw(t,r,a,u){var h=r&$,m=I1(t);function w(){for(var S=-1,M=arguments.length,B=-1,F=u.length,H=P(F+M),q=this&&this!==xt&&this instanceof w?m:t;++B<F;)H[B]=u[B];for(;M--;)H[B++]=arguments[++S];return Yt(q,h?a:this,H)}return w}function al(t){return function(r,a,u){return u&&typeof u!="number"&&Rt(r,a,u)&&(a=u=i),r=qn(r),a===i?(a=r,r=0):a=qn(a),u=u===i?r<a?1:-1:qn(u),Rw(r,a,u,t)}}function n0(t){return function(r,a){return typeof r=="string"&&typeof a=="string"||(r=pn(r),a=pn(a)),t(r,a)}}function sl(t,r,a,u,h,m,w,S,M,B){var F=r&E,H=F?w:i,q=F?i:w,ne=F?m:i,le=F?i:m;r|=F?X:Y,r&=~(F?Y:X),r&O||(r&=~($|T));var Ce=[t,r,h,ne,H,le,q,S,M,B],ae=a.apply(i,Ce);return ha(t)&&vl(ae,Ce),ae.placeholder=u,bl(ae,t,r)}function aa(t){var r=mt[t];return function(a,u){if(a=pn(a),u=u==null?0:Mt(be(u),292),u&&b2(a)){var h=(Re(a)+"e").split("e"),m=r(h[0]+"e"+(+h[1]+u));return h=(Re(m)+"e").split("e"),+(h[0]+"e"+(+h[1]-u))}return r(a)}}var Xw=n1&&1/Pi(new n1([,-0]))[1]==it?function(t){return new n1(t)}:Ma;function ll(t){return function(r){var a=Tt(r);return a==kt?Ro(r):a==gt?px(r):sx(r,t(r))}}function Gn(t,r,a,u,h,m,w,S){var M=r&T;if(!M&&typeof t!="function")throw new un(c);var B=u?u.length:0;if(B||(r&=~(X|Y),u=h=i),w=w===i?w:yt(be(w),0),S=S===i?S:be(S),B-=h?h.length:0,r&Y){var F=u,H=h;u=h=i}var q=M?i:ca(t),ne=[t,r,a,u,h,F,H,m,w,S];if(q&&hL(ne,q),t=ne[0],r=ne[1],a=ne[2],u=ne[3],h=ne[4],S=ne[9]=ne[9]===i?M?0:t.length:yt(ne[9]-B,0),!S&&r&(E|U)&&(r&=~(E|U)),!r||r==$)var le=Qw(t,r,a);else r==E||r==U?le=jw(t,r,S):(r==X||r==($|X))&&!h.length?le=qw(t,r,a,u):le=Ji.apply(i,ne);var Ce=q?H2:vl;return bl(Ce(le,ne),t,r)}function cl(t,r,a,u){return t===i||$n(t,t1[a])&&!De.call(u,a)?r:t}function ul(t,r,a,u,h,m){return et(t)&&et(r)&&(m.set(r,t),Qi(t,r,i,ul,m),m.delete(r)),t}function Jw(t){return R1(t)?i:t}function fl(t,r,a,u,h,m){var w=a&C,S=t.length,M=r.length;if(S!=M&&!(w&&M>S))return!1;var B=m.get(t),F=m.get(r);if(B&&F)return B==r&&F==t;var H=-1,q=!0,ne=a&L?new br:i;for(m.set(t,r),m.set(r,t);++H<S;){var le=t[H],Ce=r[H];if(u)var ae=w?u(Ce,le,H,r,t,m):u(le,Ce,H,t,r,m);if(ae!==i){if(ae)continue;q=!1;break}if(ne){if(!To(r,function(Le,Ae){if(!x1(ne,Ae)&&(le===Le||h(le,Le,a,u,m)))return ne.push(Ae)})){q=!1;break}}else if(!(le===Ce||h(le,Ce,a,u,m))){q=!1;break}}return m.delete(t),m.delete(r),q}function eL(t,r,a,u,h,m,w){switch(a){case We:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case $e:return!(t.byteLength!=r.byteLength||!m(new Bi(t),new Bi(r)));case Je:case Et:case Be:return $n(+t,+r);case Un:return t.name==r.name&&t.message==r.message;case at:case an:return t==r+"";case kt:var S=Ro;case gt:var M=u&C;if(S||(S=Pi),t.size!=r.size&&!M)return!1;var B=w.get(t);if(B)return B==r;u|=L,w.set(t,r);var F=fl(S(t),S(r),u,h,m,w);return w.delete(t),F;case D:if(k1)return k1.call(t)==k1.call(r)}return!1}function tL(t,r,a,u,h,m){var w=a&C,S=sa(t),M=S.length,B=sa(r),F=B.length;if(M!=F&&!w)return!1;for(var H=M;H--;){var q=S[H];if(!(w?q in r:De.call(r,q)))return!1}var ne=m.get(t),le=m.get(r);if(ne&&le)return ne==r&&le==t;var Ce=!0;m.set(t,r),m.set(r,t);for(var ae=w;++H<M;){q=S[H];var Le=t[q],Ae=r[q];if(u)var qt=w?u(Ae,Le,q,r,t,m):u(Le,Ae,q,t,r,m);if(!(qt===i?Le===Ae||h(Le,Ae,a,u,m):qt)){Ce=!1;break}ae||(ae=q=="constructor")}if(Ce&&!ae){var Bt=t.constructor,Xt=r.constructor;Bt!=Xt&&"constructor"in t&&"constructor"in r&&!(typeof Bt=="function"&&Bt instanceof Bt&&typeof Xt=="function"&&Xt instanceof Xt)&&(Ce=!1)}return m.delete(t),m.delete(r),Ce}function Vn(t){return pa(yl(t,i,Sl),t+"")}function sa(t){return P2(t,vt,fa)}function la(t){return P2(t,Kt,dl)}var ca=Wi?function(t){return Wi.get(t)}:Ma;function r0(t){for(var r=t.name+"",a=r1[r],u=De.call(r1,r)?a.length:0;u--;){var h=a[u],m=h.func;if(m==null||m==t)return h.name}return r}function s1(t){var r=De.call(p,"placeholder")?p:t;return r.placeholder}function se(){var t=p.iteratee||ka;return t=t===ka?E2:t,arguments.length?t(arguments[0],arguments[1]):t}function i0(t,r){var a=t.__data__;return cL(r)?a[typeof r=="string"?"string":"hash"]:a.map}function ua(t){for(var r=vt(t),a=r.length;a--;){var u=r[a],h=t[u];r[a]=[u,h,pl(h)]}return r}function wr(t,r){var a=dx(t,r);return I2(a)?a:i}function nL(t){var r=De.call(t,_r),a=t[_r];try{t[_r]=i;var u=!0}catch{}var h=Di.call(t);return u&&(r?t[_r]=a:delete t[_r]),h}var fa=Fo?function(t){return t==null?[]:(t=Ke(t),rr(Fo(t),function(r){return _2.call(t,r)}))}:Ta,dl=Fo?function(t){for(var r=[];t;)ir(r,fa(t)),t=Fi(t);return r}:Ta,Tt=Dt;(zo&&Tt(new zo(new ArrayBuffer(1)))!=We||L1&&Tt(new L1)!=kt||No&&Tt(No.resolve())!=_t||n1&&Tt(new n1)!=gt||$1&&Tt(new $1)!=me)&&(Tt=function(t){var r=Dt(t),a=r==Ye?t.constructor:i,u=a?Lr(a):"";if(u)switch(u){case Fx:return We;case zx:return kt;case Nx:return _t;case Kx:return gt;case Hx:return me}return r});function rL(t,r,a){for(var u=-1,h=a.length;++u<h;){var m=a[u],w=m.size;switch(m.type){case"drop":t+=w;break;case"dropRight":r-=w;break;case"take":r=Mt(r,t+w);break;case"takeRight":t=yt(t,r-w);break}}return{start:t,end:r}}function iL(t){var r=t.match(fC);return r?r[1].split(dC):[]}function hl(t,r,a){r=cr(r,t);for(var u=-1,h=r.length,m=!1;++u<h;){var w=Ln(r[u]);if(!(m=t!=null&&a(t,w)))break;t=t[w]}return m||++u!=h?m:(h=t==null?0:t.length,!!h&&f0(h)&&Qn(w,h)&&(ye(t)||$r(t)))}function oL(t){var r=t.length,a=new t.constructor(r);return r&&typeof t[0]=="string"&&De.call(t,"index")&&(a.index=t.index,a.input=t.input),a}function gl(t){return typeof t.constructor=="function"&&!E1(t)?i1(Fi(t)):{}}function aL(t,r,a){var u=t.constructor;switch(r){case $e:return ia(t);case Je:case Et:return new u(+t);case We:return Ww(t,a);case sn:case ln:case ve:case pt:case Ct:case Ut:case de:case st:case Ge:return j2(t,a);case kt:return new u;case Be:case an:return new u(t);case at:return Uw(t);case gt:return new u;case D:return Zw(t)}}function sL(t,r){var a=r.length;if(!a)return t;var u=a-1;return r[u]=(a>1?"& ":"")+r[u],r=r.join(a>2?", ":" "),t.replace(uC,`{
9
9
  /* [wrapped with `+r+`] */
10
- `)}function iL(t){return pe(t)||wr(t)||!!(_2&&t&&t[_2])}function Yn(t,r){var o=typeof t;return r=r??nt,!!r&&(o=="number"||o!="symbol"&&mC.test(t))&&t>-1&&t%1==0&&t<r}function Bt(t,r,o){if(!tt(o))return!1;var u=typeof r;return(u=="number"?Wt(o)&&Yn(r,o.length):u=="string"&&r in o)?Cn(o[r],t):!1}function da(t,r){if(pe(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||qt(t)?!0:nC.test(t)||!tC.test(t)||r!=null&&t in We(r)}function oL(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function ha(t){var r=i0(t),o=p[r];if(typeof o!="function"||!(r in Le.prototype))return!1;if(t===o)return!0;var u=ca(o);return!!u&&t===u[0]}function aL(t){return!!g2&&g2 in t}var sL=Ei?Gn:Oa;function E1(t){var r=t&&t.constructor,o=typeof r=="function"&&r.prototype||Jr;return t===o}function gl(t){return t===t&&!tt(t)}function pl(t,r){return function(o){return o==null?!1:o[t]===r&&(r!==i||t in We(o))}}function lL(t){var r=u0(t,function(u){return o.size===_&&o.clear(),u}),o=r.cache;return r}function cL(t,r){var o=t[1],u=r[1],h=o|u,m=h<($|T|E),x=u==E&&o==D||u==E&&o==z&&t[7].length<=r[8]||u==(E|z)&&r[7].length<=r[8]&&o==D;if(!(m||x))return t;u&$&&(t[2]=r[2],h|=o&$?0:P);var S=r[3];if(S){var M=t[3];t[3]=M?q2(M,S,r[4]):S,t[4]=M?rr(t[3],y):r[4]}return S=r[5],S&&(M=t[5],t[5]=M?X2(M,S,r[6]):S,t[6]=M?rr(t[5],y):r[6]),S=r[7],S&&(t[7]=S),u&E&&(t[8]=t[8]==null?r[8]:kt(t[8],r[8])),t[9]==null&&(t[9]=r[9]),t[0]=r[0],t[1]=h,t}function uL(t){var r=[];if(t!=null)for(var o in We(t))r.push(o);return r}function fL(t){return Ri.call(t)}function ml(t,r,o){return r=pt(r===i?t.length-1:r,0),function(){for(var u=arguments,h=-1,m=pt(u.length-r,0),x=O(m);++h<m;)x[h]=u[r+h];h=-1;for(var S=O(r+1);++h<r;)S[h]=u[h];return S[r]=o(x),Gt(t,this,S)}}function yl(t,r){return r.length<2?t:br(t,fn(r,0,-1))}function dL(t,r){for(var o=t.length,u=kt(r.length,o),h=Nt(t);u--;){var m=r[u];t[u]=Yn(m,o)?h[m]:i}return t}function ga(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}var _l=bl(W2),D1=kx||function(t,r){return vt.setTimeout(t,r)},pa=bl(Dw);function vl(t,r,o){var u=r+"";return pa(t,rL(u,hL(eL(u),o)))}function bl(t){var r=0,o=0;return function(){var u=Ox(),h=Pe-(u-o);if(o=u,h>0){if(++r>=ee)return arguments[0]}else r=0;return t.apply(i,arguments)}}function a0(t,r){var o=-1,u=t.length,h=u-1;for(r=r===i?u:r;++o<r;){var m=qo(o,h),x=t[m];t[m]=t[o],t[o]=x}return t.length=r,t}var Cl=lL(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(rC,function(o,u,h,m){r.push(h?m.replace(uC,"$1"):u||o)}),r});function bn(t){if(typeof t=="string"||qt(t))return t;var r=t+"";return r=="0"&&1/t==-at?"-0":r}function xr(t){if(t!=null){try{return Di.call(t)}catch{}try{return t+""}catch{}}return""}function hL(t,r){return Vt(Ae,function(o){var u="_."+o[0];r&o[1]&&!Ti(t,u)&&t.push(u)}),t.sort()}function xl(t){if(t instanceof Le)return t.clone();var r=new cn(t.__wrapped__,t.__chain__);return r.__actions__=Nt(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}function gL(t,r,o){(o?Bt(t,r,o):r===i)?r=1:r=pt(_e(r),0);var u=t==null?0:t.length;if(!u||r<1)return[];for(var h=0,m=0,x=O(Ki(u/r));h<u;)x[m++]=fn(t,h,h+=r);return x}function pL(t){for(var r=-1,o=t==null?0:t.length,u=0,h=[];++r<o;){var m=t[r];m&&(h[u++]=m)}return h}function mL(){var t=arguments.length;if(!t)return[];for(var r=O(t-1),o=arguments[0],u=t;u--;)r[u-1]=arguments[u];return nr(pe(o)?Nt(o):[o],bt(r,1))}var yL=be(function(t,r){return lt(t)?M1(t,bt(r,1,lt,!0)):[]}),_L=be(function(t,r){var o=dn(r);return lt(o)&&(o=i),lt(t)?M1(t,bt(r,1,lt,!0),se(o,2)):[]}),vL=be(function(t,r){var o=dn(r);return lt(o)&&(o=i),lt(t)?M1(t,bt(r,1,lt,!0),i,o):[]});function bL(t,r,o){var u=t==null?0:t.length;return u?(r=o||r===i?1:_e(r),fn(t,r<0?0:r,u)):[]}function CL(t,r,o){var u=t==null?0:t.length;return u?(r=o||r===i?1:_e(r),r=u-r,fn(t,0,r<0?0:r)):[]}function xL(t,r){return t&&t.length?Xi(t,se(r,3),!0,!0):[]}function wL(t,r){return t&&t.length?Xi(t,se(r,3),!0):[]}function LL(t,r,o,u){var h=t==null?0:t.length;return h?(o&&typeof o!="number"&&Bt(t,r,o)&&(o=0,u=h),mw(t,r,o,u)):[]}function wl(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var h=o==null?0:_e(o);return h<0&&(h=pt(u+h,0)),Oi(t,se(r,3),h)}function Ll(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var h=u-1;return o!==i&&(h=_e(o),h=o<0?pt(u+h,0):kt(h,u-1)),Oi(t,se(r,3),h,!0)}function $l(t){var r=t==null?0:t.length;return r?bt(t,1):[]}function $L(t){var r=t==null?0:t.length;return r?bt(t,at):[]}function SL(t,r){var o=t==null?0:t.length;return o?(r=r===i?1:_e(r),bt(t,r)):[]}function kL(t){for(var r=-1,o=t==null?0:t.length,u={};++r<o;){var h=t[r];Mn(u,h[0],h[1])}return u}function Sl(t){return t&&t.length?t[0]:i}function AL(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var h=o==null?0:_e(o);return h<0&&(h=pt(u+h,0)),Qr(t,r,h)}function ML(t){var r=t==null?0:t.length;return r?fn(t,0,-1):[]}var TL=be(function(t){var r=Qe(t,na);return r.length&&r[0]===t[0]?Yo(r):[]}),OL=be(function(t){var r=dn(t),o=Qe(t,na);return r===dn(o)?r=i:o.pop(),o.length&&o[0]===t[0]?Yo(o,se(r,2)):[]}),PL=be(function(t){var r=dn(t),o=Qe(t,na);return r=typeof r=="function"?r:i,r&&o.pop(),o.length&&o[0]===t[0]?Yo(o,i,r):[]});function IL(t,r){return t==null?"":Mx.call(t,r)}function dn(t){var r=t==null?0:t.length;return r?t[r-1]:i}function EL(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var h=u;return o!==i&&(h=_e(o),h=h<0?pt(u+h,0):kt(h,u-1)),r===r?hx(t,r,h):Oi(t,a2,h,!0)}function DL(t,r){return t&&t.length?B2(t,_e(r)):i}var RL=be(kl);function kl(t,r){return t&&t.length&&r&&r.length?jo(t,r):t}function BL(t,r,o){return t&&t.length&&r&&r.length?jo(t,r,se(o,2)):t}function FL(t,r,o){return t&&t.length&&r&&r.length?jo(t,r,i,o):t}var zL=Hn(function(t,r){var o=t==null?0:t.length,u=Ko(t,r);return N2(t,Qe(r,function(h){return Yn(h,o)?+h:h}).sort(j2)),u});function NL(t,r){var o=[];if(!(t&&t.length))return o;var u=-1,h=[],m=t.length;for(r=se(r,3);++u<m;){var x=t[u];r(x,u,t)&&(o.push(x),h.push(u))}return N2(t,h),o}function ma(t){return t==null?t:Ix.call(t)}function WL(t,r,o){var u=t==null?0:t.length;return u?(o&&typeof o!="number"&&Bt(t,r,o)?(r=0,o=u):(r=r==null?0:_e(r),o=o===i?u:_e(o)),fn(t,r,o)):[]}function KL(t,r){return qi(t,r)}function UL(t,r,o){return Jo(t,r,se(o,2))}function ZL(t,r){var o=t==null?0:t.length;if(o){var u=qi(t,r);if(u<o&&Cn(t[u],r))return u}return-1}function HL(t,r){return qi(t,r,!0)}function YL(t,r,o){return Jo(t,r,se(o,2),!0)}function GL(t,r){var o=t==null?0:t.length;if(o){var u=qi(t,r,!0)-1;if(Cn(t[u],r))return u}return-1}function VL(t){return t&&t.length?K2(t):[]}function QL(t,r){return t&&t.length?K2(t,se(r,2)):[]}function jL(t){var r=t==null?0:t.length;return r?fn(t,1,r):[]}function qL(t,r,o){return t&&t.length?(r=o||r===i?1:_e(r),fn(t,0,r<0?0:r)):[]}function XL(t,r,o){var u=t==null?0:t.length;return u?(r=o||r===i?1:_e(r),r=u-r,fn(t,r<0?0:r,u)):[]}function JL(t,r){return t&&t.length?Xi(t,se(r,3),!1,!0):[]}function e$(t,r){return t&&t.length?Xi(t,se(r,3)):[]}var t$=be(function(t){return ar(bt(t,1,lt,!0))}),n$=be(function(t){var r=dn(t);return lt(r)&&(r=i),ar(bt(t,1,lt,!0),se(r,2))}),r$=be(function(t){var r=dn(t);return r=typeof r=="function"?r:i,ar(bt(t,1,lt,!0),i,r)});function i$(t){return t&&t.length?ar(t):[]}function o$(t,r){return t&&t.length?ar(t,se(r,2)):[]}function a$(t,r){return r=typeof r=="function"?r:i,t&&t.length?ar(t,i,r):[]}function ya(t){if(!(t&&t.length))return[];var r=0;return t=tr(t,function(o){if(lt(o))return r=pt(o.length,r),!0}),Eo(r,function(o){return Qe(t,Oo(o))})}function Al(t,r){if(!(t&&t.length))return[];var o=ya(t);return r==null?o:Qe(o,function(u){return Gt(r,i,u)})}var s$=be(function(t,r){return lt(t)?M1(t,r):[]}),l$=be(function(t){return ta(tr(t,lt))}),c$=be(function(t){var r=dn(t);return lt(r)&&(r=i),ta(tr(t,lt),se(r,2))}),u$=be(function(t){var r=dn(t);return r=typeof r=="function"?r:i,ta(tr(t,lt),i,r)}),f$=be(ya);function d$(t,r){return Y2(t||[],r||[],A1)}function h$(t,r){return Y2(t||[],r||[],P1)}var g$=be(function(t){var r=t.length,o=r>1?t[r-1]:i;return o=typeof o=="function"?(t.pop(),o):i,Al(t,o)});function Ml(t){var r=p(t);return r.__chain__=!0,r}function p$(t,r){return r(t),t}function s0(t,r){return r(t)}var m$=Hn(function(t){var r=t.length,o=r?t[0]:0,u=this.__wrapped__,h=function(m){return Ko(m,t)};return r>1||this.__actions__.length||!(u instanceof Le)||!Yn(o)?this.thru(h):(u=u.slice(o,+o+(r?1:0)),u.__actions__.push({func:s0,args:[h],thisArg:i}),new cn(u,this.__chain__).thru(function(m){return r&&!m.length&&m.push(i),m}))});function y$(){return Ml(this)}function _$(){return new cn(this.value(),this.__chain__)}function v$(){this.__values__===i&&(this.__values__=Ul(this.value()));var t=this.__index__>=this.__values__.length,r=t?i:this.__values__[this.__index__++];return{done:t,value:r}}function b$(){return this}function C$(t){for(var r,o=this;o instanceof Yi;){var u=xl(o);u.__index__=0,u.__values__=i,r?h.__wrapped__=u:r=u;var h=u;o=o.__wrapped__}return h.__wrapped__=t,r}function x$(){var t=this.__wrapped__;if(t instanceof Le){var r=t;return this.__actions__.length&&(r=new Le(this)),r=r.reverse(),r.__actions__.push({func:s0,args:[ma],thisArg:i}),new cn(r,this.__chain__)}return this.thru(ma)}function w$(){return H2(this.__wrapped__,this.__actions__)}var L$=Ji(function(t,r,o){Re.call(t,o)?++t[o]:Mn(t,o,1)});function $$(t,r,o){var u=pe(t)?i2:pw;return o&&Bt(t,r,o)&&(r=i),u(t,se(r,3))}function S$(t,r){var o=pe(t)?tr:A2;return o(t,se(r,3))}var k$=nl(wl),A$=nl(Ll);function M$(t,r){return bt(l0(t,r),1)}function T$(t,r){return bt(l0(t,r),at)}function O$(t,r,o){return o=o===i?1:_e(o),bt(l0(t,r),o)}function Tl(t,r){var o=pe(t)?Vt:or;return o(t,se(r,3))}function Ol(t,r){var o=pe(t)?jC:k2;return o(t,se(r,3))}var P$=Ji(function(t,r,o){Re.call(t,o)?t[o].push(r):Mn(t,o,[r])});function I$(t,r,o,u){t=Wt(t)?t:s1(t),o=o&&!u?_e(o):0;var h=t.length;return o<0&&(o=pt(h+o,0)),h0(t)?o<=h&&t.indexOf(r,o)>-1:!!h&&Qr(t,r,o)>-1}var E$=be(function(t,r,o){var u=-1,h=typeof r=="function",m=Wt(t)?O(t.length):[];return or(t,function(x){m[++u]=h?Gt(r,x,o):T1(x,r,o)}),m}),D$=Ji(function(t,r,o){Mn(t,o,r)});function l0(t,r){var o=pe(t)?Qe:E2;return o(t,se(r,3))}function R$(t,r,o,u){return t==null?[]:(pe(r)||(r=r==null?[]:[r]),o=u?i:o,pe(o)||(o=o==null?[]:[o]),F2(t,r,o))}var B$=Ji(function(t,r,o){t[o?0:1].push(r)},function(){return[[],[]]});function F$(t,r,o){var u=pe(t)?Mo:l2,h=arguments.length<3;return u(t,se(r,4),o,h,or)}function z$(t,r,o){var u=pe(t)?qC:l2,h=arguments.length<3;return u(t,se(r,4),o,h,k2)}function N$(t,r){var o=pe(t)?tr:A2;return o(t,f0(se(r,3)))}function W$(t){var r=pe(t)?w2:Iw;return r(t)}function K$(t,r,o){(o?Bt(t,r,o):r===i)?r=1:r=_e(r);var u=pe(t)?uw:Ew;return u(t,r)}function U$(t){var r=pe(t)?fw:Rw;return r(t)}function Z$(t){if(t==null)return 0;if(Wt(t))return h0(t)?qr(t):t.length;var r=At(t);return r==mt||r==I?t.size:Vo(t).length}function H$(t,r,o){var u=pe(t)?To:Bw;return o&&Bt(t,r,o)&&(r=i),u(t,se(r,3))}var Y$=be(function(t,r){if(t==null)return[];var o=r.length;return o>1&&Bt(t,r[0],r[1])?r=[]:o>2&&Bt(r[0],r[1],r[2])&&(r=[r[0]]),F2(t,bt(r,1),[])}),c0=Sx||function(){return vt.Date.now()};function G$(t,r){if(typeof r!="function")throw new ln(c);return t=_e(t),function(){if(--t<1)return r.apply(this,arguments)}}function Pl(t,r,o){return r=o?i:r,r=t&&r==null?t.length:r,Zn(t,E,i,i,i,i,r)}function Il(t,r){var o;if(typeof r!="function")throw new ln(c);return t=_e(t),function(){return--t>0&&(o=r.apply(this,arguments)),t<=1&&(r=i),o}}var _a=be(function(t,r,o){var u=$;if(o.length){var h=rr(o,o1(_a));u|=X}return Zn(t,u,r,o,h)}),El=be(function(t,r,o){var u=$|T;if(o.length){var h=rr(o,o1(El));u|=X}return Zn(r,u,t,o,h)});function Dl(t,r,o){r=o?i:r;var u=Zn(t,D,i,i,i,i,i,r);return u.placeholder=Dl.placeholder,u}function Rl(t,r,o){r=o?i:r;var u=Zn(t,U,i,i,i,i,i,r);return u.placeholder=Rl.placeholder,u}function Bl(t,r,o){var u,h,m,x,S,M,B=0,F=!1,K=!1,q=!0;if(typeof t!="function")throw new ln(c);r=hn(r)||0,tt(o)&&(F=!!o.leading,K="maxWait"in o,m=K?pt(hn(o.maxWait)||0,r):m,q="trailing"in o?!!o.trailing:q);function ne(ct){var xn=u,Qn=h;return u=h=i,B=ct,x=t.apply(Qn,xn),x}function le(ct){return B=ct,S=D1(we,r),F?ne(ct):x}function ve(ct){var xn=ct-M,Qn=ct-B,r6=r-xn;return K?kt(r6,m-Qn):r6}function ae(ct){var xn=ct-M,Qn=ct-B;return M===i||xn>=r||xn<0||K&&Qn>=m}function we(){var ct=c0();if(ae(ct))return Se(ct);S=D1(we,ve(ct))}function Se(ct){return S=i,q&&u?ne(ct):(u=h=i,x)}function Xt(){S!==i&&G2(S),B=0,u=M=h=S=i}function Ft(){return S===i?x:Se(c0())}function Jt(){var ct=c0(),xn=ae(ct);if(u=arguments,h=this,M=ct,xn){if(S===i)return le(M);if(K)return G2(S),S=D1(we,r),ne(M)}return S===i&&(S=D1(we,r)),x}return Jt.cancel=Xt,Jt.flush=Ft,Jt}var V$=be(function(t,r){return S2(t,1,r)}),Q$=be(function(t,r,o){return S2(t,hn(r)||0,o)});function j$(t){return Zn(t,V)}function u0(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new ln(c);var o=function(){var u=arguments,h=r?r.apply(this,u):u[0],m=o.cache;if(m.has(h))return m.get(h);var x=t.apply(this,u);return o.cache=m.set(h,x)||m,x};return o.cache=new(u0.Cache||Un),o}u0.Cache=Un;function f0(t){if(typeof t!="function")throw new ln(c);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}function q$(t){return Il(2,t)}var X$=Fw(function(t,r){r=r.length==1&&pe(r[0])?Qe(r[0],Qt(se())):Qe(bt(r,1),Qt(se()));var o=r.length;return be(function(u){for(var h=-1,m=kt(u.length,o);++h<m;)u[h]=r[h].call(this,u[h]);return Gt(t,this,u)})}),va=be(function(t,r){var o=rr(r,o1(va));return Zn(t,X,i,r,o)}),Fl=be(function(t,r){var o=rr(r,o1(Fl));return Zn(t,Y,i,r,o)}),J$=Hn(function(t,r){return Zn(t,z,i,i,i,r)});function eS(t,r){if(typeof t!="function")throw new ln(c);return r=r===i?r:_e(r),be(t,r)}function tS(t,r){if(typeof t!="function")throw new ln(c);return r=r==null?0:pt(_e(r),0),be(function(o){var u=o[r],h=lr(o,0,r);return u&&nr(h,u),Gt(t,this,h)})}function nS(t,r,o){var u=!0,h=!0;if(typeof t!="function")throw new ln(c);return tt(o)&&(u="leading"in o?!!o.leading:u,h="trailing"in o?!!o.trailing:h),Bl(t,r,{leading:u,maxWait:r,trailing:h})}function rS(t){return Pl(t,1)}function iS(t,r){return va(ra(r),t)}function oS(){if(!arguments.length)return[];var t=arguments[0];return pe(t)?t:[t]}function aS(t){return un(t,v)}function sS(t,r){return r=typeof r=="function"?r:i,un(t,v,r)}function lS(t){return un(t,b|v)}function cS(t,r){return r=typeof r=="function"?r:i,un(t,b|v,r)}function uS(t,r){return r==null||$2(t,r,yt(r))}function Cn(t,r){return t===r||t!==t&&r!==r}var fS=r0(Ho),dS=r0(function(t,r){return t>=r}),wr=O2(function(){return arguments}())?O2:function(t){return ot(t)&&Re.call(t,"callee")&&!y2.call(t,"callee")},pe=O.isArray,hS=X5?Qt(X5):Cw;function Wt(t){return t!=null&&d0(t.length)&&!Gn(t)}function lt(t){return ot(t)&&Wt(t)}function gS(t){return t===!0||t===!1||ot(t)&&Rt(t)==Xe}var cr=Ax||Oa,pS=J5?Qt(J5):xw;function mS(t){return ot(t)&&t.nodeType===1&&!R1(t)}function yS(t){if(t==null)return!0;if(Wt(t)&&(pe(t)||typeof t=="string"||typeof t.splice=="function"||cr(t)||a1(t)||wr(t)))return!t.length;var r=At(t);if(r==mt||r==I)return!t.size;if(E1(t))return!Vo(t).length;for(var o in t)if(Re.call(t,o))return!1;return!0}function _S(t,r){return O1(t,r)}function vS(t,r,o){o=typeof o=="function"?o:i;var u=o?o(t,r):i;return u===i?O1(t,r,i,o):!!u}function ba(t){if(!ot(t))return!1;var r=Rt(t);return r==Nn||r==on||typeof t.message=="string"&&typeof t.name=="string"&&!R1(t)}function bS(t){return typeof t=="number"&&v2(t)}function Gn(t){if(!tt(t))return!1;var r=Rt(t);return r==Wn||r==er||r==st||r==an}function zl(t){return typeof t=="number"&&t==_e(t)}function d0(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=nt}function tt(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}function ot(t){return t!=null&&typeof t=="object"}var Nl=e2?Qt(e2):Lw;function CS(t,r){return t===r||Go(t,r,ua(r))}function xS(t,r,o){return o=typeof o=="function"?o:i,Go(t,r,ua(r),o)}function wS(t){return Wl(t)&&t!=+t}function LS(t){if(sL(t))throw new fe(l);return P2(t)}function $S(t){return t===null}function SS(t){return t==null}function Wl(t){return typeof t=="number"||ot(t)&&Rt(t)==Ie}function R1(t){if(!ot(t)||Rt(t)!=Je)return!1;var r=zi(t);if(r===null)return!0;var o=Re.call(r,"constructor")&&r.constructor;return typeof o=="function"&&o instanceof o&&Di.call(o)==xx}var Ca=t2?Qt(t2):$w;function kS(t){return zl(t)&&t>=-nt&&t<=nt}var Kl=n2?Qt(n2):Sw;function h0(t){return typeof t=="string"||!pe(t)&&ot(t)&&Rt(t)==j}function qt(t){return typeof t=="symbol"||ot(t)&&Rt(t)==xe}var a1=r2?Qt(r2):kw;function AS(t){return t===i}function MS(t){return ot(t)&&At(t)==ke}function TS(t){return ot(t)&&Rt(t)==$t}var OS=r0(Qo),PS=r0(function(t,r){return t<=r});function Ul(t){if(!t)return[];if(Wt(t))return h0(t)?_n(t):Nt(t);if(w1&&t[w1])return ux(t[w1]());var r=At(t),o=r==mt?Ro:r==I?Pi:s1;return o(t)}function Vn(t){if(!t)return t===0?t:0;if(t=hn(t),t===at||t===-at){var r=t<0?-1:1;return r*$e}return t===t?t:0}function _e(t){var r=Vn(t),o=r%1;return r===r?o?r-o:r:0}function Zl(t){return t?vr(_e(t),0,ze):0}function hn(t){if(typeof t=="number")return t;if(qt(t))return Ve;if(tt(t)){var r=typeof t.valueOf=="function"?t.valueOf():t;t=tt(r)?r+"":r}if(typeof t!="string")return t===0?t:+t;t=c2(t);var o=hC.test(t);return o||pC.test(t)?GC(t.slice(2),o?2:8):dC.test(t)?Ve:+t}function Hl(t){return On(t,Kt(t))}function IS(t){return t?vr(_e(t),-nt,nt):t===0?t:0}function Be(t){return t==null?"":jt(t)}var ES=r1(function(t,r){if(E1(r)||Wt(r)){On(r,yt(r),t);return}for(var o in r)Re.call(r,o)&&A1(t,o,r[o])}),Yl=r1(function(t,r){On(r,Kt(r),t)}),Gl=r1(function(t,r,o,u){On(r,Kt(r),t,u)}),xa=r1(function(t,r,o,u){On(r,yt(r),t,u)}),DS=Hn(Ko);function RS(t,r){var o=n1(t);return r==null?o:L2(o,r)}var BS=be(function(t,r){t=We(t);var o=-1,u=r.length,h=u>2?r[2]:i;for(h&&Bt(r[0],r[1],h)&&(u=1);++o<u;)for(var m=r[o],x=Kt(m),S=-1,M=x.length;++S<M;){var B=x[S],F=t[B];(F===i||Cn(F,Jr[B])&&!Re.call(t,B))&&(t[B]=m[B])}return t}),FS=be(function(t){return t.push(i,cl),Gt(Vl,i,t)});function zS(t,r){return o2(t,se(r,3),Tn)}function NS(t,r){return o2(t,se(r,3),Zo)}function WS(t,r){return t==null?t:Uo(t,se(r,3),Kt)}function KS(t,r){return t==null?t:M2(t,se(r,3),Kt)}function US(t,r){return t&&Tn(t,se(r,3))}function ZS(t,r){return t&&Zo(t,se(r,3))}function HS(t){return t==null?[]:Qi(t,yt(t))}function YS(t){return t==null?[]:Qi(t,Kt(t))}function wa(t,r,o){var u=t==null?i:br(t,r);return u===i?o:u}function GS(t,r){return t!=null&&dl(t,r,yw)}function La(t,r){return t!=null&&dl(t,r,_w)}var VS=il(function(t,r,o){r!=null&&typeof r.toString!="function"&&(r=Ri.call(r)),t[r]=o},Sa(Ut)),QS=il(function(t,r,o){r!=null&&typeof r.toString!="function"&&(r=Ri.call(r)),Re.call(t,r)?t[r].push(o):t[r]=[o]},se),jS=be(T1);function yt(t){return Wt(t)?x2(t):Vo(t)}function Kt(t){return Wt(t)?x2(t,!0):Aw(t)}function qS(t,r){var o={};return r=se(r,3),Tn(t,function(u,h,m){Mn(o,r(u,h,m),u)}),o}function XS(t,r){var o={};return r=se(r,3),Tn(t,function(u,h,m){Mn(o,h,r(u,h,m))}),o}var JS=r1(function(t,r,o){ji(t,r,o)}),Vl=r1(function(t,r,o,u){ji(t,r,o,u)}),ek=Hn(function(t,r){var o={};if(t==null)return o;var u=!1;r=Qe(r,function(m){return m=sr(m,t),u||(u=m.length>1),m}),On(t,la(t),o),u&&(o=un(o,b|k|v,Qw));for(var h=r.length;h--;)ea(o,r[h]);return o});function tk(t,r){return Ql(t,f0(se(r)))}var nk=Hn(function(t,r){return t==null?{}:Tw(t,r)});function Ql(t,r){if(t==null)return{};var o=Qe(la(t),function(u){return[u]});return r=se(r),z2(t,o,function(u,h){return r(u,h[0])})}function rk(t,r,o){r=sr(r,t);var u=-1,h=r.length;for(h||(h=1,t=i);++u<h;){var m=t==null?i:t[bn(r[u])];m===i&&(u=h,m=o),t=Gn(m)?m.call(t):m}return t}function ik(t,r,o){return t==null?t:P1(t,r,o)}function ok(t,r,o,u){return u=typeof u=="function"?u:i,t==null?t:P1(t,r,o,u)}var jl=sl(yt),ql=sl(Kt);function ak(t,r,o){var u=pe(t),h=u||cr(t)||a1(t);if(r=se(r,4),o==null){var m=t&&t.constructor;h?o=u?new m:[]:tt(t)?o=Gn(m)?n1(zi(t)):{}:o={}}return(h?Vt:Tn)(t,function(x,S,M){return r(o,x,S,M)}),o}function sk(t,r){return t==null?!0:ea(t,r)}function lk(t,r,o){return t==null?t:Z2(t,r,ra(o))}function ck(t,r,o,u){return u=typeof u=="function"?u:i,t==null?t:Z2(t,r,ra(o),u)}function s1(t){return t==null?[]:Do(t,yt(t))}function uk(t){return t==null?[]:Do(t,Kt(t))}function fk(t,r,o){return o===i&&(o=r,r=i),o!==i&&(o=hn(o),o=o===o?o:0),r!==i&&(r=hn(r),r=r===r?r:0),vr(hn(t),r,o)}function dk(t,r,o){return r=Vn(r),o===i?(o=r,r=0):o=Vn(o),t=hn(t),vw(t,r,o)}function hk(t,r,o){if(o&&typeof o!="boolean"&&Bt(t,r,o)&&(r=o=i),o===i&&(typeof r=="boolean"?(o=r,r=i):typeof t=="boolean"&&(o=t,t=i)),t===i&&r===i?(t=0,r=1):(t=Vn(t),r===i?(r=t,t=0):r=Vn(r)),t>r){var u=t;t=r,r=u}if(o||t%1||r%1){var h=b2();return kt(t+h*(r-t+YC("1e-"+((h+"").length-1))),r)}return qo(t,r)}var gk=i1(function(t,r,o){return r=r.toLowerCase(),t+(o?Xl(r):r)});function Xl(t){return $a(Be(t).toLowerCase())}function Jl(t){return t=Be(t),t&&t.replace(yC,ox).replace(RC,"")}function pk(t,r,o){t=Be(t),r=jt(r);var u=t.length;o=o===i?u:vr(_e(o),0,u);var h=o;return o-=r.length,o>=0&&t.slice(o,h)==r}function mk(t){return t=Be(t),t&&Xb.test(t)?t.replace(A5,ax):t}function yk(t){return t=Be(t),t&&iC.test(t)?t.replace(vo,"\\$&"):t}var _k=i1(function(t,r,o){return t+(o?"-":"")+r.toLowerCase()}),vk=i1(function(t,r,o){return t+(o?" ":"")+r.toLowerCase()}),bk=tl("toLowerCase");function Ck(t,r,o){t=Be(t),r=_e(r);var u=r?qr(t):0;if(!r||u>=r)return t;var h=(r-u)/2;return n0(Ui(h),o)+t+n0(Ki(h),o)}function xk(t,r,o){t=Be(t),r=_e(r);var u=r?qr(t):0;return r&&u<r?t+n0(r-u,o):t}function wk(t,r,o){t=Be(t),r=_e(r);var u=r?qr(t):0;return r&&u<r?n0(r-u,o)+t:t}function Lk(t,r,o){return o||r==null?r=0:r&&(r=+r),Px(Be(t).replace(bo,""),r||0)}function $k(t,r,o){return(o?Bt(t,r,o):r===i)?r=1:r=_e(r),Xo(Be(t),r)}function Sk(){var t=arguments,r=Be(t[0]);return t.length<3?r:r.replace(t[1],t[2])}var kk=i1(function(t,r,o){return t+(o?"_":"")+r.toLowerCase()});function Ak(t,r,o){return o&&typeof o!="number"&&Bt(t,r,o)&&(r=o=i),o=o===i?ze:o>>>0,o?(t=Be(t),t&&(typeof r=="string"||r!=null&&!Ca(r))&&(r=jt(r),!r&&jr(t))?lr(_n(t),0,o):t.split(r,o)):[]}var Mk=i1(function(t,r,o){return t+(o?" ":"")+$a(r)});function Tk(t,r,o){return t=Be(t),o=o==null?0:vr(_e(o),0,t.length),r=jt(r),t.slice(o,o+r.length)==r}function Ok(t,r,o){var u=p.templateSettings;o&&Bt(t,r,o)&&(r=i),t=Be(t),r=xa({},r,u,ll);var h=xa({},r.imports,u.imports,ll),m=yt(h),x=Do(h,m);Vt(m,function(ae){if(T5.test(ae))throw new fe(d)});var S,M,B=0,F=r.interpolate||ki,K="__p += '",q=Bo((r.escape||ki).source+"|"+F.source+"|"+(F===M5?fC:ki).source+"|"+(r.evaluate||ki).source+"|$","g"),ne="//# sourceURL="+(Re.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++WC+"]")+`
11
- `;t.replace(q,function(ae,we,Se,Xt,Ft,Jt){return Se||(Se=Xt),K+=t.slice(B,Jt).replace(_C,sx),we&&(S=!0,K+=`' +
12
- __e(`+we+`) +
13
- '`),Ft&&(M=!0,K+=`';
14
- `+Ft+`;
15
- __p += '`),Se&&(K+=`' +
16
- ((__t = (`+Se+`)) == null ? '' : __t) +
17
- '`),B=Jt+ae.length,ae}),K+=`';
18
- `;var le=Re.call(r,"variable")&&r.variable;if(!le)K=`with (obj) {
19
- `+K+`
10
+ `)}function lL(t){return ye(t)||$r(t)||!!(v2&&t&&t[v2])}function Qn(t,r){var a=typeof t;return r=r??tt,!!r&&(a=="number"||a!="symbol"&&bC.test(t))&&t>-1&&t%1==0&&t<r}function Rt(t,r,a){if(!et(a))return!1;var u=typeof r;return(u=="number"?Nt(a)&&Qn(r,a.length):u=="string"&&r in a)?$n(a[r],t):!1}function da(t,r){if(ye(t))return!1;var a=typeof t;return a=="number"||a=="symbol"||a=="boolean"||t==null||jt(t)?!0:aC.test(t)||!oC.test(t)||r!=null&&t in Ke(r)}function cL(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function ha(t){var r=r0(t),a=p[r];if(typeof a!="function"||!(r in Se.prototype))return!1;if(t===a)return!0;var u=ca(a);return!!u&&t===u[0]}function uL(t){return!!p2&&p2 in t}var fL=Ii?jn:Pa;function E1(t){var r=t&&t.constructor,a=typeof r=="function"&&r.prototype||t1;return t===a}function pl(t){return t===t&&!et(t)}function ml(t,r){return function(a){return a==null?!1:a[t]===r&&(r!==i||t in Ke(a))}}function dL(t){var r=c0(t,function(u){return a.size===_&&a.clear(),u}),a=r.cache;return r}function hL(t,r){var a=t[1],u=r[1],h=a|u,m=h<($|T|I),w=u==I&&a==E||u==I&&a==z&&t[7].length<=r[8]||u==(I|z)&&r[7].length<=r[8]&&a==E;if(!(m||w))return t;u&$&&(t[2]=r[2],h|=a&$?0:O);var S=r[3];if(S){var M=t[3];t[3]=M?X2(M,S,r[4]):S,t[4]=M?or(t[3],y):r[4]}return S=r[5],S&&(M=t[5],t[5]=M?J2(M,S,r[6]):S,t[6]=M?or(t[5],y):r[6]),S=r[7],S&&(t[7]=S),u&I&&(t[8]=t[8]==null?r[8]:Mt(t[8],r[8])),t[9]==null&&(t[9]=r[9]),t[0]=r[0],t[1]=h,t}function gL(t){var r=[];if(t!=null)for(var a in Ke(t))r.push(a);return r}function pL(t){return Di.call(t)}function yl(t,r,a){return r=yt(r===i?t.length-1:r,0),function(){for(var u=arguments,h=-1,m=yt(u.length-r,0),w=P(m);++h<m;)w[h]=u[r+h];h=-1;for(var S=P(r+1);++h<r;)S[h]=u[h];return S[r]=a(w),Yt(t,this,S)}}function _l(t,r){return r.length<2?t:xr(t,hn(r,0,-1))}function mL(t,r){for(var a=t.length,u=Mt(r.length,a),h=zt(t);u--;){var m=r[u];t[u]=Qn(m,a)?h[m]:i}return t}function ga(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}var vl=Cl(H2),D1=Px||function(t,r){return xt.setTimeout(t,r)},pa=Cl(zw);function bl(t,r,a){var u=r+"";return pa(t,sL(u,yL(iL(u),a)))}function Cl(t){var r=0,a=0;return function(){var u=Dx(),h=Oe-(u-a);if(a=u,h>0){if(++r>=ee)return arguments[0]}else r=0;return t.apply(i,arguments)}}function o0(t,r){var a=-1,u=t.length,h=u-1;for(r=r===i?u:r;++a<r;){var m=qo(a,h),w=t[m];t[m]=t[a],t[a]=w}return t.length=r,t}var xl=dL(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(sC,function(a,u,h,m){r.push(h?m.replace(gC,"$1"):u||a)}),r});function Ln(t){if(typeof t=="string"||jt(t))return t;var r=t+"";return r=="0"&&1/t==-it?"-0":r}function Lr(t){if(t!=null){try{return Ei.call(t)}catch{}try{return t+""}catch{}}return""}function yL(t,r){return Gt(Me,function(a){var u="_."+a[0];r&a[1]&&!Mi(t,u)&&t.push(u)}),t.sort()}function wl(t){if(t instanceof Se)return t.clone();var r=new fn(t.__wrapped__,t.__chain__);return r.__actions__=zt(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}function _L(t,r,a){(a?Rt(t,r,a):r===i)?r=1:r=yt(be(r),0);var u=t==null?0:t.length;if(!u||r<1)return[];for(var h=0,m=0,w=P(Ki(u/r));h<u;)w[m++]=hn(t,h,h+=r);return w}function vL(t){for(var r=-1,a=t==null?0:t.length,u=0,h=[];++r<a;){var m=t[r];m&&(h[u++]=m)}return h}function bL(){var t=arguments.length;if(!t)return[];for(var r=P(t-1),a=arguments[0],u=t;u--;)r[u-1]=arguments[u];return ir(ye(a)?zt(a):[a],wt(r,1))}var CL=xe(function(t,r){return lt(t)?M1(t,wt(r,1,lt,!0)):[]}),xL=xe(function(t,r){var a=gn(r);return lt(a)&&(a=i),lt(t)?M1(t,wt(r,1,lt,!0),se(a,2)):[]}),wL=xe(function(t,r){var a=gn(r);return lt(a)&&(a=i),lt(t)?M1(t,wt(r,1,lt,!0),i,a):[]});function LL(t,r,a){var u=t==null?0:t.length;return u?(r=a||r===i?1:be(r),hn(t,r<0?0:r,u)):[]}function $L(t,r,a){var u=t==null?0:t.length;return u?(r=a||r===i?1:be(r),r=u-r,hn(t,0,r<0?0:r)):[]}function SL(t,r){return t&&t.length?qi(t,se(r,3),!0,!0):[]}function kL(t,r){return t&&t.length?qi(t,se(r,3),!0):[]}function AL(t,r,a,u){var h=t==null?0:t.length;return h?(a&&typeof a!="number"&&Rt(t,r,a)&&(a=0,u=h),bw(t,r,a,u)):[]}function Ll(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=a==null?0:be(a);return h<0&&(h=yt(u+h,0)),Ti(t,se(r,3),h)}function $l(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=u-1;return a!==i&&(h=be(a),h=a<0?yt(u+h,0):Mt(h,u-1)),Ti(t,se(r,3),h,!0)}function Sl(t){var r=t==null?0:t.length;return r?wt(t,1):[]}function ML(t){var r=t==null?0:t.length;return r?wt(t,it):[]}function TL(t,r){var a=t==null?0:t.length;return a?(r=r===i?1:be(r),wt(t,r)):[]}function PL(t){for(var r=-1,a=t==null?0:t.length,u={};++r<a;){var h=t[r];In(u,h[0],h[1])}return u}function kl(t){return t&&t.length?t[0]:i}function OL(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=a==null?0:be(a);return h<0&&(h=yt(u+h,0)),qr(t,r,h)}function IL(t){var r=t==null?0:t.length;return r?hn(t,0,-1):[]}var EL=xe(function(t){var r=je(t,na);return r.length&&r[0]===t[0]?Yo(r):[]}),DL=xe(function(t){var r=gn(t),a=je(t,na);return r===gn(a)?r=i:a.pop(),a.length&&a[0]===t[0]?Yo(a,se(r,2)):[]}),RL=xe(function(t){var r=gn(t),a=je(t,na);return r=typeof r=="function"?r:i,r&&a.pop(),a.length&&a[0]===t[0]?Yo(a,i,r):[]});function BL(t,r){return t==null?"":Ix.call(t,r)}function gn(t){var r=t==null?0:t.length;return r?t[r-1]:i}function FL(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=u;return a!==i&&(h=be(a),h=h<0?yt(u+h,0):Mt(h,u-1)),r===r?yx(t,r,h):Ti(t,s2,h,!0)}function zL(t,r){return t&&t.length?F2(t,be(r)):i}var NL=xe(Al);function Al(t,r){return t&&t.length&&r&&r.length?jo(t,r):t}function KL(t,r,a){return t&&t.length&&r&&r.length?jo(t,r,se(a,2)):t}function HL(t,r,a){return t&&t.length&&r&&r.length?jo(t,r,i,a):t}var WL=Vn(function(t,r){var a=t==null?0:t.length,u=Ho(t,r);return K2(t,je(r,function(h){return Qn(h,a)?+h:h}).sort(q2)),u});function UL(t,r){var a=[];if(!(t&&t.length))return a;var u=-1,h=[],m=t.length;for(r=se(r,3);++u<m;){var w=t[u];r(w,u,t)&&(a.push(w),h.push(u))}return K2(t,h),a}function ma(t){return t==null?t:Bx.call(t)}function ZL(t,r,a){var u=t==null?0:t.length;return u?(a&&typeof a!="number"&&Rt(t,r,a)?(r=0,a=u):(r=r==null?0:be(r),a=a===i?u:be(a)),hn(t,r,a)):[]}function YL(t,r){return ji(t,r)}function GL(t,r,a){return Jo(t,r,se(a,2))}function VL(t,r){var a=t==null?0:t.length;if(a){var u=ji(t,r);if(u<a&&$n(t[u],r))return u}return-1}function QL(t,r){return ji(t,r,!0)}function jL(t,r,a){return Jo(t,r,se(a,2),!0)}function qL(t,r){var a=t==null?0:t.length;if(a){var u=ji(t,r,!0)-1;if($n(t[u],r))return u}return-1}function XL(t){return t&&t.length?W2(t):[]}function JL(t,r){return t&&t.length?W2(t,se(r,2)):[]}function e$(t){var r=t==null?0:t.length;return r?hn(t,1,r):[]}function t$(t,r,a){return t&&t.length?(r=a||r===i?1:be(r),hn(t,0,r<0?0:r)):[]}function n$(t,r,a){var u=t==null?0:t.length;return u?(r=a||r===i?1:be(r),r=u-r,hn(t,r<0?0:r,u)):[]}function r$(t,r){return t&&t.length?qi(t,se(r,3),!1,!0):[]}function i$(t,r){return t&&t.length?qi(t,se(r,3)):[]}var o$=xe(function(t){return lr(wt(t,1,lt,!0))}),a$=xe(function(t){var r=gn(t);return lt(r)&&(r=i),lr(wt(t,1,lt,!0),se(r,2))}),s$=xe(function(t){var r=gn(t);return r=typeof r=="function"?r:i,lr(wt(t,1,lt,!0),i,r)});function l$(t){return t&&t.length?lr(t):[]}function c$(t,r){return t&&t.length?lr(t,se(r,2)):[]}function u$(t,r){return r=typeof r=="function"?r:i,t&&t.length?lr(t,i,r):[]}function ya(t){if(!(t&&t.length))return[];var r=0;return t=rr(t,function(a){if(lt(a))return r=yt(a.length,r),!0}),Eo(r,function(a){return je(t,Po(a))})}function Ml(t,r){if(!(t&&t.length))return[];var a=ya(t);return r==null?a:je(a,function(u){return Yt(r,i,u)})}var f$=xe(function(t,r){return lt(t)?M1(t,r):[]}),d$=xe(function(t){return ta(rr(t,lt))}),h$=xe(function(t){var r=gn(t);return lt(r)&&(r=i),ta(rr(t,lt),se(r,2))}),g$=xe(function(t){var r=gn(t);return r=typeof r=="function"?r:i,ta(rr(t,lt),i,r)}),p$=xe(ya);function m$(t,r){return G2(t||[],r||[],A1)}function y$(t,r){return G2(t||[],r||[],O1)}var _$=xe(function(t){var r=t.length,a=r>1?t[r-1]:i;return a=typeof a=="function"?(t.pop(),a):i,Ml(t,a)});function Tl(t){var r=p(t);return r.__chain__=!0,r}function v$(t,r){return r(t),t}function a0(t,r){return r(t)}var b$=Vn(function(t){var r=t.length,a=r?t[0]:0,u=this.__wrapped__,h=function(m){return Ho(m,t)};return r>1||this.__actions__.length||!(u instanceof Se)||!Qn(a)?this.thru(h):(u=u.slice(a,+a+(r?1:0)),u.__actions__.push({func:a0,args:[h],thisArg:i}),new fn(u,this.__chain__).thru(function(m){return r&&!m.length&&m.push(i),m}))});function C$(){return Tl(this)}function x$(){return new fn(this.value(),this.__chain__)}function w$(){this.__values__===i&&(this.__values__=Ul(this.value()));var t=this.__index__>=this.__values__.length,r=t?i:this.__values__[this.__index__++];return{done:t,value:r}}function L$(){return this}function $$(t){for(var r,a=this;a instanceof Zi;){var u=wl(a);u.__index__=0,u.__values__=i,r?h.__wrapped__=u:r=u;var h=u;a=a.__wrapped__}return h.__wrapped__=t,r}function S$(){var t=this.__wrapped__;if(t instanceof Se){var r=t;return this.__actions__.length&&(r=new Se(this)),r=r.reverse(),r.__actions__.push({func:a0,args:[ma],thisArg:i}),new fn(r,this.__chain__)}return this.thru(ma)}function k$(){return Y2(this.__wrapped__,this.__actions__)}var A$=Xi(function(t,r,a){De.call(t,a)?++t[a]:In(t,a,1)});function M$(t,r,a){var u=ye(t)?o2:vw;return a&&Rt(t,r,a)&&(r=i),u(t,se(r,3))}function T$(t,r){var a=ye(t)?rr:M2;return a(t,se(r,3))}var P$=rl(Ll),O$=rl($l);function I$(t,r){return wt(s0(t,r),1)}function E$(t,r){return wt(s0(t,r),it)}function D$(t,r,a){return a=a===i?1:be(a),wt(s0(t,r),a)}function Pl(t,r){var a=ye(t)?Gt:sr;return a(t,se(r,3))}function Ol(t,r){var a=ye(t)?ex:A2;return a(t,se(r,3))}var R$=Xi(function(t,r,a){De.call(t,a)?t[a].push(r):In(t,a,[r])});function B$(t,r,a,u){t=Nt(t)?t:c1(t),a=a&&!u?be(a):0;var h=t.length;return a<0&&(a=yt(h+a,0)),d0(t)?a<=h&&t.indexOf(r,a)>-1:!!h&&qr(t,r,a)>-1}var F$=xe(function(t,r,a){var u=-1,h=typeof r=="function",m=Nt(t)?P(t.length):[];return sr(t,function(w){m[++u]=h?Yt(r,w,a):T1(w,r,a)}),m}),z$=Xi(function(t,r,a){In(t,a,r)});function s0(t,r){var a=ye(t)?je:D2;return a(t,se(r,3))}function N$(t,r,a,u){return t==null?[]:(ye(r)||(r=r==null?[]:[r]),a=u?i:a,ye(a)||(a=a==null?[]:[a]),z2(t,r,a))}var K$=Xi(function(t,r,a){t[a?0:1].push(r)},function(){return[[],[]]});function H$(t,r,a){var u=ye(t)?Mo:c2,h=arguments.length<3;return u(t,se(r,4),a,h,sr)}function W$(t,r,a){var u=ye(t)?tx:c2,h=arguments.length<3;return u(t,se(r,4),a,h,A2)}function U$(t,r){var a=ye(t)?rr:M2;return a(t,u0(se(r,3)))}function Z$(t){var r=ye(t)?L2:Bw;return r(t)}function Y$(t,r,a){(a?Rt(t,r,a):r===i)?r=1:r=be(r);var u=ye(t)?gw:Fw;return u(t,r)}function G$(t){var r=ye(t)?pw:Nw;return r(t)}function V$(t){if(t==null)return 0;if(Nt(t))return d0(t)?Jr(t):t.length;var r=Tt(t);return r==kt||r==gt?t.size:Vo(t).length}function Q$(t,r,a){var u=ye(t)?To:Kw;return a&&Rt(t,r,a)&&(r=i),u(t,se(r,3))}var j$=xe(function(t,r){if(t==null)return[];var a=r.length;return a>1&&Rt(t,r[0],r[1])?r=[]:a>2&&Rt(r[0],r[1],r[2])&&(r=[r[0]]),z2(t,wt(r,1),[])}),l0=Tx||function(){return xt.Date.now()};function q$(t,r){if(typeof r!="function")throw new un(c);return t=be(t),function(){if(--t<1)return r.apply(this,arguments)}}function Il(t,r,a){return r=a?i:r,r=t&&r==null?t.length:r,Gn(t,I,i,i,i,i,r)}function El(t,r){var a;if(typeof r!="function")throw new un(c);return t=be(t),function(){return--t>0&&(a=r.apply(this,arguments)),t<=1&&(r=i),a}}var _a=xe(function(t,r,a){var u=$;if(a.length){var h=or(a,s1(_a));u|=X}return Gn(t,u,r,a,h)}),Dl=xe(function(t,r,a){var u=$|T;if(a.length){var h=or(a,s1(Dl));u|=X}return Gn(r,u,t,a,h)});function Rl(t,r,a){r=a?i:r;var u=Gn(t,E,i,i,i,i,i,r);return u.placeholder=Rl.placeholder,u}function Bl(t,r,a){r=a?i:r;var u=Gn(t,U,i,i,i,i,i,r);return u.placeholder=Bl.placeholder,u}function Fl(t,r,a){var u,h,m,w,S,M,B=0,F=!1,H=!1,q=!0;if(typeof t!="function")throw new un(c);r=pn(r)||0,et(a)&&(F=!!a.leading,H="maxWait"in a,m=H?yt(pn(a.maxWait)||0,r):m,q="trailing"in a?!!a.trailing:q);function ne(ct){var Sn=u,Xn=h;return u=h=i,B=ct,w=t.apply(Xn,Sn),w}function le(ct){return B=ct,S=D1(Le,r),F?ne(ct):w}function Ce(ct){var Sn=ct-M,Xn=ct-B,i6=r-Sn;return H?Mt(i6,m-Xn):i6}function ae(ct){var Sn=ct-M,Xn=ct-B;return M===i||Sn>=r||Sn<0||H&&Xn>=m}function Le(){var ct=l0();if(ae(ct))return Ae(ct);S=D1(Le,Ce(ct))}function Ae(ct){return S=i,q&&u?ne(ct):(u=h=i,w)}function qt(){S!==i&&V2(S),B=0,u=M=h=S=i}function Bt(){return S===i?w:Ae(l0())}function Xt(){var ct=l0(),Sn=ae(ct);if(u=arguments,h=this,M=ct,Sn){if(S===i)return le(M);if(H)return V2(S),S=D1(Le,r),ne(M)}return S===i&&(S=D1(Le,r)),w}return Xt.cancel=qt,Xt.flush=Bt,Xt}var X$=xe(function(t,r){return k2(t,1,r)}),J$=xe(function(t,r,a){return k2(t,pn(r)||0,a)});function eS(t){return Gn(t,Q)}function c0(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new un(c);var a=function(){var u=arguments,h=r?r.apply(this,u):u[0],m=a.cache;if(m.has(h))return m.get(h);var w=t.apply(this,u);return a.cache=m.set(h,w)||m,w};return a.cache=new(c0.Cache||Yn),a}c0.Cache=Yn;function u0(t){if(typeof t!="function")throw new un(c);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}function tS(t){return El(2,t)}var nS=Hw(function(t,r){r=r.length==1&&ye(r[0])?je(r[0],Vt(se())):je(wt(r,1),Vt(se()));var a=r.length;return xe(function(u){for(var h=-1,m=Mt(u.length,a);++h<m;)u[h]=r[h].call(this,u[h]);return Yt(t,this,u)})}),va=xe(function(t,r){var a=or(r,s1(va));return Gn(t,X,i,r,a)}),zl=xe(function(t,r){var a=or(r,s1(zl));return Gn(t,Y,i,r,a)}),rS=Vn(function(t,r){return Gn(t,z,i,i,i,r)});function iS(t,r){if(typeof t!="function")throw new un(c);return r=r===i?r:be(r),xe(t,r)}function oS(t,r){if(typeof t!="function")throw new un(c);return r=r==null?0:yt(be(r),0),xe(function(a){var u=a[r],h=ur(a,0,r);return u&&ir(h,u),Yt(t,this,h)})}function aS(t,r,a){var u=!0,h=!0;if(typeof t!="function")throw new un(c);return et(a)&&(u="leading"in a?!!a.leading:u,h="trailing"in a?!!a.trailing:h),Fl(t,r,{leading:u,maxWait:r,trailing:h})}function sS(t){return Il(t,1)}function lS(t,r){return va(ra(r),t)}function cS(){if(!arguments.length)return[];var t=arguments[0];return ye(t)?t:[t]}function uS(t){return dn(t,b)}function fS(t,r){return r=typeof r=="function"?r:i,dn(t,b,r)}function dS(t){return dn(t,v|b)}function hS(t,r){return r=typeof r=="function"?r:i,dn(t,v|b,r)}function gS(t,r){return r==null||S2(t,r,vt(r))}function $n(t,r){return t===r||t!==t&&r!==r}var pS=n0(Zo),mS=n0(function(t,r){return t>=r}),$r=O2(function(){return arguments}())?O2:function(t){return rt(t)&&De.call(t,"callee")&&!_2.call(t,"callee")},ye=P.isArray,yS=J5?Vt(J5):$w;function Nt(t){return t!=null&&f0(t.length)&&!jn(t)}function lt(t){return rt(t)&&Nt(t)}function _S(t){return t===!0||t===!1||rt(t)&&Dt(t)==Je}var fr=Ox||Pa,vS=e2?Vt(e2):Sw;function bS(t){return rt(t)&&t.nodeType===1&&!R1(t)}function CS(t){if(t==null)return!0;if(Nt(t)&&(ye(t)||typeof t=="string"||typeof t.splice=="function"||fr(t)||l1(t)||$r(t)))return!t.length;var r=Tt(t);if(r==kt||r==gt)return!t.size;if(E1(t))return!Vo(t).length;for(var a in t)if(De.call(t,a))return!1;return!0}function xS(t,r){return P1(t,r)}function wS(t,r,a){a=typeof a=="function"?a:i;var u=a?a(t,r):i;return u===i?P1(t,r,i,a):!!u}function ba(t){if(!rt(t))return!1;var r=Dt(t);return r==Un||r==rn||typeof t.message=="string"&&typeof t.name=="string"&&!R1(t)}function LS(t){return typeof t=="number"&&b2(t)}function jn(t){if(!et(t))return!1;var r=Dt(t);return r==bn||r==Cn||r==ot||r==on}function Nl(t){return typeof t=="number"&&t==be(t)}function f0(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=tt}function et(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}function rt(t){return t!=null&&typeof t=="object"}var Kl=t2?Vt(t2):Aw;function $S(t,r){return t===r||Go(t,r,ua(r))}function SS(t,r,a){return a=typeof a=="function"?a:i,Go(t,r,ua(r),a)}function kS(t){return Hl(t)&&t!=+t}function AS(t){if(fL(t))throw new he(l);return I2(t)}function MS(t){return t===null}function TS(t){return t==null}function Hl(t){return typeof t=="number"||rt(t)&&Dt(t)==Be}function R1(t){if(!rt(t)||Dt(t)!=Ye)return!1;var r=Fi(t);if(r===null)return!0;var a=De.call(r,"constructor")&&r.constructor;return typeof a=="function"&&a instanceof a&&Ei.call(a)==Sx}var Ca=n2?Vt(n2):Mw;function PS(t){return Nl(t)&&t>=-tt&&t<=tt}var Wl=r2?Vt(r2):Tw;function d0(t){return typeof t=="string"||!ye(t)&&rt(t)&&Dt(t)==an}function jt(t){return typeof t=="symbol"||rt(t)&&Dt(t)==D}var l1=i2?Vt(i2):Pw;function OS(t){return t===i}function IS(t){return rt(t)&&Tt(t)==me}function ES(t){return rt(t)&&Dt(t)==ce}var DS=n0(Qo),RS=n0(function(t,r){return t<=r});function Ul(t){if(!t)return[];if(Nt(t))return d0(t)?xn(t):zt(t);if(w1&&t[w1])return gx(t[w1]());var r=Tt(t),a=r==kt?Ro:r==gt?Pi:c1;return a(t)}function qn(t){if(!t)return t===0?t:0;if(t=pn(t),t===it||t===-it){var r=t<0?-1:1;return r*ke}return t===t?t:0}function be(t){var r=qn(t),a=r%1;return r===r?a?r-a:r:0}function Zl(t){return t?Cr(be(t),0,ze):0}function pn(t){if(typeof t=="number")return t;if(jt(t))return Qe;if(et(t)){var r=typeof t.valueOf=="function"?t.valueOf():t;t=et(r)?r+"":r}if(typeof t!="string")return t===0?t:+t;t=u2(t);var a=yC.test(t);return a||vC.test(t)?qC(t.slice(2),a?2:8):mC.test(t)?Qe:+t}function Yl(t){return Dn(t,Kt(t))}function BS(t){return t?Cr(be(t),-tt,tt):t===0?t:0}function Re(t){return t==null?"":Qt(t)}var FS=o1(function(t,r){if(E1(r)||Nt(r)){Dn(r,vt(r),t);return}for(var a in r)De.call(r,a)&&A1(t,a,r[a])}),Gl=o1(function(t,r){Dn(r,Kt(r),t)}),Vl=o1(function(t,r,a,u){Dn(r,Kt(r),t,u)}),xa=o1(function(t,r,a,u){Dn(r,vt(r),t,u)}),zS=Vn(Ho);function NS(t,r){var a=i1(t);return r==null?a:$2(a,r)}var KS=xe(function(t,r){t=Ke(t);var a=-1,u=r.length,h=u>2?r[2]:i;for(h&&Rt(r[0],r[1],h)&&(u=1);++a<u;)for(var m=r[a],w=Kt(m),S=-1,M=w.length;++S<M;){var B=w[S],F=t[B];(F===i||$n(F,t1[B])&&!De.call(t,B))&&(t[B]=m[B])}return t}),HS=xe(function(t){return t.push(i,ul),Yt(Ql,i,t)});function WS(t,r){return a2(t,se(r,3),En)}function US(t,r){return a2(t,se(r,3),Uo)}function ZS(t,r){return t==null?t:Wo(t,se(r,3),Kt)}function YS(t,r){return t==null?t:T2(t,se(r,3),Kt)}function GS(t,r){return t&&En(t,se(r,3))}function VS(t,r){return t&&Uo(t,se(r,3))}function QS(t){return t==null?[]:Vi(t,vt(t))}function jS(t){return t==null?[]:Vi(t,Kt(t))}function wa(t,r,a){var u=t==null?i:xr(t,r);return u===i?a:u}function qS(t,r){return t!=null&&hl(t,r,Cw)}function La(t,r){return t!=null&&hl(t,r,xw)}var XS=ol(function(t,r,a){r!=null&&typeof r.toString!="function"&&(r=Di.call(r)),t[r]=a},Sa(Ht)),JS=ol(function(t,r,a){r!=null&&typeof r.toString!="function"&&(r=Di.call(r)),De.call(t,r)?t[r].push(a):t[r]=[a]},se),ek=xe(T1);function vt(t){return Nt(t)?w2(t):Vo(t)}function Kt(t){return Nt(t)?w2(t,!0):Ow(t)}function tk(t,r){var a={};return r=se(r,3),En(t,function(u,h,m){In(a,r(u,h,m),u)}),a}function nk(t,r){var a={};return r=se(r,3),En(t,function(u,h,m){In(a,h,r(u,h,m))}),a}var rk=o1(function(t,r,a){Qi(t,r,a)}),Ql=o1(function(t,r,a,u){Qi(t,r,a,u)}),ik=Vn(function(t,r){var a={};if(t==null)return a;var u=!1;r=je(r,function(m){return m=cr(m,t),u||(u=m.length>1),m}),Dn(t,la(t),a),u&&(a=dn(a,v|k|b,Jw));for(var h=r.length;h--;)ea(a,r[h]);return a});function ok(t,r){return jl(t,u0(se(r)))}var ak=Vn(function(t,r){return t==null?{}:Ew(t,r)});function jl(t,r){if(t==null)return{};var a=je(la(t),function(u){return[u]});return r=se(r),N2(t,a,function(u,h){return r(u,h[0])})}function sk(t,r,a){r=cr(r,t);var u=-1,h=r.length;for(h||(h=1,t=i);++u<h;){var m=t==null?i:t[Ln(r[u])];m===i&&(u=h,m=a),t=jn(m)?m.call(t):m}return t}function lk(t,r,a){return t==null?t:O1(t,r,a)}function ck(t,r,a,u){return u=typeof u=="function"?u:i,t==null?t:O1(t,r,a,u)}var ql=ll(vt),Xl=ll(Kt);function uk(t,r,a){var u=ye(t),h=u||fr(t)||l1(t);if(r=se(r,4),a==null){var m=t&&t.constructor;h?a=u?new m:[]:et(t)?a=jn(m)?i1(Fi(t)):{}:a={}}return(h?Gt:En)(t,function(w,S,M){return r(a,w,S,M)}),a}function fk(t,r){return t==null?!0:ea(t,r)}function dk(t,r,a){return t==null?t:Z2(t,r,ra(a))}function hk(t,r,a,u){return u=typeof u=="function"?u:i,t==null?t:Z2(t,r,ra(a),u)}function c1(t){return t==null?[]:Do(t,vt(t))}function gk(t){return t==null?[]:Do(t,Kt(t))}function pk(t,r,a){return a===i&&(a=r,r=i),a!==i&&(a=pn(a),a=a===a?a:0),r!==i&&(r=pn(r),r=r===r?r:0),Cr(pn(t),r,a)}function mk(t,r,a){return r=qn(r),a===i?(a=r,r=0):a=qn(a),t=pn(t),ww(t,r,a)}function yk(t,r,a){if(a&&typeof a!="boolean"&&Rt(t,r,a)&&(r=a=i),a===i&&(typeof r=="boolean"?(a=r,r=i):typeof t=="boolean"&&(a=t,t=i)),t===i&&r===i?(t=0,r=1):(t=qn(t),r===i?(r=t,t=0):r=qn(r)),t>r){var u=t;t=r,r=u}if(a||t%1||r%1){var h=C2();return Mt(t+h*(r-t+jC("1e-"+((h+"").length-1))),r)}return qo(t,r)}var _k=a1(function(t,r,a){return r=r.toLowerCase(),t+(a?Jl(r):r)});function Jl(t){return $a(Re(t).toLowerCase())}function e6(t){return t=Re(t),t&&t.replace(CC,cx).replace(NC,"")}function vk(t,r,a){t=Re(t),r=Qt(r);var u=t.length;a=a===i?u:Cr(be(a),0,u);var h=a;return a-=r.length,a>=0&&t.slice(a,h)==r}function bk(t){return t=Re(t),t&&nC.test(t)?t.replace(M5,ux):t}function Ck(t){return t=Re(t),t&&lC.test(t)?t.replace(vo,"\\$&"):t}var xk=a1(function(t,r,a){return t+(a?"-":"")+r.toLowerCase()}),wk=a1(function(t,r,a){return t+(a?" ":"")+r.toLowerCase()}),Lk=nl("toLowerCase");function $k(t,r,a){t=Re(t),r=be(r);var u=r?Jr(t):0;if(!r||u>=r)return t;var h=(r-u)/2;return t0(Hi(h),a)+t+t0(Ki(h),a)}function Sk(t,r,a){t=Re(t),r=be(r);var u=r?Jr(t):0;return r&&u<r?t+t0(r-u,a):t}function kk(t,r,a){t=Re(t),r=be(r);var u=r?Jr(t):0;return r&&u<r?t0(r-u,a)+t:t}function Ak(t,r,a){return a||r==null?r=0:r&&(r=+r),Rx(Re(t).replace(bo,""),r||0)}function Mk(t,r,a){return(a?Rt(t,r,a):r===i)?r=1:r=be(r),Xo(Re(t),r)}function Tk(){var t=arguments,r=Re(t[0]);return t.length<3?r:r.replace(t[1],t[2])}var Pk=a1(function(t,r,a){return t+(a?"_":"")+r.toLowerCase()});function Ok(t,r,a){return a&&typeof a!="number"&&Rt(t,r,a)&&(r=a=i),a=a===i?ze:a>>>0,a?(t=Re(t),t&&(typeof r=="string"||r!=null&&!Ca(r))&&(r=Qt(r),!r&&Xr(t))?ur(xn(t),0,a):t.split(r,a)):[]}var Ik=a1(function(t,r,a){return t+(a?" ":"")+$a(r)});function Ek(t,r,a){return t=Re(t),a=a==null?0:Cr(be(a),0,t.length),r=Qt(r),t.slice(a,a+r.length)==r}function Dk(t,r,a){var u=p.templateSettings;a&&Rt(t,r,a)&&(r=i),t=Re(t),r=xa({},r,u,cl);var h=xa({},r.imports,u.imports,cl),m=vt(h),w=Do(h,m);Gt(m,function(ae){if(P5.test(ae))throw new he(d)});var S,M,B=0,F=r.interpolate||Si,H="__p += '",q=Bo((r.escape||Si).source+"|"+F.source+"|"+(F===T5?pC:Si).source+"|"+(r.evaluate||Si).source+"|$","g"),ne="//# sourceURL="+(De.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ZC+"]")+`
11
+ `;t.replace(q,function(ae,Le,Ae,qt,Bt,Xt){return Ae||(Ae=qt),H+=t.slice(B,Xt).replace(xC,fx),Le&&(S=!0,H+=`' +
12
+ __e(`+Le+`) +
13
+ '`),Bt&&(M=!0,H+=`';
14
+ `+Bt+`;
15
+ __p += '`),Ae&&(H+=`' +
16
+ ((__t = (`+Ae+`)) == null ? '' : __t) +
17
+ '`),B=Xt+ae.length,ae}),H+=`';
18
+ `;var le=De.call(r,"variable")&&r.variable;if(!le)H=`with (obj) {
19
+ `+H+`
20
20
  }
21
- `;else if(T5.test(le))throw new fe(f);K=(M?K.replace(Vb,""):K).replace(Qb,"$1").replace(jb,"$1;"),K="function("+(le||"obj")+`) {
21
+ `;else if(P5.test(le))throw new he(f);H=(M?H.replace(Zt,""):H).replace(_o,"$1").replace(eC,"$1;"),H="function("+(le||"obj")+`) {
22
22
  `+(le?"":`obj || (obj = {});
23
23
  `)+"var __t, __p = ''"+(S?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
- `)+K+`return __p
27
- }`;var ve=t6(function(){return Ee(m,ne+"return "+K).apply(i,x)});if(ve.source=K,ba(ve))throw ve;return ve}function Pk(t){return Be(t).toLowerCase()}function Ik(t){return Be(t).toUpperCase()}function Ek(t,r,o){if(t=Be(t),t&&(o||r===i))return c2(t);if(!t||!(r=jt(r)))return t;var u=_n(t),h=_n(r),m=u2(u,h),x=f2(u,h)+1;return lr(u,m,x).join("")}function Dk(t,r,o){if(t=Be(t),t&&(o||r===i))return t.slice(0,h2(t)+1);if(!t||!(r=jt(r)))return t;var u=_n(t),h=f2(u,_n(r))+1;return lr(u,0,h).join("")}function Rk(t,r,o){if(t=Be(t),t&&(o||r===i))return t.replace(bo,"");if(!t||!(r=jt(r)))return t;var u=_n(t),h=u2(u,_n(r));return lr(u,h).join("")}function Bk(t,r){var o=Q,u=te;if(tt(r)){var h="separator"in r?r.separator:h;o="length"in r?_e(r.length):o,u="omission"in r?jt(r.omission):u}t=Be(t);var m=t.length;if(jr(t)){var x=_n(t);m=x.length}if(o>=m)return t;var S=o-qr(u);if(S<1)return u;var M=x?lr(x,0,S).join(""):t.slice(0,S);if(h===i)return M+u;if(x&&(S+=M.length-S),Ca(h)){if(t.slice(S).search(h)){var B,F=M;for(h.global||(h=Bo(h.source,Be(O5.exec(h))+"g")),h.lastIndex=0;B=h.exec(F);)var K=B.index;M=M.slice(0,K===i?S:K)}}else if(t.indexOf(jt(h),S)!=S){var q=M.lastIndexOf(h);q>-1&&(M=M.slice(0,q))}return M+u}function Fk(t){return t=Be(t),t&&qb.test(t)?t.replace(k5,gx):t}var zk=i1(function(t,r,o){return t+(o?" ":"")+r.toUpperCase()}),$a=tl("toUpperCase");function e6(t,r,o){return t=Be(t),r=o?i:r,r===i?cx(t)?yx(t):ex(t):t.match(r)||[]}var t6=be(function(t,r){try{return Gt(t,i,r)}catch(o){return ba(o)?o:new fe(o)}}),Nk=Hn(function(t,r){return Vt(r,function(o){o=bn(o),Mn(t,o,_a(t[o],t))}),t});function Wk(t){var r=t==null?0:t.length,o=se();return t=r?Qe(t,function(u){if(typeof u[1]!="function")throw new ln(c);return[o(u[0]),u[1]]}):[],be(function(u){for(var h=-1;++h<r;){var m=t[h];if(Gt(m[0],this,u))return Gt(m[1],this,u)}})}function Kk(t){return gw(un(t,b))}function Sa(t){return function(){return t}}function Uk(t,r){return t==null||t!==t?r:t}var Zk=rl(),Hk=rl(!0);function Ut(t){return t}function ka(t){return I2(typeof t=="function"?t:un(t,b))}function Yk(t){return D2(un(t,b))}function Gk(t,r){return R2(t,un(r,b))}var Vk=be(function(t,r){return function(o){return T1(o,t,r)}}),Qk=be(function(t,r){return function(o){return T1(t,o,r)}});function Aa(t,r,o){var u=yt(r),h=Qi(r,u);o==null&&!(tt(r)&&(h.length||!u.length))&&(o=r,r=t,t=this,h=Qi(r,yt(r)));var m=!(tt(o)&&"chain"in o)||!!o.chain,x=Gn(t);return Vt(h,function(S){var M=r[S];t[S]=M,x&&(t.prototype[S]=function(){var B=this.__chain__;if(m||B){var F=t(this.__wrapped__),K=F.__actions__=Nt(this.__actions__);return K.push({func:M,args:arguments,thisArg:t}),F.__chain__=B,F}return M.apply(t,nr([this.value()],arguments))})}),t}function jk(){return vt._===this&&(vt._=wx),this}function Ma(){}function qk(t){return t=_e(t),be(function(r){return B2(r,t)})}var Xk=oa(Qe),Jk=oa(i2),eA=oa(To);function n6(t){return da(t)?Oo(bn(t)):Ow(t)}function tA(t){return function(r){return t==null?i:br(t,r)}}var nA=ol(),rA=ol(!0);function Ta(){return[]}function Oa(){return!1}function iA(){return{}}function oA(){return""}function aA(){return!0}function sA(t,r){if(t=_e(t),t<1||t>nt)return[];var o=ze,u=kt(t,ze);r=se(r),t-=ze;for(var h=Eo(u,r);++o<t;)r(o);return h}function lA(t){return pe(t)?Qe(t,bn):qt(t)?[t]:Nt(Cl(Be(t)))}function cA(t){var r=++Cx;return Be(t)+r}var uA=t0(function(t,r){return t+r},0),fA=aa("ceil"),dA=t0(function(t,r){return t/r},1),hA=aa("floor");function gA(t){return t&&t.length?Vi(t,Ut,Ho):i}function pA(t,r){return t&&t.length?Vi(t,se(r,2),Ho):i}function mA(t){return s2(t,Ut)}function yA(t,r){return s2(t,se(r,2))}function _A(t){return t&&t.length?Vi(t,Ut,Qo):i}function vA(t,r){return t&&t.length?Vi(t,se(r,2),Qo):i}var bA=t0(function(t,r){return t*r},1),CA=aa("round"),xA=t0(function(t,r){return t-r},0);function wA(t){return t&&t.length?Io(t,Ut):0}function LA(t,r){return t&&t.length?Io(t,se(r,2)):0}return p.after=G$,p.ary=Pl,p.assign=ES,p.assignIn=Yl,p.assignInWith=Gl,p.assignWith=xa,p.at=DS,p.before=Il,p.bind=_a,p.bindAll=Nk,p.bindKey=El,p.castArray=oS,p.chain=Ml,p.chunk=gL,p.compact=pL,p.concat=mL,p.cond=Wk,p.conforms=Kk,p.constant=Sa,p.countBy=L$,p.create=RS,p.curry=Dl,p.curryRight=Rl,p.debounce=Bl,p.defaults=BS,p.defaultsDeep=FS,p.defer=V$,p.delay=Q$,p.difference=yL,p.differenceBy=_L,p.differenceWith=vL,p.drop=bL,p.dropRight=CL,p.dropRightWhile=xL,p.dropWhile=wL,p.fill=LL,p.filter=S$,p.flatMap=M$,p.flatMapDeep=T$,p.flatMapDepth=O$,p.flatten=$l,p.flattenDeep=$L,p.flattenDepth=SL,p.flip=j$,p.flow=Zk,p.flowRight=Hk,p.fromPairs=kL,p.functions=HS,p.functionsIn=YS,p.groupBy=P$,p.initial=ML,p.intersection=TL,p.intersectionBy=OL,p.intersectionWith=PL,p.invert=VS,p.invertBy=QS,p.invokeMap=E$,p.iteratee=ka,p.keyBy=D$,p.keys=yt,p.keysIn=Kt,p.map=l0,p.mapKeys=qS,p.mapValues=XS,p.matches=Yk,p.matchesProperty=Gk,p.memoize=u0,p.merge=JS,p.mergeWith=Vl,p.method=Vk,p.methodOf=Qk,p.mixin=Aa,p.negate=f0,p.nthArg=qk,p.omit=ek,p.omitBy=tk,p.once=q$,p.orderBy=R$,p.over=Xk,p.overArgs=X$,p.overEvery=Jk,p.overSome=eA,p.partial=va,p.partialRight=Fl,p.partition=B$,p.pick=nk,p.pickBy=Ql,p.property=n6,p.propertyOf=tA,p.pull=RL,p.pullAll=kl,p.pullAllBy=BL,p.pullAllWith=FL,p.pullAt=zL,p.range=nA,p.rangeRight=rA,p.rearg=J$,p.reject=N$,p.remove=NL,p.rest=eS,p.reverse=ma,p.sampleSize=K$,p.set=ik,p.setWith=ok,p.shuffle=U$,p.slice=WL,p.sortBy=Y$,p.sortedUniq=VL,p.sortedUniqBy=QL,p.split=Ak,p.spread=tS,p.tail=jL,p.take=qL,p.takeRight=XL,p.takeRightWhile=JL,p.takeWhile=e$,p.tap=p$,p.throttle=nS,p.thru=s0,p.toArray=Ul,p.toPairs=jl,p.toPairsIn=ql,p.toPath=lA,p.toPlainObject=Hl,p.transform=ak,p.unary=rS,p.union=t$,p.unionBy=n$,p.unionWith=r$,p.uniq=i$,p.uniqBy=o$,p.uniqWith=a$,p.unset=sk,p.unzip=ya,p.unzipWith=Al,p.update=lk,p.updateWith=ck,p.values=s1,p.valuesIn=uk,p.without=s$,p.words=e6,p.wrap=iS,p.xor=l$,p.xorBy=c$,p.xorWith=u$,p.zip=f$,p.zipObject=d$,p.zipObjectDeep=h$,p.zipWith=g$,p.entries=jl,p.entriesIn=ql,p.extend=Yl,p.extendWith=Gl,Aa(p,p),p.add=uA,p.attempt=t6,p.camelCase=gk,p.capitalize=Xl,p.ceil=fA,p.clamp=fk,p.clone=aS,p.cloneDeep=lS,p.cloneDeepWith=cS,p.cloneWith=sS,p.conformsTo=uS,p.deburr=Jl,p.defaultTo=Uk,p.divide=dA,p.endsWith=pk,p.eq=Cn,p.escape=mk,p.escapeRegExp=yk,p.every=$$,p.find=k$,p.findIndex=wl,p.findKey=zS,p.findLast=A$,p.findLastIndex=Ll,p.findLastKey=NS,p.floor=hA,p.forEach=Tl,p.forEachRight=Ol,p.forIn=WS,p.forInRight=KS,p.forOwn=US,p.forOwnRight=ZS,p.get=wa,p.gt=fS,p.gte=dS,p.has=GS,p.hasIn=La,p.head=Sl,p.identity=Ut,p.includes=I$,p.indexOf=AL,p.inRange=dk,p.invoke=jS,p.isArguments=wr,p.isArray=pe,p.isArrayBuffer=hS,p.isArrayLike=Wt,p.isArrayLikeObject=lt,p.isBoolean=gS,p.isBuffer=cr,p.isDate=pS,p.isElement=mS,p.isEmpty=yS,p.isEqual=_S,p.isEqualWith=vS,p.isError=ba,p.isFinite=bS,p.isFunction=Gn,p.isInteger=zl,p.isLength=d0,p.isMap=Nl,p.isMatch=CS,p.isMatchWith=xS,p.isNaN=wS,p.isNative=LS,p.isNil=SS,p.isNull=$S,p.isNumber=Wl,p.isObject=tt,p.isObjectLike=ot,p.isPlainObject=R1,p.isRegExp=Ca,p.isSafeInteger=kS,p.isSet=Kl,p.isString=h0,p.isSymbol=qt,p.isTypedArray=a1,p.isUndefined=AS,p.isWeakMap=MS,p.isWeakSet=TS,p.join=IL,p.kebabCase=_k,p.last=dn,p.lastIndexOf=EL,p.lowerCase=vk,p.lowerFirst=bk,p.lt=OS,p.lte=PS,p.max=gA,p.maxBy=pA,p.mean=mA,p.meanBy=yA,p.min=_A,p.minBy=vA,p.stubArray=Ta,p.stubFalse=Oa,p.stubObject=iA,p.stubString=oA,p.stubTrue=aA,p.multiply=bA,p.nth=DL,p.noConflict=jk,p.noop=Ma,p.now=c0,p.pad=Ck,p.padEnd=xk,p.padStart=wk,p.parseInt=Lk,p.random=hk,p.reduce=F$,p.reduceRight=z$,p.repeat=$k,p.replace=Sk,p.result=rk,p.round=CA,p.runInContext=A,p.sample=W$,p.size=Z$,p.snakeCase=kk,p.some=H$,p.sortedIndex=KL,p.sortedIndexBy=UL,p.sortedIndexOf=ZL,p.sortedLastIndex=HL,p.sortedLastIndexBy=YL,p.sortedLastIndexOf=GL,p.startCase=Mk,p.startsWith=Tk,p.subtract=xA,p.sum=wA,p.sumBy=LA,p.template=Ok,p.times=sA,p.toFinite=Vn,p.toInteger=_e,p.toLength=Zl,p.toLower=Pk,p.toNumber=hn,p.toSafeInteger=IS,p.toString=Be,p.toUpper=Ik,p.trim=Ek,p.trimEnd=Dk,p.trimStart=Rk,p.truncate=Bk,p.unescape=Fk,p.uniqueId=cA,p.upperCase=zk,p.upperFirst=$a,p.each=Tl,p.eachRight=Ol,p.first=Sl,Aa(p,function(){var t={};return Tn(p,function(r,o){Re.call(p.prototype,o)||(t[o]=r)}),t}(),{chain:!1}),p.VERSION=a,Vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){p[t].placeholder=p}),Vt(["drop","take"],function(t,r){Le.prototype[t]=function(o){o=o===i?1:pt(_e(o),0);var u=this.__filtered__&&!r?new Le(this):this.clone();return u.__filtered__?u.__takeCount__=kt(o,u.__takeCount__):u.__views__.push({size:kt(o,ze),type:t+(u.__dir__<0?"Right":"")}),u},Le.prototype[t+"Right"]=function(o){return this.reverse()[t](o).reverse()}}),Vt(["filter","map","takeWhile"],function(t,r){var o=r+1,u=o==oe||o==wt;Le.prototype[t]=function(h){var m=this.clone();return m.__iteratees__.push({iteratee:se(h,3),type:o}),m.__filtered__=m.__filtered__||u,m}}),Vt(["head","last"],function(t,r){var o="take"+(r?"Right":"");Le.prototype[t]=function(){return this[o](1).value()[0]}}),Vt(["initial","tail"],function(t,r){var o="drop"+(r?"":"Right");Le.prototype[t]=function(){return this.__filtered__?new Le(this):this[o](1)}}),Le.prototype.compact=function(){return this.filter(Ut)},Le.prototype.find=function(t){return this.filter(t).head()},Le.prototype.findLast=function(t){return this.reverse().find(t)},Le.prototype.invokeMap=be(function(t,r){return typeof t=="function"?new Le(this):this.map(function(o){return T1(o,t,r)})}),Le.prototype.reject=function(t){return this.filter(f0(se(t)))},Le.prototype.slice=function(t,r){t=_e(t);var o=this;return o.__filtered__&&(t>0||r<0)?new Le(o):(t<0?o=o.takeRight(-t):t&&(o=o.drop(t)),r!==i&&(r=_e(r),o=r<0?o.dropRight(-r):o.take(r-t)),o)},Le.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Le.prototype.toArray=function(){return this.take(ze)},Tn(Le.prototype,function(t,r){var o=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),h=p[u?"take"+(r=="last"?"Right":""):r],m=u||/^find/.test(r);h&&(p.prototype[r]=function(){var x=this.__wrapped__,S=u?[1]:arguments,M=x instanceof Le,B=S[0],F=M||pe(x),K=function(we){var Se=h.apply(p,nr([we],S));return u&&q?Se[0]:Se};F&&o&&typeof B=="function"&&B.length!=1&&(M=F=!1);var q=this.__chain__,ne=!!this.__actions__.length,le=m&&!q,ve=M&&!ne;if(!m&&F){x=ve?x:new Le(this);var ae=t.apply(x,S);return ae.__actions__.push({func:s0,args:[K],thisArg:i}),new cn(ae,q)}return le&&ve?t.apply(this,S):(ae=this.thru(K),le?u?ae.value()[0]:ae.value():ae)})}),Vt(["pop","push","shift","sort","splice","unshift"],function(t){var r=Ii[t],o=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",u=/^(?:pop|shift)$/.test(t);p.prototype[t]=function(){var h=arguments;if(u&&!this.__chain__){var m=this.value();return r.apply(pe(m)?m:[],h)}return this[o](function(x){return r.apply(pe(x)?x:[],h)})}}),Tn(Le.prototype,function(t,r){var o=p[r];if(o){var u=o.name+"";Re.call(t1,u)||(t1[u]=[]),t1[u].push({name:r,func:o})}}),t1[e0(i,T).name]=[{name:"wrapper",func:i}],Le.prototype.clone=zx,Le.prototype.reverse=Nx,Le.prototype.value=Wx,p.prototype.at=m$,p.prototype.chain=y$,p.prototype.commit=_$,p.prototype.next=v$,p.prototype.plant=C$,p.prototype.reverse=x$,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=w$,p.prototype.first=p.prototype.head,w1&&(p.prototype[w1]=b$),p},Xr=_x();pr?((pr.exports=Xr)._=Xr,So._=Xr):vt._=Xr}).call(Pn)}(B1,B1.exports);var i6=B1.exports;const ut=p0(i6),o6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"arrow",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>{if(i.length>1){const a=i[1].x>i[0].x?0:1,s=ue.utils.getLinearSlopeIntercept(i[0],i[1]);let l;s?l=Math.atan(s[0])+Math.PI*a:i[1].y>i[0].y?l=Math.PI/2:l=Math.PI/2*3;const c=gn({x:i[1].x-8,y:i[1].y+4},i[1],l),f=gn({x:i[1].x-8,y:i[1].y-4},i[1],l);return[{type:"line",attrs:{coordinates:i},styles:n()},{type:"line",ignoreEvent:!0,attrs:{coordinates:[c,i[1],f]},styles:n()}]}return[]},setProperties:i=>{e=ut.merge({},e,i)},getProperties:()=>e}},a6=()=>{let e=new Map,n=i=>{const a=e.get(i);return{style:(a==null?void 0:a.style)??"stroke_fill",color:(a==null?void 0:a.backgroundColor)??"rgba(22, 119, 255, 0.15)",borderColor:(a==null?void 0:a.lineColor)??(a==null?void 0:a.borderColor),borderSize:a==null?void 0:a.borderWidth,borderStyle:(a==null?void 0:a.borderStyle)??(a==null?void 0:a.lineStyle)}};return{name:"circle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:a})=>{if(i.length>1){const s=Pa(i[0],i[1]);return{type:"circle",attrs:{...i[0],r:s},styles:n(a.id)}}return[]},setProperties:(i,a)=>{e.set(a,ut.merge({},e.get(a),i))},getProperties:i=>e.get(i)??{}}},s6=()=>{let e=new Map,n=i=>{const a=e.get(i);return{style:a.style??"stroke_fill",color:a.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:a.lineColor??a.borderColor,borderSize:a.borderWidth,borderStyle:a.borderStyle??a.lineStyle}};return{name:"rect",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:a})=>i.length>1?[{type:"polygon",attrs:{coordinates:[i[0],{x:i[1].x,y:i[0].y},i[1],{x:i[0].x,y:i[1].y}]},styles:n(a.id)}]:[],setProperties:(i,a)=>{e.set(a,ut.merge({},e.get(a),i))},getProperties:i=>e.get(i)??{}}},l6=()=>{let e={},n=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"parallelogram",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{if(a.length===2)return[{type:"line",ignoreEvent:!0,attrs:{coordinates:a},styles:i()}];if(a.length===3){const s={x:a[0].x+(a[2].x-a[1].x),y:a[2].y};return[{type:"polygon",attrs:{coordinates:[a[0],a[1],a[2],s]},styles:n()}]}return[]},performEventPressedMove:({points:a,performPointIndex:s,performPoint:l})=>{s<2&&(a[0].value=l.value,a[1].value=l.value)},performEventMoveForDrawing:({currentStep:a,points:s,performPoint:l})=>{a===2&&(s[0].value=l.value)},setProperties:a=>{e=ut.merge({},e,a)},getProperties:()=>e}},c6=()=>{let e={},n=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});return{name:"triangle",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>[{type:"polygon",attrs:{coordinates:i},styles:n()}],setProperties:i=>{e=ut.merge({},e,i)},getProperties:()=>e}},u6=()=>{let e={},n=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciCircle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{if(a.length>1){const s=Math.abs(a[0].x-a[1].x),l=Math.abs(a[0].y-a[1].y),c=Math.sqrt(s*s+l*l),f=[.236,.382,.5,.618,.786,1],d=[],g=[];return f.forEach(_=>{const y=c*_;d.push({...a[0],r:y}),g.push({x:a[0].x,y:a[0].y+y+6,text:`${(_*100).toFixed(1)}%`})}),[{type:"circle",attrs:d,styles:n()},{type:"text",ignoreEvent:!0,attrs:g,styles:i()}]}return[]},setProperties:a=>{e=ut.merge({},e,a)},getProperties:()=>e}},f6=()=>{let e={};const n=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSegment",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a,overlay:s,chart:l,yAxis:c})=>{const f=[],d=[];if(a.length>1){let g=0;const _=l.getSymbol();((c==null?void 0:c.isInCandle())??!0)&&_?g=_.pricePrecision:l.getIndicators({paneId:s.paneId}).forEach($=>{g=Math.max(g,$.precision)});const y=a[1].x>a[0].x?a[0].x:a[1].x,b=[1,.786,.618,.5,.382,.236,0],k=a[0].y-a[1].y,v=s.points,w=v[0].value-v[1].value;b.forEach(L=>{const $=a[1].y+k*L,T=(v[1].value+w*L).toFixed(g.price);f.push({coordinates:[{x:a[0].x,y:$},{x:a[1].x,y:$}]}),d.push({x:y,y:$,text:`${T} (${(L*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:f,styles:n()},{type:"text",ignoreEvent:!0,attrs:d,styles:i()}]},setProperties:a=>{e=ut.merge({},e,a)},getProperties:()=>e}},d6=()=>{let e={},n=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"fibonacciSpiral",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a,bounding:s})=>{if(a.length>1){const l=Pa(a[0],a[1])/Math.sqrt(24),c=a[1].x>a[0].x?0:1,f=ue.utils.getLinearSlopeIntercept(a[0],a[1]);let d;f?d=Math.atan(f[0])+Math.PI*c:a[1].y>a[0].y?d=Math.PI/2:d=Math.PI/2*3;const g=gn({x:a[0].x-l,y:a[0].y},a[0],d),_=gn({x:a[0].x-l,y:a[0].y-l},a[0],d),y=[{...g,r:l,startAngle:d,endAngle:d+Math.PI/2},{..._,r:l*2,startAngle:d+Math.PI/2,endAngle:d+Math.PI}];let b=a[0].x-l,k=a[0].y-l;for(let v=2;v<9;v++){const w=y[v-2].r+y[v-1].r;let L=0;switch(v%4){case 0:{L=d,b-=y[v-2].r;break}case 1:{L=d+Math.PI/2,k-=y[v-2].r;break}case 2:{L=d+Math.PI,b+=y[v-2].r;break}case 3:{L=d+Math.PI/2*3,k+=y[v-2].r;break}}const $=L+Math.PI/2,T=gn({x:b,y:k},a[0],d);y.push({...T,r:w,startAngle:L,endAngle:$})}return[{type:"arc",attrs:y,styles:n()},{type:"line",attrs:g0(a,s),styles:i()}]}return[]},setProperties:a=>{e=ut.merge({},e,a)},getProperties:()=>e}},h6=()=>{let e={};const n=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSpeedResistanceFan",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a,bounding:s})=>{const l=[];let c=[];const f=[];if(a.length>1){const d=a[1].x>a[0].x?-38:4,g=a[1].y>a[0].y?-2:20,_=a[1].x-a[0].x,y=a[1].y-a[0].y;[1,.75,.618,.5,.382,.25,0].forEach(k=>{const v=a[1].x-_*k,w=a[1].y-y*k;l.push({coordinates:[{x:v,y:a[0].y},{x:v,y:a[1].y}]}),l.push({coordinates:[{x:a[0].x,y:w},{x:a[1].x,y:w}]}),c=c.concat(g0([a[0],{x:v,y:a[1].y}],s)),c=c.concat(g0([a[0],{x:a[1].x,y:w}],s)),f.unshift({x:a[0].x+d,y:w+10,text:`${k.toFixed(3)}`}),f.unshift({x:v-18,y:a[0].y+g,text:`${k.toFixed(3)}`})})}return[{type:"line",attrs:l,styles:n()},{type:"line",attrs:c,styles:n()},{type:"text",ignoreEvent:!0,attrs:f,styles:i()}]},setProperties:a=>{e=ut.merge({},e,a)},getProperties:()=>e}},g6=()=>{let e={};const n=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),a=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciExtension",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({chart:s,yAxis:l,coordinates:c,overlay:f})=>{const d=[],g=[];if(c.length>2){let _=0;const y=s.getSymbol();((l==null?void 0:l.isInCandle())??!0)&&y?_=y.pricePrecision:s.getIndicators({paneId:f.paneId}).forEach(T=>{_=Math.max(_,T.precision)});const b=f.points,k=b[1].value-b[0].value,v=c[1].y-c[0].y,w=[0,.236,.382,.5,.618,.786,1],L=c[2].x>c[1].x?c[1].x:c[2].x;w.forEach($=>{const T=c[2].y+v*$,P=(b[2].value+k*$).toFixed(_.price);d.push({coordinates:[{x:c[1].x,y:T},{x:c[2].x,y:T}]}),g.push({x:L,y:T,text:`${P} (${($*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:{coordinates:c},styles:n()},{type:"line",attrs:d,styles:i()},{type:"text",ignoreEvent:!0,attrs:g,styles:a()}]},setProperties:s=>{e=ut.merge({},e,s)},getProperties:()=>e}},p6=()=>{let e={},n=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),a=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),s=()=>({style:"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"gannBox",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:l})=>{if(l.length>1){const c=(l[1].y-l[0].y)/4,f=l[1].x-l[0].x,d=[{coordinates:[l[0],{x:l[1].x,y:l[1].y-c}]},{coordinates:[l[0],{x:l[1].x,y:l[1].y-c*2}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+c}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+c*2}]},{coordinates:[{...l[0]},{x:l[0].x+f*.236,y:l[1].y}]},{coordinates:[{...l[0]},{x:l[0].x+f*.5,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.236,y:l[0].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.5,y:l[0].y}]}],g=[{coordinates:[l[0],l[1]]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y}]}];return[{type:"line",attrs:[{coordinates:[l[0],{x:l[1].x,y:l[0].y}]},{coordinates:[{x:l[1].x,y:l[0].y},l[1]]},{coordinates:[l[1],{x:l[0].x,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},l[0]]}],styles:i()},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[l[0],{x:l[1].x,y:l[0].y},l[1],{x:l[0].x,y:l[1].y}]},styles:n()},{type:"line",attrs:d,styles:a()},{type:"line",attrs:g,styles:s()}]}return[]},setProperties:l=>{e=ut.merge({},e,l)},getProperties:()=>e}},m6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"threeWaves",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{const s=a.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:a},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:a=>{e=ut.merge({},e,a)},getProperties:()=>e}},y6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fiveWaves",totalStep:7,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{const s=a.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:a},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:a=>{e=ut.merge({},e,a)},getProperties:()=>e}},_6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"eightWaves",totalStep:10,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{const s=a.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:a},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:a=>{e=ut.merge({},e,a)},getProperties:()=>e}},v6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"anyWaves",totalStep:Number.MAX_SAFE_INTEGER,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{const s=a.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:a},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:a=>{e=ut.merge({},e,a)},getProperties:()=>e}},b6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({...n(),style:"dashed"}),a=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"abcd",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:s})=>{let l=[],c=[];const f=["A","B","C","D"],d=s.map((g,_)=>({...g,baseline:"bottom",text:`(${f[_]})`}));return s.length>2&&(l=[s[0],s[2]],s.length>3&&(c=[s[1],s[3]])),[{type:"line",attrs:{coordinates:s},styles:n()},{type:"line",attrs:[{coordinates:l},{coordinates:c}],styles:i()},{type:"text",ignoreEvent:!0,attrs:d,styles:a()}]},setProperties:s=>{e=ut.merge({},e,s)},getProperties:()=>e}},C6=()=>{let e={},n=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),a=()=>({...i(),style:"dashed"}),s=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"xabcd",totalStep:6,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:l,overlay:c})=>{const f=[],d=[],g=["X","A","B","C","D"],_=l.map((y,b)=>({...y,baseline:"bottom",text:`(${g[b]})`}));return l.length>2&&(f.push({coordinates:[l[0],l[2]]}),d.push({coordinates:[l[0],l[1],l[2]]}),l.length>3&&(f.push({coordinates:[l[1],l[3]]}),l.length>4&&(f.push({coordinates:[l[2],l[4]]}),d.push({coordinates:[l[2],l[3],l[4]]})))),[{type:"line",attrs:{coordinates:l},styles:i()},{type:"line",attrs:f,styles:a()},{type:"polygon",ignoreEvent:!0,attrs:d,styles:n()},{type:"text",ignoreEvent:!0,attrs:_,styles:s()}]},setProperties:l=>{e=ut.merge({},e,l)},getProperties:()=>e}},x6=()=>{let e={};return{name:"brush",totalStep:3,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,styles:{},createPointFigures:({coordinates:n})=>{const i=[];if(n.length>1){const a=n.filter((s,l)=>l!==1);i.push({coordinates:a})}return[{type:"line",attrs:i,styles:{style:"solid",smooth:!0}}]},performEventMoveForDrawing:({currentStep:n,points:i,performPoint:a})=>{n>=2&&i.push(a)},setProperties:n=>{e=ut.merge({},e,n)},getProperties:()=>e}};function Ln(e,n){return new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n,useGrouping:!0}).format(e)}const m0=(e,n,i)=>{const a={price:0,volume:0},s=e.getSymbol();return((i==null?void 0:i.isInCandle())??!0)&&s?(a.price=s.pricePrecision,a.volume=s.volumePrecision):e.getIndicators({paneId:n.paneId}).forEach(c=>{a.price=Math.max(a.price,c.precision)}),a},w6=(e,n,i)=>{try{return new Intl.DateTimeFormat(n,{timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(e)}catch{return new Date(e).toLocaleString(n)}},Ia="#2ebd85",Ea="#f6465d",L6="#2ebd85",$6="#f6465d",S6=e=>({style:"solid",size:1,color:e,dashedValue:[]}),Da=e=>({style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),k6=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[2,0,0,2],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),A6=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:e,backgroundColor:"white",borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[0,2,2,0],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),M6=()=>({name:"positionAvgLine",totalStep:1,mode:"normal",lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:a})=>{var Pe;const s=(Pe=a.points[0])==null?void 0:Pe.value,l=a.extendData,c=e.getDataList().at(-1);if(s===void 0||!l||!c||!Number.isFinite(c.close))return[];const f=c.timestamp,d=e.convertToPixel({timestamp:f,value:s}).y??n[0].y,g=c.close,_=l.multiplier??1,y=l.side==="long"?(g-s)*l.size*_:(s-g)*l.size*_,b=e.getSymbol(),k=(b==null?void 0:b.pricePrecision)??2,v=(b==null?void 0:b.volumePrecision)??4,w=Ln(l.size,v),L=`PNL ${y>=0?"+":""}${Ln(y,k)}`,$=l.side==="long"?Ia:Ea,T=y>=0?L6:$6,P=A6($),D=k6(T),U=P.paddingLeft,X=P.paddingRight,Y=ue.utils.calcTextWidth(w)+U+X,E=ue.utils.calcTextWidth(L)+U+X,z=16,V=-1,Q=0,te=z+E+V,ee=te+Y+Q;return[{key:"avg-line",type:"line",attrs:{coordinates:[{x:Math.min(ee,i.width),y:d},{x:i.width,y:d}]},styles:S6($),ignoreEvent:!0},{key:"pnl",type:"text",attrs:{x:z,y:d,text:L,align:"left",baseline:"middle"},styles:D,ignoreEvent:!0},{key:"qty",type:"text",attrs:{x:te,y:d,text:w,align:"left",baseline:"middle"},styles:P,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:a,yAxis:s})=>{var b;const l=(b=n.points[0])==null?void 0:b.value,c=n.extendData,f=m0(e,n,s);if(l===void 0||!c)return{type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:Da("#888")};c.side;const d=e.getDataList().at(-1),g=d&&Number.isFinite(d.close)?e.convertToPixel({timestamp:d.timestamp,value:l}).y??i[0].y:i[0].y,_=(s==null?void 0:s.isFromZero())??!1,y=Ln(l,f.price);return{type:"text",attrs:{x:_?0:a.width,y:g,text:y,align:_?"left":"right",baseline:"middle"},styles:Da("#bfbfbf")}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)});function Ra(e){if(e==null)return;const n=Array.isArray(e)?e[0]:e,i=n==null?void 0:n.value;return typeof i=="number"&&Number.isFinite(i)?i:void 0}function T6(e){const n=e.getSize("candle_pane","main");if(!n||n.width<=0||n.height<=0)return null;const i=n.width*.5,a=Ra(e.convertFromPixel([{x:i,y:0}],{paneId:"candle_pane"})),s=Ra(e.convertFromPixel([{x:i,y:n.height}],{paneId:"candle_pane"}));return a===void 0||s===void 0?null:{min:Math.min(a,s),max:Math.max(a,s)}}function l1(e,n){const i=T6(e);return i?n>=i.min&&n<=i.max:!1}const y0="#f6465d",O6=()=>({style:"dashed",size:1,color:y0,dashedValue:[4,4]}),F1={style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:y0,borderColor:y0,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3},P6={style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:"#bfbfbf",borderColor:"#bfbfbf",borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3},I6=()=>({name:"liquidationLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:a})=>{var T;const s=(T=a.points[0])==null?void 0:T.value,l=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!l)return[];if(!l1(e,s))return[];const c=l.timestamp,f=e.convertToPixel({timestamp:c,value:s}).y??n[0].y,d=e.getSymbol(),g=(d==null?void 0:d.pricePrecision)??2,y=`Liq: ${Ln(s,g)}`,b=F1.paddingLeft,k=F1.paddingRight,v=ue.utils.calcTextWidth(y)+b+k,w=16,L=2,$=w+v+L;return[{key:"liq-line",type:"line",attrs:{coordinates:[{x:Math.min($,i.width),y:f},{x:i.width,y:f}]},styles:O6(),ignoreEvent:!0},{key:"liq-label",type:"text",attrs:{x:w,y:f,text:y,align:"left",baseline:"middle"},styles:F1,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:a,yAxis:s})=>{var b;const l=(b=n.points[0])==null?void 0:b.value,c=m0(e,n,s),f={type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:F1};if(l===void 0||!Number.isFinite(l)||!l1(e,l))return f;const d=e.getDataList().at(-1);if(!d)return f;const g=e.convertToPixel({timestamp:d.timestamp,value:l}).y??i[0].y,_=(s==null?void 0:s.isFromZero())??!1,y=Ln(l,c.price);return{type:"text",attrs:{x:_?0:a.width,y:g,text:y,align:_?"left":"right",baseline:"middle"},styles:P6}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),E6="#2ebd85",D6="#f6465d";function Ba(e){return e?E6:D6}const R6=e=>({style:"dashed",size:1,color:e,dashedValue:[4,4]}),B6=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[2,0,0,2],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),F6=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:e,backgroundColor:"white",borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[0,2,2,0],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),Fa=e=>({style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),z6=()=>({name:"pendingOrderLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:a})=>{var z;const s=(z=a.points[0])==null?void 0:z.value,l=a.extendData,c=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!l||!c)return[];if(!l1(e,s))return[];const f=c.timestamp,d=e.convertToPixel({timestamp:f,value:s}).y??n[0].y,g=e.getSymbol();g==null||g.pricePrecision;const _=(g==null?void 0:g.volumePrecision)??4,y="限价",b=Ln(l.size,_),k=Ba(l.isBuy),v=B6(k),w=F6(k),L=v.paddingLeft,$=v.paddingRight,T=ue.utils.calcTextWidth(y)+L+$,P=ue.utils.calcTextWidth(b)+L+$,D=16,U=-1,X=2,Y=D+T+U,E=Y+P+X;return[{key:"order-line",type:"line",attrs:{coordinates:[{x:Math.min(E,i.width),y:d},{x:i.width,y:d}]},styles:R6(k),ignoreEvent:!0},{key:"order-price",type:"text",attrs:{x:D,y:d,text:y,align:"left",baseline:"middle"},styles:v,ignoreEvent:!0},{key:"order-size",type:"text",attrs:{x:Y,y:d,text:b,align:"left",baseline:"middle"},styles:w,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:a,yAxis:s})=>{var k;const l=(k=n.points[0])==null?void 0:k.value,c=m0(e,n,s),f={type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:Fa("#888")};if(l===void 0||!Number.isFinite(l))return f;const d=n.extendData;if(!d||!l1(e,l))return f;Ba(d.isBuy);const g=e.getDataList().at(-1);if(!g)return f;const _=e.convertToPixel({timestamp:g.timestamp,value:l}).y??i[0].y,y=(s==null?void 0:s.isFromZero())??!1,b=Ln(l,c.price);return{type:"text",attrs:{x:y?0:a.width,y:_,text:b,align:y?"left":"right",baseline:"middle"},styles:Fa("#bfbfbf")}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),c1="klinecharts-pro-his-order-hover",u1="klinecharts-pro-alert-detail-open",N6="#2ebd85",W6="#f6465d",K6=6,U6=14,za=14,Na=18,z1=new Map,N1=new Map;function Wa(e){return e.overlay.id?N1.get(e.overlay.id)??null:null}function Ka(e){(e.sourceContainer??window).dispatchEvent(new CustomEvent(c1,{detail:e}))}const Z6={style:"fill",size:8,family:"Arial, sans-serif",weight:"bold",color:"#ffffff",backgroundColor:"transparent",borderColor:"transparent",borderStyle:"solid",borderSize:0,borderDashedValue:[],borderRadius:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},H6=()=>({name:"hisOrderMark",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,overlay:i})=>{const a=i.points[0],s=i.extendData;if(!a||!s||!Number.isFinite(a.timestamp)||typeof s.isBuy!="boolean")return[];const c=e.getDataList().find(D=>D.timestamp===a.timestamp);let f,d;if(c&&Number.isFinite(c.high)&&Number.isFinite(c.low)?(f=c.high,d=c.low):(f=typeof s.barHigh=="number"&&Number.isFinite(s.barHigh)?s.barHigh:void 0,d=typeof s.barLow=="number"&&Number.isFinite(s.barLow)?s.barLow:void 0),f===void 0||d===void 0)return[];const g=s.isBuy?N6:W6,_=s.isBuy?"B":"S",y=n[0].x,b=e.convertToPixel({timestamp:a.timestamp,value:f}).y??n[0].y,k=e.convertToPixel({timestamp:a.timestamp,value:d}).y??n[0].y,v=Math.max(0,s.stackIndex??0),w=Math.abs(k-b),L=Number.isFinite(w)&&w<Na?Math.max(0,Na-w)*.65:0,$=U6+L,T=s.isBuy?k+$+v*za:b-$-v*za;if(i.id){const D=e.getDom("candle_pane","main");if(D){const U=D.getBoundingClientRect();z1.set(i.id,{x:U.left+y,y:U.top+T}),N1.set(i.id,D.closest(".klinecharts-pro"))}}return[{key:"his-order-dot",type:"circle",attrs:{x:y,y:T-.5,r:K6},styles:{color:g},ignoreEvent:!1},{key:"his-order-char",type:"text",attrs:{x:y,y:T,text:_,align:"center",baseline:"middle"},styles:Z6,ignoreEvent:!0}]},onMouseEnter:e=>{var c,f,d,g;const n=e,i=e.overlay.id?z1.get(e.overlay.id):void 0,a=(i==null?void 0:i.x)??((c=n.event)==null?void 0:c.clientX)??((f=n.mouseEvent)==null?void 0:f.clientX)??null,s=(i==null?void 0:i.y)??((d=n.event)==null?void 0:d.clientY)??((g=n.mouseEvent)==null?void 0:g.clientY)??null,l=e.overlay.extendData;return l&&Ka({visible:!0,order:l,anchorX:a,anchorY:s,sourceContainer:Wa(e)}),!1},onMouseLeave:e=>{const n=Wa(e);return e.overlay.id&&(z1.delete(e.overlay.id),N1.delete(e.overlay.id)),Ka({visible:!1,order:null,anchorX:null,anchorY:null,sourceContainer:n}),!1},onRemoved:e=>(e.overlay.id&&(z1.delete(e.overlay.id),N1.delete(e.overlay.id)),!1),onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),Y6="#bfbfbf",G6=140,W1=new Map;function V6(e){const n=e.chart.getDom("candle_pane","main");return n?n.closest(".klinecharts-pro"):null}function Q6(e){(e.sourceContainer??window).dispatchEvent(new CustomEvent(u1,{detail:e}))}function _0(e){const n=W1.get(e);n!=null&&(clearTimeout(n),W1.delete(e))}function j6(e,n){_0(n);const i=setTimeout(()=>{W1.delete(n);const s=e.getOverlays({id:n})[0];if(!s)return;const l=s.extendData;e.overrideOverlay({id:n,extendData:{...l,showInfo:!1}})},G6);W1.set(n,i)}function Ua(e){return e==="alert-triangle"||e==="alert-info-text"||e==="alert-info-close"}let K1;function q6(e){K1=e.onRemove}const X6=()=>({style:"dashed",size:1,color:"rgba(255, 255, 255, 1)",dashedValue:[4,4]});function J6(e,n=2){return e.type==="price_reach"?`价格达到 ${Ln(e.price??0,n)}`:e.type==="price_rise_to"?`价格涨到 ${Ln(e.price??0,n)}`:e.type==="price_fall_to"?`价格跌到 ${Ln(e.price??0,n)}`:e.type==="price_rise_pct_over"?`价格${e.window??"5m"}涨幅 ${e.percent??0}%`:`价格${e.window??"5m"}跌幅 ${e.percent??0}%`}const ec=()=>({name:"priceAlertLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:a})=>{var L,$;const s=(L=a.points[0])==null?void 0:L.value,l=a.extendData,c=l==null?void 0:l.alert,f=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!c||!f)return[];if(!l1(e,s))return[];const d=e.convertToPixel({timestamp:f.timestamp,value:s}).y??n[0].y,g=(($=e.getSymbol())==null?void 0:$.pricePrecision)??2,_=J6(c,g),y=ue.utils.calcTextWidth(_),b=i.width,k=b-10,v=k-2,w=[{key:"alert-line",type:"line",attrs:{coordinates:[{x:0,y:d},{x:v,y:d}]},styles:X6(),ignoreEvent:!0},{key:"alert-triangle",type:"polygon",attrs:{coordinates:[{x:k,y:d-6},{x:b,y:d},{x:k,y:d+6}]},styles:{style:"fill",color:Y6},ignoreEvent:!1}];if(l!=null&&l.showInfo){const T=Math.max(120,y+28),P=Math.max(8,k-T-10);w.push({key:"alert-info-text",type:"text",attrs:{x:P+8,y:d,text:_,align:"left",baseline:"middle"},styles:{style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"#fff",backgroundColor:"rgba(56, 56, 56, 0.92)",borderColor:"rgba(56, 56, 56, 0.92)",borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:3,paddingLeft:8,paddingRight:24,paddingTop:4,paddingBottom:4},ignoreEvent:!1},{key:"alert-info-close",type:"text",attrs:{x:P+T-0,y:d,text:"×",fontFamily:"Apple Color Emoji",align:"center",baseline:"middle"},styles:{style:"fill",size:18,family:"Arial, sans-serif",color:"#fff",backgroundColor:"transparent",borderColor:"transparent",borderStyle:"solid",borderSize:0,borderDashedValue:[],borderRadius:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},ignoreEvent:!1})}return w},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:e=>{var a;const n=(a=e.figure)==null?void 0:a.key;if(!Ua(n))return!1;_0(e.overlay.id);const i=e.overlay.extendData??{};return e.overlay.extendData={...i,showInfo:!0},!1},onMouseLeave:e=>{var i;const n=(i=e.figure)==null?void 0:i.key;return Ua(n)&&j6(e.chart,e.overlay.id),!1},onRemoved:e=>(_0(e.overlay.id),!1),onSelected:e=>{var a;e.preventDefault&&e.preventDefault(),e.overlay.mode="normal";const n=e.overlay.extendData??{};return(((a=e.figure)==null?void 0:a.key)??"")==="alert-info-close"&&n.alert&&(K1==null||K1(n.alert)),!1},onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1),onDoubleClick:e=>{var i;if(((i=e.figure)==null?void 0:i.key)!=="alert-info-text")return!1;e.preventDefault&&e.preventDefault();const n=e.overlay.extendData??{};return n.alert&&Q6({alert:n.alert,sourceContainer:V6(e)}),!1}}),tc=[o6(),x6(),a6(),s6(),c6(),l6(),u6(),f6(),d6(),h6(),g6(),p6(),m6(),y6(),_6(),v6(),b6(),C6(),M6(),I6(),z6(),H6(),ec()];class nc{constructor(n){wn(this,"_apiKey");wn(this,"_prevSymbolMarket");wn(this,"_ws");this._apiKey=n}async searchSymbols(n){return await((await(await fetch(`https://api.polygon.io/v3/reference/tickers?apiKey=${this._apiKey}&active=true&search=${n??""}`)).json()).results||[]).map(s=>({ticker:s.ticker,name:s.name,shortName:s.ticker,market:s.market,exchange:s.primary_exchange,priceCurrency:s.currency_name,type:s.type,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAA66SURBVHic7Z17cFTVGcB/527AiKGgRA0ShGhKoQjFMb4qUMCMPIrWqdbHSEdlHDGgI9V2aq2d1hmKtVbRsSTGEcQRp4pStaZQlNYUwYLiSKU0SCMBDRCmoQSJGGF3T/84d2VZk+w9d899hf3NMBnl3ns+5vtyHt/5HoIehpQIaijDYjiSciRlwCCgBCgG+gNFQCGCAvUScaADaAfagFagBdiFoAlBI0m2UkWTEMgA/lmeIYIWIFdkLQNJMBbBJUjOA8agFOwF7cAmBO8hWUeMtWIWezwayxciZwByGb1pZTyCaUguA0YGLNIWBK8jWUExa8Q1HA5YHi0iYQByGTH2UYnkBmA6cHLQMnXBfqAOwXMMYLW4hkTQAmUj1AYgqzkLuAXBTUgGBi2PFoI9SJYAT4nZbA9anK4IpQHIhUzE4i4k04OWxQiCOpI8IubwZtCiZBIqA5A1TEdyH3Bh0LJ4xAYE80QVdUELkiIUBiCf4FIk85FcELQsviB4B8G94jb+GrwoASKfZBgJHkUyNUg5AkOwkhhzxa1sC06EAJALKUJwL3A30DsIGULEYeBhJPPFHNr9Htx3A5A1TECyGCjze+yQ04Rgpqii3s9BfTMAWUsfksxD8iO/xowkggVY3Cdmccif4XxAPskw4rwCjPBjvB5AAwVc6cfewPJ6AFnNzcTZSF75OowgzkZZzc1eD+SZAUiJkNX8FlgM9PVqnB5MX2CxrOa3Uno3U3vyYVlLPxIshR7iyQueOmLMELM4YPrDxg1A1jKQJKuQjDL97eMawWYsJpu+fjZqAPL3DMFiNVBu8rt5vqSRJJXidnaa+qAxA5CPU0aMvwFDTX0zT6fsIMEkcQdNJj5mxADs3/x68sr3ix0kmWBiJsjZAOyQrDXkp32/aSTG+Fz3BDkZgKylH0neym/4AkJtDMflcjpw7QeQEkGCpXnlB4hkFAmW5uIncO8IquFB8uf8MDDd1oUrXFmO7aJc7HbQPJ4wU8zmad2XtA3AvtjZSN69GzYOUkCF7gWSlgHIWvqQyF/shJgGYlToXCXr7QGSzCOv/DAzwtaRYxzPAHYkT+jCmvN0gmCi08giRwZgx/B9QD6MKyo0IRntJMbQ2RKgAjjzyo8OZbbOspJ1BrB3/ZvJR+9GjcMUMCrbqSD7DJDgUfLKjyK9bd11S7czgHyCS0my2pxMIaHvUCgshl5FUFQKQtWJ4FALHGmHz5rhizY43BaomEawqOwuA6mg25cl840L5DexQiithNMvhNMvglMr4IT+zt5t3QS762H332FXfTQNQumwy1zLLmcAO1HzNU+E8oNTK+AbN8KwGc4V3h3JODS9Av98GPauz/17fiK4vKuE1K4NoJr1RDFLd+BY+PYCOK3CuzH2rof3fg07Q5Pkm40NYjYXdfYXnRqAXMhEBH/zVibDFBbDRQ/AiFv8G3PbUlhTpfYNYUcyqbP6BJ2fAizu8lwgkwwcC9c3+Kt8UMvLtZuhZKy/47qhC51+ZQawy7J85LlApjhjAkx7Te3ogyIZhz9PhebQH5jOzixX09kM4POvUQ6cdTVc/kawygewCmDKy2omCjdf0e0xM4BdjeuTSBRk6jtUTb9BKz+djlZ4eRy0bQ1aks4R7GEAg9Orlx07A6hSbOFXPsCkp8OlfFAb0UnaQTn+IRnIPirT/1dBxgM3+CqQW0beptZ+NyTj0LIW9m6A//0L2puP/l1RKXytHAZ9RzmNYoX63z/9IrU53LbUnXxeo3S8KvWfXy4BdgXOFsJbhFFhFcAPP4E+JXrvJeOw+TH44NFjld4VfUrg3Htg5Cx9QzjUAn8YEVbP4X6KKUlVND26BLQynrArH9TGT1f5h1pg+fnw9o+dKT/1zrq58MeL4UCj3nh9StQsFU5OtnUNpBuAYFog4ugy5Lt6z3/RBq9OVH59N7RuUu93tOq9N3KWu/H8IE3XRw1AFV4OP2dO0Xt+4/2578o/a1YePx36DoXiMbmN6xVpurbAzu8Lvup2dgqL1R+nHGmHLU+YGfujl/RnkUGV2Z8JhpG2zu0ZIEHoPRgA9NPMP21eDYkOc+M3LNJ7/rTzzI1tGlvnygAElwQqjFPc7MZNouvq1TVYP7F1rgxAddrIkw3dvYTOcuU3ts4L7B47Id2tZHBwh97zXvwGNr4AfU539uyhvebHN8cYKREiUrd/sUK49XPnzyfj8FyZ87P/8cfZFhbDg5bCMYkOdSRzilUAFz/knTxRx2K4hYxYaZcdmmFY5ddBxa88ESXySMotu69edNi+XP+d838Jlz4bvtvDoJGUWaimitFhz1p3a/qwGXBdg/qZJ8UgC9VRMzokOuDdX7h7t6hUzQTX2fGDbq57exYlQlbzb6KY83/1uyr2PxeOtKtY/w+fUQkgybgJyaJEg5DV7IaIRAGlc8o58P1/mFvXj7SrOP+df4aP/6J/+xdN9ghZzadEtd7PmVNg6mvquGeSZFzNCB8th8bnwxrYYYKDQlZzGOgVtCSuGXELjK8xbwQpEh3KCLbURi8lLDtHhKwhiYcNCXzhzClw2YveH/N218O796ufPQGB7BkGANB/OEx9Wf30mubV8NYd4Q3/dopAWkh6xta3bSssO1clbZqMAeiM0kq45n3lYfRq6fEDSTzam8Cu6FcOYx/XDx9zw+56eON687EH/nDQAv+7VXrOgUaVq/fyOHXO9/J8f8YE+N6b4Q7+6Jr26DqCdOhXDufcrgpGmCgW0RmHWuCVcfoh5MHSIGQ1a4BxQUviC7FCtSycdRUMmW7eGNq2wkvnR6NegOItIatZBvwgaEl8xypQ03f5tcooTio1892ddbDicjPf8p4XC4BdQUsRCMm4Os6lAj1PrYCzr1bLhG7mUTpDpsM3boIPl5iQ0mt2WQgz3aciz383wvp74NnBsOoH7jOJAC5ZAL092muYRNBkIYjUrsVzknHY/hK8eK77490J/WH0XPOymUbQaJEk4u4sD2l8Hl4YBZ+syv5sJqPmhN9JlGSrRRVN9ERfgCk6WmHlldCyTu+9wmL3NQz8oZ0qmiwhkEAOC95xQKIDVl2tf7wbPNkbecywSQikmqME7yFDnB/Yq0jVBXDK5y0qqMMkh1rgg8fgvJ87fyes2cGgdE6qRIxkHXBnkPJ0i27tnb3rzRsAKLeyjgGE2T2sdG7nBsZYG6gw2dD15Zty6mTy3416z+fiT/AaW+cWgN1/dkugAnXHZ816629RqXeJmTqZSeGNOt6S6jmcXiLm9cDEcYLuJcsQj5qanhji32qnpOk6vUTMikCEcYru9DvMg4p3/cr1zvY6s4WfpOn6qAEUswbYH4Q8jtB1xpRWmp8Fvq6ZVfTpDrPjm2G/rWsgzQDsunHhLYD/8V9UxS8dxj1ubiN2UimMuVvvnX2hdK/UpWoEQmapWMFzvovjlCPt+jV6+g5V0Tp9h+Y2dp8SuMJFUeqPXbiQvSZDx8cawABWI9TuMJS8/xv9jJ3+w1VR6dFz3fnmB09RGUi60cZftIWvfLwqFn2MUMcYgLiGBJIlvgqlQ0crvP0T/fd6Fakr2hv3qJ+Dp3R/TDzlHPjmbXDVuzB9pbsZpGGR99HJukiWpFcKh6g2jJhWp18xtDMOtSglpa58+5QcbSeXC+3N6hYxfCllX2kY0XnPoBpeQ+LRQdoAJ5Wq7OCwetpWXB6+hlKCOlHFV2LVOu8ZlOQRzwXKhc+aVf3eMMbiNywKn/KhS51Gu21c/+Fqlx+WmWD7cnjjujDWGeiybVzXvYMF8zwTxxRtW1Usfi7xe6b48JmwKr9bXXbfO7iGDUguMC+RYawCuGAefOtu/8OwjrSrjOF//s7fcZ0ieEdUdT2Td9893GEP+sBJxlVE7/Mj1J29XzS9qnb7YVU+ZNVh1rRwWcMKJFPNSeQDp5yjHD/l15qvGZDoUEbWsCh8jp5MBCtFVfeNQLIbwJMMI85moLcxwfwilQo2eLJq5uQ2ROuLNnUbuX05/CcyJWMOU8AocSvbunvIUWEIWc184GdGxAqSXkWqzWvxGCgcoJw+J2Y4flI3eAd3qq5i+zZFLeEzxQNidvYl3JkBLKQIwQcQsaqixy9NSEaLOdnD/bvfBNqIObQjmJm7XHl8QTDTifLBoQEAiCrqESxwL1UeXxAsEFXUO33csQHYT98HNGiKlMc/GmwdOUa7Oph9KthIT6srFH0OUkBFtl1/JnozAGAPEN4kkuOXO3WVDy4MAEDM5mkg34ojPDxk60Qb1wUi7WZTf4IQxw0cH9RRxRV2kq82rmYAACGQxJiBYLPbb+TJEcFmYsxwq3zIwQAAxCwOYDEZ8lVGAqARi8liFgdy+UhOBgB2XmGSSmBHrt/K45gdJKlM5fflQs4GACBuZycJJpE3Aj/YQYJJ4nZ2mviYEQMAEHfQRJIJ5JcDL2kkyQRxh7nKbsbLxMtaBpJkFZJRpr99XCPYbK/5RhN3jM0AKcQs9mAxjjDnGUaPOizGmVY+eDADpLD9BA8CLlJ58qTxEFX8NJejXnd43ilEVnMz8Bj5uwNdDgJ3uvXwOcWXVjH2BdIr9PSy9OZooIAr3fj2dTG+B+gMcSvbiFGRjydwgGABMf1bPffD+YysYQKSxeTDyzJpQjBTJ5jDBL7MAOmIKuqRjAYegKOVKo5jDgMPIBntt/IhgBkgHfkkw0jwaOTyDkwhWEmMuX5N952LEALkE1yKZH4k0tBMIHgHwb3iNv4avCghQtYwHcl9hD0r2T0bEMwTVeFxkoXKAFLIhUzE4q5QF6nQQVBHkkfEHN4MWpRMQmkAKexyNbcguAkZsRb3gj12vaWnMsuyhIlQG0AKuYwY+6hEcgMqBO3koGXqgv1AHYLnGMDqzIJMYSQSBpCOXEZvWhmPYBqSy4CRAYu0BcHrSFZQzJr0IoxRIHIGkImsZSAJxiK4BMl5wBjAqz7y7cAmu8HGOmKs9eKGzk8ibwCZ2LeQZVgMR1KOpAwYBJQAxUB/lIEUIr5smBEHOlAKbgNagRZgF4ImBI0k2UoVTV7dygXF/wF+fTz59Jc5ygAAAABJRU5ErkJggg=="}))}async getHistoryKLineData(n,i,a,s){return await((await(await fetch(`https://api.polygon.io/v2/aggs/ticker/${n.ticker}/range/${i.span}/${i.type}/${a}/${s}?apiKey=${this._apiKey}`)).json()).results||[]).map(f=>({timestamp:f.t,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw}))}subscribe(n,i,a){var s,l;this._prevSymbolMarket!==n.market?((s=this._ws)==null||s.close(),this._ws=new WebSocket(`wss://delayed.polygon.io/${n.market}`),this._ws.onopen=()=>{var c;(c=this._ws)==null||c.send(JSON.stringify({action:"auth",params:this._apiKey}))},this._ws.onmessage=c=>{var d;const f=JSON.parse(c.data);f[0].ev==="status"?f[0].status==="auth_success"&&((d=this._ws)==null||d.send(JSON.stringify({action:"subscribe",params:`T.${n.ticker}`}))):"sym"in f&&a({timestamp:f.s,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw})}):(l=this._ws)==null||l.send(JSON.stringify({action:"subscribe",params:`T.${n.ticker}`})),this._prevSymbolMarket=n.market}unsubscribe(n,i){}}const rc=!1,ic=(e,n)=>e===n,v0=Symbol("solid-proxy"),oc=typeof Proxy=="function",ac=Symbol("solid-track"),U1={equals:ic};let Za=Qa;const In=1,Z1=2,Ha={owned:null,cleanups:null,context:null,owner:null},b0={};var Ne=null;let C0=null,sc=null,Fe=null,Ct=null,En=null,H1=0;function Y1(e,n){const i=Fe,a=Ne,s=e.length===0,l=n===void 0?a:n,c=s?Ha:{owned:null,cleanups:null,context:l?l.context:null,owner:l},f=s?e:()=>e(()=>pn(()=>f1(c)));Ne=c,Fe=null;try{return Dn(f,!0)}finally{Fe=i,Ne=a}}function G(e,n){n=n?Object.assign({},U1,n):U1;const i={value:e,observers:null,observerSlots:null,comparator:n.equals||void 0},a=s=>(typeof s=="function"&&(s=s(i.value)),Va(i,s));return[Ga.bind(i),a]}function Ya(e,n,i){const a=G1(e,n,!0,In);$r(a)}function Te(e,n,i){const a=G1(e,n,!1,In);$r(a)}function Tt(e,n,i){Za=pc;const a=G1(e,n,!1,In);(!i||!i.render)&&(a.user=!0),En?En.push(a):$r(a)}function en(e,n,i){i=i?Object.assign({},U1,i):U1;const a=G1(e,n,!0,0);return a.observers=null,a.observerSlots=null,a.comparator=i.equals||void 0,$r(a),Ga.bind(a)}function lc(e){return e&&typeof e=="object"&&"then"in e}function cc(e,n,i){let a,s,l;typeof n=="function"?(a=e,s=n,l=i||{}):(a=!0,s=e,l=n||{});let c=null,f=b0,d=!1,g="initialValue"in l,_=typeof a=="function"&&en(a);const y=new Set,[b,k]=(l.storage||G)(l.initialValue),[v,w]=G(void 0),[L,$]=G(void 0,{equals:!1}),[T,P]=G(g?"ready":"unresolved");function D(z,V,Q,te){return c===z&&(c=null,te!==void 0&&(g=!0),(z===f||V===f)&&l.onHydrated&&queueMicrotask(()=>l.onHydrated(te,{value:V})),f=b0,U(V,Q)),V}function U(z,V){Dn(()=>{V===void 0&&k(()=>z),P(V!==void 0?"errored":g?"ready":"unresolved"),w(V);for(const Q of y.keys())Q.decrement();y.clear()},!1)}function X(){const z=dc,V=b(),Q=v();if(Q!==void 0&&!c)throw Q;return Fe&&!Fe.user&&z&&Ya(()=>{L(),c&&(z.resolved||y.has(z)||(z.increment(),y.add(z)))}),V}function Y(z=!0){if(z!==!1&&d)return;d=!1;const V=_?_():a;if(V==null||V===!1){D(c,pn(b));return}let Q;const te=f!==b0?f:pn(()=>{try{return s(V,{value:b(),refetching:z})}catch(ee){Q=ee}});if(Q!==void 0){D(c,void 0,j1(Q),V);return}else if(!lc(te))return D(c,te,void 0,V),te;return c=te,"v"in te?(te.s===1?D(c,te.v,void 0,V):D(c,void 0,j1(te.v),V),te):(d=!0,queueMicrotask(()=>d=!1),Dn(()=>{P(g?"refreshing":"pending"),$()},!1),te.then(ee=>D(te,ee,void 0,V),ee=>D(te,void 0,j1(ee),V)))}Object.defineProperties(X,{state:{get:()=>T()},error:{get:()=>v()},loading:{get(){const z=T();return z==="pending"||z==="refreshing"}},latest:{get(){if(!g)return X();const z=v();if(z&&!c)throw z;return b()}}});let E=Ne;return _?Ya(()=>(E=Ne,Y(!1))):Y(!1),[X,{refetch:z=>uc(E,()=>Y(z)),mutate:k}]}function pn(e){if(Fe===null)return e();const n=Fe;Fe=null;try{return e()}finally{Fe=n}}function x0(e){Tt(()=>pn(e))}function Lr(e){return Ne===null||(Ne.cleanups===null?Ne.cleanups=[e]:Ne.cleanups.push(e)),e}function uc(e,n){const i=Ne,a=Fe;Ne=e,Fe=null;try{return Dn(n,!0)}catch(s){w0(s)}finally{Ne=i,Fe=a}}function fc(e){const n=Fe,i=Ne;return Promise.resolve().then(()=>{Fe=n,Ne=i;let a;return Dn(e,!1),Fe=Ne=null,a?a.done:void 0})}let dc;function Ga(){if(this.sources&&this.state)if(this.state===In)$r(this);else{const e=Ct;Ct=null,Dn(()=>Q1(this),!1),Ct=e}if(Fe){const e=this.observers?this.observers.length:0;Fe.sources?(Fe.sources.push(this),Fe.sourceSlots.push(e)):(Fe.sources=[this],Fe.sourceSlots=[e]),this.observers?(this.observers.push(Fe),this.observerSlots.push(Fe.sources.length-1)):(this.observers=[Fe],this.observerSlots=[Fe.sources.length-1])}return this.value}function Va(e,n,i){let a=e.value;return(!e.comparator||!e.comparator(a,n))&&(e.value=n,e.observers&&e.observers.length&&Dn(()=>{for(let s=0;s<e.observers.length;s+=1){const l=e.observers[s],c=C0&&C0.running;c&&C0.disposed.has(l),(c?!l.tState:!l.state)&&(l.pure?Ct.push(l):En.push(l),l.observers&&ja(l)),c||(l.state=In)}if(Ct.length>1e6)throw Ct=[],new Error},!1)),n}function $r(e){if(!e.fn)return;f1(e);const n=H1;hc(e,e.value,n)}function hc(e,n,i){let a;const s=Ne,l=Fe;Fe=Ne=e;try{a=e.fn(n)}catch(c){return e.pure&&(e.state=In,e.owned&&e.owned.forEach(f1),e.owned=null),e.updatedAt=i+1,w0(c)}finally{Fe=l,Ne=s}(!e.updatedAt||e.updatedAt<=i)&&(e.updatedAt!=null&&"observers"in e?Va(e,a):e.value=a,e.updatedAt=i)}function G1(e,n,i,a=In,s){const l={fn:e,state:a,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:n,owner:Ne,context:Ne?Ne.context:null,pure:i};return Ne===null||Ne!==Ha&&(Ne.owned?Ne.owned.push(l):Ne.owned=[l]),l}function V1(e){if(e.state===0)return;if(e.state===Z1)return Q1(e);if(e.suspense&&pn(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<H1);)e.state&&n.push(e);for(let i=n.length-1;i>=0;i--)if(e=n[i],e.state===In)$r(e);else if(e.state===Z1){const a=Ct;Ct=null,Dn(()=>Q1(e,n[0]),!1),Ct=a}}function Dn(e,n){if(Ct)return e();let i=!1;n||(Ct=[]),En?i=!0:En=[],H1++;try{const a=e();return gc(i),a}catch(a){i||(En=null),Ct=null,w0(a)}}function gc(e){if(Ct&&(Qa(Ct),Ct=null),e)return;const n=En;En=null,n.length&&Dn(()=>Za(n),!1)}function Qa(e){for(let n=0;n<e.length;n++)V1(e[n])}function pc(e){let n,i=0;for(n=0;n<e.length;n++){const a=e[n];a.user?e[i++]=a:V1(a)}for(n=0;n<i;n++)V1(e[n])}function Q1(e,n){e.state=0;for(let i=0;i<e.sources.length;i+=1){const a=e.sources[i];if(a.sources){const s=a.state;s===In?a!==n&&(!a.updatedAt||a.updatedAt<H1)&&V1(a):s===Z1&&Q1(a,n)}}}function ja(e){for(let n=0;n<e.observers.length;n+=1){const i=e.observers[n];i.state||(i.state=Z1,i.pure?Ct.push(i):En.push(i),i.observers&&ja(i))}}function f1(e){let n;if(e.sources)for(;e.sources.length;){const i=e.sources.pop(),a=e.sourceSlots.pop(),s=i.observers;if(s&&s.length){const l=s.pop(),c=i.observerSlots.pop();a<s.length&&(l.sourceSlots[c]=a,s[a]=l,i.observerSlots[a]=c)}}if(e.tOwned){for(n=e.tOwned.length-1;n>=0;n--)f1(e.tOwned[n]);delete e.tOwned}if(e.owned){for(n=e.owned.length-1;n>=0;n--)f1(e.owned[n]);e.owned=null}if(e.cleanups){for(n=e.cleanups.length-1;n>=0;n--)e.cleanups[n]();e.cleanups=null}e.state=0}function j1(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function w0(e,n=Ne){throw j1(e)}const mc=Symbol("fallback");function qa(e){for(let n=0;n<e.length;n++)e[n]()}function yc(e,n,i={}){let a=[],s=[],l=[],c=0,f=n.length>1?[]:null;return Lr(()=>qa(l)),()=>{let d=e()||[],g=d.length,_,y;return d[ac],pn(()=>{let k,v,w,L,$,T,P,D,U;if(g===0)c!==0&&(qa(l),l=[],a=[],s=[],c=0,f&&(f=[])),i.fallback&&(a=[mc],s[0]=Y1(X=>(l[0]=X,i.fallback())),c=1);else if(c===0){for(s=new Array(g),y=0;y<g;y++)a[y]=d[y],s[y]=Y1(b);c=g}else{for(w=new Array(g),L=new Array(g),f&&($=new Array(g)),T=0,P=Math.min(c,g);T<P&&a[T]===d[T];T++);for(P=c-1,D=g-1;P>=T&&D>=T&&a[P]===d[D];P--,D--)w[D]=s[P],L[D]=l[P],f&&($[D]=f[P]);for(k=new Map,v=new Array(D+1),y=D;y>=T;y--)U=d[y],_=k.get(U),v[y]=_===void 0?-1:_,k.set(U,y);for(_=T;_<=P;_++)U=a[_],y=k.get(U),y!==void 0&&y!==-1?(w[y]=s[_],L[y]=l[_],f&&($[y]=f[_]),y=v[y],k.set(U,y)):l[_]();for(y=T;y<g;y++)y in w?(s[y]=w[y],l[y]=L[y],f&&(f[y]=$[y],f[y](y))):s[y]=Y1(b);s=s.slice(0,c=g),a=d.slice(0)}return s});function b(k){if(l[y]=k,f){const[v,w]=G(y);return f[y]=w,n(d[y],v)}return n(d[y])}}}function Z(e,n){return pn(()=>e(n||{}))}function q1(){return!0}const _c={get(e,n,i){return n===v0?i:e.get(n)},has(e,n){return n===v0?!0:e.has(n)},set:q1,deleteProperty:q1,getOwnPropertyDescriptor(e,n){return{configurable:!0,enumerable:!0,get(){return e.get(n)},set:q1,deleteProperty:q1}},ownKeys(e){return e.keys()}};function L0(e){return(e=typeof e=="function"?e():e)?e:{}}function vc(){for(let e=0,n=this.length;e<n;++e){const i=this[e]();if(i!==void 0)return i}}function Xa(...e){let n=!1;for(let c=0;c<e.length;c++){const f=e[c];n=n||!!f&&v0 in f,e[c]=typeof f=="function"?(n=!0,en(f)):f}if(oc&&n)return new Proxy({get(c){for(let f=e.length-1;f>=0;f--){const d=L0(e[f])[c];if(d!==void 0)return d}},has(c){for(let f=e.length-1;f>=0;f--)if(c in L0(e[f]))return!0;return!1},keys(){const c=[];for(let f=0;f<e.length;f++)c.push(...Object.keys(L0(e[f])));return[...new Set(c)]}},_c);const i={},a=Object.create(null);for(let c=e.length-1;c>=0;c--){const f=e[c];if(!f)continue;const d=Object.getOwnPropertyNames(f);for(let g=d.length-1;g>=0;g--){const _=d[g];if(_==="__proto__"||_==="constructor")continue;const y=Object.getOwnPropertyDescriptor(f,_);if(!a[_])a[_]=y.get?{enumerable:!0,configurable:!0,get:vc.bind(i[_]=[y.get.bind(f)])}:y.value!==void 0?y:void 0;else{const b=i[_];b&&(y.get?b.push(y.get.bind(f)):y.value!==void 0&&b.push(()=>y.value))}}}const s={},l=Object.keys(a);for(let c=l.length-1;c>=0;c--){const f=l[c],d=a[f];d&&d.get?Object.defineProperty(s,f,d):s[f]=d?d.value:void 0}return s}const bc=e=>`Stale read from <${e}>.`;function Ja(e){const n="fallback"in e&&{fallback:()=>e.fallback};return en(yc(()=>e.each,e.children,n||void 0))}function Oe(e){const n=e.keyed,i=en(()=>e.when,void 0,void 0),a=n?i:en(i,void 0,{equals:(s,l)=>!s==!l});return en(()=>{const s=a();if(s){const l=e.children;return typeof l=="function"&&l.length>0?pn(()=>l(n?s:()=>{if(!pn(a))throw bc("Show");return i()})):l}return e.fallback},void 0,void 0)}const je=e=>en(()=>e());function Cc(e,n,i){let a=i.length,s=n.length,l=a,c=0,f=0,d=n[s-1].nextSibling,g=null;for(;c<s||f<l;){if(n[c]===i[f]){c++,f++;continue}for(;n[s-1]===i[l-1];)s--,l--;if(s===c){const _=l<a?f?i[f-1].nextSibling:i[l-f]:d;for(;f<l;)e.insertBefore(i[f++],_)}else if(l===f)for(;c<s;)(!g||!g.has(n[c]))&&n[c].remove(),c++;else if(n[c]===i[l-1]&&i[f]===n[s-1]){const _=n[--s].nextSibling;e.insertBefore(i[f++],n[c++].nextSibling),e.insertBefore(i[--l],_),n[s]=i[l]}else{if(!g){g=new Map;let y=f;for(;y<l;)g.set(i[y],y++)}const _=g.get(n[c]);if(_!=null)if(f<_&&_<l){let y=c,b=1,k;for(;++y<s&&y<l&&!((k=g.get(n[y]))==null||k!==_+b);)b++;if(b>_-f){const v=n[c];for(;f<_;)e.insertBefore(i[f++],v)}else e.replaceChild(i[f++],n[c++])}else c++;else n[c++].remove()}}}const es="_$DX_DELEGATE";function xc(e,n,i,a={}){let s;return Y1(l=>{s=l,n===document?e():W(n,e(),n.firstChild?null:void 0,i)},a.owner),()=>{s(),n.textContent=""}}function N(e,n,i,a){let s;const l=()=>{const f=a?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return f.innerHTML=e,i?f.content.firstChild.firstChild:a?f.firstChild:f.content.firstChild},c=n?()=>pn(()=>document.importNode(s||(s=l()),!0)):()=>(s||(s=l())).cloneNode(!0);return c.cloneNode=c,c}function zt(e,n=window.document){const i=n[es]||(n[es]=new Set);for(let a=0,s=e.length;a<s;a++){const l=e[a];i.has(l)||(i.add(l),n.addEventListener(l,wc))}}function ft(e,n,i){i==null?e.removeAttribute(n):e.setAttribute(n,i)}function Zt(e,n){n==null?e.removeAttribute("class"):e.className=n}function $n(e,n,i,a){if(a)Array.isArray(i)?(e[`$$${n}`]=i[0],e[`$$${n}Data`]=i[1]):e[`$$${n}`]=i;else if(Array.isArray(i)){const s=i[0];e.addEventListener(n,i[0]=l=>s.call(e,i[1],l))}else e.addEventListener(n,i,typeof i!="function"&&i)}function qe(e,n,i){if(!n)return i?ft(e,"style"):n;const a=e.style;if(typeof n=="string")return a.cssText=n;typeof i=="string"&&(a.cssText=i=void 0),i||(i={}),n||(n={});let s,l;for(l in i)n[l]==null&&a.removeProperty(l),delete i[l];for(l in n)s=n[l],s!==i[l]&&(a.setProperty(l,s),i[l]=s);return i}function Sr(e,n,i){i!=null?e.style.setProperty(n,i):e.style.removeProperty(n)}function X1(e,n,i){return pn(()=>e(n,i))}function W(e,n,i,a){if(i!==void 0&&!a&&(a=[]),typeof n!="function")return J1(e,n,a,i);Te(s=>J1(e,n(),s,i),a)}function wc(e){let n=e.target;const i=`$$${e.type}`,a=e.target,s=e.currentTarget,l=d=>Object.defineProperty(e,"target",{configurable:!0,value:d}),c=()=>{const d=n[i];if(d&&!n.disabled){const g=n[`${i}Data`];if(g!==void 0?d.call(n,g,e):d.call(n,e),e.cancelBubble)return}return n.host&&typeof n.host!="string"&&!n.host._$host&&n.contains(e.target)&&l(n.host),!0},f=()=>{for(;c()&&(n=n._$host||n.parentNode||n.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}}),e.composedPath){const d=e.composedPath();l(d[0]);for(let g=0;g<d.length-2&&(n=d[g],!!c());g++){if(n._$host){n=n._$host,f();break}if(n.parentNode===s)break}}else f();l(a)}function J1(e,n,i,a,s){for(;typeof i=="function";)i=i();if(n===i)return i;const l=typeof n,c=a!==void 0;if(e=c&&i[0]&&i[0].parentNode||e,l==="string"||l==="number"){if(l==="number"&&(n=n.toString(),n===i))return i;if(c){let f=i[0];f&&f.nodeType===3?f.data!==n&&(f.data=n):f=document.createTextNode(n),i=kr(e,i,a,f)}else i!==""&&typeof i=="string"?i=e.firstChild.data=n:i=e.textContent=n}else if(n==null||l==="boolean")i=kr(e,i,a);else{if(l==="function")return Te(()=>{let f=n();for(;typeof f=="function";)f=f();i=J1(e,f,i,a)}),()=>i;if(Array.isArray(n)){const f=[],d=i&&Array.isArray(i);if($0(f,n,i,s))return Te(()=>i=J1(e,f,i,a,!0)),()=>i;if(f.length===0){if(i=kr(e,i,a),c)return i}else d?i.length===0?ts(e,f,a):Cc(e,i,f):(i&&kr(e),ts(e,f));i=f}else if(n.nodeType){if(Array.isArray(i)){if(c)return i=kr(e,i,a,n);kr(e,i,null,n)}else i==null||i===""||!e.firstChild?e.appendChild(n):e.replaceChild(n,e.firstChild);i=n}}return i}function $0(e,n,i,a){let s=!1;for(let l=0,c=n.length;l<c;l++){let f=n[l],d=i&&i[e.length],g;if(!(f==null||f===!0||f===!1))if((g=typeof f)=="object"&&f.nodeType)e.push(f);else if(Array.isArray(f))s=$0(e,f,d)||s;else if(g==="function")if(a){for(;typeof f=="function";)f=f();s=$0(e,Array.isArray(f)?f:[f],Array.isArray(d)?d:[d])||s}else e.push(f),s=!0;else{const _=String(f);d&&d.nodeType===3&&d.data===_?e.push(d):e.push(document.createTextNode(_))}}return s}function ts(e,n,i=null){for(let a=0,s=n.length;a<s;a++)e.insertBefore(n[a],i)}function kr(e,n,i,a){if(i===void 0)return e.textContent="";const s=a||document.createTextNode("");if(n.length){let l=!1;for(let c=n.length-1;c>=0;c--){const f=n[c];if(s!==f){const d=f.parentNode===e;!l&&!c?d?e.replaceChild(s,f):e.insertBefore(s,i):d&&f.remove()}else l=!0}}else e.insertBefore(s,i);return[s]}function Lc(){this.__data__=[],this.size=0}var $c=Lc;function Sc(e,n){return e===n||e!==e&&n!==n}var ns=Sc,kc=ns;function Ac(e,n){for(var i=e.length;i--;)if(kc(e[i][0],n))return i;return-1}var ei=Ac,Mc=ei,Tc=Array.prototype,Oc=Tc.splice;function Pc(e){var n=this.__data__,i=Mc(n,e);if(i<0)return!1;var a=n.length-1;return i==a?n.pop():Oc.call(n,i,1),--this.size,!0}var Ic=Pc,Ec=ei;function Dc(e){var n=this.__data__,i=Ec(n,e);return i<0?void 0:n[i][1]}var Rc=Dc,Bc=ei;function Fc(e){return Bc(this.__data__,e)>-1}var zc=Fc,Nc=ei;function Wc(e,n){var i=this.__data__,a=Nc(i,e);return a<0?(++this.size,i.push([e,n])):i[a][1]=n,this}var Kc=Wc,Uc=$c,Zc=Ic,Hc=Rc,Yc=zc,Gc=Kc;function Ar(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}Ar.prototype.clear=Uc,Ar.prototype.delete=Zc,Ar.prototype.get=Hc,Ar.prototype.has=Yc,Ar.prototype.set=Gc;var ti=Ar,Vc=ti;function Qc(){this.__data__=new Vc,this.size=0}var jc=Qc;function qc(e){var n=this.__data__,i=n.delete(e);return this.size=n.size,i}var Xc=qc;function Jc(e){return this.__data__.get(e)}var e3=Jc;function t3(e){return this.__data__.has(e)}var n3=t3,r3=typeof Pn=="object"&&Pn&&Pn.Object===Object&&Pn,rs=r3,i3=rs,o3=typeof self=="object"&&self&&self.Object===Object&&self,a3=i3||o3||Function("return this")(),Sn=a3,s3=Sn,l3=s3.Symbol,ni=l3,is=ni,os=Object.prototype,c3=os.hasOwnProperty,u3=os.toString,d1=is?is.toStringTag:void 0;function f3(e){var n=c3.call(e,d1),i=e[d1];try{e[d1]=void 0;var a=!0}catch{}var s=u3.call(e);return a&&(n?e[d1]=i:delete e[d1]),s}var d3=f3,h3=Object.prototype,g3=h3.toString;function p3(e){return g3.call(e)}var m3=p3,as=ni,y3=d3,_3=m3,v3="[object Null]",b3="[object Undefined]",ss=as?as.toStringTag:void 0;function C3(e){return e==null?e===void 0?b3:v3:ss&&ss in Object(e)?y3(e):_3(e)}var h1=C3;function x3(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var Mr=x3,w3=h1,L3=Mr,$3="[object AsyncFunction]",S3="[object Function]",k3="[object GeneratorFunction]",A3="[object Proxy]";function M3(e){if(!L3(e))return!1;var n=w3(e);return n==S3||n==k3||n==$3||n==A3}var ls=M3,T3=Sn,O3=T3["__core-js_shared__"],P3=O3,S0=P3,cs=function(){var e=/[^.]+$/.exec(S0&&S0.keys&&S0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function I3(e){return!!cs&&cs in e}var E3=I3,D3=Function.prototype,R3=D3.toString;function B3(e){if(e!=null){try{return R3.call(e)}catch{}try{return e+""}catch{}}return""}var us=B3,F3=ls,z3=E3,N3=Mr,W3=us,K3=/[\\^$.*+?()[\]{}|]/g,U3=/^\[object .+?Constructor\]$/,Z3=Function.prototype,H3=Object.prototype,Y3=Z3.toString,G3=H3.hasOwnProperty,V3=RegExp("^"+Y3.call(G3).replace(K3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Q3(e){if(!N3(e)||z3(e))return!1;var n=F3(e)?V3:U3;return n.test(W3(e))}var j3=Q3;function q3(e,n){return e==null?void 0:e[n]}var X3=q3,J3=j3,e8=X3;function t8(e,n){var i=e8(e,n);return J3(i)?i:void 0}var ur=t8,n8=ur,r8=Sn,i8=n8(r8,"Map"),k0=i8,o8=ur,a8=o8(Object,"create"),ri=a8,fs=ri;function s8(){this.__data__=fs?fs(null):{},this.size=0}var l8=s8;function c8(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var u8=c8,f8=ri,d8="__lodash_hash_undefined__",h8=Object.prototype,g8=h8.hasOwnProperty;function p8(e){var n=this.__data__;if(f8){var i=n[e];return i===d8?void 0:i}return g8.call(n,e)?n[e]:void 0}var m8=p8,y8=ri,_8=Object.prototype,v8=_8.hasOwnProperty;function b8(e){var n=this.__data__;return y8?n[e]!==void 0:v8.call(n,e)}var C8=b8,x8=ri,w8="__lodash_hash_undefined__";function L8(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=x8&&n===void 0?w8:n,this}var $8=L8,S8=l8,k8=u8,A8=m8,M8=C8,T8=$8;function Tr(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}Tr.prototype.clear=S8,Tr.prototype.delete=k8,Tr.prototype.get=A8,Tr.prototype.has=M8,Tr.prototype.set=T8;var O8=Tr,ds=O8,P8=ti,I8=k0;function E8(){this.size=0,this.__data__={hash:new ds,map:new(I8||P8),string:new ds}}var D8=E8;function R8(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var B8=R8,F8=B8;function z8(e,n){var i=e.__data__;return F8(n)?i[typeof n=="string"?"string":"hash"]:i.map}var ii=z8,N8=ii;function W8(e){var n=N8(this,e).delete(e);return this.size-=n?1:0,n}var K8=W8,U8=ii;function Z8(e){return U8(this,e).get(e)}var H8=Z8,Y8=ii;function G8(e){return Y8(this,e).has(e)}var V8=G8,Q8=ii;function j8(e,n){var i=Q8(this,e),a=i.size;return i.set(e,n),this.size+=i.size==a?0:1,this}var q8=j8,X8=D8,J8=K8,e7=H8,t7=V8,n7=q8;function Or(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}Or.prototype.clear=X8,Or.prototype.delete=J8,Or.prototype.get=e7,Or.prototype.has=t7,Or.prototype.set=n7;var hs=Or,r7=ti,i7=k0,o7=hs,a7=200;function s7(e,n){var i=this.__data__;if(i instanceof r7){var a=i.__data__;if(!i7||a.length<a7-1)return a.push([e,n]),this.size=++i.size,this;i=this.__data__=new o7(a)}return i.set(e,n),this.size=i.size,this}var l7=s7,c7=ti,u7=jc,f7=Xc,d7=e3,h7=n3,g7=l7;function Pr(e){var n=this.__data__=new c7(e);this.size=n.size}Pr.prototype.clear=u7,Pr.prototype.delete=f7,Pr.prototype.get=d7,Pr.prototype.has=h7,Pr.prototype.set=g7;var p7=Pr;function m7(e,n){for(var i=-1,a=e==null?0:e.length;++i<a&&n(e[i],i,e)!==!1;);return e}var y7=m7,_7=ur,v7=function(){try{var e=_7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),b7=v7,gs=b7;function C7(e,n,i){n=="__proto__"&&gs?gs(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i}var ps=C7,x7=ps,w7=ns,L7=Object.prototype,$7=L7.hasOwnProperty;function S7(e,n,i){var a=e[n];(!($7.call(e,n)&&w7(a,i))||i===void 0&&!(n in e))&&x7(e,n,i)}var A0=S7,k7=A0,A7=ps;function M7(e,n,i,a){var s=!i;i||(i={});for(var l=-1,c=n.length;++l<c;){var f=n[l],d=a?a(i[f],e[f],f,i,e):void 0;d===void 0&&(d=e[f]),s?A7(i,f,d):k7(i,f,d)}return i}var oi=M7;function T7(e,n){for(var i=-1,a=Array(e);++i<e;)a[i]=n(i);return a}var O7=T7;function P7(e){return e!=null&&typeof e=="object"}var Ir=P7,I7=h1,E7=Ir,D7="[object Arguments]";function R7(e){return E7(e)&&I7(e)==D7}var B7=R7,ms=B7,F7=Ir,ys=Object.prototype,z7=ys.hasOwnProperty,N7=ys.propertyIsEnumerable,W7=ms(function(){return arguments}())?ms:function(e){return F7(e)&&z7.call(e,"callee")&&!N7.call(e,"callee")},K7=W7,U7=Array.isArray,Er=U7,ai={exports:{}};function Z7(){return!1}var H7=Z7;ai.exports,function(e,n){var i=Sn,a=H7,s=n&&!n.nodeType&&n,l=s&&!0&&e&&!e.nodeType&&e,c=l&&l.exports===s,f=c?i.Buffer:void 0,d=f?f.isBuffer:void 0,g=d||a;e.exports=g}(ai,ai.exports);var _s=ai.exports,Y7=9007199254740991,G7=/^(?:0|[1-9]\d*)$/;function V7(e,n){var i=typeof e;return n=n??Y7,!!n&&(i=="number"||i!="symbol"&&G7.test(e))&&e>-1&&e%1==0&&e<n}var vs=V7,Q7=9007199254740991;function j7(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Q7}var bs=j7,q7=h1,X7=bs,J7=Ir,eu="[object Arguments]",tu="[object Array]",nu="[object Boolean]",ru="[object Date]",iu="[object Error]",ou="[object Function]",au="[object Map]",su="[object Number]",lu="[object Object]",cu="[object RegExp]",uu="[object Set]",fu="[object String]",du="[object WeakMap]",hu="[object ArrayBuffer]",gu="[object DataView]",pu="[object Float32Array]",mu="[object Float64Array]",yu="[object Int8Array]",_u="[object Int16Array]",vu="[object Int32Array]",bu="[object Uint8Array]",Cu="[object Uint8ClampedArray]",xu="[object Uint16Array]",wu="[object Uint32Array]",He={};He[pu]=He[mu]=He[yu]=He[_u]=He[vu]=He[bu]=He[Cu]=He[xu]=He[wu]=!0,He[eu]=He[tu]=He[hu]=He[nu]=He[gu]=He[ru]=He[iu]=He[ou]=He[au]=He[su]=He[lu]=He[cu]=He[uu]=He[fu]=He[du]=!1;function Lu(e){return J7(e)&&X7(e.length)&&!!He[q7(e)]}var $u=Lu;function Su(e){return function(n){return e(n)}}var M0=Su,si={exports:{}};si.exports,function(e,n){var i=rs,a=n&&!n.nodeType&&n,s=a&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===a,c=l&&i.process,f=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=f}(si,si.exports);var T0=si.exports,ku=$u,Au=M0,Cs=T0,xs=Cs&&Cs.isTypedArray,Mu=xs?Au(xs):ku,Tu=Mu,Ou=O7,Pu=K7,Iu=Er,Eu=_s,Du=vs,Ru=Tu,Bu=Object.prototype,Fu=Bu.hasOwnProperty;function zu(e,n){var i=Iu(e),a=!i&&Pu(e),s=!i&&!a&&Eu(e),l=!i&&!a&&!s&&Ru(e),c=i||a||s||l,f=c?Ou(e.length,String):[],d=f.length;for(var g in e)(n||Fu.call(e,g))&&!(c&&(g=="length"||s&&(g=="offset"||g=="parent")||l&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||Du(g,d)))&&f.push(g);return f}var ws=zu,Nu=Object.prototype;function Wu(e){var n=e&&e.constructor,i=typeof n=="function"&&n.prototype||Nu;return e===i}var O0=Wu;function Ku(e,n){return function(i){return e(n(i))}}var Ls=Ku,Uu=Ls,Zu=Uu(Object.keys,Object),Hu=Zu,Yu=O0,Gu=Hu,Vu=Object.prototype,Qu=Vu.hasOwnProperty;function ju(e){if(!Yu(e))return Gu(e);var n=[];for(var i in Object(e))Qu.call(e,i)&&i!="constructor"&&n.push(i);return n}var qu=ju,Xu=ls,Ju=bs;function e4(e){return e!=null&&Ju(e.length)&&!Xu(e)}var $s=e4,t4=ws,n4=qu,r4=$s;function i4(e){return r4(e)?t4(e):n4(e)}var P0=i4,o4=oi,a4=P0;function s4(e,n){return e&&o4(n,a4(n),e)}var l4=s4;function c4(e){var n=[];if(e!=null)for(var i in Object(e))n.push(i);return n}var u4=c4,f4=Mr,d4=O0,h4=u4,g4=Object.prototype,p4=g4.hasOwnProperty;function m4(e){if(!f4(e))return h4(e);var n=d4(e),i=[];for(var a in e)a=="constructor"&&(n||!p4.call(e,a))||i.push(a);return i}var y4=m4,_4=ws,v4=y4,b4=$s;function C4(e){return b4(e)?_4(e,!0):v4(e)}var I0=C4,x4=oi,w4=I0;function L4(e,n){return e&&x4(n,w4(n),e)}var $4=L4,li={exports:{}};li.exports,function(e,n){var i=Sn,a=n&&!n.nodeType&&n,s=a&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===a,c=l?i.Buffer:void 0,f=c?c.allocUnsafe:void 0;function d(g,_){if(_)return g.slice();var y=g.length,b=f?f(y):new g.constructor(y);return g.copy(b),b}e.exports=d}(li,li.exports);var S4=li.exports;function k4(e,n){var i=-1,a=e.length;for(n||(n=Array(a));++i<a;)n[i]=e[i];return n}var A4=k4;function M4(e,n){for(var i=-1,a=e==null?0:e.length,s=0,l=[];++i<a;){var c=e[i];n(c,i,e)&&(l[s++]=c)}return l}var T4=M4;function O4(){return[]}var Ss=O4,P4=T4,I4=Ss,E4=Object.prototype,D4=E4.propertyIsEnumerable,ks=Object.getOwnPropertySymbols,R4=ks?function(e){return e==null?[]:(e=Object(e),P4(ks(e),function(n){return D4.call(e,n)}))}:I4,E0=R4,B4=oi,F4=E0;function z4(e,n){return B4(e,F4(e),n)}var N4=z4;function W4(e,n){for(var i=-1,a=n.length,s=e.length;++i<a;)e[s+i]=n[i];return e}var As=W4,K4=Ls,U4=K4(Object.getPrototypeOf,Object),Ms=U4,Z4=As,H4=Ms,Y4=E0,G4=Ss,V4=Object.getOwnPropertySymbols,Q4=V4?function(e){for(var n=[];e;)Z4(n,Y4(e)),e=H4(e);return n}:G4,Ts=Q4,j4=oi,q4=Ts;function X4(e,n){return j4(e,q4(e),n)}var J4=X4,ef=As,tf=Er;function nf(e,n,i){var a=n(e);return tf(e)?a:ef(a,i(e))}var Os=nf,rf=Os,of=E0,af=P0;function sf(e){return rf(e,af,of)}var lf=sf,cf=Os,uf=Ts,ff=I0;function df(e){return cf(e,ff,uf)}var hf=df,gf=ur,pf=Sn,mf=gf(pf,"DataView"),yf=mf,_f=ur,vf=Sn,bf=_f(vf,"Promise"),Cf=bf,xf=ur,wf=Sn,Lf=xf(wf,"Set"),$f=Lf,Sf=ur,kf=Sn,Af=Sf(kf,"WeakMap"),Mf=Af,D0=yf,R0=k0,B0=Cf,F0=$f,z0=Mf,Ps=h1,Dr=us,Is="[object Map]",Tf="[object Object]",Es="[object Promise]",Ds="[object Set]",Rs="[object WeakMap]",Bs="[object DataView]",Of=Dr(D0),Pf=Dr(R0),If=Dr(B0),Ef=Dr(F0),Df=Dr(z0),fr=Ps;(D0&&fr(new D0(new ArrayBuffer(1)))!=Bs||R0&&fr(new R0)!=Is||B0&&fr(B0.resolve())!=Es||F0&&fr(new F0)!=Ds||z0&&fr(new z0)!=Rs)&&(fr=function(e){var n=Ps(e),i=n==Tf?e.constructor:void 0,a=i?Dr(i):"";if(a)switch(a){case Of:return Bs;case Pf:return Is;case If:return Es;case Ef:return Ds;case Df:return Rs}return n});var N0=fr,Rf=Object.prototype,Bf=Rf.hasOwnProperty;function Ff(e){var n=e.length,i=new e.constructor(n);return n&&typeof e[0]=="string"&&Bf.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var zf=Ff,Nf=Sn,Wf=Nf.Uint8Array,Kf=Wf,Fs=Kf;function Uf(e){var n=new e.constructor(e.byteLength);return new Fs(n).set(new Fs(e)),n}var W0=Uf,Zf=W0;function Hf(e,n){var i=n?Zf(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var Yf=Hf,Gf=/\w*$/;function Vf(e){var n=new e.constructor(e.source,Gf.exec(e));return n.lastIndex=e.lastIndex,n}var Qf=Vf,zs=ni,Ns=zs?zs.prototype:void 0,Ws=Ns?Ns.valueOf:void 0;function jf(e){return Ws?Object(Ws.call(e)):{}}var qf=jf,Xf=W0;function Jf(e,n){var i=n?Xf(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var ed=Jf,td=W0,nd=Yf,rd=Qf,id=qf,od=ed,ad="[object Boolean]",sd="[object Date]",ld="[object Map]",cd="[object Number]",ud="[object RegExp]",fd="[object Set]",dd="[object String]",hd="[object Symbol]",gd="[object ArrayBuffer]",pd="[object DataView]",md="[object Float32Array]",yd="[object Float64Array]",_d="[object Int8Array]",vd="[object Int16Array]",bd="[object Int32Array]",Cd="[object Uint8Array]",xd="[object Uint8ClampedArray]",wd="[object Uint16Array]",Ld="[object Uint32Array]";function $d(e,n,i){var a=e.constructor;switch(n){case gd:return td(e);case ad:case sd:return new a(+e);case pd:return nd(e,i);case md:case yd:case _d:case vd:case bd:case Cd:case xd:case wd:case Ld:return od(e,i);case ld:return new a;case cd:case dd:return new a(e);case ud:return rd(e);case fd:return new a;case hd:return id(e)}}var Sd=$d,kd=Mr,Ks=Object.create,Ad=function(){function e(){}return function(n){if(!kd(n))return{};if(Ks)return Ks(n);e.prototype=n;var i=new e;return e.prototype=void 0,i}}(),Md=Ad,Td=Md,Od=Ms,Pd=O0;function Id(e){return typeof e.constructor=="function"&&!Pd(e)?Td(Od(e)):{}}var Ed=Id,Dd=N0,Rd=Ir,Bd="[object Map]";function Fd(e){return Rd(e)&&Dd(e)==Bd}var zd=Fd,Nd=zd,Wd=M0,Us=T0,Zs=Us&&Us.isMap,Kd=Zs?Wd(Zs):Nd,Ud=Kd,Zd=N0,Hd=Ir,Yd="[object Set]";function Gd(e){return Hd(e)&&Zd(e)==Yd}var Vd=Gd,Qd=Vd,jd=M0,Hs=T0,Ys=Hs&&Hs.isSet,qd=Ys?jd(Ys):Qd,Xd=qd,Jd=p7,eh=y7,th=A0,nh=l4,rh=$4,ih=S4,oh=A4,ah=N4,sh=J4,lh=lf,ch=hf,uh=N0,fh=zf,dh=Sd,hh=Ed,gh=Er,ph=_s,mh=Ud,yh=Mr,_h=Xd,vh=P0,bh=I0,Ch=1,xh=2,wh=4,Gs="[object Arguments]",Lh="[object Array]",$h="[object Boolean]",Sh="[object Date]",kh="[object Error]",Vs="[object Function]",Ah="[object GeneratorFunction]",Mh="[object Map]",Th="[object Number]",Qs="[object Object]",Oh="[object RegExp]",Ph="[object Set]",Ih="[object String]",Eh="[object Symbol]",Dh="[object WeakMap]",Rh="[object ArrayBuffer]",Bh="[object DataView]",Fh="[object Float32Array]",zh="[object Float64Array]",Nh="[object Int8Array]",Wh="[object Int16Array]",Kh="[object Int32Array]",Uh="[object Uint8Array]",Zh="[object Uint8ClampedArray]",Hh="[object Uint16Array]",Yh="[object Uint32Array]",Ke={};Ke[Gs]=Ke[Lh]=Ke[Rh]=Ke[Bh]=Ke[$h]=Ke[Sh]=Ke[Fh]=Ke[zh]=Ke[Nh]=Ke[Wh]=Ke[Kh]=Ke[Mh]=Ke[Th]=Ke[Qs]=Ke[Oh]=Ke[Ph]=Ke[Ih]=Ke[Eh]=Ke[Uh]=Ke[Zh]=Ke[Hh]=Ke[Yh]=!0,Ke[kh]=Ke[Vs]=Ke[Dh]=!1;function ci(e,n,i,a,s,l){var c,f=n&Ch,d=n&xh,g=n&wh;if(i&&(c=s?i(e,a,s,l):i(e)),c!==void 0)return c;if(!yh(e))return e;var _=gh(e);if(_){if(c=fh(e),!f)return oh(e,c)}else{var y=uh(e),b=y==Vs||y==Ah;if(ph(e))return ih(e,f);if(y==Qs||y==Gs||b&&!s){if(c=d||b?{}:hh(e),!f)return d?sh(e,rh(c,e)):ah(e,nh(c,e))}else{if(!Ke[y])return s?e:{};c=dh(e,y,f)}}l||(l=new Jd);var k=l.get(e);if(k)return k;l.set(e,c),_h(e)?e.forEach(function(L){c.add(ci(L,n,i,L,e,l))}):mh(e)&&e.forEach(function(L,$){c.set($,ci(L,n,i,$,e,l))});var v=g?d?ch:lh:d?bh:vh,w=_?void 0:v(e);return eh(w||e,function(L,$){w&&($=L,L=e[$]),th(c,$,ci(L,n,i,$,e,l))}),c}var Gh=ci,Vh=Gh,Qh=1,jh=4;function qh(e){return Vh(e,Qh|jh)}var Xh=qh;const Jh=p0(Xh);var eg=h1,tg=Ir,ng="[object Symbol]";function rg(e){return typeof e=="symbol"||tg(e)&&eg(e)==ng}var K0=rg,ig=Er,og=K0,ag=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sg=/^\w*$/;function lg(e,n){if(ig(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||og(e)?!0:sg.test(e)||!ag.test(e)||n!=null&&e in Object(n)}var cg=lg,js=hs,ug="Expected a function";function U0(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(ug);var i=function(){var a=arguments,s=n?n.apply(this,a):a[0],l=i.cache;if(l.has(s))return l.get(s);var c=e.apply(this,a);return i.cache=l.set(s,c)||l,c};return i.cache=new(U0.Cache||js),i}U0.Cache=js;var fg=U0,dg=fg,hg=500;function gg(e){var n=dg(e,function(a){return i.size===hg&&i.clear(),a}),i=n.cache;return n}var pg=gg,mg=pg,yg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_g=/\\(\\)?/g,vg=mg(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(yg,function(i,a,s,l){n.push(s?l.replace(_g,"$1"):a||i)}),n}),bg=vg;function Cg(e,n){for(var i=-1,a=e==null?0:e.length,s=Array(a);++i<a;)s[i]=n(e[i],i,e);return s}var xg=Cg,qs=ni,wg=xg,Lg=Er,$g=K0,Sg=1/0,Xs=qs?qs.prototype:void 0,Js=Xs?Xs.toString:void 0;function e9(e){if(typeof e=="string")return e;if(Lg(e))return wg(e,e9)+"";if($g(e))return Js?Js.call(e):"";var n=e+"";return n=="0"&&1/e==-Sg?"-0":n}var kg=e9,Ag=kg;function Mg(e){return e==null?"":Ag(e)}var Tg=Mg,Og=Er,Pg=cg,Ig=bg,Eg=Tg;function Dg(e,n){return Og(e)?e:Pg(e,n)?[e]:Ig(Eg(e))}var Rg=Dg,Bg=K0,Fg=1/0;function zg(e){if(typeof e=="string"||Bg(e))return e;var n=e+"";return n=="0"&&1/e==-Fg?"-0":n}var Ng=zg,Wg=A0,Kg=Rg,Ug=vs,t9=Mr,Zg=Ng;function Hg(e,n,i,a){if(!t9(e))return e;n=Kg(n,e);for(var s=-1,l=n.length,c=l-1,f=e;f!=null&&++s<l;){var d=Zg(n[s]),g=i;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(s!=c){var _=f[d];g=a?a(_,d,f):void 0,g===void 0&&(g=t9(_)?_:Ug(n[s+1])?[]:{})}Wg(f,d,g),f=f[d]}return e}var Yg=Hg,Gg=Yg;function Vg(e,n,i){return e==null?e:Gg(e,n,i)}var Qg=Vg;const g1=p0(Qg);var jg=N("<button>");const qg=e=>(()=>{var n=jg();return $n(n,"click",e.onClick,!0),W(n,()=>e.children),Te(i=>{var a=e.style,s=`klinecharts-pro-button ${e.type??"confirm"} ${e.class??""}`;return i.e=qe(n,a,i.e),s!==i.t&&Zt(n,i.t=s),i},{e:void 0,t:void 0}),n})();zt(["click"]);var Xg=N('<svg viewBox="0 0 1024 1024"class=icon><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m-353.706667 567.04a42.496 42.496 0 0 1-60.16 0L243.626667 541.866667c-8.106667-8.106667-12.373333-18.773333-12.373334-29.866667s4.693333-22.186667 12.373334-29.866667a42.496 42.496 0 0 1 60.16 0L426.666667 604.586667l293.546666-293.546667a42.496 42.496 0 1 1 60.16 60.16l-323.413333 323.84z">'),Jg=N('<svg viewBox="0 0 1024 1024"class=icon><path d="M245.333333 128h533.333334A117.333333 117.333333 0 0 1 896 245.333333v533.333334A117.333333 117.333333 0 0 1 778.666667 896H245.333333A117.333333 117.333333 0 0 1 128 778.666667V245.333333A117.333333 117.333333 0 0 1 245.333333 128z m0 64c-29.44 0-53.333333 23.893333-53.333333 53.333333v533.333334c0 29.44 23.893333 53.333333 53.333333 53.333333h533.333334c29.44 0 53.333333-23.893333 53.333333-53.333333V245.333333c0-29.44-23.893333-53.333333-53.333333-53.333333H245.333333z">'),ep=N("<div>"),tp=N("<span class=label>");const np=()=>Xg(),rp=()=>Jg(),n9=e=>{const[n,i]=G(e.checked??!1);return Tt(()=>{"checked"in e&&i(e.checked)}),(()=>{var a=ep();return a.$$click=s=>{const l=!n();e.onChange&&e.onChange(l),i(l)},W(a,(()=>{var s=je(()=>!!n());return()=>s()?Z(np,{}):Z(rp,{})})(),null),W(a,(()=>{var s=je(()=>!!e.label);return()=>s()&&(()=>{var l=tp();return W(l,()=>e.label),l})()})(),null),Te(s=>{var l=e.style,c=`klinecharts-pro-checkbox ${n()&&"checked"||""} ${e.class||""}`;return s.e=qe(a,l,s.e),c!==s.t&&Zt(a,s.t=c),s},{e:void 0,t:void 0}),a})()};zt(["click"]);var ip=N("<div class=klinecharts-pro-loading><i class=circle1></i><i class=circle2></i><i class=circle3>");const r9=()=>ip();var op=N('<div class=klinecharts-pro-empty><svg class=icon viewBox="0 0 1024 1024"><path d="M855.6 427.2H168.5c-12.7 0-24.4 6.9-30.6 18L4.4 684.7C1.5 689.9 0 695.8 0 701.8v287.1c0 19.4 15.7 35.1 35.1 35.1H989c19.4 0 35.1-15.7 35.1-35.1V701.8c0-6-1.5-11.8-4.4-17.1L886.2 445.2c-6.2-11.1-17.9-18-30.6-18zM673.4 695.6c-16.5 0-30.8 11.5-34.3 27.7-12.7 58.5-64.8 102.3-127.2 102.3s-114.5-43.8-127.2-102.3c-3.5-16.1-17.8-27.7-34.3-27.7H119c-26.4 0-43.3-28-31.1-51.4l81.7-155.8c6.1-11.6 18-18.8 31.1-18.8h622.4c13 0 25 7.2 31.1 18.8l81.7 155.8c12.2 23.4-4.7 51.4-31.1 51.4H673.4zM819.9 209.5c-1-1.8-2.1-3.7-3.2-5.5-9.8-16.6-31.1-22.2-47.8-12.6L648.5 261c-17 9.8-22.7 31.6-12.6 48.4 0.9 1.4 1.7 2.9 2.5 4.4 9.5 17 31.2 22.8 48 13L807 257.3c16.7-9.7 22.4-31 12.9-47.8zM375.4 261.1L255 191.6c-16.7-9.6-38-4-47.8 12.6-1.1 1.8-2.1 3.6-3.2 5.5-9.5 16.8-3.8 38.1 12.9 47.8L337.3 327c16.9 9.7 38.6 4 48-13.1 0.8-1.5 1.7-2.9 2.5-4.4 10.2-16.8 4.5-38.6-12.4-48.4zM512 239.3h2.5c19.5 0.3 35.5-15.5 35.5-35.1v-139c0-19.3-15.6-34.9-34.8-35.1h-6.4C489.6 30.3 474 46 474 65.2v139c0 19.5 15.9 35.4 35.5 35.1h2.5z">');const ap=()=>op();var sp=N("<ul>"),lp=N("<li>");const ui=e=>(()=>{var n=sp();return W(n,Z(Oe,{get when(){return e.loading},get children(){return Z(r9,{})}}),null),W(n,Z(Oe,{get when(){var i;return je(()=>!e.loading&&!e.children)()&&!((i=e.dataSource)!=null&&i.length)},get children(){return Z(ap,{})}}),null),W(n,Z(Oe,{get when(){return e.children},get children(){return e.children}}),null),W(n,Z(Oe,{get when(){return!e.children},get children(){var i;return(i=e.dataSource)==null?void 0:i.map(a=>{var s;return((s=e.renderItem)==null?void 0:s.call(e,a))??lp()})}}),null),Te(i=>{var a=e.style,s=`klinecharts-pro-list ${e.class??""}`;return i.e=qe(n,a,i.e),s!==i.t&&Zt(n,i.t=s),i},{e:void 0,t:void 0}),n})(),Rr=[];let cp=0,fi=!1;function i9(e){if(e.key!=="Escape")return;const n=Rr[Rr.length-1];n&&(e.preventDefault(),e.stopPropagation(),n.close())}function up(){fi||(window.addEventListener("keydown",i9,!0),fi=!0)}function fp(){Rr.length===0&&fi&&(window.removeEventListener("keydown",i9,!0),fi=!1)}function dp(e){const n=cp++;return Rr.push({id:n,close:e}),up(),()=>{const i=Rr.findIndex(a=>a.id===n);i>=0&&Rr.splice(i,1),fp()}}var hp=N('<div class=klinecharts-pro-modal><div><div class=title-container><svg class=close-icon viewBox="0 0 1024 1024"><path d="M934.184927 199.723787 622.457206 511.452531l311.727721 311.703161c14.334473 14.229073 23.069415 33.951253 23.069415 55.743582 0 43.430138-35.178197 78.660524-78.735226 78.660524-21.664416 0-41.361013-8.865925-55.642275-23.069415L511.149121 622.838388 199.420377 934.490384c-14.204513 14.20349-33.901111 23.069415-55.642275 23.069415-43.482327 0-78.737272-35.230386-78.737272-78.660524 0-21.792329 8.864902-41.513486 23.094998-55.743582l311.677579-311.703161L88.135828 199.723787c-14.230096-14.255679-23.094998-33.92567-23.094998-55.642275 0-43.430138 35.254945-78.762855 78.737272-78.762855 21.741163 0 41.437761 8.813736 55.642275 23.069415l311.727721 311.727721L822.876842 88.389096c14.281261-14.255679 33.977859-23.069415 55.642275-23.069415 43.557028 0 78.735226 35.332716 78.735226 78.762855C957.254342 165.798117 948.5194 185.468109 934.184927 199.723787"></path></svg></div><div class=content-container>'),gp=N("<div class=button-container>");const kn=e=>{let n=null;x0(()=>{if(!e.onClose)return;const d=dp(()=>{var g;(g=e.onClose)==null||g.call(e)});Lr(d)});const i=d=>{var g;d.target===d.currentTarget&&((g=e.onClose)==null||g.call(e))},a={};e.width!=null&&(a.width=`${e.width}px`,a["max-width"]=`${e.width}px`),e.height!=null&&(a.height=`${e.height}px`,a["max-height"]=`${e.height}px`);const s=(d,g)=>{if(!d||!(d instanceof Element)||g===0)return!1;let _=d;for(;_;){const y=window.getComputedStyle(_);if((y.overflowY==="auto"||y.overflowY==="scroll"||y.overflowY==="overlay")&&_.scrollHeight>_.clientHeight)return g>0?_.scrollTop+_.clientHeight<_.scrollHeight:_.scrollTop>0;_=_.parentElement}return!1},l=d=>{d.stopPropagation(),s(d.target,d.deltaY)||d.preventDefault()},c=d=>{d.touches.length>0&&(n=d.touches[0].clientY)},f=d=>{if(d.stopPropagation(),d.touches.length===0||n==null){d.preventDefault();return}const g=d.touches[0].clientY,_=n-g;n=g,s(d.target,_)||d.preventDefault()};return(()=>{var d=hp(),g=d.firstChild,_=g.firstChild,y=_.firstChild,b=_.nextSibling;return d.$$click=i,g.$$touchmove=f,g.$$touchstart=c,g.addEventListener("wheel",l),W(_,()=>e.title,y),$n(y,"click",e.onClose,!0),W(b,()=>e.children),W(g,(()=>{var k=je(()=>!!(e.buttons&&e.buttons.length>0));return()=>k()&&(()=>{var v=gp();return W(v,()=>e.buttons.map(w=>Z(qg,Xa(w,{get children(){return w.children}})))),v})()})(),null),Te(k=>{var v=`inner${e.height!=null?" inner--fixed-height":""}`,w=a;return v!==k.e&&Zt(g,k.e=v),k.t=qe(g,w,k.t),k},{e:void 0,t:void 0}),d})()};zt(["click","touchstart","touchmove"]);var pp=N("<div tabindex=0><div class=selector-container><span class=value></span><i class=arrow>"),mp=N("<div class=drop-down-container><ul>"),yp=N("<li>");const p1=e=>{const[n,i]=G(!1);return(()=>{var a=pp(),s=a.firstChild,l=s.firstChild;return a.addEventListener("blur",c=>{i(!1)}),a.$$click=c=>{i(f=>!f)},W(l,()=>e.value),W(a,(()=>{var c=je(()=>!!(e.dataSource&&e.dataSource.length>0));return()=>c()&&(()=>{var f=mp(),d=f.firstChild;return W(d,()=>e.dataSource.map(g=>{const y=g[e.valueKey??"text"]??g;return(()=>{var b=yp();return b.$$click=k=>{var v;k.stopPropagation(),e.value!==y&&((v=e.onSelected)==null||v.call(e,g)),i(!1)},W(b,y),b})()})),f})()})(),null),Te(c=>{var f=e.style,d=`klinecharts-pro-select ${e.class??""} ${n()?"klinecharts-pro-select-show":""}`;return c.e=qe(a,f,c.e),d!==c.t&&Zt(a,c.t=d),c},{e:void 0,t:void 0}),a})()};zt(["click"]);var _p=N("<span class=prefix>"),vp=N("<span class=suffix>"),bp=N("<div><input id=myInput class=value>");const[Cp,kA]=G("klinecharts-pro-input klinecharts-pro-timeframe-modal-input"),o9=e=>{const n=Xa({min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER},e);let i;const[a,s]=G("normal"),l=c=>{c&&c.focus()};return Tt(()=>{l(document.querySelector("#myInput"))}),(()=>{var c=bp(),f=c.firstChild;c.$$click=()=>{i==null||i.focus()},W(c,Z(Oe,{get when(){return n.prefix},get children(){var g=_p();return W(g,()=>n.prefix),g}}),f),$n(f,"keydown",n.onKeyDown,!0),f.addEventListener("change",g=>{var y,b;const _=g.target.value;if("precision"in n){let k;const v=Math.max(0,Math.floor(n.precision));v<=0?k=new RegExp(/^[1-9]\d*$/):k=new RegExp("^\\d+\\.?\\d{0,"+v+"}$"),(_===""||k.test(_)&&+_>=n.min&&+_<=n.max)&&((y=n.onChange)==null||y.call(n,_===""?_:+_))}else(b=n.onChange)==null||b.call(n,_)}),f.addEventListener("blur",()=>{s("normal")}),f.addEventListener("focus",()=>{s("focus")});var d=i;return typeof d=="function"?X1(d,f):i=f,W(c,Z(Oe,{get when(){return n.suffix},get children(){var g=vp();return W(g,()=>n.suffix),g}}),null),Te(g=>{var _=n.style,y=`${Cp()}${n.class??""}`,b=a(),k=n.placeholder??"",v=n.focus===!0?n.focus:!1;return g.e=qe(c,_,g.e),y!==g.t&&Zt(c,g.t=y),b!==g.a&&ft(c,"data-status",g.a=b),k!==g.o&&ft(f,"placeholder",g.o=k),v!==g.i&&(f.autofocus=g.i=v),g},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Te(()=>f.value=n.value),c})()};zt(["click","keydown"]);var xp=N("<div><i class=thumb>");const m1=e=>(()=>{var n=xp();return n.$$click=i=>{e.onChange&&e.onChange()},Te(i=>{var a=e.style,s=`klinecharts-pro-switch ${e.open?"turn-on":"turn-off"} ${e.class??""}`;return i.e=qe(n,a,i.e),s!==i.t&&Zt(n,i.t=s),i},{e:void 0,t:void 0}),n})();zt(["click"]);const{min:wp,max:Lp}=Math,dr=(e,n=0,i=1)=>wp(Lp(n,e),i),Z0=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let n=0;n<=3;n++)n<3?((e[n]<0||e[n]>255)&&(e._clipped=!0),e[n]=dr(e[n],0,255)):n===3&&(e[n]=dr(e[n],0,1));return e},a9={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])a9[`[object ${e}]`]=e.toLowerCase();function Ce(e){return a9[Object.prototype.toString.call(e)]||"object"}const me=(e,n=null)=>e.length>=3?Array.prototype.slice.call(e):Ce(e[0])=="object"&&n?n.split("").filter(i=>e[0][i]!==void 0).map(i=>e[0][i]):e[0].slice(0),Br=e=>{if(e.length<2)return null;const n=e.length-1;return Ce(e[n])=="string"?e[n].toLowerCase():null},{PI:di,min:s9,max:l9}=Math,tn=e=>Math.round(e*100)/100,H0=e=>Math.round(e*100)/100,Rn=di*2,Y0=di/3,$p=di/180,Sp=180/di;function c9(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const he={format:{},autodetect:[]};let H=class{constructor(...n){const i=this;if(Ce(n[0])==="object"&&n[0].constructor&&n[0].constructor===this.constructor)return n[0];let a=Br(n),s=!1;if(!a){s=!0,he.sorted||(he.autodetect=he.autodetect.sort((l,c)=>c.p-l.p),he.sorted=!0);for(let l of he.autodetect)if(a=l.test(...n),a)break}if(he.format[a]){const l=he.format[a].apply(null,s?n:n.slice(0,-1));i._rgb=Z0(l)}else throw new Error("unknown format: "+n);i._rgb.length===3&&i._rgb.push(1)}toString(){return Ce(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const kp="3.2.0",de=(...e)=>new H(...e);de.version=kp;const Fr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",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",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Ap=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Mp=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,u9=e=>{if(e.match(Ap)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const n=parseInt(e,16),i=n>>16,a=n>>8&255,s=n&255;return[i,a,s,1]}if(e.match(Mp)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const n=parseInt(e,16),i=n>>24&255,a=n>>16&255,s=n>>8&255,l=Math.round((n&255)/255*100)/100;return[i,a,s,l]}throw new Error(`unknown hex color: ${e}`)},{round:hi}=Math,f9=(...e)=>{let[n,i,a,s]=me(e,"rgba"),l=Br(e)||"auto";s===void 0&&(s=1),l==="auto"&&(l=s<1?"rgba":"rgb"),n=hi(n),i=hi(i),a=hi(a);let f="000000"+(n<<16|i<<8|a).toString(16);f=f.substr(f.length-6);let d="0"+hi(s*255).toString(16);switch(d=d.substr(d.length-2),l.toLowerCase()){case"rgba":return`#${f}${d}`;case"argb":return`#${d}${f}`;default:return`#${f}`}};H.prototype.name=function(){const e=f9(this._rgb,"rgb");for(let n of Object.keys(Fr))if(Fr[n]===e)return n.toLowerCase();return e},he.format.named=e=>{if(e=e.toLowerCase(),Fr[e])return u9(Fr[e]);throw new Error("unknown color name: "+e)},he.autodetect.push({p:5,test:(e,...n)=>{if(!n.length&&Ce(e)==="string"&&Fr[e.toLowerCase()])return"named"}}),H.prototype.alpha=function(e,n=!1){return e!==void 0&&Ce(e)==="number"?n?(this._rgb[3]=e,this):new H([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},H.prototype.clipped=function(){return this._rgb._clipped||!1};const An={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},Tp=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function Bn(e){const n=Tp.get(String(e).toLowerCase());if(!n)throw new Error("unknown Lab illuminant "+e);An.labWhitePoint=e,An.Xn=n[0],An.Zn=n[1]}function y1(){return An.labWhitePoint}const G0=(...e)=>{e=me(e,"lab");const[n,i,a]=e,[s,l,c]=Op(n,i,a),[f,d,g]=d9(s,l,c);return[f,d,g,e.length>3?e[3]:1]},Op=(e,n,i)=>{const{kE:a,kK:s,kKE:l,Xn:c,Yn:f,Zn:d}=An,g=(e+16)/116,_=.002*n+g,y=g-.005*i,b=_*_*_,k=y*y*y,v=b>a?b:(116*_-16)/s,w=e>l?Math.pow((e+16)/116,3):e/s,L=k>a?k:(116*y-16)/s,$=v*c,T=w*f,P=L*d;return[$,T,P]},V0=e=>{const n=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*n},d9=(e,n,i)=>{const{MtxAdaptMa:a,MtxAdaptMaI:s,MtxXYZ2RGB:l,RefWhiteRGB:c,Xn:f,Yn:d,Zn:g}=An,_=f*a.m00+d*a.m10+g*a.m20,y=f*a.m01+d*a.m11+g*a.m21,b=f*a.m02+d*a.m12+g*a.m22,k=c.X*a.m00+c.Y*a.m10+c.Z*a.m20,v=c.X*a.m01+c.Y*a.m11+c.Z*a.m21,w=c.X*a.m02+c.Y*a.m12+c.Z*a.m22,L=(e*a.m00+n*a.m10+i*a.m20)*(k/_),$=(e*a.m01+n*a.m11+i*a.m21)*(v/y),T=(e*a.m02+n*a.m12+i*a.m22)*(w/b),P=L*s.m00+$*s.m10+T*s.m20,D=L*s.m01+$*s.m11+T*s.m21,U=L*s.m02+$*s.m12+T*s.m22,X=V0(P*l.m00+D*l.m10+U*l.m20),Y=V0(P*l.m01+D*l.m11+U*l.m21),E=V0(P*l.m02+D*l.m12+U*l.m22);return[X*255,Y*255,E*255]},Q0=(...e)=>{const[n,i,a,...s]=me(e,"rgb"),[l,c,f]=h9(n,i,a),[d,g,_]=Pp(l,c,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]};function Pp(e,n,i){const{Xn:a,Yn:s,Zn:l,kE:c,kK:f}=An,d=e/a,g=n/s,_=i/l,y=d>c?Math.pow(d,1/3):(f*d+16)/116,b=g>c?Math.pow(g,1/3):(f*g+16)/116,k=_>c?Math.pow(_,1/3):(f*_+16)/116;return[116*b-16,500*(y-b),200*(b-k)]}function j0(e){const n=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*n}const h9=(e,n,i)=>{e=j0(e/255),n=j0(n/255),i=j0(i/255);const{MtxRGB2XYZ:a,MtxAdaptMa:s,MtxAdaptMaI:l,Xn:c,Yn:f,Zn:d,As:g,Bs:_,Cs:y}=An;let b=e*a.m00+n*a.m10+i*a.m20,k=e*a.m01+n*a.m11+i*a.m21,v=e*a.m02+n*a.m12+i*a.m22;const w=c*s.m00+f*s.m10+d*s.m20,L=c*s.m01+f*s.m11+d*s.m21,$=c*s.m02+f*s.m12+d*s.m22;let T=b*s.m00+k*s.m10+v*s.m20,P=b*s.m01+k*s.m11+v*s.m21,D=b*s.m02+k*s.m12+v*s.m22;return T*=w/g,P*=L/_,D*=$/y,b=T*l.m00+P*l.m10+D*l.m20,k=T*l.m01+P*l.m11+D*l.m21,v=T*l.m02+P*l.m12+D*l.m22,[b,k,v]};H.prototype.lab=function(){return Q0(this._rgb)},Object.assign(de,{lab:(...e)=>new H(...e,"lab"),getLabWhitePoint:y1,setLabWhitePoint:Bn}),he.format.lab=G0,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"lab"),Ce(e)==="array"&&e.length===3)return"lab"}}),H.prototype.darken=function(e=1){const n=this,i=n.lab();return i[0]-=An.Kn*e,new H(i,"lab").alpha(n.alpha(),!0)},H.prototype.brighten=function(e=1){return this.darken(-e)},H.prototype.darker=H.prototype.darken,H.prototype.brighter=H.prototype.brighten,H.prototype.get=function(e){const[n,i]=e.split("."),a=this[n]();if(i){const s=n.indexOf(i)-(n.substr(0,2)==="ok"?2:0);if(s>-1)return a[s];throw new Error(`unknown channel ${i} in mode ${n}`)}else return a};const{pow:Ip}=Math,Ep=1e-7,Dp=20;H.prototype.luminance=function(e,n="rgb"){if(e!==void 0&&Ce(e)==="number"){if(e===0)return new H([0,0,0,this._rgb[3]],"rgb");if(e===1)return new H([255,255,255,this._rgb[3]],"rgb");let i=this.luminance(),a=Dp;const s=(c,f)=>{const d=c.interpolate(f,.5,n),g=d.luminance();return Math.abs(e-g)<Ep||!a--?d:g>e?s(c,d):s(d,f)},l=(i>e?s(new H([0,0,0]),this):s(this,new H([255,255,255]))).rgb();return new H([...l,this._rgb[3]])}return Rp(...this._rgb.slice(0,3))};const Rp=(e,n,i)=>(e=q0(e),n=q0(n),i=q0(i),.2126*e+.7152*n+.0722*i),q0=e=>(e/=255,e<=.03928?e/12.92:Ip((e+.055)/1.055,2.4)),xt={},zr=(e,n,i=.5,...a)=>{let s=a[0]||"lrgb";if(!xt[s]&&!a.length&&(s=Object.keys(xt)[0]),!xt[s])throw new Error(`interpolation mode ${s} is not defined`);return Ce(e)!=="object"&&(e=new H(e)),Ce(n)!=="object"&&(n=new H(n)),xt[s](e,n,i).alpha(e.alpha()+i*(n.alpha()-e.alpha()))};H.prototype.mix=H.prototype.interpolate=function(e,n=.5,...i){return zr(this,e,n,...i)},H.prototype.premultiply=function(e=!1){const n=this._rgb,i=n[3];return e?(this._rgb=[n[0]*i,n[1]*i,n[2]*i,i],this):new H([n[0]*i,n[1]*i,n[2]*i,i],"rgb")};const{sin:Bp,cos:Fp}=Math,g9=(...e)=>{let[n,i,a]=me(e,"lch");return isNaN(a)&&(a=0),a=a*$p,[n,Fp(a)*i,Bp(a)*i]},X0=(...e)=>{e=me(e,"lch");const[n,i,a]=e,[s,l,c]=g9(n,i,a),[f,d,g]=G0(s,l,c);return[f,d,g,e.length>3?e[3]:1]},zp=(...e)=>{const n=c9(me(e,"hcl"));return X0(...n)},{sqrt:Np,atan2:Wp,round:Kp}=Math,p9=(...e)=>{const[n,i,a]=me(e,"lab"),s=Np(i*i+a*a);let l=(Wp(a,i)*Sp+360)%360;return Kp(s*1e4)===0&&(l=Number.NaN),[n,s,l]},J0=(...e)=>{const[n,i,a,...s]=me(e,"rgb"),[l,c,f]=Q0(n,i,a),[d,g,_]=p9(l,c,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]};H.prototype.lch=function(){return J0(this._rgb)},H.prototype.hcl=function(){return c9(J0(this._rgb))},Object.assign(de,{lch:(...e)=>new H(...e,"lch"),hcl:(...e)=>new H(...e,"hcl")}),he.format.lch=X0,he.format.hcl=zp,["lch","hcl"].forEach(e=>he.autodetect.push({p:2,test:(...n)=>{if(n=me(n,e),Ce(n)==="array"&&n.length===3)return e}})),H.prototype.saturate=function(e=1){const n=this,i=n.lch();return i[1]+=An.Kn*e,i[1]<0&&(i[1]=0),new H(i,"lch").alpha(n.alpha(),!0)},H.prototype.desaturate=function(e=1){return this.saturate(-e)},H.prototype.set=function(e,n,i=!1){const[a,s]=e.split("."),l=this[a]();if(s){const c=a.indexOf(s)-(a.substr(0,2)==="ok"?2:0);if(c>-1){if(Ce(n)=="string")switch(n.charAt(0)){case"+":l[c]+=+n;break;case"-":l[c]+=+n;break;case"*":l[c]*=+n.substr(1);break;case"/":l[c]/=+n.substr(1);break;default:l[c]=+n}else if(Ce(n)==="number")l[c]=n;else throw new Error("unsupported value for Color.set");const f=new H(l,a);return i?(this._rgb=f._rgb,this):f}throw new Error(`unknown channel ${s} in mode ${a}`)}else return l},H.prototype.tint=function(e=.5,...n){return zr(this,"white",e,...n)},H.prototype.shade=function(e=.5,...n){return zr(this,"black",e,...n)};const Up=(e,n,i)=>{const a=e._rgb,s=n._rgb;return new H(a[0]+i*(s[0]-a[0]),a[1]+i*(s[1]-a[1]),a[2]+i*(s[2]-a[2]),"rgb")};xt.rgb=Up;const{sqrt:eo,pow:Nr}=Math,Zp=(e,n,i)=>{const[a,s,l]=e._rgb,[c,f,d]=n._rgb;return new H(eo(Nr(a,2)*(1-i)+Nr(c,2)*i),eo(Nr(s,2)*(1-i)+Nr(f,2)*i),eo(Nr(l,2)*(1-i)+Nr(d,2)*i),"rgb")};xt.lrgb=Zp;const Hp=(e,n,i)=>{const a=e.lab(),s=n.lab();return new H(a[0]+i*(s[0]-a[0]),a[1]+i*(s[1]-a[1]),a[2]+i*(s[2]-a[2]),"lab")};xt.lab=Hp;const Wr=(e,n,i,a)=>{let s,l;a==="hsl"?(s=e.hsl(),l=n.hsl()):a==="hsv"?(s=e.hsv(),l=n.hsv()):a==="hcg"?(s=e.hcg(),l=n.hcg()):a==="hsi"?(s=e.hsi(),l=n.hsi()):a==="lch"||a==="hcl"?(a="hcl",s=e.hcl(),l=n.hcl()):a==="oklch"&&(s=e.oklch().reverse(),l=n.oklch().reverse());let c,f,d,g,_,y;(a.substr(0,1)==="h"||a==="oklch")&&([c,d,_]=s,[f,g,y]=l);let b,k,v,w;return!isNaN(c)&&!isNaN(f)?(f>c&&f-c>180?w=f-(c+360):f<c&&c-f>180?w=f+360-c:w=f-c,k=c+i*w):isNaN(c)?isNaN(f)?k=Number.NaN:(k=f,(_==1||_==0)&&a!="hsv"&&(b=g)):(k=c,(y==1||y==0)&&a!="hsv"&&(b=d)),b===void 0&&(b=d+i*(g-d)),v=_+i*(y-_),a==="oklch"?new H([v,b,k],a):new H([k,b,v],a)},m9=(e,n,i)=>Wr(e,n,i,"lch");xt.lch=m9,xt.hcl=m9;const Yp=e=>{if(Ce(e)=="number"&&e>=0&&e<=16777215){const n=e>>16,i=e>>8&255,a=e&255;return[n,i,a,1]}throw new Error("unknown num color: "+e)},Gp=(...e)=>{const[n,i,a]=me(e,"rgb");return(n<<16)+(i<<8)+a};H.prototype.num=function(){return Gp(this._rgb)},Object.assign(de,{num:(...e)=>new H(...e,"num")}),he.format.num=Yp,he.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&Ce(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const Vp=(e,n,i)=>{const a=e.num(),s=n.num();return new H(a+i*(s-a),"num")};xt.num=Vp;const{floor:Qp}=Math,jp=(...e)=>{e=me(e,"hcg");let[n,i,a]=e,s,l,c;a=a*255;const f=i*255;if(i===0)s=l=c=a;else{n===360&&(n=0),n>360&&(n-=360),n<0&&(n+=360),n/=60;const d=Qp(n),g=n-d,_=a*(1-i),y=_+f*(1-g),b=_+f*g,k=_+f;switch(d){case 0:[s,l,c]=[k,b,_];break;case 1:[s,l,c]=[y,k,_];break;case 2:[s,l,c]=[_,k,b];break;case 3:[s,l,c]=[_,y,k];break;case 4:[s,l,c]=[b,_,k];break;case 5:[s,l,c]=[k,_,y];break}}return[s,l,c,e.length>3?e[3]:1]},qp=(...e)=>{const[n,i,a]=me(e,"rgb"),s=s9(n,i,a),l=l9(n,i,a),c=l-s,f=c*100/255,d=s/(255-c)*100;let g;return c===0?g=Number.NaN:(n===l&&(g=(i-a)/c),i===l&&(g=2+(a-n)/c),a===l&&(g=4+(n-i)/c),g*=60,g<0&&(g+=360)),[g,f,d]};H.prototype.hcg=function(){return qp(this._rgb)};const Xp=(...e)=>new H(...e,"hcg");de.hcg=Xp,he.format.hcg=jp,he.autodetect.push({p:1,test:(...e)=>{if(e=me(e,"hcg"),Ce(e)==="array"&&e.length===3)return"hcg"}});const Jp=(e,n,i)=>Wr(e,n,i,"hcg");xt.hcg=Jp;const{cos:Kr}=Math,em=(...e)=>{e=me(e,"hsi");let[n,i,a]=e,s,l,c;return isNaN(n)&&(n=0),isNaN(i)&&(i=0),n>360&&(n-=360),n<0&&(n+=360),n/=360,n<1/3?(c=(1-i)/3,s=(1+i*Kr(Rn*n)/Kr(Y0-Rn*n))/3,l=1-(c+s)):n<2/3?(n-=1/3,s=(1-i)/3,l=(1+i*Kr(Rn*n)/Kr(Y0-Rn*n))/3,c=1-(s+l)):(n-=2/3,l=(1-i)/3,c=(1+i*Kr(Rn*n)/Kr(Y0-Rn*n))/3,s=1-(l+c)),s=dr(a*s*3),l=dr(a*l*3),c=dr(a*c*3),[s*255,l*255,c*255,e.length>3?e[3]:1]},{min:tm,sqrt:nm,acos:rm}=Math,im=(...e)=>{let[n,i,a]=me(e,"rgb");n/=255,i/=255,a/=255;let s;const l=tm(n,i,a),c=(n+i+a)/3,f=c>0?1-l/c:0;return f===0?s=NaN:(s=(n-i+(n-a))/2,s/=nm((n-i)*(n-i)+(n-a)*(i-a)),s=rm(s),a>i&&(s=Rn-s),s/=Rn),[s*360,f,c]};H.prototype.hsi=function(){return im(this._rgb)};const om=(...e)=>new H(...e,"hsi");de.hsi=om,he.format.hsi=em,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsi"),Ce(e)==="array"&&e.length===3)return"hsi"}});const am=(e,n,i)=>Wr(e,n,i,"hsi");xt.hsi=am;const to=(...e)=>{e=me(e,"hsl");const[n,i,a]=e;let s,l,c;if(i===0)s=l=c=a*255;else{const f=[0,0,0],d=[0,0,0],g=a<.5?a*(1+i):a+i-a*i,_=2*a-g,y=n/360;f[0]=y+1/3,f[1]=y,f[2]=y-1/3;for(let b=0;b<3;b++)f[b]<0&&(f[b]+=1),f[b]>1&&(f[b]-=1),6*f[b]<1?d[b]=_+(g-_)*6*f[b]:2*f[b]<1?d[b]=g:3*f[b]<2?d[b]=_+(g-_)*(2/3-f[b])*6:d[b]=_;[s,l,c]=[d[0]*255,d[1]*255,d[2]*255]}return e.length>3?[s,l,c,e[3]]:[s,l,c,1]},y9=(...e)=>{e=me(e,"rgba");let[n,i,a]=e;n/=255,i/=255,a/=255;const s=s9(n,i,a),l=l9(n,i,a),c=(l+s)/2;let f,d;return l===s?(f=0,d=Number.NaN):f=c<.5?(l-s)/(l+s):(l-s)/(2-l-s),n==l?d=(i-a)/(l-s):i==l?d=2+(a-n)/(l-s):a==l&&(d=4+(n-i)/(l-s)),d*=60,d<0&&(d+=360),e.length>3&&e[3]!==void 0?[d,f,c,e[3]]:[d,f,c]};H.prototype.hsl=function(){return y9(this._rgb)};const sm=(...e)=>new H(...e,"hsl");de.hsl=sm,he.format.hsl=to,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsl"),Ce(e)==="array"&&e.length===3)return"hsl"}});const lm=(e,n,i)=>Wr(e,n,i,"hsl");xt.hsl=lm;const{floor:cm}=Math,um=(...e)=>{e=me(e,"hsv");let[n,i,a]=e,s,l,c;if(a*=255,i===0)s=l=c=a;else{n===360&&(n=0),n>360&&(n-=360),n<0&&(n+=360),n/=60;const f=cm(n),d=n-f,g=a*(1-i),_=a*(1-i*d),y=a*(1-i*(1-d));switch(f){case 0:[s,l,c]=[a,y,g];break;case 1:[s,l,c]=[_,a,g];break;case 2:[s,l,c]=[g,a,y];break;case 3:[s,l,c]=[g,_,a];break;case 4:[s,l,c]=[y,g,a];break;case 5:[s,l,c]=[a,g,_];break}}return[s,l,c,e.length>3?e[3]:1]},{min:fm,max:dm}=Math,hm=(...e)=>{e=me(e,"rgb");let[n,i,a]=e;const s=fm(n,i,a),l=dm(n,i,a),c=l-s;let f,d,g;return g=l/255,l===0?(f=Number.NaN,d=0):(d=c/l,n===l&&(f=(i-a)/c),i===l&&(f=2+(a-n)/c),a===l&&(f=4+(n-i)/c),f*=60,f<0&&(f+=360)),[f,d,g]};H.prototype.hsv=function(){return hm(this._rgb)};const gm=(...e)=>new H(...e,"hsv");de.hsv=gm,he.format.hsv=um,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsv"),Ce(e)==="array"&&e.length===3)return"hsv"}});const pm=(e,n,i)=>Wr(e,n,i,"hsv");xt.hsv=pm;function gi(e,n){let i=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(n[0])||(n=n.map(c=>[c]));let a=n[0].length,s=n[0].map((c,f)=>n.map(d=>d[f])),l=e.map(c=>s.map(f=>Array.isArray(c)?c.reduce((d,g,_)=>d+g*(f[_]||0),0):f.reduce((d,g)=>d+g*c,0)));return i===1&&(l=l[0]),a===1?l.map(c=>c[0]):l}const no=(...e)=>{e=me(e,"lab");const[n,i,a,...s]=e,[l,c,f]=mm([n,i,a]),[d,g,_]=d9(l,c,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]};function mm(e){var n=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],i=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],a=gi(i,e);return gi(n,a.map(s=>s**3))}const ro=(...e)=>{const[n,i,a,...s]=me(e,"rgb"),l=h9(n,i,a);return[...ym(l),...s.length>0&&s[0]<1?[s[0]]:[]]};function ym(e){const n=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],i=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],a=gi(n,e);return gi(i,a.map(s=>Math.cbrt(s)))}H.prototype.oklab=function(){return ro(this._rgb)},Object.assign(de,{oklab:(...e)=>new H(...e,"oklab")}),he.format.oklab=no,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"oklab"),Ce(e)==="array"&&e.length===3)return"oklab"}});const _m=(e,n,i)=>{const a=e.oklab(),s=n.oklab();return new H(a[0]+i*(s[0]-a[0]),a[1]+i*(s[1]-a[1]),a[2]+i*(s[2]-a[2]),"oklab")};xt.oklab=_m;const vm=(e,n,i)=>Wr(e,n,i,"oklch");xt.oklch=vm;const{pow:io,sqrt:oo,PI:ao,cos:_9,sin:v9,atan2:bm}=Math,Cm=(e,n="lrgb",i=null)=>{const a=e.length;i||(i=Array.from(new Array(a)).map(()=>1));const s=a/i.reduce(function(y,b){return y+b});if(i.forEach((y,b)=>{i[b]*=s}),e=e.map(y=>new H(y)),n==="lrgb")return xm(e,i);const l=e.shift(),c=l.get(n),f=[];let d=0,g=0;for(let y=0;y<c.length;y++)if(c[y]=(c[y]||0)*i[0],f.push(isNaN(c[y])?0:i[0]),n.charAt(y)==="h"&&!isNaN(c[y])){const b=c[y]/180*ao;d+=_9(b)*i[0],g+=v9(b)*i[0]}let _=l.alpha()*i[0];e.forEach((y,b)=>{const k=y.get(n);_+=y.alpha()*i[b+1];for(let v=0;v<c.length;v++)if(!isNaN(k[v]))if(f[v]+=i[b+1],n.charAt(v)==="h"){const w=k[v]/180*ao;d+=_9(w)*i[b+1],g+=v9(w)*i[b+1]}else c[v]+=k[v]*i[b+1]});for(let y=0;y<c.length;y++)if(n.charAt(y)==="h"){let b=bm(g/f[y],d/f[y])/ao*180;for(;b<0;)b+=360;for(;b>=360;)b-=360;c[y]=b}else c[y]=c[y]/f[y];return _/=a,new H(c,n).alpha(_>.99999?1:_,!0)},xm=(e,n)=>{const i=e.length,a=[0,0,0,0];for(let s=0;s<e.length;s++){const l=e[s],c=n[s]/i,f=l._rgb;a[0]+=io(f[0],2)*c,a[1]+=io(f[1],2)*c,a[2]+=io(f[2],2)*c,a[3]+=f[3]*c}return a[0]=oo(a[0]),a[1]=oo(a[1]),a[2]=oo(a[2]),a[3]>.9999999&&(a[3]=1),new H(Z0(a))},{pow:wm}=Math;function pi(e){let n="rgb",i=de("#ccc"),a=0,s=[0,1],l=[0,1],c=[],f=[0,0],d=!1,g=[],_=!1,y=0,b=1,k=!1,v={},w=!0,L=1;const $=function(E){if(E=E||["#fff","#000"],E&&Ce(E)==="string"&&de.brewer&&de.brewer[E.toLowerCase()]&&(E=de.brewer[E.toLowerCase()]),Ce(E)==="array"){E.length===1&&(E=[E[0],E[0]]),E=E.slice(0);for(let z=0;z<E.length;z++)E[z]=de(E[z]);c.length=0;for(let z=0;z<E.length;z++)c.push(z/(E.length-1))}return X(),g=E},T=function(E){if(d!=null){const z=d.length-1;let V=0;for(;V<z&&E>=d[V];)V++;return V-1}return 0};let P=E=>E,D=E=>E;const U=function(E,z){let V,Q;if(z==null&&(z=!1),isNaN(E)||E===null)return i;z?Q=E:d&&d.length>2?Q=T(E)/(d.length-2):b!==y?Q=(E-y)/(b-y):Q=1,Q=D(Q),z||(Q=P(Q)),L!==1&&(Q=wm(Q,L)),Q=f[0]+Q*(1-f[0]-f[1]),Q=dr(Q,0,1);const te=Math.floor(Q*1e4);if(w&&v[te])V=v[te];else{if(Ce(g)==="array")for(let ee=0;ee<c.length;ee++){const Pe=c[ee];if(Q<=Pe){V=g[ee];break}if(Q>=Pe&&ee===c.length-1){V=g[ee];break}if(Q>Pe&&Q<c[ee+1]){Q=(Q-Pe)/(c[ee+1]-Pe),V=de.interpolate(g[ee],g[ee+1],Q,n);break}}else Ce(g)==="function"&&(V=g(Q));w&&(v[te]=V)}return V};var X=()=>v={};$(e);const Y=function(E){const z=de(U(E));return _&&z[_]?z[_]():z};return Y.classes=function(E){if(E!=null){if(Ce(E)==="array")d=E,s=[E[0],E[E.length-1]];else{const z=de.analyze(s);E===0?d=[z.min,z.max]:d=de.limits(z,"e",E)}return Y}return d},Y.domain=function(E){if(!arguments.length)return l;l=E.slice(0),y=E[0],b=E[E.length-1],c=[];const z=g.length;if(E.length===z&&y!==b)for(let V of Array.from(E))c.push((V-y)/(b-y));else{for(let V=0;V<z;V++)c.push(V/(z-1));if(E.length>2){const V=E.map((te,ee)=>ee/(E.length-1)),Q=E.map(te=>(te-y)/(b-y));Q.every((te,ee)=>V[ee]===te)||(D=te=>{if(te<=0||te>=1)return te;let ee=0;for(;te>=Q[ee+1];)ee++;const Pe=(te-Q[ee])/(Q[ee+1]-Q[ee]);return V[ee]+Pe*(V[ee+1]-V[ee])})}}return s=[y,b],Y},Y.mode=function(E){return arguments.length?(n=E,X(),Y):n},Y.range=function(E,z){return $(E),Y},Y.out=function(E){return _=E,Y},Y.spread=function(E){return arguments.length?(a=E,Y):a},Y.correctLightness=function(E){return E==null&&(E=!0),k=E,X(),k?P=function(z){const V=U(0,!0).lab()[0],Q=U(1,!0).lab()[0],te=V>Q;let ee=U(z,!0).lab()[0];const Pe=V+(Q-V)*z;let oe=ee-Pe,_t=0,wt=1,at=20;for(;Math.abs(oe)>.01&&at-- >0;)(function(){return te&&(oe*=-1),oe<0?(_t=z,z+=(wt-z)*.5):(wt=z,z+=(_t-z)*.5),ee=U(z,!0).lab()[0],oe=ee-Pe})();return z}:P=z=>z,Y},Y.padding=function(E){return E!=null?(Ce(E)==="number"&&(E=[E,E]),f=E,Y):f},Y.colors=function(E,z){arguments.length<2&&(z="hex");let V=[];if(arguments.length===0)V=g.slice(0);else if(E===1)V=[Y(.5)];else if(E>1){const Q=s[0],te=s[1]-Q;V=Lm(0,E,!1).map(ee=>Y(Q+ee/(E-1)*te))}else{e=[];let Q=[];if(d&&d.length>2)for(let te=1,ee=d.length,Pe=1<=ee;Pe?te<ee:te>ee;Pe?te++:te--)Q.push((d[te-1]+d[te])*.5);else Q=s;V=Q.map(te=>Y(te))}return de[z]&&(V=V.map(Q=>Q[z]())),V},Y.cache=function(E){return E!=null?(w=E,Y):w},Y.gamma=function(E){return E!=null?(L=E,Y):L},Y.nodata=function(E){return E!=null?(i=de(E),Y):i},Y}function Lm(e,n,i){let a=[],s=e<n,l=i?s?n+1:n-1:n;for(let c=e;s?c<l:c>l;s?c++:c--)a.push(c);return a}const $m=function(e){let n=[1,1];for(let i=1;i<e;i++){let a=[1];for(let s=1;s<=n.length;s++)a[s]=(n[s]||0)+n[s-1];n=a}return n},Sm=function(e){let n,i,a,s;if(e=e.map(l=>new H(l)),e.length===2)[i,a]=e.map(l=>l.lab()),n=function(l){const c=[0,1,2].map(f=>i[f]+l*(a[f]-i[f]));return new H(c,"lab")};else if(e.length===3)[i,a,s]=e.map(l=>l.lab()),n=function(l){const c=[0,1,2].map(f=>(1-l)*(1-l)*i[f]+2*(1-l)*l*a[f]+l*l*s[f]);return new H(c,"lab")};else if(e.length===4){let l;[i,a,s,l]=e.map(c=>c.lab()),n=function(c){const f=[0,1,2].map(d=>(1-c)*(1-c)*(1-c)*i[d]+3*(1-c)*(1-c)*c*a[d]+3*(1-c)*c*c*s[d]+c*c*c*l[d]);return new H(f,"lab")}}else if(e.length>=5){let l,c,f;l=e.map(d=>d.lab()),f=e.length-1,c=$m(f),n=function(d){const g=1-d,_=[0,1,2].map(y=>l.reduce((b,k,v)=>b+c[v]*g**(f-v)*d**v*k[y],0));return new H(_,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return n},km=e=>{const n=Sm(e);return n.scale=()=>pi(n),n},{round:b9}=Math;H.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(b9)},H.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((n,i)=>i<3?e===!1?n:b9(n):n)},Object.assign(de,{rgb:(...e)=>new H(...e,"rgb")}),he.format.rgb=(...e)=>{const n=me(e,"rgba");return n[3]===void 0&&(n[3]=1),n},he.autodetect.push({p:3,test:(...e)=>{if(e=me(e,"rgba"),Ce(e)==="array"&&(e.length===3||e.length===4&&Ce(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const mn=(e,n,i)=>{if(!mn[i])throw new Error("unknown blend mode "+i);return mn[i](e,n)},jn=e=>(n,i)=>{const a=de(i).rgb(),s=de(n).rgb();return de.rgb(e(a,s))},qn=e=>(n,i)=>{const a=[];return a[0]=e(n[0],i[0]),a[1]=e(n[1],i[1]),a[2]=e(n[2],i[2]),a},Am=e=>e,Mm=(e,n)=>e*n/255,Tm=(e,n)=>e>n?n:e,Om=(e,n)=>e>n?e:n,Pm=(e,n)=>255*(1-(1-e/255)*(1-n/255)),Im=(e,n)=>n<128?2*e*n/255:255*(1-2*(1-e/255)*(1-n/255)),Em=(e,n)=>255*(1-(1-n/255)/(e/255)),Dm=(e,n)=>e===255?255:(e=255*(n/255)/(1-e/255),e>255?255:e);mn.normal=jn(qn(Am)),mn.multiply=jn(qn(Mm)),mn.screen=jn(qn(Pm)),mn.overlay=jn(qn(Im)),mn.darken=jn(qn(Tm)),mn.lighten=jn(qn(Om)),mn.dodge=jn(qn(Dm)),mn.burn=jn(qn(Em));const{pow:Rm,sin:Bm,cos:Fm}=Math;function zm(e=300,n=-1.5,i=1,a=1,s=[0,1]){let l=0,c;Ce(s)==="array"?c=s[1]-s[0]:(c=0,s=[s,s]);const f=function(d){const g=Rn*((e+120)/360+n*d),_=Rm(s[0]+c*d,a),b=(l!==0?i[0]+d*l:i)*_*(1-_)/2,k=Fm(g),v=Bm(g),w=_+b*(-.14861*k+1.78277*v),L=_+b*(-.29227*k-.90649*v),$=_+b*(1.97294*k);return de(Z0([w*255,L*255,$*255,1]))};return f.start=function(d){return d==null?e:(e=d,f)},f.rotations=function(d){return d==null?n:(n=d,f)},f.gamma=function(d){return d==null?a:(a=d,f)},f.hue=function(d){return d==null?i:(i=d,Ce(i)==="array"?(l=i[1]-i[0],l===0&&(i=i[1])):l=0,f)},f.lightness=function(d){return d==null?s:(Ce(d)==="array"?(s=d,c=d[1]-d[0]):(s=[d,d],c=0),f)},f.scale=()=>de.scale(f),f.hue(i),f}const Nm="0123456789abcdef",{floor:Wm,random:Km}=Math,Um=(e=Km)=>{let n="#";for(let i=0;i<6;i++)n+=Nm.charAt(Wm(e()*16));return new H(n,"hex")},{log:C9,pow:Zm,floor:Hm,abs:Ym}=Math;function x9(e,n=null){const i={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Ce(e)==="object"&&(e=Object.values(e)),e.forEach(a=>{n&&Ce(a)==="object"&&(a=a[n]),a!=null&&!isNaN(a)&&(i.values.push(a),i.sum+=a,a<i.min&&(i.min=a),a>i.max&&(i.max=a),i.count+=1)}),i.domain=[i.min,i.max],i.limits=(a,s)=>w9(i,a,s),i}function w9(e,n="equal",i=7){Ce(e)=="array"&&(e=x9(e));const{min:a,max:s}=e,l=e.values.sort((f,d)=>f-d);if(i===1)return[a,s];const c=[];if(n.substr(0,1)==="c"&&(c.push(a),c.push(s)),n.substr(0,1)==="e"){c.push(a);for(let f=1;f<i;f++)c.push(a+f/i*(s-a));c.push(s)}else if(n.substr(0,1)==="l"){if(a<=0)throw new Error("Logarithmic scales are only possible for values > 0");const f=Math.LOG10E*C9(a),d=Math.LOG10E*C9(s);c.push(a);for(let g=1;g<i;g++)c.push(Zm(10,f+g/i*(d-f)));c.push(s)}else if(n.substr(0,1)==="q"){c.push(a);for(let f=1;f<i;f++){const d=(l.length-1)*f/i,g=Hm(d);if(g===d)c.push(l[g]);else{const _=d-g;c.push(l[g]*(1-_)+l[g+1]*_)}}c.push(s)}else if(n.substr(0,1)==="k"){let f;const d=l.length,g=new Array(d),_=new Array(i);let y=!0,b=0,k=null;k=[],k.push(a);for(let L=1;L<i;L++)k.push(a+L/i*(s-a));for(k.push(s);y;){for(let $=0;$<i;$++)_[$]=0;for(let $=0;$<d;$++){const T=l[$];let P=Number.MAX_VALUE,D;for(let U=0;U<i;U++){const X=Ym(k[U]-T);X<P&&(P=X,D=U),_[D]++,g[$]=D}}const L=new Array(i);for(let $=0;$<i;$++)L[$]=null;for(let $=0;$<d;$++)f=g[$],L[f]===null?L[f]=l[$]:L[f]+=l[$];for(let $=0;$<i;$++)L[$]*=1/_[$];y=!1;for(let $=0;$<i;$++)if(L[$]!==k[$]){y=!0;break}k=L,b++,b>200&&(y=!1)}const v={};for(let L=0;L<i;L++)v[L]=[];for(let L=0;L<d;L++)f=g[L],v[f].push(l[L]);let w=[];for(let L=0;L<i;L++)w.push(v[L][0]),w.push(v[L][v[L].length-1]);w=w.sort((L,$)=>L-$),c.push(w[0]);for(let L=1;L<w.length;L+=2){const $=w[L];!isNaN($)&&c.indexOf($)===-1&&c.push($)}}return c}const Gm=(e,n)=>{e=new H(e),n=new H(n);const i=e.luminance(),a=n.luminance();return i>a?(i+.05)/(a+.05):(a+.05)/(i+.05)};/**
26
+ `)+H+`return __p
27
+ }`;var Ce=n6(function(){return Ie(m,ne+"return "+H).apply(i,w)});if(Ce.source=H,ba(Ce))throw Ce;return Ce}function Rk(t){return Re(t).toLowerCase()}function Bk(t){return Re(t).toUpperCase()}function Fk(t,r,a){if(t=Re(t),t&&(a||r===i))return u2(t);if(!t||!(r=Qt(r)))return t;var u=xn(t),h=xn(r),m=f2(u,h),w=d2(u,h)+1;return ur(u,m,w).join("")}function zk(t,r,a){if(t=Re(t),t&&(a||r===i))return t.slice(0,g2(t)+1);if(!t||!(r=Qt(r)))return t;var u=xn(t),h=d2(u,xn(r))+1;return ur(u,0,h).join("")}function Nk(t,r,a){if(t=Re(t),t&&(a||r===i))return t.replace(bo,"");if(!t||!(r=Qt(r)))return t;var u=xn(t),h=f2(u,xn(r));return ur(u,h).join("")}function Kk(t,r){var a=j,u=te;if(et(r)){var h="separator"in r?r.separator:h;a="length"in r?be(r.length):a,u="omission"in r?Qt(r.omission):u}t=Re(t);var m=t.length;if(Xr(t)){var w=xn(t);m=w.length}if(a>=m)return t;var S=a-Jr(u);if(S<1)return u;var M=w?ur(w,0,S).join(""):t.slice(0,S);if(h===i)return M+u;if(w&&(S+=M.length-S),Ca(h)){if(t.slice(S).search(h)){var B,F=M;for(h.global||(h=Bo(h.source,Re(O5.exec(h))+"g")),h.lastIndex=0;B=h.exec(F);)var H=B.index;M=M.slice(0,H===i?S:H)}}else if(t.indexOf(Qt(h),S)!=S){var q=M.lastIndexOf(h);q>-1&&(M=M.slice(0,q))}return M+u}function Hk(t){return t=Re(t),t&&tC.test(t)?t.replace(A5,_x):t}var Wk=a1(function(t,r,a){return t+(a?" ":"")+r.toUpperCase()}),$a=nl("toUpperCase");function t6(t,r,a){return t=Re(t),r=a?i:r,r===i?hx(t)?Cx(t):ix(t):t.match(r)||[]}var n6=xe(function(t,r){try{return Yt(t,i,r)}catch(a){return ba(a)?a:new he(a)}}),Uk=Vn(function(t,r){return Gt(r,function(a){a=Ln(a),In(t,a,_a(t[a],t))}),t});function Zk(t){var r=t==null?0:t.length,a=se();return t=r?je(t,function(u){if(typeof u[1]!="function")throw new un(c);return[a(u[0]),u[1]]}):[],xe(function(u){for(var h=-1;++h<r;){var m=t[h];if(Yt(m[0],this,u))return Yt(m[1],this,u)}})}function Yk(t){return _w(dn(t,v))}function Sa(t){return function(){return t}}function Gk(t,r){return t==null||t!==t?r:t}var Vk=il(),Qk=il(!0);function Ht(t){return t}function ka(t){return E2(typeof t=="function"?t:dn(t,v))}function jk(t){return R2(dn(t,v))}function qk(t,r){return B2(t,dn(r,v))}var Xk=xe(function(t,r){return function(a){return T1(a,t,r)}}),Jk=xe(function(t,r){return function(a){return T1(t,a,r)}});function Aa(t,r,a){var u=vt(r),h=Vi(r,u);a==null&&!(et(r)&&(h.length||!u.length))&&(a=r,r=t,t=this,h=Vi(r,vt(r)));var m=!(et(a)&&"chain"in a)||!!a.chain,w=jn(t);return Gt(h,function(S){var M=r[S];t[S]=M,w&&(t.prototype[S]=function(){var B=this.__chain__;if(m||B){var F=t(this.__wrapped__),H=F.__actions__=zt(this.__actions__);return H.push({func:M,args:arguments,thisArg:t}),F.__chain__=B,F}return M.apply(t,ir([this.value()],arguments))})}),t}function eA(){return xt._===this&&(xt._=kx),this}function Ma(){}function tA(t){return t=be(t),xe(function(r){return F2(r,t)})}var nA=oa(je),rA=oa(o2),iA=oa(To);function r6(t){return da(t)?Po(Ln(t)):Dw(t)}function oA(t){return function(r){return t==null?i:xr(t,r)}}var aA=al(),sA=al(!0);function Ta(){return[]}function Pa(){return!1}function lA(){return{}}function cA(){return""}function uA(){return!0}function fA(t,r){if(t=be(t),t<1||t>tt)return[];var a=ze,u=Mt(t,ze);r=se(r),t-=ze;for(var h=Eo(u,r);++a<t;)r(a);return h}function dA(t){return ye(t)?je(t,Ln):jt(t)?[t]:zt(xl(Re(t)))}function hA(t){var r=++$x;return Re(t)+r}var gA=e0(function(t,r){return t+r},0),pA=aa("ceil"),mA=e0(function(t,r){return t/r},1),yA=aa("floor");function _A(t){return t&&t.length?Gi(t,Ht,Zo):i}function vA(t,r){return t&&t.length?Gi(t,se(r,2),Zo):i}function bA(t){return l2(t,Ht)}function CA(t,r){return l2(t,se(r,2))}function xA(t){return t&&t.length?Gi(t,Ht,Qo):i}function wA(t,r){return t&&t.length?Gi(t,se(r,2),Qo):i}var LA=e0(function(t,r){return t*r},1),$A=aa("round"),SA=e0(function(t,r){return t-r},0);function kA(t){return t&&t.length?Io(t,Ht):0}function AA(t,r){return t&&t.length?Io(t,se(r,2)):0}return p.after=q$,p.ary=Il,p.assign=FS,p.assignIn=Gl,p.assignInWith=Vl,p.assignWith=xa,p.at=zS,p.before=El,p.bind=_a,p.bindAll=Uk,p.bindKey=Dl,p.castArray=cS,p.chain=Tl,p.chunk=_L,p.compact=vL,p.concat=bL,p.cond=Zk,p.conforms=Yk,p.constant=Sa,p.countBy=A$,p.create=NS,p.curry=Rl,p.curryRight=Bl,p.debounce=Fl,p.defaults=KS,p.defaultsDeep=HS,p.defer=X$,p.delay=J$,p.difference=CL,p.differenceBy=xL,p.differenceWith=wL,p.drop=LL,p.dropRight=$L,p.dropRightWhile=SL,p.dropWhile=kL,p.fill=AL,p.filter=T$,p.flatMap=I$,p.flatMapDeep=E$,p.flatMapDepth=D$,p.flatten=Sl,p.flattenDeep=ML,p.flattenDepth=TL,p.flip=eS,p.flow=Vk,p.flowRight=Qk,p.fromPairs=PL,p.functions=QS,p.functionsIn=jS,p.groupBy=R$,p.initial=IL,p.intersection=EL,p.intersectionBy=DL,p.intersectionWith=RL,p.invert=XS,p.invertBy=JS,p.invokeMap=F$,p.iteratee=ka,p.keyBy=z$,p.keys=vt,p.keysIn=Kt,p.map=s0,p.mapKeys=tk,p.mapValues=nk,p.matches=jk,p.matchesProperty=qk,p.memoize=c0,p.merge=rk,p.mergeWith=Ql,p.method=Xk,p.methodOf=Jk,p.mixin=Aa,p.negate=u0,p.nthArg=tA,p.omit=ik,p.omitBy=ok,p.once=tS,p.orderBy=N$,p.over=nA,p.overArgs=nS,p.overEvery=rA,p.overSome=iA,p.partial=va,p.partialRight=zl,p.partition=K$,p.pick=ak,p.pickBy=jl,p.property=r6,p.propertyOf=oA,p.pull=NL,p.pullAll=Al,p.pullAllBy=KL,p.pullAllWith=HL,p.pullAt=WL,p.range=aA,p.rangeRight=sA,p.rearg=rS,p.reject=U$,p.remove=UL,p.rest=iS,p.reverse=ma,p.sampleSize=Y$,p.set=lk,p.setWith=ck,p.shuffle=G$,p.slice=ZL,p.sortBy=j$,p.sortedUniq=XL,p.sortedUniqBy=JL,p.split=Ok,p.spread=oS,p.tail=e$,p.take=t$,p.takeRight=n$,p.takeRightWhile=r$,p.takeWhile=i$,p.tap=v$,p.throttle=aS,p.thru=a0,p.toArray=Ul,p.toPairs=ql,p.toPairsIn=Xl,p.toPath=dA,p.toPlainObject=Yl,p.transform=uk,p.unary=sS,p.union=o$,p.unionBy=a$,p.unionWith=s$,p.uniq=l$,p.uniqBy=c$,p.uniqWith=u$,p.unset=fk,p.unzip=ya,p.unzipWith=Ml,p.update=dk,p.updateWith=hk,p.values=c1,p.valuesIn=gk,p.without=f$,p.words=t6,p.wrap=lS,p.xor=d$,p.xorBy=h$,p.xorWith=g$,p.zip=p$,p.zipObject=m$,p.zipObjectDeep=y$,p.zipWith=_$,p.entries=ql,p.entriesIn=Xl,p.extend=Gl,p.extendWith=Vl,Aa(p,p),p.add=gA,p.attempt=n6,p.camelCase=_k,p.capitalize=Jl,p.ceil=pA,p.clamp=pk,p.clone=uS,p.cloneDeep=dS,p.cloneDeepWith=hS,p.cloneWith=fS,p.conformsTo=gS,p.deburr=e6,p.defaultTo=Gk,p.divide=mA,p.endsWith=vk,p.eq=$n,p.escape=bk,p.escapeRegExp=Ck,p.every=M$,p.find=P$,p.findIndex=Ll,p.findKey=WS,p.findLast=O$,p.findLastIndex=$l,p.findLastKey=US,p.floor=yA,p.forEach=Pl,p.forEachRight=Ol,p.forIn=ZS,p.forInRight=YS,p.forOwn=GS,p.forOwnRight=VS,p.get=wa,p.gt=pS,p.gte=mS,p.has=qS,p.hasIn=La,p.head=kl,p.identity=Ht,p.includes=B$,p.indexOf=OL,p.inRange=mk,p.invoke=ek,p.isArguments=$r,p.isArray=ye,p.isArrayBuffer=yS,p.isArrayLike=Nt,p.isArrayLikeObject=lt,p.isBoolean=_S,p.isBuffer=fr,p.isDate=vS,p.isElement=bS,p.isEmpty=CS,p.isEqual=xS,p.isEqualWith=wS,p.isError=ba,p.isFinite=LS,p.isFunction=jn,p.isInteger=Nl,p.isLength=f0,p.isMap=Kl,p.isMatch=$S,p.isMatchWith=SS,p.isNaN=kS,p.isNative=AS,p.isNil=TS,p.isNull=MS,p.isNumber=Hl,p.isObject=et,p.isObjectLike=rt,p.isPlainObject=R1,p.isRegExp=Ca,p.isSafeInteger=PS,p.isSet=Wl,p.isString=d0,p.isSymbol=jt,p.isTypedArray=l1,p.isUndefined=OS,p.isWeakMap=IS,p.isWeakSet=ES,p.join=BL,p.kebabCase=xk,p.last=gn,p.lastIndexOf=FL,p.lowerCase=wk,p.lowerFirst=Lk,p.lt=DS,p.lte=RS,p.max=_A,p.maxBy=vA,p.mean=bA,p.meanBy=CA,p.min=xA,p.minBy=wA,p.stubArray=Ta,p.stubFalse=Pa,p.stubObject=lA,p.stubString=cA,p.stubTrue=uA,p.multiply=LA,p.nth=zL,p.noConflict=eA,p.noop=Ma,p.now=l0,p.pad=$k,p.padEnd=Sk,p.padStart=kk,p.parseInt=Ak,p.random=yk,p.reduce=H$,p.reduceRight=W$,p.repeat=Mk,p.replace=Tk,p.result=sk,p.round=$A,p.runInContext=A,p.sample=Z$,p.size=V$,p.snakeCase=Pk,p.some=Q$,p.sortedIndex=YL,p.sortedIndexBy=GL,p.sortedIndexOf=VL,p.sortedLastIndex=QL,p.sortedLastIndexBy=jL,p.sortedLastIndexOf=qL,p.startCase=Ik,p.startsWith=Ek,p.subtract=SA,p.sum=kA,p.sumBy=AA,p.template=Dk,p.times=fA,p.toFinite=qn,p.toInteger=be,p.toLength=Zl,p.toLower=Rk,p.toNumber=pn,p.toSafeInteger=BS,p.toString=Re,p.toUpper=Bk,p.trim=Fk,p.trimEnd=zk,p.trimStart=Nk,p.truncate=Kk,p.unescape=Hk,p.uniqueId=hA,p.upperCase=Wk,p.upperFirst=$a,p.each=Pl,p.eachRight=Ol,p.first=kl,Aa(p,function(){var t={};return En(p,function(r,a){De.call(p.prototype,a)||(t[a]=r)}),t}(),{chain:!1}),p.VERSION=o,Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){p[t].placeholder=p}),Gt(["drop","take"],function(t,r){Se.prototype[t]=function(a){a=a===i?1:yt(be(a),0);var u=this.__filtered__&&!r?new Se(this):this.clone();return u.__filtered__?u.__takeCount__=Mt(a,u.__takeCount__):u.__views__.push({size:Mt(a,ze),type:t+(u.__dir__<0?"Right":"")}),u},Se.prototype[t+"Right"]=function(a){return this.reverse()[t](a).reverse()}}),Gt(["filter","map","takeWhile"],function(t,r){var a=r+1,u=a==oe||a==St;Se.prototype[t]=function(h){var m=this.clone();return m.__iteratees__.push({iteratee:se(h,3),type:a}),m.__filtered__=m.__filtered__||u,m}}),Gt(["head","last"],function(t,r){var a="take"+(r?"Right":"");Se.prototype[t]=function(){return this[a](1).value()[0]}}),Gt(["initial","tail"],function(t,r){var a="drop"+(r?"":"Right");Se.prototype[t]=function(){return this.__filtered__?new Se(this):this[a](1)}}),Se.prototype.compact=function(){return this.filter(Ht)},Se.prototype.find=function(t){return this.filter(t).head()},Se.prototype.findLast=function(t){return this.reverse().find(t)},Se.prototype.invokeMap=xe(function(t,r){return typeof t=="function"?new Se(this):this.map(function(a){return T1(a,t,r)})}),Se.prototype.reject=function(t){return this.filter(u0(se(t)))},Se.prototype.slice=function(t,r){t=be(t);var a=this;return a.__filtered__&&(t>0||r<0)?new Se(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),r!==i&&(r=be(r),a=r<0?a.dropRight(-r):a.take(r-t)),a)},Se.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Se.prototype.toArray=function(){return this.take(ze)},En(Se.prototype,function(t,r){var a=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),h=p[u?"take"+(r=="last"?"Right":""):r],m=u||/^find/.test(r);h&&(p.prototype[r]=function(){var w=this.__wrapped__,S=u?[1]:arguments,M=w instanceof Se,B=S[0],F=M||ye(w),H=function(Le){var Ae=h.apply(p,ir([Le],S));return u&&q?Ae[0]:Ae};F&&a&&typeof B=="function"&&B.length!=1&&(M=F=!1);var q=this.__chain__,ne=!!this.__actions__.length,le=m&&!q,Ce=M&&!ne;if(!m&&F){w=Ce?w:new Se(this);var ae=t.apply(w,S);return ae.__actions__.push({func:a0,args:[H],thisArg:i}),new fn(ae,q)}return le&&Ce?t.apply(this,S):(ae=this.thru(H),le?u?ae.value()[0]:ae.value():ae)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(t){var r=Oi[t],a=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",u=/^(?:pop|shift)$/.test(t);p.prototype[t]=function(){var h=arguments;if(u&&!this.__chain__){var m=this.value();return r.apply(ye(m)?m:[],h)}return this[a](function(w){return r.apply(ye(w)?w:[],h)})}}),En(Se.prototype,function(t,r){var a=p[r];if(a){var u=a.name+"";De.call(r1,u)||(r1[u]=[]),r1[u].push({name:r,func:a})}}),r1[Ji(i,T).name]=[{name:"wrapper",func:i}],Se.prototype.clone=Wx,Se.prototype.reverse=Ux,Se.prototype.value=Zx,p.prototype.at=b$,p.prototype.chain=C$,p.prototype.commit=x$,p.prototype.next=w$,p.prototype.plant=$$,p.prototype.reverse=S$,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=k$,p.prototype.first=p.prototype.head,w1&&(p.prototype[w1]=L$),p},e1=xx();yr?((yr.exports=e1)._=e1,So._=e1):xt._=e1}).call(Rn)}(B1,B1.exports);var o6=B1.exports;const ut=g0(o6),a6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"arrow",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>{if(i.length>1){const o=i[1].x>i[0].x?0:1,s=fe.utils.getLinearSlopeIntercept(i[0],i[1]);let l;s?l=Math.atan(s[0])+Math.PI*o:i[1].y>i[0].y?l=Math.PI/2:l=Math.PI/2*3;const c=mn({x:i[1].x-8,y:i[1].y+4},i[1],l),f=mn({x:i[1].x-8,y:i[1].y-4},i[1],l);return[{type:"line",attrs:{coordinates:i},styles:n()},{type:"line",ignoreEvent:!0,attrs:{coordinates:[c,i[1],f]},styles:n()}]}return[]},setProperties:i=>{e=ut.merge({},e,i)},getProperties:()=>e}},s6=()=>{let e=new Map,n=i=>{const o=e.get(i);return{style:(o==null?void 0:o.style)??"stroke_fill",color:(o==null?void 0:o.backgroundColor)??"rgba(22, 119, 255, 0.15)",borderColor:(o==null?void 0:o.lineColor)??(o==null?void 0:o.borderColor),borderSize:o==null?void 0:o.borderWidth,borderStyle:(o==null?void 0:o.borderStyle)??(o==null?void 0:o.lineStyle)}};return{name:"circle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:o})=>{if(i.length>1){const s=Oa(i[0],i[1]);return{type:"circle",attrs:{...i[0],r:s},styles:n(o.id)}}return[]},setProperties:(i,o)=>{e.set(o,ut.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},l6=()=>{let e=new Map,n=i=>{const o=e.get(i);return{style:o.style??"stroke_fill",color:o.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:o.lineColor??o.borderColor,borderSize:o.borderWidth,borderStyle:o.borderStyle??o.lineStyle}};return{name:"rect",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:o})=>i.length>1?[{type:"polygon",attrs:{coordinates:[i[0],{x:i[1].x,y:i[0].y},i[1],{x:i[0].x,y:i[1].y}]},styles:n(o.id)}]:[],setProperties:(i,o)=>{e.set(o,ut.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},c6=()=>{let e={},n=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"parallelogram",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{if(o.length===2)return[{type:"line",ignoreEvent:!0,attrs:{coordinates:o},styles:i()}];if(o.length===3){const s={x:o[0].x+(o[2].x-o[1].x),y:o[2].y};return[{type:"polygon",attrs:{coordinates:[o[0],o[1],o[2],s]},styles:n()}]}return[]},performEventPressedMove:({points:o,performPointIndex:s,performPoint:l})=>{s<2&&(o[0].value=l.value,o[1].value=l.value)},performEventMoveForDrawing:({currentStep:o,points:s,performPoint:l})=>{o===2&&(s[0].value=l.value)},setProperties:o=>{e=ut.merge({},e,o)},getProperties:()=>e}},u6=()=>{let e={},n=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});return{name:"triangle",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>[{type:"polygon",attrs:{coordinates:i},styles:n()}],setProperties:i=>{e=ut.merge({},e,i)},getProperties:()=>e}},f6=()=>{let e={},n=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciCircle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{if(o.length>1){const s=Math.abs(o[0].x-o[1].x),l=Math.abs(o[0].y-o[1].y),c=Math.sqrt(s*s+l*l),f=[.236,.382,.5,.618,.786,1],d=[],g=[];return f.forEach(_=>{const y=c*_;d.push({...o[0],r:y}),g.push({x:o[0].x,y:o[0].y+y+6,text:`${(_*100).toFixed(1)}%`})}),[{type:"circle",attrs:d,styles:n()},{type:"text",ignoreEvent:!0,attrs:g,styles:i()}]}return[]},setProperties:o=>{e=ut.merge({},e,o)},getProperties:()=>e}},d6=()=>{let e={};const n=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSegment",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,overlay:s,chart:l,yAxis:c})=>{const f=[],d=[];if(o.length>1){let g=0;const _=l.getSymbol();((c==null?void 0:c.isInCandle())??!0)&&_?g=_.pricePrecision:l.getIndicators({paneId:s.paneId}).forEach($=>{g=Math.max(g,$.precision)});const y=o[1].x>o[0].x?o[0].x:o[1].x,v=[1,.786,.618,.5,.382,.236,0],k=o[0].y-o[1].y,b=s.points,C=b[0].value-b[1].value;v.forEach(L=>{const $=o[1].y+k*L,T=(b[1].value+C*L).toFixed(g.price);f.push({coordinates:[{x:o[0].x,y:$},{x:o[1].x,y:$}]}),d.push({x:y,y:$,text:`${T} (${(L*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:f,styles:n()},{type:"text",ignoreEvent:!0,attrs:d,styles:i()}]},setProperties:o=>{e=ut.merge({},e,o)},getProperties:()=>e}},h6=()=>{let e={},n=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"fibonacciSpiral",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,bounding:s})=>{if(o.length>1){const l=Oa(o[0],o[1])/Math.sqrt(24),c=o[1].x>o[0].x?0:1,f=fe.utils.getLinearSlopeIntercept(o[0],o[1]);let d;f?d=Math.atan(f[0])+Math.PI*c:o[1].y>o[0].y?d=Math.PI/2:d=Math.PI/2*3;const g=mn({x:o[0].x-l,y:o[0].y},o[0],d),_=mn({x:o[0].x-l,y:o[0].y-l},o[0],d),y=[{...g,r:l,startAngle:d,endAngle:d+Math.PI/2},{..._,r:l*2,startAngle:d+Math.PI/2,endAngle:d+Math.PI}];let v=o[0].x-l,k=o[0].y-l;for(let b=2;b<9;b++){const C=y[b-2].r+y[b-1].r;let L=0;switch(b%4){case 0:{L=d,v-=y[b-2].r;break}case 1:{L=d+Math.PI/2,k-=y[b-2].r;break}case 2:{L=d+Math.PI,v+=y[b-2].r;break}case 3:{L=d+Math.PI/2*3,k+=y[b-2].r;break}}const $=L+Math.PI/2,T=mn({x:v,y:k},o[0],d);y.push({...T,r:C,startAngle:L,endAngle:$})}return[{type:"arc",attrs:y,styles:n()},{type:"line",attrs:h0(o,s),styles:i()}]}return[]},setProperties:o=>{e=ut.merge({},e,o)},getProperties:()=>e}},g6=()=>{let e={};const n=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSpeedResistanceFan",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,bounding:s})=>{const l=[];let c=[];const f=[];if(o.length>1){const d=o[1].x>o[0].x?-38:4,g=o[1].y>o[0].y?-2:20,_=o[1].x-o[0].x,y=o[1].y-o[0].y;[1,.75,.618,.5,.382,.25,0].forEach(k=>{const b=o[1].x-_*k,C=o[1].y-y*k;l.push({coordinates:[{x:b,y:o[0].y},{x:b,y:o[1].y}]}),l.push({coordinates:[{x:o[0].x,y:C},{x:o[1].x,y:C}]}),c=c.concat(h0([o[0],{x:b,y:o[1].y}],s)),c=c.concat(h0([o[0],{x:o[1].x,y:C}],s)),f.unshift({x:o[0].x+d,y:C+10,text:`${k.toFixed(3)}`}),f.unshift({x:b-18,y:o[0].y+g,text:`${k.toFixed(3)}`})})}return[{type:"line",attrs:l,styles:n()},{type:"line",attrs:c,styles:n()},{type:"text",ignoreEvent:!0,attrs:f,styles:i()}]},setProperties:o=>{e=ut.merge({},e,o)},getProperties:()=>e}},p6=()=>{let e={};const n=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciExtension",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({chart:s,yAxis:l,coordinates:c,overlay:f})=>{const d=[],g=[];if(c.length>2){let _=0;const y=s.getSymbol();((l==null?void 0:l.isInCandle())??!0)&&y?_=y.pricePrecision:s.getIndicators({paneId:f.paneId}).forEach(T=>{_=Math.max(_,T.precision)});const v=f.points,k=v[1].value-v[0].value,b=c[1].y-c[0].y,C=[0,.236,.382,.5,.618,.786,1],L=c[2].x>c[1].x?c[1].x:c[2].x;C.forEach($=>{const T=c[2].y+b*$,O=(v[2].value+k*$).toFixed(_.price);d.push({coordinates:[{x:c[1].x,y:T},{x:c[2].x,y:T}]}),g.push({x:L,y:T,text:`${O} (${($*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:{coordinates:c},styles:n()},{type:"line",attrs:d,styles:i()},{type:"text",ignoreEvent:!0,attrs:g,styles:o()}]},setProperties:s=>{e=ut.merge({},e,s)},getProperties:()=>e}},m6=()=>{let e={},n=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),s=()=>({style:"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"gannBox",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:l})=>{if(l.length>1){const c=(l[1].y-l[0].y)/4,f=l[1].x-l[0].x,d=[{coordinates:[l[0],{x:l[1].x,y:l[1].y-c}]},{coordinates:[l[0],{x:l[1].x,y:l[1].y-c*2}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+c}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+c*2}]},{coordinates:[{...l[0]},{x:l[0].x+f*.236,y:l[1].y}]},{coordinates:[{...l[0]},{x:l[0].x+f*.5,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.236,y:l[0].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.5,y:l[0].y}]}],g=[{coordinates:[l[0],l[1]]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y}]}];return[{type:"line",attrs:[{coordinates:[l[0],{x:l[1].x,y:l[0].y}]},{coordinates:[{x:l[1].x,y:l[0].y},l[1]]},{coordinates:[l[1],{x:l[0].x,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},l[0]]}],styles:i()},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[l[0],{x:l[1].x,y:l[0].y},l[1],{x:l[0].x,y:l[1].y}]},styles:n()},{type:"line",attrs:d,styles:o()},{type:"line",attrs:g,styles:s()}]}return[]},setProperties:l=>{e=ut.merge({},e,l)},getProperties:()=>e}},y6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"threeWaves",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=ut.merge({},e,o)},getProperties:()=>e}},_6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fiveWaves",totalStep:7,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=ut.merge({},e,o)},getProperties:()=>e}},v6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"eightWaves",totalStep:10,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=ut.merge({},e,o)},getProperties:()=>e}},b6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"anyWaves",totalStep:Number.MAX_SAFE_INTEGER,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=ut.merge({},e,o)},getProperties:()=>e}},C6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({...n(),style:"dashed"}),o=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"abcd",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:s})=>{let l=[],c=[];const f=["A","B","C","D"],d=s.map((g,_)=>({...g,baseline:"bottom",text:`(${f[_]})`}));return s.length>2&&(l=[s[0],s[2]],s.length>3&&(c=[s[1],s[3]])),[{type:"line",attrs:{coordinates:s},styles:n()},{type:"line",attrs:[{coordinates:l},{coordinates:c}],styles:i()},{type:"text",ignoreEvent:!0,attrs:d,styles:o()}]},setProperties:s=>{e=ut.merge({},e,s)},getProperties:()=>e}},x6=()=>{let e={},n=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({...i(),style:"dashed"}),s=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"xabcd",totalStep:6,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:l,overlay:c})=>{const f=[],d=[],g=["X","A","B","C","D"],_=l.map((y,v)=>({...y,baseline:"bottom",text:`(${g[v]})`}));return l.length>2&&(f.push({coordinates:[l[0],l[2]]}),d.push({coordinates:[l[0],l[1],l[2]]}),l.length>3&&(f.push({coordinates:[l[1],l[3]]}),l.length>4&&(f.push({coordinates:[l[2],l[4]]}),d.push({coordinates:[l[2],l[3],l[4]]})))),[{type:"line",attrs:{coordinates:l},styles:i()},{type:"line",attrs:f,styles:o()},{type:"polygon",ignoreEvent:!0,attrs:d,styles:n()},{type:"text",ignoreEvent:!0,attrs:_,styles:s()}]},setProperties:l=>{e=ut.merge({},e,l)},getProperties:()=>e}},w6=()=>{let e={};return{name:"brush",totalStep:3,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,styles:{},createPointFigures:({coordinates:n})=>{const i=[];if(n.length>1){const o=n.filter((s,l)=>l!==1);i.push({coordinates:o})}return[{type:"line",attrs:i,styles:{style:"solid",smooth:!0}}]},performEventMoveForDrawing:({currentStep:n,points:i,performPoint:o})=>{n>=2&&i.push(o)},setProperties:n=>{e=ut.merge({},e,n)},getProperties:()=>e}};function An(e,n){return new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n,useGrouping:!0}).format(e)}const p0=(e,n,i)=>{const o={price:0,volume:0},s=e.getSymbol();return((i==null?void 0:i.isInCandle())??!0)&&s?(o.price=s.pricePrecision,o.volume=s.volumePrecision):e.getIndicators({paneId:n.paneId}).forEach(c=>{o.price=Math.max(o.price,c.precision)}),o},L6=(e,n,i)=>{try{return new Intl.DateTimeFormat(n,{timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(e)}catch{return new Date(e).toLocaleString(n)}},Ia="#2ebd85",Ea="#f6465d",$6="#2ebd85",S6="#f6465d",k6=e=>({style:"solid",size:1,color:e,dashedValue:[]}),Da=e=>({style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),A6=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[2,0,0,2],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),M6=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:e,backgroundColor:"white",borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[0,2,2,0],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),T6=()=>({name:"positionAvgLine",totalStep:1,mode:"normal",lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var Oe;const s=(Oe=o.points[0])==null?void 0:Oe.value,l=o.extendData,c=e.getDataList().at(-1);if(s===void 0||!l||!c||!Number.isFinite(c.close))return[];const f=c.timestamp,d=e.convertToPixel({timestamp:f,value:s}).y??n[0].y,g=c.close,_=l.multiplier??1,y=l.side==="long"?(g-s)*l.size*_:(s-g)*l.size*_,v=e.getSymbol(),k=(v==null?void 0:v.pricePrecision)??2,b=(v==null?void 0:v.volumePrecision)??4,C=An(l.size,b),L=`PNL ${y>=0?"+":""}${An(y,k)}`,$=l.side==="long"?Ia:Ea,T=y>=0?$6:S6,O=M6($),E=A6(T),U=O.paddingLeft,X=O.paddingRight,Y=fe.utils.calcTextWidth(C)+U+X,I=fe.utils.calcTextWidth(L)+U+X,z=16,Q=-1,j=0,te=z+I+Q,ee=te+Y+j;return[{key:"avg-line",type:"line",attrs:{coordinates:[{x:Math.min(ee,i.width),y:d},{x:i.width,y:d}]},styles:k6($),ignoreEvent:!0},{key:"pnl",type:"text",attrs:{x:z,y:d,text:L,align:"left",baseline:"middle"},styles:E,ignoreEvent:!0},{key:"qty",type:"text",attrs:{x:te,y:d,text:C,align:"left",baseline:"middle"},styles:O,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:o,yAxis:s})=>{var v;const l=(v=n.points[0])==null?void 0:v.value,c=n.extendData,f=p0(e,n,s);if(l===void 0||!c)return{type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:Da("#888")};c.side;const d=e.getDataList().at(-1),g=d&&Number.isFinite(d.close)?e.convertToPixel({timestamp:d.timestamp,value:l}).y??i[0].y:i[0].y,_=(s==null?void 0:s.isFromZero())??!1,y=An(l,f.price);return{type:"text",attrs:{x:_?0:o.width,y:g,text:y,align:_?"left":"right",baseline:"middle"},styles:Da("#bfbfbf")}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)});function Ra(e){if(e==null)return;const n=Array.isArray(e)?e[0]:e,i=n==null?void 0:n.value;return typeof i=="number"&&Number.isFinite(i)?i:void 0}function P6(e){const n=e.getSize("candle_pane","main");if(!n||n.width<=0||n.height<=0)return null;const i=n.width*.5,o=Ra(e.convertFromPixel([{x:i,y:0}],{paneId:"candle_pane"})),s=Ra(e.convertFromPixel([{x:i,y:n.height}],{paneId:"candle_pane"}));return o===void 0||s===void 0?null:{min:Math.min(o,s),max:Math.max(o,s)}}function u1(e,n){const i=P6(e);return i?n>=i.min&&n<=i.max:!1}const m0="#f6465d",O6=()=>({style:"dashed",size:1,color:m0,dashedValue:[4,4]}),F1={style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:m0,borderColor:m0,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3},I6={style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:"#bfbfbf",borderColor:"#bfbfbf",borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3},E6=()=>({name:"liquidationLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var T;const s=(T=o.points[0])==null?void 0:T.value,l=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!l)return[];if(!u1(e,s))return[];const c=l.timestamp,f=e.convertToPixel({timestamp:c,value:s}).y??n[0].y,d=e.getSymbol(),g=(d==null?void 0:d.pricePrecision)??2,y=`Liq: ${An(s,g)}`,v=F1.paddingLeft,k=F1.paddingRight,b=fe.utils.calcTextWidth(y)+v+k,C=16,L=2,$=C+b+L;return[{key:"liq-line",type:"line",attrs:{coordinates:[{x:Math.min($,i.width),y:f},{x:i.width,y:f}]},styles:O6(),ignoreEvent:!0},{key:"liq-label",type:"text",attrs:{x:C,y:f,text:y,align:"left",baseline:"middle"},styles:F1,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:o,yAxis:s})=>{var v;const l=(v=n.points[0])==null?void 0:v.value,c=p0(e,n,s),f={type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:F1};if(l===void 0||!Number.isFinite(l)||!u1(e,l))return f;const d=e.getDataList().at(-1);if(!d)return f;const g=e.convertToPixel({timestamp:d.timestamp,value:l}).y??i[0].y,_=(s==null?void 0:s.isFromZero())??!1,y=An(l,c.price);return{type:"text",attrs:{x:_?0:o.width,y:g,text:y,align:_?"left":"right",baseline:"middle"},styles:I6}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),D6="#2ebd85",R6="#f6465d";function Ba(e){return e?D6:R6}const B6=e=>({style:"dashed",size:1,color:e,dashedValue:[4,4]}),F6=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[2,0,0,2],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),z6=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:e,backgroundColor:"white",borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[0,2,2,0],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),Fa=e=>({style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),N6=()=>({name:"pendingOrderLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var z;const s=(z=o.points[0])==null?void 0:z.value,l=o.extendData,c=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!l||!c)return[];if(!u1(e,s))return[];const f=c.timestamp,d=e.convertToPixel({timestamp:f,value:s}).y??n[0].y,g=e.getSymbol();g==null||g.pricePrecision;const _=(g==null?void 0:g.volumePrecision)??4,y="限价",v=An(l.size,_),k=Ba(l.isBuy),b=F6(k),C=z6(k),L=b.paddingLeft,$=b.paddingRight,T=fe.utils.calcTextWidth(y)+L+$,O=fe.utils.calcTextWidth(v)+L+$,E=16,U=-1,X=2,Y=E+T+U,I=Y+O+X;return[{key:"order-line",type:"line",attrs:{coordinates:[{x:Math.min(I,i.width),y:d},{x:i.width,y:d}]},styles:B6(k),ignoreEvent:!0},{key:"order-price",type:"text",attrs:{x:E,y:d,text:y,align:"left",baseline:"middle"},styles:b,ignoreEvent:!0},{key:"order-size",type:"text",attrs:{x:Y,y:d,text:v,align:"left",baseline:"middle"},styles:C,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:o,yAxis:s})=>{var k;const l=(k=n.points[0])==null?void 0:k.value,c=p0(e,n,s),f={type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:Fa("#888")};if(l===void 0||!Number.isFinite(l))return f;const d=n.extendData;if(!d||!u1(e,l))return f;Ba(d.isBuy);const g=e.getDataList().at(-1);if(!g)return f;const _=e.convertToPixel({timestamp:g.timestamp,value:l}).y??i[0].y,y=(s==null?void 0:s.isFromZero())??!1,v=An(l,c.price);return{type:"text",attrs:{x:y?0:o.width,y:_,text:v,align:y?"left":"right",baseline:"middle"},styles:Fa("#bfbfbf")}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),K6="#2ebd85",H6="#f6465d",W6=6,U6=14,za=14,Na=18,Z6={style:"fill",size:8,family:"Arial, sans-serif",weight:"bold",color:"#ffffff",backgroundColor:"transparent",borderColor:"transparent",borderStyle:"solid",borderSize:0,borderDashedValue:[],borderRadius:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},Y6=()=>({name:"hisOrderMark",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,overlay:i})=>{const o=i.points[0],s=i.extendData;if(!o||!s||!Number.isFinite(o.timestamp)||typeof s.isBuy!="boolean")return[];const c=e.getDataList().find(E=>E.timestamp===o.timestamp);let f,d;if(c&&Number.isFinite(c.high)&&Number.isFinite(c.low)?(f=c.high,d=c.low):(f=typeof s.barHigh=="number"&&Number.isFinite(s.barHigh)?s.barHigh:void 0,d=typeof s.barLow=="number"&&Number.isFinite(s.barLow)?s.barLow:void 0),f===void 0||d===void 0)return[];const g=s.isBuy?K6:H6,_=s.isBuy?"B":"S",y=n[0].x,v=e.convertToPixel({timestamp:o.timestamp,value:f}).y??n[0].y,k=e.convertToPixel({timestamp:o.timestamp,value:d}).y??n[0].y,b=Math.max(0,s.stackIndex??0),C=Math.abs(k-v),L=Number.isFinite(C)&&C<Na?Math.max(0,Na-C)*.65:0,$=U6+L,T=s.isBuy?k+$+b*za:v-$-b*za;return[{key:"his-order-dot",type:"circle",attrs:{x:y,y:T-.5,r:W6},styles:{color:g},ignoreEvent:!1},{key:"his-order-char",type:"text",attrs:{x:y,y:T,text:_,align:"center",baseline:"middle"},styles:Z6,ignoreEvent:!0}]},onMouseEnter:()=>!1,onMouseLeave:()=>!1,onRemoved:()=>!1,onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),z1="klinecharts-pro-his-order-hover",f1="klinecharts-pro-alert-detail-open",G6="#bfbfbf",V6=140,N1=new Map;function Q6(e){const n=e.chart.getDom("candle_pane","main");return n?n.closest(".klinecharts-pro"):null}function j6(e){(e.sourceContainer??window).dispatchEvent(new CustomEvent(f1,{detail:e}))}function y0(e){const n=N1.get(e);n!=null&&(clearTimeout(n),N1.delete(e))}function q6(e,n){y0(n);const i=setTimeout(()=>{N1.delete(n);const s=e.getOverlays({id:n})[0];if(!s)return;const l=s.extendData;e.overrideOverlay({id:n,extendData:{...l,showInfo:!1}})},V6);N1.set(n,i)}function Ka(e){return e==="alert-triangle"||e==="alert-info-text"||e==="alert-info-close"}let K1;function X6(e){K1=e.onRemove}const J6=()=>({style:"dashed",size:1,color:"rgba(255, 255, 255, 1)",dashedValue:[4,4]});function ec(e,n=2){return e.type==="price_reach"?`价格达到 ${An(e.price??0,n)}`:e.type==="price_rise_to"?`价格涨到 ${An(e.price??0,n)}`:e.type==="price_fall_to"?`价格跌到 ${An(e.price??0,n)}`:e.type==="price_rise_pct_over"?`价格${e.window??"5m"}涨幅 ${e.percent??0}%`:`价格${e.window??"5m"}跌幅 ${e.percent??0}%`}const tc=()=>({name:"priceAlertLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var L,$;const s=(L=o.points[0])==null?void 0:L.value,l=o.extendData,c=l==null?void 0:l.alert,f=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!c||!f)return[];if(!u1(e,s))return[];const d=e.convertToPixel({timestamp:f.timestamp,value:s}).y??n[0].y,g=(($=e.getSymbol())==null?void 0:$.pricePrecision)??2,_=ec(c,g),y=fe.utils.calcTextWidth(_),v=i.width,k=v-10,b=k-2,C=[{key:"alert-line",type:"line",attrs:{coordinates:[{x:0,y:d},{x:b,y:d}]},styles:J6(),ignoreEvent:!0},{key:"alert-triangle",type:"polygon",attrs:{coordinates:[{x:k,y:d-6},{x:v,y:d},{x:k,y:d+6}]},styles:{style:"fill",color:G6},ignoreEvent:!1}];if(l!=null&&l.showInfo){const T=Math.max(120,y+28),O=Math.max(8,k-T-10);C.push({key:"alert-info-text",type:"text",attrs:{x:O+8,y:d,text:_,align:"left",baseline:"middle"},styles:{style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"#fff",backgroundColor:"rgba(56, 56, 56, 0.92)",borderColor:"rgba(56, 56, 56, 0.92)",borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:3,paddingLeft:8,paddingRight:24,paddingTop:4,paddingBottom:4},ignoreEvent:!1},{key:"alert-info-close",type:"text",attrs:{x:O+T-0,y:d,text:"×",fontFamily:"Apple Color Emoji",align:"center",baseline:"middle"},styles:{style:"fill",size:18,family:"Arial, sans-serif",color:"#fff",backgroundColor:"transparent",borderColor:"transparent",borderStyle:"solid",borderSize:0,borderDashedValue:[],borderRadius:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},ignoreEvent:!1})}return C},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:e=>{var o;const n=(o=e.figure)==null?void 0:o.key;if(!Ka(n))return!1;y0(e.overlay.id);const i=e.overlay.extendData??{};return e.overlay.extendData={...i,showInfo:!0},!1},onMouseLeave:e=>{var i;const n=(i=e.figure)==null?void 0:i.key;return Ka(n)&&q6(e.chart,e.overlay.id),!1},onRemoved:e=>(y0(e.overlay.id),!1),onSelected:e=>{var o;e.preventDefault&&e.preventDefault(),e.overlay.mode="normal";const n=e.overlay.extendData??{};return(((o=e.figure)==null?void 0:o.key)??"")==="alert-info-close"&&n.alert&&(K1==null||K1(n.alert)),!1},onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1),onDoubleClick:e=>{var i;if(((i=e.figure)==null?void 0:i.key)!=="alert-info-text")return!1;e.preventDefault&&e.preventDefault();const n=e.overlay.extendData??{};return n.alert&&j6({alert:n.alert,sourceContainer:Q6(e)}),!1}}),nc=[a6(),w6(),s6(),l6(),u6(),c6(),f6(),d6(),h6(),g6(),p6(),m6(),y6(),_6(),v6(),b6(),C6(),x6(),T6(),E6(),N6(),Y6(),tc()];class rc{constructor(n){kn(this,"_apiKey");kn(this,"_prevSymbolMarket");kn(this,"_ws");this._apiKey=n}async searchSymbols(n){return await((await(await fetch(`https://api.polygon.io/v3/reference/tickers?apiKey=${this._apiKey}&active=true&search=${n??""}`)).json()).results||[]).map(s=>({ticker:s.ticker,name:s.name,shortName:s.ticker,market:s.market,exchange:s.primary_exchange,priceCurrency:s.currency_name,type:s.type,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAA66SURBVHic7Z17cFTVGcB/527AiKGgRA0ShGhKoQjFMb4qUMCMPIrWqdbHSEdlHDGgI9V2aq2d1hmKtVbRsSTGEcQRp4pStaZQlNYUwYLiSKU0SCMBDRCmoQSJGGF3T/84d2VZk+w9d899hf3NMBnl3ns+5vtyHt/5HoIehpQIaijDYjiSciRlwCCgBCgG+gNFQCGCAvUScaADaAfagFagBdiFoAlBI0m2UkWTEMgA/lmeIYIWIFdkLQNJMBbBJUjOA8agFOwF7cAmBO8hWUeMtWIWezwayxciZwByGb1pZTyCaUguA0YGLNIWBK8jWUExa8Q1HA5YHi0iYQByGTH2UYnkBmA6cHLQMnXBfqAOwXMMYLW4hkTQAmUj1AYgqzkLuAXBTUgGBi2PFoI9SJYAT4nZbA9anK4IpQHIhUzE4i4k04OWxQiCOpI8IubwZtCiZBIqA5A1TEdyH3Bh0LJ4xAYE80QVdUELkiIUBiCf4FIk85FcELQsviB4B8G94jb+GrwoASKfZBgJHkUyNUg5AkOwkhhzxa1sC06EAJALKUJwL3A30DsIGULEYeBhJPPFHNr9Htx3A5A1TECyGCjze+yQ04Rgpqii3s9BfTMAWUsfksxD8iO/xowkggVY3Cdmccif4XxAPskw4rwCjPBjvB5AAwVc6cfewPJ6AFnNzcTZSF75OowgzkZZzc1eD+SZAUiJkNX8FlgM9PVqnB5MX2CxrOa3Uno3U3vyYVlLPxIshR7iyQueOmLMELM4YPrDxg1A1jKQJKuQjDL97eMawWYsJpu+fjZqAPL3DMFiNVBu8rt5vqSRJJXidnaa+qAxA5CPU0aMvwFDTX0zT6fsIMEkcQdNJj5mxADs3/x68sr3ix0kmWBiJsjZAOyQrDXkp32/aSTG+Fz3BDkZgKylH0neym/4AkJtDMflcjpw7QeQEkGCpXnlB4hkFAmW5uIncO8IquFB8uf8MDDd1oUrXFmO7aJc7HbQPJ4wU8zmad2XtA3AvtjZSN69GzYOUkCF7gWSlgHIWvqQyF/shJgGYlToXCXr7QGSzCOv/DAzwtaRYxzPAHYkT+jCmvN0gmCi08giRwZgx/B9QD6MKyo0IRntJMbQ2RKgAjjzyo8OZbbOspJ1BrB3/ZvJR+9GjcMUMCrbqSD7DJDgUfLKjyK9bd11S7czgHyCS0my2pxMIaHvUCgshl5FUFQKQtWJ4FALHGmHz5rhizY43BaomEawqOwuA6mg25cl840L5DexQiithNMvhNMvglMr4IT+zt5t3QS762H332FXfTQNQumwy1zLLmcAO1HzNU+E8oNTK+AbN8KwGc4V3h3JODS9Av98GPauz/17fiK4vKuE1K4NoJr1RDFLd+BY+PYCOK3CuzH2rof3fg07Q5Pkm40NYjYXdfYXnRqAXMhEBH/zVibDFBbDRQ/AiFv8G3PbUlhTpfYNYUcyqbP6BJ2fAizu8lwgkwwcC9c3+Kt8UMvLtZuhZKy/47qhC51+ZQawy7J85LlApjhjAkx7Te3ogyIZhz9PhebQH5jOzixX09kM4POvUQ6cdTVc/kawygewCmDKy2omCjdf0e0xM4BdjeuTSBRk6jtUTb9BKz+djlZ4eRy0bQ1aks4R7GEAg9Orlx07A6hSbOFXPsCkp8OlfFAb0UnaQTn+IRnIPirT/1dBxgM3+CqQW0beptZ+NyTj0LIW9m6A//0L2puP/l1RKXytHAZ9RzmNYoX63z/9IrU53LbUnXxeo3S8KvWfXy4BdgXOFsJbhFFhFcAPP4E+JXrvJeOw+TH44NFjld4VfUrg3Htg5Cx9QzjUAn8YEVbP4X6KKUlVND26BLQynrArH9TGT1f5h1pg+fnw9o+dKT/1zrq58MeL4UCj3nh9StQsFU5OtnUNpBuAYFog4ugy5Lt6z3/RBq9OVH59N7RuUu93tOq9N3KWu/H8IE3XRw1AFV4OP2dO0Xt+4/2578o/a1YePx36DoXiMbmN6xVpurbAzu8Lvup2dgqL1R+nHGmHLU+YGfujl/RnkUGV2Z8JhpG2zu0ZIEHoPRgA9NPMP21eDYkOc+M3LNJ7/rTzzI1tGlvnygAElwQqjFPc7MZNouvq1TVYP7F1rgxAddrIkw3dvYTOcuU3ts4L7B47Id2tZHBwh97zXvwGNr4AfU539uyhvebHN8cYKREiUrd/sUK49XPnzyfj8FyZ87P/8cfZFhbDg5bCMYkOdSRzilUAFz/knTxRx2K4hYxYaZcdmmFY5ddBxa88ESXySMotu69edNi+XP+d838Jlz4bvtvDoJGUWaimitFhz1p3a/qwGXBdg/qZJ8UgC9VRMzokOuDdX7h7t6hUzQTX2fGDbq57exYlQlbzb6KY83/1uyr2PxeOtKtY/w+fUQkgybgJyaJEg5DV7IaIRAGlc8o58P1/mFvXj7SrOP+df4aP/6J/+xdN9ghZzadEtd7PmVNg6mvquGeSZFzNCB8th8bnwxrYYYKDQlZzGOgVtCSuGXELjK8xbwQpEh3KCLbURi8lLDtHhKwhiYcNCXzhzClw2YveH/N218O796ufPQGB7BkGANB/OEx9Wf30mubV8NYd4Q3/dopAWkh6xta3bSssO1clbZqMAeiM0kq45n3lYfRq6fEDSTzam8Cu6FcOYx/XDx9zw+56eON687EH/nDQAv+7VXrOgUaVq/fyOHXO9/J8f8YE+N6b4Q7+6Jr26DqCdOhXDufcrgpGmCgW0RmHWuCVcfoh5MHSIGQ1a4BxQUviC7FCtSycdRUMmW7eGNq2wkvnR6NegOItIatZBvwgaEl8xypQ03f5tcooTio1892ddbDicjPf8p4XC4BdQUsRCMm4Os6lAj1PrYCzr1bLhG7mUTpDpsM3boIPl5iQ0mt2WQgz3aciz383wvp74NnBsOoH7jOJAC5ZAL092muYRNBkIYjUrsVzknHY/hK8eK77490J/WH0XPOymUbQaJEk4u4sD2l8Hl4YBZ+syv5sJqPmhN9JlGSrRRVN9ERfgCk6WmHlldCyTu+9wmL3NQz8oZ0qmiwhkEAOC95xQKIDVl2tf7wbPNkbecywSQikmqME7yFDnB/Yq0jVBXDK5y0qqMMkh1rgg8fgvJ87fyes2cGgdE6qRIxkHXBnkPJ0i27tnb3rzRsAKLeyjgGE2T2sdG7nBsZYG6gw2dD15Zty6mTy3416z+fiT/AaW+cWgN1/dkugAnXHZ816629RqXeJmTqZSeGNOt6S6jmcXiLm9cDEcYLuJcsQj5qanhji32qnpOk6vUTMikCEcYru9DvMg4p3/cr1zvY6s4WfpOn6qAEUswbYH4Q8jtB1xpRWmp8Fvq6ZVfTpDrPjm2G/rWsgzQDsunHhLYD/8V9UxS8dxj1ubiN2UimMuVvvnX2hdK/UpWoEQmapWMFzvovjlCPt+jV6+g5V0Tp9h+Y2dp8SuMJFUeqPXbiQvSZDx8cawABWI9TuMJS8/xv9jJ3+w1VR6dFz3fnmB09RGUi60cZftIWvfLwqFn2MUMcYgLiGBJIlvgqlQ0crvP0T/fd6Fakr2hv3qJ+Dp3R/TDzlHPjmbXDVuzB9pbsZpGGR99HJukiWpFcKh6g2jJhWp18xtDMOtSglpa58+5QcbSeXC+3N6hYxfCllX2kY0XnPoBpeQ+LRQdoAJ5Wq7OCwetpWXB6+hlKCOlHFV2LVOu8ZlOQRzwXKhc+aVf3eMMbiNywKn/KhS51Gu21c/+Fqlx+WmWD7cnjjujDWGeiybVzXvYMF8zwTxxRtW1Usfi7xe6b48JmwKr9bXXbfO7iGDUguMC+RYawCuGAefOtu/8OwjrSrjOF//s7fcZ0ieEdUdT2Td9893GEP+sBJxlVE7/Mj1J29XzS9qnb7YVU+ZNVh1rRwWcMKJFPNSeQDp5yjHD/l15qvGZDoUEbWsCh8jp5MBCtFVfeNQLIbwJMMI85moLcxwfwilQo2eLJq5uQ2ROuLNnUbuX05/CcyJWMOU8AocSvbunvIUWEIWc184GdGxAqSXkWqzWvxGCgcoJw+J2Y4flI3eAd3qq5i+zZFLeEzxQNidvYl3JkBLKQIwQcQsaqixy9NSEaLOdnD/bvfBNqIObQjmJm7XHl8QTDTifLBoQEAiCrqESxwL1UeXxAsEFXUO33csQHYT98HNGiKlMc/GmwdOUa7Oph9KthIT6srFH0OUkBFtl1/JnozAGAPEN4kkuOXO3WVDy4MAEDM5mkg34ojPDxk60Qb1wUi7WZTf4IQxw0cH9RRxRV2kq82rmYAACGQxJiBYLPbb+TJEcFmYsxwq3zIwQAAxCwOYDEZ8lVGAqARi8liFgdy+UhOBgB2XmGSSmBHrt/K45gdJKlM5fflQs4GACBuZycJJpE3Aj/YQYJJ4nZ2mviYEQMAEHfQRJIJ5JcDL2kkyQRxh7nKbsbLxMtaBpJkFZJRpr99XCPYbK/5RhN3jM0AKcQs9mAxjjDnGUaPOizGmVY+eDADpLD9BA8CLlJ58qTxEFX8NJejXnd43ilEVnMz8Bj5uwNdDgJ3uvXwOcWXVjH2BdIr9PSy9OZooIAr3fj2dTG+B+gMcSvbiFGRjydwgGABMf1bPffD+YysYQKSxeTDyzJpQjBTJ5jDBL7MAOmIKuqRjAYegKOVKo5jDgMPIBntt/IhgBkgHfkkw0jwaOTyDkwhWEmMuX5N952LEALkE1yKZH4k0tBMIHgHwb3iNv4avCghQtYwHcl9hD0r2T0bEMwTVeFxkoXKAFLIhUzE4q5QF6nQQVBHkkfEHN4MWpRMQmkAKexyNbcguAkZsRb3gj12vaWnMsuyhIlQG0AKuYwY+6hEcgMqBO3koGXqgv1AHYLnGMDqzIJMYSQSBpCOXEZvWhmPYBqSy4CRAYu0BcHrSFZQzJr0IoxRIHIGkImsZSAJxiK4BMl5wBjAqz7y7cAmu8HGOmKs9eKGzk8ibwCZ2LeQZVgMR1KOpAwYBJQAxUB/lIEUIr5smBEHOlAKbgNagRZgF4ImBI0k2UoVTV7dygXF/wF+fTz59Jc5ygAAAABJRU5ErkJggg=="}))}async getHistoryKLineData(n,i,o,s){return await((await(await fetch(`https://api.polygon.io/v2/aggs/ticker/${n.ticker}/range/${i.span}/${i.type}/${o}/${s}?apiKey=${this._apiKey}`)).json()).results||[]).map(f=>({timestamp:f.t,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw}))}subscribe(n,i,o){var s,l;this._prevSymbolMarket!==n.market?((s=this._ws)==null||s.close(),this._ws=new WebSocket(`wss://delayed.polygon.io/${n.market}`),this._ws.onopen=()=>{var c;(c=this._ws)==null||c.send(JSON.stringify({action:"auth",params:this._apiKey}))},this._ws.onmessage=c=>{var d;const f=JSON.parse(c.data);f[0].ev==="status"?f[0].status==="auth_success"&&((d=this._ws)==null||d.send(JSON.stringify({action:"subscribe",params:`T.${n.ticker}`}))):"sym"in f&&o({timestamp:f.s,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw})}):(l=this._ws)==null||l.send(JSON.stringify({action:"subscribe",params:`T.${n.ticker}`})),this._prevSymbolMarket=n.market}unsubscribe(n,i){}}const ic=!1,oc=(e,n)=>e===n,_0=Symbol("solid-proxy"),ac=typeof Proxy=="function",sc=Symbol("solid-track"),H1={equals:oc};let Ha=Ga;const Bn=1,W1=2,Wa={owned:null,cleanups:null,context:null,owner:null},v0={};var Ne=null;let b0=null,lc=null,Fe=null,Lt=null,Fn=null,U1=0;function Z1(e,n){const i=Fe,o=Ne,s=e.length===0,l=n===void 0?o:n,c=s?Wa:{owned:null,cleanups:null,context:l?l.context:null,owner:l},f=s?e:()=>e(()=>yn(()=>d1(c)));Ne=c,Fe=null;try{return zn(f,!0)}finally{Fe=i,Ne=o}}function G(e,n){n=n?Object.assign({},H1,n):H1;const i={value:e,observers:null,observerSlots:null,comparator:n.equals||void 0},o=s=>(typeof s=="function"&&(s=s(i.value)),Ya(i,s));return[Za.bind(i),o]}function Ua(e,n,i){const o=Y1(e,n,!0,Bn);kr(o)}function Te(e,n,i){const o=Y1(e,n,!1,Bn);kr(o)}function Ot(e,n,i){Ha=mc;const o=Y1(e,n,!1,Bn);(!i||!i.render)&&(o.user=!0),Fn?Fn.push(o):kr(o)}function Jt(e,n,i){i=i?Object.assign({},H1,i):H1;const o=Y1(e,n,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=i.equals||void 0,kr(o),Za.bind(o)}function cc(e){return e&&typeof e=="object"&&"then"in e}function uc(e,n,i){let o,s,l;typeof n=="function"?(o=e,s=n,l=i||{}):(o=!0,s=e,l=n||{});let c=null,f=v0,d=!1,g="initialValue"in l,_=typeof o=="function"&&Jt(o);const y=new Set,[v,k]=(l.storage||G)(l.initialValue),[b,C]=G(void 0),[L,$]=G(void 0,{equals:!1}),[T,O]=G(g?"ready":"unresolved");function E(z,Q,j,te){return c===z&&(c=null,te!==void 0&&(g=!0),(z===f||Q===f)&&l.onHydrated&&queueMicrotask(()=>l.onHydrated(te,{value:Q})),f=v0,U(Q,j)),Q}function U(z,Q){zn(()=>{Q===void 0&&k(()=>z),O(Q!==void 0?"errored":g?"ready":"unresolved"),C(Q);for(const j of y.keys())j.decrement();y.clear()},!1)}function X(){const z=hc,Q=v(),j=b();if(j!==void 0&&!c)throw j;return Fe&&!Fe.user&&z&&Ua(()=>{L(),c&&(z.resolved||y.has(z)||(z.increment(),y.add(z)))}),Q}function Y(z=!0){if(z!==!1&&d)return;d=!1;const Q=_?_():o;if(Q==null||Q===!1){E(c,yn(v));return}let j;const te=f!==v0?f:yn(()=>{try{return s(Q,{value:v(),refetching:z})}catch(ee){j=ee}});if(j!==void 0){E(c,void 0,Q1(j),Q);return}else if(!cc(te))return E(c,te,void 0,Q),te;return c=te,"v"in te?(te.s===1?E(c,te.v,void 0,Q):E(c,void 0,Q1(te.v),Q),te):(d=!0,queueMicrotask(()=>d=!1),zn(()=>{O(g?"refreshing":"pending"),$()},!1),te.then(ee=>E(te,ee,void 0,Q),ee=>E(te,void 0,Q1(ee),Q)))}Object.defineProperties(X,{state:{get:()=>T()},error:{get:()=>b()},loading:{get(){const z=T();return z==="pending"||z==="refreshing"}},latest:{get(){if(!g)return X();const z=b();if(z&&!c)throw z;return v()}}});let I=Ne;return _?Ua(()=>(I=Ne,Y(!1))):Y(!1),[X,{refetch:z=>fc(I,()=>Y(z)),mutate:k}]}function yn(e){if(Fe===null)return e();const n=Fe;Fe=null;try{return e()}finally{Fe=n}}function C0(e){Ot(()=>yn(e))}function Sr(e){return Ne===null||(Ne.cleanups===null?Ne.cleanups=[e]:Ne.cleanups.push(e)),e}function fc(e,n){const i=Ne,o=Fe;Ne=e,Fe=null;try{return zn(n,!0)}catch(s){x0(s)}finally{Ne=i,Fe=o}}function dc(e){const n=Fe,i=Ne;return Promise.resolve().then(()=>{Fe=n,Ne=i;let o;return zn(e,!1),Fe=Ne=null,o?o.done:void 0})}let hc;function Za(){if(this.sources&&this.state)if(this.state===Bn)kr(this);else{const e=Lt;Lt=null,zn(()=>V1(this),!1),Lt=e}if(Fe){const e=this.observers?this.observers.length:0;Fe.sources?(Fe.sources.push(this),Fe.sourceSlots.push(e)):(Fe.sources=[this],Fe.sourceSlots=[e]),this.observers?(this.observers.push(Fe),this.observerSlots.push(Fe.sources.length-1)):(this.observers=[Fe],this.observerSlots=[Fe.sources.length-1])}return this.value}function Ya(e,n,i){let o=e.value;return(!e.comparator||!e.comparator(o,n))&&(e.value=n,e.observers&&e.observers.length&&zn(()=>{for(let s=0;s<e.observers.length;s+=1){const l=e.observers[s],c=b0&&b0.running;c&&b0.disposed.has(l),(c?!l.tState:!l.state)&&(l.pure?Lt.push(l):Fn.push(l),l.observers&&Va(l)),c||(l.state=Bn)}if(Lt.length>1e6)throw Lt=[],new Error},!1)),n}function kr(e){if(!e.fn)return;d1(e);const n=U1;gc(e,e.value,n)}function gc(e,n,i){let o;const s=Ne,l=Fe;Fe=Ne=e;try{o=e.fn(n)}catch(c){return e.pure&&(e.state=Bn,e.owned&&e.owned.forEach(d1),e.owned=null),e.updatedAt=i+1,x0(c)}finally{Fe=l,Ne=s}(!e.updatedAt||e.updatedAt<=i)&&(e.updatedAt!=null&&"observers"in e?Ya(e,o):e.value=o,e.updatedAt=i)}function Y1(e,n,i,o=Bn,s){const l={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:n,owner:Ne,context:Ne?Ne.context:null,pure:i};return Ne===null||Ne!==Wa&&(Ne.owned?Ne.owned.push(l):Ne.owned=[l]),l}function G1(e){if(e.state===0)return;if(e.state===W1)return V1(e);if(e.suspense&&yn(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<U1);)e.state&&n.push(e);for(let i=n.length-1;i>=0;i--)if(e=n[i],e.state===Bn)kr(e);else if(e.state===W1){const o=Lt;Lt=null,zn(()=>V1(e,n[0]),!1),Lt=o}}function zn(e,n){if(Lt)return e();let i=!1;n||(Lt=[]),Fn?i=!0:Fn=[],U1++;try{const o=e();return pc(i),o}catch(o){i||(Fn=null),Lt=null,x0(o)}}function pc(e){if(Lt&&(Ga(Lt),Lt=null),e)return;const n=Fn;Fn=null,n.length&&zn(()=>Ha(n),!1)}function Ga(e){for(let n=0;n<e.length;n++)G1(e[n])}function mc(e){let n,i=0;for(n=0;n<e.length;n++){const o=e[n];o.user?e[i++]=o:G1(o)}for(n=0;n<i;n++)G1(e[n])}function V1(e,n){e.state=0;for(let i=0;i<e.sources.length;i+=1){const o=e.sources[i];if(o.sources){const s=o.state;s===Bn?o!==n&&(!o.updatedAt||o.updatedAt<U1)&&G1(o):s===W1&&V1(o,n)}}}function Va(e){for(let n=0;n<e.observers.length;n+=1){const i=e.observers[n];i.state||(i.state=W1,i.pure?Lt.push(i):Fn.push(i),i.observers&&Va(i))}}function d1(e){let n;if(e.sources)for(;e.sources.length;){const i=e.sources.pop(),o=e.sourceSlots.pop(),s=i.observers;if(s&&s.length){const l=s.pop(),c=i.observerSlots.pop();o<s.length&&(l.sourceSlots[c]=o,s[o]=l,i.observerSlots[o]=c)}}if(e.tOwned){for(n=e.tOwned.length-1;n>=0;n--)d1(e.tOwned[n]);delete e.tOwned}if(e.owned){for(n=e.owned.length-1;n>=0;n--)d1(e.owned[n]);e.owned=null}if(e.cleanups){for(n=e.cleanups.length-1;n>=0;n--)e.cleanups[n]();e.cleanups=null}e.state=0}function Q1(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function x0(e,n=Ne){throw Q1(e)}const yc=Symbol("fallback");function Qa(e){for(let n=0;n<e.length;n++)e[n]()}function _c(e,n,i={}){let o=[],s=[],l=[],c=0,f=n.length>1?[]:null;return Sr(()=>Qa(l)),()=>{let d=e()||[],g=d.length,_,y;return d[sc],yn(()=>{let k,b,C,L,$,T,O,E,U;if(g===0)c!==0&&(Qa(l),l=[],o=[],s=[],c=0,f&&(f=[])),i.fallback&&(o=[yc],s[0]=Z1(X=>(l[0]=X,i.fallback())),c=1);else if(c===0){for(s=new Array(g),y=0;y<g;y++)o[y]=d[y],s[y]=Z1(v);c=g}else{for(C=new Array(g),L=new Array(g),f&&($=new Array(g)),T=0,O=Math.min(c,g);T<O&&o[T]===d[T];T++);for(O=c-1,E=g-1;O>=T&&E>=T&&o[O]===d[E];O--,E--)C[E]=s[O],L[E]=l[O],f&&($[E]=f[O]);for(k=new Map,b=new Array(E+1),y=E;y>=T;y--)U=d[y],_=k.get(U),b[y]=_===void 0?-1:_,k.set(U,y);for(_=T;_<=O;_++)U=o[_],y=k.get(U),y!==void 0&&y!==-1?(C[y]=s[_],L[y]=l[_],f&&($[y]=f[_]),y=b[y],k.set(U,y)):l[_]();for(y=T;y<g;y++)y in C?(s[y]=C[y],l[y]=L[y],f&&(f[y]=$[y],f[y](y))):s[y]=Z1(v);s=s.slice(0,c=g),o=d.slice(0)}return s});function v(k){if(l[y]=k,f){const[b,C]=G(y);return f[y]=C,n(d[y],b)}return n(d[y])}}}function W(e,n){return yn(()=>e(n||{}))}function j1(){return!0}const vc={get(e,n,i){return n===_0?i:e.get(n)},has(e,n){return n===_0?!0:e.has(n)},set:j1,deleteProperty:j1,getOwnPropertyDescriptor(e,n){return{configurable:!0,enumerable:!0,get(){return e.get(n)},set:j1,deleteProperty:j1}},ownKeys(e){return e.keys()}};function w0(e){return(e=typeof e=="function"?e():e)?e:{}}function bc(){for(let e=0,n=this.length;e<n;++e){const i=this[e]();if(i!==void 0)return i}}function ja(...e){let n=!1;for(let c=0;c<e.length;c++){const f=e[c];n=n||!!f&&_0 in f,e[c]=typeof f=="function"?(n=!0,Jt(f)):f}if(ac&&n)return new Proxy({get(c){for(let f=e.length-1;f>=0;f--){const d=w0(e[f])[c];if(d!==void 0)return d}},has(c){for(let f=e.length-1;f>=0;f--)if(c in w0(e[f]))return!0;return!1},keys(){const c=[];for(let f=0;f<e.length;f++)c.push(...Object.keys(w0(e[f])));return[...new Set(c)]}},vc);const i={},o=Object.create(null);for(let c=e.length-1;c>=0;c--){const f=e[c];if(!f)continue;const d=Object.getOwnPropertyNames(f);for(let g=d.length-1;g>=0;g--){const _=d[g];if(_==="__proto__"||_==="constructor")continue;const y=Object.getOwnPropertyDescriptor(f,_);if(!o[_])o[_]=y.get?{enumerable:!0,configurable:!0,get:bc.bind(i[_]=[y.get.bind(f)])}:y.value!==void 0?y:void 0;else{const v=i[_];v&&(y.get?v.push(y.get.bind(f)):y.value!==void 0&&v.push(()=>y.value))}}}const s={},l=Object.keys(o);for(let c=l.length-1;c>=0;c--){const f=l[c],d=o[f];d&&d.get?Object.defineProperty(s,f,d):s[f]=d?d.value:void 0}return s}const Cc=e=>`Stale read from <${e}>.`;function qa(e){const n="fallback"in e&&{fallback:()=>e.fallback};return Jt(_c(()=>e.each,e.children,n||void 0))}function Pe(e){const n=e.keyed,i=Jt(()=>e.when,void 0,void 0),o=n?i:Jt(i,void 0,{equals:(s,l)=>!s==!l});return Jt(()=>{const s=o();if(s){const l=e.children;return typeof l=="function"&&l.length>0?yn(()=>l(n?s:()=>{if(!yn(o))throw Cc("Show");return i()})):l}return e.fallback},void 0,void 0)}const qe=e=>Jt(()=>e());function xc(e,n,i){let o=i.length,s=n.length,l=o,c=0,f=0,d=n[s-1].nextSibling,g=null;for(;c<s||f<l;){if(n[c]===i[f]){c++,f++;continue}for(;n[s-1]===i[l-1];)s--,l--;if(s===c){const _=l<o?f?i[f-1].nextSibling:i[l-f]:d;for(;f<l;)e.insertBefore(i[f++],_)}else if(l===f)for(;c<s;)(!g||!g.has(n[c]))&&n[c].remove(),c++;else if(n[c]===i[l-1]&&i[f]===n[s-1]){const _=n[--s].nextSibling;e.insertBefore(i[f++],n[c++].nextSibling),e.insertBefore(i[--l],_),n[s]=i[l]}else{if(!g){g=new Map;let y=f;for(;y<l;)g.set(i[y],y++)}const _=g.get(n[c]);if(_!=null)if(f<_&&_<l){let y=c,v=1,k;for(;++y<s&&y<l&&!((k=g.get(n[y]))==null||k!==_+v);)v++;if(v>_-f){const b=n[c];for(;f<_;)e.insertBefore(i[f++],b)}else e.replaceChild(i[f++],n[c++])}else c++;else n[c++].remove()}}}const Xa="_$DX_DELEGATE";function wc(e,n,i,o={}){let s;return Z1(l=>{s=l,n===document?e():K(n,e(),n.firstChild?null:void 0,i)},o.owner),()=>{s(),n.textContent=""}}function N(e,n,i,o){let s;const l=()=>{const f=o?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return f.innerHTML=e,i?f.content.firstChild.firstChild:o?f.firstChild:f.content.firstChild},c=n?()=>yn(()=>document.importNode(s||(s=l()),!0)):()=>(s||(s=l())).cloneNode(!0);return c.cloneNode=c,c}function Ft(e,n=window.document){const i=n[Xa]||(n[Xa]=new Set);for(let o=0,s=e.length;o<s;o++){const l=e[o];i.has(l)||(i.add(l),n.addEventListener(l,Lc))}}function ft(e,n,i){i==null?e.removeAttribute(n):e.setAttribute(n,i)}function Wt(e,n){n==null?e.removeAttribute("class"):e.className=n}function Mn(e,n,i,o){if(o)Array.isArray(i)?(e[`$$${n}`]=i[0],e[`$$${n}Data`]=i[1]):e[`$$${n}`]=i;else if(Array.isArray(i)){const s=i[0];e.addEventListener(n,i[0]=l=>s.call(e,i[1],l))}else e.addEventListener(n,i,typeof i!="function"&&i)}function Xe(e,n,i){if(!n)return i?ft(e,"style"):n;const o=e.style;if(typeof n=="string")return o.cssText=n;typeof i=="string"&&(o.cssText=i=void 0),i||(i={}),n||(n={});let s,l;for(l in i)n[l]==null&&o.removeProperty(l),delete i[l];for(l in n)s=n[l],s!==i[l]&&(o.setProperty(l,s),i[l]=s);return i}function Ar(e,n,i){i!=null?e.style.setProperty(n,i):e.style.removeProperty(n)}function q1(e,n,i){return yn(()=>e(n,i))}function K(e,n,i,o){if(i!==void 0&&!o&&(o=[]),typeof n!="function")return X1(e,n,o,i);Te(s=>X1(e,n(),s,i),o)}function Lc(e){let n=e.target;const i=`$$${e.type}`,o=e.target,s=e.currentTarget,l=d=>Object.defineProperty(e,"target",{configurable:!0,value:d}),c=()=>{const d=n[i];if(d&&!n.disabled){const g=n[`${i}Data`];if(g!==void 0?d.call(n,g,e):d.call(n,e),e.cancelBubble)return}return n.host&&typeof n.host!="string"&&!n.host._$host&&n.contains(e.target)&&l(n.host),!0},f=()=>{for(;c()&&(n=n._$host||n.parentNode||n.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}}),e.composedPath){const d=e.composedPath();l(d[0]);for(let g=0;g<d.length-2&&(n=d[g],!!c());g++){if(n._$host){n=n._$host,f();break}if(n.parentNode===s)break}}else f();l(o)}function X1(e,n,i,o,s){for(;typeof i=="function";)i=i();if(n===i)return i;const l=typeof n,c=o!==void 0;if(e=c&&i[0]&&i[0].parentNode||e,l==="string"||l==="number"){if(l==="number"&&(n=n.toString(),n===i))return i;if(c){let f=i[0];f&&f.nodeType===3?f.data!==n&&(f.data=n):f=document.createTextNode(n),i=Mr(e,i,o,f)}else i!==""&&typeof i=="string"?i=e.firstChild.data=n:i=e.textContent=n}else if(n==null||l==="boolean")i=Mr(e,i,o);else{if(l==="function")return Te(()=>{let f=n();for(;typeof f=="function";)f=f();i=X1(e,f,i,o)}),()=>i;if(Array.isArray(n)){const f=[],d=i&&Array.isArray(i);if(L0(f,n,i,s))return Te(()=>i=X1(e,f,i,o,!0)),()=>i;if(f.length===0){if(i=Mr(e,i,o),c)return i}else d?i.length===0?Ja(e,f,o):xc(e,i,f):(i&&Mr(e),Ja(e,f));i=f}else if(n.nodeType){if(Array.isArray(i)){if(c)return i=Mr(e,i,o,n);Mr(e,i,null,n)}else i==null||i===""||!e.firstChild?e.appendChild(n):e.replaceChild(n,e.firstChild);i=n}}return i}function L0(e,n,i,o){let s=!1;for(let l=0,c=n.length;l<c;l++){let f=n[l],d=i&&i[e.length],g;if(!(f==null||f===!0||f===!1))if((g=typeof f)=="object"&&f.nodeType)e.push(f);else if(Array.isArray(f))s=L0(e,f,d)||s;else if(g==="function")if(o){for(;typeof f=="function";)f=f();s=L0(e,Array.isArray(f)?f:[f],Array.isArray(d)?d:[d])||s}else e.push(f),s=!0;else{const _=String(f);d&&d.nodeType===3&&d.data===_?e.push(d):e.push(document.createTextNode(_))}}return s}function Ja(e,n,i=null){for(let o=0,s=n.length;o<s;o++)e.insertBefore(n[o],i)}function Mr(e,n,i,o){if(i===void 0)return e.textContent="";const s=o||document.createTextNode("");if(n.length){let l=!1;for(let c=n.length-1;c>=0;c--){const f=n[c];if(s!==f){const d=f.parentNode===e;!l&&!c?d?e.replaceChild(s,f):e.insertBefore(s,i):d&&f.remove()}else l=!0}}else e.insertBefore(s,i);return[s]}function $c(){this.__data__=[],this.size=0}var Sc=$c;function kc(e,n){return e===n||e!==e&&n!==n}var es=kc,Ac=es;function Mc(e,n){for(var i=e.length;i--;)if(Ac(e[i][0],n))return i;return-1}var J1=Mc,Tc=J1,Pc=Array.prototype,Oc=Pc.splice;function Ic(e){var n=this.__data__,i=Tc(n,e);if(i<0)return!1;var o=n.length-1;return i==o?n.pop():Oc.call(n,i,1),--this.size,!0}var Ec=Ic,Dc=J1;function Rc(e){var n=this.__data__,i=Dc(n,e);return i<0?void 0:n[i][1]}var Bc=Rc,Fc=J1;function zc(e){return Fc(this.__data__,e)>-1}var Nc=zc,Kc=J1;function Hc(e,n){var i=this.__data__,o=Kc(i,e);return o<0?(++this.size,i.push([e,n])):i[o][1]=n,this}var Wc=Hc,Uc=Sc,Zc=Ec,Yc=Bc,Gc=Nc,Vc=Wc;function Tr(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var o=e[n];this.set(o[0],o[1])}}Tr.prototype.clear=Uc,Tr.prototype.delete=Zc,Tr.prototype.get=Yc,Tr.prototype.has=Gc,Tr.prototype.set=Vc;var ei=Tr,Qc=ei;function jc(){this.__data__=new Qc,this.size=0}var qc=jc;function Xc(e){var n=this.__data__,i=n.delete(e);return this.size=n.size,i}var Jc=Xc;function e3(e){return this.__data__.get(e)}var t3=e3;function n3(e){return this.__data__.has(e)}var r3=n3,i3=typeof Rn=="object"&&Rn&&Rn.Object===Object&&Rn,ts=i3,o3=ts,a3=typeof self=="object"&&self&&self.Object===Object&&self,s3=o3||a3||Function("return this")(),Tn=s3,l3=Tn,c3=l3.Symbol,ti=c3,ns=ti,rs=Object.prototype,u3=rs.hasOwnProperty,f3=rs.toString,h1=ns?ns.toStringTag:void 0;function d3(e){var n=u3.call(e,h1),i=e[h1];try{e[h1]=void 0;var o=!0}catch{}var s=f3.call(e);return o&&(n?e[h1]=i:delete e[h1]),s}var h3=d3,g3=Object.prototype,p3=g3.toString;function m3(e){return p3.call(e)}var y3=m3,is=ti,_3=h3,v3=y3,b3="[object Null]",C3="[object Undefined]",os=is?is.toStringTag:void 0;function x3(e){return e==null?e===void 0?C3:b3:os&&os in Object(e)?_3(e):v3(e)}var g1=x3;function w3(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var Pr=w3,L3=g1,$3=Pr,S3="[object AsyncFunction]",k3="[object Function]",A3="[object GeneratorFunction]",M3="[object Proxy]";function T3(e){if(!$3(e))return!1;var n=L3(e);return n==k3||n==A3||n==S3||n==M3}var as=T3,P3=Tn,O3=P3["__core-js_shared__"],I3=O3,$0=I3,ss=function(){var e=/[^.]+$/.exec($0&&$0.keys&&$0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function E3(e){return!!ss&&ss in e}var D3=E3,R3=Function.prototype,B3=R3.toString;function F3(e){if(e!=null){try{return B3.call(e)}catch{}try{return e+""}catch{}}return""}var ls=F3,z3=as,N3=D3,K3=Pr,H3=ls,W3=/[\\^$.*+?()[\]{}|]/g,U3=/^\[object .+?Constructor\]$/,Z3=Function.prototype,Y3=Object.prototype,G3=Z3.toString,V3=Y3.hasOwnProperty,Q3=RegExp("^"+G3.call(V3).replace(W3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function j3(e){if(!K3(e)||N3(e))return!1;var n=z3(e)?Q3:U3;return n.test(H3(e))}var q3=j3;function X3(e,n){return e==null?void 0:e[n]}var J3=X3,e8=q3,t8=J3;function n8(e,n){var i=t8(e,n);return e8(i)?i:void 0}var dr=n8,r8=dr,i8=Tn,o8=r8(i8,"Map"),S0=o8,a8=dr,s8=a8(Object,"create"),ni=s8,cs=ni;function l8(){this.__data__=cs?cs(null):{},this.size=0}var c8=l8;function u8(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var f8=u8,d8=ni,h8="__lodash_hash_undefined__",g8=Object.prototype,p8=g8.hasOwnProperty;function m8(e){var n=this.__data__;if(d8){var i=n[e];return i===h8?void 0:i}return p8.call(n,e)?n[e]:void 0}var y8=m8,_8=ni,v8=Object.prototype,b8=v8.hasOwnProperty;function C8(e){var n=this.__data__;return _8?n[e]!==void 0:b8.call(n,e)}var x8=C8,w8=ni,L8="__lodash_hash_undefined__";function $8(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=w8&&n===void 0?L8:n,this}var S8=$8,k8=c8,A8=f8,M8=y8,T8=x8,P8=S8;function Or(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var o=e[n];this.set(o[0],o[1])}}Or.prototype.clear=k8,Or.prototype.delete=A8,Or.prototype.get=M8,Or.prototype.has=T8,Or.prototype.set=P8;var O8=Or,us=O8,I8=ei,E8=S0;function D8(){this.size=0,this.__data__={hash:new us,map:new(E8||I8),string:new us}}var R8=D8;function B8(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var F8=B8,z8=F8;function N8(e,n){var i=e.__data__;return z8(n)?i[typeof n=="string"?"string":"hash"]:i.map}var ri=N8,K8=ri;function H8(e){var n=K8(this,e).delete(e);return this.size-=n?1:0,n}var W8=H8,U8=ri;function Z8(e){return U8(this,e).get(e)}var Y8=Z8,G8=ri;function V8(e){return G8(this,e).has(e)}var Q8=V8,j8=ri;function q8(e,n){var i=j8(this,e),o=i.size;return i.set(e,n),this.size+=i.size==o?0:1,this}var X8=q8,J8=R8,e7=W8,t7=Y8,n7=Q8,r7=X8;function Ir(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var o=e[n];this.set(o[0],o[1])}}Ir.prototype.clear=J8,Ir.prototype.delete=e7,Ir.prototype.get=t7,Ir.prototype.has=n7,Ir.prototype.set=r7;var fs=Ir,i7=ei,o7=S0,a7=fs,s7=200;function l7(e,n){var i=this.__data__;if(i instanceof i7){var o=i.__data__;if(!o7||o.length<s7-1)return o.push([e,n]),this.size=++i.size,this;i=this.__data__=new a7(o)}return i.set(e,n),this.size=i.size,this}var c7=l7,u7=ei,f7=qc,d7=Jc,h7=t3,g7=r3,p7=c7;function Er(e){var n=this.__data__=new u7(e);this.size=n.size}Er.prototype.clear=f7,Er.prototype.delete=d7,Er.prototype.get=h7,Er.prototype.has=g7,Er.prototype.set=p7;var m7=Er;function y7(e,n){for(var i=-1,o=e==null?0:e.length;++i<o&&n(e[i],i,e)!==!1;);return e}var _7=y7,v7=dr,b7=function(){try{var e=v7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),C7=b7,ds=C7;function x7(e,n,i){n=="__proto__"&&ds?ds(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i}var hs=x7,w7=hs,L7=es,$7=Object.prototype,S7=$7.hasOwnProperty;function k7(e,n,i){var o=e[n];(!(S7.call(e,n)&&L7(o,i))||i===void 0&&!(n in e))&&w7(e,n,i)}var k0=k7,A7=k0,M7=hs;function T7(e,n,i,o){var s=!i;i||(i={});for(var l=-1,c=n.length;++l<c;){var f=n[l],d=o?o(i[f],e[f],f,i,e):void 0;d===void 0&&(d=e[f]),s?M7(i,f,d):A7(i,f,d)}return i}var ii=T7;function P7(e,n){for(var i=-1,o=Array(e);++i<e;)o[i]=n(i);return o}var O7=P7;function I7(e){return e!=null&&typeof e=="object"}var Dr=I7,E7=g1,D7=Dr,R7="[object Arguments]";function B7(e){return D7(e)&&E7(e)==R7}var F7=B7,gs=F7,z7=Dr,ps=Object.prototype,N7=ps.hasOwnProperty,K7=ps.propertyIsEnumerable,H7=gs(function(){return arguments}())?gs:function(e){return z7(e)&&N7.call(e,"callee")&&!K7.call(e,"callee")},W7=H7,U7=Array.isArray,Rr=U7,oi={exports:{}};function Z7(){return!1}var Y7=Z7;oi.exports,function(e,n){var i=Tn,o=Y7,s=n&&!n.nodeType&&n,l=s&&!0&&e&&!e.nodeType&&e,c=l&&l.exports===s,f=c?i.Buffer:void 0,d=f?f.isBuffer:void 0,g=d||o;e.exports=g}(oi,oi.exports);var ms=oi.exports,G7=9007199254740991,V7=/^(?:0|[1-9]\d*)$/;function Q7(e,n){var i=typeof e;return n=n??G7,!!n&&(i=="number"||i!="symbol"&&V7.test(e))&&e>-1&&e%1==0&&e<n}var ys=Q7,j7=9007199254740991;function q7(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=j7}var _s=q7,X7=g1,J7=_s,eu=Dr,tu="[object Arguments]",nu="[object Array]",ru="[object Boolean]",iu="[object Date]",ou="[object Error]",au="[object Function]",su="[object Map]",lu="[object Number]",cu="[object Object]",uu="[object RegExp]",fu="[object Set]",du="[object String]",hu="[object WeakMap]",gu="[object ArrayBuffer]",pu="[object DataView]",mu="[object Float32Array]",yu="[object Float64Array]",_u="[object Int8Array]",vu="[object Int16Array]",bu="[object Int32Array]",Cu="[object Uint8Array]",xu="[object Uint8ClampedArray]",wu="[object Uint16Array]",Lu="[object Uint32Array]",Ze={};Ze[mu]=Ze[yu]=Ze[_u]=Ze[vu]=Ze[bu]=Ze[Cu]=Ze[xu]=Ze[wu]=Ze[Lu]=!0,Ze[tu]=Ze[nu]=Ze[gu]=Ze[ru]=Ze[pu]=Ze[iu]=Ze[ou]=Ze[au]=Ze[su]=Ze[lu]=Ze[cu]=Ze[uu]=Ze[fu]=Ze[du]=Ze[hu]=!1;function $u(e){return eu(e)&&J7(e.length)&&!!Ze[X7(e)]}var Su=$u;function ku(e){return function(n){return e(n)}}var A0=ku,ai={exports:{}};ai.exports,function(e,n){var i=ts,o=n&&!n.nodeType&&n,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,c=l&&i.process,f=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=f}(ai,ai.exports);var M0=ai.exports,Au=Su,Mu=A0,vs=M0,bs=vs&&vs.isTypedArray,Tu=bs?Mu(bs):Au,Pu=Tu,Ou=O7,Iu=W7,Eu=Rr,Du=ms,Ru=ys,Bu=Pu,Fu=Object.prototype,zu=Fu.hasOwnProperty;function Nu(e,n){var i=Eu(e),o=!i&&Iu(e),s=!i&&!o&&Du(e),l=!i&&!o&&!s&&Bu(e),c=i||o||s||l,f=c?Ou(e.length,String):[],d=f.length;for(var g in e)(n||zu.call(e,g))&&!(c&&(g=="length"||s&&(g=="offset"||g=="parent")||l&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||Ru(g,d)))&&f.push(g);return f}var Cs=Nu,Ku=Object.prototype;function Hu(e){var n=e&&e.constructor,i=typeof n=="function"&&n.prototype||Ku;return e===i}var T0=Hu;function Wu(e,n){return function(i){return e(n(i))}}var xs=Wu,Uu=xs,Zu=Uu(Object.keys,Object),Yu=Zu,Gu=T0,Vu=Yu,Qu=Object.prototype,ju=Qu.hasOwnProperty;function qu(e){if(!Gu(e))return Vu(e);var n=[];for(var i in Object(e))ju.call(e,i)&&i!="constructor"&&n.push(i);return n}var Xu=qu,Ju=as,e4=_s;function t4(e){return e!=null&&e4(e.length)&&!Ju(e)}var ws=t4,n4=Cs,r4=Xu,i4=ws;function o4(e){return i4(e)?n4(e):r4(e)}var P0=o4,a4=ii,s4=P0;function l4(e,n){return e&&a4(n,s4(n),e)}var c4=l4;function u4(e){var n=[];if(e!=null)for(var i in Object(e))n.push(i);return n}var f4=u4,d4=Pr,h4=T0,g4=f4,p4=Object.prototype,m4=p4.hasOwnProperty;function y4(e){if(!d4(e))return g4(e);var n=h4(e),i=[];for(var o in e)o=="constructor"&&(n||!m4.call(e,o))||i.push(o);return i}var _4=y4,v4=Cs,b4=_4,C4=ws;function x4(e){return C4(e)?v4(e,!0):b4(e)}var O0=x4,w4=ii,L4=O0;function $4(e,n){return e&&w4(n,L4(n),e)}var S4=$4,si={exports:{}};si.exports,function(e,n){var i=Tn,o=n&&!n.nodeType&&n,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,c=l?i.Buffer:void 0,f=c?c.allocUnsafe:void 0;function d(g,_){if(_)return g.slice();var y=g.length,v=f?f(y):new g.constructor(y);return g.copy(v),v}e.exports=d}(si,si.exports);var k4=si.exports;function A4(e,n){var i=-1,o=e.length;for(n||(n=Array(o));++i<o;)n[i]=e[i];return n}var M4=A4;function T4(e,n){for(var i=-1,o=e==null?0:e.length,s=0,l=[];++i<o;){var c=e[i];n(c,i,e)&&(l[s++]=c)}return l}var P4=T4;function O4(){return[]}var Ls=O4,I4=P4,E4=Ls,D4=Object.prototype,R4=D4.propertyIsEnumerable,$s=Object.getOwnPropertySymbols,B4=$s?function(e){return e==null?[]:(e=Object(e),I4($s(e),function(n){return R4.call(e,n)}))}:E4,I0=B4,F4=ii,z4=I0;function N4(e,n){return F4(e,z4(e),n)}var K4=N4;function H4(e,n){for(var i=-1,o=n.length,s=e.length;++i<o;)e[s+i]=n[i];return e}var Ss=H4,W4=xs,U4=W4(Object.getPrototypeOf,Object),ks=U4,Z4=Ss,Y4=ks,G4=I0,V4=Ls,Q4=Object.getOwnPropertySymbols,j4=Q4?function(e){for(var n=[];e;)Z4(n,G4(e)),e=Y4(e);return n}:V4,As=j4,q4=ii,X4=As;function J4(e,n){return q4(e,X4(e),n)}var ef=J4,tf=Ss,nf=Rr;function rf(e,n,i){var o=n(e);return nf(e)?o:tf(o,i(e))}var Ms=rf,of=Ms,af=I0,sf=P0;function lf(e){return of(e,sf,af)}var cf=lf,uf=Ms,ff=As,df=O0;function hf(e){return uf(e,df,ff)}var gf=hf,pf=dr,mf=Tn,yf=pf(mf,"DataView"),_f=yf,vf=dr,bf=Tn,Cf=vf(bf,"Promise"),xf=Cf,wf=dr,Lf=Tn,$f=wf(Lf,"Set"),Sf=$f,kf=dr,Af=Tn,Mf=kf(Af,"WeakMap"),Tf=Mf,E0=_f,D0=S0,R0=xf,B0=Sf,F0=Tf,Ts=g1,Br=ls,Ps="[object Map]",Pf="[object Object]",Os="[object Promise]",Is="[object Set]",Es="[object WeakMap]",Ds="[object DataView]",Of=Br(E0),If=Br(D0),Ef=Br(R0),Df=Br(B0),Rf=Br(F0),hr=Ts;(E0&&hr(new E0(new ArrayBuffer(1)))!=Ds||D0&&hr(new D0)!=Ps||R0&&hr(R0.resolve())!=Os||B0&&hr(new B0)!=Is||F0&&hr(new F0)!=Es)&&(hr=function(e){var n=Ts(e),i=n==Pf?e.constructor:void 0,o=i?Br(i):"";if(o)switch(o){case Of:return Ds;case If:return Ps;case Ef:return Os;case Df:return Is;case Rf:return Es}return n});var z0=hr,Bf=Object.prototype,Ff=Bf.hasOwnProperty;function zf(e){var n=e.length,i=new e.constructor(n);return n&&typeof e[0]=="string"&&Ff.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var Nf=zf,Kf=Tn,Hf=Kf.Uint8Array,Wf=Hf,Rs=Wf;function Uf(e){var n=new e.constructor(e.byteLength);return new Rs(n).set(new Rs(e)),n}var N0=Uf,Zf=N0;function Yf(e,n){var i=n?Zf(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var Gf=Yf,Vf=/\w*$/;function Qf(e){var n=new e.constructor(e.source,Vf.exec(e));return n.lastIndex=e.lastIndex,n}var jf=Qf,Bs=ti,Fs=Bs?Bs.prototype:void 0,zs=Fs?Fs.valueOf:void 0;function qf(e){return zs?Object(zs.call(e)):{}}var Xf=qf,Jf=N0;function ed(e,n){var i=n?Jf(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var td=ed,nd=N0,rd=Gf,id=jf,od=Xf,ad=td,sd="[object Boolean]",ld="[object Date]",cd="[object Map]",ud="[object Number]",fd="[object RegExp]",dd="[object Set]",hd="[object String]",gd="[object Symbol]",pd="[object ArrayBuffer]",md="[object DataView]",yd="[object Float32Array]",_d="[object Float64Array]",vd="[object Int8Array]",bd="[object Int16Array]",Cd="[object Int32Array]",xd="[object Uint8Array]",wd="[object Uint8ClampedArray]",Ld="[object Uint16Array]",$d="[object Uint32Array]";function Sd(e,n,i){var o=e.constructor;switch(n){case pd:return nd(e);case sd:case ld:return new o(+e);case md:return rd(e,i);case yd:case _d:case vd:case bd:case Cd:case xd:case wd:case Ld:case $d:return ad(e,i);case cd:return new o;case ud:case hd:return new o(e);case fd:return id(e);case dd:return new o;case gd:return od(e)}}var kd=Sd,Ad=Pr,Ns=Object.create,Md=function(){function e(){}return function(n){if(!Ad(n))return{};if(Ns)return Ns(n);e.prototype=n;var i=new e;return e.prototype=void 0,i}}(),Td=Md,Pd=Td,Od=ks,Id=T0;function Ed(e){return typeof e.constructor=="function"&&!Id(e)?Pd(Od(e)):{}}var Dd=Ed,Rd=z0,Bd=Dr,Fd="[object Map]";function zd(e){return Bd(e)&&Rd(e)==Fd}var Nd=zd,Kd=Nd,Hd=A0,Ks=M0,Hs=Ks&&Ks.isMap,Wd=Hs?Hd(Hs):Kd,Ud=Wd,Zd=z0,Yd=Dr,Gd="[object Set]";function Vd(e){return Yd(e)&&Zd(e)==Gd}var Qd=Vd,jd=Qd,qd=A0,Ws=M0,Us=Ws&&Ws.isSet,Xd=Us?qd(Us):jd,Jd=Xd,eh=m7,th=_7,nh=k0,rh=c4,ih=S4,oh=k4,ah=M4,sh=K4,lh=ef,ch=cf,uh=gf,fh=z0,dh=Nf,hh=kd,gh=Dd,ph=Rr,mh=ms,yh=Ud,_h=Pr,vh=Jd,bh=P0,Ch=O0,xh=1,wh=2,Lh=4,Zs="[object Arguments]",$h="[object Array]",Sh="[object Boolean]",kh="[object Date]",Ah="[object Error]",Ys="[object Function]",Mh="[object GeneratorFunction]",Th="[object Map]",Ph="[object Number]",Gs="[object Object]",Oh="[object RegExp]",Ih="[object Set]",Eh="[object String]",Dh="[object Symbol]",Rh="[object WeakMap]",Bh="[object ArrayBuffer]",Fh="[object DataView]",zh="[object Float32Array]",Nh="[object Float64Array]",Kh="[object Int8Array]",Hh="[object Int16Array]",Wh="[object Int32Array]",Uh="[object Uint8Array]",Zh="[object Uint8ClampedArray]",Yh="[object Uint16Array]",Gh="[object Uint32Array]",He={};He[Zs]=He[$h]=He[Bh]=He[Fh]=He[Sh]=He[kh]=He[zh]=He[Nh]=He[Kh]=He[Hh]=He[Wh]=He[Th]=He[Ph]=He[Gs]=He[Oh]=He[Ih]=He[Eh]=He[Dh]=He[Uh]=He[Zh]=He[Yh]=He[Gh]=!0,He[Ah]=He[Ys]=He[Rh]=!1;function li(e,n,i,o,s,l){var c,f=n&xh,d=n&wh,g=n&Lh;if(i&&(c=s?i(e,o,s,l):i(e)),c!==void 0)return c;if(!_h(e))return e;var _=ph(e);if(_){if(c=dh(e),!f)return ah(e,c)}else{var y=fh(e),v=y==Ys||y==Mh;if(mh(e))return oh(e,f);if(y==Gs||y==Zs||v&&!s){if(c=d||v?{}:gh(e),!f)return d?lh(e,ih(c,e)):sh(e,rh(c,e))}else{if(!He[y])return s?e:{};c=hh(e,y,f)}}l||(l=new eh);var k=l.get(e);if(k)return k;l.set(e,c),vh(e)?e.forEach(function(L){c.add(li(L,n,i,L,e,l))}):yh(e)&&e.forEach(function(L,$){c.set($,li(L,n,i,$,e,l))});var b=g?d?uh:ch:d?Ch:bh,C=_?void 0:b(e);return th(C||e,function(L,$){C&&($=L,L=e[$]),nh(c,$,li(L,n,i,$,e,l))}),c}var Vh=li,Qh=Vh,jh=1,qh=4;function Xh(e){return Qh(e,jh|qh)}var Jh=Xh;const eg=g0(Jh);var tg=g1,ng=Dr,rg="[object Symbol]";function ig(e){return typeof e=="symbol"||ng(e)&&tg(e)==rg}var K0=ig,og=Rr,ag=K0,sg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lg=/^\w*$/;function cg(e,n){if(og(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||ag(e)?!0:lg.test(e)||!sg.test(e)||n!=null&&e in Object(n)}var ug=cg,Vs=fs,fg="Expected a function";function H0(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(fg);var i=function(){var o=arguments,s=n?n.apply(this,o):o[0],l=i.cache;if(l.has(s))return l.get(s);var c=e.apply(this,o);return i.cache=l.set(s,c)||l,c};return i.cache=new(H0.Cache||Vs),i}H0.Cache=Vs;var dg=H0,hg=dg,gg=500;function pg(e){var n=hg(e,function(o){return i.size===gg&&i.clear(),o}),i=n.cache;return n}var mg=pg,yg=mg,_g=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vg=/\\(\\)?/g,bg=yg(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(_g,function(i,o,s,l){n.push(s?l.replace(vg,"$1"):o||i)}),n}),Cg=bg;function xg(e,n){for(var i=-1,o=e==null?0:e.length,s=Array(o);++i<o;)s[i]=n(e[i],i,e);return s}var wg=xg,Qs=ti,Lg=wg,$g=Rr,Sg=K0,kg=1/0,js=Qs?Qs.prototype:void 0,qs=js?js.toString:void 0;function Xs(e){if(typeof e=="string")return e;if($g(e))return Lg(e,Xs)+"";if(Sg(e))return qs?qs.call(e):"";var n=e+"";return n=="0"&&1/e==-kg?"-0":n}var Ag=Xs,Mg=Ag;function Tg(e){return e==null?"":Mg(e)}var Pg=Tg,Og=Rr,Ig=ug,Eg=Cg,Dg=Pg;function Rg(e,n){return Og(e)?e:Ig(e,n)?[e]:Eg(Dg(e))}var Bg=Rg,Fg=K0,zg=1/0;function Ng(e){if(typeof e=="string"||Fg(e))return e;var n=e+"";return n=="0"&&1/e==-zg?"-0":n}var Kg=Ng,Hg=k0,Wg=Bg,Ug=ys,Js=Pr,Zg=Kg;function Yg(e,n,i,o){if(!Js(e))return e;n=Wg(n,e);for(var s=-1,l=n.length,c=l-1,f=e;f!=null&&++s<l;){var d=Zg(n[s]),g=i;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(s!=c){var _=f[d];g=o?o(_,d,f):void 0,g===void 0&&(g=Js(_)?_:Ug(n[s+1])?[]:{})}Hg(f,d,g),f=f[d]}return e}var Gg=Yg,Vg=Gg;function Qg(e,n,i){return e==null?e:Vg(e,n,i)}var jg=Qg;const p1=g0(jg);var qg=N("<button>");const Xg=e=>(()=>{var n=qg();return Mn(n,"click",e.onClick,!0),K(n,()=>e.children),Te(i=>{var o=e.style,s=`klinecharts-pro-button ${e.type??"confirm"} ${e.class??""}`;return i.e=Xe(n,o,i.e),s!==i.t&&Wt(n,i.t=s),i},{e:void 0,t:void 0}),n})();Ft(["click"]);var Jg=N('<svg viewBox="0 0 1024 1024"class=icon><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m-353.706667 567.04a42.496 42.496 0 0 1-60.16 0L243.626667 541.866667c-8.106667-8.106667-12.373333-18.773333-12.373334-29.866667s4.693333-22.186667 12.373334-29.866667a42.496 42.496 0 0 1 60.16 0L426.666667 604.586667l293.546666-293.546667a42.496 42.496 0 1 1 60.16 60.16l-323.413333 323.84z">'),ep=N('<svg viewBox="0 0 1024 1024"class=icon><path d="M245.333333 128h533.333334A117.333333 117.333333 0 0 1 896 245.333333v533.333334A117.333333 117.333333 0 0 1 778.666667 896H245.333333A117.333333 117.333333 0 0 1 128 778.666667V245.333333A117.333333 117.333333 0 0 1 245.333333 128z m0 64c-29.44 0-53.333333 23.893333-53.333333 53.333333v533.333334c0 29.44 23.893333 53.333333 53.333333 53.333333h533.333334c29.44 0 53.333333-23.893333 53.333333-53.333333V245.333333c0-29.44-23.893333-53.333333-53.333333-53.333333H245.333333z">'),tp=N("<div>"),np=N("<span class=label>");const rp=()=>Jg(),ip=()=>ep(),e9=e=>{const[n,i]=G(e.checked??!1);return Ot(()=>{"checked"in e&&i(e.checked)}),(()=>{var o=tp();return o.$$click=s=>{const l=!n();e.onChange&&e.onChange(l),i(l)},K(o,(()=>{var s=qe(()=>!!n());return()=>s()?W(rp,{}):W(ip,{})})(),null),K(o,(()=>{var s=qe(()=>!!e.label);return()=>s()&&(()=>{var l=np();return K(l,()=>e.label),l})()})(),null),Te(s=>{var l=e.style,c=`klinecharts-pro-checkbox ${n()&&"checked"||""} ${e.class||""}`;return s.e=Xe(o,l,s.e),c!==s.t&&Wt(o,s.t=c),s},{e:void 0,t:void 0}),o})()};Ft(["click"]);var op=N("<div class=klinecharts-pro-loading><i class=circle1></i><i class=circle2></i><i class=circle3>");const t9=()=>op();var ap=N('<div class=klinecharts-pro-empty><svg class=icon viewBox="0 0 1024 1024"><path d="M855.6 427.2H168.5c-12.7 0-24.4 6.9-30.6 18L4.4 684.7C1.5 689.9 0 695.8 0 701.8v287.1c0 19.4 15.7 35.1 35.1 35.1H989c19.4 0 35.1-15.7 35.1-35.1V701.8c0-6-1.5-11.8-4.4-17.1L886.2 445.2c-6.2-11.1-17.9-18-30.6-18zM673.4 695.6c-16.5 0-30.8 11.5-34.3 27.7-12.7 58.5-64.8 102.3-127.2 102.3s-114.5-43.8-127.2-102.3c-3.5-16.1-17.8-27.7-34.3-27.7H119c-26.4 0-43.3-28-31.1-51.4l81.7-155.8c6.1-11.6 18-18.8 31.1-18.8h622.4c13 0 25 7.2 31.1 18.8l81.7 155.8c12.2 23.4-4.7 51.4-31.1 51.4H673.4zM819.9 209.5c-1-1.8-2.1-3.7-3.2-5.5-9.8-16.6-31.1-22.2-47.8-12.6L648.5 261c-17 9.8-22.7 31.6-12.6 48.4 0.9 1.4 1.7 2.9 2.5 4.4 9.5 17 31.2 22.8 48 13L807 257.3c16.7-9.7 22.4-31 12.9-47.8zM375.4 261.1L255 191.6c-16.7-9.6-38-4-47.8 12.6-1.1 1.8-2.1 3.6-3.2 5.5-9.5 16.8-3.8 38.1 12.9 47.8L337.3 327c16.9 9.7 38.6 4 48-13.1 0.8-1.5 1.7-2.9 2.5-4.4 10.2-16.8 4.5-38.6-12.4-48.4zM512 239.3h2.5c19.5 0.3 35.5-15.5 35.5-35.1v-139c0-19.3-15.6-34.9-34.8-35.1h-6.4C489.6 30.3 474 46 474 65.2v139c0 19.5 15.9 35.4 35.5 35.1h2.5z">');const sp=()=>ap();var lp=N("<ul>"),cp=N("<li>");const ci=e=>(()=>{var n=lp();return K(n,W(Pe,{get when(){return e.loading},get children(){return W(t9,{})}}),null),K(n,W(Pe,{get when(){var i;return qe(()=>!e.loading&&!e.children)()&&!((i=e.dataSource)!=null&&i.length)},get children(){return W(sp,{})}}),null),K(n,W(Pe,{get when(){return e.children},get children(){return e.children}}),null),K(n,W(Pe,{get when(){return!e.children},get children(){var i;return(i=e.dataSource)==null?void 0:i.map(o=>{var s;return((s=e.renderItem)==null?void 0:s.call(e,o))??cp()})}}),null),Te(i=>{var o=e.style,s=`klinecharts-pro-list ${e.class??""}`;return i.e=Xe(n,o,i.e),s!==i.t&&Wt(n,i.t=s),i},{e:void 0,t:void 0}),n})(),Fr=[];let up=0,ui=!1;function n9(e){if(e.key!=="Escape")return;const n=Fr[Fr.length-1];n&&(e.preventDefault(),e.stopPropagation(),n.close())}function fp(){ui||(window.addEventListener("keydown",n9,!0),ui=!0)}function dp(){Fr.length===0&&ui&&(window.removeEventListener("keydown",n9,!0),ui=!1)}function hp(e){const n=up++;return Fr.push({id:n,close:e}),fp(),()=>{const i=Fr.findIndex(o=>o.id===n);i>=0&&Fr.splice(i,1),dp()}}var gp=N('<div class=klinecharts-pro-modal><div><div class=title-container><svg class=close-icon viewBox="0 0 1024 1024"><path d="M934.184927 199.723787 622.457206 511.452531l311.727721 311.703161c14.334473 14.229073 23.069415 33.951253 23.069415 55.743582 0 43.430138-35.178197 78.660524-78.735226 78.660524-21.664416 0-41.361013-8.865925-55.642275-23.069415L511.149121 622.838388 199.420377 934.490384c-14.204513 14.20349-33.901111 23.069415-55.642275 23.069415-43.482327 0-78.737272-35.230386-78.737272-78.660524 0-21.792329 8.864902-41.513486 23.094998-55.743582l311.677579-311.703161L88.135828 199.723787c-14.230096-14.255679-23.094998-33.92567-23.094998-55.642275 0-43.430138 35.254945-78.762855 78.737272-78.762855 21.741163 0 41.437761 8.813736 55.642275 23.069415l311.727721 311.727721L822.876842 88.389096c14.281261-14.255679 33.977859-23.069415 55.642275-23.069415 43.557028 0 78.735226 35.332716 78.735226 78.762855C957.254342 165.798117 948.5194 185.468109 934.184927 199.723787"></path></svg></div><div class=content-container>'),pp=N("<div class=button-container>");const Pn=e=>{let n=null;C0(()=>{if(!e.onClose)return;const d=hp(()=>{var g;(g=e.onClose)==null||g.call(e)});Sr(d)});const i=d=>{var g;d.target===d.currentTarget&&((g=e.onClose)==null||g.call(e))},o={};e.width!=null&&(o.width=`${e.width}px`,o["max-width"]=`${e.width}px`),e.height!=null&&(o.height=`${e.height}px`,o["max-height"]=`${e.height}px`);const s=(d,g)=>{if(!d||!(d instanceof Element)||g===0)return!1;let _=d;for(;_;){const y=window.getComputedStyle(_);if((y.overflowY==="auto"||y.overflowY==="scroll"||y.overflowY==="overlay")&&_.scrollHeight>_.clientHeight)return g>0?_.scrollTop+_.clientHeight<_.scrollHeight:_.scrollTop>0;_=_.parentElement}return!1},l=d=>{d.stopPropagation(),s(d.target,d.deltaY)||d.preventDefault()},c=d=>{d.touches.length>0&&(n=d.touches[0].clientY)},f=d=>{if(d.stopPropagation(),d.touches.length===0||n==null){d.preventDefault();return}const g=d.touches[0].clientY,_=n-g;n=g,s(d.target,_)||d.preventDefault()};return(()=>{var d=gp(),g=d.firstChild,_=g.firstChild,y=_.firstChild,v=_.nextSibling;return d.$$click=i,g.$$touchmove=f,g.$$touchstart=c,g.addEventListener("wheel",l),K(_,()=>e.title,y),Mn(y,"click",e.onClose,!0),K(v,()=>e.children),K(g,(()=>{var k=qe(()=>!!(e.buttons&&e.buttons.length>0));return()=>k()&&(()=>{var b=pp();return K(b,()=>e.buttons.map(C=>W(Xg,ja(C,{get children(){return C.children}})))),b})()})(),null),Te(k=>{var b=`inner${e.height!=null?" inner--fixed-height":""}`,C=o;return b!==k.e&&Wt(g,k.e=b),k.t=Xe(g,C,k.t),k},{e:void 0,t:void 0}),d})()};Ft(["click","touchstart","touchmove"]);var mp=N("<div tabindex=0><div class=selector-container><span class=value></span><i class=arrow>"),yp=N("<div class=drop-down-container><ul>"),_p=N("<li>");const m1=e=>{const[n,i]=G(!1);return(()=>{var o=mp(),s=o.firstChild,l=s.firstChild;return o.addEventListener("blur",c=>{i(!1)}),o.$$click=c=>{i(f=>!f)},K(l,()=>e.value),K(o,(()=>{var c=qe(()=>!!(e.dataSource&&e.dataSource.length>0));return()=>c()&&(()=>{var f=yp(),d=f.firstChild;return K(d,()=>e.dataSource.map(g=>{const y=g[e.valueKey??"text"]??g;return(()=>{var v=_p();return v.$$click=k=>{var b;k.stopPropagation(),e.value!==y&&((b=e.onSelected)==null||b.call(e,g)),i(!1)},K(v,y),v})()})),f})()})(),null),Te(c=>{var f=e.style,d=`klinecharts-pro-select ${e.class??""} ${n()?"klinecharts-pro-select-show":""}`;return c.e=Xe(o,f,c.e),d!==c.t&&Wt(o,c.t=d),c},{e:void 0,t:void 0}),o})()};Ft(["click"]);var vp=N("<span class=prefix>"),bp=N("<span class=suffix>"),Cp=N("<div><input id=myInput class=value>");const[xp,PA]=G("klinecharts-pro-input klinecharts-pro-timeframe-modal-input"),r9=e=>{const n=ja({min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER},e);let i;const[o,s]=G("normal"),l=c=>{c&&c.focus()};return Ot(()=>{l(document.querySelector("#myInput"))}),(()=>{var c=Cp(),f=c.firstChild;c.$$click=()=>{i==null||i.focus()},K(c,W(Pe,{get when(){return n.prefix},get children(){var g=vp();return K(g,()=>n.prefix),g}}),f),Mn(f,"keydown",n.onKeyDown,!0),f.addEventListener("change",g=>{var y,v;const _=g.target.value;if("precision"in n){let k;const b=Math.max(0,Math.floor(n.precision));b<=0?k=new RegExp(/^[1-9]\d*$/):k=new RegExp("^\\d+\\.?\\d{0,"+b+"}$"),(_===""||k.test(_)&&+_>=n.min&&+_<=n.max)&&((y=n.onChange)==null||y.call(n,_===""?_:+_))}else(v=n.onChange)==null||v.call(n,_)}),f.addEventListener("blur",()=>{s("normal")}),f.addEventListener("focus",()=>{s("focus")});var d=i;return typeof d=="function"?q1(d,f):i=f,K(c,W(Pe,{get when(){return n.suffix},get children(){var g=bp();return K(g,()=>n.suffix),g}}),null),Te(g=>{var _=n.style,y=`${xp()}${n.class??""}`,v=o(),k=n.placeholder??"",b=n.focus===!0?n.focus:!1;return g.e=Xe(c,_,g.e),y!==g.t&&Wt(c,g.t=y),v!==g.a&&ft(c,"data-status",g.a=v),k!==g.o&&ft(f,"placeholder",g.o=k),b!==g.i&&(f.autofocus=g.i=b),g},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Te(()=>f.value=n.value),c})()};Ft(["click","keydown"]);var wp=N("<div><i class=thumb>");const y1=e=>(()=>{var n=wp();return n.$$click=i=>{e.onChange&&e.onChange()},Te(i=>{var o=e.style,s=`klinecharts-pro-switch ${e.open?"turn-on":"turn-off"} ${e.class??""}`;return i.e=Xe(n,o,i.e),s!==i.t&&Wt(n,i.t=s),i},{e:void 0,t:void 0}),n})();Ft(["click"]);const{min:Lp,max:$p}=Math,gr=(e,n=0,i=1)=>Lp($p(n,e),i),W0=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let n=0;n<=3;n++)n<3?((e[n]<0||e[n]>255)&&(e._clipped=!0),e[n]=gr(e[n],0,255)):n===3&&(e[n]=gr(e[n],0,1));return e},i9={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])i9[`[object ${e}]`]=e.toLowerCase();function we(e){return i9[Object.prototype.toString.call(e)]||"object"}const _e=(e,n=null)=>e.length>=3?Array.prototype.slice.call(e):we(e[0])=="object"&&n?n.split("").filter(i=>e[0][i]!==void 0).map(i=>e[0][i]):e[0].slice(0),zr=e=>{if(e.length<2)return null;const n=e.length-1;return we(e[n])=="string"?e[n].toLowerCase():null},{PI:fi,min:o9,max:a9}=Math,en=e=>Math.round(e*100)/100,U0=e=>Math.round(e*100)/100,Nn=fi*2,Z0=fi/3,Sp=fi/180,kp=180/fi;function s9(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const pe={format:{},autodetect:[]};let Z=class{constructor(...n){const i=this;if(we(n[0])==="object"&&n[0].constructor&&n[0].constructor===this.constructor)return n[0];let o=zr(n),s=!1;if(!o){s=!0,pe.sorted||(pe.autodetect=pe.autodetect.sort((l,c)=>c.p-l.p),pe.sorted=!0);for(let l of pe.autodetect)if(o=l.test(...n),o)break}if(pe.format[o]){const l=pe.format[o].apply(null,s?n:n.slice(0,-1));i._rgb=W0(l)}else throw new Error("unknown format: "+n);i._rgb.length===3&&i._rgb.push(1)}toString(){return we(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const Ap="3.2.0",ge=(...e)=>new Z(...e);ge.version=Ap;const Nr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",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",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Mp=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Tp=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,l9=e=>{if(e.match(Mp)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const n=parseInt(e,16),i=n>>16,o=n>>8&255,s=n&255;return[i,o,s,1]}if(e.match(Tp)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const n=parseInt(e,16),i=n>>24&255,o=n>>16&255,s=n>>8&255,l=Math.round((n&255)/255*100)/100;return[i,o,s,l]}throw new Error(`unknown hex color: ${e}`)},{round:di}=Math,c9=(...e)=>{let[n,i,o,s]=_e(e,"rgba"),l=zr(e)||"auto";s===void 0&&(s=1),l==="auto"&&(l=s<1?"rgba":"rgb"),n=di(n),i=di(i),o=di(o);let f="000000"+(n<<16|i<<8|o).toString(16);f=f.substr(f.length-6);let d="0"+di(s*255).toString(16);switch(d=d.substr(d.length-2),l.toLowerCase()){case"rgba":return`#${f}${d}`;case"argb":return`#${d}${f}`;default:return`#${f}`}};Z.prototype.name=function(){const e=c9(this._rgb,"rgb");for(let n of Object.keys(Nr))if(Nr[n]===e)return n.toLowerCase();return e},pe.format.named=e=>{if(e=e.toLowerCase(),Nr[e])return l9(Nr[e]);throw new Error("unknown color name: "+e)},pe.autodetect.push({p:5,test:(e,...n)=>{if(!n.length&&we(e)==="string"&&Nr[e.toLowerCase()])return"named"}}),Z.prototype.alpha=function(e,n=!1){return e!==void 0&&we(e)==="number"?n?(this._rgb[3]=e,this):new Z([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},Z.prototype.clipped=function(){return this._rgb._clipped||!1};const On={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},Pp=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function Kn(e){const n=Pp.get(String(e).toLowerCase());if(!n)throw new Error("unknown Lab illuminant "+e);On.labWhitePoint=e,On.Xn=n[0],On.Zn=n[1]}function _1(){return On.labWhitePoint}const Y0=(...e)=>{e=_e(e,"lab");const[n,i,o]=e,[s,l,c]=Op(n,i,o),[f,d,g]=u9(s,l,c);return[f,d,g,e.length>3?e[3]:1]},Op=(e,n,i)=>{const{kE:o,kK:s,kKE:l,Xn:c,Yn:f,Zn:d}=On,g=(e+16)/116,_=.002*n+g,y=g-.005*i,v=_*_*_,k=y*y*y,b=v>o?v:(116*_-16)/s,C=e>l?Math.pow((e+16)/116,3):e/s,L=k>o?k:(116*y-16)/s,$=b*c,T=C*f,O=L*d;return[$,T,O]},G0=e=>{const n=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*n},u9=(e,n,i)=>{const{MtxAdaptMa:o,MtxAdaptMaI:s,MtxXYZ2RGB:l,RefWhiteRGB:c,Xn:f,Yn:d,Zn:g}=On,_=f*o.m00+d*o.m10+g*o.m20,y=f*o.m01+d*o.m11+g*o.m21,v=f*o.m02+d*o.m12+g*o.m22,k=c.X*o.m00+c.Y*o.m10+c.Z*o.m20,b=c.X*o.m01+c.Y*o.m11+c.Z*o.m21,C=c.X*o.m02+c.Y*o.m12+c.Z*o.m22,L=(e*o.m00+n*o.m10+i*o.m20)*(k/_),$=(e*o.m01+n*o.m11+i*o.m21)*(b/y),T=(e*o.m02+n*o.m12+i*o.m22)*(C/v),O=L*s.m00+$*s.m10+T*s.m20,E=L*s.m01+$*s.m11+T*s.m21,U=L*s.m02+$*s.m12+T*s.m22,X=G0(O*l.m00+E*l.m10+U*l.m20),Y=G0(O*l.m01+E*l.m11+U*l.m21),I=G0(O*l.m02+E*l.m12+U*l.m22);return[X*255,Y*255,I*255]},V0=(...e)=>{const[n,i,o,...s]=_e(e,"rgb"),[l,c,f]=f9(n,i,o),[d,g,_]=Ip(l,c,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]};function Ip(e,n,i){const{Xn:o,Yn:s,Zn:l,kE:c,kK:f}=On,d=e/o,g=n/s,_=i/l,y=d>c?Math.pow(d,1/3):(f*d+16)/116,v=g>c?Math.pow(g,1/3):(f*g+16)/116,k=_>c?Math.pow(_,1/3):(f*_+16)/116;return[116*v-16,500*(y-v),200*(v-k)]}function Q0(e){const n=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*n}const f9=(e,n,i)=>{e=Q0(e/255),n=Q0(n/255),i=Q0(i/255);const{MtxRGB2XYZ:o,MtxAdaptMa:s,MtxAdaptMaI:l,Xn:c,Yn:f,Zn:d,As:g,Bs:_,Cs:y}=On;let v=e*o.m00+n*o.m10+i*o.m20,k=e*o.m01+n*o.m11+i*o.m21,b=e*o.m02+n*o.m12+i*o.m22;const C=c*s.m00+f*s.m10+d*s.m20,L=c*s.m01+f*s.m11+d*s.m21,$=c*s.m02+f*s.m12+d*s.m22;let T=v*s.m00+k*s.m10+b*s.m20,O=v*s.m01+k*s.m11+b*s.m21,E=v*s.m02+k*s.m12+b*s.m22;return T*=C/g,O*=L/_,E*=$/y,v=T*l.m00+O*l.m10+E*l.m20,k=T*l.m01+O*l.m11+E*l.m21,b=T*l.m02+O*l.m12+E*l.m22,[v,k,b]};Z.prototype.lab=function(){return V0(this._rgb)},Object.assign(ge,{lab:(...e)=>new Z(...e,"lab"),getLabWhitePoint:_1,setLabWhitePoint:Kn}),pe.format.lab=Y0,pe.autodetect.push({p:2,test:(...e)=>{if(e=_e(e,"lab"),we(e)==="array"&&e.length===3)return"lab"}}),Z.prototype.darken=function(e=1){const n=this,i=n.lab();return i[0]-=On.Kn*e,new Z(i,"lab").alpha(n.alpha(),!0)},Z.prototype.brighten=function(e=1){return this.darken(-e)},Z.prototype.darker=Z.prototype.darken,Z.prototype.brighter=Z.prototype.brighten,Z.prototype.get=function(e){const[n,i]=e.split("."),o=this[n]();if(i){const s=n.indexOf(i)-(n.substr(0,2)==="ok"?2:0);if(s>-1)return o[s];throw new Error(`unknown channel ${i} in mode ${n}`)}else return o};const{pow:Ep}=Math,Dp=1e-7,Rp=20;Z.prototype.luminance=function(e,n="rgb"){if(e!==void 0&&we(e)==="number"){if(e===0)return new Z([0,0,0,this._rgb[3]],"rgb");if(e===1)return new Z([255,255,255,this._rgb[3]],"rgb");let i=this.luminance(),o=Rp;const s=(c,f)=>{const d=c.interpolate(f,.5,n),g=d.luminance();return Math.abs(e-g)<Dp||!o--?d:g>e?s(c,d):s(d,f)},l=(i>e?s(new Z([0,0,0]),this):s(this,new Z([255,255,255]))).rgb();return new Z([...l,this._rgb[3]])}return Bp(...this._rgb.slice(0,3))};const Bp=(e,n,i)=>(e=j0(e),n=j0(n),i=j0(i),.2126*e+.7152*n+.0722*i),j0=e=>(e/=255,e<=.03928?e/12.92:Ep((e+.055)/1.055,2.4)),$t={},Kr=(e,n,i=.5,...o)=>{let s=o[0]||"lrgb";if(!$t[s]&&!o.length&&(s=Object.keys($t)[0]),!$t[s])throw new Error(`interpolation mode ${s} is not defined`);return we(e)!=="object"&&(e=new Z(e)),we(n)!=="object"&&(n=new Z(n)),$t[s](e,n,i).alpha(e.alpha()+i*(n.alpha()-e.alpha()))};Z.prototype.mix=Z.prototype.interpolate=function(e,n=.5,...i){return Kr(this,e,n,...i)},Z.prototype.premultiply=function(e=!1){const n=this._rgb,i=n[3];return e?(this._rgb=[n[0]*i,n[1]*i,n[2]*i,i],this):new Z([n[0]*i,n[1]*i,n[2]*i,i],"rgb")};const{sin:Fp,cos:zp}=Math,d9=(...e)=>{let[n,i,o]=_e(e,"lch");return isNaN(o)&&(o=0),o=o*Sp,[n,zp(o)*i,Fp(o)*i]},q0=(...e)=>{e=_e(e,"lch");const[n,i,o]=e,[s,l,c]=d9(n,i,o),[f,d,g]=Y0(s,l,c);return[f,d,g,e.length>3?e[3]:1]},Np=(...e)=>{const n=s9(_e(e,"hcl"));return q0(...n)},{sqrt:Kp,atan2:Hp,round:Wp}=Math,h9=(...e)=>{const[n,i,o]=_e(e,"lab"),s=Kp(i*i+o*o);let l=(Hp(o,i)*kp+360)%360;return Wp(s*1e4)===0&&(l=Number.NaN),[n,s,l]},X0=(...e)=>{const[n,i,o,...s]=_e(e,"rgb"),[l,c,f]=V0(n,i,o),[d,g,_]=h9(l,c,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]};Z.prototype.lch=function(){return X0(this._rgb)},Z.prototype.hcl=function(){return s9(X0(this._rgb))},Object.assign(ge,{lch:(...e)=>new Z(...e,"lch"),hcl:(...e)=>new Z(...e,"hcl")}),pe.format.lch=q0,pe.format.hcl=Np,["lch","hcl"].forEach(e=>pe.autodetect.push({p:2,test:(...n)=>{if(n=_e(n,e),we(n)==="array"&&n.length===3)return e}})),Z.prototype.saturate=function(e=1){const n=this,i=n.lch();return i[1]+=On.Kn*e,i[1]<0&&(i[1]=0),new Z(i,"lch").alpha(n.alpha(),!0)},Z.prototype.desaturate=function(e=1){return this.saturate(-e)},Z.prototype.set=function(e,n,i=!1){const[o,s]=e.split("."),l=this[o]();if(s){const c=o.indexOf(s)-(o.substr(0,2)==="ok"?2:0);if(c>-1){if(we(n)=="string")switch(n.charAt(0)){case"+":l[c]+=+n;break;case"-":l[c]+=+n;break;case"*":l[c]*=+n.substr(1);break;case"/":l[c]/=+n.substr(1);break;default:l[c]=+n}else if(we(n)==="number")l[c]=n;else throw new Error("unsupported value for Color.set");const f=new Z(l,o);return i?(this._rgb=f._rgb,this):f}throw new Error(`unknown channel ${s} in mode ${o}`)}else return l},Z.prototype.tint=function(e=.5,...n){return Kr(this,"white",e,...n)},Z.prototype.shade=function(e=.5,...n){return Kr(this,"black",e,...n)};const Up=(e,n,i)=>{const o=e._rgb,s=n._rgb;return new Z(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"rgb")};$t.rgb=Up;const{sqrt:J0,pow:Hr}=Math,Zp=(e,n,i)=>{const[o,s,l]=e._rgb,[c,f,d]=n._rgb;return new Z(J0(Hr(o,2)*(1-i)+Hr(c,2)*i),J0(Hr(s,2)*(1-i)+Hr(f,2)*i),J0(Hr(l,2)*(1-i)+Hr(d,2)*i),"rgb")};$t.lrgb=Zp;const Yp=(e,n,i)=>{const o=e.lab(),s=n.lab();return new Z(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"lab")};$t.lab=Yp;const Wr=(e,n,i,o)=>{let s,l;o==="hsl"?(s=e.hsl(),l=n.hsl()):o==="hsv"?(s=e.hsv(),l=n.hsv()):o==="hcg"?(s=e.hcg(),l=n.hcg()):o==="hsi"?(s=e.hsi(),l=n.hsi()):o==="lch"||o==="hcl"?(o="hcl",s=e.hcl(),l=n.hcl()):o==="oklch"&&(s=e.oklch().reverse(),l=n.oklch().reverse());let c,f,d,g,_,y;(o.substr(0,1)==="h"||o==="oklch")&&([c,d,_]=s,[f,g,y]=l);let v,k,b,C;return!isNaN(c)&&!isNaN(f)?(f>c&&f-c>180?C=f-(c+360):f<c&&c-f>180?C=f+360-c:C=f-c,k=c+i*C):isNaN(c)?isNaN(f)?k=Number.NaN:(k=f,(_==1||_==0)&&o!="hsv"&&(v=g)):(k=c,(y==1||y==0)&&o!="hsv"&&(v=d)),v===void 0&&(v=d+i*(g-d)),b=_+i*(y-_),o==="oklch"?new Z([b,v,k],o):new Z([k,v,b],o)},g9=(e,n,i)=>Wr(e,n,i,"lch");$t.lch=g9,$t.hcl=g9;const Gp=e=>{if(we(e)=="number"&&e>=0&&e<=16777215){const n=e>>16,i=e>>8&255,o=e&255;return[n,i,o,1]}throw new Error("unknown num color: "+e)},Vp=(...e)=>{const[n,i,o]=_e(e,"rgb");return(n<<16)+(i<<8)+o};Z.prototype.num=function(){return Vp(this._rgb)},Object.assign(ge,{num:(...e)=>new Z(...e,"num")}),pe.format.num=Gp,pe.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&we(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const Qp=(e,n,i)=>{const o=e.num(),s=n.num();return new Z(o+i*(s-o),"num")};$t.num=Qp;const{floor:jp}=Math,qp=(...e)=>{e=_e(e,"hcg");let[n,i,o]=e,s,l,c;o=o*255;const f=i*255;if(i===0)s=l=c=o;else{n===360&&(n=0),n>360&&(n-=360),n<0&&(n+=360),n/=60;const d=jp(n),g=n-d,_=o*(1-i),y=_+f*(1-g),v=_+f*g,k=_+f;switch(d){case 0:[s,l,c]=[k,v,_];break;case 1:[s,l,c]=[y,k,_];break;case 2:[s,l,c]=[_,k,v];break;case 3:[s,l,c]=[_,y,k];break;case 4:[s,l,c]=[v,_,k];break;case 5:[s,l,c]=[k,_,y];break}}return[s,l,c,e.length>3?e[3]:1]},Xp=(...e)=>{const[n,i,o]=_e(e,"rgb"),s=o9(n,i,o),l=a9(n,i,o),c=l-s,f=c*100/255,d=s/(255-c)*100;let g;return c===0?g=Number.NaN:(n===l&&(g=(i-o)/c),i===l&&(g=2+(o-n)/c),o===l&&(g=4+(n-i)/c),g*=60,g<0&&(g+=360)),[g,f,d]};Z.prototype.hcg=function(){return Xp(this._rgb)};const Jp=(...e)=>new Z(...e,"hcg");ge.hcg=Jp,pe.format.hcg=qp,pe.autodetect.push({p:1,test:(...e)=>{if(e=_e(e,"hcg"),we(e)==="array"&&e.length===3)return"hcg"}});const em=(e,n,i)=>Wr(e,n,i,"hcg");$t.hcg=em;const{cos:Ur}=Math,tm=(...e)=>{e=_e(e,"hsi");let[n,i,o]=e,s,l,c;return isNaN(n)&&(n=0),isNaN(i)&&(i=0),n>360&&(n-=360),n<0&&(n+=360),n/=360,n<1/3?(c=(1-i)/3,s=(1+i*Ur(Nn*n)/Ur(Z0-Nn*n))/3,l=1-(c+s)):n<2/3?(n-=1/3,s=(1-i)/3,l=(1+i*Ur(Nn*n)/Ur(Z0-Nn*n))/3,c=1-(s+l)):(n-=2/3,l=(1-i)/3,c=(1+i*Ur(Nn*n)/Ur(Z0-Nn*n))/3,s=1-(l+c)),s=gr(o*s*3),l=gr(o*l*3),c=gr(o*c*3),[s*255,l*255,c*255,e.length>3?e[3]:1]},{min:nm,sqrt:rm,acos:im}=Math,om=(...e)=>{let[n,i,o]=_e(e,"rgb");n/=255,i/=255,o/=255;let s;const l=nm(n,i,o),c=(n+i+o)/3,f=c>0?1-l/c:0;return f===0?s=NaN:(s=(n-i+(n-o))/2,s/=rm((n-i)*(n-i)+(n-o)*(i-o)),s=im(s),o>i&&(s=Nn-s),s/=Nn),[s*360,f,c]};Z.prototype.hsi=function(){return om(this._rgb)};const am=(...e)=>new Z(...e,"hsi");ge.hsi=am,pe.format.hsi=tm,pe.autodetect.push({p:2,test:(...e)=>{if(e=_e(e,"hsi"),we(e)==="array"&&e.length===3)return"hsi"}});const sm=(e,n,i)=>Wr(e,n,i,"hsi");$t.hsi=sm;const eo=(...e)=>{e=_e(e,"hsl");const[n,i,o]=e;let s,l,c;if(i===0)s=l=c=o*255;else{const f=[0,0,0],d=[0,0,0],g=o<.5?o*(1+i):o+i-o*i,_=2*o-g,y=n/360;f[0]=y+1/3,f[1]=y,f[2]=y-1/3;for(let v=0;v<3;v++)f[v]<0&&(f[v]+=1),f[v]>1&&(f[v]-=1),6*f[v]<1?d[v]=_+(g-_)*6*f[v]:2*f[v]<1?d[v]=g:3*f[v]<2?d[v]=_+(g-_)*(2/3-f[v])*6:d[v]=_;[s,l,c]=[d[0]*255,d[1]*255,d[2]*255]}return e.length>3?[s,l,c,e[3]]:[s,l,c,1]},p9=(...e)=>{e=_e(e,"rgba");let[n,i,o]=e;n/=255,i/=255,o/=255;const s=o9(n,i,o),l=a9(n,i,o),c=(l+s)/2;let f,d;return l===s?(f=0,d=Number.NaN):f=c<.5?(l-s)/(l+s):(l-s)/(2-l-s),n==l?d=(i-o)/(l-s):i==l?d=2+(o-n)/(l-s):o==l&&(d=4+(n-i)/(l-s)),d*=60,d<0&&(d+=360),e.length>3&&e[3]!==void 0?[d,f,c,e[3]]:[d,f,c]};Z.prototype.hsl=function(){return p9(this._rgb)};const lm=(...e)=>new Z(...e,"hsl");ge.hsl=lm,pe.format.hsl=eo,pe.autodetect.push({p:2,test:(...e)=>{if(e=_e(e,"hsl"),we(e)==="array"&&e.length===3)return"hsl"}});const cm=(e,n,i)=>Wr(e,n,i,"hsl");$t.hsl=cm;const{floor:um}=Math,fm=(...e)=>{e=_e(e,"hsv");let[n,i,o]=e,s,l,c;if(o*=255,i===0)s=l=c=o;else{n===360&&(n=0),n>360&&(n-=360),n<0&&(n+=360),n/=60;const f=um(n),d=n-f,g=o*(1-i),_=o*(1-i*d),y=o*(1-i*(1-d));switch(f){case 0:[s,l,c]=[o,y,g];break;case 1:[s,l,c]=[_,o,g];break;case 2:[s,l,c]=[g,o,y];break;case 3:[s,l,c]=[g,_,o];break;case 4:[s,l,c]=[y,g,o];break;case 5:[s,l,c]=[o,g,_];break}}return[s,l,c,e.length>3?e[3]:1]},{min:dm,max:hm}=Math,gm=(...e)=>{e=_e(e,"rgb");let[n,i,o]=e;const s=dm(n,i,o),l=hm(n,i,o),c=l-s;let f,d,g;return g=l/255,l===0?(f=Number.NaN,d=0):(d=c/l,n===l&&(f=(i-o)/c),i===l&&(f=2+(o-n)/c),o===l&&(f=4+(n-i)/c),f*=60,f<0&&(f+=360)),[f,d,g]};Z.prototype.hsv=function(){return gm(this._rgb)};const pm=(...e)=>new Z(...e,"hsv");ge.hsv=pm,pe.format.hsv=fm,pe.autodetect.push({p:2,test:(...e)=>{if(e=_e(e,"hsv"),we(e)==="array"&&e.length===3)return"hsv"}});const mm=(e,n,i)=>Wr(e,n,i,"hsv");$t.hsv=mm;function hi(e,n){let i=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(n[0])||(n=n.map(c=>[c]));let o=n[0].length,s=n[0].map((c,f)=>n.map(d=>d[f])),l=e.map(c=>s.map(f=>Array.isArray(c)?c.reduce((d,g,_)=>d+g*(f[_]||0),0):f.reduce((d,g)=>d+g*c,0)));return i===1&&(l=l[0]),o===1?l.map(c=>c[0]):l}const to=(...e)=>{e=_e(e,"lab");const[n,i,o,...s]=e,[l,c,f]=ym([n,i,o]),[d,g,_]=u9(l,c,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]};function ym(e){var n=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],i=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=hi(i,e);return hi(n,o.map(s=>s**3))}const no=(...e)=>{const[n,i,o,...s]=_e(e,"rgb"),l=f9(n,i,o);return[..._m(l),...s.length>0&&s[0]<1?[s[0]]:[]]};function _m(e){const n=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],i=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=hi(n,e);return hi(i,o.map(s=>Math.cbrt(s)))}Z.prototype.oklab=function(){return no(this._rgb)},Object.assign(ge,{oklab:(...e)=>new Z(...e,"oklab")}),pe.format.oklab=to,pe.autodetect.push({p:2,test:(...e)=>{if(e=_e(e,"oklab"),we(e)==="array"&&e.length===3)return"oklab"}});const vm=(e,n,i)=>{const o=e.oklab(),s=n.oklab();return new Z(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"oklab")};$t.oklab=vm;const bm=(e,n,i)=>Wr(e,n,i,"oklch");$t.oklch=bm;const{pow:ro,sqrt:io,PI:oo,cos:m9,sin:y9,atan2:Cm}=Math,xm=(e,n="lrgb",i=null)=>{const o=e.length;i||(i=Array.from(new Array(o)).map(()=>1));const s=o/i.reduce(function(y,v){return y+v});if(i.forEach((y,v)=>{i[v]*=s}),e=e.map(y=>new Z(y)),n==="lrgb")return wm(e,i);const l=e.shift(),c=l.get(n),f=[];let d=0,g=0;for(let y=0;y<c.length;y++)if(c[y]=(c[y]||0)*i[0],f.push(isNaN(c[y])?0:i[0]),n.charAt(y)==="h"&&!isNaN(c[y])){const v=c[y]/180*oo;d+=m9(v)*i[0],g+=y9(v)*i[0]}let _=l.alpha()*i[0];e.forEach((y,v)=>{const k=y.get(n);_+=y.alpha()*i[v+1];for(let b=0;b<c.length;b++)if(!isNaN(k[b]))if(f[b]+=i[v+1],n.charAt(b)==="h"){const C=k[b]/180*oo;d+=m9(C)*i[v+1],g+=y9(C)*i[v+1]}else c[b]+=k[b]*i[v+1]});for(let y=0;y<c.length;y++)if(n.charAt(y)==="h"){let v=Cm(g/f[y],d/f[y])/oo*180;for(;v<0;)v+=360;for(;v>=360;)v-=360;c[y]=v}else c[y]=c[y]/f[y];return _/=o,new Z(c,n).alpha(_>.99999?1:_,!0)},wm=(e,n)=>{const i=e.length,o=[0,0,0,0];for(let s=0;s<e.length;s++){const l=e[s],c=n[s]/i,f=l._rgb;o[0]+=ro(f[0],2)*c,o[1]+=ro(f[1],2)*c,o[2]+=ro(f[2],2)*c,o[3]+=f[3]*c}return o[0]=io(o[0]),o[1]=io(o[1]),o[2]=io(o[2]),o[3]>.9999999&&(o[3]=1),new Z(W0(o))},{pow:Lm}=Math;function gi(e){let n="rgb",i=ge("#ccc"),o=0,s=[0,1],l=[0,1],c=[],f=[0,0],d=!1,g=[],_=!1,y=0,v=1,k=!1,b={},C=!0,L=1;const $=function(I){if(I=I||["#fff","#000"],I&&we(I)==="string"&&ge.brewer&&ge.brewer[I.toLowerCase()]&&(I=ge.brewer[I.toLowerCase()]),we(I)==="array"){I.length===1&&(I=[I[0],I[0]]),I=I.slice(0);for(let z=0;z<I.length;z++)I[z]=ge(I[z]);c.length=0;for(let z=0;z<I.length;z++)c.push(z/(I.length-1))}return X(),g=I},T=function(I){if(d!=null){const z=d.length-1;let Q=0;for(;Q<z&&I>=d[Q];)Q++;return Q-1}return 0};let O=I=>I,E=I=>I;const U=function(I,z){let Q,j;if(z==null&&(z=!1),isNaN(I)||I===null)return i;z?j=I:d&&d.length>2?j=T(I)/(d.length-2):v!==y?j=(I-y)/(v-y):j=1,j=E(j),z||(j=O(j)),L!==1&&(j=Lm(j,L)),j=f[0]+j*(1-f[0]-f[1]),j=gr(j,0,1);const te=Math.floor(j*1e4);if(C&&b[te])Q=b[te];else{if(we(g)==="array")for(let ee=0;ee<c.length;ee++){const Oe=c[ee];if(j<=Oe){Q=g[ee];break}if(j>=Oe&&ee===c.length-1){Q=g[ee];break}if(j>Oe&&j<c[ee+1]){j=(j-Oe)/(c[ee+1]-Oe),Q=ge.interpolate(g[ee],g[ee+1],j,n);break}}else we(g)==="function"&&(Q=g(j));C&&(b[te]=Q)}return Q};var X=()=>b={};$(e);const Y=function(I){const z=ge(U(I));return _&&z[_]?z[_]():z};return Y.classes=function(I){if(I!=null){if(we(I)==="array")d=I,s=[I[0],I[I.length-1]];else{const z=ge.analyze(s);I===0?d=[z.min,z.max]:d=ge.limits(z,"e",I)}return Y}return d},Y.domain=function(I){if(!arguments.length)return l;l=I.slice(0),y=I[0],v=I[I.length-1],c=[];const z=g.length;if(I.length===z&&y!==v)for(let Q of Array.from(I))c.push((Q-y)/(v-y));else{for(let Q=0;Q<z;Q++)c.push(Q/(z-1));if(I.length>2){const Q=I.map((te,ee)=>ee/(I.length-1)),j=I.map(te=>(te-y)/(v-y));j.every((te,ee)=>Q[ee]===te)||(E=te=>{if(te<=0||te>=1)return te;let ee=0;for(;te>=j[ee+1];)ee++;const Oe=(te-j[ee])/(j[ee+1]-j[ee]);return Q[ee]+Oe*(Q[ee+1]-Q[ee])})}}return s=[y,v],Y},Y.mode=function(I){return arguments.length?(n=I,X(),Y):n},Y.range=function(I,z){return $(I),Y},Y.out=function(I){return _=I,Y},Y.spread=function(I){return arguments.length?(o=I,Y):o},Y.correctLightness=function(I){return I==null&&(I=!0),k=I,X(),k?O=function(z){const Q=U(0,!0).lab()[0],j=U(1,!0).lab()[0],te=Q>j;let ee=U(z,!0).lab()[0];const Oe=Q+(j-Q)*z;let oe=ee-Oe,bt=0,St=1,it=20;for(;Math.abs(oe)>.01&&it-- >0;)(function(){return te&&(oe*=-1),oe<0?(bt=z,z+=(St-z)*.5):(St=z,z+=(bt-z)*.5),ee=U(z,!0).lab()[0],oe=ee-Oe})();return z}:O=z=>z,Y},Y.padding=function(I){return I!=null?(we(I)==="number"&&(I=[I,I]),f=I,Y):f},Y.colors=function(I,z){arguments.length<2&&(z="hex");let Q=[];if(arguments.length===0)Q=g.slice(0);else if(I===1)Q=[Y(.5)];else if(I>1){const j=s[0],te=s[1]-j;Q=$m(0,I,!1).map(ee=>Y(j+ee/(I-1)*te))}else{e=[];let j=[];if(d&&d.length>2)for(let te=1,ee=d.length,Oe=1<=ee;Oe?te<ee:te>ee;Oe?te++:te--)j.push((d[te-1]+d[te])*.5);else j=s;Q=j.map(te=>Y(te))}return ge[z]&&(Q=Q.map(j=>j[z]())),Q},Y.cache=function(I){return I!=null?(C=I,Y):C},Y.gamma=function(I){return I!=null?(L=I,Y):L},Y.nodata=function(I){return I!=null?(i=ge(I),Y):i},Y}function $m(e,n,i){let o=[],s=e<n,l=i?s?n+1:n-1:n;for(let c=e;s?c<l:c>l;s?c++:c--)o.push(c);return o}const Sm=function(e){let n=[1,1];for(let i=1;i<e;i++){let o=[1];for(let s=1;s<=n.length;s++)o[s]=(n[s]||0)+n[s-1];n=o}return n},km=function(e){let n,i,o,s;if(e=e.map(l=>new Z(l)),e.length===2)[i,o]=e.map(l=>l.lab()),n=function(l){const c=[0,1,2].map(f=>i[f]+l*(o[f]-i[f]));return new Z(c,"lab")};else if(e.length===3)[i,o,s]=e.map(l=>l.lab()),n=function(l){const c=[0,1,2].map(f=>(1-l)*(1-l)*i[f]+2*(1-l)*l*o[f]+l*l*s[f]);return new Z(c,"lab")};else if(e.length===4){let l;[i,o,s,l]=e.map(c=>c.lab()),n=function(c){const f=[0,1,2].map(d=>(1-c)*(1-c)*(1-c)*i[d]+3*(1-c)*(1-c)*c*o[d]+3*(1-c)*c*c*s[d]+c*c*c*l[d]);return new Z(f,"lab")}}else if(e.length>=5){let l,c,f;l=e.map(d=>d.lab()),f=e.length-1,c=Sm(f),n=function(d){const g=1-d,_=[0,1,2].map(y=>l.reduce((v,k,b)=>v+c[b]*g**(f-b)*d**b*k[y],0));return new Z(_,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return n},Am=e=>{const n=km(e);return n.scale=()=>gi(n),n},{round:_9}=Math;Z.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(_9)},Z.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((n,i)=>i<3?e===!1?n:_9(n):n)},Object.assign(ge,{rgb:(...e)=>new Z(...e,"rgb")}),pe.format.rgb=(...e)=>{const n=_e(e,"rgba");return n[3]===void 0&&(n[3]=1),n},pe.autodetect.push({p:3,test:(...e)=>{if(e=_e(e,"rgba"),we(e)==="array"&&(e.length===3||e.length===4&&we(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const _n=(e,n,i)=>{if(!_n[i])throw new Error("unknown blend mode "+i);return _n[i](e,n)},Jn=e=>(n,i)=>{const o=ge(i).rgb(),s=ge(n).rgb();return ge.rgb(e(o,s))},er=e=>(n,i)=>{const o=[];return o[0]=e(n[0],i[0]),o[1]=e(n[1],i[1]),o[2]=e(n[2],i[2]),o},Mm=e=>e,Tm=(e,n)=>e*n/255,Pm=(e,n)=>e>n?n:e,Om=(e,n)=>e>n?e:n,Im=(e,n)=>255*(1-(1-e/255)*(1-n/255)),Em=(e,n)=>n<128?2*e*n/255:255*(1-2*(1-e/255)*(1-n/255)),Dm=(e,n)=>255*(1-(1-n/255)/(e/255)),Rm=(e,n)=>e===255?255:(e=255*(n/255)/(1-e/255),e>255?255:e);_n.normal=Jn(er(Mm)),_n.multiply=Jn(er(Tm)),_n.screen=Jn(er(Im)),_n.overlay=Jn(er(Em)),_n.darken=Jn(er(Pm)),_n.lighten=Jn(er(Om)),_n.dodge=Jn(er(Rm)),_n.burn=Jn(er(Dm));const{pow:Bm,sin:Fm,cos:zm}=Math;function Nm(e=300,n=-1.5,i=1,o=1,s=[0,1]){let l=0,c;we(s)==="array"?c=s[1]-s[0]:(c=0,s=[s,s]);const f=function(d){const g=Nn*((e+120)/360+n*d),_=Bm(s[0]+c*d,o),v=(l!==0?i[0]+d*l:i)*_*(1-_)/2,k=zm(g),b=Fm(g),C=_+v*(-.14861*k+1.78277*b),L=_+v*(-.29227*k-.90649*b),$=_+v*(1.97294*k);return ge(W0([C*255,L*255,$*255,1]))};return f.start=function(d){return d==null?e:(e=d,f)},f.rotations=function(d){return d==null?n:(n=d,f)},f.gamma=function(d){return d==null?o:(o=d,f)},f.hue=function(d){return d==null?i:(i=d,we(i)==="array"?(l=i[1]-i[0],l===0&&(i=i[1])):l=0,f)},f.lightness=function(d){return d==null?s:(we(d)==="array"?(s=d,c=d[1]-d[0]):(s=[d,d],c=0),f)},f.scale=()=>ge.scale(f),f.hue(i),f}const Km="0123456789abcdef",{floor:Hm,random:Wm}=Math,Um=(e=Wm)=>{let n="#";for(let i=0;i<6;i++)n+=Km.charAt(Hm(e()*16));return new Z(n,"hex")},{log:v9,pow:Zm,floor:Ym,abs:Gm}=Math;function b9(e,n=null){const i={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return we(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{n&&we(o)==="object"&&(o=o[n]),o!=null&&!isNaN(o)&&(i.values.push(o),i.sum+=o,o<i.min&&(i.min=o),o>i.max&&(i.max=o),i.count+=1)}),i.domain=[i.min,i.max],i.limits=(o,s)=>C9(i,o,s),i}function C9(e,n="equal",i=7){we(e)=="array"&&(e=b9(e));const{min:o,max:s}=e,l=e.values.sort((f,d)=>f-d);if(i===1)return[o,s];const c=[];if(n.substr(0,1)==="c"&&(c.push(o),c.push(s)),n.substr(0,1)==="e"){c.push(o);for(let f=1;f<i;f++)c.push(o+f/i*(s-o));c.push(s)}else if(n.substr(0,1)==="l"){if(o<=0)throw new Error("Logarithmic scales are only possible for values > 0");const f=Math.LOG10E*v9(o),d=Math.LOG10E*v9(s);c.push(o);for(let g=1;g<i;g++)c.push(Zm(10,f+g/i*(d-f)));c.push(s)}else if(n.substr(0,1)==="q"){c.push(o);for(let f=1;f<i;f++){const d=(l.length-1)*f/i,g=Ym(d);if(g===d)c.push(l[g]);else{const _=d-g;c.push(l[g]*(1-_)+l[g+1]*_)}}c.push(s)}else if(n.substr(0,1)==="k"){let f;const d=l.length,g=new Array(d),_=new Array(i);let y=!0,v=0,k=null;k=[],k.push(o);for(let L=1;L<i;L++)k.push(o+L/i*(s-o));for(k.push(s);y;){for(let $=0;$<i;$++)_[$]=0;for(let $=0;$<d;$++){const T=l[$];let O=Number.MAX_VALUE,E;for(let U=0;U<i;U++){const X=Gm(k[U]-T);X<O&&(O=X,E=U),_[E]++,g[$]=E}}const L=new Array(i);for(let $=0;$<i;$++)L[$]=null;for(let $=0;$<d;$++)f=g[$],L[f]===null?L[f]=l[$]:L[f]+=l[$];for(let $=0;$<i;$++)L[$]*=1/_[$];y=!1;for(let $=0;$<i;$++)if(L[$]!==k[$]){y=!0;break}k=L,v++,v>200&&(y=!1)}const b={};for(let L=0;L<i;L++)b[L]=[];for(let L=0;L<d;L++)f=g[L],b[f].push(l[L]);let C=[];for(let L=0;L<i;L++)C.push(b[L][0]),C.push(b[L][b[L].length-1]);C=C.sort((L,$)=>L-$),c.push(C[0]);for(let L=1;L<C.length;L+=2){const $=C[L];!isNaN($)&&c.indexOf($)===-1&&c.push($)}}return c}const Vm=(e,n)=>{e=new Z(e),n=new Z(n);const i=e.luminance(),o=n.luminance();return i>o?(i+.05)/(o+.05):(o+.05)/(i+.05)};/**
28
28
  * @license
29
29
  *
30
30
  * The APCA contrast prediction algorithm is based of the formulas published
@@ -36,5 +36,5 @@ function print() { __p += __j.call(arguments, '') }
36
36
  *
37
37
  * You can read more about the APCA Readability Criterion at
38
38
  * https://readtech.org/ARC/
39
- */const L9=.027,Vm=5e-4,Qm=.1,$9=1.14,mi=.022,S9=1.414,jm=(e,n)=>{e=new H(e),n=new H(n),e.alpha()<1&&(e=zr(n,e,e.alpha(),"rgb"));const i=k9(...e.rgb()),a=k9(...n.rgb()),s=i>=mi?i:i+Math.pow(mi-i,S9),l=a>=mi?a:a+Math.pow(mi-a,S9),c=Math.pow(l,.56)-Math.pow(s,.57),f=Math.pow(l,.65)-Math.pow(s,.62),d=Math.abs(l-s)<Vm?0:s<l?c*$9:f*$9;return(Math.abs(d)<Qm?0:d>0?d-L9:d+L9)*100};function k9(e,n,i){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(n/255,2.4)+.072175*Math.pow(i/255,2.4)}const{sqrt:Fn,pow:dt,min:qm,max:Xm,atan2:A9,abs:M9,cos:yi,sin:T9,exp:Jm,PI:O9}=Math;function ey(e,n,i=1,a=1,s=1){var l=function(rt){return 360*rt/(2*O9)},c=function(rt){return 2*O9*rt/360};e=new H(e),n=new H(n);const[f,d,g]=Array.from(e.lab()),[_,y,b]=Array.from(n.lab()),k=(f+_)/2,v=Fn(dt(d,2)+dt(g,2)),w=Fn(dt(y,2)+dt(b,2)),L=(v+w)/2,$=.5*(1-Fn(dt(L,7)/(dt(L,7)+dt(25,7)))),T=d*(1+$),P=y*(1+$),D=Fn(dt(T,2)+dt(g,2)),U=Fn(dt(P,2)+dt(b,2)),X=(D+U)/2,Y=l(A9(g,T)),E=l(A9(b,P)),z=Y>=0?Y:Y+360,V=E>=0?E:E+360,Q=M9(z-V)>180?(z+V+360)/2:(z+V)/2,te=1-.17*yi(c(Q-30))+.24*yi(c(2*Q))+.32*yi(c(3*Q+6))-.2*yi(c(4*Q-63));let ee=V-z;ee=M9(ee)<=180?ee:V<=z?ee+360:ee-360,ee=2*Fn(D*U)*T9(c(ee)/2);const Pe=_-f,oe=U-D,_t=1+.015*dt(k-50,2)/Fn(20+dt(k-50,2)),wt=1+.045*X,at=1+.015*X*te,nt=30*Jm(-dt((Q-275)/25,2)),Ve=-(2*Fn(dt(X,7)/(dt(X,7)+dt(25,7))))*T9(2*c(nt)),ze=Fn(dt(Pe/(i*_t),2)+dt(oe/(a*wt),2)+dt(ee/(s*at),2)+Ve*(oe/(a*wt))*(ee/(s*at)));return Xm(0,qm(100,ze))}function ty(e,n,i="lab"){e=new H(e),n=new H(n);const a=e.get(i),s=n.get(i);let l=0;for(let c in a){const f=(a[c]||0)-(s[c]||0);l+=f*f}return Math.sqrt(l)}const ny=(...e)=>{try{return new H(...e),!0}catch{return!1}},ry={cool(){return pi([de.hsl(180,1,.9),de.hsl(250,.7,.4)])},hot(){return pi(["#000","#f00","#ff0","#fff"]).mode("rgb")}},so={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},P9=Object.keys(so),I9=new Map(P9.map(e=>[e.toLowerCase(),e])),iy=typeof Proxy=="function"?new Proxy(so,{get(e,n){const i=n.toLowerCase();if(I9.has(i))return e[I9.get(i)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(P9)}}):so,oy=(...e)=>{e=me(e,"cmyk");const[n,i,a,s]=e,l=e.length>4?e[4]:1;return s===1?[0,0,0,l]:[n>=1?0:255*(1-n)*(1-s),i>=1?0:255*(1-i)*(1-s),a>=1?0:255*(1-a)*(1-s),l]},{max:E9}=Math,ay=(...e)=>{let[n,i,a]=me(e,"rgb");n=n/255,i=i/255,a=a/255;const s=1-E9(n,E9(i,a)),l=s<1?1/(1-s):0,c=(1-n-s)*l,f=(1-i-s)*l,d=(1-a-s)*l;return[c,f,d,s]};H.prototype.cmyk=function(){return ay(this._rgb)},Object.assign(de,{cmyk:(...e)=>new H(...e,"cmyk")}),he.format.cmyk=oy,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"cmyk"),Ce(e)==="array"&&e.length===4)return"cmyk"}});const sy=(...e)=>{const n=me(e,"hsla");let i=Br(e)||"lsa";return n[0]=tn(n[0]||0)+"deg",n[1]=tn(n[1]*100)+"%",n[2]=tn(n[2]*100)+"%",i==="hsla"||n.length>3&&n[3]<1?(n[3]="/ "+(n.length>3?n[3]:1),i="hsla"):n.length=3,`${i.substr(0,3)}(${n.join(" ")})`},ly=(...e)=>{const n=me(e,"lab");let i=Br(e)||"lab";return n[0]=tn(n[0])+"%",n[1]=tn(n[1]),n[2]=tn(n[2]),i==="laba"||n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`lab(${n.join(" ")})`},cy=(...e)=>{const n=me(e,"lch");let i=Br(e)||"lab";return n[0]=tn(n[0])+"%",n[1]=tn(n[1]),n[2]=isNaN(n[2])?"none":tn(n[2])+"deg",i==="lcha"||n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`lch(${n.join(" ")})`},uy=(...e)=>{const n=me(e,"lab");return n[0]=tn(n[0]*100)+"%",n[1]=H0(n[1]),n[2]=H0(n[2]),n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`oklab(${n.join(" ")})`},D9=(...e)=>{const[n,i,a,...s]=me(e,"rgb"),[l,c,f]=ro(n,i,a),[d,g,_]=p9(l,c,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]},fy=(...e)=>{const n=me(e,"lch");return n[0]=tn(n[0]*100)+"%",n[1]=H0(n[1]),n[2]=isNaN(n[2])?"none":tn(n[2])+"deg",n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`oklch(${n.join(" ")})`},{round:lo}=Math,dy=(...e)=>{const n=me(e,"rgba");let i=Br(e)||"rgb";if(i.substr(0,3)==="hsl")return sy(y9(n),i);if(i.substr(0,3)==="lab"){const a=y1();Bn("d50");const s=ly(Q0(n),i);return Bn(a),s}if(i.substr(0,3)==="lch"){const a=y1();Bn("d50");const s=cy(J0(n),i);return Bn(a),s}return i.substr(0,5)==="oklab"?uy(ro(n)):i.substr(0,5)==="oklch"?fy(D9(n)):(n[0]=lo(n[0]),n[1]=lo(n[1]),n[2]=lo(n[2]),(i==="rgba"||n.length>3&&n[3]<1)&&(n[3]="/ "+(n.length>3?n[3]:1),i="rgba"),`${i.substr(0,3)}(${n.slice(0,i==="rgb"?3:4).join(" ")})`)},R9=(...e)=>{e=me(e,"lch");const[n,i,a,...s]=e,[l,c,f]=g9(n,i,a),[d,g,_]=no(l,c,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]},zn=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,yn=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,_i=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,nn=/\s*/.source,Ur=/\s+/.source,co=/\s*,\s*/.source,vi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,Zr=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,B9=new RegExp("^rgba?\\("+nn+[zn,zn,zn].join(Ur)+Zr+"\\)$"),F9=new RegExp("^rgb\\("+nn+[zn,zn,zn].join(co)+nn+"\\)$"),z9=new RegExp("^rgba\\("+nn+[zn,zn,zn,yn].join(co)+nn+"\\)$"),N9=new RegExp("^hsla?\\("+nn+[vi,_i,_i].join(Ur)+Zr+"\\)$"),W9=new RegExp("^hsl?\\("+nn+[vi,_i,_i].join(co)+nn+"\\)$"),K9=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,U9=new RegExp("^lab\\("+nn+[yn,yn,yn].join(Ur)+Zr+"\\)$"),Z9=new RegExp("^lch\\("+nn+[yn,yn,vi].join(Ur)+Zr+"\\)$"),H9=new RegExp("^oklab\\("+nn+[yn,yn,yn].join(Ur)+Zr+"\\)$"),Y9=new RegExp("^oklch\\("+nn+[yn,yn,vi].join(Ur)+Zr+"\\)$"),{round:G9}=Math,Hr=e=>e.map((n,i)=>i<=2?dr(G9(n),0,255):n),ht=(e,n=0,i=100,a=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,a?e=n+(e+1)*.5*(i-n):e=n+e*(i-n)),+e),Ot=(e,n)=>e==="none"?n:e,uo=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let n;if(he.format.named)try{return he.format.named(e)}catch{}if((n=e.match(B9))||(n=e.match(F9))){let i=n.slice(1,4);for(let s=0;s<3;s++)i[s]=+ht(Ot(i[s],0),0,255);i=Hr(i);const a=n[4]!==void 0?+ht(n[4],0,1):1;return i[3]=a,i}if(n=e.match(z9)){const i=n.slice(1,5);for(let a=0;a<4;a++)i[a]=+ht(i[a],0,255);return i}if((n=e.match(N9))||(n=e.match(W9))){const i=n.slice(1,4);i[0]=+Ot(i[0].replace("deg",""),0),i[1]=+ht(Ot(i[1],0),0,100)*.01,i[2]=+ht(Ot(i[2],0),0,100)*.01;const a=Hr(to(i)),s=n[4]!==void 0?+ht(n[4],0,1):1;return a[3]=s,a}if(n=e.match(K9)){const i=n.slice(1,4);i[1]*=.01,i[2]*=.01;const a=to(i);for(let s=0;s<3;s++)a[s]=G9(a[s]);return a[3]=+n[4],a}if(n=e.match(U9)){const i=n.slice(1,4);i[0]=ht(Ot(i[0],0),0,100),i[1]=ht(Ot(i[1],0),-125,125,!0),i[2]=ht(Ot(i[2],0),-125,125,!0);const a=y1();Bn("d50");const s=Hr(G0(i));Bn(a);const l=n[4]!==void 0?+ht(n[4],0,1):1;return s[3]=l,s}if(n=e.match(Z9)){const i=n.slice(1,4);i[0]=ht(i[0],0,100),i[1]=ht(Ot(i[1],0),0,150,!1),i[2]=+Ot(i[2].replace("deg",""),0);const a=y1();Bn("d50");const s=Hr(X0(i));Bn(a);const l=n[4]!==void 0?+ht(n[4],0,1):1;return s[3]=l,s}if(n=e.match(H9)){const i=n.slice(1,4);i[0]=ht(Ot(i[0],0),0,1),i[1]=ht(Ot(i[1],0),-.4,.4,!0),i[2]=ht(Ot(i[2],0),-.4,.4,!0);const a=Hr(no(i)),s=n[4]!==void 0?+ht(n[4],0,1):1;return a[3]=s,a}if(n=e.match(Y9)){const i=n.slice(1,4);i[0]=ht(Ot(i[0],0),0,1),i[1]=ht(Ot(i[1],0),0,.4,!1),i[2]=+Ot(i[2].replace("deg",""),0);const a=Hr(R9(i)),s=n[4]!==void 0?+ht(n[4],0,1):1;return a[3]=s,a}};uo.test=e=>B9.test(e)||N9.test(e)||U9.test(e)||Z9.test(e)||H9.test(e)||Y9.test(e)||F9.test(e)||z9.test(e)||W9.test(e)||K9.test(e)||e==="transparent",H.prototype.css=function(e){return dy(this._rgb,e)};const hy=(...e)=>new H(...e,"css");de.css=hy,he.format.css=uo,he.autodetect.push({p:5,test:(e,...n)=>{if(!n.length&&Ce(e)==="string"&&uo.test(e))return"css"}}),he.format.gl=(...e)=>{const n=me(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n};const gy=(...e)=>new H(...e,"gl");de.gl=gy,H.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},H.prototype.hex=function(e){return f9(this._rgb,e)};const py=(...e)=>new H(...e,"hex");de.hex=py,he.format.hex=u9,he.autodetect.push({p:4,test:(e,...n)=>{if(!n.length&&Ce(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:bi}=Math,V9=e=>{const n=e/100;let i,a,s;return n<66?(i=255,a=n<6?0:-155.25485562709179-.44596950469579133*(a=n-2)+104.49216199393888*bi(a),s=n<20?0:-254.76935184120902+.8274096064007395*(s=n-10)+115.67994401066147*bi(s)):(i=351.97690566805693+.114206453784165*(i=n-55)-40.25366309332127*bi(i),a=325.4494125711974+.07943456536662342*(a=n-50)-28.0852963507957*bi(a),s=255),[i,a,s,1]},{round:my}=Math,yy=(...e)=>{const n=me(e,"rgb"),i=n[0],a=n[2];let s=1e3,l=4e4;const c=.4;let f;for(;l-s>c;){f=(l+s)*.5;const d=V9(f);d[2]/d[0]>=a/i?l=f:s=f}return my(f)};H.prototype.temp=H.prototype.kelvin=H.prototype.temperature=function(){return yy(this._rgb)};const fo=(...e)=>new H(...e,"temp");Object.assign(de,{temp:fo,kelvin:fo,temperature:fo}),he.format.temp=he.format.kelvin=he.format.temperature=V9,H.prototype.oklch=function(){return D9(this._rgb)},Object.assign(de,{oklch:(...e)=>new H(...e,"oklch")}),he.format.oklch=R9,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"oklch"),Ce(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(de,{analyze:x9,average:Cm,bezier:km,blend:mn,brewer:iy,Color:H,colors:Fr,contrast:Gm,contrastAPCA:jm,cubehelix:zm,deltaE:ey,distance:ty,input:he,interpolate:zr,limits:w9,mix:zr,random:Um,scale:pi,scales:ry,valid:ny});var _y=N("<div tabindex=0><div class=selector-container><i class=arrow></i></div><div class=drop-down-container style=left:50%;top:20%><div class=split_line></div><div class=range_div><input class=range type=range min=1 max=100><p>%</p></div><div class=split_line></div><div class=submit><span class=cancel>Cancel</span><span>Ok"),vy=N("<div class=klinecharts-pro-color-backdrop aria-hidden=true>"),by=N("<div class=each_line>"),Cy=N("<div>"),xy=N("<div class=each_line style=display:flex;align-items:center;gap:8px><div style=width:24px;height:24px;border-radius:4px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.04);cursor:pointer><span style=font-size:18px;line-height:1;color:var(--klinecharts-pro-text-color,#fff)>+"),wy=N('<div style=display:flex;flex-direction:column;gap:8px;padding:6px;width:260px><div style=display:flex;gap:8px;align-items:center><div></div><input style="flex:1;padding:6px;border-radius:4px;border:1px solid rgba(255,255,255,0.08);background:transparent;color:inherit"></div><div style="width:220px;height:140px;border-radius:6px;position:relative;touch-action:none;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.2)"><div style=position:absolute;inset:0;borderRadius:6px></div><div style="position:absolute;inset:0;borderRadius:6px;background:linear-gradient(to top, #ffffff, rgba(255,255,255,0));mixBlendMode:overlay;opacity:0.6"></div><div style="position:absolute;inset:0;borderRadius:6px;background:linear-gradient(to bottom, rgba(0,0,0,0), #000);opacity:0.6"></div><div style="position:absolute;transform:translate(-50%,-50%);width:12px;height:12px;borderRadius:50%;boxShadow:0 0 0 2px rgba(255,255,255,0.9);border:1px solid rgba(0,0,0,0.6)"></div></div><div style=display:flex;align-items:center;gap:8px><input type=range min=0 max=360 style="flex:1;height:10px;background:linear-gradient(90deg, red 0%, yellow 17%, lime 33%, cyan 50%, blue 67%, magenta 83%, red 100%);border-radius:6px;padding:0"><span style=width:38px;text-align:center></span></div><div style=display:flex;gap:8px;justify-content:flex-end><button class=cancel>Cancel</button><button class=ok>Add');const Ly=e=>{const n=String(e.value).includes("rgba")?de(String(e.value)).alpha()*100:100,[i,a]=G(!1),[s,l]=G(n),[c,f]=G(e.value),[d,g]=G(e.value),[_,y]=G(!1),[b,k]=G(!1),[v,w]=G(e.value??"#000000"),[L,$]=G(0),[T,P]=G(1),[D,U]=G(.5),[X,Y]=G(!1),E=[["rgb(255, 255, 255)","rgb(219, 219, 219)","rgb(184, 184, 184)","rgb(156, 156, 156)","rgb(128, 128, 128)","rgb(99, 99, 99)","rgb(74, 74, 74)","rgb(46, 46, 46)","rgb(15, 15, 15)","rgb(0, 0, 0)"],["rgb(242, 54, 69)","rgb(255, 152, 0)","rgb(255, 235, 59)","rgb(76, 175, 80)","rgb(8, 153, 129)","rgb(0, 188, 212)","rgb(41, 98, 255)","rgb(103, 58, 183)","rgb(156, 39, 176)","rgb(233, 30, 99)"],["rgb(252, 203, 205)","rgb(255, 224, 178)","rgb(255, 249, 196)","rgb(200, 230, 201)","rgb(172, 229, 220)","rgb(178, 235, 242)","rgb(187, 217, 251)","rgb(209, 196, 233)","rgb(225, 190, 231)","rgb(248, 187, 208)"],["rgb(250, 161, 164)","rgb(255, 204, 128)","rgb(255, 245, 157)","rgb(165, 214, 167)","rgb(112, 204, 189)","rgb(128, 222, 234)","rgb(144, 191, 249)","rgb(179, 157, 219)","rgb(206, 147, 216)","rgb(244, 143, 177)"],["rgb(247, 124, 128)","rgb(255, 183, 77)","rgb(255, 241, 118)","rgb(129, 199, 132)","rgb(66, 189, 168)","rgb(77, 208, 225)","rgb(91, 156, 246)","rgb(149, 117, 205)","rgb(186, 104, 200)","rgb(240, 98, 146)"],["rgb(247, 82, 95)","rgb(255, 167, 38)","rgb(255, 238, 88)","rgb(102, 187, 106)","rgb(34, 171, 148)","rgb(38, 198, 218)","rgb(49, 121, 245)","rgb(126, 87, 194)","rgb(171, 71, 188)","rgb(236, 64, 122)"],["rgb(178, 40, 51)","rgb(245, 124, 0)","rgb(251, 192, 45)","rgb(56, 142, 60)","rgb(5, 102, 86)","rgb(0, 151, 167)","rgb(24, 72, 204)","rgb(81, 45, 168)","rgb(123, 31, 162)","rgb(194, 24, 91)"],["rgb(128, 25, 34)","rgb(230, 81, 0)","rgb(245, 127, 23)","rgb(27, 94, 32)","rgb(0, 51, 42)","rgb(0, 96, 100)","rgb(12, 50, 153)","rgb(49, 27, 146)","rgb(74, 20, 140)","rgb(136, 14, 79)"]],z=ie=>{try{return de(ie).hex()}catch{return String(ie||"#000000")}},V=ie=>{const Ae=z(ie),[ce,De,st]=de(Ae).hsl();$(Number.isFinite(ce)?Math.round(ce):0),P(Number.isFinite(De)?De:1),U(Number.isFinite(st)?st:.5),w(Ae)},Q=()=>{a(!1),k(!1)},te=()=>{var ie;f(e.value),g(e.value),(ie=e.onChange)==null||ie.call(e,e.value),Q()},ee=ie=>{var De;f(ie);const Ae=s()/100,ce=de(ie).alpha(Ae).css();g(ce),(e.reactiveChange??!0)&&((De=e.onChange)==null||De.call(e,ce))},Pe=()=>{var ce;const ie=s()/100,Ae=de(c()).alpha(ie).css();g(Ae),(e.reactiveChange??!0)&&((ce=e.onChange)==null||ce.call(e,Ae))},oe=ie=>{l(ie.target.value),Pe()},_t=()=>{const ie=c()??e.value??"#000000";V(String(ie)),k(!0),a(!0)},wt=ie=>{$(ie);const Ae=de.hsl(ie,T(),D()).hex();w(Ae)},at=ie=>{let Ae=ie.trim();Ae.startsWith("#")||(Ae="#"+Ae);try{const ce=de(Ae).hex(),[De,st,Xe]=de(ce).hsl();$(Number.isFinite(De)?Math.round(De):L()),P(Number.isFinite(st)?st:T()),U(Number.isFinite(Xe)?Xe:D()),w(ce)}catch{w(ie)}},nt=ie=>{var Ae,ce;(ce=(Ae=ie.target).setPointerCapture)==null||ce.call(Ae,ie.pointerId),Y(!0),ze(ie)},$e=ie=>{X()&&ze(ie)},Ve=ie=>{var Ae,ce;try{(ce=(Ae=ie.target).releasePointerCapture)==null||ce.call(Ae,ie.pointerId)}catch{}Y(!1)},ze=ie=>{const ce=ie.currentTarget.getBoundingClientRect(),De=Math.min(Math.max(0,ie.clientX-ce.left),ce.width),st=Math.min(Math.max(0,ie.clientY-ce.top),ce.height),Xe=ce.width?De/ce.width:0,Pt=ce.height?1-st/ce.height:.5;P(Xe),U(Pt);const on=de.hsl(L(),Xe,Pt).hex();w(on)},rt=()=>{try{const ie=z(v());E[0].unshift(ie),ee(ie),k(!1)}catch{}};return[je(()=>je(()=>!!i())()&&(()=>{var ie=vy();return ie.$$click=()=>{te()},ie})()),(()=>{var ie=_y(),Ae=ie.firstChild,ce=Ae.nextSibling,De=ce.firstChild,st=De.nextSibling,Xe=st.firstChild,Pt=Xe.nextSibling,on=Pt.firstChild,Nn=st.nextSibling,Wn=Nn.nextSibling,er=Wn.firstChild,mt=er.nextSibling;return Ae.$$click=Ie=>{a(!0)},W(ce,(()=>{var Ie=je(()=>!b());return()=>Ie()&&E.map(Lt=>(()=>{var Je=by();return W(Je,()=>Lt.map(It=>(()=>{var an=Cy();return an.$$click=it=>{it.preventDefault(),ee(It)},Te(it=>{var I=`each_color ${It==c()?"selected":""}`,j=`background-color: ${It}`;return I!==it.e&&Zt(an,it.e=I),it.t=qe(an,j,it.t),it},{e:void 0,t:void 0}),an})())),Je})())})(),De),W(ce,(()=>{var Ie=je(()=>!b());return()=>Ie()&&(()=>{var Lt=xy(),Je=Lt.firstChild;return Je.$$click=It=>{It.stopPropagation(),_t()},Lt})()})(),De),W(ce,(()=>{var Ie=je(()=>!!b());return()=>Ie()&&(()=>{var Lt=wy(),Je=Lt.firstChild,It=Je.firstChild,an=It.nextSibling,it=Je.nextSibling,I=it.firstChild,j=I.nextSibling,xe=j.nextSibling,ge=xe.nextSibling,ke=it.nextSibling,$t=ke.firstChild,Ht=$t.nextSibling,Et=ke.nextSibling,Ye=Et.firstChild,Yt=Ye.nextSibling;return an.$$input=Me=>at(Me.currentTarget.value),it.$$pointerup=Me=>Ve(Me),it.$$pointermove=Me=>$e(Me),it.$$pointerdown=Me=>nt(Me),$t.$$input=Me=>wt(Number(Me.currentTarget.value)),W(Ht,L),Ye.$$click=()=>k(!1),Yt.$$click=rt,Te(Me=>{var St=`width:40px;height:40px;border-radius:4px;border:1px solid rgba(255,255,255,0.08);background:${v()}`,ye=`linear-gradient(to right, hsl(${L()}, 0%, 50%), hsl(${L()}, 100%, 50%))`,et=`${Math.round(T()*100)}%`,Ue=`${Math.round((1-D())*100)}%`,Dt=v();return Me.e=qe(It,St,Me.e),ye!==Me.t&&Sr(I,"background",Me.t=ye),et!==Me.a&&Sr(ge,"left",Me.a=et),Ue!==Me.o&&Sr(ge,"top",Me.o=Ue),Dt!==Me.i&&Sr(ge,"background",Me.i=Dt),Me},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Te(()=>an.value=v()),Te(()=>$t.value=L()),Lt})()})(),De),Xe.addEventListener("blur",()=>{y(!1)}),Xe.addEventListener("focus",()=>{y(!0)}),Xe.$$input=Ie=>{Ie.preventDefault,oe(Ie)},W(Pt,s,on),er.$$click=te,mt.$$click=()=>{var Ie;e.reactiveChange===!1&&((Ie=e.onChange)==null||Ie.call(e,d())),Q()},Te(Ie=>{var Lt=`width: 120px; background-color: ${d()}`,Je=`klinecharts-pro-color ${e.class??""} ${i()?"klinecharts-pro-color-show":""}`,It=`background-color: ${d()}; border: 1px solid ${c()}`;return Ie.e=qe(ie,Lt,Ie.e),Je!==Ie.t&&Zt(ie,Ie.t=Je),Ie.a=qe(Xe,It,Ie.a),Ie},{e:void 0,t:void 0,a:void 0}),Te(()=>Xe.value=s()),ie})()]};zt(["click","input","pointerdown","pointermove","pointerup"]);var $y=N("<div><div></div><div><strong>订单ID:</strong><span></span></div><div><strong>价格:</strong><span></span></div><div><strong>数量:</strong><span></span></div><div><strong>手续费:</strong><span></span></div><div><strong>已实现盈亏:</strong><span></span></div><div><strong>成交时间:</strong><span>");const Yr={display:"flex","justify-content":"space-between",gap:"8px"},Gr={"text-align":"right"},Sy=20;function ky(e,n,i,a,s,l,c,f,d){const g=s+d,_=l+d,y=c-d,b=f-d;return e>=g&&n>=_&&e+i<=y&&n+a<=b}function Ay(e,n,i,a,s,l,c){const f=Math.max(e,Math.min(s,e+i)),d=Math.max(n,Math.min(l,n+a)),g=s-f,_=l-d;return g*g+_*_<c*c}function My(e,n,i,a,s,l,c,f,d,g){const _=["topRight","bottomRight","bottomLeft","topLeft"],y={topRight:{left:e+g,top:n-g-a},bottomRight:{left:e+g,top:n+g},bottomLeft:{left:e-g-i,top:n+g},topLeft:{left:e-g-i,top:n-g-a}};for(const $ of _){const{left:T,top:P}=y[$];if(ky(T,P,i,a,s,l,c,f,d))return{left:T,top:P}}const b=s+d,k=l+d,v=c-i-d,w=f-a-d,L=8;for(const $ of _){const T=y[$],P=Math.min(Math.max(b,T.left),Math.max(b,v)),D=Math.min(Math.max(k,T.top),Math.max(k,w));if(!Ay(P,D,i,a,e,n,L))return{left:P,top:D}}return{left:Math.min(Math.max(b,y.topRight.left),Math.max(b,v)),top:Math.min(Math.max(k,y.topRight.top),Math.max(k,w))}}const Ty=e=>{const n=()=>e.order.isBuy,[a,s]=G(),[l,c]=G({w:220,h:196});Tt(()=>{e.order,e.formattedTime;const y=a();if(!y)return;const b=()=>{const v=y.getBoundingClientRect();v.width>0&&v.height>0&&c({w:v.width,h:v.height})};b();const k=new ResizeObserver(b);k.observe(y),Lr(()=>k.disconnect())});const f=12,d=typeof window<"u"?window.innerWidth:1024,g=typeof window<"u"?window.innerHeight:768,_=en(()=>{var X;const y=l().w,b=l().h,k=(X=e.clipElement)==null?void 0:X.getBoundingClientRect(),v=(k==null?void 0:k.left)??0,w=(k==null?void 0:k.top)??0,L=(k==null?void 0:k.right)??d,$=(k==null?void 0:k.bottom)??g,T=typeof e.anchorX=="number"&&typeof e.anchorY=="number",P=T?e.anchorX:L-y-16,D=T?e.anchorY:w+84,U=T?My(P,D,y,b,v,w,L,$,f,Sy):(()=>{const Y=v+f,E=L-y-f,z=w+f,V=$-b-f,Q=L-y-16,te=w+84;return{left:Math.min(Math.max(Y,Q),Math.max(Y,E)),top:Math.min(Math.max(z,te),Math.max(z,V))}})();return{left:U.left,top:U.top,anchorX:P,anchorY:D,hasAnchor:T,w:y,h:b}});return Tt(()=>{_()}),(()=>{var y=$y(),b=y.firstChild,k=b.nextSibling,v=k.firstChild,w=v.nextSibling,L=k.nextSibling,$=L.firstChild,T=$.nextSibling,P=L.nextSibling,D=P.firstChild,U=D.nextSibling,X=P.nextSibling,Y=X.firstChild,E=Y.nextSibling,z=X.nextSibling,V=z.firstChild,Q=V.nextSibling,te=z.nextSibling,ee=te.firstChild,Pe=ee.nextSibling;return X1(s,y),W(b,()=>n()?"买入":"卖出"),W(w,()=>String(e.order.orderId??e.order.id??"-")),W(T,()=>String(e.order.price)),W(U,()=>String(e.order.size)),W(E,()=>String(e.order.fee??"-")),W(Q,()=>String(e.order.pnl??"-")),W(Pe,()=>e.formattedTime),Te(oe=>{var _t=`klinecharts-pro-his-order-hover ${n()?"is-buy":"is-sell"}`,wt=`${_().left}px`,at=`${_().top}px`,nt=`klinecharts-pro-his-order-hover-title ${n()?"is-buy":"is-sell"}`,$e=Yr,Ve=Gr,ze=Yr,rt=Gr,ie=Yr,Ae=Gr,ce=Yr,De=Gr,st=Yr,Xe=Gr,Pt=Yr,on=Gr;return _t!==oe.e&&Zt(y,oe.e=_t),wt!==oe.t&&Sr(y,"left",oe.t=wt),at!==oe.a&&Sr(y,"top",oe.a=at),nt!==oe.o&&Zt(b,oe.o=nt),oe.i=qe(k,$e,oe.i),oe.n=qe(w,Ve,oe.n),oe.s=qe(L,ze,oe.s),oe.h=qe(T,rt,oe.h),oe.r=qe(P,ie,oe.r),oe.d=qe(U,Ae,oe.d),oe.l=qe(X,ce,oe.l),oe.u=qe(E,De,oe.u),oe.c=qe(z,st,oe.c),oe.w=qe(Q,Xe,oe.w),oe.m=qe(te,Pt,oe.m),oe.f=qe(Pe,on,oe.f),oe},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0}),y})()},Q9={"zh-CN":{indicator:"指标",main_indicator:"主图指标",sub_indicator:"副图指标",setting:"设置",timezone:"时区",screenshot:"截屏",alerts:"预警",full_screen:"全屏",exit_full_screen:"退出全屏",save:"保存",confirm:"确定",cancel:"取消",ma:"MA(移动平均线)",ema:"EMA(指数平滑移动平均线)",sma:"SMA",boll:"BOLL(布林线)",bbi:"BBI(多空指数)",sar:"SAR(停损点指向指标)",vol:"VOL(成交量)",macd:"MACD(指数平滑异同移动平均线)",kdj:"KDJ(随机指标)",rsi:"RSI(相对强弱指标)",bias:"BIAS(乖离率)",brar:"BRAR(情绪指标)",cci:"CCI(顺势指标)",dmi:"DMI(动向指标)",cr:"CR(能量指标)",psy:"PSY(心理线)",dma:"DMA(平行线差指标)",trix:"TRIX(三重指数平滑平均线)",obv:"OBV(能量潮指标)",vr:"VR(成交量变异率)",wr:"WR(威廉指标)",mtm:"MTM(动量指标)",emv:"EMV(简易波动指标)",roc:"ROC(变动率指标)",pvt:"PVT(价量趋势指标)",ao:"AO(动量震荡指标)",utc:"世界统一时间",honolulu:"(UTC-10) 檀香山",juneau:"(UTC-8) 朱诺",los_angeles:"(UTC-7) 洛杉矶",chicago:"(UTC-5) 芝加哥",toronto:"(UTC-4) 多伦多",sao_paulo:"(UTC-3) 圣保罗",london:"(UTC+1) 伦敦",berlin:"(UTC+2) 柏林",bahrain:"(UTC+3) 巴林",dubai:"(UTC+4) 迪拜",ashkhabad:"(UTC+5) 阿什哈巴德",almaty:"(UTC+6) 阿拉木图",bangkok:"(UTC+7) 曼谷",shanghai:"(UTC+8) 上海",tokyo:"(UTC+9) 东京",sydney:"(UTC+10) 悉尼",norfolk:"(UTC+12) 诺福克岛",horizontal_straight_line:"水平直线",horizontal_ray_line:"水平射线",horizontal_segment:"水平线段",vertical_straight_line:"垂直直线",vertical_ray_line:"垂直射线",vertical_segment:"垂直线段",straight_line:"直线",ray_line:"射线",segment:"线段",arrow:"箭头",price_line:"价格线",price_channel_line:"价格通道线",parallel_straight_line:"平行直线",fibonacci_line:"斐波那契回调直线",fibonacci_segment:"斐波那契回调线段",fibonacci_circle:"斐波那契圆环",fibonacci_spiral:"斐波那契螺旋",fibonacci_speed_resistance_fan:"斐波那契速度阻力扇",fibonacci_extension:"斐波那契趋势扩展",gann_box:"江恩箱",rect:"矩形",parallelogram:"平行四边形",circle:"圆",triangle:"三角形",three_waves:"三浪",five_waves:"五浪",eight_waves:"八浪",any_waves:"任意浪",abcd:"ABCD形态",xabcd:"XABCD形态",weak_magnet:"弱磁模式",strong_magnet:"强磁模式",symbol_search:"商品搜索",symbol_code:"商品代码",params_1:"参数1",params_2:"参数2",params_3:"参数3",params_4:"参数4",params_5:"参数5",period:"周期",standard_deviation:"标准差",candle_type:"蜡烛图类型",candle_solid:"全实心",candle_stroke:"全空心",candle_up_stroke:"涨空心",candle_down_stroke:"跌空心",ohlc:"OHLC",area:"面积图",heikin_ashi:"平金·阿什",last_price_show:"最新价显示",high_price_show:"最高价显示",low_price_show:"最低价显示",indicator_last_value_show:"指标最新值显示",price_axis_type:"价格轴类型",normal:"线性轴",percentage:"百分比轴",log:"对数轴",reverse_coordinate:"倒置坐标",grid_show:"网格线显示",setting_sidebar_trading:"交易",trading_display_positions:"当前持仓",trading_display_liquidation:"强平价格",trading_display_open_orders:"当前委托",trading_display_his_orders:"历史委托",restore_default:"重置"},"en-US":{indicator:"Indicator",main_indicator:"Main Indicator",sub_indicator:"Sub Indicator",setting:"Setting",timezone:"Timezone",screenshot:"Screenshot",alerts:"Alerts",full_screen:"Full Screen",exit_full_screen:"Exit",save:"Save",confirm:"Confirm",cancel:"Cancel",ma:"MA(Moving Average)",ema:"EMA(Exponential Moving Average)",sma:"SMA",boll:"BOLL(Bolinger Bands)",bbi:"BBI(Bull And Bearlndex)",sar:"SAR(Stop and Reverse)",vol:"VOL(Volume)",macd:"MACD(Moving Average Convergence / Divergence)",kdj:"KDJ(KDJ Index)",rsi:"RSI(Relative Strength Index)",bias:"BIAS(Bias Ratio)",brar:"BRAR(情绪指标)",cci:"CCI(Commodity Channel Index)",dmi:"DMI(Directional Movement Index)",cr:"CR(能量指标)",psy:"PSY(Psychological Line)",dma:"DMA(Different of Moving Average)",trix:"TRIX(Triple Exponentially Smoothed Moving Average)",obv:"OBV(On Balance Volume)",vr:"VR(Volatility Volume Ratio)",wr:"WR(Williams %R)",mtm:"MTM(Momentum Index)",emv:"EMV(Ease of Movement Value)",roc:"ROC(Price Rate of Change)",pvt:"PVT(Price and Volume Trend)",ao:"AO(Awesome Oscillator)",utc:"UTC",honolulu:"(UTC-10) Honolulu",juneau:"(UTC-8) Juneau",los_angeles:"(UTC-7) Los Angeles",chicago:"(UTC-5) Chicago",toronto:"(UTC-4) Toronto",sao_paulo:"(UTC-3) Sao Paulo",london:"(UTC+1) London",berlin:"(UTC+2) Berlin",bahrain:"(UTC+3) Bahrain",dubai:"(UTC+4) Dubai",ashkhabad:"(UTC+5) Ashkhabad",almaty:"(UTC+6) Almaty",bangkok:"(UTC+7) Bangkok",shanghai:"(UTC+8) Shanghai",tokyo:"(UTC+9) Tokyo",sydney:"(UTC+10) Sydney",norfolk:"(UTC+12) Norfolk",horizontal_straight_line:"Horizontal Line",horizontal_ray_line:"Horizontal Ray",horizontal_segment:"Horizontal Segment",vertical_straight_line:"Vertical Line",vertical_ray_line:"Vertical Ray",vertical_segment:"Vertical Segment",straight_line:"Trend Line",ray_line:"Ray",segment:"Segment",arrow:"Arrow",price_line:"Price Line",price_channel_line:"Price Channel Line",parallel_straight_line:"Parallel Line",fibonacci_line:"Fibonacci Line",fibonacci_segment:"Fibonacci Segment",fibonacci_circle:"Fibonacci Circle",fibonacci_spiral:"Fibonacci Spiral",fibonacci_speed_resistance_fan:"Fibonacci Sector",fibonacci_extension:"Fibonacci Extension",gann_box:"Gann Box",rect:"Rect",parallelogram:"Parallelogram",circle:"Circle",triangle:"Triangle",three_waves:"Three Waves",five_waves:"Five Waves",eight_waves:"Eight Waves",any_waves:"Any Waves",abcd:"ABCD Pattern",xabcd:"XABCD Pattern",weak_magnet:"Weak Magnet",strong_magnet:"Strong Magnet",symbol_search:"Symbol Search",symbol_code:"Symbol Code",params_1:"Parameter 1",params_2:"Parameter 2",params_3:"Parameter 3",params_4:"Parameter 4",params_5:"Parameter 5",period:"Period",standard_deviation:"Standard Deviation",candle_type:"Candle Type",candle_solid:"Candle Solid",candle_stroke:"Candle Stroke",candle_up_stroke:"Candle Up Stroke",candle_down_stroke:"Candle Down Stroke",ohlc:"OHLC",area:"Area",heikin_ashi:"Heikin Ashi",last_price_show:"Show Last Price",high_price_show:"Show Highest Price",low_price_show:"Show Lowest Price",indicator_last_value_show:"Show indicator's last value",price_axis_type:"Price Axis Type",normal:"Normal",percentage:"Percentage",log:"Log",reverse_coordinate:"Reverse Coordinate",grid_show:"Show Grids",setting_sidebar_trading:"Trading",trading_display_positions:"Open positions",trading_display_liquidation:"Liquidation price",trading_display_open_orders:"Open orders",trading_display_his_orders:"Historical orders",restore_default:"Restore Defaults"}};function Oy(e,n){Q9[e]=n}const C=(e,n)=>{var i;return((i=Q9[n])==null?void 0:i[e])??e};G(!1),G(!1),G(!1),G(!1),G(!1),G("");const[Py,Iy]=G("");function j9(e){const n=Py();if(n)return document.getElementById(n);if(e instanceof Element){const i=e.closest(".klinecharts-pro");if(i instanceof HTMLElement)return i}return document.querySelector(".klinecharts-pro")}function Ey(){const e=document;return e.fullscreenElement??e.webkitFullscreenElement??e.mozFullScreenElement??e.msFullscreenElement??null}function Dy(e){const n=j9(e),i=Ey();return!!(n&&i&&(n===i||n.contains(i)))}const[Ry,q9]=G(!1),[_1,ho]=G(null),[v1,go]=G(null);G();const[re,By]=G(null),[X9,J9]=G(null),[e5,t5]=G([""]),[n5,r5]=G({}),[uI,Xn]=G(!1);G("");const[po,Fy]=G(!1);G(1),G();const[zy,Ci]=G(null);var Ny=N("<img alt=symbol>"),Wy=N("<div class=symbol><span>"),Ky=N('<div class=klinecharts-pro-period-bar><div class=menu-container><svg viewBox="0 0 1024 1024"><path d="M192.037 287.953h640.124c17.673 0 32-14.327 32-32s-14.327-32-32-32H192.037c-17.673 0-32 14.327-32 32s14.327 32 32 32zM832.161 479.169H438.553c-17.673 0-32 14.327-32 32s14.327 32 32 32h393.608c17.673 0 32-14.327 32-32s-14.327-32-32-32zM832.161 735.802H192.037c-17.673 0-32 14.327-32 32s14.327 32 32 32h640.124c17.673 0 32-14.327 32-32s-14.327-32-32-32zM319.028 351.594l-160 160 160 160z"></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M15.873,20L3.65079,20C1.5873,20,0,18.3871,0,16.2903L0,3.70968C-3.78442e-7,1.6129,1.5873,0,3.65079,0L15.873,0C17.9365,0,19.5238,1.6129,19.5238,3.70968C19.5238,4.35484,19.2063,4.51613,18.5714,4.51613C17.9365,4.51613,17.619,4.19355,17.619,3.70968C17.619,2.74194,16.8254,1.93548,15.873,1.93548L3.65079,1.93548C2.69841,1.93548,1.90476,2.74194,1.90476,3.70968L1.90476,16.2903C1.90476,17.2581,2.69841,18.0645,3.65079,18.0645L15.873,18.0645C16.8254,18.0645,17.619,17.2581,17.619,16.2903C17.619,15.8065,18.0952,15.3226,18.5714,15.3226C19.0476,15.3226,19.5238,15.8065,19.5238,16.2903C19.5238,18.2258,17.9365,20,15.873,20ZM14.9206,12.9032C14.7619,12.9032,14.4444,12.9032,14.2857,12.7419L11.2698,9.35484C10.9524,9.03226,10.9524,8.54839,11.2698,8.22581C11.5873,7.90323,12.0635,7.90323,12.381,8.22581L15.3968,11.6129C15.7143,11.9355,15.7143,12.4194,15.3968,12.7419C15.3968,12.9032,15.2381,12.9032,14.9206,12.9032ZM11.4286,13.2258C11.2698,13.2258,11.1111,13.2258,10.9524,13.0645C10.6349,12.7419,10.6349,12.4194,10.9524,12.0968L15.0794,7.74193C15.3968,7.41935,15.7143,7.41935,16.0317,7.74193C16.3492,8.06452,16.3492,8.3871,16.0317,8.70968L11.9048,13.0645C11.746,13.2258,11.5873,13.2258,11.4286,13.2258ZM10.3175,3.70968C10.6349,3.70968,11.4286,3.87097,11.4286,4.67742C11.4286,5.32258,10.4762,5.16129,10.1587,5.16129C8.73016,5.16129,8.25397,5.96774,8.09524,6.6129L7.77778,8.54839L9.36508,8.54839C9.68254,8.54839,10,8.87097,10,9.19355C10,9.51613,9.68254,9.83871,9.36508,9.83871L7.61905,9.83871L6.50794,14.8387Q6.34921,16.2903,5.39683,16.2903Q4.44444,16.2903,4.92064,14.8387L6.03175,10L4.60317,10C4.28571,10,3.96825,9.67742,3.96825,9.35484C3.96825,8.70968,4.28571,8.54839,4.60317,8.54839L6.34921,8.54839L6.8254,6.45161C7.14286,3.70968,9.52381,3.54839,10.3175,3.70968ZM18.4127,6.6129C18.5714,6.12903,18.8889,5.96774,19.3651,5.96774C19.8413,6.12903,20,6.45161,20,6.93548L18.4127,13.3871C18.254,13.871,17.9365,14.0323,17.4603,14.0323C16.9841,13.871,16.8254,13.5484,16.8254,13.0645L18.4127,6.6129Z></path></svg></div><div class="item tools"><svg width=20 height=20 viewBox="0 0 20 20"><path d=M18.5446,9.09091C18.3333,6.61616,17.2887,4.31818,15.5751,2.63889C13.8498,0.94697,11.6197,0,9.28404,0C8.02817,0,6.81925,0.265151,5.66901,0.782828C5.65728,0.782828,5.65728,0.795454,5.64554,0.795454C5.6338,0.795454,5.6338,0.808081,5.62207,0.808081C4.53052,1.31313,3.55634,2.0202,2.71127,2.92929C1.85446,3.85101,1.18545,4.91162,0.715963,6.11111C0.246479,7.33586,0,8.64899,0,10C0,10.8712,0.105634,11.7172,0.305164,12.5379C0.305164,12.5631,0.316901,12.5884,0.328638,12.6136C0.739437,14.2298,1.51408,15.7197,2.62911,16.9571C4.07277,18.548,5.92723,19.5581,7.93427,19.8737C7.95775,19.8737,7.96948,19.8864,7.99296,19.8864C8.3216,19.9369,8.66197,19.9747,9.00235,19.9747L9.21362,19.9747C9.61268,19.9747,10.3756,19.9369,11.0094,19.697C11.1737,19.6338,11.3028,19.5076,11.3732,19.3434C11.4437,19.1793,11.4554,18.9899,11.3967,18.8131C11.3028,18.5354,11.0563,18.346,10.7864,18.346C10.716,18.346,10.6338,18.3586,10.5634,18.3838C10.0939,18.5606,9.46009,18.5859,9.20188,18.5859L9.09624,18.5859C9.20188,18.2702,9.23709,17.9167,9.15493,17.5505C9.00235,16.8939,8.50939,16.3384,7.58216,15.7955L7.19484,15.5682C6.57277,15.2146,6.23239,15.0253,6.03286,14.7348C5.83333,14.4444,5.69249,13.9899,5.51643,12.9798C5.38732,12.298,5.04695,11.7677,4.50704,11.4646C4.14319,11.2626,3.70892,11.149,3.19249,11.149C2.82864,11.149,2.42958,11.1995,2.00704,11.3005C1.79578,11.351,1.59624,11.4141,1.42019,11.4646C1.33803,10.9848,1.30282,10.4798,1.30282,9.97475C1.30282,6.93182,2.76995,4.26768,4.98826,2.72727C5,3.00505,5.05869,3.29545,5.17606,3.57323C5.48122,4.26768,6.10329,4.7096,7.01878,4.89899C7.06573,4.91162,7.10094,4.91162,7.13615,4.91162L7.1831,4.91162C7.26526,4.91162,7.57042,4.92424,7.88732,5.0505C8.3216,5.2399,8.56808,5.55555,8.65023,6.04798C8.84977,7.61364,9.07277,10.4293,8.79108,11.3384C8.76761,11.4141,8.75587,11.4899,8.75587,11.5657C8.75587,11.9444,9.0493,12.2601,9.40141,12.2601C9.57747,12.2601,9.74179,12.1843,9.85915,12.0581C9.97653,11.9318,12.6174,9.05303,13.3216,8.09343C13.4038,7.97979,13.4859,7.87878,13.5798,7.76515C13.9202,7.33586,14.2723,6.90656,14.4014,6.26262C14.554,5.56818,14.4014,4.79798,13.9437,3.85101C13.615,3.16919,13.5563,2.86616,13.5446,2.75252C13.5563,2.7399,13.5798,2.72727,13.6033,2.71464C15.6221,4.10353,17.0188,6.43939,17.2535,9.19192C17.2887,9.55808,17.5587,9.82323,17.8991,9.82323L17.9577,9.82323C18.3099,9.8106,18.5681,9.48232,18.5446,9.09091ZM3.19249,12.5631C3.48592,12.5631,3.72066,12.6136,3.89671,12.7146C4.08451,12.8283,4.19014,12.9924,4.23709,13.2702C4.43662,14.3434,4.61268,15.0631,5,15.6061C5.37559,16.1364,5.85681,16.4015,6.58451,16.8182L6.60798,16.8308C6.71362,16.8939,6.84272,16.9571,6.96009,17.0328C7.69953,17.4621,7.86385,17.7525,7.89906,17.8914C7.93427,18.0303,7.85211,18.2323,7.74648,18.4343C4.91784,17.8535,2.65258,15.6944,1.73709,12.8283C2.15962,12.702,2.71127,12.5631,3.19249,12.5631ZM12.7934,4.5202C13.4272,5.83333,13.1455,6.18687,12.5822,6.89394C12.4883,7.00758,12.3944,7.12121,12.3005,7.24747C11.9484,7.72727,11.0211,8.77525,10.2113,9.68434C10.2113,9.24242,10.1878,8.73737,10.1526,8.19444C10.0704,6.95707,9.92958,5.90909,9.92958,5.87121L9.92958,5.83333C9.75352,4.83586,9.20188,4.11616,8.3216,3.76263C7.82864,3.56061,7.37089,3.53535,7.19484,3.53535C6.73709,3.43434,6.4554,3.24495,6.33803,2.99242C6.19718,2.68939,6.29108,2.24747,6.38498,1.9697C7.28873,1.59091,8.26291,1.37626,9.28404,1.37626C10.3873,1.37626,11.4437,1.61616,12.4061,2.04545C12.3357,2.18434,12.277,2.34848,12.2535,2.5505C12.2066,3.04293,12.3709,3.64899,12.7934,4.5202Z></path><path d=M15.22299772857666,9.722223632261718C12.59389772857666,9.722223632261718,10.44600772857666,12.020201374511718,10.44600772857666,14.861111374511719C10.44600772857666,17.70202137451172,12.58215772857666,20.000021374511718,15.223007728576661,20.000021374511718C17.86384772857666,20.000021374511718,19.99999772857666,17.70202137451172,19.99999772857666,14.861111374511719C19.99999772857666,12.020201374511718,17.85211772857666,9.72222212709572,15.22299772857666,9.722223632261718ZM15.22299772857666,18.598491374511717C13.30985772857666,18.598491374511717,11.737087728576661,16.91919137451172,11.737087728576661,14.848481374511719C11.737087728576661,12.777781374511719,13.29811772857666,11.098491374511719,15.22299772857666,11.098491374511719C17.14787772857666,11.098491374511719,18.708917728576658,12.777781374511719,18.708917728576658,14.848481374511719C18.708917728576658,16.91919137451172,17.13614772857666,18.59848137451172,15.22299772857666,18.598491374511717Z></path><path d=M15.692486288146974,15.050496970825195L15.692486288146974,12.676760970825196C15.692486288146974,12.297972970825196,15.399058288146973,11.982316970825195,15.046945288146972,11.982316970825195C14.694833288146972,11.982316970825195,14.401406288146973,12.297972970825196,14.401406288146973,12.676760970825196L14.401406288146973,15.340896970825195C14.401406288146973,15.530296970825194,14.471829288146973,15.694436970825196,14.589200288146973,15.833326970825196L15.751176288146972,17.095956970825195C15.868546288146973,17.222216970825194,16.032866288146973,17.297976970825196,16.208916288146973,17.297976970825196C16.384976288146973,17.297976970825196,16.537556288146973,17.222216970825194,16.666666288146974,17.095956970825195C16.78403628814697,16.969686970825194,16.854456288146974,16.792916970825196,16.854456288146974,16.603526970825193C16.854456288146974,16.414136970825197,16.78403628814697,16.237366970825196,16.666666288146974,16.111106970825197L15.692486288146974,15.050496970825195Z></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d="M10 1a5 5 0 0 0-5 5v2.6L3.2 12a1 1 0 0 0 .8 1.6h12a1 1 0 0 0 .8-1.6L15 8.6V6a5 5 0 0 0-5-5zm0 18a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 10 19z"></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M19.7361,12.542L18.1916,11.2919C18.2647,10.8678,18.3025,10.4347,18.3025,10.0017C18.3025,9.56861,18.2647,9.13555,18.1916,8.71142L19.7361,7.46135C19.9743,7.26938,20.0615,6.95686,19.9554,6.6756L19.9342,6.61756C19.5074,5.49026,18.8755,4.45449,18.0549,3.53926L18.0124,3.49238C17.8096,3.26692,17.4819,3.1821,17.1848,3.28032L15.2677,3.92544C14.5603,3.3763,13.7704,2.94324,12.9168,2.63966L12.5466,0.742229C12.49,0.449802,12.2472,0.222111,11.9383,0.168536L11.8746,0.157375C10.6461,-0.0524583,9.35391,-0.0524583,8.1254,0.157375L8.06174,0.168536C7.75284,0.222111,7.50997,0.449802,7.45338,0.742229L7.08082,2.64859C6.2343,2.95217,5.44909,3.383,4.74641,3.92991L2.81522,3.28032C2.52047,3.1821,2.19036,3.26469,1.98757,3.49238L1.94513,3.53926C1.12455,4.45672,0.492609,5.49249,0.0658141,6.61756L0.0445921,6.6756C-0.0615171,6.95463,0.0257283,7.26715,0.263885,7.46135L1.82723,8.72482C1.75413,9.14448,1.71876,9.57308,1.71876,9.99944C1.71876,10.428,1.75413,10.8566,1.82723,11.2741L0.263885,12.5375C0.025729,12.7295,-0.0615164,13.042,0.0445929,13.3233L0.0658148,13.3813C0.49261,14.5064,1.12455,15.5444,1.94513,16.4596L1.98757,16.5065C2.19036,16.732,2.51812,16.8168,2.81522,16.7186L4.74641,16.069C5.44909,16.6159,6.2343,17.0489,7.08082,17.3503L7.45338,19.2567C7.50997,19.5491,7.75284,19.7768,8.06174,19.8303L8.1254,19.8415C8.74084,19.9464,9.37042,20,10,20C10.6296,20,11.2615,19.9464,11.8746,19.8415L11.9383,19.8303C12.2472,19.7768,12.49,19.5491,12.5466,19.2567L12.9168,17.3592C13.7704,17.0556,14.5603,16.6248,15.2677,16.0734L17.1848,16.7186C17.4795,16.8168,17.8096,16.7342,18.0124,16.5065L18.0549,16.4596C18.8755,15.5422,19.5074,14.5064,19.9342,13.3813L19.9554,13.3233C20.0615,13.0487,19.9743,12.7362,19.7361,12.542ZM16.5175,8.97483C16.5764,9.3119,16.6071,9.65791,16.6071,10.0039C16.6071,10.3499,16.5764,10.6959,16.5175,11.033L16.3618,11.9281L18.1233,13.3545C17.8568,13.9372,17.5196,14.4863,17.1188,14.9975L14.9305,14.2631L14.1901,14.839C13.6266,15.2765,12.9994,15.6203,12.3203,15.8614L11.4219,16.1806L10.9998,18.3459C10.3372,18.4173,9.66045,18.4173,8.9955,18.3459L8.57342,16.1761L7.6821,15.8524C7.01008,15.6114,6.38521,15.2676,5.82637,14.8323L5.08596,14.2541L2.88361,14.9953C2.48275,14.4841,2.14791,13.9327,1.8791,13.3523L3.65938,11.9125L3.50611,11.0196C3.44952,10.687,3.41887,10.3432,3.41887,10.0039C3.41887,9.66237,3.44716,9.32083,3.50611,8.98822L3.65938,8.09531L1.8791,6.6555C2.14556,6.07288,2.48275,5.52374,2.88361,5.01255L5.08596,5.75367L5.82637,5.17551C6.38521,4.74022,7.01008,4.39645,7.6821,4.15536L8.57578,3.83615L8.99786,1.66638C9.66045,1.59495,10.3372,1.59495,11.0021,1.66638L11.4242,3.83168L12.3226,4.1509C12.9994,4.39198,13.6289,4.73575,14.1925,5.17328L14.9329,5.7492L17.1211,5.01479C17.522,5.52598,17.8568,6.07734,18.1256,6.65773L16.3642,8.08416L16.5175,8.97483ZM10.0024,5.85189C7.7104,5.85189,5.85231,7.61092,5.85231,9.78068C5.85231,11.9504,7.7104,13.7095,10.0024,13.7095C12.2943,13.7095,14.1524,11.9504,14.1524,9.78068C14.1524,7.61092,12.2943,5.85189,10.0024,5.85189ZM11.8699,11.5486C11.37,12.0196,10.7074,12.2808,10.0024,12.2808C9.29732,12.2808,8.63473,12.0196,8.13483,11.5486C7.6373,11.0754,7.36142,10.4481,7.36142,9.78068C7.36142,9.11323,7.6373,8.48596,8.13483,8.01272C8.63473,7.53948,9.29732,7.28054,10.0024,7.28054C10.7074,7.28054,11.37,7.53948,11.8699,8.01272C12.3674,8.48596,12.6433,9.11323,12.6433,9.78068C12.6433,10.4481,12.3674,11.0754,11.8699,11.5486Z></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M6.50977,1L13.4902,1C13.6406,1,13.7695,1.1104910000000001,13.7969,1.2631700000000001L14.0273,2.52277C14.1387,3.13147,14.6543,3.57143,15.2559,3.57143L17.5,3.57143C18.8809,3.57143,20,4.72254,20,6.14286L20,16.4286C20,17.8489,18.8809,19,17.5,19L2.5,19C1.11914,19,0,17.8489,0,16.4286L0,6.14286C0,4.72254,1.11914,3.57143,2.5,3.57143L4.74414,3.57143C5.3457,3.57143,5.86133,3.13147,5.97266,2.52277L6.20312,1.2631700000000001C6.23047,1.1104910000000001,6.35937,1,6.50977,1ZM15.2559,4.857139999999999C14.0547,4.857139999999999,13.0215,3.97522,12.7988,2.75982L12.7129,2.28571L7.28711,2.28571L7.20117,2.75982C6.98047,3.97522,5.94727,4.857139999999999,4.74414,4.857139999999999L2.5,4.857139999999999C1.81055,4.857139999999999,1.25,5.43371,1.25,6.14286L1.25,16.4286C1.25,17.1377,1.81055,17.7143,2.5,17.7143L17.5,17.7143C18.1895,17.7143,18.75,17.1377,18.75,16.4286L18.75,6.14286C18.75,5.43371,18.1895,4.857139999999999,17.5,4.857139999999999L15.2559,4.857139999999999ZM4.375,6.78571L3.125,6.78571C2.7793,6.78571,2.5,6.49844,2.5,6.14286C2.5,5.78728,2.7793,5.5,3.125,5.5L4.375,5.5C4.7207,5.5,5,5.78728,5,6.14286C5,6.49844,4.7207,6.78571,4.375,6.78571ZM10,6.14286C7.06641,6.14286,4.6875,8.58973,4.6875,11.6071C4.6875,14.6246,7.06641,17.0714,10,17.0714C12.9336,17.0714,15.3125,14.6246,15.3125,11.6071C15.3125,8.58973,12.9336,6.14286,10,6.14286ZM10,7.42857C11.0859,7.42857,12.1055,7.8625,12.873,8.65201C13.6406,9.44152,14.0625,10.49018,14.0625,11.6071C14.0625,12.7241,13.6406,13.7728,12.873,14.5623C12.1055,15.3518,11.0859,15.7857,10,15.7857C8.91406,15.7857,7.89453,15.3518,7.12695,14.5623C6.35937,13.7728,5.9375,12.7241,5.9375,11.6071C5.9375,10.49018,6.35938,9.44152,7.12695,8.65201C7.89453,7.8625,8.91406,7.42857,10,7.42857ZM10,9.67857C8.96484,9.67857,8.125,10.54241,8.125,11.6071C8.125,12.6719,8.96484,13.5357,10,13.5357C11.0352,13.5357,11.875,12.6719,11.875,11.6071C11.875,10.54241,11.0352,9.67857,10,9.67857ZM10,10.96429C10.3438,10.96429,10.625,11.2536,10.625,11.6071C10.625,11.9607,10.3438,12.25,10,12.25C9.65625,12.25,9.375,11.9607,9.375,11.6071C9.375,11.2536,9.65625,10.96429,10,10.96429Z></path></svg></div><div class="item tools">'),Uy=N("<button type=button>"),Zy=N('<svg viewBox="0 0 20 20"><path d=M1.08108,0L0,1.079L4.18919,5.27938L2.54826,6.91715L6.9112,6.91715L6.9112,2.56262L5.28957,4.18112L1.08108,0ZM15.8108,5.27938L20,1.079L18.9189,0L14.7104,4.18112L13.0888,2.56262L13.0888,6.91715L17.4517,6.91715L15.8108,5.27938ZM4.16988,14.7014L0.07722,18.8054L1.1583,20L5.27027,15.7996L6.9112,17.4374L6.9112,13.0829L2.54826,13.0829L4.16988,14.7014ZM17.4517,13.0829L13.0888,13.0829L13.0888,17.4374L14.7297,15.7996L18.8417,20L19.9228,18.8054L15.8301,14.7013L17.4517,13.0829Z>'),Hy=N('<svg viewBox="0 0 20 20"><path d=M2.93444,1.76899L7.57544,6.40999L6.38918,7.59626L1.76899,2.93444L0,4.70343L0,0L4.70343,0L2.93444,1.76899ZM6.40999,12.4037L1.76899,17.0447L0,15.2758L0,19.9792L4.70343,19.9792L2.93444,18.2102L7.57544,13.5692L6.40999,12.4037ZM15.2758,0L17.0447,1.76899L12.4037,6.40999L13.59,7.59626L18.231,2.95526L20,4.72425L20,0L15.2758,0ZM13.5692,12.4037L12.3829,13.59L17.0239,18.231L15.2549,20L19.9792,20L19.9792,15.2758L18.2102,17.0447L13.5692,12.4037Z>');const Yy=e=>{let n;const i=l=>l.span===e.period.span&&l.type===e.period.type,a=()=>{Fy(Dy(n))},s=l=>{if(l.shiftKey)return;const c=l.currentTarget;if(c.scrollWidth<=c.clientWidth)return;let f=l.deltaY;if(l.deltaMode===WheelEvent.DOM_DELTA_LINE?f*=16:l.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(f*=c.clientWidth),f===0)return;const d=c.scrollWidth-c.clientWidth;f>0&&c.scrollLeft>=d-1||f<0&&c.scrollLeft<=0||(l.preventDefault(),c.scrollLeft+=f)};return x0(()=>{document.addEventListener("fullscreenchange",a),document.addEventListener("mozfullscreenchange",a),document.addEventListener("webkitfullscreenchange",a),document.addEventListener("msfullscreenchange",a)}),Lr(()=>{document.removeEventListener("fullscreenchange",a),document.removeEventListener("mozfullscreenchange",a),document.removeEventListener("webkitfullscreenchange",a),document.removeEventListener("msfullscreenchange",a)}),(()=>{var l=Ky(),c=l.firstChild,f=c.firstChild,d=c.nextSibling,g=d.nextSibling,_=g.nextSibling,y=_.nextSibling,b=y.nextSibling,k=b.nextSibling;return X1(v=>{const w=n;w&&w.removeEventListener("wheel",s),n=v,v&&v.addEventListener("wheel",s,{passive:!1})},l),$n(f,"click",e.onMenuClick,!0),W(l,Z(Oe,{get when(){return e.symbol},get children(){var v=Wy(),w=v.firstChild;return $n(v,"click",e.onSymbolClick,!0),W(v,Z(Oe,{get when(){return e.symbol.logo},get children(){var L=Ny();return Te(()=>ft(L,"src",e.symbol.logo)),L}}),w),W(w,()=>e.symbol.shortName??e.symbol.name??e.symbol.ticker),v}}),d),W(l,()=>e.periods.map(v=>(()=>{var w=Uy();return w.$$click=()=>{e.onPeriodChange(v)},W(w,()=>v.text),Te(()=>Zt(w,`item tools period ${i(v)?"selected":""}`)),w})()),d),$n(d,"click",e.onIndicatorClick,!0),$n(g,"click",e.onTimezoneClick,!0),$n(_,"click",e.onAlertClick,!0),$n(y,"click",e.onSettingClick,!0),$n(b,"click",e.onScreenshotClick,!0),k.$$click=()=>{if(po())(document.exitFullscreen??document.msExitFullscreen??document.mozCancelFullScreen??document.webkitExitFullscreen).call(document);else{const v=j9(n);v&&(v.requestFullscreen??v.webkitRequestFullscreen??v.mozRequestFullScreen??v.msRequestFullscreen).call(v)}},W(k,(()=>{var v=je(()=>!!po());return()=>v()?Zy():Hy()})()),Te(v=>{var w=e.spread?"":"rotate",L=C("indicator",e.locale),$=C("timezone",e.locale),T=C("alerts",e.locale),P=C("setting",e.locale),D=C("screenshot",e.locale),U=po()?C("exit_full_screen",e.locale):C("full_screen",e.locale);return w!==v.e&&ft(f,"class",v.e=w),L!==v.t&&ft(d,"title",v.t=L),$!==v.a&&ft(g,"title",v.a=$),T!==v.o&&ft(_,"title",v.o=T),P!==v.i&&ft(y,"title",v.i=P),D!==v.n&&ft(b,"title",v.n=D),U!==v.s&&ft(k,"title",v.s=U),v},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),l})()};zt(["click"]);var Gy=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M12.41465,11L18.5,11C18.7761,11,19,11.22386,19,11.5C19,11.77614,18.7761,12,18.5,12L12.41465,12C12.20873,12.5826,11.65311,13,11,13C10.34689,13,9.79127,12.5826,9.58535,12L3.5,12C3.223857,12,3,11.77614,3,11.5C3,11.22386,3.223857,11,3.5,11L9.58535,11C9.79127,10.417404,10.34689,10,11,10C11.65311,10,12.20873,10.417404,12.41465,11Z stroke-opacity=0 stroke=none>');const Vy=()=>Gy();var Qy=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M6.91465,11L11.08535,11C11.29127,10.417404,11.84689,10,12.5,10C13.15311,10,13.70873,10.417404,13.91465,11L18.5,11C18.7761,11,19,11.22386,19,11.5C19,11.77614,18.7761,12,18.5,12L13.91465,12C13.70873,12.5826,13.15311,13,12.5,13C11.84689,13,11.29127,12.5826,11.08535,12L6.91465,12C6.70873,12.5826,6.15311,13,5.5,13C4.671573,13,4,12.32843,4,11.5C4,10.671573,4.671573,10,5.5,10C6.15311,10,6.70873,10.417404,6.91465,11Z stroke-opacity=0 stroke=none>');const jy=()=>Qy();var qy=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M6.91465,12.5C6.70873,13.0826,6.15311,13.5,5.5,13.5C4.671573,13.5,4,12.82843,4,12C4,11.171573,4.671573,10.5,5.5,10.5C6.15311,10.5,6.70873,10.917404,6.91465,11.5L16.0853,11.5C16.2913,10.917404,16.846899999999998,10.5,17.5,10.5C18.328400000000002,10.5,19,11.171573,19,12C19,12.82843,18.328400000000002,13.5,17.5,13.5C16.846899999999998,13.5,16.2913,13.0826,16.0853,12.5L6.91465,12.5Z stroke-opacity=0 stroke=none>');const Xy=()=>qy();var Jy=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11,12.41465L11,18.5C11,18.7761,11.22386,19,11.5,19C11.77614,19,12,18.7761,12,18.5L12,12.41465C12.5826,12.20873,13,11.65311,13,11C13,10.34689,12.5826,9.79127,12,9.58535L12,3.5C12,3.223857,11.77614,3,11.5,3C11.22386,3,11,3.223857,11,3.5L11,9.58535C10.417404,9.79127,10,10.34689,10,11C10,11.65311,10.417404,12.20873,11,12.41465Z stroke-opacity=0 stroke=none>');const e_=()=>Jy();var t_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11.66558837890625,19C10.83716137890625,19,10.16558837890625,18.328400000000002,10.16558837890625,17.5C10.16558837890625,16.846899999999998,10.58298437890625,16.2913,11.16557337890625,16.0854L11.16557337890625,11.91464C10.58298437890625,11.70872,10.16558837890625,11.1531,10.16558837890625,10.5C10.16558837890625,9.8469,10.58298437890625,9.29128,11.16557337890625,9.08536L11.16557337890625,4.5C11.16557337890625,4.223857,11.38942837890625,4,11.66556837890625,4C11.94171837890625,4,12.16556837890625,4.223857,12.16556837890625,4.5L12.16556837890625,9.08535C12.74817837890625,9.291260000000001,13.16558837890625,9.846879999999999,13.16558837890625,10.5C13.16558837890625,11.153120000000001,12.74817837890625,11.708739999999999,12.16556837890625,11.91465L12.16556837890625,16.0854C12.74817837890625,16.2913,13.16558837890625,16.846899999999998,13.16558837890625,17.5C13.16558837890625,18.328400000000002,12.49401837890625,19,11.66558837890625,19Z stroke-opacity=0 stroke=none>');const n_=()=>t_();var r_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11.165603637695312,6.91465C11.748203637695312,6.70873,12.165603637695312,6.15311,12.165603637695312,5.5C12.165603637695312,4.671573,11.494033637695313,4,10.665603637695312,4C9.837176637695313,4,9.165603637695312,4.671573,9.165603637695312,5.5C9.165603637695312,6.15311,9.583007637695312,6.70873,10.165603637695312,6.91465L10.165603637695312,16.0854C9.583007637695312,16.2913,9.165603637695312,16.846899999999998,9.165603637695312,17.5C9.165603637695312,18.328400000000002,9.837176637695313,19,10.665603637695312,19C11.494033637695313,19,12.165603637695312,18.328400000000002,12.165603637695312,17.5C12.165603637695312,16.846899999999998,11.748203637695312,16.2913,11.165603637695312,16.0854L11.165603637695312,6.91465Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const i_=()=>r_();var o_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M5.146447,15.753C4.9511845,15.9483,4.9511845,16.2649,5.146447,16.4602C5.341709,16.6554,5.658291,16.6554,5.853554,16.4602L8.156600000000001,14.15711C8.352409999999999,14.25082,8.57173,14.3033,8.8033,14.3033C9.631730000000001,14.3033,10.3033,13.63172,10.3033,12.80329C10.3033,12.57172,10.250820000000001,12.352409999999999,10.157119999999999,12.15659L12.156600000000001,10.15711C12.352409999999999,10.250820000000001,12.571729999999999,10.30329,12.8033,10.30329C13.63173,10.30329,14.3033,9.63172,14.3033,8.80329C14.3033,8.57172,14.25082,8.352409999999999,14.15712,8.15659L16.4602,5.853553C16.6554,5.658291,16.6554,5.341709,16.4602,5.146447C16.2649,4.9511843,15.9483,4.9511843,15.753,5.146447L13.45001,7.449479999999999C13.25419,7.35577,13.03487,7.3032900000000005,12.8033,7.3032900000000005C11.97487,7.3032900000000005,11.3033,7.97487,11.3033,8.80329C11.3033,9.03487,11.35578,9.254190000000001,11.44949,9.450009999999999L9.450009999999999,11.449480000000001C9.254190000000001,11.35577,9.03487,11.30329,8.8033,11.30329C7.97487,11.30329,7.3033,11.97487,7.3033,12.80329C7.3033,13.03487,7.35578,13.25419,7.44949,13.45001L5.146447,15.753Z stroke-opacity=0 stroke=none>');const a_=()=>o_();var s_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M7.573332939453125,14.54567903564453C7.667042939453125,14.741499035644532,7.719512939453125,14.960809035644532,7.719512939453125,15.19239903564453C7.719512939453125,16.02079903564453,7.047942939453125,16.69239903564453,6.219512939453125,16.69239903564453C5.391085939453125,16.69239903564453,4.719512939453125,16.02079903564453,4.719512939453125,15.19239903564453C4.719512939453125,14.36394903564453,5.391085939453125,13.692379035644532,6.219512939453125,13.692379035644532C6.451092939453125,13.692379035644532,6.670412939453125,13.74485903564453,6.866232939453125,13.83856903564453L9.865702939453126,10.83909903564453C9.771992939453124,10.643279035644532,9.719512939453125,10.42395903564453,9.719512939453125,10.192379035644532C9.719512939453125,9.36394903564453,10.391082939453124,8.692379035644532,11.219512939453125,8.692379035644532C11.451092939453126,8.692379035644532,11.670412939453126,8.74485903564453,11.866232939453125,8.838569035644532L15.462112939453124,5.242645035644531C15.657412939453126,5.047383335644532,15.974012939453125,5.047383335644532,16.169212939453125,5.242645035644531C16.364512939453125,5.437907035644531,16.364512939453125,5.754489035644531,16.169212939453125,5.949752035644531L12.573332939453124,9.545679035644532C12.667042939453125,9.74149903564453,12.719512939453125,9.96080903564453,12.719512939453125,10.192379035644532C12.719512939453125,11.020809035644533,12.047942939453126,11.692379035644532,11.219512939453125,11.692379035644532C10.987942939453125,11.692379035644532,10.768632939453125,11.639909035644532,10.572812939453126,11.54619903564453L7.573332939453125,14.54567903564453Z stroke-opacity=0 stroke=none>');const l_=()=>s_();var c_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M15.719512939453125,8.461776733398438C16.547912939453127,8.461776733398438,17.219512939453125,7.7902067333984375,17.219512939453125,6.9617767333984375C17.219512939453125,6.133349733398438,16.547912939453127,5.4617767333984375,15.719512939453125,5.4617767333984375C14.891082939453124,5.4617767333984375,14.219512939453125,6.133349733398438,14.219512939453125,6.9617767333984375C14.219512939453125,7.193346733398437,14.271992939453124,7.412666733398438,14.365692939453124,7.608486733398438L7.366222939453126,14.607956733398437C7.170402939453125,14.514256733398437,6.951082939453125,14.461776733398438,6.719512939453125,14.461776733398438C5.891085939453125,14.461776733398438,5.219512939453125,15.133346733398437,5.219512939453125,15.961776733398438C5.219512939453125,16.79017673339844,5.891085939453125,17.461776733398438,6.719512939453125,17.461776733398438C7.547942939453125,17.461776733398438,8.219512939453125,16.79017673339844,8.219512939453125,15.961776733398438C8.219512939453125,15.730176733398437,8.167032939453126,15.510876733398437,8.073322939453124,15.315066733398437L15.072802939453124,8.315586733398437C15.268612939453124,8.409296733398438,15.487912939453125,8.461776733398438,15.719512939453125,8.461776733398438Z stroke-opacity=0 stroke=none>');const u_=()=>c_();var f_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M17.0643,7.033864912109375L18,3.585784912109375L14.5078,4.509695912109375L15.3537,5.344934912109375L6.02026,14.560584912109375C5.87635,14.517484912109374,5.72366,14.494284912109375,5.5655,14.494284912109375C4.7009,14.494284912109375,4,15.186384912109375,4,16.040084912109375C4,16.893784912109375,4.7009,17.585784912109375,5.5655,17.585784912109375C6.43011,17.585784912109375,7.13101,16.893784912109375,7.13101,16.040084912109375C7.13101,15.722284912109375,7.03392,15.426984912109376,6.86744,15.181384912109374L16.0917,6.073604912109375L17.0643,7.033864912109375Z stroke-opacity=0 stroke=none>');const d_=()=>f_();var h_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M6.91465,13.00505L18.5,13.00505C18.7761,13.00505,19,13.228909999999999,19,13.50505C19,13.781189999999999,18.7761,14.00505,18.5,14.00505L6.91465,14.00505C6.70873,14.58765,6.15311,15.00505,5.5,15.00505C4.671573,15.00505,4,14.33348,4,13.50505C4,12.67662,4.671573,12.00505,5.5,12.00505C6.15311,12.00505,6.70873,12.422450000000001,6.91465,13.00505ZM7.81404,11.625L10.48591,11.625L10.48591,10.90625L9.65193,10.90625L9.65193,7.125L8.997630000000001,7.125C8.71443,7.306641,8.415600000000001,7.419922,7.96443,7.498047L7.96443,8.05078L8.77497,8.05078L8.77497,10.90625L7.81404,10.90625L7.81404,11.625ZM11.081620000000001,11.625L14.0562,11.625L14.0562,10.88281L13.09724,10.88281C12.8863,10.88281,12.59333,10.90625,12.36482,10.93555C13.17537,10.11328,13.84724,9.2207,13.84724,8.39062C13.84724,7.541016,13.28865,7,12.4488,7C11.84333,7,11.446850000000001,7.234375,11.03279,7.679688L11.52497,8.16797C11.747630000000001,7.914062,12.0113,7.697266,12.33552,7.697266C12.7613,7.697266,13.00154,7.982422,13.00154,8.43359C13.00154,9.14648,12.29255,10.00781,11.081620000000001,11.11523L11.081620000000001,11.625ZM15.9605,11.75C16.8121,11.75,17.526899999999998,11.2832,17.526899999999998,10.4375C17.526899999999998,9.82031,17.142200000000003,9.43945,16.6441,9.30078L16.6441,9.27148C17.1129,9.08594,17.3824,8.7207,17.3824,8.21289C17.3824,7.421875,16.8004,7,15.9429,7C15.4215,7,14.9957,7.210938,14.6109,7.541016L15.066,8.11133C15.3258,7.849609,15.5836,7.697266,15.9019,7.697266C16.2789,7.697266,16.4957,7.914062,16.4957,8.28125C16.4957,8.70898,16.2301,9,15.4215,9L15.4215,9.63672C16.3804,9.63672,16.6383,9.91992,16.6383,10.38086C16.6383,10.79688,16.3336,11.03125,15.8824,11.03125C15.4742,11.03125,15.1578,10.82227,14.8922,10.55078L14.4781,11.13281C14.7906,11.486329999999999,15.2652,11.75,15.9605,11.75Z stroke-opacity=0 stroke=none>');const g_=()=>h_();var p_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M3.146447,14.178126025390625C2.9511847,13.982826025390626,2.9511847,13.666226025390625,3.146447,13.470926025390625L7.39146,9.225966025390626C7.35417,9.095106025390624,7.33421,8.956946025390625,7.33421,8.814116025390625C7.33421,7.985696025390625,8.00578,7.314116025390625,8.834209999999999,7.314116025390625C8.97703,7.314116025390625,9.11519,7.334086025390625,9.24605,7.371366025390625L13.753,2.864373025390625C13.9483,2.669110325390625,14.2649,2.669110325390625,14.4602,2.864373025390625C14.6554,3.059635025390625,14.6554,3.376217025390625,14.4602,3.571479025390625L10.06916,7.962476025390625C10.23631,8.204386025390626,10.334209999999999,8.497826025390625,10.334209999999999,8.814116025390625C10.334209999999999,9.642546025390626,9.66264,10.314116025390625,8.834209999999999,10.314116025390625C8.51791,10.314116025390625,8.22448,10.216226025390625,7.98256,10.049076025390626L3.853554,14.178126025390625C3.658291,14.373326025390625,3.341709,14.373326025390625,3.146447,14.178126025390625ZM7.67736,19.188526025390626C7.4821,18.993226025390626,7.4821,18.676626025390625,7.67736,18.481426025390626L9.9804,16.178326025390625C9.88669,15.982526025390625,9.834209999999999,15.763226025390624,9.834209999999999,15.531626025390626C9.834209999999999,14.703226025390626,10.50578,14.031626025390626,11.33421,14.031626025390626C11.56579,14.031626025390626,11.78511,14.084126025390624,11.98093,14.177826025390624L13.9804,12.178356025390626C13.8867,11.982536025390624,13.8342,11.763216025390625,13.8342,11.531636025390625C13.8342,10.703206025390624,14.5058,10.031636025390625,15.3342,10.031636025390625C15.5658,10.031636025390625,15.7851,10.084116025390625,15.9809,10.177826025390626L18.284,7.874796025390625C18.4792,7.679536025390625,18.7958,7.679536025390625,18.9911,7.874796025390625C19.1863,8.070056025390624,19.1863,8.386636025390626,18.9911,8.581906025390625L16.688000000000002,10.884936025390624C16.7817,11.080756025390626,16.8342,11.300066025390626,16.8342,11.531636025390625C16.8342,12.360066025390624,16.162599999999998,13.031626025390626,15.3342,13.031626025390626C15.1026,13.031626025390626,14.8833,12.979126025390626,14.6875,12.885426025390625L12.68803,14.884926025390625C12.78174,15.080726025390625,12.83421,15.300026025390626,12.83421,15.531626025390626C12.83421,16.360026025390624,12.16264,17.031626025390626,11.33421,17.031626025390626C11.10264,17.031626025390626,10.88333,16.979126025390627,10.68751,16.885426025390625L8.38446,19.188526025390626C8.1892,19.383726025390626,7.87262,19.383726025390626,7.67736,19.188526025390626Z stroke-opacity=0 stroke=none>');const m_=()=>p_();var y_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M3.3367688759765626,12.63173C3.5320318759765623,12.82699,3.8486138759765627,12.82699,4.043876875976562,12.63173L11.822052875976562,4.853553C12.017312875976563,4.658291,12.017312875976563,4.341708,11.822052875976562,4.146446C11.626792875976562,3.9511843,11.310202875976563,3.9511843,11.114942875976563,4.146446L3.3367688759765626,11.92462C3.1415071759765625,12.11988,3.1415071759765625,12.43647,3.3367688759765626,12.63173ZM5.001492875976562,17.0351C4.806232875976562,16.8399,4.806232875976562,16.5233,5.001492875976562,16.328L7.304532875976562,14.025C7.210822875976563,13.82916,7.158352875976563,13.60984,7.158352875976563,13.37827C7.158352875976563,12.54984,7.829922875976562,11.87827,8.658352875976561,11.87827C8.889922875976563,11.87827,9.109232875976563,11.93075,9.305052875976562,12.02446L11.304532875976562,10.02498C11.210822875976563,9.82916,11.158352875976561,9.60984,11.158352875976561,9.37827C11.158352875976561,8.54984,11.829922875976562,7.8782700000000006,12.658352875976563,7.8782700000000006C12.889922875976563,7.8782700000000006,13.109232875976563,7.93075,13.305022875976562,8.024460000000001L15.608122875976562,5.72142C15.803322875976562,5.5261499999999995,16.119922875976563,5.5261499999999995,16.315222875976563,5.72142C16.510422875976563,5.9166799999999995,16.510422875976563,6.23326,16.315222875976563,6.42852L14.012122875976562,8.73156C14.105822875976562,8.92738,14.158322875976562,9.1467,14.158322875976562,9.37827C14.158322875976562,10.2067,13.486822875976562,10.87827,12.658352875976563,10.87827C12.426772875976562,10.87827,12.207452875976562,10.82579,12.011642875976563,10.73209L10.012162875976562,12.73156C10.105872875976562,12.92738,10.158352875976561,13.1467,10.158352875976561,13.37827C10.158352875976561,14.2067,9.486772875976563,14.8783,8.658352875976561,14.8783C8.426772875976562,14.8783,8.207452875976562,14.8258,8.011642875976563,14.7321L5.708602875976562,17.0351C5.513342875976562,17.2304,5.196752875976562,17.2304,5.001492875976562,17.0351ZM10.415712875976563,18.328C10.220452875976562,18.5233,9.903862875976563,18.5233,9.708602875976563,18.328C9.513342875976562,18.1328,9.513342875976562,17.816200000000002,9.708602875976563,17.6209L12.304532875976562,15.025C12.210822875976563,14.8292,12.158352875976563,14.6098,12.158352875976563,14.3783C12.158352875976563,13.54984,12.829922875976562,12.87827,13.658322875976562,12.87827C13.889922875976563,12.87827,14.109222875976563,12.93075,14.305022875976562,13.02446L17.486822875976564,9.84274C17.682022875976564,9.64747,17.99862287597656,9.64747,18.19392287597656,9.84274C18.38912287597656,10.038,18.38912287597656,10.35458,18.19392287597656,10.54984L15.012122875976562,13.73156C15.105822875976562,13.92738,15.158322875976562,14.1467,15.158322875976562,14.3783C15.158322875976562,15.2067,14.486822875976562,15.8783,13.658322875976562,15.8783C13.426822875976562,15.8783,13.207422875976562,15.8258,13.011642875976563,15.7321L10.415712875976563,18.328Z stroke-opacity=0 stroke=none>');const __=()=>y_();var v_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M13.1889,6C12.98303,6.582599999999999,12.42741,7,11.7743,7C11.12119,7,10.565570000000001,6.582599999999999,10.35965,6L3.5,6C3.223857,6,3,5.77614,3,5.5C3,5.22386,3.223857,5,3.5,5L10.35965,5C10.565570000000001,4.417404,11.12119,4,11.7743,4C12.42741,4,12.98303,4.417404,13.1889,5L18.5,5C18.7761,5,19,5.22386,19,5.5C19,5.77614,18.7761,6,18.5,6L13.1889,6ZM3,8.5C3,8.22386,3.223857,8,3.5,8L18.5,8C18.7761,8,19,8.22386,19,8.5C19,8.77614,18.7761,9,18.5,9L3.5,9C3.223857,9,3,8.77614,3,8.5ZM3.278549,11.5C3.278549,11.22386,3.502407,11,3.778549,11L18.7785,11C19.0547,11,19.2785,11.22386,19.2785,11.5C19.2785,11.77614,19.0547,12,18.7785,12L3.778549,12C3.502407,12,3.278549,11.77614,3.278549,11.5ZM3.139267,14.5C3.139267,14.2239,3.363124,14,3.6392670000000003,14L18.6393,14C18.915399999999998,14,19.1393,14.2239,19.1393,14.5C19.1393,14.7761,18.915399999999998,15,18.6393,15L3.6392670000000003,15C3.363124,15,3.139267,14.7761,3.139267,14.5ZM13.1889,18C12.98303,18.5826,12.42741,19,11.7743,19C11.12119,19,10.565570000000001,18.5826,10.35965,18L3.778549,18C3.502407,18,3.278549,17.7761,3.278549,17.5C3.278549,17.2239,3.502407,17,3.778549,17L10.35965,17C10.565570000000001,16.4174,11.12119,16,11.7743,16C12.42741,16,12.98303,16.4174,13.1889,17L18.7785,17C19.0547,17,19.2785,17.2239,19.2785,17.5C19.2785,17.7761,19.0547,18,18.7785,18L13.1889,18Z stroke-opacity=0 stroke=none>');const b_=()=>v_();var C_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M4.91465,6C4.70873,6.582599999999999,4.15311,7,3.5,7C2.671573,7,2,6.32843,2,5.5C2,4.671573,2.671573,4,3.5,4C4.15311,4,4.70873,4.417404,4.91465,5L18.2257,5C18.5018,5,18.7257,5.22386,18.7257,5.5C18.7257,5.77614,18.5018,6,18.2257,6L4.91465,6ZM2.7257,8.5C2.7257,8.22386,2.949558,8,3.2257,8L18.2257,8C18.5018,8,18.7257,8.22386,18.7257,8.5C18.7257,8.77614,18.5018,9,18.2257,9L3.2257,9C2.949558,9,2.7257,8.77614,2.7257,8.5ZM3.00425,11.5C3.00425,11.22386,3.22811,11,3.50425,11L18.5042,11C18.7804,11,19.0042,11.22386,19.0042,11.5C19.0042,11.77614,18.7804,12,18.5042,12L3.50425,12C3.22811,12,3.00425,11.77614,3.00425,11.5ZM2.864967,14.5C2.864967,14.2239,3.08882,14,3.36497,14L18.365,14C18.6411,14,18.865,14.2239,18.865,14.5C18.865,14.7761,18.6411,15,18.365,15L3.36497,15C3.08882,15,2.864967,14.7761,2.864967,14.5ZM20,17.5C20,18.328400000000002,19.3284,19,18.5,19C17.846899999999998,19,17.2913,18.5826,17.0854,18L3.50425,18C3.22811,18,3.00425,17.7761,3.00425,17.5C3.00425,17.2239,3.22811,17,3.50425,17L17.0854,17C17.2913,16.4174,17.846899999999998,16,18.5,16C19.3284,16,20,16.671599999999998,20,17.5Z stroke-opacity=0 stroke=none>');const x_=()=>C_();var w_=N('<svg class=icon-overlay viewBox="0 0 22 22"><ellipse cx=10.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=17.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=10.5 cy=11.5 rx=7 ry=7 fill-opacity=0 stroke-opacity=1 fill=none stroke-width=1></ellipse><ellipse cx=10.5 cy=11.5 rx=5 ry=5 fill-opacity=0 stroke-opacity=1 fill=none stroke-width=1></ellipse><ellipse cx=10.5 cy=11.5 rx=3 ry=3 fill-opacity=0 stroke-opacity=1 fill=none stroke-width=1>');const L_=()=>w_();var $_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M3,7.32468C5.90649,3.3893050000000002,11.49833,2.81306,14.6674,6.31944C14.9056,6.1554199999999994,15.192,6.05979,15.5,6.05979C15.845,6.05979,16.1628,6.17974,16.4162,6.381349999999999L18.4509,4.23827L19,4.816615L16.8945,7.03429C16.962600000000002,7.21075,17,7.40319,17,7.60463C17,8.45782,16.328400000000002,9.14947,15.5,9.14947C14.6716,9.14947,14,8.45782,14,7.60463C14,7.36402,14.0534,7.13625,14.1487,6.93322C11.32695,3.748365,6.25159,4.253956,3.612785,7.82695L3,7.32468ZM14.09,15.4717C15.7427,13.78985,16.244500000000002,11.524740000000001,15.5633,9.30134L15.5618,9.30134L16.3012,9.0502C17.072400000000002,11.56646,16.497700000000002,14.158,14.6282,16.0599C12.28737,18.442,8.62386,18.6988,6.41348,16.4501C4.5526,14.5572,4.52076,11.19671,6.36766,9.3177C7.89069,7.76754,10.07544,7.706189999999999,11.56741,9.22363C11.95453,9.61742,12.24817,10.08363,12.43369,10.57677L14.1451,8.77421L14.6942,9.35256L12.64982,11.50582C12.65827,11.59712,12.66295,11.68839,12.66378,11.77936C12.87398,12.04523,13,12.38451,13,12.7541C13,13.60729,12.32843,14.2989,11.5,14.2989C10.67157,14.2989,10,13.60729,10,12.7541C10,11.90091,10.67157,11.20926,11.5,11.20926C11.60387,11.20926,11.70528,11.220130000000001,11.8032,11.240829999999999L11.81763,11.22564C11.69858,10.71874,11.42858,10.21929,11.0284,9.81179C9.844000000000001,8.60765,8.136890000000001,8.65592,6.90822,9.90586C5.37975,11.460930000000001,5.40693,14.288,6.95404,15.8619C8.84598,17.7867,12.03496,17.5626,14.09,15.4717Z stroke-opacity=0 stroke=none>');const S_=()=>$_();var k_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M4,17.0854L4,3.5C4,3.223858,4.22386,3,4.5,3C4.77614,3,5,3.223858,5,3.5L5,10L7.57584,10L9.8127,4.46359C9.91614,4.20756,10.20756,4.08386,10.46359,4.1873000000000005C10.71963,4.29075,10.84333,4.58216,10.73988,4.8382000000000005L8.65438,10L11.08535,10C11.29127,9.4174,11.84689,9,12.5,9C12.65154,9,12.79784,9.02247,12.93573,9.06427L16.6464,5.35355C16.8417,5.15829,17.1583,5.15829,17.3536,5.35355C17.5488,5.54882,17.5488,5.8654,17.3536,6.06066L13.7475,9.66675C13.907,9.90508,14,10.19168,14,10.5C14,11.15311,13.5826,11.70873,13,11.91465L13,14.3638L18.3714,12.1936C18.6274,12.09015,18.918799999999997,12.21385,19.0222,12.46989C19.1257,12.72592,19.002,13.0173,18.746000000000002,13.1208L13,15.4423L13,18L19.5,18C19.7761,18,20,18.2239,20,18.5C20,18.7761,19.7761,19,19.5,19L5.91465,19C5.70873,19.5826,5.15311,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.846899999999998,3.417404,17.2913,4,17.0854ZM6.3729499999999994,17.0413L12,14.7678L12,11.91465C11.88136,11.87271,11.76956,11.81627,11.66675,11.74746L6.3729499999999994,17.0413ZM12,15.8463L6.6694700000000005,18L12,18L12,15.8463ZM6.38629,15.6137L8.250350000000001,11L11,11L6.38629,15.6137ZM5,11L7.17182,11L5,16.3754L5,11Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const A_=()=>k_();var M_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M17,4.5C17,5.32843,16.328400000000002,6,15.5,6C15.0931,6,14.7241,5.83802,14.4539,5.57503L5.98992,8.32515C5.99658,8.38251,6,8.440850000000001,6,8.5C6,9.15311,5.582599999999999,9.70873,5,9.91465L5,11.08535C5.42621,11.236,5.763999999999999,11.57379,5.91465,12L19.5,12C19.7761,12,20,12.22386,20,12.5C20,12.77614,19.7761,13,19.5,13L5.91465,13C5.70873,13.5826,5.15311,14,4.5,14C3.671573,14,3,13.3284,3,12.5C3,11.84689,3.417404,11.29127,4,11.08535L4,9.91465C3.417404,9.70873,3,9.15311,3,8.5C3,7.67157,3.671573,7,4.5,7C4.90411,7,5.2709,7.15981,5.5406200000000005,7.41967L14.0093,4.66802C14.0032,4.6128599999999995,14,4.5568,14,4.5C14,3.671573,14.6716,3,15.5,3C16.328400000000002,3,17,3.671573,17,4.5ZM4,15.5C4,15.2239,4.22386,15,4.5,15L19.5,15C19.7761,15,20,15.2239,20,15.5C20,15.7761,19.7761,16,19.5,16L4.5,16C4.22386,16,4,15.7761,4,15.5ZM4,18.5C4,18.2239,4.22386,18,4.5,18L19.5,18C19.7761,18,20,18.2239,20,18.5C20,18.7761,19.7761,19,19.5,19L4.5,19C4.22386,19,4,18.7761,4,18.5Z stroke-opacity=0 stroke=none>');const T_=()=>M_();var O_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M20,3.5C20,4.15311,19.5826,4.70873,19,4.91465L19,18.5C19,18.7761,18.7761,19,18.5,19L4.91465,19C4.70873,19.5826,4.15311,20,3.5,20C2.671573,20,2,19.3284,2,18.5C2,17.846899999999998,2.417404,17.2913,3,17.0854L3,3.5C3,3.22386,3.22386,3,3.5,3L17.0854,3C17.2913,2.417404,17.846899999999998,2,18.5,2C19.3284,2,20,2.671573,20,3.5ZM17.0854,4C17.236,4.42621,17.5738,4.763999999999999,18,4.91465L18,8L14,8L14,4L17.0854,4ZM13,4L13,8L9,8L9,4L13,4ZM13,9L9,9L9,13L13,13L13,9ZM13,14L9,14L9,18L13,18L13,14ZM14,18L14,14L18,14L18,18L14,18ZM18,13L14,13L14,9L18,9L18,13ZM4.91465,18C4.763999999999999,17.5738,4.42621,17.236,4,17.0854L4,14L8,14L8,18L4.91465,18ZM4,8L4,4L8,4L8,8L4,8ZM8,9L8,13L4,13L4,9L8,9Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const P_=()=>O_();var I_=N('<svg class=icon-overlay viewBox="0 0 22 22"><ellipse cx=10.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=17.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=10.5 cy=11.5 rx=7 ry=7 fill-opacity=0 fill=none stroke-opacity=1 stroke-width=1>');const E_=()=>I_();var D_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11.57625,6.9981C11.55099,6.999359999999999,11.52557,7,11.5,7C11.34,7,11.18584,6.97495,11.04125,6.9285499999999995L5.55401,16.4327C5.713760000000001,16.5905,5.83826,16.7839,5.91465,17L16.0854,17C16.2187,16.622700000000002,16.4987,16.314700000000002,16.8569,16.1445L11.57625,6.9981ZM12.50759,6.611219999999999C12.81005,6.336790000000001,13,5.94058,13,5.5C13,4.671573,12.32843,4,11.5,4C10.67157,4,10,4.671573,10,5.5C10,5.80059,10.08841,6.08052,10.24066,6.31522L4.64514,16.0069C4.59738,16.002299999999998,4.54896,16,4.5,16C3.671573,16,3,16.671599999999998,3,17.5C3,18.328400000000002,3.671573,19,4.5,19C5.15311,19,5.70873,18.5826,5.91465,18L16.0854,18C16.2913,18.5826,16.846899999999998,19,17.5,19C18.328400000000002,19,19,18.328400000000002,19,17.5C19,16.8365,18.5691,16.2735,17.971899999999998,16.075699999999998L12.50759,6.611219999999999Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const R_=()=>D_();var B_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M19,4.5C19,5.15311,18.5826,5.70873,18,5.91465L18,18.5C18,18.7761,17.7761,19,17.5,19L5.91465,19C5.70873,19.5826,5.15311,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.846899999999998,3.417404,17.2913,4,17.0854L4,4.5C4,4.22386,4.22386,4,4.5,4L16.0854,4C16.2913,3.417404,16.846899999999998,3,17.5,3C18.328400000000002,3,19,3.671573,19,4.5ZM5,5L16.0854,5C16.236,5.42621,16.5738,5.763999999999999,17,5.91465L17,18L5.91465,18C5.763999999999999,17.5738,5.42621,17.236,5,17.0854L5,5Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const F_=()=>B_();var z_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M19.6401,7.99355C20.4028,7.92291,21,7.2811900000000005,21,6.5C21,5.671573,20.3284,5,19.5,5C18.8469,5,18.2913,5.417404,18.0854,6L7.62067,6C7.34453,6,7.12067,6.22386,7.12067,6.5C7.12067,6.5479,7.12741,6.59423,7.13999,6.63809L3.2294099999999997,15.0243C2.530138,15.1517,2,15.764,2,16.5C2,17.328400000000002,2.671573,18,3.5,18C4.15311,18,4.70873,17.5826,4.91465,17L14.5963,17C14.6456,17.076,14.7162,17.1396,14.8044,17.1807C15.0546,17.2974,15.3521,17.1891,15.4688,16.9388L19.6401,7.99355ZM14.7896,16.0293L18.6551,7.739599999999999C18.3942,7.56144,18.1925,7.30307,18.0854,7L8.0746,7L4.25044,15.2009C4.55701,15.3784,4.79493,15.6613,4.91465,16L14.6207,16C14.68,16,14.7368,16.0103,14.7896,16.0293Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const N_=()=>z_();var W_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M8.134443814697265,7.494615087890625L8.764323814697265,7.494615087890625L8.764323814697265,3.414215087890625L8.310223814697267,3.414215087890625L7.294603814697266,4.005035087890625L7.289713814697266,4.634915087890625L8.134443814697265,4.149892087890625L8.134443814697265,7.494615087890625ZM18.832003814697266,6.933095087890624Q19.004603814697266,6.635245087890625,19.004603814697266,6.2543850878906255Q19.004603814697266,5.884915087890625,18.845103814697264,5.593575087890625Q18.685503814697267,5.3006050878906255,18.399103814697266,5.136225087890625Q18.114303814697266,4.9702050878906245,17.754603814697266,4.9653250878906245L18.820603814697265,3.840647087890625L18.820603814697265,3.414215087890625L16.519203814697264,3.414215087890625L16.519203814697264,3.939931087890625L18.050803814697264,3.939931087890625L16.719403814697266,5.334785087890625L17.074203814697263,5.7205350878906245Q17.254903814697265,5.484525087890625,17.619503814697268,5.484525087890625Q17.980803814697268,5.484525087890625,18.187503814697266,5.689605087890625Q18.394203814697267,5.894685087890625,18.394203814697267,6.2543850878906255Q18.394203814697267,6.604315087890625,18.187503814697266,6.822415087890625Q17.980803814697268,7.0405150878906255,17.640603814697265,7.0405150878906255Q17.334603814697267,7.0405150878906255,17.124703814697266,6.890775087890625Q16.914703814697265,6.739415087890626,16.820303814697265,6.469225087890624L16.354803814697263,6.744295087890626Q16.480103814697266,7.125155087890625,16.821903814697265,7.341625087890625Q17.165403814697264,7.559725087890625,17.640603814697265,7.559725087890625Q18.039403814697266,7.559725087890625,18.348603814697267,7.393705087890625Q18.659503814697267,7.229315087890625,18.832003814697266,6.933095087890624ZM10.000003814697266,10.634915087890626C10.000003814697266,11.024655087890626,9.851363814697265,11.379685087890625,9.607683814697266,11.646395087890625L12.168903814697266,15.171615087890626C12.275403814697265,15.147615087890625,12.386203814697266,15.134915087890626,12.500003814697266,15.134915087890626C12.596503814697266,15.134915087890626,12.690803814697265,15.144015087890624,12.782303814697265,15.161415087890624L16.108803814697268,11.196955087890625C16.038703814697264,11.023375087890624,16.000003814697266,10.833655087890625,16.000003814697266,10.634915087890626C16.000003814697266,9.806495087890625,16.671603814697264,9.134915087890626,17.500003814697266,9.134915087890626C18.328403814697264,9.134915087890626,19.000003814697266,9.806495087890625,19.000003814697266,10.634915087890626C19.000003814697266,11.463345087890625,18.328403814697264,12.134915087890626,17.500003814697266,12.134915087890626C17.239503814697265,12.134915087890626,16.994503814697268,12.068495087890625,16.781003814697264,11.951675087890624L13.654703814697266,15.677415087890624C13.870303814697266,15.937215087890625,14.000003814697266,16.270915087890625,14.000003814697266,16.634915087890626C14.000003814697266,17.463315087890624,13.328403814697266,18.134915087890626,12.500003814697266,18.134915087890626C11.671573814697265,18.134915087890626,11.000003814697266,17.463315087890624,11.000003814697266,16.634915087890626C11.000003814697266,16.284415087890626,11.120193814697265,15.962015087890626,11.321603814697266,15.706715087890625L8.715393814697265,12.119565087890624C8.645053814697267,12.129685087890625,8.573143814697266,12.134915087890626,8.500003814697266,12.134915087890626C8.162103814697264,12.134915087890626,7.8503038146972655,12.023195087890626,7.599523814697266,11.834665087890626L4.505583814697266,15.521915087890624C4.809213814697266,15.796415087890624,5.000003814697266,16.193415087890624,5.000003814697266,16.634915087890626C5.000003814697266,17.463315087890624,4.328433814697266,18.134915087890626,3.5000038146972656,18.134915087890626C2.6715768146972656,18.134915087890626,2.0000038146972656,17.463315087890624,2.0000038146972656,16.634915087890626C2.0000038146972656,15.806515087890626,2.6715768146972656,15.134915087890626,3.5000038146972656,15.134915087890626C3.508253814697266,15.134915087890626,3.5164838146972657,15.135015087890626,3.524703814697266,15.135115087890625L7.033823814697266,10.953115087890625C7.011673814697265,10.850565087890626,7.000003814697266,10.744105087890624,7.000003814697266,10.634915087890626C7.000003814697266,9.806495087890625,7.671573814697266,9.134915087890626,8.500003814697266,9.134915087890626C9.328433814697267,9.134915087890626,10.000003814697266,9.806495087890625,10.000003814697266,10.634915087890626Z stroke-opacity=0 stroke=none>');const K_=()=>W_();var U_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M8.13444,7.494615087890625L8.76432,7.494615087890625L8.76432,3.414215087890625L8.310220000000001,3.414215087890625L7.2946,4.005035087890625L7.28971,4.634915087890625L8.13444,4.149892087890625L8.13444,7.494615087890625ZM18.832,6.929835087890625Q19.0046,6.635245087890625,19.0046,6.2543850878906255Q19.0046,5.889805087890625,18.8451,5.5952050878906245Q18.6855,5.3006050878906255,18.3975,5.132965087890625Q18.1094,4.9653250878906245,17.7399,4.9653250878906245Q17.435499999999998,4.9653250878906245,17.1556,5.149245087890625L17.2793,3.939931087890625L18.8304,3.939931087890625L18.8304,3.414215087890625L16.7406,3.414215087890625L16.5094,5.665195087890625L17.0156,5.795405087890625Q17.095399999999998,5.655425087890626,17.2516,5.570795087890625Q17.4095,5.484525087890625,17.6357,5.484525087890625Q17.9694,5.484525087890625,18.1842,5.697745087890625Q18.4007,5.909335087890625,18.4007,6.2543850878906255Q18.4007,6.604315087890625,18.1842,6.822415087890625Q17.9694,7.0405150878906255,17.6292,7.0405150878906255Q17.3298,7.0405150878906255,17.119799999999998,6.890775087890625Q16.9098,6.739415087890626,16.825200000000002,6.474115087890625L16.3597,6.749175087890626Q16.470399999999998,7.110505087890624,16.807299999999998,7.335115087890625Q17.144199999999998,7.559725087890625,17.6292,7.559725087890625Q18.0296,7.559725087890625,18.3438,7.392075087890625Q18.6595,7.224435087890625,18.832,6.929835087890625ZM10,10.634915087890626C10,11.024655087890626,9.85136,11.379685087890625,9.60768,11.646395087890625L12.1689,15.171615087890626C12.2754,15.147615087890625,12.3862,15.134915087890626,12.5,15.134915087890626C12.5965,15.134915087890626,12.6908,15.144015087890624,12.7823,15.161415087890624L16.108800000000002,11.196955087890625C16.0387,11.023375087890624,16,10.833655087890625,16,10.634915087890626C16,9.806495087890625,16.671599999999998,9.134915087890626,17.5,9.134915087890626C18.3284,9.134915087890626,19,9.806495087890625,19,10.634915087890626C19,11.463345087890625,18.3284,12.134915087890626,17.5,12.134915087890626C17.2395,12.134915087890626,16.994500000000002,12.068505087890625,16.781,11.951675087890624L13.6547,15.677415087890624C13.8703,15.937215087890625,14,16.270915087890625,14,16.634915087890626C14,17.463315087890624,13.3284,18.134915087890626,12.5,18.134915087890626C11.67157,18.134915087890626,11,17.463315087890624,11,16.634915087890626C11,16.284415087890626,11.12019,15.962015087890626,11.3216,15.706715087890625L8.71539,12.119565087890624C8.645050000000001,12.129685087890625,8.57314,12.134915087890626,8.5,12.134915087890626C8.162099999999999,12.134915087890626,7.8503,12.023195087890626,7.59952,11.834665087890626L4.50558,15.521915087890624C4.80921,15.796415087890624,5,16.193415087890624,5,16.634915087890626C5,17.463315087890624,4.32843,18.134915087890626,3.5,18.134915087890626C2.671573,18.134915087890626,2,17.463315087890624,2,16.634915087890626C2,15.806515087890626,2.671573,15.134915087890626,3.5,15.134915087890626C3.5082500000000003,15.134915087890626,3.51648,15.135015087890626,3.5247,15.135115087890625L7.03382,10.953115087890625C7.01167,10.850565087890626,7,10.744105087890624,7,10.634915087890626C7,9.806495087890625,7.67157,9.134915087890626,8.5,9.134915087890626C9.32843,9.134915087890626,10,9.806495087890625,10,10.634915087890626Z stroke-opacity=0 stroke=none>');const Z_=()=>U_();var H_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M18.8532,7.020985087890625Q19.0257,6.734525087890625,19.0257,6.369945087890625Q19.0257,6.020005087890625,18.8499,5.754705087890625Q18.6758,5.489415087890626,18.3649,5.339675087890625Q18.5944,5.209465087890625,18.7214,4.994615087890625Q18.8499,4.779775087890625,18.8499,4.5193550878906255Q18.8499,4.2003480878906245,18.7002,3.951324087890625Q18.5505,3.700673087890625,18.277,3.557444087890625Q18.0052,3.414215087890625,17.6455,3.414215087890625Q17.285800000000002,3.414215087890625,17.0107,3.557444087890625Q16.7357,3.700673087890625,16.5843,3.951324087890625Q16.4346,4.2003480878906245,16.4346,4.5193550878906255Q16.4346,4.779775087890625,16.561500000000002,4.994615087890625Q16.6901,5.209465087890625,16.919600000000003,5.339675087890625Q16.6055,5.489415087890626,16.4297,5.757965087890625Q16.255499999999998,6.024895087890625,16.255499999999998,6.369945087890625Q16.255499999999998,6.734525087890625,16.4297,7.020985087890625Q16.6055,7.305815087890625,16.919600000000003,7.465325087890625Q17.2354,7.624825087890625,17.6455,7.624825087890625Q18.0557,7.624825087890625,18.3682,7.465325087890625Q18.6807,7.305815087890625,18.8532,7.020985087890625ZM8.76432,7.559725087890625L8.13444,7.559725087890625L8.13444,4.214996087890625L7.28971,4.700025087890625L7.2946,4.070139087890625L8.310220000000001,3.479319087890625L8.76432,3.479319087890625L8.76432,7.559725087890625ZM17.1816,4.955555087890625Q17.0042,4.784655087890625,17.0042,4.5095950878906255Q17.0042,4.229645087890625,17.18,4.057119087890625Q17.355800000000002,3.884592087890625,17.6455,3.884592087890625Q17.935200000000002,3.884592087890625,18.1077,4.057119087890625Q18.2803,4.229645087890625,18.2803,4.5095950878906255Q18.2803,4.784655087890625,18.1045,4.955555087890625Q17.930300000000003,5.124825087890625,17.6455,5.124825087890625Q17.3607,5.124825087890625,17.1816,4.955555087890625ZM18.2217,5.7953950878906255Q18.4398,6.005365087890625,18.4398,6.3552950878906245Q18.4398,6.705235087890625,18.2217,6.915195087890625Q18.0052,7.125155087890625,17.6455,7.125155087890625Q17.285800000000002,7.125155087890625,17.067700000000002,6.915195087890625Q16.849600000000002,6.705235087890625,16.849600000000002,6.3552950878906245Q16.849600000000002,6.005365087890625,17.064500000000002,5.7953950878906255Q17.2793,5.585435087890625,17.6455,5.585435087890625Q18.0052,5.585435087890625,18.2217,5.7953950878906255ZM9.60768,11.711495087890626C9.85136,11.444785087890626,10,11.089765087890626,10,10.700025087890625C10,9.871595087890626,9.32843,9.200025087890625,8.5,9.200025087890625C7.67157,9.200025087890625,7,9.871595087890626,7,10.700025087890625C7,10.809205087890625,7.01167,10.915665087890625,7.03382,11.018215087890624L3.5247,15.200215087890625C3.51648,15.200115087890625,3.5082500000000003,15.200015087890625,3.5,15.200015087890625C2.671573,15.200015087890625,2,15.871615087890625,2,16.700015087890627C2,17.528415087890625,2.671573,18.200015087890627,3.5,18.200015087890627C4.32843,18.200015087890627,5,17.528415087890625,5,16.700015087890627C5,16.258515087890625,4.80921,15.861515087890625,4.50558,15.587015087890626L7.59952,11.899765087890625C7.8503,12.088295087890625,8.162099999999999,12.200025087890625,8.5,12.200025087890625C8.57314,12.200025087890625,8.645050000000001,12.194785087890626,8.71539,12.184675087890625L11.3216,15.771815087890625C11.12019,16.027215087890625,11,16.349515087890623,11,16.700015087890627C11,17.528415087890625,11.67157,18.200015087890627,12.5,18.200015087890627C13.3284,18.200015087890627,14,17.528415087890625,14,16.700015087890627C14,16.336015087890623,13.8703,16.002315087890626,13.6547,15.742515087890625L16.781,12.016775087890625C16.994500000000002,12.133605087890626,17.2395,12.200025087890625,17.5,12.200025087890625C18.3284,12.200025087890625,19,11.528445087890624,19,10.700025087890625C19,9.871595087890626,18.3284,9.200025087890625,17.5,9.200025087890625C16.671599999999998,9.200025087890625,16,9.871595087890626,16,10.700025087890625C16,10.898765087890624,16.0387,11.088475087890625,16.108800000000002,11.262055087890625L12.7823,15.226515087890625C12.6908,15.209115087890625,12.5965,15.200015087890625,12.5,15.200015087890625C12.3862,15.200015087890625,12.2754,15.212715087890626,12.1689,15.236715087890625L9.60768,11.711495087890626Z stroke-opacity=0 stroke=none>');const Y_=()=>H_();var G_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M9.474616630859375,7.494615087890625L8.844736630859375,7.494615087890625L8.844736630859375,4.149892087890625L8.000006630859374,4.634915087890625L8.004896630859374,4.005035087890625L9.020516630859376,3.414215087890625L9.474616630859375,3.414215087890625L9.474616630859375,7.494615087890625ZM18.529296630859378,4.8318550878906255Q18.307996630859375,5.028795087890625,18.122396630859377,5.385245087890625Q17.868496630859376,5.019035087890625,17.629196630859376,4.8269750878906255Q17.389996630859375,4.634915087890625,17.168596630859376,4.634915087890625Q16.794296630859375,4.634915087890625,16.522496630859376,4.976715087890625Q16.252296630859377,5.3168850878906255,16.252296630859377,5.7856350878906255Q16.252296630859377,6.218575087890625,16.502896630859375,6.521315087890625Q16.755196630859373,6.822415087890625,17.114896630859377,6.822415087890625Q17.368796630859375,6.822415087890625,17.588596630859374,6.625475087890624Q17.809896630859377,6.428535087890625,17.998696630859374,6.0688350878906245Q18.249396630859373,6.439935087890625,18.488596630859377,6.631985087890625Q18.727896630859377,6.822415087890625,18.952496630859375,6.822415087890625Q19.326796630859373,6.822415087890625,19.596996630859376,6.482245087890625Q19.868796630859375,6.140455087890626,19.868796630859375,5.671705087890626Q19.868796630859375,5.238755087890625,19.618196630859376,4.937655087890625Q19.367496630859375,4.634915087890625,19.006196630859375,4.634915087890625Q18.750696630859377,4.634915087890625,18.529296630859378,4.8318550878906255ZM18.337296630859377,5.674955087890625L18.278696630859375,5.596835087890625Q18.449596630859375,5.272935087890625,18.622096630859374,5.1101750878906245Q18.794596630859374,4.947415087890625,18.967096630859373,4.947415087890625Q19.194996630859375,4.947415087890625,19.346396630859374,5.1345950878906255Q19.497696630859377,5.320135087890625,19.497696630859377,5.598455087890625Q19.497696630859377,5.8914250878906245,19.360996630859376,6.096505087890625Q19.224296630859374,6.301585087890626,19.027396630859375,6.301585087890626Q18.915096630859374,6.301585087890626,18.742496630859375,6.146965087890624Q18.569996630859375,5.992335087890625,18.337296630859377,5.674955087890625ZM17.785496630859377,5.779125087890625L17.842496630859372,5.857245087890625Q17.668296630859373,6.186025087890625,17.495796630859374,6.348785087890625Q17.324896630859374,6.509915087890625,17.153996630859375,6.509915087890625Q16.926096630859377,6.509915087890625,16.774796630859377,6.324375087890624Q16.623396630859375,6.137195087890625,16.623396630859375,5.858875087890625Q16.623396630859375,5.565905087890625,16.761696630859376,5.360825087890625Q16.900096630859373,5.1557550878906255,17.095396630859376,5.1557550878906255Q17.228896630859374,5.1557550878906255,17.365596630859375,5.2778250878906245Q17.502296630859377,5.399895087890625,17.785496630859377,5.779125087890625ZM10.710296630859375,10.634915087890626C10.710296630859375,11.024655087890626,10.561656630859375,11.379685087890625,10.317976630859375,11.646395087890625L12.879196630859376,15.171615087890626C12.985696630859374,15.147615087890625,13.096496630859376,15.134915087890626,13.210296630859375,15.134915087890626C13.306796630859376,15.134915087890626,13.401096630859374,15.144015087890624,13.492596630859374,15.161415087890624L16.819096630859377,11.196955087890625C16.748996630859374,11.023375087890624,16.710296630859375,10.833655087890625,16.710296630859375,10.634915087890626C16.710296630859375,9.806495087890625,17.381896630859373,9.134915087890626,18.210296630859375,9.134915087890626C19.038696630859373,9.134915087890626,19.710296630859375,9.806495087890625,19.710296630859375,10.634915087890626C19.710296630859375,11.463345087890625,19.038696630859373,12.134915087890626,18.210296630859375,12.134915087890626C17.949796630859375,12.134915087890626,17.704796630859377,12.068505087890625,17.491296630859374,11.951675087890624L14.364996630859375,15.677415087890624C14.580596630859375,15.937215087890625,14.710296630859375,16.270915087890625,14.710296630859375,16.634915087890626C14.710296630859375,17.463315087890624,14.038696630859375,18.134915087890626,13.210296630859375,18.134915087890626C12.381866630859374,18.134915087890626,11.710296630859375,17.463315087890624,11.710296630859375,16.634915087890626C11.710296630859375,16.284415087890626,11.830486630859374,15.962015087890626,12.031896630859375,15.706715087890625L9.425686630859374,12.119565087890624C9.355346630859376,12.129685087890625,9.283436630859375,12.134915087890626,9.210296630859375,12.134915087890626C8.872396630859374,12.134915087890626,8.560596630859376,12.023195087890626,8.309816630859375,11.834665087890626L5.215876630859375,15.521915087890624C5.519506630859375,15.796415087890624,5.710296630859375,16.193415087890624,5.710296630859375,16.634915087890626C5.710296630859375,17.463315087890624,5.038726630859375,18.134915087890626,4.210296630859375,18.134915087890626C3.381869630859375,18.134915087890626,2.710296630859375,17.463315087890624,2.710296630859375,16.634915087890626C2.710296630859375,15.806515087890626,3.381869630859375,15.134915087890626,4.210296630859375,15.134915087890626C4.218546630859375,15.134915087890626,4.226776630859375,15.135015087890626,4.234996630859375,15.135115087890625L7.744116630859375,10.953115087890625C7.721966630859375,10.850565087890626,7.710296630859375,10.744105087890624,7.710296630859375,10.634915087890626C7.710296630859375,9.806495087890625,8.381866630859374,9.134915087890626,9.210296630859375,9.134915087890626C10.038726630859376,9.134915087890626,10.710296630859375,9.806495087890625,10.710296630859375,10.634915087890626Z stroke-opacity=0 stroke=none>');const V_=()=>G_();var Q_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M21,5.5C21,6.32843,20.3284,7,19.5,7C19.4136,7,19.3289,6.99269,19.2465,6.97866L15.6257,15.5086C15.8587,15.7729,16,16.119999999999997,16,16.5C16,17.328400000000002,15.3284,18,14.5,18C13.8469,18,13.2913,17.5826,13.0854,17L3.91465,17C3.70873,17.5826,3.15311,18,2.5,18C1.671573,18,1,17.328400000000002,1,16.5C1,15.6716,1.671573,15,2.5,15C2.5840199999999998,15,2.66643,15.0069,2.74668,15.0202L6.36934,6.48574C6.13933,6.22213,6,5.87733,6,5.5C6,4.671573,6.67157,4,7.5,4C8.15311,4,8.70873,4.417404,8.91465,5L18.0854,5C18.2913,4.417404,18.8469,4,19.5,4C20.3284,4,21,4.671573,21,5.5ZM18.0854,6L8.91465,6C8.892579999999999,6.06243,8.8665,6.12296,8.83672,6.18128L13.9814,15.0921C14.143,15.0325,14.3177,15,14.5,15C14.584,15,14.6664,15.0069,14.7467,15.0202L18.3693,6.48574C18.2462,6.3446,18.149,6.1802,18.0854,6ZM13.2036,15.745L8.0861,6.8811800000000005C7.90605,6.95768,7.70797,7,7.5,7C7.41359,7,7.32888,6.99269,7.24647,6.97866L3.62571,15.5086C3.7512,15.651,3.8501,15.8174,3.91465,16L13.0854,16C13.1169,15.9108,13.1566,15.8255,13.2036,15.745Z stroke-opacity=0 stroke=none>');const j_=()=>Q_();var q_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M5.92159,5.93994C6.04014,5.90529,6.152620000000001,5.85639,6.25704,5.79523L9.12729,9.89437C9.045449999999999,10.07959,9,10.28449,9,10.5C9,10.79522,9.08529,11.07053,9.232569999999999,11.30262L4.97573,16.7511L5.92159,5.93994ZM4.92259,5.8848400000000005C4.38078,5.658659999999999,4,5.1238,4,4.5C4,3.671573,4.67157,3,5.5,3C6.2157,3,6.81433,3.50124,6.96399,4.17183L15.1309,4.88634C15.3654,4.36387,15.8902,4,16.5,4C17.328400000000002,4,18,4.67157,18,5.5C18,6.08983,17.659599999999998,6.60015,17.1645,6.84518L18.4264,14.0018C18.4508,14.0006,18.4753,14,18.5,14C19.3284,14,20,14.6716,20,15.5C20,16.328400000000002,19.3284,17,18.5,17C17.932499999999997,17,17.4386,16.6849,17.183799999999998,16.22L5.99686,18.5979C5.946429999999999,19.3807,5.29554,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.869300000000003,3.389292,17.3295,3.94071,17.1077L4.92259,5.8848400000000005ZM5.72452,17.6334C5.69799,17.596,5.6698,17.5599,5.64004,17.525100000000002L10.01843,11.92103C10.16958,11.97223,10.33155,12,10.5,12C10.80059,12,11.08052,11.91158,11.31522,11.75934L17.0606,15.0765C17.0457,15.1271,17.0335,15.1789,17.023899999999998,15.2317L5.72452,17.6334ZM11.92855,10.95875L17.4349,14.1379L16.1699,6.96356C15.9874,6.92257,15.8174,6.8483,15.6667,6.74746L11.99771,10.4165C11.99923,10.44414,12,10.47198,12,10.5C12,10.66,11.97495,10.814160000000001,11.92855,10.95875ZM10.5,9C10.259830000000001,9,10.03285,9.05644,9.83159,9.15679L7.04919,5.1831L15.0493,5.88302C15.054,5.90072,15.059,5.91829,15.0643,5.9357299999999995L11.56066,9.43934C11.28921,9.16789,10.91421,9,10.5,9Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const X_=()=>q_();var J_=N('<svg viewBox="0 0 22 22"><path d=M4.727219638671875,8.007996215820313L9.973849638671876,2.7629472158203123C10.167279638671875,2.5696791158203123,10.480729638671875,2.5696791158203123,10.674169638671875,2.7629472158203123L13.223329638671874,5.311756215820313C13.416929638671874,5.505236215820313,13.416929638671874,5.8189862158203125,13.223329638671874,6.012466215820313L7.977129638671875,11.257906215820313C7.379859638671875,11.855176215820313,7.407609638671875,12.909396215820312,8.033809638671876,13.535596215820313C8.660409638671876,14.162596215820313,9.713849638671874,14.189996215820312,10.311129638671876,13.591896215820313L15.556929638671875,8.346066215820311C15.750429638671875,8.152526215820313,16.064229638671875,8.152526215820313,16.257629638671872,8.346066215820311L18.806529638671876,10.895266215820312C19.000029638671876,11.088746215820313,19.000029638671876,11.402496215820312,18.806529638671876,11.595976215820313L13.560629638671875,16.841796215820313C11.165619638671876,19.237196215820312,7.197149638671875,19.19919621582031,4.783499638671875,16.785496215820313C2.3698426386718747,14.371896215820312,2.331397638671875,10.403416215820313,4.727219638671875,8.007996215820313ZM12.172299638671875,5.662106215820312L10.323809638671875,3.8136162158203124L5.4287196386718755,8.709096215820313C3.422893638671875,10.714536215820312,3.4549956386718748,14.055196215820313,5.484999638671875,16.08479621582031C7.514609638671875,18.114796215820313,10.855289638671875,18.146496215820314,12.860719638671876,16.141096215820312L15.465629638671874,13.535796215820312L14.090929638671875,12.160756215820312L14.791629638671875,11.460436215820312L16.166229638671876,12.834996215820313L17.755829638671877,11.245226215820313L15.907729638671874,9.396736215820312L11.011839638671875,14.292596215820312C10.042809638671875,15.262396215820312,8.418249638671874,15.243796215820312,7.406019638671875,14.306496215820312L7.333099638671875,14.236296215820312C6.327599638671876,13.230796215820313,6.284009638671876,11.550396215820312,7.276419638671875,10.557586215820312L9.882199638671874,7.952026215820313L8.501079638671875,6.570906215820313L9.201789638671876,5.870186215820313L10.582939638671874,7.251336215820312L12.172299638671875,5.662106215820312Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const ev=e=>(()=>{var n=J_();return ft(n,"class",`icon-overlay ${e??""}`),n})();var tv=N('<svg viewBox="0 0 22 22"><defs><clipPath id=master_svg0_151_615><rect x=0 y=0 width=22 height=22 rx=0></rect></clipPath></defs><g clip-path=url(#master_svg0_151_615)><path d=M19.672,3.0673368C19.4417,2.9354008,19.1463,3.00292252,18.9994,3.2210900000000002L17.4588,5.50622L16.743299999999998,3.781253L13.9915,7.4662L13.9618,7.51108C13.8339,7.72862,13.8936,8.005659999999999,14.1004,8.15391L14.1462,8.183430000000001C14.3683,8.308720000000001,14.6511,8.25001,14.8022,8.047229999999999L16.4907,5.78571L17.246299999999998,7.60713L19.8374,3.7635389999999997L19.8651,3.717088C19.9871,3.484615,19.9023,3.199273,19.672,3.0673368ZM4.79974,8.462530000000001L10.117740000000001,3.252975C10.31381,3.0610145,10.63152,3.0610145,10.82759,3.252975L13.4115,5.78453C13.6076,5.976710000000001,13.6076,6.28833,13.4115,6.4805L8.093869999999999,11.69045C7.48847,12.28368,7.51659,13.3308,8.151309999999999,13.9528C8.786439999999999,14.5755,9.85421,14.6027,10.45961,14.0087L15.7768,8.79831C15.9729,8.60609,16.2909,8.60609,16.487099999999998,8.79831L19.0705,11.33026C19.2667,11.52244,19.2667,11.83406,19.0705,12.02623L13.7533,17.2366C11.32572,19.6158,7.30328,19.578,4.85679,17.1807C2.410298,14.7834,2.371331,10.84174,4.79974,8.462530000000001ZM12.3461,6.1325199999999995L10.47246,4.29654L5.51079,9.15889C3.477674,11.15076,3.510214,14.4688,5.56784,16.4847C7.62506,18.500999999999998,11.01117,18.5325,13.0439,16.540599999999998L15.6842,13.9529L14.2908,12.58718L15.0011,11.89161L16.394399999999997,13.2569L18.0056,11.67786L16.1323,9.84188L11.16985,14.7046C10.18764,15.6679,8.540980000000001,15.6494,7.51498,14.7184L7.44107,14.6487C6.4219,13.65,6.37771,11.98096,7.38362,10.994869999999999L10.02485,8.40693L8.624939999999999,7.03516L9.335180000000001,6.33919L10.73512,7.71099L12.3461,6.1325199999999995Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const nv=e=>(()=>{var n=tv();return ft(n,"class",`icon-overlay ${e??""}`),n})();var rv=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11,17C5.80945,17,3.667717,12.85,3.113386,11.575C2.9622047,11.2,2.9622047,10.8,3.113386,10.425C3.667717,9.15,5.80945,5,11,5C16.165399999999998,5,18.3323,9.15,18.8866,10.425C19.0378,10.8,19.0378,11.2,18.8866,11.575C18.3323,12.85,16.165399999999998,17,11,17ZM4.04567,10.8C3.995276,10.925,3.995276,11.05,4.04567,11.175C4.52441,12.325,6.43937,16,11,16C15.5606,16,17.4756,12.325,17.9543,11.2C18.0047,11.075,18.0047,10.95,17.9543,10.825C17.4756,9.675,15.5606,6,11,6C6.43937,6,4.52441,9.675,4.04567,10.8ZM11,13.5C9.61417,13.5,8.480319999999999,12.375,8.480319999999999,11C8.480319999999999,9.625,9.61417,8.5,11,8.5C12.38583,8.5,13.5197,9.625,13.5197,11C13.5197,12.375,12.38583,13.5,11,13.5ZM11,9.5C10.1685,9.5,9.48819,10.175,9.48819,11C9.48819,11.825,10.1685,12.5,11,12.5C11.8315,12.5,12.51181,11.825,12.51181,11C12.51181,10.175,11.8315,9.5,11,9.5Z stroke-opacity=0 fill-opacity=1>');const iv=()=>rv();var ov=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M5.80417,14.9887L4.62563,16.167299999999997C4.43037,16.3625,4.43037,16.6791,4.62563,16.8744C4.82089,17.0696,5.13748,17.0696,5.332739999999999,16.8744L6.62638,15.5807C7.75595,16.290100000000002,9.19328,16.7929,11,16.7929C16.165399999999998,16.7929,18.3323,12.64289,18.8866,11.36789C19.0378,10.99289,19.0378,10.59289,18.8866,10.21789C18.5549,9.45486,17.6456,7.66212,15.8617,6.34545L17.3536,4.853553C17.5488,4.658291,17.5488,4.341709,17.3536,4.146447C17.1583,3.9511845,16.8417,3.9511845,16.6464,4.146447L15.0014,5.7915399999999995C13.9314,5.1969,12.61166,4.792893,11,4.792893C5.80945,4.792893,3.667717,8.94289,3.113386,10.21789C2.9622049,10.59289,2.9622049,10.99289,3.113386,11.36789C3.424435,12.08333,4.2353000000000005,13.70399,5.80417,14.9887ZM7.36012,14.847C8.32327,15.4074,9.52286,15.7929,11,15.7929C15.5606,15.7929,17.4756,12.11789,17.9543,10.99289C18.0047,10.86789,18.0047,10.74289,17.9543,10.61789C17.659,9.90846,16.8171,8.23812,15.1447,7.06241L12.96929,9.23782C13.3134,9.66543,13.5197,10.20642,13.5197,10.79289C13.5197,12.16789,12.38583,13.29289,11,13.29289C10.41596,13.29289,9.87667,13.09308,9.44815,12.75896L7.36012,14.847ZM8.794609999999999,11.99829L6.520099999999999,14.2728C5.06905,13.12119,4.32057,11.628250000000001,4.04567,10.96789C3.995275,10.84289,3.995275,10.71789,4.04567,10.59289C4.52441,9.46789,6.43937,5.79289,11,5.79289C12.28868,5.79289,13.3661,6.086320000000001,14.2596,6.53329L12.19759,8.5953C11.84086,8.40257,11.43271,8.29289,11,8.29289C9.61417,8.29289,8.480319999999999,9.41789,8.480319999999999,10.79289C8.480319999999999,11.22918,8.594470000000001,11.64029,8.794609999999999,11.99829ZM10.16528,12.04183C10.404869999999999,12.20032,10.692070000000001,12.29289,11,12.29289C11.8315,12.29289,12.51181,11.61789,12.51181,10.79289C12.51181,10.48318,12.41593,10.194600000000001,12.25216,9.95494L10.16528,12.04183ZM11.43602,9.35687L9.55616,11.236740000000001C9.512,11.09633,9.48819,10.94724,9.48819,10.79289C9.48819,9.96789,10.1685,9.29289,11,9.29289C11.15142,9.29289,11.29782,9.31528,11.43602,9.35687Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const av=()=>ov();var sv=N('<svg class=icon-overlay viewBox="0 0 22 22"><defs><clipPath id=master_svg0_151_625><rect x=0 y=0 width=22 height=22 rx=0></rect></clipPath></defs><g clip-path=url(#master_svg0_151_625)><path d=M14.5385,9.76923L15.6538,9.76923C16.6538,9.76923,17.4615,10.576920000000001,17.4615,11.576920000000001L17.4615,17.1923C17.4615,18.1923,16.6538,19,15.6538,19L5.80769,19C4.807692,19,4,18.1923,4,17.1923L4,11.576920000000001C4,10.576920000000001,4.807692,9.76923,5.80769,9.76923L7.23077,9.76923L7.23077,7.576919999999999C7.23077,5.61538,8.88462,4,10.88462,4C12.88462,4,14.5385,5.61538,14.5385,7.576919999999999L14.5385,9.76923ZM10.88461,5.15385C9.5,5.15385,8.38461,6.23077,8.38461,7.576919999999999L8.38461,9.76923L13.38462,9.76923L13.38462,7.576919999999999C13.38462,6.23077,12.26923,5.15385,10.88461,5.15385ZM15.6538,17.8462C16,17.8462,16.3077,17.5385,16.3077,17.1923L16.3077,11.576920000000001C16.3077,11.23077,16,10.923079999999999,15.6538,10.923079999999999L5.80769,10.923079999999999C5.46154,10.923079999999999,5.15385,11.23077,5.15385,11.576920000000001L5.15385,17.1923C5.15385,17.5385,5.46154,17.8462,5.80769,17.8462L15.6538,17.8462ZM10.153839999999999,12.65385C10.153839999999999,12.34615,10.42307,12.07692,10.73076,12.07692C11.038450000000001,12.07692,11.307680000000001,12.34615,11.307680000000001,12.65385L11.307680000000001,14.5769C11.307680000000001,14.8846,11.038450000000001,15.1538,10.73076,15.1538C10.42307,15.1538,10.153839999999999,14.8846,10.153839999999999,14.5769L10.153839999999999,12.65385Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const lv=()=>sv();var cv=N('<svg class=icon-overlay viewBox="0 0 22 22"><defs><clipPath id=master_svg0_151_620><rect x=0 y=0 width=22 height=22 rx=0></rect></clipPath></defs><g clip-path=url(#master_svg0_151_620)><path d=M8.38461,9.76923L15.6538,9.76923C16.6538,9.76923,17.4615,10.576920000000001,17.4615,11.576920000000001L17.4615,17.1923C17.4615,18.1923,16.6538,19,15.6538,19L5.80769,19C4.807692,19,4,18.1923,4,17.1923L4,11.576920000000001C4,10.576920000000001,4.807693,9.76923,5.80769,9.76923L7.23077,9.76923L7.23077,7.576919999999999C7.23077,5.61538,8.88462,4,10.88462,4C12.46154,4,13.84615,4.961539,14.3462,6.423080000000001C14.4615,6.73077,14.3077,7.038460000000001,14,7.15385C13.69231,7.26923,13.38461,7.11538,13.26923,6.80769C12.92308,5.80769,11.96154,5.15385,10.88462,5.15385C9.5,5.15385,8.38461,6.23077,8.38461,7.576919999999999L8.38461,9.76923ZM15.6538,17.8462C16,17.8462,16.3077,17.5385,16.3077,17.1923L16.3077,11.576920000000001C16.3077,11.23077,16,10.923079999999999,15.6538,10.923079999999999L5.80769,10.923079999999999C5.46154,10.923079999999999,5.15385,11.23077,5.15385,11.576920000000001L5.15385,17.1923C5.15385,17.5385,5.46154,17.8462,5.80769,17.8462L15.6538,17.8462ZM10.153839999999999,12.65385C10.153839999999999,12.34615,10.42307,12.07692,10.73076,12.07692C11.03846,12.07692,11.307690000000001,12.34615,11.307690000000001,12.65385L11.307690000000001,14.5769C11.307690000000001,14.8846,11.03846,15.1538,10.73076,15.1538C10.42307,15.1538,10.153839999999999,14.8846,10.153839999999999,14.5769L10.153839999999999,12.65385Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const uv=()=>cv();var fv=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M16.966900000000003,8.67144C16.6669,8.67144,16.4247,8.91558,16.4247,9.21802L16.4247,16.631500000000003C16.4247,17.322,16.007199999999997,17.9068,15.5139,17.9068L13.93072,17.9068L13.93072,9.2162C13.93072,8.91741,13.68675,8.67144,13.38855,8.67144C13.09036,8.67144,12.84639,8.91741,12.84639,9.21802L12.84639,17.9068L10.151810000000001,17.9068L10.151810000000001,9.21802C10.151810000000001,8.91741,9.90783,8.67144,9.609639999999999,8.67144C9.31145,8.67144,9.06747,8.91741,9.06747,9.219850000000001L9.06747,17.9068L7.48614,17.9068C6.99277,17.9068,6.5753,17.322,6.5753,16.631500000000003L6.5753,9.21802C6.5753,8.91558,6.333130000000001,8.67144,6.03313,8.67144C5.73313,8.67144,5.49096,8.91558,5.49096,9.21802L5.49096,16.631500000000003C5.49096,17.9378,6.385540000000001,19,7.48614,19L15.512,19C16.6127,19,17.509,17.9378,17.509,16.631500000000003L17.509,9.21802C17.509,8.91558,17.2669,8.67144,16.966900000000003,8.67144ZM18.4578,6.21183L4.542169,6.21183C4.243976,6.21183,4,6.45779,4,6.75841C4,7.05903,4.243976,7.30499,4.542169,7.30499L18.4578,7.30499C18.756,7.30499,19,7.05903,19,6.75841C19,6.45779,18.756,6.21183,18.4578,6.21183ZM8.68072,5.10045L14.3193,5.10045C14.6175,5.10045,14.8614,4.852666,14.8614,4.550225C14.8614,4.247783,14.6175,4,14.3193,4L8.68072,4C8.38253,4,8.13855,4.247783,8.13855,4.550225C8.13855,4.852666,8.38253,5.10045,8.68072,5.10045Z stroke-opacity=0 fill-opacity=1>');const dv=()=>fv();var hv=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M17.0643,7.033864912109375L18,3.585784912109375L14.5078,4.509695912109375L15.3537,5.344934912109375L6.02026,14.560584912109375C5.87635,14.517484912109374,5.72366,14.494284912109375,5.5655,14.494284912109375C4.7009,14.494284912109375,4,15.186384912109375,4,16.040084912109375C4,16.893784912109375,4.7009,17.585784912109375,5.5655,17.585784912109375C6.43011,17.585784912109375,7.13101,16.893784912109375,7.13101,16.040084912109375C7.13101,15.722284912109375,7.03392,15.426984912109376,6.86744,15.181384912109374L16.0917,6.073604912109375L17.0643,7.033864912109375Z stroke-opacity=0 stroke=none>');const gv={horizontalStraightLine:Vy,horizontalRayLine:jy,horizontalSegment:Xy,verticalStraightLine:e_,verticalRayLine:n_,verticalSegment:i_,straightLine:a_,rayLine:l_,segment:u_,arrow:d_,priceLine:g_,priceChannelLine:m_,parallelStraightLine:__,fibonacciLine:b_,fibonacciSegment:x_,fibonacciCircle:L_,fibonacciSpiral:S_,fibonacciSpeedResistanceFan:A_,fibonacciExtension:T_,gannBox:P_,circle:E_,triangle:R_,rect:F_,parallelogram:N_,threeWaves:K_,fiveWaves:Z_,eightWaves:Y_,anyWaves:V_,abcd:j_,xabcd:X_,weak_magnet:ev,strong_magnet:nv,lock:lv,unlock:uv,visible:iv,invisible:av,remove:dv,brush:()=>hv()};function pv(e){return[{key:"horizontalStraightLine",text:C("horizontal_straight_line",e)},{key:"horizontalRayLine",text:C("horizontal_ray_line",e)},{key:"horizontalSegment",text:C("horizontal_segment",e)},{key:"verticalStraightLine",text:C("vertical_straight_line",e)},{key:"verticalRayLine",text:C("vertical_ray_line",e)},{key:"verticalSegment",text:C("vertical_segment",e)},{key:"straightLine",text:C("straight_line",e)},{key:"rayLine",text:C("ray_line",e)},{key:"segment",text:C("segment",e)},{key:"arrow",text:C("arrow",e)},{key:"brush",text:C("brush",e)},{key:"priceLine",text:C("price_line",e)}]}function mv(e){return[{key:"priceChannelLine",text:C("price_channel_line",e)},{key:"parallelStraightLine",text:C("parallel_straight_line",e)}]}function yv(e){return[{key:"circle",text:C("circle",e)},{key:"rect",text:C("rect",e)},{key:"parallelogram",text:C("parallelogram",e)},{key:"triangle",text:C("triangle",e)}]}function _v(e){return[{key:"fibonacciLine",text:C("fibonacci_line",e)},{key:"fibonacciSegment",text:C("fibonacci_segment",e)},{key:"fibonacciCircle",text:C("fibonacci_circle",e)},{key:"fibonacciSpiral",text:C("fibonacci_spiral",e)},{key:"fibonacciSpeedResistanceFan",text:C("fibonacci_speed_resistance_fan",e)},{key:"fibonacciExtension",text:C("fibonacci_extension",e)},{key:"gannBox",text:C("gann_box",e)}]}function vv(e){return[{key:"xabcd",text:C("xabcd",e)},{key:"abcd",text:C("abcd",e)},{key:"threeWaves",text:C("three_waves",e)},{key:"fiveWaves",text:C("five_waves",e)},{key:"eightWaves",text:C("eight_waves",e)},{key:"anyWaves",text:C("any_waves",e)}]}function bv(e){return[{key:"weak_magnet",text:C("weak_magnet",e)},{key:"strong_magnet",text:C("strong_magnet",e)}]}const rn=e=>gv[e.name](e.class);var Cv=N('<div class=klinecharts-pro-drawing-bar><span class=split-line></span><div class=item tabindex=0><span style=width:32px;height:32px></span><div class=icon-arrow><svg viewBox="0 0 4 6"><path d=M1.07298,0.159458C0.827521,-0.0531526,0.429553,-0.0531526,0.184094,0.159458C-0.0613648,0.372068,-0.0613648,0.716778,0.184094,0.929388L2.61275,3.03303L0.260362,5.07061C0.0149035,5.28322,0.0149035,5.62793,0.260362,5.84054C0.505822,6.05315,0.903789,6.05315,1.14925,5.84054L3.81591,3.53075C4.01812,3.3556,4.05374,3.0908,3.92279,2.88406C3.93219,2.73496,3.87113,2.58315,3.73964,2.46925L1.07298,0.159458Z stroke=none stroke-opacity=0></path></svg></div></div><div class=item><span style=width:32px;height:32px></span></div><div class=item><span style=width:32px;height:32px></span></div><span class=split-line></span><div class=item><span style=width:32px;height:32px>'),xv=N('<div class=item tabindex=0><span style=width:32px;height:32px></span><div class=icon-arrow><svg viewBox="0 0 4 6"><path d=M1.07298,0.159458C0.827521,-0.0531526,0.429553,-0.0531526,0.184094,0.159458C-0.0613648,0.372068,-0.0613648,0.716778,0.184094,0.929388L2.61275,3.03303L0.260362,5.07061C0.0149035,5.28322,0.0149035,5.62793,0.260362,5.84054C0.505822,6.05315,0.903789,6.05315,1.14925,5.84054L3.81591,3.53075C4.01812,3.3556,4.05374,3.0908,3.92279,2.88406C3.93219,2.73496,3.87113,2.58315,3.73964,2.46925L1.07298,0.159458Z stroke=none stroke-opacity=0>'),i5=N("<li><span style=padding-left:8px>");const o5="drawing_tools",wv=e=>{const[n,i]=G("horizontalStraightLine"),[a,s]=G("priceChannelLine"),[l,c]=G("circle"),[f,d]=G("fibonacciLine"),[g,_]=G("xabcd"),[y,b]=G("weak_magnet"),[k,v]=G("normal"),[w,L]=G(!1),[$,T]=G(!0),[P,D]=G(""),U=en(()=>[{key:"singleLine",icon:n(),list:pv(e.locale),setter:i},{key:"moreLine",icon:a(),list:mv(e.locale),setter:s},{key:"polygon",icon:l(),list:yv(e.locale),setter:c},{key:"fibonacci",icon:f(),list:_v(e.locale),setter:d},{key:"wave",icon:g(),list:vv(e.locale),setter:_}]),X=en(()=>bv(e.locale));return(()=>{var Y=Cv(),E=Y.firstChild,z=E.nextSibling,V=z.firstChild,Q=V.nextSibling,te=Q.firstChild,ee=z.nextSibling,Pe=ee.firstChild,oe=ee.nextSibling,_t=oe.firstChild,wt=oe.nextSibling,at=wt.nextSibling,nt=at.firstChild;return W(Y,()=>U().map($e=>(()=>{var Ve=xv(),ze=Ve.firstChild,rt=ze.nextSibling,ie=rt.firstChild;return Ve.addEventListener("blur",()=>{D("")}),ze.$$click=()=>{e.onDrawingItemClick({groupId:o5,name:$e.icon,visible:$(),lock:w(),mode:k()})},W(ze,Z(rn,{get name(){return $e.icon}})),rt.$$click=()=>{$e.key===P()?D(""):D($e.key)},W(Ve,(()=>{var Ae=je(()=>$e.key===P());return()=>Ae()&&Z(ui,{class:"list",get children(){return $e.list.map(ce=>(()=>{var De=i5(),st=De.firstChild;return De.$$click=()=>{$e.setter(ce.key),e.onDrawingItemClick({name:ce.key,lock:w(),mode:k()}),D("")},W(De,Z(rn,{get name(){return ce.key}}),st),W(st,()=>ce.text),De})())}})})(),null),Te(()=>ft(ie,"class",$e.key===P()?"rotate":"")),Ve})()),E),z.addEventListener("blur",()=>{D("")}),V.$$click=()=>{let $e=y();k()!=="normal"&&($e="normal"),v($e),e.onModeChange($e)},W(V,(()=>{var $e=je(()=>y()==="weak_magnet");return()=>$e()?je(()=>k()==="weak_magnet")()?Z(rn,{name:"weak_magnet",class:"selected"}):Z(rn,{name:"weak_magnet"}):je(()=>k()==="strong_magnet")()?Z(rn,{name:"strong_magnet",class:"selected"}):Z(rn,{name:"strong_magnet"})})()),Q.$$click=()=>{P()==="mode"?D(""):D("mode")},W(z,(()=>{var $e=je(()=>P()==="mode");return()=>$e()&&Z(ui,{class:"list",get children(){return X().map(Ve=>(()=>{var ze=i5(),rt=ze.firstChild;return ze.$$click=()=>{b(Ve.key),v(Ve.key),e.onModeChange(Ve.key),D("")},W(ze,Z(rn,{get name(){return Ve.key}}),rt),W(rt,()=>Ve.text),ze})())}})})(),null),Pe.$$click=()=>{const $e=!w();L($e),e.onLockChange($e)},W(Pe,(()=>{var $e=je(()=>!!w());return()=>$e()?Z(rn,{name:"lock"}):Z(rn,{name:"unlock"})})()),_t.$$click=()=>{const $e=!$();T($e),e.onVisibleChange($e)},W(_t,(()=>{var $e=je(()=>!!$());return()=>$e()?Z(rn,{name:"visible"}):Z(rn,{name:"invisible"})})()),nt.$$click=()=>{e.onRemoveClick(o5)},W(nt,Z(rn,{name:"remove"})),Te(()=>ft(te,"class",P()==="mode"?"rotate":"")),Y})()};zt(["click"]);var a5=N("<li class=title>"),Lv=N('<div style="padding:0 20px">'),s5=N("<li class=row>");const $v=e=>Z(kn,{get title(){return C("indicator",e.locale)},width:400,get onClose(){return e.onClose},get children(){var n=Lv();return W(n,Z(ui,{class:"klinecharts-pro-indicator-modal-list",get children(){return[(()=>{var i=a5();return W(i,()=>C("main_indicator",e.locale)),i})(),je(()=>["MA","EMA","SMA","BOLL","SAR","BBI"].map(i=>{const a=e.mainIndicators.includes(i);return(()=>{var s=s5();return s.$$click=l=>{e.onMainIndicatorChange({name:i,id:"candle_pane",added:!a})},W(s,Z(n9,{checked:a,get label(){return C(i.toLowerCase(),e.locale)}})),s})()})),(()=>{var i=a5();return W(i,()=>C("sub_indicator",e.locale)),i})(),je(()=>["MA","EMA","VOL","MACD","BOLL","KDJ","RSI","BIAS","BRAR","CCI","DMI","CR","PSY","DMA","TRIX","OBV","VR","WR","MTM","EMV","SAR","SMA","ROC","PVT","BBI","AO"].map(i=>{const a=i in e.subIndicators;return(()=>{var s=s5();return s.$$click=l=>{e.onSubIndicatorChange({name:i,id:e.subIndicators[i]??"",added:!a})},W(s,Z(n9,{checked:a,get label(){return C(i.toLowerCase(),e.locale)}})),s})()}))]}})),n}});zt(["click"]);function l5(e,n){switch(e){case"Etc/UTC":return C("utc",n);case"Pacific/Honolulu":return C("honolulu",n);case"America/Juneau":return C("juneau",n);case"America/Los_Angeles":return C("los_angeles",n);case"America/Chicago":return C("chicago",n);case"America/Toronto":return C("toronto",n);case"America/Sao_Paulo":return C("sao_paulo",n);case"Europe/London":return C("london",n);case"Europe/Berlin":return C("berlin",n);case"Asia/Bahrain":return C("bahrain",n);case"Asia/Dubai":return C("dubai",n);case"Asia/Ashkhabad":return C("ashkhabad",n);case"Asia/Almaty":return C("almaty",n);case"Asia/Bangkok":return C("bangkok",n);case"Asia/Shanghai":return C("shanghai",n);case"Asia/Tokyo":return C("tokyo",n);case"Australia/Sydney":return C("sydney",n);case"Pacific/Norfolk":return C("norfolk",n)}return e}function Sv(e){return[{key:"Etc/UTC",text:C("utc",e)},{key:"Pacific/Honolulu",text:C("honolulu",e)},{key:"America/Juneau",text:C("juneau",e)},{key:"America/Los_Angeles",text:C("los_angeles",e)},{key:"America/Chicago",text:C("chicago",e)},{key:"America/Toronto",text:C("toronto",e)},{key:"America/Sao_Paulo",text:C("sao_paulo",e)},{key:"Europe/London",text:C("london",e)},{key:"Europe/Berlin",text:C("berlin",e)},{key:"Asia/Bahrain",text:C("bahrain",e)},{key:"Asia/Dubai",text:C("dubai",e)},{key:"Asia/Ashkhabad",text:C("ashkhabad",e)},{key:"Asia/Almaty",text:C("almaty",e)},{key:"Asia/Bangkok",text:C("bangkok",e)},{key:"Asia/Shanghai",text:C("shanghai",e)},{key:"Asia/Tokyo",text:C("tokyo",e)},{key:"Australia/Sydney",text:C("sydney",e)},{key:"Pacific/Norfolk",text:C("norfolk",e)}]}var kv=N('<div style="padding:20px 20px 0 20px">');const Av=e=>{const[n,i]=G(e.timezone),a=en(()=>Sv(e.locale));return Z(kn,{get title(){return C("timezone",e.locale)},width:320,get buttons(){return[{children:C("confirm",e.locale),onClick:()=>{e.onConfirm(n()),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=kv();return W(s,Z(p1,{style:{width:"100%"},get value(){return n().text},onSelected:l=>{i(l)},get dataSource(){return a()}})),s}})},hr=e=>{const n=[{key:"solid",text:C("solid",e)},{key:"dashed",text:C("dashed",e)}],i=[{key:[4,4]}],a=[{key:"true",text:!0},{key:"false",text:!1}],s=[{key:1,text:1},{key:2,text:2},{key:3,text:3},{key:4,text:4},{key:5,text:5},{key:6,text:6},{key:7,text:7},{key:8,text:8},{key:9,text:9},{key:10,text:10},{key:11,text:11},{key:12,text:12},{key:13,text:13},{key:14,text:14},{key:15,text:15}],l=[{key:"fill",text:C("fill",e)},{key:"stroke",text:C("stroke",e)},{key:"stroke_fill",text:C("stroke_fill",e)}],c=[{key:"none",text:C("none",e)},{key:"always",text:C("always",e)},{key:"follow_cross",text:C("follow_cross",e)}],f=[{key:10,text:10},{key:11,text:11},{key:12,text:12},{key:14,text:14},{key:16,text:16},{key:18,text:18},{key:20,text:20},{key:22,text:22},{key:24,text:24}],d=[{key:"normal",text:C("Normal",e)}],g=[{key:"Helvetica Neue",text:C("Helvetica Neue",e)}];return{solid_dashed:n,dashed_value:i,size:s,fill_stroke:l,font_family:g,font_size:f,font_weight:d,none_always_followCross:c,true_false:a}},Mv=e=>{const{font_family:n,font_size:i,font_weight:a,size:s,solid_dashed:l,fill_stroke:c,none_always_followCross:f}=hr(e);return[{key:"candle.type",text:C("candle_type",e),component:"select",dataSource:[{key:"candle_solid",text:C("candle_solid",e)},{key:"candle_stroke",text:C("candle_stroke",e)},{key:"candle_up_stroke",text:C("candle_up_stroke",e)},{key:"candle_down_stroke",text:C("candle_down_stroke",e)},{key:"ohlc",text:C("ohlc",e)},{key:"area",text:C("area",e)},{key:"heikin_ashi",text:C("heikin_ashi",e)}]},{key:"candle.bar.upColor",text:C("Bar up color",e),component:"color"},{key:"candle.bar.downColor",text:C("Bar down color",e),component:"color"},{key:"candle.bar.noChangeColor",text:C("Bar no-change color",e),component:"color"},{key:"candle.bar.upBorderColor",text:C("Bar up-border color",e),component:"color"},{key:"candle.bar.downBorderColor",text:C("Bar down-border color",e),component:"color"},{key:"candle.bar.noChangeBorderColor",text:C("Bar no-change-border color",e),component:"color"},{key:"candle.bar.upWickColor",text:C("Bar up-wick color",e),component:"color"},{key:"candle.bar.downWickColor",text:C("Bar down-wick color",e),component:"color"},{key:"candle.bar.noChangeWickColor",text:C("Bar no-change-wick color",e),component:"color"},{key:"candle.area.lineSize",text:C("Area linesize",e),component:"select",dataSource:s},{key:"candle.area.lineColor",text:C("Area line color",e),component:"color"},{key:"candle.priceMark.high.show",text:C("high_price_show",e),component:"switch"},{key:"candle.priceMark.high.color",text:C("Pricemark high color",e),component:"color"},{key:"candle.priceMark.high.textSize",text:C("Pricemark High Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.high.textFamily",text:C("Pricemark High Font family",e),component:"select",dataSource:n},{key:"candle.priceMark.high.textWeight",text:C("Pricemark High Font Weight",e),component:"select",dataSource:a},{key:"candle.priceMark.low.show",text:C("low_price_show",e),component:"switch"},{key:"candle.priceMark.low.color",text:C("Pricemark low color",e),component:"color"},{key:"candle.priceMark.low.textSize",text:C("Pricemark Low Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.low.textFamily",text:C("Pricemark Low Font family",e),component:"select",dataSource:n},{key:"candle.priceMark.low.textWeight",text:C("Pricemark Low Font Weight",e),component:"select",dataSource:a},{key:"candle.priceMark.last.show",text:C("Show Pricemark last",e),component:"switch"},{key:"candle.priceMark.last.upColor",text:C("Pricemark last up-color",e),component:"color"},{key:"candle.priceMark.last.downColor",text:C("Pricemark last down-color",e),component:"color"},{key:"candle.priceMark.last.noChangeColor",text:C("Pricemark last no-change-color",e),component:"color"},{key:"candle.priceMark.last.line.show",text:C("Show Pricemark last line",e),component:"switch"},{key:"candle.priceMark.last.line.style",text:C("Pricemark last line style",e),component:"select",dataSource:l},{key:"candle.priceMark.last.line.size",text:C("Pricemark last line size",e),component:"select",dataSource:s},{key:"candle.priceMark.last.text.show",text:C("Show Pricemark last text",e),component:"switch"},{key:"candle.priceMark.last.text.style",text:C("Pricemark last text style",e),component:"select",dataSource:c},{key:"candle.priceMark.last.text.size",text:C("Pricemark last text size",e),component:"select",dataSource:i},{key:"candle.priceMark.last.text.color",text:C("Pricemark last text color",e),component:"color"},{key:"candle.tooltip.showRule",text:C("candle_tooltip",e),component:"select",dataSource:f},{key:"candle.tooltip.showType",text:C("Tooltip showtype",e),component:"select",dataSource:[{key:"rect",text:C("Rect",e)},{key:"standard",text:C("Standard",e)}]},{key:"candle.tooltip.rect.position",text:C("Tooltip rect position",e),component:"select",dataSource:[{key:"fixed",text:C("Fixed",e)},{key:"pointer",text:C("Pointer",e)}]},{key:"candle.tooltip.rect.color",text:C("Tooltip rect color",e),component:"color"},{key:"candle.tooltip.rect.borderColor",text:C("Tooltip rect border-color",e),component:"color"},{key:"candle.tooltip.text.size",text:C("Tooltip text size",e),component:"select",dataSource:i},{key:"candle.tooltip.text.weight",text:C("Tooltip text weight",e),component:"select",dataSource:a},{key:"candle.tooltip.text.color",text:C("Tooltip text color",e),component:"color"}]},Tv=e=>{const{fill_stroke:n,font_size:i,font_weight:a,none_always_followCross:s}=hr(e);return[{key:"indicator.ohlc.upColor",text:C("Ohlc up-color",e),component:"color"},{key:"indicator.ohlc.downColor",text:C("Ohlc down-color",e),component:"color"},{key:"indicator.ohlc.noChangeColor",text:C("Ohlc no-change-color",e),component:"color"},{key:"indicator.lastValueMark.show",text:C("indicator_last_value_show",e),component:"switch"},{key:"indicator.lastValueMark.text.show",text:C("Show last value mark text",e),component:"switch"},{key:"indicator.lastValueMark.text.style",text:C("Last value mark text style",e),component:"select",dataSource:n},{key:"indicator.lastValueMark.text.size",text:C("Last value mark text size",e),component:"select",dataSource:i},{key:"indicator.lastValueMark.text.weight",text:C("Last value mark text Weight",e),component:"select",dataSource:a},{key:"indicator.lastValueMark.text.color",text:C("Last value mark text color",e),component:"color"},{key:"indicator.tooltip.showRule",text:C("Tooltip showrule",e),component:"select",dataSource:s},{key:"indicator.tooltip.showType",text:C("Tooltip showtype",e),component:"select",dataSource:[{key:"standard",text:C("Standard",e)},{key:"rect",text:C("Rect",e)}]},{key:"indicator.tooltip.showName",text:C("Show tooltip name",e),component:"switch"},{key:"indicator.tooltip.showParams",text:C("Show tooltip params",e),component:"switch"},{key:"indicator.tooltip.text.size",text:C("Tooltip text size",e),component:"select",dataSource:i},{key:"indicator.tooltip.text.weight",text:C("Tooltip text Weight",e),component:"select",dataSource:a},{key:"indicator.tooltip.text.color",text:C("Tooltip text color",e),component:"color"}]},Ov=e=>{const{font_size:n,size:i,font_weight:a}=hr(e);return[{key:"xAxis.show",text:C("Show xAxis",e),component:"switch"},{key:"xAxis.axisLine.show",text:C("Show axis line",e),component:"switch"},{key:"xAxis.axisLine.color",text:C("Axis line color",e),component:"color"},{key:"xAxis.axisLine.size",text:C("Axis line size",e),component:"select",dataSource:i},{key:"xAxis.tickText.show",text:C("Show tick text",e),component:"switch"},{key:"xAxis.tickText.size",text:C("Tick text size",e),component:"select",dataSource:n},{key:"xAxis.tickText.weight",text:C("Tick text Weight",e),component:"select",dataSource:a},{key:"xAxis.tickText.color",text:C("Tick text color",e),component:"color"},{key:"xAxis.tickLine.show",text:C("Show tick line",e),component:"switch"},{key:"xAxis.tickLine.size",text:C("Tick line size",e),component:"select",dataSource:i},{key:"xAxis.tickLine.length",text:C("Tick line length",e),component:"select",dataSource:i},{key:"xAxis.tickLine.color",text:C("Tick line color",e),component:"color"}]},Pv=e=>{const{size:n,font_weight:i,font_size:a}=hr(e);return[{key:"yAxis.show",text:C("Show yAxis",e),component:"switch"},{key:"yAxis.position",text:C("Position",e),component:"select",dataSource:[{key:"right",text:C("Right",e)},{key:"left",text:C("Left",e)}]},{key:"yAxis.type",text:C("price_axis_type",e),component:"select",dataSource:[{key:"normal",text:C("normal",e)},{key:"percentage",text:C("percentage",e)},{key:"log",text:C("log",e)}]},{key:"yAxis.inside",text:C("Inside",e),component:"switch"},{key:"yAxis.reverse",text:C("reverse_coordinate",e),component:"switch"},{key:"yAxis.axisLine.show",text:C("Show axis line",e),component:"switch"},{key:"yAxis.axisLine.size",text:C("Axis line size",e),component:"select",dataSource:n},{key:"yAxis.axisLine.color",text:C("Axis line color",e),component:"color"},{key:"yAxis.tickText.show",text:C("Show tick text",e),component:"switch"},{key:"yAxis.tickText.color",text:C("Tick text color",e),component:"color"},{key:"yAxis.tickText.size",text:C("Tick text size",e),component:"select",dataSource:a},{key:"yAxis.tickText.weight",text:C("Tick text Weight",e),component:"select",dataSource:i},{key:"yAxis.tickLine.show",text:C("Show tick line",e),component:"switch"},{key:"yAxis.tickLine.color",text:C("Tick line color",e),component:"color"},{key:"yAxis.tickLine.size",text:C("Tick line size",e),component:"select",dataSource:n},{key:"yAxis.tickLine.length",text:C("Tick line length",e),component:"select",dataSource:n}]},Iv=e=>{const{size:n}=hr(e);return[{key:"grid.show",text:C("grid_show",e),component:"switch"},{key:"grid.horizontal.show",text:C("Show horizontal",e),component:"switch"},{key:"grid.horizontal.show",text:C("Horizontal size",e),component:"select",dataSource:n},{key:"grid.horizontal.color",text:C("Horizontal color",e),component:"color"},{key:"grid.vertical.show",text:C("Show vertical",e),component:"switch"},{key:"grid.vertical.show",text:C("Vertical size",e),component:"select",dataSource:n},{key:"grid.vertical.color",text:C("Vertical color",e),component:"color"}]},Ev=e=>{const{solid_dashed:n,dashed_value:i,fill_stroke:a,size:s,font_size:l,font_weight:c}=hr(e);return[{key:"crosshair.show",text:C("Show Crosshair",e),component:"switch"},{key:"crosshair.horizontal.show",text:C("Show horizontal",e),component:"switch"},{key:"crosshair.horizontal.line.show",text:C("Show horizontal line",e),component:"switch"},{key:"crosshair.horizontal.line.style",text:C("Horizontal Line Style",e),component:"select",dataSource:n},{key:"crosshair.horizontal.line.dashed_value",text:C("Horizontal Line Style",e),component:"select",dataSource:i},{key:"crosshair.horizontal.line.size",text:C("Horizontal Line size",e),component:"select",dataSource:s},{key:"crosshair.horizontal.line.color",text:C("Horizontal Line color",e),component:"color"},{key:"crosshair.horizontal.text.show",text:C("Show horizontal text",e),component:"switch"},{key:"crosshair.horizontal.text.style",text:C("Horizontal text Style",e),component:"select",dataSource:a},{key:"crosshair.horizontal.text.size",text:C("Horizontal text size",e),component:"select",dataSource:l},{key:"crosshair.horizontal.text.weight",text:C("Horizontal text weight",e),component:"select",dataSource:c},{key:"crosshair.horizontal.text.color",text:C("Horizontal text color",e),component:"color"},{key:"crosshair.horizontal.text.backgroundColor",text:C("Horizontal text background color",e),component:"color"},{key:"crosshair.vertical.show",text:C("Show vertical",e),component:"switch"},{key:"crosshair.vertical.line.show",text:C("Show vertical line",e),component:"switch"},{key:"crosshair.vertical.line.style",text:C("Vertical Line Style",e),component:"select",dataSource:n},{key:"crosshair.vertical.line.size",text:C("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.size",text:C("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.color",text:C("Vertical line color",e),component:"color"},{key:"crosshair.vertical.text.show",text:C("Show vertical text",e),component:"switch"},{key:"crosshair.vertical.text.style",text:C("Vertical text Style",e),component:"select",dataSource:a},{key:"crosshair.vertical.text.size",text:C("Vertical text size",e),component:"select",dataSource:l},{key:"crosshair.vertical.text.weight",text:C("Vertical text weight",e),component:"select",dataSource:c},{key:"crosshair.vertical.text.color",text:C("Vertical text color",e),component:"color"},{key:"crosshair.vertical.text.backgroundColor",text:C("Vertical text background color",e),component:"color"}]};function c5(e){const{size:n}=hr(e);return[...Mv(e),...Tv(e),...Ov(e),...Pv(e),...Iv(e),...Ev(e),{key:"separator.size",text:C("Seperator size",e),component:"select",dataSource:n},{key:"separator.fill",text:C("Fill",e),component:"switch"},{key:"separator.activeBackgroundColor",text:C("Background color",e),component:"color"}]}const u5="chartstatedata",xi={showPositions:!1,showLiquidation:!1,showOpenOrders:!1,showHisOrders:!1},f5="trading-display",Dv=2,Rv=["trading-pos-","trading-liq","trading-order-","trading-his-order-"],Bv=h5(),d5=new WeakMap;function h5(){return{tradingConfig:{...xi},positionsState:[],liquidationPriceState:null,openOrdersState:[],hisOrdersState:[],overlaySignatures:new Map}}function Fv(e,n){if(!(typeof process<"u"&&process.env.NODE_ENV==="production")){if(n!==void 0){console.warn(`[tradingStore] ${e}`,n);return}console.warn(`[tradingStore] ${e}`)}}function g5(e){return e||(re()??null)}function Jn(e){const n=g5(e);if(!n)return Bv;const i=d5.get(n);if(i)return i;const a=h5();return d5.set(n,a),a}function p5(){try{const e=localStorage.getItem(u5);return e?JSON.parse(e):{}}catch(e){return Fv("Failed to parse chart state storage, using defaults.",e),{}}}function m5(e){const n=e;return!n||typeof n.showPositions!="boolean"||typeof n.showLiquidation!="boolean"?null:{showPositions:n.showPositions,showLiquidation:n.showLiquidation,showOpenOrders:typeof n.showOpenOrders=="boolean"?n.showOpenOrders:xi.showOpenOrders,showHisOrders:typeof n.showHisOrders=="boolean"?n.showHisOrders:xi.showHisOrders}}function y5(e){const n=m5(e.tradingDisplay);if(n)return n;const i=m5(e.trading);return i||{...xi}}function _5(e){const n={...e,version:Dv,tradingDisplay:y5(e)};delete n.trading,localStorage.setItem(u5,JSON.stringify(n))}function zv(e){Jn(e),wi(e)}function wi(e){const n=Jn(e),i=p5();return n.tradingConfig=y5(i),_5(i),{...n.tradingConfig}}function v5(e,n){const i=Jn(n);i.tradingConfig={...e};const a=p5();a.tradingDisplay=i.tradingConfig,_5(a)}function Li(e,n){v5(e,n),gr(n)}function Nv(e,n){const i=Jn(n);i.positionsState=e.slice(),gr(n)}function Wv(e,n){const i=Jn(n);i.liquidationPriceState=e,e!=null&&Number.isFinite(e)&&v5({...i.tradingConfig,showLiquidation:!0},n),gr(n)}function Kv(e,n){const i=Jn(n);i.openOrdersState=e.slice(),gr(n)}function Uv(e,n){const i=Jn(n);i.hisOrdersState=e.slice(),gr(n)}function Zv(e,n){if(!Number.isFinite(n)||e.length===0)return null;let i=0,a=e.length-1,s=-1;for(;i<=a;){const l=i+a>>1;e[l].timestamp<=n?(s=l,i=l+1):a=l-1}return s>=0?e[s].timestamp:null}function mo(e){return e.replace(/[^a-zA-Z0-9_-]/g,"_")}function $i(e,n,i){return JSON.stringify({name:e,points:n,extendData:i})}function b5(e,n){e.overrideOverlay({id:n,onSelected:i=>(i.preventDefault&&i.preventDefault(),i.overlay.mode="normal",!1),onRightClick:i=>(i.preventDefault&&i.preventDefault(),!1)})}function Hv(e,n){if(!((e.getOverlays({id:n.id})??[]).length>0)){const s=e.createOverlay({id:n.id,name:n.name,groupId:f5,paneId:"candle_pane",mode:"normal",points:n.points,extendData:n.extendData})??n.id;return b5(e,s),s}return e.overrideOverlay({id:n.id,points:n.points,extendData:n.extendData}),b5(e,n.id),n.id}function Yv(e,n){(e.getOverlays()??[]).filter(a=>!!a.id&&Rv.some(s=>a.id.startsWith(s))&&!n.has(a.id)).forEach(a=>e.removeOverlay({id:a.id}))}function Gv(e,n,i){const a=[],s=e.tradingConfig.showPositions,l=e.tradingConfig.showLiquidation,c=e.tradingConfig.showOpenOrders,f=e.tradingConfig.showHisOrders,d=e.positionsState.filter(g=>g.size!==0&&Number.isFinite(g.avgPrice));if(s&&d.forEach((g,_)=>{const b=`trading-pos-${mo(g.id??`idx${_}`)}`,k=[{timestamp:i,value:g.avgPrice}],v={side:g.side,size:g.size,multiplier:g.multiplier??1};a.push({id:b,name:"positionAvgLine",points:k,extendData:v,signature:$i("positionAvgLine",k,v)})}),l&&d.length>0){const g=e.liquidationPriceState;if(g!=null&&Number.isFinite(g)){const _=[{timestamp:i,value:g}],y={};a.push({id:"trading-liq",name:"liquidationLine",points:_,extendData:y,signature:$i("liquidationLine",_,y)})}}if(c&&e.openOrdersState.filter(_=>_.orderType!=="market"&&Number.isFinite(_.price)&&_.size!==0&&(_.side==="long"||_.side==="short")&&typeof _.isBuy=="boolean").forEach((_,y)=>{const k=`trading-order-${mo(_.id??`idx${y}`)}`,v=[{timestamp:i,value:_.price}],w={isBuy:_.isBuy,size:_.size};a.push({id:k,name:"pendingOrderLine",points:v,extendData:w,signature:$i("pendingOrderLine",v,w)})}),f){const g=e.hisOrdersState.filter(b=>Number.isFinite(b.timestamp)&&Number.isFinite(b.price)&&Number.isFinite(b.size)&&b.size!==0&&typeof b.isBuy=="boolean"),_=new Map,y=new Map;n.forEach(b=>y.set(b.timestamp,{high:b.high,low:b.low})),g.forEach((b,k)=>{const v=Zv(n,b.timestamp);if(v==null)return;const w=`${v}_${b.isBuy?"B":"S"}`,L=_.get(w)??0;_.set(w,L+1);const $=y.get(v),P=`trading-his-order-${mo(b.id??String(b.orderId??`idx${k}`))}`,D=[{timestamp:v,value:b.price}],U={...b,stackIndex:L,barHigh:$==null?void 0:$.high,barLow:$==null?void 0:$.low};a.push({id:P,name:"hisOrderMark",points:D,extendData:U,signature:$i("hisOrderMark",D,U)})})}return a}function gr(e){var y;const n=g5(e),i=Jn(n);if(!n)return;const a=n,s=a.getDataList(),l=((y=s.at(-1))==null?void 0:y.timestamp)??Date.now(),c=Gv(i,s,l),f=new Map(c.map(b=>[b.id,b])),d=a.getOverlays({groupId:f5})??[],g=new Set(d.map(b=>b.id).filter(b=>!!b));g.forEach(b=>{f.has(b)||a.removeOverlay({id:b})});const _=new Map;c.forEach(b=>{const k=i.overlaySignatures.get(b.id);if(!g.has(b.id)||k!==b.signature){const w=Hv(a,b);_.set(w,b.signature);return}_.set(b.id,b.signature)}),i.overlaySignatures=_,Yv(a,new Set(_.keys()))}var b1=N("<div class=component><span>"),Vv=N("<div class=klinecharts-pro-setting-modal-content><div class=sidebar></div><div class=content>"),Qv=N("<button>");const jv=e=>{const[n,i]=G(e.currentStyles),[a,s]=G(c5(e.locale)),[l,c]=G("trading"),[f,d]=G(wi());Tt(()=>{s(c5(e.locale))}),Tt(()=>{l()==="trading"&&d(wi())});const g=(b,k)=>{const v=localStorage.getItem("chartstatedata");let w;v?(w=JSON.parse(v),w.styleObj=w.styleObj??{}):w={styleObj:{}};const L=b.key.indexOf(".");L===-1?b.key:b.key.slice(0,L)+""+b.key.slice(L),g1(w.styleObj,b.key,k),localStorage.setItem("chartstatedata",JSON.stringify(w)),Xn(!0);const $={};g1($,b.key,k),g1($,b.key,k);const T=ue.utils.clone(n());g1(T,b.key,k),i(T),s(a().map(P=>({...P}))),e.onChange($)},_=()=>{const b=localStorage.getItem("chartstatedata");let k;b&&(k=JSON.parse(b),k.styleObj&&(k.styleObj={}),localStorage.setItem("chartstatedata",JSON.stringify(k))),e.onRestoreDefault(a()),e.onClose()},y=[{text:C("setting_sidebar_trading",e.locale),key:"trading"},{text:"Candle",key:"candle"},{text:"Indicator",key:"indicator"},{text:"Grid",key:"grid"},{text:"X-Axis",key:"xAxis"},{text:"Y-Axis",key:"yAxis"},{text:"Separator",key:"separator"},{text:"Crosshair",key:"crosshair"}];return Z(kn,{get title(){return C("setting",e.locale)},width:640,height:560,get buttons(){return[{children:C("restore_default",e.locale),onClick:()=>{_()}}]},get onClose(){return e.onClose},get children(){var b=Vv(),k=b.firstChild,v=k.nextSibling;return W(k,()=>y.map(w=>(()=>{var L=Qv();return L.$$click=()=>c(w.key),W(L,()=>w.text),Te(()=>Zt(L,`${l()==w.key?"selected":""}`)),L})())),W(v,Z(Oe,{get when(){return l()==="trading"},get fallback(){return Z(Ja,{get each(){return a().filter(w=>w.key.includes(l()))},children:w=>{let L;const $=ue.utils.formatValue(n(),w.key);switch(w.component){case"select":{L=Z(p1,{style:{width:"120px"},get value(){return C($,e.locale)},get dataSource(){return w.dataSource},onSelected:T=>{const P=T.key;g(w,P)}});break}case"switch":{const T=!!$;L=Z(m1,{open:T,onChange:()=>{g(w,!T)}});break}case"color":{L=Z(Ly,{style:{width:"120px"},value:$,reactiveChange:!1,onChange:T=>{g(w,T)}});break}}return(()=>{var T=b1(),P=T.firstChild;return W(P,()=>w.text),W(T,L,null),T})()}})},get children(){return[(()=>{var w=b1(),L=w.firstChild;return W(L,()=>C("trading_display_positions",e.locale)),W(w,Z(m1,{get open(){return f().showPositions},onChange:()=>{const $={...f(),showPositions:!f().showPositions};d($),Li($)}}),null),w})(),(()=>{var w=b1(),L=w.firstChild;return W(L,()=>C("trading_display_liquidation",e.locale)),W(w,Z(m1,{get open(){return f().showLiquidation},onChange:()=>{const $={...f(),showLiquidation:!f().showLiquidation};d($),Li($)}}),null),w})(),(()=>{var w=b1(),L=w.firstChild;return W(L,()=>C("trading_display_open_orders",e.locale)),W(w,Z(m1,{get open(){return f().showOpenOrders},onChange:()=>{const $={...f(),showOpenOrders:!f().showOpenOrders};d($),Li($)}}),null),w})(),(()=>{var w=b1(),L=w.firstChild;return W(L,()=>C("trading_display_his_orders",e.locale)),W(w,Z(m1,{get open(){return f().showHisOrders},onChange:()=>{const $={...f(),showHisOrders:!f().showHisOrders};d($),Li($)}}),null),w})()]}})),b}})};zt(["click"]);var qv=N('<div style="margin:20px 20px 0 20px"><img style=width:500px>');const Xv=e=>Z(kn,{get title(){return C("screenshot",e.locale)},width:540,get buttons(){return[{type:"confirm",children:C("save",e.locale),onClick:()=>{const n=document.createElement("a");n.download="screenshot",n.href=e.url,document.body.appendChild(n),n.click(),n.remove()}}]},get onClose(){return e.onClose},get children(){var n=qv(),i=n.firstChild;return Te(()=>ft(i,"src",e.url)),n}}),Jv={AO:[{paramNameKey:"params_1",precision:0,min:1,default:5},{paramNameKey:"params_2",precision:0,min:1,default:34}],BIAS:[{paramNameKey:"BIAS1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"BIAS2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"BIAS3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"BIAS4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"BIAS5",precision:0,min:1,styleKey:"lines[4].color"}],BOLL:[{paramNameKey:"period",precision:0,min:1,default:20},{paramNameKey:"standard_deviation",precision:2,min:1,default:2}],BRAR:[{paramNameKey:"period",precision:0,min:1,default:26}],BBI:[{paramNameKey:"params_1",precision:0,min:1,default:3},{paramNameKey:"params_2",precision:0,min:1,default:6},{paramNameKey:"params_3",precision:0,min:1,default:12},{paramNameKey:"params_4",precision:0,min:1,default:24}],CCI:[{paramNameKey:"params_1",precision:0,min:1,default:20}],CR:[{paramNameKey:"params_1",precision:0,min:1,default:26},{paramNameKey:"params_2",precision:0,min:1,default:10},{paramNameKey:"params_3",precision:0,min:1,default:20},{paramNameKey:"params_4",precision:0,min:1,default:40},{paramNameKey:"params_5",precision:0,min:1,default:60}],DMA:[{paramNameKey:"params_1",precision:0,min:1,default:10},{paramNameKey:"params_2",precision:0,min:1,default:50},{paramNameKey:"params_3",precision:0,min:1,default:10}],DMI:[{paramNameKey:"params_1",precision:0,min:1,default:14},{paramNameKey:"params_2",precision:0,min:1,default:6}],EMV:[{paramNameKey:"params_1",precision:0,min:1,default:14},{paramNameKey:"params_2",precision:0,min:1,default:9}],EMA:[{paramNameKey:"EMA1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"EMA2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"EMA3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"EMA4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"EMA5",precision:0,min:1,styleKey:"lines[4].color"}],MTM:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],MA:[{paramNameKey:"MA1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"MA2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"MA3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"MA4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"MA5",precision:0,min:1,styleKey:"lines[4].color"}],MACD:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:26},{paramNameKey:"params_2",precision:0,min:1,default:9}],OBV:[{paramNameKey:"params_1",precision:0,min:1,default:30}],PVT:[],PSY:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],ROC:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],RSI:[{paramNameKey:"RSI1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"RSI2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"RSI3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"RSI4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"RSI5",precision:0,min:1,styleKey:"lines[4].color"}],SMA:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:2}],KDJ:[{paramNameKey:"params_1",precision:0,min:1,default:9},{paramNameKey:"params_2",precision:0,min:1,default:3},{paramNameKey:"params_3",precision:0,min:1,default:3}],SAR:[{paramNameKey:"params_1",precision:0,min:1,default:2},{paramNameKey:"params_2",precision:0,min:1,default:2},{paramNameKey:"params_3",precision:0,min:1,default:20}],TRIX:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:9}],VOL:[{paramNameKey:"MA1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"MA2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"MA3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"MA4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"MA5",precision:0,min:1,styleKey:"lines[4].color"}],VR:[{paramNameKey:"params_1",precision:0,min:1,default:26},{paramNameKey:"params_2",precision:0,min:1,default:6}],WR:[{paramNameKey:"WR1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"WR2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"WR3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"WR4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"WR5",precision:0,min:1,styleKey:"lines[4].color"}]};var eb=N("<div class=klinecharts-pro-indicator-setting-modal-content>"),tb=N("<div class=param-row><span>");const nb=e=>{const[n,i]=G(ue.utils.clone(e.params.calcParams)),a=s=>Jv[s];return Z(kn,{get title(){return e.params.indicatorName},width:360,get buttons(){return[{type:"confirm",children:C("confirm",e.locale),onClick:()=>{const s=a(e.params.indicatorName),l=[];ue.utils.clone(n()).forEach((c,f)=>{!ue.utils.isValid(c)||c===""?"default"in s[f]&&l.push(s[f].default):l.push(c)}),e.onConfirm(l),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=eb();return W(s,()=>a(e.params.indicatorName).map((l,c)=>(()=>{var f=tb(),d=f.firstChild;return W(d,()=>C(l.paramNameKey,e.locale)),W(f,Z(o9,{style:{width:"200px"},get value(){return n()[c]??""},get precision(){return l.precision},get min(){return l.min},onChange:g=>{const _=ue.utils.clone(n());_[c]=g,i(_)}}),null),f})())),s}})};var rb=N('<div style="margin:10px 20px 0 20px">'),ib=N('<svg viewBox="0 0 1024 1024"><path d="M945.066667 898.133333l-189.866667-189.866666c55.466667-64 87.466667-149.333333 87.466667-241.066667 0-204.8-168.533333-373.333333-373.333334-373.333333S96 264.533333 96 469.333333 264.533333 842.666667 469.333333 842.666667c91.733333 0 174.933333-34.133333 241.066667-87.466667l189.866667 189.866667c6.4 6.4 14.933333 8.533333 23.466666 8.533333s17.066667-2.133333 23.466667-8.533333c8.533333-12.8 8.533333-34.133333-2.133333-46.933334zM469.333333 778.666667C298.666667 778.666667 160 640 160 469.333333S298.666667 160 469.333333 160 778.666667 298.666667 778.666667 469.333333 640 778.666667 469.333333 778.666667z">'),ob=N("<img alt=symbol>"),ab=N("<li><div><span>");const sb=e=>{const[n,i]=G(""),[a]=cc(n,e.datafeed.searchSymbols.bind(e.datafeed));return Z(kn,{get title(){return C("symbol_search",e.locale)},width:460,get onClose(){return e.onClose},get children(){var s=rb();return W(s,Z(o9,{class:"klinecharts-pro-symbol-search-modal-input",get placeholder(){return C("symbol_code",e.locale)},get suffix(){return ib()},get value(){return n()},onChange:l=>{const c=`${l}`;i(c)}}),null),W(s,Z(ui,{class:"klinecharts-pro-symbol-search-modal-list",get loading(){return a.loading},get dataSource(){return a()??[]},renderItem:l=>(()=>{var c=ab(),f=c.firstChild,d=f.firstChild;return c.$$click=()=>{e.onSymbolSelected(l),e.onClose()},W(f,Z(Oe,{get when(){return l.logo},get children(){var g=ob();return Te(()=>ft(g,"src",l.logo)),g}}),d),W(d,()=>l.shortName??l.ticker,null),W(d,()=>`${l.name?`(${l.name})`:""}`,null),W(c,()=>l.exchange??"",null),Te(()=>ft(d,"title",l.name??"")),c})()}),null),s}})};zt(["click"]);var lb=N("<div class=row><span>价格</span><input class=field-input type=number min=0 step=any>"),cb=N("<div class=row><span>分钟"),ub=N("<div class=row><span>百分比</span><input class=field-input type=number min=1 max=100 step=1>"),fb=N("<div class=error-text>"),db=N("<div class=klinecharts-pro-alert-add-modal><div class=row><span>类型</span></div><div class=row><span>频率</span></div><div class=row><span>备注</span><input class=field-input type=text placeholder=可选>");const C5=[{key:"price_reach",text:"价格达到"},{key:"price_rise_to",text:"价格上涨至"},{key:"price_fall_to",text:"价格下跌至"},{key:"price_rise_pct_over",text:"价格涨幅超过"},{key:"price_fall_pct_over",text:"价格跌幅超过"}],x5=[{key:"repeat",text:"重复提醒"},{key:"once",text:"仅提醒一次"}],w5=[{key:"5m",text:"5分"},{key:"1h",text:"1小时"},{key:"4h",text:"4小时"},{key:"24h",text:"24小时"}],hb=e=>{const[n,i]=G(!1),[a,s]=G(""),[l,c]=G({type:"price_reach",frequency:"repeat",price:"",window:"5m",percent:"10",remark:""}),f=en(()=>{const g=l().type;return g==="price_reach"||g==="price_rise_to"||g==="price_fall_to"}),d=async()=>{if(n())return;const g=l(),_={type:g.type,frequency:g.frequency,remark:g.remark.trim()||void 0};if(f()){const y=Number(g.price);if(!Number.isFinite(y)||y<=0){s("请输入大于 0 的价格");return}_.price=y}else{const y=Number(g.percent);if(!Number.isInteger(y)||y<1||y>100){s("百分比需为 1-100 的整数");return}_.window=g.window,_.percent=y}s(""),i(!0);try{await e.onSubmit(_)&&e.onClose()}finally{i(!1)}};return Z(kn,{title:"添加预警",width:360,get buttons(){return[{children:"取消",type:"cancel",onClick:e.onClose},{children:n()?"提交中...":"提交",onClick:d}]},get onClose(){return e.onClose},get children(){var g=db(),_=g.firstChild;_.firstChild;var y=_.nextSibling;y.firstChild;var b=y.nextSibling,k=b.firstChild,v=k.nextSibling;return W(_,Z(p1,{style:{width:"220px"},get value(){var w;return(w=C5.find(L=>L.key===l().type))==null?void 0:w.text},dataSource:C5,onSelected:w=>{const L=w.key;c($=>({...$,type:L}))}}),null),W(g,Z(Oe,{get when(){return f()},get children(){var w=lb(),L=w.firstChild,$=L.nextSibling;return $.$$input=T=>{c(P=>({...P,price:T.target.value}))},Te(()=>$.value=l().price),w}}),y),W(g,Z(Oe,{get when(){return!f()},get children(){return[(()=>{var w=cb();return w.firstChild,W(w,Z(p1,{style:{width:"220px"},get value(){var L;return(L=w5.find($=>$.key===l().window))==null?void 0:L.text},dataSource:w5,onSelected:L=>{const $=L.key;c(T=>({...T,window:$}))}}),null),w})(),(()=>{var w=ub(),L=w.firstChild,$=L.nextSibling;return $.$$input=T=>{c(P=>({...P,percent:T.target.value}))},Te(()=>$.value=l().percent),w})()]}}),y),W(y,Z(p1,{style:{width:"220px"},get value(){var w;return(w=x5.find(L=>L.key===l().frequency))==null?void 0:w.text},dataSource:x5,onSelected:w=>{const L=w.key;c($=>({...$,frequency:L}))}}),null),v.$$input=w=>{c(L=>({...L,remark:w.target.value}))},W(g,Z(Oe,{get when(){return!!a()},get children(){var w=fb();return W(w,a),w}}),null),Te(()=>v.value=l().remark),g}})};zt(["input"]);var gb=N("<dt>标的"),Si=N("<dd>"),pb=N("<dt>价格"),mb=N("<dt>时间窗"),yb=N("<dt>百分比"),_b=N("<dl class=alert-detail-grid><dt>类型</dt><dd></dd><dt>频率</dt><dd></dd><dt>备注</dt><dd>");function vb(e){return e==="price_reach"?"价格达到":e==="price_rise_to"?"价格上涨至":e==="price_fall_to"?"价格下跌至":e==="price_rise_pct_over"?"价格涨幅超过":"价格跌幅超过"}function bb(e){return e==="repeat"?"重复提醒":"仅提醒一次"}function Cb(e){return e==="5m"?"5分":e==="1h"?"1小时":e==="4h"?"4小时":e==="24h"?"24小时":e??"—"}const L5=e=>(()=>{var n=_b(),i=n.firstChild,a=i.nextSibling,s=a.nextSibling,l=s.nextSibling,c=l.nextSibling,f=c.nextSibling;return W(n,Z(Oe,{get when(){return!!e.alert.symbol},get children(){return[gb(),(()=>{var d=Si();return W(d,()=>e.alert.symbol),d})()]}}),i),W(a,()=>vb(e.alert.type)),W(n,Z(Oe,{get when(){return je(()=>e.alert.price!=null)()&&Number.isFinite(e.alert.price)},get children(){return[pb(),(()=>{var d=Si();return W(d,()=>String(e.alert.price)),d})()]}}),s),W(n,Z(Oe,{get when(){return e.alert.window!=null},get children(){return[mb(),(()=>{var d=Si();return W(d,()=>Cb(e.alert.window)),d})()]}}),s),W(n,Z(Oe,{get when(){return e.alert.percent!=null},get children(){return[yb(),(()=>{var d=Si();return W(d,()=>`${e.alert.percent}%`),d})()]}}),s),W(l,()=>bb(e.alert.frequency)),W(f,(()=>{var d=je(()=>{var g;return!!((g=e.alert.remark)!=null&&g.trim())});return()=>d()?e.alert.remark:"—"})()),n})();var xb=N("<div class=alert-empty>暂无预警"),wb=N("<div class=klinecharts-pro-alert-modal><div class=alert-list></div><div class=alert-add-btn-container><button type=button class=alert-add-btn>添加"),Lb=N("<div class=alert-item title=双击查看详情><span class=alert-text></span><button type=button class=alert-delete>删除"),$b=N("<div class=klinecharts-pro-alert-detail>");function Sb(e){return e.type==="price_reach"?`价格达到 ${e.price??"--"}`:e.type==="price_rise_to"?`价格上涨至 ${e.price??"--"}`:e.type==="price_fall_to"?`价格下跌至 ${e.price??"--"}`:e.type==="price_rise_pct_over"?`价格${e.window??"5m"}涨幅 ${e.percent??"--"}%`:`价格${e.window??"5m"}跌幅 ${e.percent??"--"}%`}const kb=e=>{const[n,i]=G(!1),[a,s]=G(null);return Z(kn,{title:"预警",width:480,get onClose(){return e.onClose},get children(){return[(()=>{var l=wb(),c=l.firstChild,f=c.nextSibling,d=f.firstChild;return W(c,Z(Ja,{get each(){return e.alerts},children:g=>(()=>{var _=Lb(),y=_.firstChild,b=y.nextSibling;return _.$$dblclick=()=>{s(g)},W(y,()=>Sb(g)),b.$$dblclick=k=>{k.stopPropagation()},b.$$click=async()=>{var k;await((k=e.onRemoveAlert)==null?void 0:k.call(e,g))},_})()}),null),W(c,Z(Oe,{get when(){return e.alerts.length===0},get children(){return xb()}}),null),d.$$click=()=>{i(!0)},l})(),Z(Oe,{get when(){return n()},get children(){return Z(hb,{onClose:()=>{i(!1)},onSubmit:async l=>{var c;return await((c=e.onAddAlert)==null?void 0:c.call(e,l))??!0}})}}),Z(Oe,{get when(){return a()},children:l=>Z(kn,{title:"预警详情",width:400,height:260,onClose:()=>{s(null)},get children(){var c=$b();return W(c,Z(L5,{get alert(){return l()}})),c}})})]}})};zt(["click","dblclick"]);class yo{constructor(n,i){wn(this,"_chart");wn(this,"_charts",new Map);wn(this,"id");if(n==null)throw new Error("Chart container is required");if(typeof n!="string"&&!(n instanceof HTMLElement))throw new Error("Invalid chart container");const a=ue.init(n,i);if(!a)throw new Error("Failed to initialize chart");this._chart=a,this.id=a.id}get chart(){return this._chart}get charts(){return Array.from(this._charts.values())}static init(n,i){return new yo(n,i)}getDom(n,i){return this._chart.getDom(n,i)}getSize(n,i){return this._chart.getSize(n,i)}createIndicator(n,i,a){return this._chart.createIndicator(n,i,a)}getIndicators(n){return this._chart.getIndicators(n)}createOverlay(n){return this._chart.createOverlay(n)}getOverlays(n){return this._chart.getOverlays(n)}setPaneOptions(n){return this._chart.setPaneOptions(n)}getPaneOptions(n){return this._chart.getPaneOptions(n)}scrollByDistance(n,i){return this._chart.scrollByDistance(n,i)}scrollToRealTime(n){return this._chart.scrollToRealTime(n)}scrollToDataIndex(n,i){return this._chart.scrollToDataIndex(n,i)}scrollToTimestamp(n,i){return this._chart.scrollToTimestamp(n,i)}zoomAtCoordinate(n,i,a){return this._chart.zoomAtCoordinate(n,i,a)}zoomAtDataIndex(n,i,a){return this._chart.zoomAtDataIndex(n,i,a)}zoomAtTimestamp(n,i,a){return this._chart.zoomAtTimestamp(n,i,a)}convertToPixel(n,i){return this._chart.convertToPixel(n,i)}convertFromPixel(n,i){return this._chart.convertFromPixel(n,i)}executeAction(n,i){return this._chart.executeAction(n,i)}subscribeAction(n,i){return this._chart.subscribeAction(n,i)}unsubscribeAction(n,i){return this._chart.unsubscribeAction(n,i)}getConvertPictureUrl(n,i,a){return this._chart.getConvertPictureUrl(n,i,a)}resize(){return this._chart.resize()}setStyles(n){return this._chart.setStyles(n)}getStyles(){return this._chart.getStyles()}setFormatter(n){return this._chart.setFormatter(n)}getFormatter(){return this._chart.getFormatter()}setLocale(n){return this._chart.setLocale(n)}getLocale(){return this._chart.getLocale()}setTimezone(n){return this._chart.setTimezone(n)}getTimezone(){return this._chart.getTimezone()}setThousandsSeparator(n){return this._chart.setThousandsSeparator(n)}getThousandsSeparator(){return this._chart.getThousandsSeparator()}setDecimalFold(n){return this._chart.setDecimalFold(n)}getDecimalFold(){return this._chart.getDecimalFold()}setSymbol(n){return this._chart.setSymbol(n)}getSymbol(){return this._chart.getSymbol()}setPeriod(n){return this._chart.setPeriod(n)}getPeriod(){return this._chart.getPeriod()}getDataList(){return this._chart.getDataList()}setOffsetRightDistance(n){return this._chart.setOffsetRightDistance(n)}getOffsetRightDistance(){return this._chart.getOffsetRightDistance()}setMaxOffsetLeftDistance(n){return this._chart.setMaxOffsetLeftDistance(n)}setMaxOffsetRightDistance(n){return this._chart.setMaxOffsetRightDistance(n)}setLeftMinVisibleBarCount(n){return this._chart.setLeftMinVisibleBarCount(n)}setRightMinVisibleBarCount(n){return this._chart.setRightMinVisibleBarCount(n)}setBarSpace(n){return this._chart.setBarSpace(n)}getBarSpace(){return this._chart.getBarSpace()}getVisibleRange(){return this._chart.getVisibleRange()}setDataLoader(n){return this._chart.setDataLoader(n)}overrideIndicator(n){return this._chart.overrideIndicator(n)}removeIndicator(n){return this._chart.removeIndicator(n)}overrideOverlay(n){return this._chart.overrideOverlay(n)}removeOverlay(n){return this._chart.removeOverlay(n)}setZoomEnabled(n){return this._chart.setZoomEnabled(n)}isZoomEnabled(){return this._chart.isZoomEnabled()}setZoomAnchor(n){this._chart.setZoomAnchor(n)}getZoomAnchor(){return this._chart.getZoomAnchor()}setScrollEnabled(n){return this._chart.setScrollEnabled(n)}isScrollEnabled(){return this._chart.isScrollEnabled()}resetData(){return this._chart.resetData()}setActiveChart(n){const i=this._charts.get(n);return i&&(this._chart=i),this}chartById(n){return this._charts.get(n)}getOverlayById(n){return this._chart.getOverlays({id:n})[0]??null}}const $5={visible:!1,indicatorName:"",paneId:"",calcParams:[]};function Ab(e){return{onIndicatorTooltipFeatureClick:l=>{const c=l,f=e.getApi();if(f)switch(c.feature.id){case"visible":f.overrideIndicator({name:c.indicator.name,visible:!0,paneId:c.paneId});break;case"invisible":f.overrideIndicator({name:c.indicator.name,visible:!1,paneId:c.paneId});break;case"setting":{const d=f.getIndicators({paneId:c.paneId,name:c.indicator.name,id:c.indicator.id}).at(0);if(!d)return;e.setIndicatorSettingModalParams({visible:!0,indicatorName:c.indicator.name,paneId:c.paneId,calcParams:d.calcParams});break}case"close":{if(c.paneId==="candle_pane"){const d=[...e.mainIndicators()];f.removeIndicator({paneId:c.paneId,name:c.indicator.name,id:c.indicator.id}),d.splice(d.indexOf(c.indicator.name),1),e.setMainIndicators(d)}else{const d={...e.subIndicators()};f.removeIndicator({paneId:c.paneId,name:c.indicator.name,id:c.indicator.id}),delete d[c.indicator.name],e.setSubIndicators(d)}break}}},onMainIndicatorChange:l=>{const c=e.getApi();if(!c)return;const f=[...e.mainIndicators()];l.added?(e.createIndicator(c,l.name,!0,{id:"candle_pane"}),f.push(l.name)):(c.removeIndicator({name:l.name,paneId:"candle_pane",id:l.id??void 0}),f.splice(f.indexOf(l.name),1)),e.setMainIndicators(f)},onSubIndicatorChange:l=>{const c=e.getApi();if(!c)return;const f={...e.subIndicators()};if(l.added){const d=e.createIndicator(c,l.name);d&&(f[l.name]=d)}else l.id&&(c.removeIndicator({name:l.name,id:l.id}),delete f[l.name]);e.setSubIndicators(f)},onIndicatorSettingConfirm:l=>{const c=e.getApi();if(!c)return;const f=e.indicatorSettingModalParams();c.overrideIndicator({name:f.indicatorName,calcParams:l,paneId:f.paneId})}}}const Mb=e=>{const n=["calc","figures","regenerateFigures","draw","createTooltipDataSource"];let i=e;return n.forEach(a=>{delete i[a]}),i},Tb=e=>{const n=["onDrawStart","onDrawing","onDrawEnd","onClick","onDoubleClick","onRightClick","onMouseEnter","onMouseLeave","onPressedMoveStart","onPressedMoving","onPressedMoveEnd","onRemoved","onSelected","onDeselected","performEventMoveForDrawing","performEventPressedMove","_prevPressedPoint","_prevPressedPoints","createPointFigures","createXAxisFigures","createYAxisFigures"];let i=e;return n.forEach(a=>{delete i[a]}),i},Ob=()=>{const e=(v,w,L)=>{const $=localStorage.getItem("chartstatedata");let T;const P=Mb(ut.cloneDeep(v));return $?(T=JSON.parse($),T.indicators?T.indicators.find(D=>{var U,X;return((U=D.value)==null?void 0:U.name)===P.name&&((X=D.paneOptions)==null?void 0:X.id)===(L==null?void 0:L.id)})?T.indicators=T.indicators.map(D=>{var U;return((U=D.value)==null?void 0:U.id)!==P.id?D:{value:P,isStack:w,paneOptions:L}}):T.indicators.push({value:P,isStack:w,paneOptions:L}):T.indicators=[{value:P,isStack:w,paneOptions:L}]):T={indicators:[{value:P,isStack:w,paneOptions:L}]},localStorage.setItem("chartstatedata",JSON.stringify(T)),Xn(!0),!1},n=v=>{const w=localStorage.getItem("chartstatedata");let L;const $=Tb(ut.cloneDeep(v));return w?(L=JSON.parse(w),L.overlays?L.overlays.find(T=>{var P;return((P=T.value)==null?void 0:P.id)===$.id})?L.overlays=L.overlays.map(T=>{var P;return((P=T.value)==null?void 0:P.id)!==$.id?T:{value:$,paneId:v.paneId}}):L.overlays.push({value:$,paneId:v.paneId}):L.overlays=[{value:v,paneId:v.paneId}]):L={overlays:[{value:$,paneId:v.paneId}]},localStorage.setItem("chartstatedata",JSON.stringify(L)),Xn(!0),!1};function i(v,w,L,$,T=!1){w==="VOL"&&($={axis:{gap:{bottom:2}},...$});const P=($==null?void 0:$.id)==="candle_pane",D=v.createIndicator({name:w,createTooltipDataSource:U=>{const Y=U.chart.getStyles().indicator.tooltip.features,E=[];return P&&E.push(U.indicator.visible?Y[1]:Y[0]),E.push(Y[2]),E.push(Y[3]),{features:E}}},L,$)??null;if(D&&T){const U=v==null?void 0:v.getIndicators({id:D,name:w})[0];U&&e(U,L,{id:D})}return D}const a=(v,w,L=!1)=>{var D,U,X;const $=(D=re())==null?void 0:D.createOverlay({...v,paneId:w});if(!$)return!1;const T=(U=re())==null?void 0:U.getOverlays({id:$})[0],P=Y=>(Y.preventDefault&&Y.preventDefault(),s(Y.overlay.id),!0);T&&(v.properties&&T.setProperties(v.properties,$),(X=re())==null||X.overrideOverlay({id:T.id,onDrawEnd:Y=>["measure"].includes(T.name)?!1:n(Y.overlay),onPressedMoveEnd:Y=>["measure"].includes(T.name)?!1:n(Y.overlay),onSelected:Y=>Ci(Y.overlay),onDeselected:()=>Ci(null),onRightClick:T.onRightClick?T.onRightClick:P,onDoubleClick:T.onDoubleClick?T.onDoubleClick:P}),L||n(T))},s=v=>{var L,$,T;const w=localStorage.getItem("chartstatedata");if(w){let P=JSON.parse(w);P.overlays=(L=P.overlays)==null?void 0:L.filter(D=>{var U;return((U=D.value)==null?void 0:U.id)!==v}),localStorage.setItem("chartstatedata",JSON.stringify(P)),Xn(!0)}($=re())==null||$.removeOverlay({id:v}),((T=zy())==null?void 0:T.id)===v&&Ci(null)},l=(v,w)=>{var $,T;const L=localStorage.getItem("chartstatedata");if(L){let P=JSON.parse(L);P.overlays=($=P.overlays)==null?void 0:$.map(D=>{var U;return((U=D.value)==null?void 0:U.id)===v&&(D.value={...D.value,...w},D.paneId=w.paneId??D.paneId),D}),localStorage.setItem("chartstatedata",JSON.stringify(P)),Xn(!0),(T=re())==null||T.overrideOverlay({...w,id:v})}},c=(v,w)=>{var $,T;const L=localStorage.getItem("chartstatedata");if(L){let P=JSON.parse(L);P.overlays=($=P.overlays)==null?void 0:$.map(U=>{var X;return((X=U.value)==null?void 0:X.id)===v&&(U.value.properties={...U.value.properties,...w}),U});const D=(T=re())==null?void 0:T.getOverlayById(v);D&&D.setProperties(w,v),localStorage.setItem("chartstatedata",JSON.stringify(P)),Xn(!0)}},f=v=>{const w=[...e5()];v.added?(i(re(),v.name,!0,{id:"candle_pane"},!0),w.push(v.name)):(_(v.name,"candle_pane"),w.splice(w.indexOf(v.name),1)),t5(w)},d=v=>{const w={...n5()};if(v.added){const L=i(re(),v.name,!1,void 0,!0);L&&(w[v.name]=L)}else v.paneId&&(_(v.name,v.paneId),delete w[v.name]);r5(w)},g=(v,w)=>{var $,T;const L=localStorage.getItem("chartstatedata");if(L){let P=JSON.parse(L);P.indicators=($=P.indicators)==null?void 0:$.map(D=>{var U;return((U=D.value)==null?void 0:U.name)===v.indicatorName&&(D.value.name=v.indicatorName,D.value.calcParams=w,D.paneOptions.id=v.paneId),D}),localStorage.setItem("chartstatedata",JSON.stringify(P)),Xn(!0),(T=re())==null||T.overrideIndicator({name:v.indicatorName,calcParams:w,paneId:v.paneId})}},_=(v,w,L)=>{var T,P;const $=localStorage.getItem("chartstatedata");if((T=re())==null||T.removeIndicator({id:v,paneId:L,name:w}),$){let D=JSON.parse($);D.indicators=(P=D.indicators)==null?void 0:P.filter(U=>{var X,Y;return((X=U.paneOptions)==null?void 0:X.id)!==L&&((Y=U.value)==null?void 0:Y.name)!==w}),localStorage.setItem("chartstatedata",JSON.stringify(D)),Xn(!0)}},y=(v,w)=>{document.documentElement.style.setProperty(v,w,"important");const L=document.querySelector("[data-theme]");L&&L.style.setProperty(v,w,"important")},b=v=>{var w;v.background&&y("--klinecharts-pro-pane-background",v.background),v.backgroundGradientStartColor&&y("--klinecharts-pro-pane-background-gradient-start",v.backgroundGradientStartColor),v.backgroundGradientEndColor&&y("--klinecharts-pro-pane-background-gradient-end",v.backgroundGradientEndColor),(w=v.separator)!=null&&w.color&&y("--klinecharts-pro-border-color",v.separator.color)};return{createIndicator:i,modifyIndicator:g,popIndicator:_,syncIndiObject:e,syncObject:n,pushOverlay:a,modifyOverlay:l,modifyOverlayProperties:c,popOverlay:s,pushMainIndicator:f,pushSubIndicator:d,restoreChartState:async v=>{const w=T=>{const P=JSON.parse(T);P.figures,P.overlays&&P.overlays.forEach(D=>{a(D.value,D.paneId,!0)}),P.indicators&&setTimeout(()=>{const D=[...e5()],U={...n5};P.indicators.forEach(X=>{var Y,E,z;X.value&&((Y=re())==null||Y.createIndicator(X.value,X.isStack,X.paneOptions),((E=X.paneOptions)==null?void 0:E.id)==="candle_pane"?D.push(X.value.name):U[X.value.name]=(z=X.paneOptions)==null?void 0:z.id)}),t5(D),r5(U)},500)},L=localStorage.getItem("chartstatedata");L&&w(L);const $=JSON.parse(L)??{};v&&(b(v),$.styleObj||($.styleObj=v,localStorage.setItem("chartstatedata",JSON.stringify($)))),$.styleObj&&J9($.styleObj)}}};function Pb(e,n){let i=null;const a=()=>{i!=null&&(globalThis.clearTimeout(i),i=null)};return{onEvent:l=>{const f=l.detail;if(!!(f!=null&&f.visible)){a(),n({visible:!0,order:(f==null?void 0:f.order)??null,x:(f==null?void 0:f.anchorX)??null,y:(f==null?void 0:f.anchorY)??null});return}a(),i=globalThis.setTimeout(()=>{i=null,n({visible:!1,order:null,x:null,y:null})},e)},clear:a}}function Ib(e,n){const i=[];let a=0;const s=()=>{for(;i.length>0;){const c=i.pop();c!=null&&globalThis.clearTimeout(c)}};return{schedule:()=>{a+=1;const c=a;s(),n.forEach(f=>{const d=globalThis.setTimeout(()=>{if(c!==a)return;e();const g=i.indexOf(d);g>=0&&i.splice(g,1)},f);i.push(d)})},clear:s}}var Eb=N('<i class="icon-close klinecharts-pro-load-icon">'),Db=N("<div class=klinecharts-pro-content><div class=klinecharts-pro-widget>"),Rb=N("<div class=klinecharts-pro-alert-detail>");const{createIndicator:_o,pushOverlay:Bb,restoreChartState:Fb}=Ob(),zb=[0,120,360,900],Nb=120,S5="alert_overlays",Wb=["price_reach","price_rise_to","price_fall_to"];function Kb(e){return{indicator:{tooltip:{features:[{id:"visible",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"invisible",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"setting",position:"middle",marginLeft:6,marginTop:3,marginBottom:0,marginRight:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"close",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"}]}}}}const Ub=e=>{let n,i;const[a,s]=G(e.theme),[l,c]=G(e.locale),[f,d]=G(!1),[g,_]=G([...e.mainIndicators]),[y,b]=G({}),[k,v]=G(!1),[w,L]=G({key:e.timezone,text:l5(e.timezone,e.locale)}),[$,T]=G(!1),[P,D]=G(!1),[U,X]=G(),[Y,E]=G(""),[z,V]=G(e.drawingBarVisible),[Q,te]=G([...e.alerts??[]]),[ee,Pe]=G(null),[oe,_t]=G(!1),[wt,at]=G(!1),[nt,$e]=G(null),[Ve,ze]=G({x:null,y:null});let rt=null,ie=!1,Ae=null,ce=!1,De;const[st,Xe]=G($5),Pt=I=>I.replace(/[^a-zA-Z0-9_-]/g,"_"),on=()=>{var Et;const I=re(),j=_1();if(!I||!j)return;const xe=((Et=I.getDataList().at(-1))==null?void 0:Et.timestamp)??Date.now(),ke=Q().filter(Ye=>!(!Wb.includes(Ye.type)||!Number.isFinite(Ye.price)||Ye.symbol&&Ye.symbol!==j.ticker)),$t=new Set;ke.forEach((Ye,Yt)=>{const St=`alert-${Pt(Ye.id||`idx_${Yt}`)}`;$t.add(St);const ye=(I.getOverlays({id:St})??[]).length>0,et={id:St,name:"priceAlertLine",groupId:S5,paneId:"candle_pane",mode:"normal",points:[{timestamp:xe,value:Ye.price}],extendData:{alert:Ye,showInfo:!1}};ye?I.overrideOverlay({id:St,points:et.points,extendData:et.extendData}):I.createOverlay(et)}),(I.getOverlays({groupId:S5})??[]).forEach(Ye=>{Ye.id&&!$t.has(Ye.id)&&I.removeOverlay({id:Ye.id})})},Nn=async I=>{var j;return await((j=e.onRemoveAlert)==null?void 0:j.call(e,I))??!0};q6({onRemove:I=>{Nn(I)}}),go(e.period),ho(e.symbol);const Wn=Pb(Nb,I=>{at(I.visible),$e(I.order),ze({x:I.x,y:I.y})}),er=Ib(()=>gr(re()),zb),mt=Ab({getApi:()=>re(),mainIndicators:g,setMainIndicators:_,subIndicators:y,setSubIndicators:b,indicatorSettingModalParams:st,setIndicatorSettingModalParams:Xe,createIndicator:_o}),Ie=I=>{const j=I.detail,xe=(j==null?void 0:j.sourceContainer)??null,ge=n==null?void 0:n.closest(".klinecharts-pro");ge&&(xe&&xe!==ge||j!=null&&j.alert&&Pe(j.alert))},Lt=I=>{const j=I.detail,xe=(j==null?void 0:j.sourceContainer)??null,ge=n==null?void 0:n.closest(".klinecharts-pro");ge&&(xe&&xe!==ge||Wn.onEvent(I))},Je=()=>{if(ie)return;ie=!0,Wn.clear(),er.clear(),rt!=null&&(window.cancelAnimationFrame(rt),rt=null);const I=n==null?void 0:n.closest(".klinecharts-pro");I==null||I.removeEventListener(c1,Lt),I==null||I.removeEventListener(u1,Ie),window.removeEventListener(c1,Lt),window.removeEventListener(u1,Ie),window.removeEventListener("resize",an),n&&ue.dispose(n)},It={setTheme:s,getTheme:()=>a(),setStyles:J9,getStyles:()=>X9()??{},setLocale:c,getLocale:()=>l(),setTimezone:I=>{L({key:I,text:l5(e.timezone,l())})},getTimezone:()=>w().key,setSymbol:ho,getSymbol:()=>_1(),setPeriod:go,getPeriod:()=>v1(),getInstanceApi:()=>re(),resize:()=>{var I;return(I=re())==null?void 0:I.resize()},dispose:()=>{Je()},setPositions:I=>{Nv(I,re())},setLiqPrice:I=>{Wv(I,re())},setOpenOrders:I=>{Kv(I,re())},setHisOrders:I=>{Uv(I,re())},setAlerts:I=>{te([...I]),on()}};e.ref(It);const an=()=>{rt==null&&(rt=window.requestAnimationFrame(()=>{var I;rt=null,(I=re())==null||I.resize()}))},it=()=>{er.schedule()};return x0(()=>{var xe,ge,ke,$t,Ht,Et,Ye,Yt,Me,St;const I=n==null?void 0:n.closest(".klinecharts-pro");if(I==null||I.addEventListener(c1,Lt),I==null||I.addEventListener(u1,Ie),window.addEventListener(c1,Lt),window.addEventListener(u1,Ie),window.addEventListener("resize",an),By(yo.init(n,{formatter:{formatDate:ye=>{switch(v1().type){case"minute":return ye.type==="xAxis"?ue.utils.formatDate(ye.dateTimeFormat,ye.timestamp,"HH:mm"):ue.utils.formatDate(ye.dateTimeFormat,ye.timestamp,"YYYY-MM-DD HH:mm");case"hour":return ye.type==="xAxis"?ue.utils.formatDate(ye.dateTimeFormat,ye.timestamp,"MM-DD HH:mm"):ue.utils.formatDate(ye.dateTimeFormat,ye.timestamp,"YYYY-MM-DD HH:mm");case"day":case"week":return ue.utils.formatDate(ye.dateTimeFormat,ye.timestamp,"YYYY-MM-DD");case"month":return ye.type==="xAxis"?ue.utils.formatDate(ye.dateTimeFormat,ye.timestamp,"YYYY-MM"):ue.utils.formatDate(ye.dateTimeFormat,ye.timestamp,"YYYY-MM-DD");case"year":return ye.type==="xAxis"?ue.utils.formatDate(ye.dateTimeFormat,ye.timestamp,"YYYY"):ue.utils.formatDate(ye.dateTimeFormat,ye.timestamp,"YYYY-MM-DD")}return ue.utils.formatDate(ye.dateTimeFormat,ye.timestamp,"YYYY-MM-DD HH:mm")}}})),re()){Iy(e.rootElementId);const ye=re().getDom("candle_pane","main");if(ye){let Dt=document.createElement("div");if(Dt.className="klinecharts-pro-watermark",ue.utils.isString(e.watermark)){const C1=e.watermark.replace(/(^\s*)|(\s*$)/g,"");Dt.innerHTML=C1}else Dt.appendChild(e.watermark);ye.appendChild(Dt)}const et=re().getDom("candle_pane","yAxis");i=document.createElement("span"),i.className="klinecharts-pro-price-unit",et==null||et.appendChild(i),(xe=re())==null||xe.setZoomAnchor({main:"last_bar",xAxis:"last_bar"}),(ge=re())==null||ge.setBarSpace(400),(ke=re())==null||ke.subscribeAction("onCrosshairFeatureClick",Dt=>{}),($t=re())==null||$t.subscribeAction("onIndicatorTooltipFeatureClick",mt.onIndicatorTooltipFeatureClick),(Ht=re())==null||Ht.subscribeAction("onCandleTooltipFeatureClick",Dt=>{}),(Et=re())==null||Et.subscribeAction("onZoom",Dt=>{}),(Ye=re())==null||Ye.subscribeAction("onCrosshairChange",Dt=>{}),Fb(e.overrides),zv(re()),wi(re()),gr(re()),on();const Ue=_1();Ue!=null&&Ue.priceCurrency?(i.innerHTML=Ue==null?void 0:Ue.priceCurrency.toLocaleUpperCase(),i.style.display="flex"):i.style.display="none",(Yt=re())==null||Yt.setSymbol({ticker:Ue.ticker,pricePrecision:(Ue==null?void 0:Ue.pricePrecision)??2,volumePrecision:(Ue==null?void 0:Ue.volumePrecision)??0}),(Me=re())==null||Me.setPeriod(v1()),(St=re())==null||St.setDataLoader(e.dataloader)}const j=re();if(j){g().forEach(et=>{_o(j,et,!0,{id:"candle_pane"})});const ye={};e.subIndicators.forEach(et=>{const Ue=_o(j,et,!0);Ue&&(ye[et]=Ue)}),b(ye)}}),Lr(()=>{Je()}),Tt(I=>{var Ye,Yt,Me,St,ye,et,Ue;const j=_1(),xe=v1(),ge=re();if(!j||!xe)return{symbol:j,period:xe};const ke=I!==void 0&&(I.period.span!==xe.span||I.period.type!==xe.type||I.period.text!==xe.text),$t=I!==void 0&&(((Ye=I.symbol)==null?void 0:Ye.ticker)!==j.ticker||(((Yt=I.symbol)==null?void 0:Yt.pricePrecision)??2)!==(j.pricePrecision??2)||(((Me=I.symbol)==null?void 0:Me.volumePrecision)??0)!==(j.volumePrecision??0)),Ht=I!==void 0&&((St=I.symbol)==null?void 0:St.ticker)===j.ticker&&((((ye=I.symbol)==null?void 0:ye.pricePrecision)??2)!==(j.pricePrecision??2)||(((et=I.symbol)==null?void 0:et.volumePrecision)??0)!==(j.volumePrecision??0));return I!==void 0&&((Ue=I.symbol)==null?void 0:Ue.ticker)!==j.ticker&&Ci(null),ke&&(ge==null||ge.setPeriod(xe),it()),ke&&!$t||(ge==null||ge.setSymbol({...j,pricePrecision:j.pricePrecision??2,volumePrecision:j.volumePrecision??0}),it(),Ht&&(ge==null||ge.resize())),on(),{symbol:j,period:xe}}),Tt(()=>{const I=re();if(!I)return;const j=a();I.setStyles(j);const xe=j==="dark"?"#929AA5":"#76808F";Ae!==xe&&(Ae=xe,I.setStyles(Kb(xe)))}),Tt(()=>{var I;(I=re())==null||I.setLocale(l())}),Tt(()=>{var I;(I=re())==null||I.setTimezone(w().key)}),Tt(()=>{const I=re();!I||ce||(X(Jh(I.getStyles())),ce=!0)}),Tt(()=>{const I=re();if(!I)return;const j=X9();!j||De===j||(De=j,I.setStyles(j))}),Tt(()=>{Q(),on()}),Tt(()=>{const I=n;if(!I||!$()&&!P()&&!ee())return;const j=xe=>{xe.preventDefault(),xe.stopPropagation()};I.addEventListener("wheel",j,{passive:!1}),I.addEventListener("touchmove",j,{passive:!1}),Lr(()=>{I.removeEventListener("wheel",j),I.removeEventListener("touchmove",j)})}),[Eb(),Z(Oe,{get when(){return oe()},get children(){return Z(sb,{get locale(){return e.locale},get datafeed(){return e.dataloader},onSymbolSelected:I=>{ho(I)},onClose:()=>{_t(!1)}})}}),Z(Oe,{get when(){return f()},get children(){return Z($v,{get locale(){return e.locale},get mainIndicators(){return g()},get subIndicators(){return y()},onClose:()=>{d(!1)},get onMainIndicatorChange(){return mt.onMainIndicatorChange},get onSubIndicatorChange(){return mt.onSubIndicatorChange}})}}),Z(Oe,{get when(){return k()},get children(){return Z(Av,{get locale(){return e.locale},get timezone(){return w()},onClose:()=>{v(!1)},onConfirm:L})}}),Z(Oe,{get when(){return P()},get children(){return Z(kb,{get alerts(){return Q()},onClose:()=>{D(!1)},get onAddAlert(){return e.onAddAlert},onRemoveAlert:Nn})}}),Z(Oe,{get when(){return ee()},children:I=>Z(kn,{title:"预警详情",width:400,height:260,onClose:()=>{Pe(null)},get children(){var j=Rb();return W(j,Z(L5,{get alert(){return I()}})),j}})}),Z(Oe,{get when(){return $()},get children(){return Z(jv,{get locale(){return e.locale},get currentStyles(){return ue.utils.clone(re().getStyles())},onClose:()=>{T(!1)},onChange:I=>{var j;(j=re())==null||j.setStyles(I)},onRestoreDefault:I=>{var xe;const j={};I.forEach(ge=>{const ke=ge.key;g1(j,ke,ue.utils.formatValue(U(),ke))}),(xe=re())==null||xe.setStyles(j)}})}}),Z(Oe,{get when(){return Y().length>0},get children(){return Z(Xv,{get locale(){return e.locale},get url(){return Y()},onClose:()=>{E("")}})}}),Z(Oe,{get when(){return st().visible},get children(){return Z(nb,{get locale(){return e.locale},get params(){return st()},onClose:()=>{Xe($5)},get onConfirm(){return mt.onIndicatorSettingConfirm}})}}),Z(Oe,{get when(){return je(()=>!!wt())()&&!!nt()},get children(){return Z(Ty,{get order(){return nt()},get formattedTime(){return w6(nt().timestamp,e.locale,w().key)},get anchorX(){return Ve().x},get anchorY(){return Ve().y},get clipElement(){return n==null?void 0:n.closest(".klinecharts-pro")}})}}),Z(Yy,{get locale(){return e.locale},get symbol(){return _1()},get spread(){return z()},get period(){return v1()},get periods(){return e.periods},onMenuClick:async()=>{var I;try{await fc(()=>V(!z())),(I=re())==null||I.resize()}catch{}},onSymbolClick:()=>{_t(!oe())},onPeriodChange:go,onIndicatorClick:()=>{d(I=>!I)},onTimezoneClick:()=>{v(I=>!I)},onAlertClick:()=>{D(!0)},onSettingClick:()=>{T(I=>!I)},onScreenshotClick:()=>{if(re()){const I=re().getConvertPictureUrl(!0,"jpeg",e.theme==="dark"?"#151517":"#ffffff");E(I)}}}),(()=>{var I=Db(),j=I.firstChild;W(I,Z(Oe,{get when(){return Ry()},get children(){return Z(r9,{})}}),j),W(I,Z(Oe,{get when(){return z()},get children(){return Z(wv,{get locale(){return e.locale},onDrawingItemClick:ge=>{Bb(ge,"candle_pane")},onModeChange:ge=>{var ke;(ke=re())==null||ke.overrideOverlay({groupId:"drawing_tools",mode:ge})},onLockChange:ge=>{var ke;(ke=re())==null||ke.overrideOverlay({groupId:"drawing_tools",lock:ge})},onVisibleChange:ge=>{var ke;(ke=re())==null||ke.overrideOverlay({groupId:"drawing_tools",visible:ge})},onRemoveClick:ge=>{var ke;(ke=re())==null||ke.removeOverlay({groupId:ge})}})}}),j);var xe=n;return typeof xe=="function"?X1(xe,j):n=j,Te(ge=>{var ke=e.overrides.backgroundType??"solid",$t=z();return ke!==ge.e&&ft(j,"data-pane-style",ge.e=ke),$t!==ge.t&&ft(j,"data-drawing-bar-visible",ge.t=$t),ge},{e:void 0,t:void 0}),I})()]};class Zb{constructor(n){wn(this,"_datafeed");wn(this,"_loading");this._datafeed=n,this._loading=!1}async getBars(n){const{type:i,timestamp:a,symbol:s,period:l,callback:c}=n,f=l;if(i==="backward"||i==="update"){c([],!1);return}this._loading=!0,q9(!0);const d=a??new Date().getTime();await(async()=>{const[_,y]=this.adjustFromTo(f,d,500),b=await this._datafeed.getHistoryKLineData(s,f,_,y);c(b,b.length>0),this._loading=!1,q9(!1)})()}subscribeBar(n){const{symbol:i,period:a,callback:s}=n;this._datafeed.subscribe(i,a,s)}unsubscribeBar(n){const{symbol:i,period:a}=n;this._datafeed.unsubscribe(i,a)}searchSymbols(n){return this._datafeed.searchSymbols(n)}get loading(){return this._loading}set loading(n){this._loading=n}adjustFromTo(n,i,a){let s=i,l=s;switch(n.type){case"minute":s-=s%(60*1e3),l=s-a*n.span*60*1e3;break;case"hour":s-=s%(60*60*1e3),l=s-a*n.span*60*60*1e3;break;case"day":s-=s%(24*60*60*1e3),l=s-a*n.span*24*60*60*1e3;break;case"week":{const c=new Date(s),f=c.getDay()||7;c.setHours(0,0,0,0),s=c.getTime()-(f-1)*24*60*60*1e3,l=s-a*n.span*7*24*60*60*1e3;break}case"month":{const c=new Date(s);s=new Date(c.getFullYear(),c.getMonth(),1).getTime();const f=new Date(s-a*n.span*30*24*60*60*1e3);l=new Date(f.getFullYear(),f.getMonth(),1).getTime();break}case"year":{const c=new Date(s);s=new Date(c.getFullYear(),0,1).getTime();const f=new Date(s-a*n.span*365*24*60*60*1e3);l=new Date(f.getFullYear(),0,1).getTime();break}}return[l,s]}}var Hb=N('<svg class=logo viewBox="0 0 80 92"><path d=M28.148808359375,51.7280513671875L22.963588359375,51.7280513671875C21.572648359375002,51.7280513671875,20.445068359375,52.6220613671875,20.445068359375,53.7248813671875L20.445068359375,72.3979013671875C20.445068359375,73.5007013671875,21.572648359375002,74.39470136718751,22.963588359375,74.39470136718751L33.926568359375,74.39470136718751C35.317468359375,74.39470136718751,36.445068359375,73.5007013671875,36.445068359375,72.3979013671875L36.445068359375,53.7248813671875C36.445068359375,52.6220613671875,35.317468359375,51.7280513671875,33.926568359375,51.7280513671875L28.741398359374998,51.7280513671875L28.741398359374998,46.2963223671875C28.741398359374998,46.1665793671875,28.608748359375,46.0614013671875,28.445108359375,46.0614013671875C28.281468359375,46.0614013671875,28.148808359375,46.1665793671875,28.148808359375,46.2963223671875L28.148808359375,51.7280513671875ZM28.741398359374998,74.3948013671875L28.741398359374998,79.82650136718749C28.741398359374998,79.9563013671875,28.608748359375,80.0614013671875,28.445108359375,80.0614013671875C28.281468359375,80.0614013671875,28.148808359375,79.9563013671875,28.148808359375,79.82650136718749L28.148808359375,74.3948013671875L28.741398359374998,74.3948013671875Z></path><path d=M51.148808359374996,44.7280513671875L45.963588359375,44.7280513671875C44.572648359375,44.7280513671875,43.445068359375,45.6220613671875,43.445068359375,46.7248813671875L43.445068359375,65.3979013671875C43.445068359375,66.5007013671875,44.572648359375,67.39470136718751,45.963588359375,67.39470136718751L56.926568359375,67.39470136718751C58.317468359375,67.39470136718751,59.445068359375,66.5007013671875,59.445068359375,65.3979013671875L59.445068359375,46.7248813671875C59.445068359375,45.6220613671875,58.317468359375,44.7280513671875,56.926568359375,44.7280513671875L51.741398359375,44.7280513671875L51.741398359375,39.2963223671875C51.741398359375,39.1665793671875,51.608748359375,39.0614013671875,51.445108359375,39.0614013671875C51.281468359375,39.0614013671875,51.148808359374996,39.1665793671875,51.148808359374996,39.2963223671875L51.148808359374996,44.7280513671875ZM51.741398359375,67.3948013671875L51.741398359375,72.82650136718749C51.741398359375,72.9563013671875,51.608748359375,73.0614013671875,51.445108359375,73.0614013671875C51.281468359375,73.0614013671875,51.148808359374996,72.9563013671875,51.148808359374996,72.82650136718749L51.148808359374996,67.3948013671875L51.741398359375,67.3948013671875Z></path><path d=M17.7274,90.6541C17.5901,90.6541,17.4517,90.6436,17.3121,90.6225C9.93219,89.5095,4.80718,86.7136,2.07787,82.3084C-1.1223,77.1437,0.241766,71.6314,0.56829,70.5137C5.37624,46.647,15.0785,38.4945,21.5025,33.0957C22.9683,31.8633,24.2342,30.7995,25.1676,29.7672C25.4105,29.4984,25.6051,29.2154,25.7556,28.9202C24.7465,29.2231,24.1971,29.4326,24.1703,29.4429C22.908,29.9368,21.4777,29.3247,20.9761,28.076C20.4756,26.8272,21.0897,25.4146,22.352,24.9172C22.5042,24.8571,23.5312,24.4607,25.3073,23.9616C24.087,21.4425,21.7693,18.7949,19.7125,16.6431L19.2819,16.1902C16.2438,12.9776,14.6017,4.80159,14.3036,3.19471C14.1306,2.26212,14.4636,1.30796,15.1814,0.679657C15.8995,0.0512175,16.8976,-0.159672,17.8125,0.123747C22.7731,1.66274,24.2638,1.81255,27.2321,2.11098C28.7357,2.26195,29.83,3.59029,29.6762,5.07662C29.5236,6.56295,28.182,7.64786,26.6784,7.49454C24.4992,7.27569,22.9517,7.09896,20.724,6.56646C21.4493,9.09088,22.3803,11.5427,23.2771,12.4919L23.6876,12.9237C25.3757,14.69,28.9691,18.45,30.7016,22.7299C35.0392,21.9433,40.8791,21.3359,47.7817,21.7249C48.2004,20.7386,48.8054,19.7953,49.5907,18.9135C49.7137,18.7754,49.8498,18.6502,49.9988,18.539C53.6142,15.8508,57.5491,12.857,59.7803,11.0758C58.1028,11.2502,56.1034,11.0278,53.9124,9.70882C53.2439,9.30622,52.5992,8.89427,51.9662,8.48933C48.4668,6.25164,46.497,5.12109,43.4234,5.94853C41.9647,6.34058,40.4622,5.48975,40.0659,4.04789C39.6695,2.60604,40.5296,1.11853,41.9871,0.726471C47.5602,-0.773825,51.4796,1.73271,54.9364,3.9434L54.9364,3.9434C55.5284,4.32176,56.1318,4.70797,56.7564,5.08482C58.3843,6.06556,59.4858,5.76127,61.2899,5.13865C62.3511,4.77234,63.5567,4.35687,64.8675,4.53476C66.3321,4.73254,67.4406,5.56933,67.9103,6.83096C68.7444,9.07333,67.1035,11.5533,65.5797,13.2374C64.6729,14.2394,60.0845,17.7606,56.4519,20.4957C56.9477,20.3369,57.4767,20.2511,58.026,20.2511C59.4281,20.2511,60.6982,20.8102,61.621,21.7153C65.4948,20.6901,67.87,17.9563,67.9033,17.9175C68.78,16.8888,70.3322,16.7577,71.3721,17.6226C72.412,18.4886,72.5457,20.0253,71.6702,21.054C71.5221,21.2286,69.5063,23.5492,66.0787,25.233C69.5399,26.8822,72.9993,29.682,74.1841,34.4145C74.5106,35.7206,73.7062,37.0407,72.3859,37.3638C72.1871,37.4117,71.9884,37.4351,71.792,37.4351C70.687,37.4351,69.6826,36.6932,69.4046,35.5848C68.4378,31.7217,64.8144,29.7431,61.7619,28.7456C60.8298,29.7349,59.5009,30.3535,58.026,30.3535C55.8642,30.3535,54.0162,29.0245,53.2713,27.1474C53.2022,27.138,53.1331,27.1287,53.0642,27.1195C54.232,29.5936,57.0851,31.9259,58.1868,32.665C58.3157,32.7516,58.4423,32.8523,58.5547,32.9599C66.5865,40.6151,72.4887,48.8133,76.0971,57.3287C76.6815,58.7074,76.0249,60.2932,74.6313,60.8702C74.2976,61.01,73.9388,61.082,73.576,61.082C72.5065,61.082,71.4914,60.4582,71.0525,59.4213C67.7577,51.6455,62.331,44.1074,54.9203,37.0116C53.6073,36.1009,48.0984,31.9917,47.2065,26.583C40.9421,26.2679,35.6187,26.8278,31.6725,27.5336C31.6197,29.527,30.9225,31.5172,29.2456,33.3731C28.0614,34.6827,26.5968,35.915,25.0446,37.2188C21.9414,39.8269,18.2648,42.9169,14.8104,48.1192C11.356,53.3215,8.12389,60.6361,5.9098,71.6934C5.88732,71.8035,5.85893,71.9123,5.82344,72.0188C5.81634,72.041,4.57886,76.0413,6.77344,79.5289C8.6332,82.4828,12.4557,84.4139,18.1367,85.2705C19.6297,85.4953,20.6566,86.8762,20.4295,88.3532C20.2213,89.6944,19.0559,90.6541,17.7274,90.6541ZM35.1195,7.03101C33.3502,7.03101,31.9158,5.61208,31.9158,3.86173C31.9158,2.11139,33.3502,0.69245,35.1195,0.69245C36.8889,0.69245,38.3233,2.11139,38.3233,3.86173C38.3233,5.61208,36.8889,7.03101,35.1195,7.03101ZM57.6848,23.1892L58.414,24.4754C58.8984,24.3623,59.3923,24.3435,59.8644,24.4203C60.2191,24.5005,60.5087,24.7182,60.6663,25.0229C60.8636,25.3394,60.8993,25.7346,60.7646,26.1094C60.5988,26.5176,60.2972,26.8749,59.9085,27.1235L60.31,27.8316L59.7886,28.1294L59.3994,27.443C58.9257,27.7175,58.399,27.883,57.8664,27.9247L57.3744,27.0569C57.6378,27.0741,57.9071,27.048,58.1704,26.9797C58.4501,26.9251,58.7239,26.8323,58.9829,26.7044L58.2801,25.4647C57.8047,25.5877,57.3167,25.6065,56.8549,25.5197C56.4913,25.4263,56.196,25.1971,56.0328,24.8814C55.8433,24.5561,55.8127,24.1572,55.9484,23.7789C56.088,23.373,56.3763,23.0149,56.7584,22.7726L56.4166,22.1699L56.938,21.8721L57.2727,22.4625C57.6615,22.2376,58.0888,22.0901,58.5254,22.0301L59.0042,22.8746C58.5548,22.8828,58.103,22.9906,57.6848,23.1892ZM56.9319,24.2961Q57.1278,24.6417,57.7863,24.5856L57.1695,23.4978Q56.6982,23.884,56.9319,24.2961ZM58.9077,25.3462L59.4981,26.3875L59.499,26.3891Q59.9965,26.0045,59.7628,25.5923Q59.573,25.2576,58.9077,25.3462ZM73.2212,66.5065C73.2212,68.2569,74.6555,69.6758,76.4249,69.6758C78.1943,69.6758,79.6286,68.2569,79.6286,66.5065C79.6286,64.7562,78.1943,63.3372,76.4249,63.3372C74.6555,63.3372,73.2212,64.7562,73.2212,66.5065ZM35.9465,91.8045C35.0734,91.8045,34.2038,91.7987,33.3378,91.7858C31.827,91.7636,30.6203,90.5359,30.6428,89.0402C30.6653,87.5457,31.9158,86.3297,33.4183,86.3742C49.6344,86.6059,65.7512,84.6175,67.6134,84.037C72.1953,82.4184,74.5295,79.3603,74.5295,74.9575C74.5295,73.463,75.754,72.2517,77.2648,72.2517C78.7755,72.2517,80,73.463,80,74.9575C80,81.5992,76.148,86.7686,69.4317,89.142C67.0041,89.9999,51.0955,91.8046,35.9465,91.8045ZM25.2731,92C23.5037,92,22.0693,90.5811,22.0693,88.8307C22.0693,87.0804,23.5037,85.6615,25.2731,85.6615C27.0424,85.6615,28.4768,87.0804,28.4768,88.8307C28.4768,90.5811,27.0424,92,25.2731,92Z>');const Yb=Hb();class Gb{constructor(n){wn(this,"_container");wn(this,"_chartApi",null);if(ue.utils.isString(n.container)){if(this._container=document.getElementById(n.container),!this._container)throw new Error("Container is null")}else this._container=n.container;this._container.classList.add("klinecharts-pro"),this._container.setAttribute("data-theme",n.theme??"light");const i=new Zb(n.datafeed);xc(()=>{const a=this;return Z(Ub,{ref:s=>{a._chartApi=s},get watermark(){return n.watermark??Yb},get theme(){return n.theme??"light"},get locale(){return n.locale??"zh-CN"},get drawingBarVisible(){return n.drawingBarVisible??!0},get symbol(){return n.symbol},get period(){return n.period},get periods(){return n.periods??[{span:1,type:"minute",text:"1m"},{span:5,type:"minute",text:"5m"},{span:15,type:"minute",text:"15m"},{span:1,type:"hour",text:"1H"},{span:2,type:"hour",text:"2H"},{span:4,type:"hour",text:"4H"},{span:1,type:"day",text:"D"},{span:1,type:"week",text:"W"},{span:1,type:"month",text:"M"},{span:1,type:"year",text:"Y"}]},get overrides(){return n.overrides??{}},get timezone(){return n.timezone??"Etc/UTC"},get mainIndicators(){return n.mainIndicators??["MA"]},get subIndicators(){return n.subIndicators??["VOL"]},get dataTimestamp(){return n.dataTimestamp??new Date().getTime()},get alerts(){return n.alerts??[]},get onAddAlert(){return n.onAddAlert??(()=>!0)},get onRemoveAlert(){return n.onRemoveAlert??(()=>!0)},get rootElementId(){var s;return n.rootElementId??((s=a._container)==null?void 0:s.id)??""},dataloader:i})},this._container)}destroy(){this._container&&ue.dispose(this._container),this._container=null,this._chartApi=null}setTheme(n){var i;(i=this._container)==null||i.setAttribute("data-theme",n),this._chartApi.setTheme(n)}getTheme(){return this._chartApi.getTheme()}setStyles(n){this._chartApi.setStyles(n)}getStyles(){return this._chartApi.getStyles()}setLocale(n){this._chartApi.setLocale(n)}getLocale(){return this._chartApi.getLocale()}setTimezone(n){this._chartApi.setTimezone(n)}getTimezone(){return this._chartApi.getTimezone()}setSymbol(n){this._chartApi.setSymbol(n)}getSymbol(){return this._chartApi.getSymbol()}setPeriod(n){this._chartApi.setPeriod(n)}getPeriod(){return this._chartApi.getPeriod()}getInstanceApi(){return re()}resize(){re().resize()}dispose(){this.destroy()}setPositions(n){var i;(i=this._chartApi)==null||i.setPositions(n)}setLiqPrice(n){var i;(i=this._chartApi)==null||i.setLiqPrice(n)}setOpenOrders(n){var i;(i=this._chartApi)==null||i.setOpenOrders(n)}setHisOrders(n){var i;(i=this._chartApi)==null||i.setHisOrders(n)}setAlerts(n){var i;(i=this._chartApi)==null||i.setAlerts(n)}}const dI="";console.log("[@wangliang139/klinecharts-pro] v0.2.22"),tc.forEach(e=>{ue.registerOverlay(e)}),Mt.DefaultDatafeed=nc,Mt.KLineChartPro=Gb,Mt.loadLocales=Oy,Object.defineProperty(Mt,Symbol.toStringTag,{value:"Module"})});
39
+ */const x9=.027,Qm=5e-4,jm=.1,w9=1.14,pi=.022,L9=1.414,qm=(e,n)=>{e=new Z(e),n=new Z(n),e.alpha()<1&&(e=Kr(n,e,e.alpha(),"rgb"));const i=$9(...e.rgb()),o=$9(...n.rgb()),s=i>=pi?i:i+Math.pow(pi-i,L9),l=o>=pi?o:o+Math.pow(pi-o,L9),c=Math.pow(l,.56)-Math.pow(s,.57),f=Math.pow(l,.65)-Math.pow(s,.62),d=Math.abs(l-s)<Qm?0:s<l?c*w9:f*w9;return(Math.abs(d)<jm?0:d>0?d-x9:d+x9)*100};function $9(e,n,i){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(n/255,2.4)+.072175*Math.pow(i/255,2.4)}const{sqrt:Hn,pow:dt,min:Xm,max:Jm,atan2:S9,abs:k9,cos:mi,sin:A9,exp:ey,PI:M9}=Math;function ty(e,n,i=1,o=1,s=1){var l=function(nt){return 360*nt/(2*M9)},c=function(nt){return 2*M9*nt/360};e=new Z(e),n=new Z(n);const[f,d,g]=Array.from(e.lab()),[_,y,v]=Array.from(n.lab()),k=(f+_)/2,b=Hn(dt(d,2)+dt(g,2)),C=Hn(dt(y,2)+dt(v,2)),L=(b+C)/2,$=.5*(1-Hn(dt(L,7)/(dt(L,7)+dt(25,7)))),T=d*(1+$),O=y*(1+$),E=Hn(dt(T,2)+dt(g,2)),U=Hn(dt(O,2)+dt(v,2)),X=(E+U)/2,Y=l(S9(g,T)),I=l(S9(v,O)),z=Y>=0?Y:Y+360,Q=I>=0?I:I+360,j=k9(z-Q)>180?(z+Q+360)/2:(z+Q)/2,te=1-.17*mi(c(j-30))+.24*mi(c(2*j))+.32*mi(c(3*j+6))-.2*mi(c(4*j-63));let ee=Q-z;ee=k9(ee)<=180?ee:Q<=z?ee+360:ee-360,ee=2*Hn(E*U)*A9(c(ee)/2);const Oe=_-f,oe=U-E,bt=1+.015*dt(k-50,2)/Hn(20+dt(k-50,2)),St=1+.045*X,it=1+.015*X*te,tt=30*ey(-dt((j-275)/25,2)),Qe=-(2*Hn(dt(X,7)/(dt(X,7)+dt(25,7))))*A9(2*c(tt)),ze=Hn(dt(Oe/(i*bt),2)+dt(oe/(o*St),2)+dt(ee/(s*it),2)+Qe*(oe/(o*St))*(ee/(s*it)));return Jm(0,Xm(100,ze))}function ny(e,n,i="lab"){e=new Z(e),n=new Z(n);const o=e.get(i),s=n.get(i);let l=0;for(let c in o){const f=(o[c]||0)-(s[c]||0);l+=f*f}return Math.sqrt(l)}const ry=(...e)=>{try{return new Z(...e),!0}catch{return!1}},iy={cool(){return gi([ge.hsl(180,1,.9),ge.hsl(250,.7,.4)])},hot(){return gi(["#000","#f00","#ff0","#fff"]).mode("rgb")}},ao={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},T9=Object.keys(ao),P9=new Map(T9.map(e=>[e.toLowerCase(),e])),oy=typeof Proxy=="function"?new Proxy(ao,{get(e,n){const i=n.toLowerCase();if(P9.has(i))return e[P9.get(i)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(T9)}}):ao,ay=(...e)=>{e=_e(e,"cmyk");const[n,i,o,s]=e,l=e.length>4?e[4]:1;return s===1?[0,0,0,l]:[n>=1?0:255*(1-n)*(1-s),i>=1?0:255*(1-i)*(1-s),o>=1?0:255*(1-o)*(1-s),l]},{max:O9}=Math,sy=(...e)=>{let[n,i,o]=_e(e,"rgb");n=n/255,i=i/255,o=o/255;const s=1-O9(n,O9(i,o)),l=s<1?1/(1-s):0,c=(1-n-s)*l,f=(1-i-s)*l,d=(1-o-s)*l;return[c,f,d,s]};Z.prototype.cmyk=function(){return sy(this._rgb)},Object.assign(ge,{cmyk:(...e)=>new Z(...e,"cmyk")}),pe.format.cmyk=ay,pe.autodetect.push({p:2,test:(...e)=>{if(e=_e(e,"cmyk"),we(e)==="array"&&e.length===4)return"cmyk"}});const ly=(...e)=>{const n=_e(e,"hsla");let i=zr(e)||"lsa";return n[0]=en(n[0]||0)+"deg",n[1]=en(n[1]*100)+"%",n[2]=en(n[2]*100)+"%",i==="hsla"||n.length>3&&n[3]<1?(n[3]="/ "+(n.length>3?n[3]:1),i="hsla"):n.length=3,`${i.substr(0,3)}(${n.join(" ")})`},cy=(...e)=>{const n=_e(e,"lab");let i=zr(e)||"lab";return n[0]=en(n[0])+"%",n[1]=en(n[1]),n[2]=en(n[2]),i==="laba"||n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`lab(${n.join(" ")})`},uy=(...e)=>{const n=_e(e,"lch");let i=zr(e)||"lab";return n[0]=en(n[0])+"%",n[1]=en(n[1]),n[2]=isNaN(n[2])?"none":en(n[2])+"deg",i==="lcha"||n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`lch(${n.join(" ")})`},fy=(...e)=>{const n=_e(e,"lab");return n[0]=en(n[0]*100)+"%",n[1]=U0(n[1]),n[2]=U0(n[2]),n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`oklab(${n.join(" ")})`},I9=(...e)=>{const[n,i,o,...s]=_e(e,"rgb"),[l,c,f]=no(n,i,o),[d,g,_]=h9(l,c,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]},dy=(...e)=>{const n=_e(e,"lch");return n[0]=en(n[0]*100)+"%",n[1]=U0(n[1]),n[2]=isNaN(n[2])?"none":en(n[2])+"deg",n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`oklch(${n.join(" ")})`},{round:so}=Math,hy=(...e)=>{const n=_e(e,"rgba");let i=zr(e)||"rgb";if(i.substr(0,3)==="hsl")return ly(p9(n),i);if(i.substr(0,3)==="lab"){const o=_1();Kn("d50");const s=cy(V0(n),i);return Kn(o),s}if(i.substr(0,3)==="lch"){const o=_1();Kn("d50");const s=uy(X0(n),i);return Kn(o),s}return i.substr(0,5)==="oklab"?fy(no(n)):i.substr(0,5)==="oklch"?dy(I9(n)):(n[0]=so(n[0]),n[1]=so(n[1]),n[2]=so(n[2]),(i==="rgba"||n.length>3&&n[3]<1)&&(n[3]="/ "+(n.length>3?n[3]:1),i="rgba"),`${i.substr(0,3)}(${n.slice(0,i==="rgb"?3:4).join(" ")})`)},E9=(...e)=>{e=_e(e,"lch");const[n,i,o,...s]=e,[l,c,f]=d9(n,i,o),[d,g,_]=to(l,c,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]},Wn=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,vn=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,yi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,tn=/\s*/.source,Zr=/\s+/.source,lo=/\s*,\s*/.source,_i=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,Yr=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,D9=new RegExp("^rgba?\\("+tn+[Wn,Wn,Wn].join(Zr)+Yr+"\\)$"),R9=new RegExp("^rgb\\("+tn+[Wn,Wn,Wn].join(lo)+tn+"\\)$"),B9=new RegExp("^rgba\\("+tn+[Wn,Wn,Wn,vn].join(lo)+tn+"\\)$"),F9=new RegExp("^hsla?\\("+tn+[_i,yi,yi].join(Zr)+Yr+"\\)$"),z9=new RegExp("^hsl?\\("+tn+[_i,yi,yi].join(lo)+tn+"\\)$"),N9=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,K9=new RegExp("^lab\\("+tn+[vn,vn,vn].join(Zr)+Yr+"\\)$"),H9=new RegExp("^lch\\("+tn+[vn,vn,_i].join(Zr)+Yr+"\\)$"),W9=new RegExp("^oklab\\("+tn+[vn,vn,vn].join(Zr)+Yr+"\\)$"),U9=new RegExp("^oklch\\("+tn+[vn,vn,_i].join(Zr)+Yr+"\\)$"),{round:Z9}=Math,Gr=e=>e.map((n,i)=>i<=2?gr(Z9(n),0,255):n),ht=(e,n=0,i=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=n+(e+1)*.5*(i-n):e=n+e*(i-n)),+e),It=(e,n)=>e==="none"?n:e,co=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let n;if(pe.format.named)try{return pe.format.named(e)}catch{}if((n=e.match(D9))||(n=e.match(R9))){let i=n.slice(1,4);for(let s=0;s<3;s++)i[s]=+ht(It(i[s],0),0,255);i=Gr(i);const o=n[4]!==void 0?+ht(n[4],0,1):1;return i[3]=o,i}if(n=e.match(B9)){const i=n.slice(1,5);for(let o=0;o<4;o++)i[o]=+ht(i[o],0,255);return i}if((n=e.match(F9))||(n=e.match(z9))){const i=n.slice(1,4);i[0]=+It(i[0].replace("deg",""),0),i[1]=+ht(It(i[1],0),0,100)*.01,i[2]=+ht(It(i[2],0),0,100)*.01;const o=Gr(eo(i)),s=n[4]!==void 0?+ht(n[4],0,1):1;return o[3]=s,o}if(n=e.match(N9)){const i=n.slice(1,4);i[1]*=.01,i[2]*=.01;const o=eo(i);for(let s=0;s<3;s++)o[s]=Z9(o[s]);return o[3]=+n[4],o}if(n=e.match(K9)){const i=n.slice(1,4);i[0]=ht(It(i[0],0),0,100),i[1]=ht(It(i[1],0),-125,125,!0),i[2]=ht(It(i[2],0),-125,125,!0);const o=_1();Kn("d50");const s=Gr(Y0(i));Kn(o);const l=n[4]!==void 0?+ht(n[4],0,1):1;return s[3]=l,s}if(n=e.match(H9)){const i=n.slice(1,4);i[0]=ht(i[0],0,100),i[1]=ht(It(i[1],0),0,150,!1),i[2]=+It(i[2].replace("deg",""),0);const o=_1();Kn("d50");const s=Gr(q0(i));Kn(o);const l=n[4]!==void 0?+ht(n[4],0,1):1;return s[3]=l,s}if(n=e.match(W9)){const i=n.slice(1,4);i[0]=ht(It(i[0],0),0,1),i[1]=ht(It(i[1],0),-.4,.4,!0),i[2]=ht(It(i[2],0),-.4,.4,!0);const o=Gr(to(i)),s=n[4]!==void 0?+ht(n[4],0,1):1;return o[3]=s,o}if(n=e.match(U9)){const i=n.slice(1,4);i[0]=ht(It(i[0],0),0,1),i[1]=ht(It(i[1],0),0,.4,!1),i[2]=+It(i[2].replace("deg",""),0);const o=Gr(E9(i)),s=n[4]!==void 0?+ht(n[4],0,1):1;return o[3]=s,o}};co.test=e=>D9.test(e)||F9.test(e)||K9.test(e)||H9.test(e)||W9.test(e)||U9.test(e)||R9.test(e)||B9.test(e)||z9.test(e)||N9.test(e)||e==="transparent",Z.prototype.css=function(e){return hy(this._rgb,e)};const gy=(...e)=>new Z(...e,"css");ge.css=gy,pe.format.css=co,pe.autodetect.push({p:5,test:(e,...n)=>{if(!n.length&&we(e)==="string"&&co.test(e))return"css"}}),pe.format.gl=(...e)=>{const n=_e(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n};const py=(...e)=>new Z(...e,"gl");ge.gl=py,Z.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},Z.prototype.hex=function(e){return c9(this._rgb,e)};const my=(...e)=>new Z(...e,"hex");ge.hex=my,pe.format.hex=l9,pe.autodetect.push({p:4,test:(e,...n)=>{if(!n.length&&we(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:vi}=Math,Y9=e=>{const n=e/100;let i,o,s;return n<66?(i=255,o=n<6?0:-155.25485562709179-.44596950469579133*(o=n-2)+104.49216199393888*vi(o),s=n<20?0:-254.76935184120902+.8274096064007395*(s=n-10)+115.67994401066147*vi(s)):(i=351.97690566805693+.114206453784165*(i=n-55)-40.25366309332127*vi(i),o=325.4494125711974+.07943456536662342*(o=n-50)-28.0852963507957*vi(o),s=255),[i,o,s,1]},{round:yy}=Math,_y=(...e)=>{const n=_e(e,"rgb"),i=n[0],o=n[2];let s=1e3,l=4e4;const c=.4;let f;for(;l-s>c;){f=(l+s)*.5;const d=Y9(f);d[2]/d[0]>=o/i?l=f:s=f}return yy(f)};Z.prototype.temp=Z.prototype.kelvin=Z.prototype.temperature=function(){return _y(this._rgb)};const uo=(...e)=>new Z(...e,"temp");Object.assign(ge,{temp:uo,kelvin:uo,temperature:uo}),pe.format.temp=pe.format.kelvin=pe.format.temperature=Y9,Z.prototype.oklch=function(){return I9(this._rgb)},Object.assign(ge,{oklch:(...e)=>new Z(...e,"oklch")}),pe.format.oklch=E9,pe.autodetect.push({p:2,test:(...e)=>{if(e=_e(e,"oklch"),we(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(ge,{analyze:b9,average:xm,bezier:Am,blend:_n,brewer:oy,Color:Z,colors:Nr,contrast:Vm,contrastAPCA:qm,cubehelix:Nm,deltaE:ty,distance:ny,input:pe,interpolate:Kr,limits:C9,mix:Kr,random:Um,scale:gi,scales:iy,valid:ry});var vy=N("<div tabindex=0><div class=selector-container><i class=arrow></i></div><div class=drop-down-container style=left:50%;top:20%><div class=split_line></div><div class=range_div><input class=range type=range min=1 max=100><p>%</p></div><div class=split_line></div><div class=submit><span class=cancel>Cancel</span><span>Ok"),by=N("<div class=klinecharts-pro-color-backdrop aria-hidden=true>"),Cy=N("<div class=each_line>"),xy=N("<div>"),wy=N("<div class=each_line style=display:flex;align-items:center;gap:8px><div style=width:24px;height:24px;border-radius:4px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.04);cursor:pointer><span style=font-size:18px;line-height:1;color:var(--klinecharts-pro-text-color,#fff)>+"),Ly=N('<div style=display:flex;flex-direction:column;gap:8px;padding:6px;width:260px><div style=display:flex;gap:8px;align-items:center><div></div><input style="flex:1;padding:6px;border-radius:4px;border:1px solid rgba(255,255,255,0.08);background:transparent;color:inherit"></div><div style="width:220px;height:140px;border-radius:6px;position:relative;touch-action:none;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.2)"><div style=position:absolute;inset:0;borderRadius:6px></div><div style="position:absolute;inset:0;borderRadius:6px;background:linear-gradient(to top, #ffffff, rgba(255,255,255,0));mixBlendMode:overlay;opacity:0.6"></div><div style="position:absolute;inset:0;borderRadius:6px;background:linear-gradient(to bottom, rgba(0,0,0,0), #000);opacity:0.6"></div><div style="position:absolute;transform:translate(-50%,-50%);width:12px;height:12px;borderRadius:50%;boxShadow:0 0 0 2px rgba(255,255,255,0.9);border:1px solid rgba(0,0,0,0.6)"></div></div><div style=display:flex;align-items:center;gap:8px><input type=range min=0 max=360 style="flex:1;height:10px;background:linear-gradient(90deg, red 0%, yellow 17%, lime 33%, cyan 50%, blue 67%, magenta 83%, red 100%);border-radius:6px;padding:0"><span style=width:38px;text-align:center></span></div><div style=display:flex;gap:8px;justify-content:flex-end><button class=cancel>Cancel</button><button class=ok>Add');const $y=e=>{const n=String(e.value).includes("rgba")?ge(String(e.value)).alpha()*100:100,[i,o]=G(!1),[s,l]=G(n),[c,f]=G(e.value),[d,g]=G(e.value),[_,y]=G(!1),[v,k]=G(!1),[b,C]=G(e.value??"#000000"),[L,$]=G(0),[T,O]=G(1),[E,U]=G(.5),[X,Y]=G(!1),I=[["rgb(255, 255, 255)","rgb(219, 219, 219)","rgb(184, 184, 184)","rgb(156, 156, 156)","rgb(128, 128, 128)","rgb(99, 99, 99)","rgb(74, 74, 74)","rgb(46, 46, 46)","rgb(15, 15, 15)","rgb(0, 0, 0)"],["rgb(242, 54, 69)","rgb(255, 152, 0)","rgb(255, 235, 59)","rgb(76, 175, 80)","rgb(8, 153, 129)","rgb(0, 188, 212)","rgb(41, 98, 255)","rgb(103, 58, 183)","rgb(156, 39, 176)","rgb(233, 30, 99)"],["rgb(252, 203, 205)","rgb(255, 224, 178)","rgb(255, 249, 196)","rgb(200, 230, 201)","rgb(172, 229, 220)","rgb(178, 235, 242)","rgb(187, 217, 251)","rgb(209, 196, 233)","rgb(225, 190, 231)","rgb(248, 187, 208)"],["rgb(250, 161, 164)","rgb(255, 204, 128)","rgb(255, 245, 157)","rgb(165, 214, 167)","rgb(112, 204, 189)","rgb(128, 222, 234)","rgb(144, 191, 249)","rgb(179, 157, 219)","rgb(206, 147, 216)","rgb(244, 143, 177)"],["rgb(247, 124, 128)","rgb(255, 183, 77)","rgb(255, 241, 118)","rgb(129, 199, 132)","rgb(66, 189, 168)","rgb(77, 208, 225)","rgb(91, 156, 246)","rgb(149, 117, 205)","rgb(186, 104, 200)","rgb(240, 98, 146)"],["rgb(247, 82, 95)","rgb(255, 167, 38)","rgb(255, 238, 88)","rgb(102, 187, 106)","rgb(34, 171, 148)","rgb(38, 198, 218)","rgb(49, 121, 245)","rgb(126, 87, 194)","rgb(171, 71, 188)","rgb(236, 64, 122)"],["rgb(178, 40, 51)","rgb(245, 124, 0)","rgb(251, 192, 45)","rgb(56, 142, 60)","rgb(5, 102, 86)","rgb(0, 151, 167)","rgb(24, 72, 204)","rgb(81, 45, 168)","rgb(123, 31, 162)","rgb(194, 24, 91)"],["rgb(128, 25, 34)","rgb(230, 81, 0)","rgb(245, 127, 23)","rgb(27, 94, 32)","rgb(0, 51, 42)","rgb(0, 96, 100)","rgb(12, 50, 153)","rgb(49, 27, 146)","rgb(74, 20, 140)","rgb(136, 14, 79)"]],z=ie=>{try{return ge(ie).hex()}catch{return String(ie||"#000000")}},Q=ie=>{const Me=z(ie),[ue,Ee,ot]=ge(Me).hsl();$(Number.isFinite(ue)?Math.round(ue):0),O(Number.isFinite(Ee)?Ee:1),U(Number.isFinite(ot)?ot:.5),C(Me)},j=()=>{o(!1),k(!1)},te=()=>{var ie;f(e.value),g(e.value),(ie=e.onChange)==null||ie.call(e,e.value),j()},ee=ie=>{var Ee;f(ie);const Me=s()/100,ue=ge(ie).alpha(Me).css();g(ue),(e.reactiveChange??!0)&&((Ee=e.onChange)==null||Ee.call(e,ue))},Oe=()=>{var ue;const ie=s()/100,Me=ge(c()).alpha(ie).css();g(Me),(e.reactiveChange??!0)&&((ue=e.onChange)==null||ue.call(e,Me))},oe=ie=>{l(ie.target.value),Oe()},bt=()=>{const ie=c()??e.value??"#000000";Q(String(ie)),k(!0),o(!0)},St=ie=>{$(ie);const Me=ge.hsl(ie,T(),E()).hex();C(Me)},it=ie=>{let Me=ie.trim();Me.startsWith("#")||(Me="#"+Me);try{const ue=ge(Me).hex(),[Ee,ot,Je]=ge(ue).hsl();$(Number.isFinite(Ee)?Math.round(Ee):L()),O(Number.isFinite(ot)?ot:T()),U(Number.isFinite(Je)?Je:E()),C(ue)}catch{C(ie)}},tt=ie=>{var Me,ue;(ue=(Me=ie.target).setPointerCapture)==null||ue.call(Me,ie.pointerId),Y(!0),ze(ie)},ke=ie=>{X()&&ze(ie)},Qe=ie=>{var Me,ue;try{(ue=(Me=ie.target).releasePointerCapture)==null||ue.call(Me,ie.pointerId)}catch{}Y(!1)},ze=ie=>{const ue=ie.currentTarget.getBoundingClientRect(),Ee=Math.min(Math.max(0,ie.clientX-ue.left),ue.width),ot=Math.min(Math.max(0,ie.clientY-ue.top),ue.height),Je=ue.width?Ee/ue.width:0,Et=ue.height?1-ot/ue.height:.5;O(Je),U(Et);const rn=ge.hsl(L(),Je,Et).hex();C(rn)},nt=()=>{try{const ie=z(b());I[0].unshift(ie),ee(ie),k(!1)}catch{}};return[qe(()=>qe(()=>!!i())()&&(()=>{var ie=by();return ie.$$click=()=>{te()},ie})()),(()=>{var ie=vy(),Me=ie.firstChild,ue=Me.nextSibling,Ee=ue.firstChild,ot=Ee.nextSibling,Je=ot.firstChild,Et=Je.nextSibling,rn=Et.firstChild,Un=ot.nextSibling,bn=Un.nextSibling,Cn=bn.firstChild,kt=Cn.nextSibling;return Me.$$click=Be=>{o(!0)},K(ue,(()=>{var Be=qe(()=>!v());return()=>Be()&&I.map(At=>(()=>{var Ye=Cy();return K(Ye,()=>At.map(_t=>(()=>{var on=xy();return on.$$click=at=>{at.preventDefault(),ee(_t)},Te(at=>{var gt=`each_color ${_t==c()?"selected":""}`,an=`background-color: ${_t}`;return gt!==at.e&&Wt(on,at.e=gt),at.t=Xe(on,an,at.t),at},{e:void 0,t:void 0}),on})())),Ye})())})(),Ee),K(ue,(()=>{var Be=qe(()=>!v());return()=>Be()&&(()=>{var At=wy(),Ye=At.firstChild;return Ye.$$click=_t=>{_t.stopPropagation(),bt()},At})()})(),Ee),K(ue,(()=>{var Be=qe(()=>!!v());return()=>Be()&&(()=>{var At=Ly(),Ye=At.firstChild,_t=Ye.firstChild,on=_t.nextSibling,at=Ye.nextSibling,gt=at.firstChild,an=gt.nextSibling,D=an.nextSibling,V=D.nextSibling,me=at.nextSibling,ce=me.firstChild,$e=ce.nextSibling,We=me.nextSibling,sn=We.firstChild,ln=sn.nextSibling;return on.$$input=ve=>it(ve.currentTarget.value),at.$$pointerup=ve=>Qe(ve),at.$$pointermove=ve=>ke(ve),at.$$pointerdown=ve=>tt(ve),ce.$$input=ve=>St(Number(ve.currentTarget.value)),K($e,L),sn.$$click=()=>k(!1),ln.$$click=nt,Te(ve=>{var pt=`width:40px;height:40px;border-radius:4px;border:1px solid rgba(255,255,255,0.08);background:${b()}`,Ct=`linear-gradient(to right, hsl(${L()}, 0%, 50%), hsl(${L()}, 100%, 50%))`,Ut=`${Math.round(T()*100)}%`,de=`${Math.round((1-E())*100)}%`,st=b();return ve.e=Xe(_t,pt,ve.e),Ct!==ve.t&&Ar(gt,"background",ve.t=Ct),Ut!==ve.a&&Ar(V,"left",ve.a=Ut),de!==ve.o&&Ar(V,"top",ve.o=de),st!==ve.i&&Ar(V,"background",ve.i=st),ve},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Te(()=>on.value=b()),Te(()=>ce.value=L()),At})()})(),Ee),Je.addEventListener("blur",()=>{y(!1)}),Je.addEventListener("focus",()=>{y(!0)}),Je.$$input=Be=>{Be.preventDefault,oe(Be)},K(Et,s,rn),Cn.$$click=te,kt.$$click=()=>{var Be;e.reactiveChange===!1&&((Be=e.onChange)==null||Be.call(e,d())),j()},Te(Be=>{var At=`width: 120px; background-color: ${d()}`,Ye=`klinecharts-pro-color ${e.class??""} ${i()?"klinecharts-pro-color-show":""}`,_t=`background-color: ${d()}; border: 1px solid ${c()}`;return Be.e=Xe(ie,At,Be.e),Ye!==Be.t&&Wt(ie,Be.t=Ye),Be.a=Xe(Je,_t,Be.a),Be},{e:void 0,t:void 0,a:void 0}),Te(()=>Je.value=s()),ie})()]};Ft(["click","input","pointerdown","pointermove","pointerup"]);var Sy=N("<div><div></div><div><strong>订单ID:</strong><span></span></div><div><strong>价格:</strong><span></span></div><div><strong>数量:</strong><span></span></div><div><strong>手续费:</strong><span></span></div><div><strong>已实现盈亏:</strong><span></span></div><div><strong>成交时间:</strong><span>");const Vr={display:"flex","justify-content":"space-between",gap:"8px"},Qr={"text-align":"right"},ky=20;function Ay(e,n,i,o,s,l,c,f,d){const g=s+d,_=l+d,y=c-d,v=f-d;return e>=g&&n>=_&&e+i<=y&&n+o<=v}function My(e,n,i,o,s,l,c){const f=Math.max(e,Math.min(s,e+i)),d=Math.max(n,Math.min(l,n+o)),g=s-f,_=l-d;return g*g+_*_<c*c}function Ty(e,n,i,o,s,l,c,f,d,g){const _=["topRight","bottomRight","bottomLeft","topLeft"],y={topRight:{left:e+g,top:n-g-o},bottomRight:{left:e+g,top:n+g},bottomLeft:{left:e-g-i,top:n+g},topLeft:{left:e-g-i,top:n-g-o}};for(const $ of _){const{left:T,top:O}=y[$];if(Ay(T,O,i,o,s,l,c,f,d))return{left:T,top:O}}const v=s+d,k=l+d,b=c-i-d,C=f-o-d,L=8;for(const $ of _){const T=y[$],O=Math.min(Math.max(v,T.left),Math.max(v,b)),E=Math.min(Math.max(k,T.top),Math.max(k,C));if(!My(O,E,i,o,e,n,L))return{left:O,top:E}}return{left:Math.min(Math.max(v,y.topRight.left),Math.max(v,b)),top:Math.min(Math.max(k,y.topRight.top),Math.max(k,C))}}const Py=e=>{const n=()=>e.order.isBuy,[o,s]=G(),[l,c]=G({w:220,h:196});Ot(()=>{e.order,e.formattedTime;const y=o();if(!y)return;const v=()=>{const b=y.getBoundingClientRect();b.width>0&&b.height>0&&c({w:b.width,h:b.height})};v();const k=new ResizeObserver(v);k.observe(y),Sr(()=>k.disconnect())});const f=12,d=typeof window<"u"?window.innerWidth:1024,g=typeof window<"u"?window.innerHeight:768,_=Jt(()=>{var X;const y=l().w,v=l().h,k=(X=e.clipElement)==null?void 0:X.getBoundingClientRect(),b=(k==null?void 0:k.left)??0,C=(k==null?void 0:k.top)??0,L=(k==null?void 0:k.right)??d,$=(k==null?void 0:k.bottom)??g,T=typeof e.anchorX=="number"&&typeof e.anchorY=="number",O=T?e.anchorX:L-y-16,E=T?e.anchorY:C+84,U=T?Ty(O,E,y,v,b,C,L,$,f,ky):(()=>{const Y=b+f,I=L-y-f,z=C+f,Q=$-v-f,j=L-y-16,te=C+84;return{left:Math.min(Math.max(Y,j),Math.max(Y,I)),top:Math.min(Math.max(z,te),Math.max(z,Q))}})();return{left:U.left,top:U.top,anchorX:O,anchorY:E,hasAnchor:T,w:y,h:v}});return Ot(()=>{_()}),(()=>{var y=Sy(),v=y.firstChild,k=v.nextSibling,b=k.firstChild,C=b.nextSibling,L=k.nextSibling,$=L.firstChild,T=$.nextSibling,O=L.nextSibling,E=O.firstChild,U=E.nextSibling,X=O.nextSibling,Y=X.firstChild,I=Y.nextSibling,z=X.nextSibling,Q=z.firstChild,j=Q.nextSibling,te=z.nextSibling,ee=te.firstChild,Oe=ee.nextSibling;return q1(s,y),K(v,()=>n()?"买入":"卖出"),K(C,()=>String(e.order.orderId??e.order.id??"-")),K(T,()=>String(e.order.price)),K(U,()=>String(e.order.size)),K(I,()=>String(e.order.fee??"-")),K(j,()=>String(e.order.pnl??"-")),K(Oe,()=>e.formattedTime),Te(oe=>{var bt=`klinecharts-pro-his-order-hover ${n()?"is-buy":"is-sell"}`,St=`${_().left}px`,it=`${_().top}px`,tt=`klinecharts-pro-his-order-hover-title ${n()?"is-buy":"is-sell"}`,ke=Vr,Qe=Qr,ze=Vr,nt=Qr,ie=Vr,Me=Qr,ue=Vr,Ee=Qr,ot=Vr,Je=Qr,Et=Vr,rn=Qr;return bt!==oe.e&&Wt(y,oe.e=bt),St!==oe.t&&Ar(y,"left",oe.t=St),it!==oe.a&&Ar(y,"top",oe.a=it),tt!==oe.o&&Wt(v,oe.o=tt),oe.i=Xe(k,ke,oe.i),oe.n=Xe(C,Qe,oe.n),oe.s=Xe(L,ze,oe.s),oe.h=Xe(T,nt,oe.h),oe.r=Xe(O,ie,oe.r),oe.d=Xe(U,Me,oe.d),oe.l=Xe(X,ue,oe.l),oe.u=Xe(I,Ee,oe.u),oe.c=Xe(z,ot,oe.c),oe.w=Xe(j,Je,oe.w),oe.m=Xe(te,Et,oe.m),oe.f=Xe(Oe,rn,oe.f),oe},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0}),y})()},G9={"zh-CN":{indicator:"指标",main_indicator:"主图指标",sub_indicator:"副图指标",setting:"设置",timezone:"时区",screenshot:"截屏",alerts:"预警",full_screen:"全屏",exit_full_screen:"退出全屏",save:"保存",confirm:"确定",cancel:"取消",ma:"MA(移动平均线)",ema:"EMA(指数平滑移动平均线)",sma:"SMA",boll:"BOLL(布林线)",bbi:"BBI(多空指数)",sar:"SAR(停损点指向指标)",vol:"VOL(成交量)",macd:"MACD(指数平滑异同移动平均线)",kdj:"KDJ(随机指标)",rsi:"RSI(相对强弱指标)",bias:"BIAS(乖离率)",brar:"BRAR(情绪指标)",cci:"CCI(顺势指标)",dmi:"DMI(动向指标)",cr:"CR(能量指标)",psy:"PSY(心理线)",dma:"DMA(平行线差指标)",trix:"TRIX(三重指数平滑平均线)",obv:"OBV(能量潮指标)",vr:"VR(成交量变异率)",wr:"WR(威廉指标)",mtm:"MTM(动量指标)",emv:"EMV(简易波动指标)",roc:"ROC(变动率指标)",pvt:"PVT(价量趋势指标)",ao:"AO(动量震荡指标)",utc:"世界统一时间",honolulu:"(UTC-10) 檀香山",juneau:"(UTC-8) 朱诺",los_angeles:"(UTC-7) 洛杉矶",chicago:"(UTC-5) 芝加哥",toronto:"(UTC-4) 多伦多",sao_paulo:"(UTC-3) 圣保罗",london:"(UTC+1) 伦敦",berlin:"(UTC+2) 柏林",bahrain:"(UTC+3) 巴林",dubai:"(UTC+4) 迪拜",ashkhabad:"(UTC+5) 阿什哈巴德",almaty:"(UTC+6) 阿拉木图",bangkok:"(UTC+7) 曼谷",shanghai:"(UTC+8) 上海",tokyo:"(UTC+9) 东京",sydney:"(UTC+10) 悉尼",norfolk:"(UTC+12) 诺福克岛",horizontal_straight_line:"水平直线",horizontal_ray_line:"水平射线",horizontal_segment:"水平线段",vertical_straight_line:"垂直直线",vertical_ray_line:"垂直射线",vertical_segment:"垂直线段",straight_line:"直线",ray_line:"射线",segment:"线段",arrow:"箭头",price_line:"价格线",price_channel_line:"价格通道线",parallel_straight_line:"平行直线",fibonacci_line:"斐波那契回调直线",fibonacci_segment:"斐波那契回调线段",fibonacci_circle:"斐波那契圆环",fibonacci_spiral:"斐波那契螺旋",fibonacci_speed_resistance_fan:"斐波那契速度阻力扇",fibonacci_extension:"斐波那契趋势扩展",gann_box:"江恩箱",rect:"矩形",parallelogram:"平行四边形",circle:"圆",triangle:"三角形",three_waves:"三浪",five_waves:"五浪",eight_waves:"八浪",any_waves:"任意浪",abcd:"ABCD形态",xabcd:"XABCD形态",weak_magnet:"弱磁模式",strong_magnet:"强磁模式",symbol_search:"商品搜索",symbol_code:"商品代码",params_1:"参数1",params_2:"参数2",params_3:"参数3",params_4:"参数4",params_5:"参数5",period:"周期",standard_deviation:"标准差",candle_type:"蜡烛图类型",candle_solid:"全实心",candle_stroke:"全空心",candle_up_stroke:"涨空心",candle_down_stroke:"跌空心",ohlc:"OHLC",area:"面积图",heikin_ashi:"平金·阿什",last_price_show:"最新价显示",high_price_show:"最高价显示",low_price_show:"最低价显示",indicator_last_value_show:"指标最新值显示",price_axis_type:"价格轴类型",normal:"线性轴",percentage:"百分比轴",log:"对数轴",reverse_coordinate:"倒置坐标",grid_show:"网格线显示",setting_sidebar_trading:"交易",trading_display_positions:"当前持仓",trading_display_liquidation:"强平价格",trading_display_open_orders:"当前委托",trading_display_his_orders:"历史委托",restore_default:"重置"},"en-US":{indicator:"Indicator",main_indicator:"Main Indicator",sub_indicator:"Sub Indicator",setting:"Setting",timezone:"Timezone",screenshot:"Screenshot",alerts:"Alerts",full_screen:"Full Screen",exit_full_screen:"Exit",save:"Save",confirm:"Confirm",cancel:"Cancel",ma:"MA(Moving Average)",ema:"EMA(Exponential Moving Average)",sma:"SMA",boll:"BOLL(Bolinger Bands)",bbi:"BBI(Bull And Bearlndex)",sar:"SAR(Stop and Reverse)",vol:"VOL(Volume)",macd:"MACD(Moving Average Convergence / Divergence)",kdj:"KDJ(KDJ Index)",rsi:"RSI(Relative Strength Index)",bias:"BIAS(Bias Ratio)",brar:"BRAR(情绪指标)",cci:"CCI(Commodity Channel Index)",dmi:"DMI(Directional Movement Index)",cr:"CR(能量指标)",psy:"PSY(Psychological Line)",dma:"DMA(Different of Moving Average)",trix:"TRIX(Triple Exponentially Smoothed Moving Average)",obv:"OBV(On Balance Volume)",vr:"VR(Volatility Volume Ratio)",wr:"WR(Williams %R)",mtm:"MTM(Momentum Index)",emv:"EMV(Ease of Movement Value)",roc:"ROC(Price Rate of Change)",pvt:"PVT(Price and Volume Trend)",ao:"AO(Awesome Oscillator)",utc:"UTC",honolulu:"(UTC-10) Honolulu",juneau:"(UTC-8) Juneau",los_angeles:"(UTC-7) Los Angeles",chicago:"(UTC-5) Chicago",toronto:"(UTC-4) Toronto",sao_paulo:"(UTC-3) Sao Paulo",london:"(UTC+1) London",berlin:"(UTC+2) Berlin",bahrain:"(UTC+3) Bahrain",dubai:"(UTC+4) Dubai",ashkhabad:"(UTC+5) Ashkhabad",almaty:"(UTC+6) Almaty",bangkok:"(UTC+7) Bangkok",shanghai:"(UTC+8) Shanghai",tokyo:"(UTC+9) Tokyo",sydney:"(UTC+10) Sydney",norfolk:"(UTC+12) Norfolk",horizontal_straight_line:"Horizontal Line",horizontal_ray_line:"Horizontal Ray",horizontal_segment:"Horizontal Segment",vertical_straight_line:"Vertical Line",vertical_ray_line:"Vertical Ray",vertical_segment:"Vertical Segment",straight_line:"Trend Line",ray_line:"Ray",segment:"Segment",arrow:"Arrow",price_line:"Price Line",price_channel_line:"Price Channel Line",parallel_straight_line:"Parallel Line",fibonacci_line:"Fibonacci Line",fibonacci_segment:"Fibonacci Segment",fibonacci_circle:"Fibonacci Circle",fibonacci_spiral:"Fibonacci Spiral",fibonacci_speed_resistance_fan:"Fibonacci Sector",fibonacci_extension:"Fibonacci Extension",gann_box:"Gann Box",rect:"Rect",parallelogram:"Parallelogram",circle:"Circle",triangle:"Triangle",three_waves:"Three Waves",five_waves:"Five Waves",eight_waves:"Eight Waves",any_waves:"Any Waves",abcd:"ABCD Pattern",xabcd:"XABCD Pattern",weak_magnet:"Weak Magnet",strong_magnet:"Strong Magnet",symbol_search:"Symbol Search",symbol_code:"Symbol Code",params_1:"Parameter 1",params_2:"Parameter 2",params_3:"Parameter 3",params_4:"Parameter 4",params_5:"Parameter 5",period:"Period",standard_deviation:"Standard Deviation",candle_type:"Candle Type",candle_solid:"Candle Solid",candle_stroke:"Candle Stroke",candle_up_stroke:"Candle Up Stroke",candle_down_stroke:"Candle Down Stroke",ohlc:"OHLC",area:"Area",heikin_ashi:"Heikin Ashi",last_price_show:"Show Last Price",high_price_show:"Show Highest Price",low_price_show:"Show Lowest Price",indicator_last_value_show:"Show indicator's last value",price_axis_type:"Price Axis Type",normal:"Normal",percentage:"Percentage",log:"Log",reverse_coordinate:"Reverse Coordinate",grid_show:"Show Grids",setting_sidebar_trading:"Trading",trading_display_positions:"Open positions",trading_display_liquidation:"Liquidation price",trading_display_open_orders:"Open orders",trading_display_his_orders:"Historical orders",restore_default:"Restore Defaults"}};function Oy(e,n){G9[e]=n}const x=(e,n)=>{var i;return((i=G9[n])==null?void 0:i[e])??e};G(!1),G(!1),G(!1),G(!1),G(!1),G("");const[Iy,Ey]=G("");function V9(e){const n=Iy();if(n)return document.getElementById(n);if(e instanceof Element){const i=e.closest(".klinecharts-pro");if(i instanceof HTMLElement)return i}return document.querySelector(".klinecharts-pro")}function Dy(){const e=document;return e.fullscreenElement??e.webkitFullscreenElement??e.mozFullScreenElement??e.msFullscreenElement??null}function Ry(e){const n=V9(e),i=Dy();return!!(n&&i&&(n===i||n.contains(i)))}const[By,Q9]=G(!1),[v1,fo]=G(null),[b1,ho]=G(null);G();const[re,Fy]=G(null),[j9,q9]=G(null),[X9,J9]=G([""]),[e5,t5]=G({}),[gI,tr]=G(!1);G("");const[go,zy]=G(!1);G(1),G();const[Ny,bi]=G(null);var Ky=N("<img alt=symbol>"),Hy=N("<div class=symbol><span>"),Wy=N('<div class=klinecharts-pro-period-bar><div class=menu-container><svg viewBox="0 0 1024 1024"><path d="M192.037 287.953h640.124c17.673 0 32-14.327 32-32s-14.327-32-32-32H192.037c-17.673 0-32 14.327-32 32s14.327 32 32 32zM832.161 479.169H438.553c-17.673 0-32 14.327-32 32s14.327 32 32 32h393.608c17.673 0 32-14.327 32-32s-14.327-32-32-32zM832.161 735.802H192.037c-17.673 0-32 14.327-32 32s14.327 32 32 32h640.124c17.673 0 32-14.327 32-32s-14.327-32-32-32zM319.028 351.594l-160 160 160 160z"></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M15.873,20L3.65079,20C1.5873,20,0,18.3871,0,16.2903L0,3.70968C-3.78442e-7,1.6129,1.5873,0,3.65079,0L15.873,0C17.9365,0,19.5238,1.6129,19.5238,3.70968C19.5238,4.35484,19.2063,4.51613,18.5714,4.51613C17.9365,4.51613,17.619,4.19355,17.619,3.70968C17.619,2.74194,16.8254,1.93548,15.873,1.93548L3.65079,1.93548C2.69841,1.93548,1.90476,2.74194,1.90476,3.70968L1.90476,16.2903C1.90476,17.2581,2.69841,18.0645,3.65079,18.0645L15.873,18.0645C16.8254,18.0645,17.619,17.2581,17.619,16.2903C17.619,15.8065,18.0952,15.3226,18.5714,15.3226C19.0476,15.3226,19.5238,15.8065,19.5238,16.2903C19.5238,18.2258,17.9365,20,15.873,20ZM14.9206,12.9032C14.7619,12.9032,14.4444,12.9032,14.2857,12.7419L11.2698,9.35484C10.9524,9.03226,10.9524,8.54839,11.2698,8.22581C11.5873,7.90323,12.0635,7.90323,12.381,8.22581L15.3968,11.6129C15.7143,11.9355,15.7143,12.4194,15.3968,12.7419C15.3968,12.9032,15.2381,12.9032,14.9206,12.9032ZM11.4286,13.2258C11.2698,13.2258,11.1111,13.2258,10.9524,13.0645C10.6349,12.7419,10.6349,12.4194,10.9524,12.0968L15.0794,7.74193C15.3968,7.41935,15.7143,7.41935,16.0317,7.74193C16.3492,8.06452,16.3492,8.3871,16.0317,8.70968L11.9048,13.0645C11.746,13.2258,11.5873,13.2258,11.4286,13.2258ZM10.3175,3.70968C10.6349,3.70968,11.4286,3.87097,11.4286,4.67742C11.4286,5.32258,10.4762,5.16129,10.1587,5.16129C8.73016,5.16129,8.25397,5.96774,8.09524,6.6129L7.77778,8.54839L9.36508,8.54839C9.68254,8.54839,10,8.87097,10,9.19355C10,9.51613,9.68254,9.83871,9.36508,9.83871L7.61905,9.83871L6.50794,14.8387Q6.34921,16.2903,5.39683,16.2903Q4.44444,16.2903,4.92064,14.8387L6.03175,10L4.60317,10C4.28571,10,3.96825,9.67742,3.96825,9.35484C3.96825,8.70968,4.28571,8.54839,4.60317,8.54839L6.34921,8.54839L6.8254,6.45161C7.14286,3.70968,9.52381,3.54839,10.3175,3.70968ZM18.4127,6.6129C18.5714,6.12903,18.8889,5.96774,19.3651,5.96774C19.8413,6.12903,20,6.45161,20,6.93548L18.4127,13.3871C18.254,13.871,17.9365,14.0323,17.4603,14.0323C16.9841,13.871,16.8254,13.5484,16.8254,13.0645L18.4127,6.6129Z></path></svg></div><div class="item tools"><svg width=20 height=20 viewBox="0 0 20 20"><path d=M18.5446,9.09091C18.3333,6.61616,17.2887,4.31818,15.5751,2.63889C13.8498,0.94697,11.6197,0,9.28404,0C8.02817,0,6.81925,0.265151,5.66901,0.782828C5.65728,0.782828,5.65728,0.795454,5.64554,0.795454C5.6338,0.795454,5.6338,0.808081,5.62207,0.808081C4.53052,1.31313,3.55634,2.0202,2.71127,2.92929C1.85446,3.85101,1.18545,4.91162,0.715963,6.11111C0.246479,7.33586,0,8.64899,0,10C0,10.8712,0.105634,11.7172,0.305164,12.5379C0.305164,12.5631,0.316901,12.5884,0.328638,12.6136C0.739437,14.2298,1.51408,15.7197,2.62911,16.9571C4.07277,18.548,5.92723,19.5581,7.93427,19.8737C7.95775,19.8737,7.96948,19.8864,7.99296,19.8864C8.3216,19.9369,8.66197,19.9747,9.00235,19.9747L9.21362,19.9747C9.61268,19.9747,10.3756,19.9369,11.0094,19.697C11.1737,19.6338,11.3028,19.5076,11.3732,19.3434C11.4437,19.1793,11.4554,18.9899,11.3967,18.8131C11.3028,18.5354,11.0563,18.346,10.7864,18.346C10.716,18.346,10.6338,18.3586,10.5634,18.3838C10.0939,18.5606,9.46009,18.5859,9.20188,18.5859L9.09624,18.5859C9.20188,18.2702,9.23709,17.9167,9.15493,17.5505C9.00235,16.8939,8.50939,16.3384,7.58216,15.7955L7.19484,15.5682C6.57277,15.2146,6.23239,15.0253,6.03286,14.7348C5.83333,14.4444,5.69249,13.9899,5.51643,12.9798C5.38732,12.298,5.04695,11.7677,4.50704,11.4646C4.14319,11.2626,3.70892,11.149,3.19249,11.149C2.82864,11.149,2.42958,11.1995,2.00704,11.3005C1.79578,11.351,1.59624,11.4141,1.42019,11.4646C1.33803,10.9848,1.30282,10.4798,1.30282,9.97475C1.30282,6.93182,2.76995,4.26768,4.98826,2.72727C5,3.00505,5.05869,3.29545,5.17606,3.57323C5.48122,4.26768,6.10329,4.7096,7.01878,4.89899C7.06573,4.91162,7.10094,4.91162,7.13615,4.91162L7.1831,4.91162C7.26526,4.91162,7.57042,4.92424,7.88732,5.0505C8.3216,5.2399,8.56808,5.55555,8.65023,6.04798C8.84977,7.61364,9.07277,10.4293,8.79108,11.3384C8.76761,11.4141,8.75587,11.4899,8.75587,11.5657C8.75587,11.9444,9.0493,12.2601,9.40141,12.2601C9.57747,12.2601,9.74179,12.1843,9.85915,12.0581C9.97653,11.9318,12.6174,9.05303,13.3216,8.09343C13.4038,7.97979,13.4859,7.87878,13.5798,7.76515C13.9202,7.33586,14.2723,6.90656,14.4014,6.26262C14.554,5.56818,14.4014,4.79798,13.9437,3.85101C13.615,3.16919,13.5563,2.86616,13.5446,2.75252C13.5563,2.7399,13.5798,2.72727,13.6033,2.71464C15.6221,4.10353,17.0188,6.43939,17.2535,9.19192C17.2887,9.55808,17.5587,9.82323,17.8991,9.82323L17.9577,9.82323C18.3099,9.8106,18.5681,9.48232,18.5446,9.09091ZM3.19249,12.5631C3.48592,12.5631,3.72066,12.6136,3.89671,12.7146C4.08451,12.8283,4.19014,12.9924,4.23709,13.2702C4.43662,14.3434,4.61268,15.0631,5,15.6061C5.37559,16.1364,5.85681,16.4015,6.58451,16.8182L6.60798,16.8308C6.71362,16.8939,6.84272,16.9571,6.96009,17.0328C7.69953,17.4621,7.86385,17.7525,7.89906,17.8914C7.93427,18.0303,7.85211,18.2323,7.74648,18.4343C4.91784,17.8535,2.65258,15.6944,1.73709,12.8283C2.15962,12.702,2.71127,12.5631,3.19249,12.5631ZM12.7934,4.5202C13.4272,5.83333,13.1455,6.18687,12.5822,6.89394C12.4883,7.00758,12.3944,7.12121,12.3005,7.24747C11.9484,7.72727,11.0211,8.77525,10.2113,9.68434C10.2113,9.24242,10.1878,8.73737,10.1526,8.19444C10.0704,6.95707,9.92958,5.90909,9.92958,5.87121L9.92958,5.83333C9.75352,4.83586,9.20188,4.11616,8.3216,3.76263C7.82864,3.56061,7.37089,3.53535,7.19484,3.53535C6.73709,3.43434,6.4554,3.24495,6.33803,2.99242C6.19718,2.68939,6.29108,2.24747,6.38498,1.9697C7.28873,1.59091,8.26291,1.37626,9.28404,1.37626C10.3873,1.37626,11.4437,1.61616,12.4061,2.04545C12.3357,2.18434,12.277,2.34848,12.2535,2.5505C12.2066,3.04293,12.3709,3.64899,12.7934,4.5202Z></path><path d=M15.22299772857666,9.722223632261718C12.59389772857666,9.722223632261718,10.44600772857666,12.020201374511718,10.44600772857666,14.861111374511719C10.44600772857666,17.70202137451172,12.58215772857666,20.000021374511718,15.223007728576661,20.000021374511718C17.86384772857666,20.000021374511718,19.99999772857666,17.70202137451172,19.99999772857666,14.861111374511719C19.99999772857666,12.020201374511718,17.85211772857666,9.72222212709572,15.22299772857666,9.722223632261718ZM15.22299772857666,18.598491374511717C13.30985772857666,18.598491374511717,11.737087728576661,16.91919137451172,11.737087728576661,14.848481374511719C11.737087728576661,12.777781374511719,13.29811772857666,11.098491374511719,15.22299772857666,11.098491374511719C17.14787772857666,11.098491374511719,18.708917728576658,12.777781374511719,18.708917728576658,14.848481374511719C18.708917728576658,16.91919137451172,17.13614772857666,18.59848137451172,15.22299772857666,18.598491374511717Z></path><path d=M15.692486288146974,15.050496970825195L15.692486288146974,12.676760970825196C15.692486288146974,12.297972970825196,15.399058288146973,11.982316970825195,15.046945288146972,11.982316970825195C14.694833288146972,11.982316970825195,14.401406288146973,12.297972970825196,14.401406288146973,12.676760970825196L14.401406288146973,15.340896970825195C14.401406288146973,15.530296970825194,14.471829288146973,15.694436970825196,14.589200288146973,15.833326970825196L15.751176288146972,17.095956970825195C15.868546288146973,17.222216970825194,16.032866288146973,17.297976970825196,16.208916288146973,17.297976970825196C16.384976288146973,17.297976970825196,16.537556288146973,17.222216970825194,16.666666288146974,17.095956970825195C16.78403628814697,16.969686970825194,16.854456288146974,16.792916970825196,16.854456288146974,16.603526970825193C16.854456288146974,16.414136970825197,16.78403628814697,16.237366970825196,16.666666288146974,16.111106970825197L15.692486288146974,15.050496970825195Z></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d="M10 1a5 5 0 0 0-5 5v2.6L3.2 12a1 1 0 0 0 .8 1.6h12a1 1 0 0 0 .8-1.6L15 8.6V6a5 5 0 0 0-5-5zm0 18a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 10 19z"></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M19.7361,12.542L18.1916,11.2919C18.2647,10.8678,18.3025,10.4347,18.3025,10.0017C18.3025,9.56861,18.2647,9.13555,18.1916,8.71142L19.7361,7.46135C19.9743,7.26938,20.0615,6.95686,19.9554,6.6756L19.9342,6.61756C19.5074,5.49026,18.8755,4.45449,18.0549,3.53926L18.0124,3.49238C17.8096,3.26692,17.4819,3.1821,17.1848,3.28032L15.2677,3.92544C14.5603,3.3763,13.7704,2.94324,12.9168,2.63966L12.5466,0.742229C12.49,0.449802,12.2472,0.222111,11.9383,0.168536L11.8746,0.157375C10.6461,-0.0524583,9.35391,-0.0524583,8.1254,0.157375L8.06174,0.168536C7.75284,0.222111,7.50997,0.449802,7.45338,0.742229L7.08082,2.64859C6.2343,2.95217,5.44909,3.383,4.74641,3.92991L2.81522,3.28032C2.52047,3.1821,2.19036,3.26469,1.98757,3.49238L1.94513,3.53926C1.12455,4.45672,0.492609,5.49249,0.0658141,6.61756L0.0445921,6.6756C-0.0615171,6.95463,0.0257283,7.26715,0.263885,7.46135L1.82723,8.72482C1.75413,9.14448,1.71876,9.57308,1.71876,9.99944C1.71876,10.428,1.75413,10.8566,1.82723,11.2741L0.263885,12.5375C0.025729,12.7295,-0.0615164,13.042,0.0445929,13.3233L0.0658148,13.3813C0.49261,14.5064,1.12455,15.5444,1.94513,16.4596L1.98757,16.5065C2.19036,16.732,2.51812,16.8168,2.81522,16.7186L4.74641,16.069C5.44909,16.6159,6.2343,17.0489,7.08082,17.3503L7.45338,19.2567C7.50997,19.5491,7.75284,19.7768,8.06174,19.8303L8.1254,19.8415C8.74084,19.9464,9.37042,20,10,20C10.6296,20,11.2615,19.9464,11.8746,19.8415L11.9383,19.8303C12.2472,19.7768,12.49,19.5491,12.5466,19.2567L12.9168,17.3592C13.7704,17.0556,14.5603,16.6248,15.2677,16.0734L17.1848,16.7186C17.4795,16.8168,17.8096,16.7342,18.0124,16.5065L18.0549,16.4596C18.8755,15.5422,19.5074,14.5064,19.9342,13.3813L19.9554,13.3233C20.0615,13.0487,19.9743,12.7362,19.7361,12.542ZM16.5175,8.97483C16.5764,9.3119,16.6071,9.65791,16.6071,10.0039C16.6071,10.3499,16.5764,10.6959,16.5175,11.033L16.3618,11.9281L18.1233,13.3545C17.8568,13.9372,17.5196,14.4863,17.1188,14.9975L14.9305,14.2631L14.1901,14.839C13.6266,15.2765,12.9994,15.6203,12.3203,15.8614L11.4219,16.1806L10.9998,18.3459C10.3372,18.4173,9.66045,18.4173,8.9955,18.3459L8.57342,16.1761L7.6821,15.8524C7.01008,15.6114,6.38521,15.2676,5.82637,14.8323L5.08596,14.2541L2.88361,14.9953C2.48275,14.4841,2.14791,13.9327,1.8791,13.3523L3.65938,11.9125L3.50611,11.0196C3.44952,10.687,3.41887,10.3432,3.41887,10.0039C3.41887,9.66237,3.44716,9.32083,3.50611,8.98822L3.65938,8.09531L1.8791,6.6555C2.14556,6.07288,2.48275,5.52374,2.88361,5.01255L5.08596,5.75367L5.82637,5.17551C6.38521,4.74022,7.01008,4.39645,7.6821,4.15536L8.57578,3.83615L8.99786,1.66638C9.66045,1.59495,10.3372,1.59495,11.0021,1.66638L11.4242,3.83168L12.3226,4.1509C12.9994,4.39198,13.6289,4.73575,14.1925,5.17328L14.9329,5.7492L17.1211,5.01479C17.522,5.52598,17.8568,6.07734,18.1256,6.65773L16.3642,8.08416L16.5175,8.97483ZM10.0024,5.85189C7.7104,5.85189,5.85231,7.61092,5.85231,9.78068C5.85231,11.9504,7.7104,13.7095,10.0024,13.7095C12.2943,13.7095,14.1524,11.9504,14.1524,9.78068C14.1524,7.61092,12.2943,5.85189,10.0024,5.85189ZM11.8699,11.5486C11.37,12.0196,10.7074,12.2808,10.0024,12.2808C9.29732,12.2808,8.63473,12.0196,8.13483,11.5486C7.6373,11.0754,7.36142,10.4481,7.36142,9.78068C7.36142,9.11323,7.6373,8.48596,8.13483,8.01272C8.63473,7.53948,9.29732,7.28054,10.0024,7.28054C10.7074,7.28054,11.37,7.53948,11.8699,8.01272C12.3674,8.48596,12.6433,9.11323,12.6433,9.78068C12.6433,10.4481,12.3674,11.0754,11.8699,11.5486Z></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M6.50977,1L13.4902,1C13.6406,1,13.7695,1.1104910000000001,13.7969,1.2631700000000001L14.0273,2.52277C14.1387,3.13147,14.6543,3.57143,15.2559,3.57143L17.5,3.57143C18.8809,3.57143,20,4.72254,20,6.14286L20,16.4286C20,17.8489,18.8809,19,17.5,19L2.5,19C1.11914,19,0,17.8489,0,16.4286L0,6.14286C0,4.72254,1.11914,3.57143,2.5,3.57143L4.74414,3.57143C5.3457,3.57143,5.86133,3.13147,5.97266,2.52277L6.20312,1.2631700000000001C6.23047,1.1104910000000001,6.35937,1,6.50977,1ZM15.2559,4.857139999999999C14.0547,4.857139999999999,13.0215,3.97522,12.7988,2.75982L12.7129,2.28571L7.28711,2.28571L7.20117,2.75982C6.98047,3.97522,5.94727,4.857139999999999,4.74414,4.857139999999999L2.5,4.857139999999999C1.81055,4.857139999999999,1.25,5.43371,1.25,6.14286L1.25,16.4286C1.25,17.1377,1.81055,17.7143,2.5,17.7143L17.5,17.7143C18.1895,17.7143,18.75,17.1377,18.75,16.4286L18.75,6.14286C18.75,5.43371,18.1895,4.857139999999999,17.5,4.857139999999999L15.2559,4.857139999999999ZM4.375,6.78571L3.125,6.78571C2.7793,6.78571,2.5,6.49844,2.5,6.14286C2.5,5.78728,2.7793,5.5,3.125,5.5L4.375,5.5C4.7207,5.5,5,5.78728,5,6.14286C5,6.49844,4.7207,6.78571,4.375,6.78571ZM10,6.14286C7.06641,6.14286,4.6875,8.58973,4.6875,11.6071C4.6875,14.6246,7.06641,17.0714,10,17.0714C12.9336,17.0714,15.3125,14.6246,15.3125,11.6071C15.3125,8.58973,12.9336,6.14286,10,6.14286ZM10,7.42857C11.0859,7.42857,12.1055,7.8625,12.873,8.65201C13.6406,9.44152,14.0625,10.49018,14.0625,11.6071C14.0625,12.7241,13.6406,13.7728,12.873,14.5623C12.1055,15.3518,11.0859,15.7857,10,15.7857C8.91406,15.7857,7.89453,15.3518,7.12695,14.5623C6.35937,13.7728,5.9375,12.7241,5.9375,11.6071C5.9375,10.49018,6.35938,9.44152,7.12695,8.65201C7.89453,7.8625,8.91406,7.42857,10,7.42857ZM10,9.67857C8.96484,9.67857,8.125,10.54241,8.125,11.6071C8.125,12.6719,8.96484,13.5357,10,13.5357C11.0352,13.5357,11.875,12.6719,11.875,11.6071C11.875,10.54241,11.0352,9.67857,10,9.67857ZM10,10.96429C10.3438,10.96429,10.625,11.2536,10.625,11.6071C10.625,11.9607,10.3438,12.25,10,12.25C9.65625,12.25,9.375,11.9607,9.375,11.6071C9.375,11.2536,9.65625,10.96429,10,10.96429Z></path></svg></div><div class="item tools">'),Uy=N("<button type=button>"),Zy=N('<svg viewBox="0 0 20 20"><path d=M1.08108,0L0,1.079L4.18919,5.27938L2.54826,6.91715L6.9112,6.91715L6.9112,2.56262L5.28957,4.18112L1.08108,0ZM15.8108,5.27938L20,1.079L18.9189,0L14.7104,4.18112L13.0888,2.56262L13.0888,6.91715L17.4517,6.91715L15.8108,5.27938ZM4.16988,14.7014L0.07722,18.8054L1.1583,20L5.27027,15.7996L6.9112,17.4374L6.9112,13.0829L2.54826,13.0829L4.16988,14.7014ZM17.4517,13.0829L13.0888,13.0829L13.0888,17.4374L14.7297,15.7996L18.8417,20L19.9228,18.8054L15.8301,14.7013L17.4517,13.0829Z>'),Yy=N('<svg viewBox="0 0 20 20"><path d=M2.93444,1.76899L7.57544,6.40999L6.38918,7.59626L1.76899,2.93444L0,4.70343L0,0L4.70343,0L2.93444,1.76899ZM6.40999,12.4037L1.76899,17.0447L0,15.2758L0,19.9792L4.70343,19.9792L2.93444,18.2102L7.57544,13.5692L6.40999,12.4037ZM15.2758,0L17.0447,1.76899L12.4037,6.40999L13.59,7.59626L18.231,2.95526L20,4.72425L20,0L15.2758,0ZM13.5692,12.4037L12.3829,13.59L17.0239,18.231L15.2549,20L19.9792,20L19.9792,15.2758L18.2102,17.0447L13.5692,12.4037Z>');const Gy=e=>{let n;const i=l=>l.span===e.period.span&&l.type===e.period.type,o=()=>{zy(Ry(n))},s=l=>{if(l.shiftKey)return;const c=l.currentTarget;if(c.scrollWidth<=c.clientWidth)return;let f=l.deltaY;if(l.deltaMode===WheelEvent.DOM_DELTA_LINE?f*=16:l.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(f*=c.clientWidth),f===0)return;const d=c.scrollWidth-c.clientWidth;f>0&&c.scrollLeft>=d-1||f<0&&c.scrollLeft<=0||(l.preventDefault(),c.scrollLeft+=f)};return C0(()=>{document.addEventListener("fullscreenchange",o),document.addEventListener("mozfullscreenchange",o),document.addEventListener("webkitfullscreenchange",o),document.addEventListener("msfullscreenchange",o)}),Sr(()=>{document.removeEventListener("fullscreenchange",o),document.removeEventListener("mozfullscreenchange",o),document.removeEventListener("webkitfullscreenchange",o),document.removeEventListener("msfullscreenchange",o)}),(()=>{var l=Wy(),c=l.firstChild,f=c.firstChild,d=c.nextSibling,g=d.nextSibling,_=g.nextSibling,y=_.nextSibling,v=y.nextSibling,k=v.nextSibling;return q1(b=>{const C=n;C&&C.removeEventListener("wheel",s),n=b,b&&b.addEventListener("wheel",s,{passive:!1})},l),Mn(f,"click",e.onMenuClick,!0),K(l,W(Pe,{get when(){return e.symbol},get children(){var b=Hy(),C=b.firstChild;return Mn(b,"click",e.onSymbolClick,!0),K(b,W(Pe,{get when(){return e.symbol.logo},get children(){var L=Ky();return Te(()=>ft(L,"src",e.symbol.logo)),L}}),C),K(C,()=>e.symbol.shortName??e.symbol.name??e.symbol.ticker),b}}),d),K(l,()=>e.periods.map(b=>(()=>{var C=Uy();return C.$$click=()=>{e.onPeriodChange(b)},K(C,()=>b.text),Te(()=>Wt(C,`item tools period ${i(b)?"selected":""}`)),C})()),d),Mn(d,"click",e.onIndicatorClick,!0),Mn(g,"click",e.onTimezoneClick,!0),Mn(_,"click",e.onAlertClick,!0),Mn(y,"click",e.onSettingClick,!0),Mn(v,"click",e.onScreenshotClick,!0),k.$$click=()=>{if(go())(document.exitFullscreen??document.msExitFullscreen??document.mozCancelFullScreen??document.webkitExitFullscreen).call(document);else{const b=V9(n);b&&(b.requestFullscreen??b.webkitRequestFullscreen??b.mozRequestFullScreen??b.msRequestFullscreen).call(b)}},K(k,(()=>{var b=qe(()=>!!go());return()=>b()?Zy():Yy()})()),Te(b=>{var C=e.spread?"":"rotate",L=x("indicator",e.locale),$=x("timezone",e.locale),T=x("alerts",e.locale),O=x("setting",e.locale),E=x("screenshot",e.locale),U=go()?x("exit_full_screen",e.locale):x("full_screen",e.locale);return C!==b.e&&ft(f,"class",b.e=C),L!==b.t&&ft(d,"title",b.t=L),$!==b.a&&ft(g,"title",b.a=$),T!==b.o&&ft(_,"title",b.o=T),O!==b.i&&ft(y,"title",b.i=O),E!==b.n&&ft(v,"title",b.n=E),U!==b.s&&ft(k,"title",b.s=U),b},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),l})()};Ft(["click"]);var Vy=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M12.41465,11L18.5,11C18.7761,11,19,11.22386,19,11.5C19,11.77614,18.7761,12,18.5,12L12.41465,12C12.20873,12.5826,11.65311,13,11,13C10.34689,13,9.79127,12.5826,9.58535,12L3.5,12C3.223857,12,3,11.77614,3,11.5C3,11.22386,3.223857,11,3.5,11L9.58535,11C9.79127,10.417404,10.34689,10,11,10C11.65311,10,12.20873,10.417404,12.41465,11Z stroke-opacity=0 stroke=none>');const Qy=()=>Vy();var jy=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M6.91465,11L11.08535,11C11.29127,10.417404,11.84689,10,12.5,10C13.15311,10,13.70873,10.417404,13.91465,11L18.5,11C18.7761,11,19,11.22386,19,11.5C19,11.77614,18.7761,12,18.5,12L13.91465,12C13.70873,12.5826,13.15311,13,12.5,13C11.84689,13,11.29127,12.5826,11.08535,12L6.91465,12C6.70873,12.5826,6.15311,13,5.5,13C4.671573,13,4,12.32843,4,11.5C4,10.671573,4.671573,10,5.5,10C6.15311,10,6.70873,10.417404,6.91465,11Z stroke-opacity=0 stroke=none>');const qy=()=>jy();var Xy=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M6.91465,12.5C6.70873,13.0826,6.15311,13.5,5.5,13.5C4.671573,13.5,4,12.82843,4,12C4,11.171573,4.671573,10.5,5.5,10.5C6.15311,10.5,6.70873,10.917404,6.91465,11.5L16.0853,11.5C16.2913,10.917404,16.846899999999998,10.5,17.5,10.5C18.328400000000002,10.5,19,11.171573,19,12C19,12.82843,18.328400000000002,13.5,17.5,13.5C16.846899999999998,13.5,16.2913,13.0826,16.0853,12.5L6.91465,12.5Z stroke-opacity=0 stroke=none>');const Jy=()=>Xy();var e_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11,12.41465L11,18.5C11,18.7761,11.22386,19,11.5,19C11.77614,19,12,18.7761,12,18.5L12,12.41465C12.5826,12.20873,13,11.65311,13,11C13,10.34689,12.5826,9.79127,12,9.58535L12,3.5C12,3.223857,11.77614,3,11.5,3C11.22386,3,11,3.223857,11,3.5L11,9.58535C10.417404,9.79127,10,10.34689,10,11C10,11.65311,10.417404,12.20873,11,12.41465Z stroke-opacity=0 stroke=none>');const t_=()=>e_();var n_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11.66558837890625,19C10.83716137890625,19,10.16558837890625,18.328400000000002,10.16558837890625,17.5C10.16558837890625,16.846899999999998,10.58298437890625,16.2913,11.16557337890625,16.0854L11.16557337890625,11.91464C10.58298437890625,11.70872,10.16558837890625,11.1531,10.16558837890625,10.5C10.16558837890625,9.8469,10.58298437890625,9.29128,11.16557337890625,9.08536L11.16557337890625,4.5C11.16557337890625,4.223857,11.38942837890625,4,11.66556837890625,4C11.94171837890625,4,12.16556837890625,4.223857,12.16556837890625,4.5L12.16556837890625,9.08535C12.74817837890625,9.291260000000001,13.16558837890625,9.846879999999999,13.16558837890625,10.5C13.16558837890625,11.153120000000001,12.74817837890625,11.708739999999999,12.16556837890625,11.91465L12.16556837890625,16.0854C12.74817837890625,16.2913,13.16558837890625,16.846899999999998,13.16558837890625,17.5C13.16558837890625,18.328400000000002,12.49401837890625,19,11.66558837890625,19Z stroke-opacity=0 stroke=none>');const r_=()=>n_();var i_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11.165603637695312,6.91465C11.748203637695312,6.70873,12.165603637695312,6.15311,12.165603637695312,5.5C12.165603637695312,4.671573,11.494033637695313,4,10.665603637695312,4C9.837176637695313,4,9.165603637695312,4.671573,9.165603637695312,5.5C9.165603637695312,6.15311,9.583007637695312,6.70873,10.165603637695312,6.91465L10.165603637695312,16.0854C9.583007637695312,16.2913,9.165603637695312,16.846899999999998,9.165603637695312,17.5C9.165603637695312,18.328400000000002,9.837176637695313,19,10.665603637695312,19C11.494033637695313,19,12.165603637695312,18.328400000000002,12.165603637695312,17.5C12.165603637695312,16.846899999999998,11.748203637695312,16.2913,11.165603637695312,16.0854L11.165603637695312,6.91465Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const o_=()=>i_();var a_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M5.146447,15.753C4.9511845,15.9483,4.9511845,16.2649,5.146447,16.4602C5.341709,16.6554,5.658291,16.6554,5.853554,16.4602L8.156600000000001,14.15711C8.352409999999999,14.25082,8.57173,14.3033,8.8033,14.3033C9.631730000000001,14.3033,10.3033,13.63172,10.3033,12.80329C10.3033,12.57172,10.250820000000001,12.352409999999999,10.157119999999999,12.15659L12.156600000000001,10.15711C12.352409999999999,10.250820000000001,12.571729999999999,10.30329,12.8033,10.30329C13.63173,10.30329,14.3033,9.63172,14.3033,8.80329C14.3033,8.57172,14.25082,8.352409999999999,14.15712,8.15659L16.4602,5.853553C16.6554,5.658291,16.6554,5.341709,16.4602,5.146447C16.2649,4.9511843,15.9483,4.9511843,15.753,5.146447L13.45001,7.449479999999999C13.25419,7.35577,13.03487,7.3032900000000005,12.8033,7.3032900000000005C11.97487,7.3032900000000005,11.3033,7.97487,11.3033,8.80329C11.3033,9.03487,11.35578,9.254190000000001,11.44949,9.450009999999999L9.450009999999999,11.449480000000001C9.254190000000001,11.35577,9.03487,11.30329,8.8033,11.30329C7.97487,11.30329,7.3033,11.97487,7.3033,12.80329C7.3033,13.03487,7.35578,13.25419,7.44949,13.45001L5.146447,15.753Z stroke-opacity=0 stroke=none>');const s_=()=>a_();var l_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M7.573332939453125,14.54567903564453C7.667042939453125,14.741499035644532,7.719512939453125,14.960809035644532,7.719512939453125,15.19239903564453C7.719512939453125,16.02079903564453,7.047942939453125,16.69239903564453,6.219512939453125,16.69239903564453C5.391085939453125,16.69239903564453,4.719512939453125,16.02079903564453,4.719512939453125,15.19239903564453C4.719512939453125,14.36394903564453,5.391085939453125,13.692379035644532,6.219512939453125,13.692379035644532C6.451092939453125,13.692379035644532,6.670412939453125,13.74485903564453,6.866232939453125,13.83856903564453L9.865702939453126,10.83909903564453C9.771992939453124,10.643279035644532,9.719512939453125,10.42395903564453,9.719512939453125,10.192379035644532C9.719512939453125,9.36394903564453,10.391082939453124,8.692379035644532,11.219512939453125,8.692379035644532C11.451092939453126,8.692379035644532,11.670412939453126,8.74485903564453,11.866232939453125,8.838569035644532L15.462112939453124,5.242645035644531C15.657412939453126,5.047383335644532,15.974012939453125,5.047383335644532,16.169212939453125,5.242645035644531C16.364512939453125,5.437907035644531,16.364512939453125,5.754489035644531,16.169212939453125,5.949752035644531L12.573332939453124,9.545679035644532C12.667042939453125,9.74149903564453,12.719512939453125,9.96080903564453,12.719512939453125,10.192379035644532C12.719512939453125,11.020809035644533,12.047942939453126,11.692379035644532,11.219512939453125,11.692379035644532C10.987942939453125,11.692379035644532,10.768632939453125,11.639909035644532,10.572812939453126,11.54619903564453L7.573332939453125,14.54567903564453Z stroke-opacity=0 stroke=none>');const c_=()=>l_();var u_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M15.719512939453125,8.461776733398438C16.547912939453127,8.461776733398438,17.219512939453125,7.7902067333984375,17.219512939453125,6.9617767333984375C17.219512939453125,6.133349733398438,16.547912939453127,5.4617767333984375,15.719512939453125,5.4617767333984375C14.891082939453124,5.4617767333984375,14.219512939453125,6.133349733398438,14.219512939453125,6.9617767333984375C14.219512939453125,7.193346733398437,14.271992939453124,7.412666733398438,14.365692939453124,7.608486733398438L7.366222939453126,14.607956733398437C7.170402939453125,14.514256733398437,6.951082939453125,14.461776733398438,6.719512939453125,14.461776733398438C5.891085939453125,14.461776733398438,5.219512939453125,15.133346733398437,5.219512939453125,15.961776733398438C5.219512939453125,16.79017673339844,5.891085939453125,17.461776733398438,6.719512939453125,17.461776733398438C7.547942939453125,17.461776733398438,8.219512939453125,16.79017673339844,8.219512939453125,15.961776733398438C8.219512939453125,15.730176733398437,8.167032939453126,15.510876733398437,8.073322939453124,15.315066733398437L15.072802939453124,8.315586733398437C15.268612939453124,8.409296733398438,15.487912939453125,8.461776733398438,15.719512939453125,8.461776733398438Z stroke-opacity=0 stroke=none>');const f_=()=>u_();var d_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M17.0643,7.033864912109375L18,3.585784912109375L14.5078,4.509695912109375L15.3537,5.344934912109375L6.02026,14.560584912109375C5.87635,14.517484912109374,5.72366,14.494284912109375,5.5655,14.494284912109375C4.7009,14.494284912109375,4,15.186384912109375,4,16.040084912109375C4,16.893784912109375,4.7009,17.585784912109375,5.5655,17.585784912109375C6.43011,17.585784912109375,7.13101,16.893784912109375,7.13101,16.040084912109375C7.13101,15.722284912109375,7.03392,15.426984912109376,6.86744,15.181384912109374L16.0917,6.073604912109375L17.0643,7.033864912109375Z stroke-opacity=0 stroke=none>');const h_=()=>d_();var g_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M6.91465,13.00505L18.5,13.00505C18.7761,13.00505,19,13.228909999999999,19,13.50505C19,13.781189999999999,18.7761,14.00505,18.5,14.00505L6.91465,14.00505C6.70873,14.58765,6.15311,15.00505,5.5,15.00505C4.671573,15.00505,4,14.33348,4,13.50505C4,12.67662,4.671573,12.00505,5.5,12.00505C6.15311,12.00505,6.70873,12.422450000000001,6.91465,13.00505ZM7.81404,11.625L10.48591,11.625L10.48591,10.90625L9.65193,10.90625L9.65193,7.125L8.997630000000001,7.125C8.71443,7.306641,8.415600000000001,7.419922,7.96443,7.498047L7.96443,8.05078L8.77497,8.05078L8.77497,10.90625L7.81404,10.90625L7.81404,11.625ZM11.081620000000001,11.625L14.0562,11.625L14.0562,10.88281L13.09724,10.88281C12.8863,10.88281,12.59333,10.90625,12.36482,10.93555C13.17537,10.11328,13.84724,9.2207,13.84724,8.39062C13.84724,7.541016,13.28865,7,12.4488,7C11.84333,7,11.446850000000001,7.234375,11.03279,7.679688L11.52497,8.16797C11.747630000000001,7.914062,12.0113,7.697266,12.33552,7.697266C12.7613,7.697266,13.00154,7.982422,13.00154,8.43359C13.00154,9.14648,12.29255,10.00781,11.081620000000001,11.11523L11.081620000000001,11.625ZM15.9605,11.75C16.8121,11.75,17.526899999999998,11.2832,17.526899999999998,10.4375C17.526899999999998,9.82031,17.142200000000003,9.43945,16.6441,9.30078L16.6441,9.27148C17.1129,9.08594,17.3824,8.7207,17.3824,8.21289C17.3824,7.421875,16.8004,7,15.9429,7C15.4215,7,14.9957,7.210938,14.6109,7.541016L15.066,8.11133C15.3258,7.849609,15.5836,7.697266,15.9019,7.697266C16.2789,7.697266,16.4957,7.914062,16.4957,8.28125C16.4957,8.70898,16.2301,9,15.4215,9L15.4215,9.63672C16.3804,9.63672,16.6383,9.91992,16.6383,10.38086C16.6383,10.79688,16.3336,11.03125,15.8824,11.03125C15.4742,11.03125,15.1578,10.82227,14.8922,10.55078L14.4781,11.13281C14.7906,11.486329999999999,15.2652,11.75,15.9605,11.75Z stroke-opacity=0 stroke=none>');const p_=()=>g_();var m_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M3.146447,14.178126025390625C2.9511847,13.982826025390626,2.9511847,13.666226025390625,3.146447,13.470926025390625L7.39146,9.225966025390626C7.35417,9.095106025390624,7.33421,8.956946025390625,7.33421,8.814116025390625C7.33421,7.985696025390625,8.00578,7.314116025390625,8.834209999999999,7.314116025390625C8.97703,7.314116025390625,9.11519,7.334086025390625,9.24605,7.371366025390625L13.753,2.864373025390625C13.9483,2.669110325390625,14.2649,2.669110325390625,14.4602,2.864373025390625C14.6554,3.059635025390625,14.6554,3.376217025390625,14.4602,3.571479025390625L10.06916,7.962476025390625C10.23631,8.204386025390626,10.334209999999999,8.497826025390625,10.334209999999999,8.814116025390625C10.334209999999999,9.642546025390626,9.66264,10.314116025390625,8.834209999999999,10.314116025390625C8.51791,10.314116025390625,8.22448,10.216226025390625,7.98256,10.049076025390626L3.853554,14.178126025390625C3.658291,14.373326025390625,3.341709,14.373326025390625,3.146447,14.178126025390625ZM7.67736,19.188526025390626C7.4821,18.993226025390626,7.4821,18.676626025390625,7.67736,18.481426025390626L9.9804,16.178326025390625C9.88669,15.982526025390625,9.834209999999999,15.763226025390624,9.834209999999999,15.531626025390626C9.834209999999999,14.703226025390626,10.50578,14.031626025390626,11.33421,14.031626025390626C11.56579,14.031626025390626,11.78511,14.084126025390624,11.98093,14.177826025390624L13.9804,12.178356025390626C13.8867,11.982536025390624,13.8342,11.763216025390625,13.8342,11.531636025390625C13.8342,10.703206025390624,14.5058,10.031636025390625,15.3342,10.031636025390625C15.5658,10.031636025390625,15.7851,10.084116025390625,15.9809,10.177826025390626L18.284,7.874796025390625C18.4792,7.679536025390625,18.7958,7.679536025390625,18.9911,7.874796025390625C19.1863,8.070056025390624,19.1863,8.386636025390626,18.9911,8.581906025390625L16.688000000000002,10.884936025390624C16.7817,11.080756025390626,16.8342,11.300066025390626,16.8342,11.531636025390625C16.8342,12.360066025390624,16.162599999999998,13.031626025390626,15.3342,13.031626025390626C15.1026,13.031626025390626,14.8833,12.979126025390626,14.6875,12.885426025390625L12.68803,14.884926025390625C12.78174,15.080726025390625,12.83421,15.300026025390626,12.83421,15.531626025390626C12.83421,16.360026025390624,12.16264,17.031626025390626,11.33421,17.031626025390626C11.10264,17.031626025390626,10.88333,16.979126025390627,10.68751,16.885426025390625L8.38446,19.188526025390626C8.1892,19.383726025390626,7.87262,19.383726025390626,7.67736,19.188526025390626Z stroke-opacity=0 stroke=none>');const y_=()=>m_();var __=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M3.3367688759765626,12.63173C3.5320318759765623,12.82699,3.8486138759765627,12.82699,4.043876875976562,12.63173L11.822052875976562,4.853553C12.017312875976563,4.658291,12.017312875976563,4.341708,11.822052875976562,4.146446C11.626792875976562,3.9511843,11.310202875976563,3.9511843,11.114942875976563,4.146446L3.3367688759765626,11.92462C3.1415071759765625,12.11988,3.1415071759765625,12.43647,3.3367688759765626,12.63173ZM5.001492875976562,17.0351C4.806232875976562,16.8399,4.806232875976562,16.5233,5.001492875976562,16.328L7.304532875976562,14.025C7.210822875976563,13.82916,7.158352875976563,13.60984,7.158352875976563,13.37827C7.158352875976563,12.54984,7.829922875976562,11.87827,8.658352875976561,11.87827C8.889922875976563,11.87827,9.109232875976563,11.93075,9.305052875976562,12.02446L11.304532875976562,10.02498C11.210822875976563,9.82916,11.158352875976561,9.60984,11.158352875976561,9.37827C11.158352875976561,8.54984,11.829922875976562,7.8782700000000006,12.658352875976563,7.8782700000000006C12.889922875976563,7.8782700000000006,13.109232875976563,7.93075,13.305022875976562,8.024460000000001L15.608122875976562,5.72142C15.803322875976562,5.5261499999999995,16.119922875976563,5.5261499999999995,16.315222875976563,5.72142C16.510422875976563,5.9166799999999995,16.510422875976563,6.23326,16.315222875976563,6.42852L14.012122875976562,8.73156C14.105822875976562,8.92738,14.158322875976562,9.1467,14.158322875976562,9.37827C14.158322875976562,10.2067,13.486822875976562,10.87827,12.658352875976563,10.87827C12.426772875976562,10.87827,12.207452875976562,10.82579,12.011642875976563,10.73209L10.012162875976562,12.73156C10.105872875976562,12.92738,10.158352875976561,13.1467,10.158352875976561,13.37827C10.158352875976561,14.2067,9.486772875976563,14.8783,8.658352875976561,14.8783C8.426772875976562,14.8783,8.207452875976562,14.8258,8.011642875976563,14.7321L5.708602875976562,17.0351C5.513342875976562,17.2304,5.196752875976562,17.2304,5.001492875976562,17.0351ZM10.415712875976563,18.328C10.220452875976562,18.5233,9.903862875976563,18.5233,9.708602875976563,18.328C9.513342875976562,18.1328,9.513342875976562,17.816200000000002,9.708602875976563,17.6209L12.304532875976562,15.025C12.210822875976563,14.8292,12.158352875976563,14.6098,12.158352875976563,14.3783C12.158352875976563,13.54984,12.829922875976562,12.87827,13.658322875976562,12.87827C13.889922875976563,12.87827,14.109222875976563,12.93075,14.305022875976562,13.02446L17.486822875976564,9.84274C17.682022875976564,9.64747,17.99862287597656,9.64747,18.19392287597656,9.84274C18.38912287597656,10.038,18.38912287597656,10.35458,18.19392287597656,10.54984L15.012122875976562,13.73156C15.105822875976562,13.92738,15.158322875976562,14.1467,15.158322875976562,14.3783C15.158322875976562,15.2067,14.486822875976562,15.8783,13.658322875976562,15.8783C13.426822875976562,15.8783,13.207422875976562,15.8258,13.011642875976563,15.7321L10.415712875976563,18.328Z stroke-opacity=0 stroke=none>');const v_=()=>__();var b_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M13.1889,6C12.98303,6.582599999999999,12.42741,7,11.7743,7C11.12119,7,10.565570000000001,6.582599999999999,10.35965,6L3.5,6C3.223857,6,3,5.77614,3,5.5C3,5.22386,3.223857,5,3.5,5L10.35965,5C10.565570000000001,4.417404,11.12119,4,11.7743,4C12.42741,4,12.98303,4.417404,13.1889,5L18.5,5C18.7761,5,19,5.22386,19,5.5C19,5.77614,18.7761,6,18.5,6L13.1889,6ZM3,8.5C3,8.22386,3.223857,8,3.5,8L18.5,8C18.7761,8,19,8.22386,19,8.5C19,8.77614,18.7761,9,18.5,9L3.5,9C3.223857,9,3,8.77614,3,8.5ZM3.278549,11.5C3.278549,11.22386,3.502407,11,3.778549,11L18.7785,11C19.0547,11,19.2785,11.22386,19.2785,11.5C19.2785,11.77614,19.0547,12,18.7785,12L3.778549,12C3.502407,12,3.278549,11.77614,3.278549,11.5ZM3.139267,14.5C3.139267,14.2239,3.363124,14,3.6392670000000003,14L18.6393,14C18.915399999999998,14,19.1393,14.2239,19.1393,14.5C19.1393,14.7761,18.915399999999998,15,18.6393,15L3.6392670000000003,15C3.363124,15,3.139267,14.7761,3.139267,14.5ZM13.1889,18C12.98303,18.5826,12.42741,19,11.7743,19C11.12119,19,10.565570000000001,18.5826,10.35965,18L3.778549,18C3.502407,18,3.278549,17.7761,3.278549,17.5C3.278549,17.2239,3.502407,17,3.778549,17L10.35965,17C10.565570000000001,16.4174,11.12119,16,11.7743,16C12.42741,16,12.98303,16.4174,13.1889,17L18.7785,17C19.0547,17,19.2785,17.2239,19.2785,17.5C19.2785,17.7761,19.0547,18,18.7785,18L13.1889,18Z stroke-opacity=0 stroke=none>');const C_=()=>b_();var x_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M4.91465,6C4.70873,6.582599999999999,4.15311,7,3.5,7C2.671573,7,2,6.32843,2,5.5C2,4.671573,2.671573,4,3.5,4C4.15311,4,4.70873,4.417404,4.91465,5L18.2257,5C18.5018,5,18.7257,5.22386,18.7257,5.5C18.7257,5.77614,18.5018,6,18.2257,6L4.91465,6ZM2.7257,8.5C2.7257,8.22386,2.949558,8,3.2257,8L18.2257,8C18.5018,8,18.7257,8.22386,18.7257,8.5C18.7257,8.77614,18.5018,9,18.2257,9L3.2257,9C2.949558,9,2.7257,8.77614,2.7257,8.5ZM3.00425,11.5C3.00425,11.22386,3.22811,11,3.50425,11L18.5042,11C18.7804,11,19.0042,11.22386,19.0042,11.5C19.0042,11.77614,18.7804,12,18.5042,12L3.50425,12C3.22811,12,3.00425,11.77614,3.00425,11.5ZM2.864967,14.5C2.864967,14.2239,3.08882,14,3.36497,14L18.365,14C18.6411,14,18.865,14.2239,18.865,14.5C18.865,14.7761,18.6411,15,18.365,15L3.36497,15C3.08882,15,2.864967,14.7761,2.864967,14.5ZM20,17.5C20,18.328400000000002,19.3284,19,18.5,19C17.846899999999998,19,17.2913,18.5826,17.0854,18L3.50425,18C3.22811,18,3.00425,17.7761,3.00425,17.5C3.00425,17.2239,3.22811,17,3.50425,17L17.0854,17C17.2913,16.4174,17.846899999999998,16,18.5,16C19.3284,16,20,16.671599999999998,20,17.5Z stroke-opacity=0 stroke=none>');const w_=()=>x_();var L_=N('<svg class=icon-overlay viewBox="0 0 22 22"><ellipse cx=10.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=17.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=10.5 cy=11.5 rx=7 ry=7 fill-opacity=0 stroke-opacity=1 fill=none stroke-width=1></ellipse><ellipse cx=10.5 cy=11.5 rx=5 ry=5 fill-opacity=0 stroke-opacity=1 fill=none stroke-width=1></ellipse><ellipse cx=10.5 cy=11.5 rx=3 ry=3 fill-opacity=0 stroke-opacity=1 fill=none stroke-width=1>');const $_=()=>L_();var S_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M3,7.32468C5.90649,3.3893050000000002,11.49833,2.81306,14.6674,6.31944C14.9056,6.1554199999999994,15.192,6.05979,15.5,6.05979C15.845,6.05979,16.1628,6.17974,16.4162,6.381349999999999L18.4509,4.23827L19,4.816615L16.8945,7.03429C16.962600000000002,7.21075,17,7.40319,17,7.60463C17,8.45782,16.328400000000002,9.14947,15.5,9.14947C14.6716,9.14947,14,8.45782,14,7.60463C14,7.36402,14.0534,7.13625,14.1487,6.93322C11.32695,3.748365,6.25159,4.253956,3.612785,7.82695L3,7.32468ZM14.09,15.4717C15.7427,13.78985,16.244500000000002,11.524740000000001,15.5633,9.30134L15.5618,9.30134L16.3012,9.0502C17.072400000000002,11.56646,16.497700000000002,14.158,14.6282,16.0599C12.28737,18.442,8.62386,18.6988,6.41348,16.4501C4.5526,14.5572,4.52076,11.19671,6.36766,9.3177C7.89069,7.76754,10.07544,7.706189999999999,11.56741,9.22363C11.95453,9.61742,12.24817,10.08363,12.43369,10.57677L14.1451,8.77421L14.6942,9.35256L12.64982,11.50582C12.65827,11.59712,12.66295,11.68839,12.66378,11.77936C12.87398,12.04523,13,12.38451,13,12.7541C13,13.60729,12.32843,14.2989,11.5,14.2989C10.67157,14.2989,10,13.60729,10,12.7541C10,11.90091,10.67157,11.20926,11.5,11.20926C11.60387,11.20926,11.70528,11.220130000000001,11.8032,11.240829999999999L11.81763,11.22564C11.69858,10.71874,11.42858,10.21929,11.0284,9.81179C9.844000000000001,8.60765,8.136890000000001,8.65592,6.90822,9.90586C5.37975,11.460930000000001,5.40693,14.288,6.95404,15.8619C8.84598,17.7867,12.03496,17.5626,14.09,15.4717Z stroke-opacity=0 stroke=none>');const k_=()=>S_();var A_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M4,17.0854L4,3.5C4,3.223858,4.22386,3,4.5,3C4.77614,3,5,3.223858,5,3.5L5,10L7.57584,10L9.8127,4.46359C9.91614,4.20756,10.20756,4.08386,10.46359,4.1873000000000005C10.71963,4.29075,10.84333,4.58216,10.73988,4.8382000000000005L8.65438,10L11.08535,10C11.29127,9.4174,11.84689,9,12.5,9C12.65154,9,12.79784,9.02247,12.93573,9.06427L16.6464,5.35355C16.8417,5.15829,17.1583,5.15829,17.3536,5.35355C17.5488,5.54882,17.5488,5.8654,17.3536,6.06066L13.7475,9.66675C13.907,9.90508,14,10.19168,14,10.5C14,11.15311,13.5826,11.70873,13,11.91465L13,14.3638L18.3714,12.1936C18.6274,12.09015,18.918799999999997,12.21385,19.0222,12.46989C19.1257,12.72592,19.002,13.0173,18.746000000000002,13.1208L13,15.4423L13,18L19.5,18C19.7761,18,20,18.2239,20,18.5C20,18.7761,19.7761,19,19.5,19L5.91465,19C5.70873,19.5826,5.15311,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.846899999999998,3.417404,17.2913,4,17.0854ZM6.3729499999999994,17.0413L12,14.7678L12,11.91465C11.88136,11.87271,11.76956,11.81627,11.66675,11.74746L6.3729499999999994,17.0413ZM12,15.8463L6.6694700000000005,18L12,18L12,15.8463ZM6.38629,15.6137L8.250350000000001,11L11,11L6.38629,15.6137ZM5,11L7.17182,11L5,16.3754L5,11Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const M_=()=>A_();var T_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M17,4.5C17,5.32843,16.328400000000002,6,15.5,6C15.0931,6,14.7241,5.83802,14.4539,5.57503L5.98992,8.32515C5.99658,8.38251,6,8.440850000000001,6,8.5C6,9.15311,5.582599999999999,9.70873,5,9.91465L5,11.08535C5.42621,11.236,5.763999999999999,11.57379,5.91465,12L19.5,12C19.7761,12,20,12.22386,20,12.5C20,12.77614,19.7761,13,19.5,13L5.91465,13C5.70873,13.5826,5.15311,14,4.5,14C3.671573,14,3,13.3284,3,12.5C3,11.84689,3.417404,11.29127,4,11.08535L4,9.91465C3.417404,9.70873,3,9.15311,3,8.5C3,7.67157,3.671573,7,4.5,7C4.90411,7,5.2709,7.15981,5.5406200000000005,7.41967L14.0093,4.66802C14.0032,4.6128599999999995,14,4.5568,14,4.5C14,3.671573,14.6716,3,15.5,3C16.328400000000002,3,17,3.671573,17,4.5ZM4,15.5C4,15.2239,4.22386,15,4.5,15L19.5,15C19.7761,15,20,15.2239,20,15.5C20,15.7761,19.7761,16,19.5,16L4.5,16C4.22386,16,4,15.7761,4,15.5ZM4,18.5C4,18.2239,4.22386,18,4.5,18L19.5,18C19.7761,18,20,18.2239,20,18.5C20,18.7761,19.7761,19,19.5,19L4.5,19C4.22386,19,4,18.7761,4,18.5Z stroke-opacity=0 stroke=none>');const P_=()=>T_();var O_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M20,3.5C20,4.15311,19.5826,4.70873,19,4.91465L19,18.5C19,18.7761,18.7761,19,18.5,19L4.91465,19C4.70873,19.5826,4.15311,20,3.5,20C2.671573,20,2,19.3284,2,18.5C2,17.846899999999998,2.417404,17.2913,3,17.0854L3,3.5C3,3.22386,3.22386,3,3.5,3L17.0854,3C17.2913,2.417404,17.846899999999998,2,18.5,2C19.3284,2,20,2.671573,20,3.5ZM17.0854,4C17.236,4.42621,17.5738,4.763999999999999,18,4.91465L18,8L14,8L14,4L17.0854,4ZM13,4L13,8L9,8L9,4L13,4ZM13,9L9,9L9,13L13,13L13,9ZM13,14L9,14L9,18L13,18L13,14ZM14,18L14,14L18,14L18,18L14,18ZM18,13L14,13L14,9L18,9L18,13ZM4.91465,18C4.763999999999999,17.5738,4.42621,17.236,4,17.0854L4,14L8,14L8,18L4.91465,18ZM4,8L4,4L8,4L8,8L4,8ZM8,9L8,13L4,13L4,9L8,9Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const I_=()=>O_();var E_=N('<svg class=icon-overlay viewBox="0 0 22 22"><ellipse cx=10.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=17.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=10.5 cy=11.5 rx=7 ry=7 fill-opacity=0 fill=none stroke-opacity=1 stroke-width=1>');const D_=()=>E_();var R_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11.57625,6.9981C11.55099,6.999359999999999,11.52557,7,11.5,7C11.34,7,11.18584,6.97495,11.04125,6.9285499999999995L5.55401,16.4327C5.713760000000001,16.5905,5.83826,16.7839,5.91465,17L16.0854,17C16.2187,16.622700000000002,16.4987,16.314700000000002,16.8569,16.1445L11.57625,6.9981ZM12.50759,6.611219999999999C12.81005,6.336790000000001,13,5.94058,13,5.5C13,4.671573,12.32843,4,11.5,4C10.67157,4,10,4.671573,10,5.5C10,5.80059,10.08841,6.08052,10.24066,6.31522L4.64514,16.0069C4.59738,16.002299999999998,4.54896,16,4.5,16C3.671573,16,3,16.671599999999998,3,17.5C3,18.328400000000002,3.671573,19,4.5,19C5.15311,19,5.70873,18.5826,5.91465,18L16.0854,18C16.2913,18.5826,16.846899999999998,19,17.5,19C18.328400000000002,19,19,18.328400000000002,19,17.5C19,16.8365,18.5691,16.2735,17.971899999999998,16.075699999999998L12.50759,6.611219999999999Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const B_=()=>R_();var F_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M19,4.5C19,5.15311,18.5826,5.70873,18,5.91465L18,18.5C18,18.7761,17.7761,19,17.5,19L5.91465,19C5.70873,19.5826,5.15311,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.846899999999998,3.417404,17.2913,4,17.0854L4,4.5C4,4.22386,4.22386,4,4.5,4L16.0854,4C16.2913,3.417404,16.846899999999998,3,17.5,3C18.328400000000002,3,19,3.671573,19,4.5ZM5,5L16.0854,5C16.236,5.42621,16.5738,5.763999999999999,17,5.91465L17,18L5.91465,18C5.763999999999999,17.5738,5.42621,17.236,5,17.0854L5,5Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const z_=()=>F_();var N_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M19.6401,7.99355C20.4028,7.92291,21,7.2811900000000005,21,6.5C21,5.671573,20.3284,5,19.5,5C18.8469,5,18.2913,5.417404,18.0854,6L7.62067,6C7.34453,6,7.12067,6.22386,7.12067,6.5C7.12067,6.5479,7.12741,6.59423,7.13999,6.63809L3.2294099999999997,15.0243C2.530138,15.1517,2,15.764,2,16.5C2,17.328400000000002,2.671573,18,3.5,18C4.15311,18,4.70873,17.5826,4.91465,17L14.5963,17C14.6456,17.076,14.7162,17.1396,14.8044,17.1807C15.0546,17.2974,15.3521,17.1891,15.4688,16.9388L19.6401,7.99355ZM14.7896,16.0293L18.6551,7.739599999999999C18.3942,7.56144,18.1925,7.30307,18.0854,7L8.0746,7L4.25044,15.2009C4.55701,15.3784,4.79493,15.6613,4.91465,16L14.6207,16C14.68,16,14.7368,16.0103,14.7896,16.0293Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const K_=()=>N_();var H_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M8.134443814697265,7.494615087890625L8.764323814697265,7.494615087890625L8.764323814697265,3.414215087890625L8.310223814697267,3.414215087890625L7.294603814697266,4.005035087890625L7.289713814697266,4.634915087890625L8.134443814697265,4.149892087890625L8.134443814697265,7.494615087890625ZM18.832003814697266,6.933095087890624Q19.004603814697266,6.635245087890625,19.004603814697266,6.2543850878906255Q19.004603814697266,5.884915087890625,18.845103814697264,5.593575087890625Q18.685503814697267,5.3006050878906255,18.399103814697266,5.136225087890625Q18.114303814697266,4.9702050878906245,17.754603814697266,4.9653250878906245L18.820603814697265,3.840647087890625L18.820603814697265,3.414215087890625L16.519203814697264,3.414215087890625L16.519203814697264,3.939931087890625L18.050803814697264,3.939931087890625L16.719403814697266,5.334785087890625L17.074203814697263,5.7205350878906245Q17.254903814697265,5.484525087890625,17.619503814697268,5.484525087890625Q17.980803814697268,5.484525087890625,18.187503814697266,5.689605087890625Q18.394203814697267,5.894685087890625,18.394203814697267,6.2543850878906255Q18.394203814697267,6.604315087890625,18.187503814697266,6.822415087890625Q17.980803814697268,7.0405150878906255,17.640603814697265,7.0405150878906255Q17.334603814697267,7.0405150878906255,17.124703814697266,6.890775087890625Q16.914703814697265,6.739415087890626,16.820303814697265,6.469225087890624L16.354803814697263,6.744295087890626Q16.480103814697266,7.125155087890625,16.821903814697265,7.341625087890625Q17.165403814697264,7.559725087890625,17.640603814697265,7.559725087890625Q18.039403814697266,7.559725087890625,18.348603814697267,7.393705087890625Q18.659503814697267,7.229315087890625,18.832003814697266,6.933095087890624ZM10.000003814697266,10.634915087890626C10.000003814697266,11.024655087890626,9.851363814697265,11.379685087890625,9.607683814697266,11.646395087890625L12.168903814697266,15.171615087890626C12.275403814697265,15.147615087890625,12.386203814697266,15.134915087890626,12.500003814697266,15.134915087890626C12.596503814697266,15.134915087890626,12.690803814697265,15.144015087890624,12.782303814697265,15.161415087890624L16.108803814697268,11.196955087890625C16.038703814697264,11.023375087890624,16.000003814697266,10.833655087890625,16.000003814697266,10.634915087890626C16.000003814697266,9.806495087890625,16.671603814697264,9.134915087890626,17.500003814697266,9.134915087890626C18.328403814697264,9.134915087890626,19.000003814697266,9.806495087890625,19.000003814697266,10.634915087890626C19.000003814697266,11.463345087890625,18.328403814697264,12.134915087890626,17.500003814697266,12.134915087890626C17.239503814697265,12.134915087890626,16.994503814697268,12.068495087890625,16.781003814697264,11.951675087890624L13.654703814697266,15.677415087890624C13.870303814697266,15.937215087890625,14.000003814697266,16.270915087890625,14.000003814697266,16.634915087890626C14.000003814697266,17.463315087890624,13.328403814697266,18.134915087890626,12.500003814697266,18.134915087890626C11.671573814697265,18.134915087890626,11.000003814697266,17.463315087890624,11.000003814697266,16.634915087890626C11.000003814697266,16.284415087890626,11.120193814697265,15.962015087890626,11.321603814697266,15.706715087890625L8.715393814697265,12.119565087890624C8.645053814697267,12.129685087890625,8.573143814697266,12.134915087890626,8.500003814697266,12.134915087890626C8.162103814697264,12.134915087890626,7.8503038146972655,12.023195087890626,7.599523814697266,11.834665087890626L4.505583814697266,15.521915087890624C4.809213814697266,15.796415087890624,5.000003814697266,16.193415087890624,5.000003814697266,16.634915087890626C5.000003814697266,17.463315087890624,4.328433814697266,18.134915087890626,3.5000038146972656,18.134915087890626C2.6715768146972656,18.134915087890626,2.0000038146972656,17.463315087890624,2.0000038146972656,16.634915087890626C2.0000038146972656,15.806515087890626,2.6715768146972656,15.134915087890626,3.5000038146972656,15.134915087890626C3.508253814697266,15.134915087890626,3.5164838146972657,15.135015087890626,3.524703814697266,15.135115087890625L7.033823814697266,10.953115087890625C7.011673814697265,10.850565087890626,7.000003814697266,10.744105087890624,7.000003814697266,10.634915087890626C7.000003814697266,9.806495087890625,7.671573814697266,9.134915087890626,8.500003814697266,9.134915087890626C9.328433814697267,9.134915087890626,10.000003814697266,9.806495087890625,10.000003814697266,10.634915087890626Z stroke-opacity=0 stroke=none>');const W_=()=>H_();var U_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M8.13444,7.494615087890625L8.76432,7.494615087890625L8.76432,3.414215087890625L8.310220000000001,3.414215087890625L7.2946,4.005035087890625L7.28971,4.634915087890625L8.13444,4.149892087890625L8.13444,7.494615087890625ZM18.832,6.929835087890625Q19.0046,6.635245087890625,19.0046,6.2543850878906255Q19.0046,5.889805087890625,18.8451,5.5952050878906245Q18.6855,5.3006050878906255,18.3975,5.132965087890625Q18.1094,4.9653250878906245,17.7399,4.9653250878906245Q17.435499999999998,4.9653250878906245,17.1556,5.149245087890625L17.2793,3.939931087890625L18.8304,3.939931087890625L18.8304,3.414215087890625L16.7406,3.414215087890625L16.5094,5.665195087890625L17.0156,5.795405087890625Q17.095399999999998,5.655425087890626,17.2516,5.570795087890625Q17.4095,5.484525087890625,17.6357,5.484525087890625Q17.9694,5.484525087890625,18.1842,5.697745087890625Q18.4007,5.909335087890625,18.4007,6.2543850878906255Q18.4007,6.604315087890625,18.1842,6.822415087890625Q17.9694,7.0405150878906255,17.6292,7.0405150878906255Q17.3298,7.0405150878906255,17.119799999999998,6.890775087890625Q16.9098,6.739415087890626,16.825200000000002,6.474115087890625L16.3597,6.749175087890626Q16.470399999999998,7.110505087890624,16.807299999999998,7.335115087890625Q17.144199999999998,7.559725087890625,17.6292,7.559725087890625Q18.0296,7.559725087890625,18.3438,7.392075087890625Q18.6595,7.224435087890625,18.832,6.929835087890625ZM10,10.634915087890626C10,11.024655087890626,9.85136,11.379685087890625,9.60768,11.646395087890625L12.1689,15.171615087890626C12.2754,15.147615087890625,12.3862,15.134915087890626,12.5,15.134915087890626C12.5965,15.134915087890626,12.6908,15.144015087890624,12.7823,15.161415087890624L16.108800000000002,11.196955087890625C16.0387,11.023375087890624,16,10.833655087890625,16,10.634915087890626C16,9.806495087890625,16.671599999999998,9.134915087890626,17.5,9.134915087890626C18.3284,9.134915087890626,19,9.806495087890625,19,10.634915087890626C19,11.463345087890625,18.3284,12.134915087890626,17.5,12.134915087890626C17.2395,12.134915087890626,16.994500000000002,12.068505087890625,16.781,11.951675087890624L13.6547,15.677415087890624C13.8703,15.937215087890625,14,16.270915087890625,14,16.634915087890626C14,17.463315087890624,13.3284,18.134915087890626,12.5,18.134915087890626C11.67157,18.134915087890626,11,17.463315087890624,11,16.634915087890626C11,16.284415087890626,11.12019,15.962015087890626,11.3216,15.706715087890625L8.71539,12.119565087890624C8.645050000000001,12.129685087890625,8.57314,12.134915087890626,8.5,12.134915087890626C8.162099999999999,12.134915087890626,7.8503,12.023195087890626,7.59952,11.834665087890626L4.50558,15.521915087890624C4.80921,15.796415087890624,5,16.193415087890624,5,16.634915087890626C5,17.463315087890624,4.32843,18.134915087890626,3.5,18.134915087890626C2.671573,18.134915087890626,2,17.463315087890624,2,16.634915087890626C2,15.806515087890626,2.671573,15.134915087890626,3.5,15.134915087890626C3.5082500000000003,15.134915087890626,3.51648,15.135015087890626,3.5247,15.135115087890625L7.03382,10.953115087890625C7.01167,10.850565087890626,7,10.744105087890624,7,10.634915087890626C7,9.806495087890625,7.67157,9.134915087890626,8.5,9.134915087890626C9.32843,9.134915087890626,10,9.806495087890625,10,10.634915087890626Z stroke-opacity=0 stroke=none>');const Z_=()=>U_();var Y_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M18.8532,7.020985087890625Q19.0257,6.734525087890625,19.0257,6.369945087890625Q19.0257,6.020005087890625,18.8499,5.754705087890625Q18.6758,5.489415087890626,18.3649,5.339675087890625Q18.5944,5.209465087890625,18.7214,4.994615087890625Q18.8499,4.779775087890625,18.8499,4.5193550878906255Q18.8499,4.2003480878906245,18.7002,3.951324087890625Q18.5505,3.700673087890625,18.277,3.557444087890625Q18.0052,3.414215087890625,17.6455,3.414215087890625Q17.285800000000002,3.414215087890625,17.0107,3.557444087890625Q16.7357,3.700673087890625,16.5843,3.951324087890625Q16.4346,4.2003480878906245,16.4346,4.5193550878906255Q16.4346,4.779775087890625,16.561500000000002,4.994615087890625Q16.6901,5.209465087890625,16.919600000000003,5.339675087890625Q16.6055,5.489415087890626,16.4297,5.757965087890625Q16.255499999999998,6.024895087890625,16.255499999999998,6.369945087890625Q16.255499999999998,6.734525087890625,16.4297,7.020985087890625Q16.6055,7.305815087890625,16.919600000000003,7.465325087890625Q17.2354,7.624825087890625,17.6455,7.624825087890625Q18.0557,7.624825087890625,18.3682,7.465325087890625Q18.6807,7.305815087890625,18.8532,7.020985087890625ZM8.76432,7.559725087890625L8.13444,7.559725087890625L8.13444,4.214996087890625L7.28971,4.700025087890625L7.2946,4.070139087890625L8.310220000000001,3.479319087890625L8.76432,3.479319087890625L8.76432,7.559725087890625ZM17.1816,4.955555087890625Q17.0042,4.784655087890625,17.0042,4.5095950878906255Q17.0042,4.229645087890625,17.18,4.057119087890625Q17.355800000000002,3.884592087890625,17.6455,3.884592087890625Q17.935200000000002,3.884592087890625,18.1077,4.057119087890625Q18.2803,4.229645087890625,18.2803,4.5095950878906255Q18.2803,4.784655087890625,18.1045,4.955555087890625Q17.930300000000003,5.124825087890625,17.6455,5.124825087890625Q17.3607,5.124825087890625,17.1816,4.955555087890625ZM18.2217,5.7953950878906255Q18.4398,6.005365087890625,18.4398,6.3552950878906245Q18.4398,6.705235087890625,18.2217,6.915195087890625Q18.0052,7.125155087890625,17.6455,7.125155087890625Q17.285800000000002,7.125155087890625,17.067700000000002,6.915195087890625Q16.849600000000002,6.705235087890625,16.849600000000002,6.3552950878906245Q16.849600000000002,6.005365087890625,17.064500000000002,5.7953950878906255Q17.2793,5.585435087890625,17.6455,5.585435087890625Q18.0052,5.585435087890625,18.2217,5.7953950878906255ZM9.60768,11.711495087890626C9.85136,11.444785087890626,10,11.089765087890626,10,10.700025087890625C10,9.871595087890626,9.32843,9.200025087890625,8.5,9.200025087890625C7.67157,9.200025087890625,7,9.871595087890626,7,10.700025087890625C7,10.809205087890625,7.01167,10.915665087890625,7.03382,11.018215087890624L3.5247,15.200215087890625C3.51648,15.200115087890625,3.5082500000000003,15.200015087890625,3.5,15.200015087890625C2.671573,15.200015087890625,2,15.871615087890625,2,16.700015087890627C2,17.528415087890625,2.671573,18.200015087890627,3.5,18.200015087890627C4.32843,18.200015087890627,5,17.528415087890625,5,16.700015087890627C5,16.258515087890625,4.80921,15.861515087890625,4.50558,15.587015087890626L7.59952,11.899765087890625C7.8503,12.088295087890625,8.162099999999999,12.200025087890625,8.5,12.200025087890625C8.57314,12.200025087890625,8.645050000000001,12.194785087890626,8.71539,12.184675087890625L11.3216,15.771815087890625C11.12019,16.027215087890625,11,16.349515087890623,11,16.700015087890627C11,17.528415087890625,11.67157,18.200015087890627,12.5,18.200015087890627C13.3284,18.200015087890627,14,17.528415087890625,14,16.700015087890627C14,16.336015087890623,13.8703,16.002315087890626,13.6547,15.742515087890625L16.781,12.016775087890625C16.994500000000002,12.133605087890626,17.2395,12.200025087890625,17.5,12.200025087890625C18.3284,12.200025087890625,19,11.528445087890624,19,10.700025087890625C19,9.871595087890626,18.3284,9.200025087890625,17.5,9.200025087890625C16.671599999999998,9.200025087890625,16,9.871595087890626,16,10.700025087890625C16,10.898765087890624,16.0387,11.088475087890625,16.108800000000002,11.262055087890625L12.7823,15.226515087890625C12.6908,15.209115087890625,12.5965,15.200015087890625,12.5,15.200015087890625C12.3862,15.200015087890625,12.2754,15.212715087890626,12.1689,15.236715087890625L9.60768,11.711495087890626Z stroke-opacity=0 stroke=none>');const G_=()=>Y_();var V_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M9.474616630859375,7.494615087890625L8.844736630859375,7.494615087890625L8.844736630859375,4.149892087890625L8.000006630859374,4.634915087890625L8.004896630859374,4.005035087890625L9.020516630859376,3.414215087890625L9.474616630859375,3.414215087890625L9.474616630859375,7.494615087890625ZM18.529296630859378,4.8318550878906255Q18.307996630859375,5.028795087890625,18.122396630859377,5.385245087890625Q17.868496630859376,5.019035087890625,17.629196630859376,4.8269750878906255Q17.389996630859375,4.634915087890625,17.168596630859376,4.634915087890625Q16.794296630859375,4.634915087890625,16.522496630859376,4.976715087890625Q16.252296630859377,5.3168850878906255,16.252296630859377,5.7856350878906255Q16.252296630859377,6.218575087890625,16.502896630859375,6.521315087890625Q16.755196630859373,6.822415087890625,17.114896630859377,6.822415087890625Q17.368796630859375,6.822415087890625,17.588596630859374,6.625475087890624Q17.809896630859377,6.428535087890625,17.998696630859374,6.0688350878906245Q18.249396630859373,6.439935087890625,18.488596630859377,6.631985087890625Q18.727896630859377,6.822415087890625,18.952496630859375,6.822415087890625Q19.326796630859373,6.822415087890625,19.596996630859376,6.482245087890625Q19.868796630859375,6.140455087890626,19.868796630859375,5.671705087890626Q19.868796630859375,5.238755087890625,19.618196630859376,4.937655087890625Q19.367496630859375,4.634915087890625,19.006196630859375,4.634915087890625Q18.750696630859377,4.634915087890625,18.529296630859378,4.8318550878906255ZM18.337296630859377,5.674955087890625L18.278696630859375,5.596835087890625Q18.449596630859375,5.272935087890625,18.622096630859374,5.1101750878906245Q18.794596630859374,4.947415087890625,18.967096630859373,4.947415087890625Q19.194996630859375,4.947415087890625,19.346396630859374,5.1345950878906255Q19.497696630859377,5.320135087890625,19.497696630859377,5.598455087890625Q19.497696630859377,5.8914250878906245,19.360996630859376,6.096505087890625Q19.224296630859374,6.301585087890626,19.027396630859375,6.301585087890626Q18.915096630859374,6.301585087890626,18.742496630859375,6.146965087890624Q18.569996630859375,5.992335087890625,18.337296630859377,5.674955087890625ZM17.785496630859377,5.779125087890625L17.842496630859372,5.857245087890625Q17.668296630859373,6.186025087890625,17.495796630859374,6.348785087890625Q17.324896630859374,6.509915087890625,17.153996630859375,6.509915087890625Q16.926096630859377,6.509915087890625,16.774796630859377,6.324375087890624Q16.623396630859375,6.137195087890625,16.623396630859375,5.858875087890625Q16.623396630859375,5.565905087890625,16.761696630859376,5.360825087890625Q16.900096630859373,5.1557550878906255,17.095396630859376,5.1557550878906255Q17.228896630859374,5.1557550878906255,17.365596630859375,5.2778250878906245Q17.502296630859377,5.399895087890625,17.785496630859377,5.779125087890625ZM10.710296630859375,10.634915087890626C10.710296630859375,11.024655087890626,10.561656630859375,11.379685087890625,10.317976630859375,11.646395087890625L12.879196630859376,15.171615087890626C12.985696630859374,15.147615087890625,13.096496630859376,15.134915087890626,13.210296630859375,15.134915087890626C13.306796630859376,15.134915087890626,13.401096630859374,15.144015087890624,13.492596630859374,15.161415087890624L16.819096630859377,11.196955087890625C16.748996630859374,11.023375087890624,16.710296630859375,10.833655087890625,16.710296630859375,10.634915087890626C16.710296630859375,9.806495087890625,17.381896630859373,9.134915087890626,18.210296630859375,9.134915087890626C19.038696630859373,9.134915087890626,19.710296630859375,9.806495087890625,19.710296630859375,10.634915087890626C19.710296630859375,11.463345087890625,19.038696630859373,12.134915087890626,18.210296630859375,12.134915087890626C17.949796630859375,12.134915087890626,17.704796630859377,12.068505087890625,17.491296630859374,11.951675087890624L14.364996630859375,15.677415087890624C14.580596630859375,15.937215087890625,14.710296630859375,16.270915087890625,14.710296630859375,16.634915087890626C14.710296630859375,17.463315087890624,14.038696630859375,18.134915087890626,13.210296630859375,18.134915087890626C12.381866630859374,18.134915087890626,11.710296630859375,17.463315087890624,11.710296630859375,16.634915087890626C11.710296630859375,16.284415087890626,11.830486630859374,15.962015087890626,12.031896630859375,15.706715087890625L9.425686630859374,12.119565087890624C9.355346630859376,12.129685087890625,9.283436630859375,12.134915087890626,9.210296630859375,12.134915087890626C8.872396630859374,12.134915087890626,8.560596630859376,12.023195087890626,8.309816630859375,11.834665087890626L5.215876630859375,15.521915087890624C5.519506630859375,15.796415087890624,5.710296630859375,16.193415087890624,5.710296630859375,16.634915087890626C5.710296630859375,17.463315087890624,5.038726630859375,18.134915087890626,4.210296630859375,18.134915087890626C3.381869630859375,18.134915087890626,2.710296630859375,17.463315087890624,2.710296630859375,16.634915087890626C2.710296630859375,15.806515087890626,3.381869630859375,15.134915087890626,4.210296630859375,15.134915087890626C4.218546630859375,15.134915087890626,4.226776630859375,15.135015087890626,4.234996630859375,15.135115087890625L7.744116630859375,10.953115087890625C7.721966630859375,10.850565087890626,7.710296630859375,10.744105087890624,7.710296630859375,10.634915087890626C7.710296630859375,9.806495087890625,8.381866630859374,9.134915087890626,9.210296630859375,9.134915087890626C10.038726630859376,9.134915087890626,10.710296630859375,9.806495087890625,10.710296630859375,10.634915087890626Z stroke-opacity=0 stroke=none>');const Q_=()=>V_();var j_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M21,5.5C21,6.32843,20.3284,7,19.5,7C19.4136,7,19.3289,6.99269,19.2465,6.97866L15.6257,15.5086C15.8587,15.7729,16,16.119999999999997,16,16.5C16,17.328400000000002,15.3284,18,14.5,18C13.8469,18,13.2913,17.5826,13.0854,17L3.91465,17C3.70873,17.5826,3.15311,18,2.5,18C1.671573,18,1,17.328400000000002,1,16.5C1,15.6716,1.671573,15,2.5,15C2.5840199999999998,15,2.66643,15.0069,2.74668,15.0202L6.36934,6.48574C6.13933,6.22213,6,5.87733,6,5.5C6,4.671573,6.67157,4,7.5,4C8.15311,4,8.70873,4.417404,8.91465,5L18.0854,5C18.2913,4.417404,18.8469,4,19.5,4C20.3284,4,21,4.671573,21,5.5ZM18.0854,6L8.91465,6C8.892579999999999,6.06243,8.8665,6.12296,8.83672,6.18128L13.9814,15.0921C14.143,15.0325,14.3177,15,14.5,15C14.584,15,14.6664,15.0069,14.7467,15.0202L18.3693,6.48574C18.2462,6.3446,18.149,6.1802,18.0854,6ZM13.2036,15.745L8.0861,6.8811800000000005C7.90605,6.95768,7.70797,7,7.5,7C7.41359,7,7.32888,6.99269,7.24647,6.97866L3.62571,15.5086C3.7512,15.651,3.8501,15.8174,3.91465,16L13.0854,16C13.1169,15.9108,13.1566,15.8255,13.2036,15.745Z stroke-opacity=0 stroke=none>');const q_=()=>j_();var X_=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M5.92159,5.93994C6.04014,5.90529,6.152620000000001,5.85639,6.25704,5.79523L9.12729,9.89437C9.045449999999999,10.07959,9,10.28449,9,10.5C9,10.79522,9.08529,11.07053,9.232569999999999,11.30262L4.97573,16.7511L5.92159,5.93994ZM4.92259,5.8848400000000005C4.38078,5.658659999999999,4,5.1238,4,4.5C4,3.671573,4.67157,3,5.5,3C6.2157,3,6.81433,3.50124,6.96399,4.17183L15.1309,4.88634C15.3654,4.36387,15.8902,4,16.5,4C17.328400000000002,4,18,4.67157,18,5.5C18,6.08983,17.659599999999998,6.60015,17.1645,6.84518L18.4264,14.0018C18.4508,14.0006,18.4753,14,18.5,14C19.3284,14,20,14.6716,20,15.5C20,16.328400000000002,19.3284,17,18.5,17C17.932499999999997,17,17.4386,16.6849,17.183799999999998,16.22L5.99686,18.5979C5.946429999999999,19.3807,5.29554,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.869300000000003,3.389292,17.3295,3.94071,17.1077L4.92259,5.8848400000000005ZM5.72452,17.6334C5.69799,17.596,5.6698,17.5599,5.64004,17.525100000000002L10.01843,11.92103C10.16958,11.97223,10.33155,12,10.5,12C10.80059,12,11.08052,11.91158,11.31522,11.75934L17.0606,15.0765C17.0457,15.1271,17.0335,15.1789,17.023899999999998,15.2317L5.72452,17.6334ZM11.92855,10.95875L17.4349,14.1379L16.1699,6.96356C15.9874,6.92257,15.8174,6.8483,15.6667,6.74746L11.99771,10.4165C11.99923,10.44414,12,10.47198,12,10.5C12,10.66,11.97495,10.814160000000001,11.92855,10.95875ZM10.5,9C10.259830000000001,9,10.03285,9.05644,9.83159,9.15679L7.04919,5.1831L15.0493,5.88302C15.054,5.90072,15.059,5.91829,15.0643,5.9357299999999995L11.56066,9.43934C11.28921,9.16789,10.91421,9,10.5,9Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const J_=()=>X_();var ev=N('<svg viewBox="0 0 22 22"><path d=M4.727219638671875,8.007996215820313L9.973849638671876,2.7629472158203123C10.167279638671875,2.5696791158203123,10.480729638671875,2.5696791158203123,10.674169638671875,2.7629472158203123L13.223329638671874,5.311756215820313C13.416929638671874,5.505236215820313,13.416929638671874,5.8189862158203125,13.223329638671874,6.012466215820313L7.977129638671875,11.257906215820313C7.379859638671875,11.855176215820313,7.407609638671875,12.909396215820312,8.033809638671876,13.535596215820313C8.660409638671876,14.162596215820313,9.713849638671874,14.189996215820312,10.311129638671876,13.591896215820313L15.556929638671875,8.346066215820311C15.750429638671875,8.152526215820313,16.064229638671875,8.152526215820313,16.257629638671872,8.346066215820311L18.806529638671876,10.895266215820312C19.000029638671876,11.088746215820313,19.000029638671876,11.402496215820312,18.806529638671876,11.595976215820313L13.560629638671875,16.841796215820313C11.165619638671876,19.237196215820312,7.197149638671875,19.19919621582031,4.783499638671875,16.785496215820313C2.3698426386718747,14.371896215820312,2.331397638671875,10.403416215820313,4.727219638671875,8.007996215820313ZM12.172299638671875,5.662106215820312L10.323809638671875,3.8136162158203124L5.4287196386718755,8.709096215820313C3.422893638671875,10.714536215820312,3.4549956386718748,14.055196215820313,5.484999638671875,16.08479621582031C7.514609638671875,18.114796215820313,10.855289638671875,18.146496215820314,12.860719638671876,16.141096215820312L15.465629638671874,13.535796215820312L14.090929638671875,12.160756215820312L14.791629638671875,11.460436215820312L16.166229638671876,12.834996215820313L17.755829638671877,11.245226215820313L15.907729638671874,9.396736215820312L11.011839638671875,14.292596215820312C10.042809638671875,15.262396215820312,8.418249638671874,15.243796215820312,7.406019638671875,14.306496215820312L7.333099638671875,14.236296215820312C6.327599638671876,13.230796215820313,6.284009638671876,11.550396215820312,7.276419638671875,10.557586215820312L9.882199638671874,7.952026215820313L8.501079638671875,6.570906215820313L9.201789638671876,5.870186215820313L10.582939638671874,7.251336215820312L12.172299638671875,5.662106215820312Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const tv=e=>(()=>{var n=ev();return ft(n,"class",`icon-overlay ${e??""}`),n})();var nv=N('<svg viewBox="0 0 22 22"><defs><clipPath id=master_svg0_151_615><rect x=0 y=0 width=22 height=22 rx=0></rect></clipPath></defs><g clip-path=url(#master_svg0_151_615)><path d=M19.672,3.0673368C19.4417,2.9354008,19.1463,3.00292252,18.9994,3.2210900000000002L17.4588,5.50622L16.743299999999998,3.781253L13.9915,7.4662L13.9618,7.51108C13.8339,7.72862,13.8936,8.005659999999999,14.1004,8.15391L14.1462,8.183430000000001C14.3683,8.308720000000001,14.6511,8.25001,14.8022,8.047229999999999L16.4907,5.78571L17.246299999999998,7.60713L19.8374,3.7635389999999997L19.8651,3.717088C19.9871,3.484615,19.9023,3.199273,19.672,3.0673368ZM4.79974,8.462530000000001L10.117740000000001,3.252975C10.31381,3.0610145,10.63152,3.0610145,10.82759,3.252975L13.4115,5.78453C13.6076,5.976710000000001,13.6076,6.28833,13.4115,6.4805L8.093869999999999,11.69045C7.48847,12.28368,7.51659,13.3308,8.151309999999999,13.9528C8.786439999999999,14.5755,9.85421,14.6027,10.45961,14.0087L15.7768,8.79831C15.9729,8.60609,16.2909,8.60609,16.487099999999998,8.79831L19.0705,11.33026C19.2667,11.52244,19.2667,11.83406,19.0705,12.02623L13.7533,17.2366C11.32572,19.6158,7.30328,19.578,4.85679,17.1807C2.410298,14.7834,2.371331,10.84174,4.79974,8.462530000000001ZM12.3461,6.1325199999999995L10.47246,4.29654L5.51079,9.15889C3.477674,11.15076,3.510214,14.4688,5.56784,16.4847C7.62506,18.500999999999998,11.01117,18.5325,13.0439,16.540599999999998L15.6842,13.9529L14.2908,12.58718L15.0011,11.89161L16.394399999999997,13.2569L18.0056,11.67786L16.1323,9.84188L11.16985,14.7046C10.18764,15.6679,8.540980000000001,15.6494,7.51498,14.7184L7.44107,14.6487C6.4219,13.65,6.37771,11.98096,7.38362,10.994869999999999L10.02485,8.40693L8.624939999999999,7.03516L9.335180000000001,6.33919L10.73512,7.71099L12.3461,6.1325199999999995Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const rv=e=>(()=>{var n=nv();return ft(n,"class",`icon-overlay ${e??""}`),n})();var iv=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11,17C5.80945,17,3.667717,12.85,3.113386,11.575C2.9622047,11.2,2.9622047,10.8,3.113386,10.425C3.667717,9.15,5.80945,5,11,5C16.165399999999998,5,18.3323,9.15,18.8866,10.425C19.0378,10.8,19.0378,11.2,18.8866,11.575C18.3323,12.85,16.165399999999998,17,11,17ZM4.04567,10.8C3.995276,10.925,3.995276,11.05,4.04567,11.175C4.52441,12.325,6.43937,16,11,16C15.5606,16,17.4756,12.325,17.9543,11.2C18.0047,11.075,18.0047,10.95,17.9543,10.825C17.4756,9.675,15.5606,6,11,6C6.43937,6,4.52441,9.675,4.04567,10.8ZM11,13.5C9.61417,13.5,8.480319999999999,12.375,8.480319999999999,11C8.480319999999999,9.625,9.61417,8.5,11,8.5C12.38583,8.5,13.5197,9.625,13.5197,11C13.5197,12.375,12.38583,13.5,11,13.5ZM11,9.5C10.1685,9.5,9.48819,10.175,9.48819,11C9.48819,11.825,10.1685,12.5,11,12.5C11.8315,12.5,12.51181,11.825,12.51181,11C12.51181,10.175,11.8315,9.5,11,9.5Z stroke-opacity=0 fill-opacity=1>');const ov=()=>iv();var av=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M5.80417,14.9887L4.62563,16.167299999999997C4.43037,16.3625,4.43037,16.6791,4.62563,16.8744C4.82089,17.0696,5.13748,17.0696,5.332739999999999,16.8744L6.62638,15.5807C7.75595,16.290100000000002,9.19328,16.7929,11,16.7929C16.165399999999998,16.7929,18.3323,12.64289,18.8866,11.36789C19.0378,10.99289,19.0378,10.59289,18.8866,10.21789C18.5549,9.45486,17.6456,7.66212,15.8617,6.34545L17.3536,4.853553C17.5488,4.658291,17.5488,4.341709,17.3536,4.146447C17.1583,3.9511845,16.8417,3.9511845,16.6464,4.146447L15.0014,5.7915399999999995C13.9314,5.1969,12.61166,4.792893,11,4.792893C5.80945,4.792893,3.667717,8.94289,3.113386,10.21789C2.9622049,10.59289,2.9622049,10.99289,3.113386,11.36789C3.424435,12.08333,4.2353000000000005,13.70399,5.80417,14.9887ZM7.36012,14.847C8.32327,15.4074,9.52286,15.7929,11,15.7929C15.5606,15.7929,17.4756,12.11789,17.9543,10.99289C18.0047,10.86789,18.0047,10.74289,17.9543,10.61789C17.659,9.90846,16.8171,8.23812,15.1447,7.06241L12.96929,9.23782C13.3134,9.66543,13.5197,10.20642,13.5197,10.79289C13.5197,12.16789,12.38583,13.29289,11,13.29289C10.41596,13.29289,9.87667,13.09308,9.44815,12.75896L7.36012,14.847ZM8.794609999999999,11.99829L6.520099999999999,14.2728C5.06905,13.12119,4.32057,11.628250000000001,4.04567,10.96789C3.995275,10.84289,3.995275,10.71789,4.04567,10.59289C4.52441,9.46789,6.43937,5.79289,11,5.79289C12.28868,5.79289,13.3661,6.086320000000001,14.2596,6.53329L12.19759,8.5953C11.84086,8.40257,11.43271,8.29289,11,8.29289C9.61417,8.29289,8.480319999999999,9.41789,8.480319999999999,10.79289C8.480319999999999,11.22918,8.594470000000001,11.64029,8.794609999999999,11.99829ZM10.16528,12.04183C10.404869999999999,12.20032,10.692070000000001,12.29289,11,12.29289C11.8315,12.29289,12.51181,11.61789,12.51181,10.79289C12.51181,10.48318,12.41593,10.194600000000001,12.25216,9.95494L10.16528,12.04183ZM11.43602,9.35687L9.55616,11.236740000000001C9.512,11.09633,9.48819,10.94724,9.48819,10.79289C9.48819,9.96789,10.1685,9.29289,11,9.29289C11.15142,9.29289,11.29782,9.31528,11.43602,9.35687Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const sv=()=>av();var lv=N('<svg class=icon-overlay viewBox="0 0 22 22"><defs><clipPath id=master_svg0_151_625><rect x=0 y=0 width=22 height=22 rx=0></rect></clipPath></defs><g clip-path=url(#master_svg0_151_625)><path d=M14.5385,9.76923L15.6538,9.76923C16.6538,9.76923,17.4615,10.576920000000001,17.4615,11.576920000000001L17.4615,17.1923C17.4615,18.1923,16.6538,19,15.6538,19L5.80769,19C4.807692,19,4,18.1923,4,17.1923L4,11.576920000000001C4,10.576920000000001,4.807692,9.76923,5.80769,9.76923L7.23077,9.76923L7.23077,7.576919999999999C7.23077,5.61538,8.88462,4,10.88462,4C12.88462,4,14.5385,5.61538,14.5385,7.576919999999999L14.5385,9.76923ZM10.88461,5.15385C9.5,5.15385,8.38461,6.23077,8.38461,7.576919999999999L8.38461,9.76923L13.38462,9.76923L13.38462,7.576919999999999C13.38462,6.23077,12.26923,5.15385,10.88461,5.15385ZM15.6538,17.8462C16,17.8462,16.3077,17.5385,16.3077,17.1923L16.3077,11.576920000000001C16.3077,11.23077,16,10.923079999999999,15.6538,10.923079999999999L5.80769,10.923079999999999C5.46154,10.923079999999999,5.15385,11.23077,5.15385,11.576920000000001L5.15385,17.1923C5.15385,17.5385,5.46154,17.8462,5.80769,17.8462L15.6538,17.8462ZM10.153839999999999,12.65385C10.153839999999999,12.34615,10.42307,12.07692,10.73076,12.07692C11.038450000000001,12.07692,11.307680000000001,12.34615,11.307680000000001,12.65385L11.307680000000001,14.5769C11.307680000000001,14.8846,11.038450000000001,15.1538,10.73076,15.1538C10.42307,15.1538,10.153839999999999,14.8846,10.153839999999999,14.5769L10.153839999999999,12.65385Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const cv=()=>lv();var uv=N('<svg class=icon-overlay viewBox="0 0 22 22"><defs><clipPath id=master_svg0_151_620><rect x=0 y=0 width=22 height=22 rx=0></rect></clipPath></defs><g clip-path=url(#master_svg0_151_620)><path d=M8.38461,9.76923L15.6538,9.76923C16.6538,9.76923,17.4615,10.576920000000001,17.4615,11.576920000000001L17.4615,17.1923C17.4615,18.1923,16.6538,19,15.6538,19L5.80769,19C4.807692,19,4,18.1923,4,17.1923L4,11.576920000000001C4,10.576920000000001,4.807693,9.76923,5.80769,9.76923L7.23077,9.76923L7.23077,7.576919999999999C7.23077,5.61538,8.88462,4,10.88462,4C12.46154,4,13.84615,4.961539,14.3462,6.423080000000001C14.4615,6.73077,14.3077,7.038460000000001,14,7.15385C13.69231,7.26923,13.38461,7.11538,13.26923,6.80769C12.92308,5.80769,11.96154,5.15385,10.88462,5.15385C9.5,5.15385,8.38461,6.23077,8.38461,7.576919999999999L8.38461,9.76923ZM15.6538,17.8462C16,17.8462,16.3077,17.5385,16.3077,17.1923L16.3077,11.576920000000001C16.3077,11.23077,16,10.923079999999999,15.6538,10.923079999999999L5.80769,10.923079999999999C5.46154,10.923079999999999,5.15385,11.23077,5.15385,11.576920000000001L5.15385,17.1923C5.15385,17.5385,5.46154,17.8462,5.80769,17.8462L15.6538,17.8462ZM10.153839999999999,12.65385C10.153839999999999,12.34615,10.42307,12.07692,10.73076,12.07692C11.03846,12.07692,11.307690000000001,12.34615,11.307690000000001,12.65385L11.307690000000001,14.5769C11.307690000000001,14.8846,11.03846,15.1538,10.73076,15.1538C10.42307,15.1538,10.153839999999999,14.8846,10.153839999999999,14.5769L10.153839999999999,12.65385Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const fv=()=>uv();var dv=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M16.966900000000003,8.67144C16.6669,8.67144,16.4247,8.91558,16.4247,9.21802L16.4247,16.631500000000003C16.4247,17.322,16.007199999999997,17.9068,15.5139,17.9068L13.93072,17.9068L13.93072,9.2162C13.93072,8.91741,13.68675,8.67144,13.38855,8.67144C13.09036,8.67144,12.84639,8.91741,12.84639,9.21802L12.84639,17.9068L10.151810000000001,17.9068L10.151810000000001,9.21802C10.151810000000001,8.91741,9.90783,8.67144,9.609639999999999,8.67144C9.31145,8.67144,9.06747,8.91741,9.06747,9.219850000000001L9.06747,17.9068L7.48614,17.9068C6.99277,17.9068,6.5753,17.322,6.5753,16.631500000000003L6.5753,9.21802C6.5753,8.91558,6.333130000000001,8.67144,6.03313,8.67144C5.73313,8.67144,5.49096,8.91558,5.49096,9.21802L5.49096,16.631500000000003C5.49096,17.9378,6.385540000000001,19,7.48614,19L15.512,19C16.6127,19,17.509,17.9378,17.509,16.631500000000003L17.509,9.21802C17.509,8.91558,17.2669,8.67144,16.966900000000003,8.67144ZM18.4578,6.21183L4.542169,6.21183C4.243976,6.21183,4,6.45779,4,6.75841C4,7.05903,4.243976,7.30499,4.542169,7.30499L18.4578,7.30499C18.756,7.30499,19,7.05903,19,6.75841C19,6.45779,18.756,6.21183,18.4578,6.21183ZM8.68072,5.10045L14.3193,5.10045C14.6175,5.10045,14.8614,4.852666,14.8614,4.550225C14.8614,4.247783,14.6175,4,14.3193,4L8.68072,4C8.38253,4,8.13855,4.247783,8.13855,4.550225C8.13855,4.852666,8.38253,5.10045,8.68072,5.10045Z stroke-opacity=0 fill-opacity=1>');const hv=()=>dv();var gv=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M17.0643,7.033864912109375L18,3.585784912109375L14.5078,4.509695912109375L15.3537,5.344934912109375L6.02026,14.560584912109375C5.87635,14.517484912109374,5.72366,14.494284912109375,5.5655,14.494284912109375C4.7009,14.494284912109375,4,15.186384912109375,4,16.040084912109375C4,16.893784912109375,4.7009,17.585784912109375,5.5655,17.585784912109375C6.43011,17.585784912109375,7.13101,16.893784912109375,7.13101,16.040084912109375C7.13101,15.722284912109375,7.03392,15.426984912109376,6.86744,15.181384912109374L16.0917,6.073604912109375L17.0643,7.033864912109375Z stroke-opacity=0 stroke=none>');const pv={horizontalStraightLine:Qy,horizontalRayLine:qy,horizontalSegment:Jy,verticalStraightLine:t_,verticalRayLine:r_,verticalSegment:o_,straightLine:s_,rayLine:c_,segment:f_,arrow:h_,priceLine:p_,priceChannelLine:y_,parallelStraightLine:v_,fibonacciLine:C_,fibonacciSegment:w_,fibonacciCircle:$_,fibonacciSpiral:k_,fibonacciSpeedResistanceFan:M_,fibonacciExtension:P_,gannBox:I_,circle:D_,triangle:B_,rect:z_,parallelogram:K_,threeWaves:W_,fiveWaves:Z_,eightWaves:G_,anyWaves:Q_,abcd:q_,xabcd:J_,weak_magnet:tv,strong_magnet:rv,lock:cv,unlock:fv,visible:ov,invisible:sv,remove:hv,brush:()=>gv()};function mv(e){return[{key:"horizontalStraightLine",text:x("horizontal_straight_line",e)},{key:"horizontalRayLine",text:x("horizontal_ray_line",e)},{key:"horizontalSegment",text:x("horizontal_segment",e)},{key:"verticalStraightLine",text:x("vertical_straight_line",e)},{key:"verticalRayLine",text:x("vertical_ray_line",e)},{key:"verticalSegment",text:x("vertical_segment",e)},{key:"straightLine",text:x("straight_line",e)},{key:"rayLine",text:x("ray_line",e)},{key:"segment",text:x("segment",e)},{key:"arrow",text:x("arrow",e)},{key:"brush",text:x("brush",e)},{key:"priceLine",text:x("price_line",e)}]}function yv(e){return[{key:"priceChannelLine",text:x("price_channel_line",e)},{key:"parallelStraightLine",text:x("parallel_straight_line",e)}]}function _v(e){return[{key:"circle",text:x("circle",e)},{key:"rect",text:x("rect",e)},{key:"parallelogram",text:x("parallelogram",e)},{key:"triangle",text:x("triangle",e)}]}function vv(e){return[{key:"fibonacciLine",text:x("fibonacci_line",e)},{key:"fibonacciSegment",text:x("fibonacci_segment",e)},{key:"fibonacciCircle",text:x("fibonacci_circle",e)},{key:"fibonacciSpiral",text:x("fibonacci_spiral",e)},{key:"fibonacciSpeedResistanceFan",text:x("fibonacci_speed_resistance_fan",e)},{key:"fibonacciExtension",text:x("fibonacci_extension",e)},{key:"gannBox",text:x("gann_box",e)}]}function bv(e){return[{key:"xabcd",text:x("xabcd",e)},{key:"abcd",text:x("abcd",e)},{key:"threeWaves",text:x("three_waves",e)},{key:"fiveWaves",text:x("five_waves",e)},{key:"eightWaves",text:x("eight_waves",e)},{key:"anyWaves",text:x("any_waves",e)}]}function Cv(e){return[{key:"weak_magnet",text:x("weak_magnet",e)},{key:"strong_magnet",text:x("strong_magnet",e)}]}const nn=e=>pv[e.name](e.class);var xv=N('<div class=klinecharts-pro-drawing-bar><span class=split-line></span><div class=item tabindex=0><span style=width:32px;height:32px></span><div class=icon-arrow><svg viewBox="0 0 4 6"><path d=M1.07298,0.159458C0.827521,-0.0531526,0.429553,-0.0531526,0.184094,0.159458C-0.0613648,0.372068,-0.0613648,0.716778,0.184094,0.929388L2.61275,3.03303L0.260362,5.07061C0.0149035,5.28322,0.0149035,5.62793,0.260362,5.84054C0.505822,6.05315,0.903789,6.05315,1.14925,5.84054L3.81591,3.53075C4.01812,3.3556,4.05374,3.0908,3.92279,2.88406C3.93219,2.73496,3.87113,2.58315,3.73964,2.46925L1.07298,0.159458Z stroke=none stroke-opacity=0></path></svg></div></div><div class=item><span style=width:32px;height:32px></span></div><div class=item><span style=width:32px;height:32px></span></div><span class=split-line></span><div class=item><span style=width:32px;height:32px>'),wv=N('<div class=item tabindex=0><span style=width:32px;height:32px></span><div class=icon-arrow><svg viewBox="0 0 4 6"><path d=M1.07298,0.159458C0.827521,-0.0531526,0.429553,-0.0531526,0.184094,0.159458C-0.0613648,0.372068,-0.0613648,0.716778,0.184094,0.929388L2.61275,3.03303L0.260362,5.07061C0.0149035,5.28322,0.0149035,5.62793,0.260362,5.84054C0.505822,6.05315,0.903789,6.05315,1.14925,5.84054L3.81591,3.53075C4.01812,3.3556,4.05374,3.0908,3.92279,2.88406C3.93219,2.73496,3.87113,2.58315,3.73964,2.46925L1.07298,0.159458Z stroke=none stroke-opacity=0>'),n5=N("<li><span style=padding-left:8px>");const r5="drawing_tools",Lv=e=>{const[n,i]=G("horizontalStraightLine"),[o,s]=G("priceChannelLine"),[l,c]=G("circle"),[f,d]=G("fibonacciLine"),[g,_]=G("xabcd"),[y,v]=G("weak_magnet"),[k,b]=G("normal"),[C,L]=G(!1),[$,T]=G(!0),[O,E]=G(""),U=Jt(()=>[{key:"singleLine",icon:n(),list:mv(e.locale),setter:i},{key:"moreLine",icon:o(),list:yv(e.locale),setter:s},{key:"polygon",icon:l(),list:_v(e.locale),setter:c},{key:"fibonacci",icon:f(),list:vv(e.locale),setter:d},{key:"wave",icon:g(),list:bv(e.locale),setter:_}]),X=Jt(()=>Cv(e.locale));return(()=>{var Y=xv(),I=Y.firstChild,z=I.nextSibling,Q=z.firstChild,j=Q.nextSibling,te=j.firstChild,ee=z.nextSibling,Oe=ee.firstChild,oe=ee.nextSibling,bt=oe.firstChild,St=oe.nextSibling,it=St.nextSibling,tt=it.firstChild;return K(Y,()=>U().map(ke=>(()=>{var Qe=wv(),ze=Qe.firstChild,nt=ze.nextSibling,ie=nt.firstChild;return Qe.addEventListener("blur",()=>{E("")}),ze.$$click=()=>{e.onDrawingItemClick({groupId:r5,name:ke.icon,visible:$(),lock:C(),mode:k()})},K(ze,W(nn,{get name(){return ke.icon}})),nt.$$click=()=>{ke.key===O()?E(""):E(ke.key)},K(Qe,(()=>{var Me=qe(()=>ke.key===O());return()=>Me()&&W(ci,{class:"list",get children(){return ke.list.map(ue=>(()=>{var Ee=n5(),ot=Ee.firstChild;return Ee.$$click=()=>{ke.setter(ue.key),e.onDrawingItemClick({name:ue.key,lock:C(),mode:k()}),E("")},K(Ee,W(nn,{get name(){return ue.key}}),ot),K(ot,()=>ue.text),Ee})())}})})(),null),Te(()=>ft(ie,"class",ke.key===O()?"rotate":"")),Qe})()),I),z.addEventListener("blur",()=>{E("")}),Q.$$click=()=>{let ke=y();k()!=="normal"&&(ke="normal"),b(ke),e.onModeChange(ke)},K(Q,(()=>{var ke=qe(()=>y()==="weak_magnet");return()=>ke()?qe(()=>k()==="weak_magnet")()?W(nn,{name:"weak_magnet",class:"selected"}):W(nn,{name:"weak_magnet"}):qe(()=>k()==="strong_magnet")()?W(nn,{name:"strong_magnet",class:"selected"}):W(nn,{name:"strong_magnet"})})()),j.$$click=()=>{O()==="mode"?E(""):E("mode")},K(z,(()=>{var ke=qe(()=>O()==="mode");return()=>ke()&&W(ci,{class:"list",get children(){return X().map(Qe=>(()=>{var ze=n5(),nt=ze.firstChild;return ze.$$click=()=>{v(Qe.key),b(Qe.key),e.onModeChange(Qe.key),E("")},K(ze,W(nn,{get name(){return Qe.key}}),nt),K(nt,()=>Qe.text),ze})())}})})(),null),Oe.$$click=()=>{const ke=!C();L(ke),e.onLockChange(ke)},K(Oe,(()=>{var ke=qe(()=>!!C());return()=>ke()?W(nn,{name:"lock"}):W(nn,{name:"unlock"})})()),bt.$$click=()=>{const ke=!$();T(ke),e.onVisibleChange(ke)},K(bt,(()=>{var ke=qe(()=>!!$());return()=>ke()?W(nn,{name:"visible"}):W(nn,{name:"invisible"})})()),tt.$$click=()=>{e.onRemoveClick(r5)},K(tt,W(nn,{name:"remove"})),Te(()=>ft(te,"class",O()==="mode"?"rotate":"")),Y})()};Ft(["click"]);var i5=N("<li class=title>"),$v=N('<div style="padding:0 20px">'),o5=N("<li class=row>");const Sv=e=>W(Pn,{get title(){return x("indicator",e.locale)},width:400,get onClose(){return e.onClose},get children(){var n=$v();return K(n,W(ci,{class:"klinecharts-pro-indicator-modal-list",get children(){return[(()=>{var i=i5();return K(i,()=>x("main_indicator",e.locale)),i})(),qe(()=>["MA","EMA","SMA","BOLL","SAR","BBI"].map(i=>{const o=e.mainIndicators.includes(i);return(()=>{var s=o5();return s.$$click=l=>{e.onMainIndicatorChange({name:i,id:"candle_pane",added:!o})},K(s,W(e9,{checked:o,get label(){return x(i.toLowerCase(),e.locale)}})),s})()})),(()=>{var i=i5();return K(i,()=>x("sub_indicator",e.locale)),i})(),qe(()=>["MA","EMA","VOL","MACD","BOLL","KDJ","RSI","BIAS","BRAR","CCI","DMI","CR","PSY","DMA","TRIX","OBV","VR","WR","MTM","EMV","SAR","SMA","ROC","PVT","BBI","AO"].map(i=>{const o=i in e.subIndicators;return(()=>{var s=o5();return s.$$click=l=>{e.onSubIndicatorChange({name:i,id:e.subIndicators[i]??"",added:!o})},K(s,W(e9,{checked:o,get label(){return x(i.toLowerCase(),e.locale)}})),s})()}))]}})),n}});Ft(["click"]);function a5(e,n){switch(e){case"Etc/UTC":return x("utc",n);case"Pacific/Honolulu":return x("honolulu",n);case"America/Juneau":return x("juneau",n);case"America/Los_Angeles":return x("los_angeles",n);case"America/Chicago":return x("chicago",n);case"America/Toronto":return x("toronto",n);case"America/Sao_Paulo":return x("sao_paulo",n);case"Europe/London":return x("london",n);case"Europe/Berlin":return x("berlin",n);case"Asia/Bahrain":return x("bahrain",n);case"Asia/Dubai":return x("dubai",n);case"Asia/Ashkhabad":return x("ashkhabad",n);case"Asia/Almaty":return x("almaty",n);case"Asia/Bangkok":return x("bangkok",n);case"Asia/Shanghai":return x("shanghai",n);case"Asia/Tokyo":return x("tokyo",n);case"Australia/Sydney":return x("sydney",n);case"Pacific/Norfolk":return x("norfolk",n)}return e}function kv(e){return[{key:"Etc/UTC",text:x("utc",e)},{key:"Pacific/Honolulu",text:x("honolulu",e)},{key:"America/Juneau",text:x("juneau",e)},{key:"America/Los_Angeles",text:x("los_angeles",e)},{key:"America/Chicago",text:x("chicago",e)},{key:"America/Toronto",text:x("toronto",e)},{key:"America/Sao_Paulo",text:x("sao_paulo",e)},{key:"Europe/London",text:x("london",e)},{key:"Europe/Berlin",text:x("berlin",e)},{key:"Asia/Bahrain",text:x("bahrain",e)},{key:"Asia/Dubai",text:x("dubai",e)},{key:"Asia/Ashkhabad",text:x("ashkhabad",e)},{key:"Asia/Almaty",text:x("almaty",e)},{key:"Asia/Bangkok",text:x("bangkok",e)},{key:"Asia/Shanghai",text:x("shanghai",e)},{key:"Asia/Tokyo",text:x("tokyo",e)},{key:"Australia/Sydney",text:x("sydney",e)},{key:"Pacific/Norfolk",text:x("norfolk",e)}]}var Av=N('<div style="padding:20px 20px 0 20px">');const Mv=e=>{const[n,i]=G(e.timezone),o=Jt(()=>kv(e.locale));return W(Pn,{get title(){return x("timezone",e.locale)},width:320,get buttons(){return[{children:x("confirm",e.locale),onClick:()=>{e.onConfirm(n()),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=Av();return K(s,W(m1,{style:{width:"100%"},get value(){return n().text},onSelected:l=>{i(l)},get dataSource(){return o()}})),s}})},pr=e=>{const n=[{key:"solid",text:x("solid",e)},{key:"dashed",text:x("dashed",e)}],i=[{key:[4,4]}],o=[{key:"true",text:!0},{key:"false",text:!1}],s=[{key:1,text:1},{key:2,text:2},{key:3,text:3},{key:4,text:4},{key:5,text:5},{key:6,text:6},{key:7,text:7},{key:8,text:8},{key:9,text:9},{key:10,text:10},{key:11,text:11},{key:12,text:12},{key:13,text:13},{key:14,text:14},{key:15,text:15}],l=[{key:"fill",text:x("fill",e)},{key:"stroke",text:x("stroke",e)},{key:"stroke_fill",text:x("stroke_fill",e)}],c=[{key:"none",text:x("none",e)},{key:"always",text:x("always",e)},{key:"follow_cross",text:x("follow_cross",e)}],f=[{key:10,text:10},{key:11,text:11},{key:12,text:12},{key:14,text:14},{key:16,text:16},{key:18,text:18},{key:20,text:20},{key:22,text:22},{key:24,text:24}],d=[{key:"normal",text:x("Normal",e)}],g=[{key:"Helvetica Neue",text:x("Helvetica Neue",e)}];return{solid_dashed:n,dashed_value:i,size:s,fill_stroke:l,font_family:g,font_size:f,font_weight:d,none_always_followCross:c,true_false:o}},Tv=e=>{const{font_family:n,font_size:i,font_weight:o,size:s,solid_dashed:l,fill_stroke:c,none_always_followCross:f}=pr(e);return[{key:"candle.type",text:x("candle_type",e),component:"select",dataSource:[{key:"candle_solid",text:x("candle_solid",e)},{key:"candle_stroke",text:x("candle_stroke",e)},{key:"candle_up_stroke",text:x("candle_up_stroke",e)},{key:"candle_down_stroke",text:x("candle_down_stroke",e)},{key:"ohlc",text:x("ohlc",e)},{key:"area",text:x("area",e)},{key:"heikin_ashi",text:x("heikin_ashi",e)}]},{key:"candle.bar.upColor",text:x("Bar up color",e),component:"color"},{key:"candle.bar.downColor",text:x("Bar down color",e),component:"color"},{key:"candle.bar.noChangeColor",text:x("Bar no-change color",e),component:"color"},{key:"candle.bar.upBorderColor",text:x("Bar up-border color",e),component:"color"},{key:"candle.bar.downBorderColor",text:x("Bar down-border color",e),component:"color"},{key:"candle.bar.noChangeBorderColor",text:x("Bar no-change-border color",e),component:"color"},{key:"candle.bar.upWickColor",text:x("Bar up-wick color",e),component:"color"},{key:"candle.bar.downWickColor",text:x("Bar down-wick color",e),component:"color"},{key:"candle.bar.noChangeWickColor",text:x("Bar no-change-wick color",e),component:"color"},{key:"candle.area.lineSize",text:x("Area linesize",e),component:"select",dataSource:s},{key:"candle.area.lineColor",text:x("Area line color",e),component:"color"},{key:"candle.priceMark.high.show",text:x("high_price_show",e),component:"switch"},{key:"candle.priceMark.high.color",text:x("Pricemark high color",e),component:"color"},{key:"candle.priceMark.high.textSize",text:x("Pricemark High Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.high.textFamily",text:x("Pricemark High Font family",e),component:"select",dataSource:n},{key:"candle.priceMark.high.textWeight",text:x("Pricemark High Font Weight",e),component:"select",dataSource:o},{key:"candle.priceMark.low.show",text:x("low_price_show",e),component:"switch"},{key:"candle.priceMark.low.color",text:x("Pricemark low color",e),component:"color"},{key:"candle.priceMark.low.textSize",text:x("Pricemark Low Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.low.textFamily",text:x("Pricemark Low Font family",e),component:"select",dataSource:n},{key:"candle.priceMark.low.textWeight",text:x("Pricemark Low Font Weight",e),component:"select",dataSource:o},{key:"candle.priceMark.last.show",text:x("Show Pricemark last",e),component:"switch"},{key:"candle.priceMark.last.upColor",text:x("Pricemark last up-color",e),component:"color"},{key:"candle.priceMark.last.downColor",text:x("Pricemark last down-color",e),component:"color"},{key:"candle.priceMark.last.noChangeColor",text:x("Pricemark last no-change-color",e),component:"color"},{key:"candle.priceMark.last.line.show",text:x("Show Pricemark last line",e),component:"switch"},{key:"candle.priceMark.last.line.style",text:x("Pricemark last line style",e),component:"select",dataSource:l},{key:"candle.priceMark.last.line.size",text:x("Pricemark last line size",e),component:"select",dataSource:s},{key:"candle.priceMark.last.text.show",text:x("Show Pricemark last text",e),component:"switch"},{key:"candle.priceMark.last.text.style",text:x("Pricemark last text style",e),component:"select",dataSource:c},{key:"candle.priceMark.last.text.size",text:x("Pricemark last text size",e),component:"select",dataSource:i},{key:"candle.priceMark.last.text.color",text:x("Pricemark last text color",e),component:"color"},{key:"candle.tooltip.showRule",text:x("candle_tooltip",e),component:"select",dataSource:f},{key:"candle.tooltip.showType",text:x("Tooltip showtype",e),component:"select",dataSource:[{key:"rect",text:x("Rect",e)},{key:"standard",text:x("Standard",e)}]},{key:"candle.tooltip.rect.position",text:x("Tooltip rect position",e),component:"select",dataSource:[{key:"fixed",text:x("Fixed",e)},{key:"pointer",text:x("Pointer",e)}]},{key:"candle.tooltip.rect.color",text:x("Tooltip rect color",e),component:"color"},{key:"candle.tooltip.rect.borderColor",text:x("Tooltip rect border-color",e),component:"color"},{key:"candle.tooltip.text.size",text:x("Tooltip text size",e),component:"select",dataSource:i},{key:"candle.tooltip.text.weight",text:x("Tooltip text weight",e),component:"select",dataSource:o},{key:"candle.tooltip.text.color",text:x("Tooltip text color",e),component:"color"}]},Pv=e=>{const{fill_stroke:n,font_size:i,font_weight:o,none_always_followCross:s}=pr(e);return[{key:"indicator.ohlc.upColor",text:x("Ohlc up-color",e),component:"color"},{key:"indicator.ohlc.downColor",text:x("Ohlc down-color",e),component:"color"},{key:"indicator.ohlc.noChangeColor",text:x("Ohlc no-change-color",e),component:"color"},{key:"indicator.lastValueMark.show",text:x("indicator_last_value_show",e),component:"switch"},{key:"indicator.lastValueMark.text.show",text:x("Show last value mark text",e),component:"switch"},{key:"indicator.lastValueMark.text.style",text:x("Last value mark text style",e),component:"select",dataSource:n},{key:"indicator.lastValueMark.text.size",text:x("Last value mark text size",e),component:"select",dataSource:i},{key:"indicator.lastValueMark.text.weight",text:x("Last value mark text Weight",e),component:"select",dataSource:o},{key:"indicator.lastValueMark.text.color",text:x("Last value mark text color",e),component:"color"},{key:"indicator.tooltip.showRule",text:x("Tooltip showrule",e),component:"select",dataSource:s},{key:"indicator.tooltip.showType",text:x("Tooltip showtype",e),component:"select",dataSource:[{key:"standard",text:x("Standard",e)},{key:"rect",text:x("Rect",e)}]},{key:"indicator.tooltip.showName",text:x("Show tooltip name",e),component:"switch"},{key:"indicator.tooltip.showParams",text:x("Show tooltip params",e),component:"switch"},{key:"indicator.tooltip.text.size",text:x("Tooltip text size",e),component:"select",dataSource:i},{key:"indicator.tooltip.text.weight",text:x("Tooltip text Weight",e),component:"select",dataSource:o},{key:"indicator.tooltip.text.color",text:x("Tooltip text color",e),component:"color"}]},Ov=e=>{const{font_size:n,size:i,font_weight:o}=pr(e);return[{key:"xAxis.show",text:x("Show xAxis",e),component:"switch"},{key:"xAxis.axisLine.show",text:x("Show axis line",e),component:"switch"},{key:"xAxis.axisLine.color",text:x("Axis line color",e),component:"color"},{key:"xAxis.axisLine.size",text:x("Axis line size",e),component:"select",dataSource:i},{key:"xAxis.tickText.show",text:x("Show tick text",e),component:"switch"},{key:"xAxis.tickText.size",text:x("Tick text size",e),component:"select",dataSource:n},{key:"xAxis.tickText.weight",text:x("Tick text Weight",e),component:"select",dataSource:o},{key:"xAxis.tickText.color",text:x("Tick text color",e),component:"color"},{key:"xAxis.tickLine.show",text:x("Show tick line",e),component:"switch"},{key:"xAxis.tickLine.size",text:x("Tick line size",e),component:"select",dataSource:i},{key:"xAxis.tickLine.length",text:x("Tick line length",e),component:"select",dataSource:i},{key:"xAxis.tickLine.color",text:x("Tick line color",e),component:"color"}]},Iv=e=>{const{size:n,font_weight:i,font_size:o}=pr(e);return[{key:"yAxis.show",text:x("Show yAxis",e),component:"switch"},{key:"yAxis.position",text:x("Position",e),component:"select",dataSource:[{key:"right",text:x("Right",e)},{key:"left",text:x("Left",e)}]},{key:"yAxis.type",text:x("price_axis_type",e),component:"select",dataSource:[{key:"normal",text:x("normal",e)},{key:"percentage",text:x("percentage",e)},{key:"log",text:x("log",e)}]},{key:"yAxis.inside",text:x("Inside",e),component:"switch"},{key:"yAxis.reverse",text:x("reverse_coordinate",e),component:"switch"},{key:"yAxis.axisLine.show",text:x("Show axis line",e),component:"switch"},{key:"yAxis.axisLine.size",text:x("Axis line size",e),component:"select",dataSource:n},{key:"yAxis.axisLine.color",text:x("Axis line color",e),component:"color"},{key:"yAxis.tickText.show",text:x("Show tick text",e),component:"switch"},{key:"yAxis.tickText.color",text:x("Tick text color",e),component:"color"},{key:"yAxis.tickText.size",text:x("Tick text size",e),component:"select",dataSource:o},{key:"yAxis.tickText.weight",text:x("Tick text Weight",e),component:"select",dataSource:i},{key:"yAxis.tickLine.show",text:x("Show tick line",e),component:"switch"},{key:"yAxis.tickLine.color",text:x("Tick line color",e),component:"color"},{key:"yAxis.tickLine.size",text:x("Tick line size",e),component:"select",dataSource:n},{key:"yAxis.tickLine.length",text:x("Tick line length",e),component:"select",dataSource:n}]},Ev=e=>{const{size:n}=pr(e);return[{key:"grid.show",text:x("grid_show",e),component:"switch"},{key:"grid.horizontal.show",text:x("Show horizontal",e),component:"switch"},{key:"grid.horizontal.show",text:x("Horizontal size",e),component:"select",dataSource:n},{key:"grid.horizontal.color",text:x("Horizontal color",e),component:"color"},{key:"grid.vertical.show",text:x("Show vertical",e),component:"switch"},{key:"grid.vertical.show",text:x("Vertical size",e),component:"select",dataSource:n},{key:"grid.vertical.color",text:x("Vertical color",e),component:"color"}]},Dv=e=>{const{solid_dashed:n,dashed_value:i,fill_stroke:o,size:s,font_size:l,font_weight:c}=pr(e);return[{key:"crosshair.show",text:x("Show Crosshair",e),component:"switch"},{key:"crosshair.horizontal.show",text:x("Show horizontal",e),component:"switch"},{key:"crosshair.horizontal.line.show",text:x("Show horizontal line",e),component:"switch"},{key:"crosshair.horizontal.line.style",text:x("Horizontal Line Style",e),component:"select",dataSource:n},{key:"crosshair.horizontal.line.dashed_value",text:x("Horizontal Line Style",e),component:"select",dataSource:i},{key:"crosshair.horizontal.line.size",text:x("Horizontal Line size",e),component:"select",dataSource:s},{key:"crosshair.horizontal.line.color",text:x("Horizontal Line color",e),component:"color"},{key:"crosshair.horizontal.text.show",text:x("Show horizontal text",e),component:"switch"},{key:"crosshair.horizontal.text.style",text:x("Horizontal text Style",e),component:"select",dataSource:o},{key:"crosshair.horizontal.text.size",text:x("Horizontal text size",e),component:"select",dataSource:l},{key:"crosshair.horizontal.text.weight",text:x("Horizontal text weight",e),component:"select",dataSource:c},{key:"crosshair.horizontal.text.color",text:x("Horizontal text color",e),component:"color"},{key:"crosshair.horizontal.text.backgroundColor",text:x("Horizontal text background color",e),component:"color"},{key:"crosshair.vertical.show",text:x("Show vertical",e),component:"switch"},{key:"crosshair.vertical.line.show",text:x("Show vertical line",e),component:"switch"},{key:"crosshair.vertical.line.style",text:x("Vertical Line Style",e),component:"select",dataSource:n},{key:"crosshair.vertical.line.size",text:x("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.size",text:x("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.color",text:x("Vertical line color",e),component:"color"},{key:"crosshair.vertical.text.show",text:x("Show vertical text",e),component:"switch"},{key:"crosshair.vertical.text.style",text:x("Vertical text Style",e),component:"select",dataSource:o},{key:"crosshair.vertical.text.size",text:x("Vertical text size",e),component:"select",dataSource:l},{key:"crosshair.vertical.text.weight",text:x("Vertical text weight",e),component:"select",dataSource:c},{key:"crosshair.vertical.text.color",text:x("Vertical text color",e),component:"color"},{key:"crosshair.vertical.text.backgroundColor",text:x("Vertical text background color",e),component:"color"}]};function s5(e){const{size:n}=pr(e);return[...Tv(e),...Pv(e),...Ov(e),...Iv(e),...Ev(e),...Dv(e),{key:"separator.size",text:x("Seperator size",e),component:"select",dataSource:n},{key:"separator.fill",text:x("Fill",e),component:"switch"},{key:"separator.activeBackgroundColor",text:x("Background color",e),component:"color"}]}const l5="chartstatedata",Ci={showPositions:!1,showLiquidation:!1,showOpenOrders:!1,showHisOrders:!1},c5="trading-display",Rv=2,Bv=["trading-pos-","trading-liq","trading-order-","trading-his-order-"],Fv=f5(),u5=new WeakMap;function f5(){return{tradingConfig:{...Ci},positionsState:[],liquidationPriceState:null,openOrdersState:[],hisOrdersState:[],overlaySignatures:new Map}}function zv(e,n){if(!(typeof process<"u"&&process.env.NODE_ENV==="production")){if(n!==void 0){console.warn(`[tradingStore] ${e}`,n);return}console.warn(`[tradingStore] ${e}`)}}function d5(e){return e||(re()??null)}function nr(e){const n=d5(e);if(!n)return Fv;const i=u5.get(n);if(i)return i;const o=f5();return u5.set(n,o),o}function h5(){try{const e=localStorage.getItem(l5);return e?JSON.parse(e):{}}catch(e){return zv("Failed to parse chart state storage, using defaults.",e),{}}}function g5(e){const n=e;return!n||typeof n.showPositions!="boolean"||typeof n.showLiquidation!="boolean"?null:{showPositions:n.showPositions,showLiquidation:n.showLiquidation,showOpenOrders:typeof n.showOpenOrders=="boolean"?n.showOpenOrders:Ci.showOpenOrders,showHisOrders:typeof n.showHisOrders=="boolean"?n.showHisOrders:Ci.showHisOrders}}function p5(e){const n=g5(e.tradingDisplay);if(n)return n;const i=g5(e.trading);return i||{...Ci}}function m5(e){const n={...e,version:Rv,tradingDisplay:p5(e)};delete n.trading,localStorage.setItem(l5,JSON.stringify(n))}function Nv(e){nr(e),xi(e)}function xi(e){const n=nr(e),i=h5();return n.tradingConfig=p5(i),m5(i),{...n.tradingConfig}}function y5(e,n){const i=nr(n);i.tradingConfig={...e};const o=h5();o.tradingDisplay=i.tradingConfig,m5(o)}function wi(e,n){y5(e,n),mr(n)}function Kv(e,n){const i=nr(n);i.positionsState=e.slice(),mr(n)}function Hv(e,n){const i=nr(n);i.liquidationPriceState=e,e!=null&&Number.isFinite(e)&&y5({...i.tradingConfig,showLiquidation:!0},n),mr(n)}function Wv(e,n){const i=nr(n);i.openOrdersState=e.slice(),mr(n)}function Uv(e,n){const i=nr(n);i.hisOrdersState=e.slice(),mr(n)}function Zv(e,n){if(!Number.isFinite(n)||e.length===0)return null;let i=0,o=e.length-1,s=-1;for(;i<=o;){const l=i+o>>1;e[l].timestamp<=n?(s=l,i=l+1):o=l-1}return s>=0?e[s].timestamp:null}function po(e){return e.replace(/[^a-zA-Z0-9_-]/g,"_")}function Li(e,n,i){return JSON.stringify({name:e,points:n,extendData:i})}function _5(e,n){e.overrideOverlay({id:n,onSelected:i=>(i.preventDefault&&i.preventDefault(),i.overlay.mode="normal",!1),onRightClick:i=>(i.preventDefault&&i.preventDefault(),!1)})}function Yv(e,n){if(!((e.getOverlays({id:n.id})??[]).length>0)){const s=e.createOverlay({id:n.id,name:n.name,groupId:c5,paneId:"candle_pane",mode:"normal",points:n.points,extendData:n.extendData})??n.id;return _5(e,s),s}return e.overrideOverlay({id:n.id,points:n.points,extendData:n.extendData}),_5(e,n.id),n.id}function Gv(e,n){(e.getOverlays()??[]).filter(o=>!!o.id&&Bv.some(s=>o.id.startsWith(s))&&!n.has(o.id)).forEach(o=>e.removeOverlay({id:o.id}))}function Vv(e,n,i){const o=[],s=e.tradingConfig.showPositions,l=e.tradingConfig.showLiquidation,c=e.tradingConfig.showOpenOrders,f=e.tradingConfig.showHisOrders,d=e.positionsState.filter(g=>g.size!==0&&Number.isFinite(g.avgPrice));if(s&&d.forEach((g,_)=>{const v=`trading-pos-${po(g.id??`idx${_}`)}`,k=[{timestamp:i,value:g.avgPrice}],b={side:g.side,size:g.size,multiplier:g.multiplier??1};o.push({id:v,name:"positionAvgLine",points:k,extendData:b,signature:Li("positionAvgLine",k,b)})}),l&&d.length>0){const g=e.liquidationPriceState;if(g!=null&&Number.isFinite(g)){const _=[{timestamp:i,value:g}],y={};o.push({id:"trading-liq",name:"liquidationLine",points:_,extendData:y,signature:Li("liquidationLine",_,y)})}}if(c&&e.openOrdersState.filter(_=>_.orderType!=="market"&&Number.isFinite(_.price)&&_.size!==0&&(_.side==="long"||_.side==="short")&&typeof _.isBuy=="boolean").forEach((_,y)=>{const k=`trading-order-${po(_.id??`idx${y}`)}`,b=[{timestamp:i,value:_.price}],C={isBuy:_.isBuy,size:_.size};o.push({id:k,name:"pendingOrderLine",points:b,extendData:C,signature:Li("pendingOrderLine",b,C)})}),f){const g=e.hisOrdersState.filter(v=>Number.isFinite(v.timestamp)&&Number.isFinite(v.price)&&Number.isFinite(v.size)&&v.size!==0&&typeof v.isBuy=="boolean"),_=new Map,y=new Map;n.forEach(v=>y.set(v.timestamp,{high:v.high,low:v.low})),g.forEach((v,k)=>{const b=Zv(n,v.timestamp);if(b==null)return;const C=`${b}_${v.isBuy?"B":"S"}`,L=_.get(C)??0;_.set(C,L+1);const $=y.get(b),O=`trading-his-order-${po(v.id??String(v.orderId??`idx${k}`))}`,E=[{timestamp:b,value:v.price}],U={...v,stackIndex:L,barHigh:$==null?void 0:$.high,barLow:$==null?void 0:$.low};o.push({id:O,name:"hisOrderMark",points:E,extendData:U,signature:Li("hisOrderMark",E,U)})})}return o}function mr(e){var y;const n=d5(e),i=nr(n);if(!n)return;const o=n,s=o.getDataList(),l=((y=s.at(-1))==null?void 0:y.timestamp)??Date.now(),c=Vv(i,s,l),f=new Map(c.map(v=>[v.id,v])),d=o.getOverlays({groupId:c5})??[],g=new Set(d.map(v=>v.id).filter(v=>!!v));g.forEach(v=>{f.has(v)||o.removeOverlay({id:v})});const _=new Map;c.forEach(v=>{const k=i.overlaySignatures.get(v.id);if(!g.has(v.id)||k!==v.signature){const C=Yv(o,v);_.set(C,v.signature);return}_.set(v.id,v.signature)}),i.overlaySignatures=_,Gv(o,new Set(_.keys()))}var C1=N("<div class=component><span>"),Qv=N("<div class=klinecharts-pro-setting-modal-content><div class=sidebar></div><div class=content>"),jv=N("<button>");const qv=e=>{const[n,i]=G(e.currentStyles),[o,s]=G(s5(e.locale)),[l,c]=G("trading"),[f,d]=G(xi());Ot(()=>{s(s5(e.locale))}),Ot(()=>{l()==="trading"&&d(xi())});const g=(v,k)=>{const b=localStorage.getItem("chartstatedata");let C;b?(C=JSON.parse(b),C.styleObj=C.styleObj??{}):C={styleObj:{}};const L=v.key.indexOf(".");L===-1?v.key:v.key.slice(0,L)+""+v.key.slice(L),p1(C.styleObj,v.key,k),localStorage.setItem("chartstatedata",JSON.stringify(C)),tr(!0);const $={};p1($,v.key,k),p1($,v.key,k);const T=fe.utils.clone(n());p1(T,v.key,k),i(T),s(o().map(O=>({...O}))),e.onChange($)},_=()=>{const v=localStorage.getItem("chartstatedata");let k;v&&(k=JSON.parse(v),k.styleObj&&(k.styleObj={}),localStorage.setItem("chartstatedata",JSON.stringify(k))),e.onRestoreDefault(o()),e.onClose()},y=[{text:x("setting_sidebar_trading",e.locale),key:"trading"},{text:"Candle",key:"candle"},{text:"Indicator",key:"indicator"},{text:"Grid",key:"grid"},{text:"X-Axis",key:"xAxis"},{text:"Y-Axis",key:"yAxis"},{text:"Separator",key:"separator"},{text:"Crosshair",key:"crosshair"}];return W(Pn,{get title(){return x("setting",e.locale)},width:640,height:560,get buttons(){return[{children:x("restore_default",e.locale),onClick:()=>{_()}}]},get onClose(){return e.onClose},get children(){var v=Qv(),k=v.firstChild,b=k.nextSibling;return K(k,()=>y.map(C=>(()=>{var L=jv();return L.$$click=()=>c(C.key),K(L,()=>C.text),Te(()=>Wt(L,`${l()==C.key?"selected":""}`)),L})())),K(b,W(Pe,{get when(){return l()==="trading"},get fallback(){return W(qa,{get each(){return o().filter(C=>C.key.includes(l()))},children:C=>{let L;const $=fe.utils.formatValue(n(),C.key);switch(C.component){case"select":{L=W(m1,{style:{width:"120px"},get value(){return x($,e.locale)},get dataSource(){return C.dataSource},onSelected:T=>{const O=T.key;g(C,O)}});break}case"switch":{const T=!!$;L=W(y1,{open:T,onChange:()=>{g(C,!T)}});break}case"color":{L=W($y,{style:{width:"120px"},value:$,reactiveChange:!1,onChange:T=>{g(C,T)}});break}}return(()=>{var T=C1(),O=T.firstChild;return K(O,()=>C.text),K(T,L,null),T})()}})},get children(){return[(()=>{var C=C1(),L=C.firstChild;return K(L,()=>x("trading_display_positions",e.locale)),K(C,W(y1,{get open(){return f().showPositions},onChange:()=>{const $={...f(),showPositions:!f().showPositions};d($),wi($)}}),null),C})(),(()=>{var C=C1(),L=C.firstChild;return K(L,()=>x("trading_display_liquidation",e.locale)),K(C,W(y1,{get open(){return f().showLiquidation},onChange:()=>{const $={...f(),showLiquidation:!f().showLiquidation};d($),wi($)}}),null),C})(),(()=>{var C=C1(),L=C.firstChild;return K(L,()=>x("trading_display_open_orders",e.locale)),K(C,W(y1,{get open(){return f().showOpenOrders},onChange:()=>{const $={...f(),showOpenOrders:!f().showOpenOrders};d($),wi($)}}),null),C})(),(()=>{var C=C1(),L=C.firstChild;return K(L,()=>x("trading_display_his_orders",e.locale)),K(C,W(y1,{get open(){return f().showHisOrders},onChange:()=>{const $={...f(),showHisOrders:!f().showHisOrders};d($),wi($)}}),null),C})()]}})),v}})};Ft(["click"]);var Xv=N('<div style="margin:20px 20px 0 20px"><img style=width:500px>');const Jv=e=>W(Pn,{get title(){return x("screenshot",e.locale)},width:540,get buttons(){return[{type:"confirm",children:x("save",e.locale),onClick:()=>{const n=document.createElement("a");n.download="screenshot",n.href=e.url,document.body.appendChild(n),n.click(),n.remove()}}]},get onClose(){return e.onClose},get children(){var n=Xv(),i=n.firstChild;return Te(()=>ft(i,"src",e.url)),n}}),eb={AO:[{paramNameKey:"params_1",precision:0,min:1,default:5},{paramNameKey:"params_2",precision:0,min:1,default:34}],BIAS:[{paramNameKey:"BIAS1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"BIAS2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"BIAS3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"BIAS4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"BIAS5",precision:0,min:1,styleKey:"lines[4].color"}],BOLL:[{paramNameKey:"period",precision:0,min:1,default:20},{paramNameKey:"standard_deviation",precision:2,min:1,default:2}],BRAR:[{paramNameKey:"period",precision:0,min:1,default:26}],BBI:[{paramNameKey:"params_1",precision:0,min:1,default:3},{paramNameKey:"params_2",precision:0,min:1,default:6},{paramNameKey:"params_3",precision:0,min:1,default:12},{paramNameKey:"params_4",precision:0,min:1,default:24}],CCI:[{paramNameKey:"params_1",precision:0,min:1,default:20}],CR:[{paramNameKey:"params_1",precision:0,min:1,default:26},{paramNameKey:"params_2",precision:0,min:1,default:10},{paramNameKey:"params_3",precision:0,min:1,default:20},{paramNameKey:"params_4",precision:0,min:1,default:40},{paramNameKey:"params_5",precision:0,min:1,default:60}],DMA:[{paramNameKey:"params_1",precision:0,min:1,default:10},{paramNameKey:"params_2",precision:0,min:1,default:50},{paramNameKey:"params_3",precision:0,min:1,default:10}],DMI:[{paramNameKey:"params_1",precision:0,min:1,default:14},{paramNameKey:"params_2",precision:0,min:1,default:6}],EMV:[{paramNameKey:"params_1",precision:0,min:1,default:14},{paramNameKey:"params_2",precision:0,min:1,default:9}],EMA:[{paramNameKey:"EMA1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"EMA2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"EMA3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"EMA4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"EMA5",precision:0,min:1,styleKey:"lines[4].color"}],MTM:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],MA:[{paramNameKey:"MA1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"MA2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"MA3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"MA4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"MA5",precision:0,min:1,styleKey:"lines[4].color"}],MACD:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:26},{paramNameKey:"params_2",precision:0,min:1,default:9}],OBV:[{paramNameKey:"params_1",precision:0,min:1,default:30}],PVT:[],PSY:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],ROC:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],RSI:[{paramNameKey:"RSI1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"RSI2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"RSI3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"RSI4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"RSI5",precision:0,min:1,styleKey:"lines[4].color"}],SMA:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:2}],KDJ:[{paramNameKey:"params_1",precision:0,min:1,default:9},{paramNameKey:"params_2",precision:0,min:1,default:3},{paramNameKey:"params_3",precision:0,min:1,default:3}],SAR:[{paramNameKey:"params_1",precision:0,min:1,default:2},{paramNameKey:"params_2",precision:0,min:1,default:2},{paramNameKey:"params_3",precision:0,min:1,default:20}],TRIX:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:9}],VOL:[{paramNameKey:"MA1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"MA2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"MA3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"MA4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"MA5",precision:0,min:1,styleKey:"lines[4].color"}],VR:[{paramNameKey:"params_1",precision:0,min:1,default:26},{paramNameKey:"params_2",precision:0,min:1,default:6}],WR:[{paramNameKey:"WR1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"WR2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"WR3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"WR4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"WR5",precision:0,min:1,styleKey:"lines[4].color"}]};var tb=N("<div class=klinecharts-pro-indicator-setting-modal-content>"),nb=N("<div class=param-row><span>");const rb=e=>{const[n,i]=G(fe.utils.clone(e.params.calcParams)),o=s=>eb[s];return W(Pn,{get title(){return e.params.indicatorName},width:360,get buttons(){return[{type:"confirm",children:x("confirm",e.locale),onClick:()=>{const s=o(e.params.indicatorName),l=[];fe.utils.clone(n()).forEach((c,f)=>{!fe.utils.isValid(c)||c===""?"default"in s[f]&&l.push(s[f].default):l.push(c)}),e.onConfirm(l),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=tb();return K(s,()=>o(e.params.indicatorName).map((l,c)=>(()=>{var f=nb(),d=f.firstChild;return K(d,()=>x(l.paramNameKey,e.locale)),K(f,W(r9,{style:{width:"200px"},get value(){return n()[c]??""},get precision(){return l.precision},get min(){return l.min},onChange:g=>{const _=fe.utils.clone(n());_[c]=g,i(_)}}),null),f})())),s}})};var ib=N('<div style="margin:10px 20px 0 20px">'),ob=N('<svg viewBox="0 0 1024 1024"><path d="M945.066667 898.133333l-189.866667-189.866666c55.466667-64 87.466667-149.333333 87.466667-241.066667 0-204.8-168.533333-373.333333-373.333334-373.333333S96 264.533333 96 469.333333 264.533333 842.666667 469.333333 842.666667c91.733333 0 174.933333-34.133333 241.066667-87.466667l189.866667 189.866667c6.4 6.4 14.933333 8.533333 23.466666 8.533333s17.066667-2.133333 23.466667-8.533333c8.533333-12.8 8.533333-34.133333-2.133333-46.933334zM469.333333 778.666667C298.666667 778.666667 160 640 160 469.333333S298.666667 160 469.333333 160 778.666667 298.666667 778.666667 469.333333 640 778.666667 469.333333 778.666667z">'),ab=N("<img alt=symbol>"),sb=N("<li><div><span>");const lb=e=>{const[n,i]=G(""),[o]=uc(n,e.datafeed.searchSymbols.bind(e.datafeed));return W(Pn,{get title(){return x("symbol_search",e.locale)},width:460,get onClose(){return e.onClose},get children(){var s=ib();return K(s,W(r9,{class:"klinecharts-pro-symbol-search-modal-input",get placeholder(){return x("symbol_code",e.locale)},get suffix(){return ob()},get value(){return n()},onChange:l=>{const c=`${l}`;i(c)}}),null),K(s,W(ci,{class:"klinecharts-pro-symbol-search-modal-list",get loading(){return o.loading},get dataSource(){return o()??[]},renderItem:l=>(()=>{var c=sb(),f=c.firstChild,d=f.firstChild;return c.$$click=()=>{e.onSymbolSelected(l),e.onClose()},K(f,W(Pe,{get when(){return l.logo},get children(){var g=ab();return Te(()=>ft(g,"src",l.logo)),g}}),d),K(d,()=>l.shortName??l.ticker,null),K(d,()=>`${l.name?`(${l.name})`:""}`,null),K(c,()=>l.exchange??"",null),Te(()=>ft(d,"title",l.name??"")),c})()}),null),s}})};Ft(["click"]);var cb=N("<div class=row><span>价格</span><input class=field-input type=number min=0 step=any>"),ub=N("<div class=row><span>分钟"),fb=N("<div class=row><span>百分比</span><input class=field-input type=number min=1 max=100 step=1>"),db=N("<div class=error-text>"),hb=N("<div class=klinecharts-pro-alert-add-modal><div class=row><span>类型</span></div><div class=row><span>频率</span></div><div class=row><span>备注</span><input class=field-input type=text placeholder=可选>");const v5=[{key:"price_reach",text:"价格达到"},{key:"price_rise_to",text:"价格上涨至"},{key:"price_fall_to",text:"价格下跌至"},{key:"price_rise_pct_over",text:"价格涨幅超过"},{key:"price_fall_pct_over",text:"价格跌幅超过"}],b5=[{key:"repeat",text:"重复提醒"},{key:"once",text:"仅提醒一次"}],C5=[{key:"5m",text:"5分"},{key:"1h",text:"1小时"},{key:"4h",text:"4小时"},{key:"24h",text:"24小时"}],gb=e=>{const[n,i]=G(!1),[o,s]=G(""),[l,c]=G({type:"price_reach",frequency:"repeat",price:"",window:"5m",percent:"10",remark:""}),f=Jt(()=>{const g=l().type;return g==="price_reach"||g==="price_rise_to"||g==="price_fall_to"}),d=async()=>{if(n())return;const g=l(),_={type:g.type,frequency:g.frequency,remark:g.remark.trim()||void 0};if(f()){const y=Number(g.price);if(!Number.isFinite(y)||y<=0){s("请输入大于 0 的价格");return}_.price=y}else{const y=Number(g.percent);if(!Number.isInteger(y)||y<1||y>100){s("百分比需为 1-100 的整数");return}_.window=g.window,_.percent=y}s(""),i(!0);try{await e.onSubmit(_)&&e.onClose()}finally{i(!1)}};return W(Pn,{title:"添加预警",width:360,get buttons(){return[{children:"取消",type:"cancel",onClick:e.onClose},{children:n()?"提交中...":"提交",onClick:d}]},get onClose(){return e.onClose},get children(){var g=hb(),_=g.firstChild;_.firstChild;var y=_.nextSibling;y.firstChild;var v=y.nextSibling,k=v.firstChild,b=k.nextSibling;return K(_,W(m1,{style:{width:"220px"},get value(){var C;return(C=v5.find(L=>L.key===l().type))==null?void 0:C.text},dataSource:v5,onSelected:C=>{const L=C.key;c($=>({...$,type:L}))}}),null),K(g,W(Pe,{get when(){return f()},get children(){var C=cb(),L=C.firstChild,$=L.nextSibling;return $.$$input=T=>{c(O=>({...O,price:T.target.value}))},Te(()=>$.value=l().price),C}}),y),K(g,W(Pe,{get when(){return!f()},get children(){return[(()=>{var C=ub();return C.firstChild,K(C,W(m1,{style:{width:"220px"},get value(){var L;return(L=C5.find($=>$.key===l().window))==null?void 0:L.text},dataSource:C5,onSelected:L=>{const $=L.key;c(T=>({...T,window:$}))}}),null),C})(),(()=>{var C=fb(),L=C.firstChild,$=L.nextSibling;return $.$$input=T=>{c(O=>({...O,percent:T.target.value}))},Te(()=>$.value=l().percent),C})()]}}),y),K(y,W(m1,{style:{width:"220px"},get value(){var C;return(C=b5.find(L=>L.key===l().frequency))==null?void 0:C.text},dataSource:b5,onSelected:C=>{const L=C.key;c($=>({...$,frequency:L}))}}),null),b.$$input=C=>{c(L=>({...L,remark:C.target.value}))},K(g,W(Pe,{get when(){return!!o()},get children(){var C=db();return K(C,o),C}}),null),Te(()=>b.value=l().remark),g}})};Ft(["input"]);var pb=N("<dt>标的"),$i=N("<dd>"),mb=N("<dt>价格"),yb=N("<dt>时间窗"),_b=N("<dt>百分比"),vb=N("<dl class=alert-detail-grid><dt>类型</dt><dd></dd><dt>频率</dt><dd></dd><dt>备注</dt><dd>");function bb(e){return e==="price_reach"?"价格达到":e==="price_rise_to"?"价格上涨至":e==="price_fall_to"?"价格下跌至":e==="price_rise_pct_over"?"价格涨幅超过":"价格跌幅超过"}function Cb(e){return e==="repeat"?"重复提醒":"仅提醒一次"}function xb(e){return e==="5m"?"5分":e==="1h"?"1小时":e==="4h"?"4小时":e==="24h"?"24小时":e??"—"}const x5=e=>(()=>{var n=vb(),i=n.firstChild,o=i.nextSibling,s=o.nextSibling,l=s.nextSibling,c=l.nextSibling,f=c.nextSibling;return K(n,W(Pe,{get when(){return!!e.alert.symbol},get children(){return[pb(),(()=>{var d=$i();return K(d,()=>e.alert.symbol),d})()]}}),i),K(o,()=>bb(e.alert.type)),K(n,W(Pe,{get when(){return qe(()=>e.alert.price!=null)()&&Number.isFinite(e.alert.price)},get children(){return[mb(),(()=>{var d=$i();return K(d,()=>String(e.alert.price)),d})()]}}),s),K(n,W(Pe,{get when(){return e.alert.window!=null},get children(){return[yb(),(()=>{var d=$i();return K(d,()=>xb(e.alert.window)),d})()]}}),s),K(n,W(Pe,{get when(){return e.alert.percent!=null},get children(){return[_b(),(()=>{var d=$i();return K(d,()=>`${e.alert.percent}%`),d})()]}}),s),K(l,()=>Cb(e.alert.frequency)),K(f,(()=>{var d=qe(()=>{var g;return!!((g=e.alert.remark)!=null&&g.trim())});return()=>d()?e.alert.remark:"—"})()),n})();var wb=N("<div class=alert-empty>暂无预警"),Lb=N("<div class=klinecharts-pro-alert-modal><div class=alert-list></div><div class=alert-add-btn-container><button type=button class=alert-add-btn>添加"),$b=N("<div class=alert-item title=双击查看详情><span class=alert-text></span><button type=button class=alert-delete>删除"),Sb=N("<div class=klinecharts-pro-alert-detail>");function kb(e){return e.type==="price_reach"?`价格达到 ${e.price??"--"}`:e.type==="price_rise_to"?`价格上涨至 ${e.price??"--"}`:e.type==="price_fall_to"?`价格下跌至 ${e.price??"--"}`:e.type==="price_rise_pct_over"?`价格${e.window??"5m"}涨幅 ${e.percent??"--"}%`:`价格${e.window??"5m"}跌幅 ${e.percent??"--"}%`}const Ab=e=>{const[n,i]=G(!1),[o,s]=G(null);return W(Pn,{title:"预警",width:480,get onClose(){return e.onClose},get children(){return[(()=>{var l=Lb(),c=l.firstChild,f=c.nextSibling,d=f.firstChild;return K(c,W(qa,{get each(){return e.alerts},children:g=>(()=>{var _=$b(),y=_.firstChild,v=y.nextSibling;return _.$$dblclick=()=>{s(g)},K(y,()=>kb(g)),v.$$dblclick=k=>{k.stopPropagation()},v.$$click=async()=>{var k;await((k=e.onRemoveAlert)==null?void 0:k.call(e,g))},_})()}),null),K(c,W(Pe,{get when(){return e.alerts.length===0},get children(){return wb()}}),null),d.$$click=()=>{i(!0)},l})(),W(Pe,{get when(){return n()},get children(){return W(gb,{onClose:()=>{i(!1)},onSubmit:async l=>{var c;return await((c=e.onAddAlert)==null?void 0:c.call(e,l))??!0}})}}),W(Pe,{get when(){return o()},children:l=>W(Pn,{title:"预警详情",width:400,height:260,onClose:()=>{s(null)},get children(){var c=Sb();return K(c,W(x5,{get alert(){return l()}})),c}})})]}})};Ft(["click","dblclick"]);class mo{constructor(n,i){kn(this,"_chart");kn(this,"_charts",new Map);kn(this,"id");if(n==null)throw new Error("Chart container is required");if(typeof n!="string"&&!(n instanceof HTMLElement))throw new Error("Invalid chart container");const o=fe.init(n,i);if(!o)throw new Error("Failed to initialize chart");this._chart=o,this.id=o.id}get chart(){return this._chart}get charts(){return Array.from(this._charts.values())}static init(n,i){return new mo(n,i)}getDom(n,i){return this._chart.getDom(n,i)}getSize(n,i){return this._chart.getSize(n,i)}createIndicator(n,i,o){return this._chart.createIndicator(n,i,o)}getIndicators(n){return this._chart.getIndicators(n)}createOverlay(n){return this._chart.createOverlay(n)}getOverlays(n){return this._chart.getOverlays(n)}setPaneOptions(n){return this._chart.setPaneOptions(n)}getPaneOptions(n){return this._chart.getPaneOptions(n)}scrollByDistance(n,i){return this._chart.scrollByDistance(n,i)}scrollToRealTime(n){return this._chart.scrollToRealTime(n)}scrollToDataIndex(n,i){return this._chart.scrollToDataIndex(n,i)}scrollToTimestamp(n,i){return this._chart.scrollToTimestamp(n,i)}zoomAtCoordinate(n,i,o){return this._chart.zoomAtCoordinate(n,i,o)}zoomAtDataIndex(n,i,o){return this._chart.zoomAtDataIndex(n,i,o)}zoomAtTimestamp(n,i,o){return this._chart.zoomAtTimestamp(n,i,o)}convertToPixel(n,i){return this._chart.convertToPixel(n,i)}convertFromPixel(n,i){return this._chart.convertFromPixel(n,i)}executeAction(n,i){return this._chart.executeAction(n,i)}subscribeAction(n,i){return this._chart.subscribeAction(n,i)}unsubscribeAction(n,i){return this._chart.unsubscribeAction(n,i)}getConvertPictureUrl(n,i,o){return this._chart.getConvertPictureUrl(n,i,o)}resize(){return this._chart.resize()}setStyles(n){return this._chart.setStyles(n)}getStyles(){return this._chart.getStyles()}setFormatter(n){return this._chart.setFormatter(n)}getFormatter(){return this._chart.getFormatter()}setLocale(n){return this._chart.setLocale(n)}getLocale(){return this._chart.getLocale()}setTimezone(n){return this._chart.setTimezone(n)}getTimezone(){return this._chart.getTimezone()}setThousandsSeparator(n){return this._chart.setThousandsSeparator(n)}getThousandsSeparator(){return this._chart.getThousandsSeparator()}setDecimalFold(n){return this._chart.setDecimalFold(n)}getDecimalFold(){return this._chart.getDecimalFold()}setSymbol(n){return this._chart.setSymbol(n)}getSymbol(){return this._chart.getSymbol()}setPeriod(n){return this._chart.setPeriod(n)}getPeriod(){return this._chart.getPeriod()}getDataList(){return this._chart.getDataList()}setOffsetRightDistance(n){return this._chart.setOffsetRightDistance(n)}getOffsetRightDistance(){return this._chart.getOffsetRightDistance()}setMaxOffsetLeftDistance(n){return this._chart.setMaxOffsetLeftDistance(n)}setMaxOffsetRightDistance(n){return this._chart.setMaxOffsetRightDistance(n)}setLeftMinVisibleBarCount(n){return this._chart.setLeftMinVisibleBarCount(n)}setRightMinVisibleBarCount(n){return this._chart.setRightMinVisibleBarCount(n)}setBarSpace(n){return this._chart.setBarSpace(n)}getBarSpace(){return this._chart.getBarSpace()}getVisibleRange(){return this._chart.getVisibleRange()}setDataLoader(n){return this._chart.setDataLoader(n)}overrideIndicator(n){return this._chart.overrideIndicator(n)}removeIndicator(n){return this._chart.removeIndicator(n)}overrideOverlay(n){return this._chart.overrideOverlay(n)}removeOverlay(n){return this._chart.removeOverlay(n)}setZoomEnabled(n){return this._chart.setZoomEnabled(n)}isZoomEnabled(){return this._chart.isZoomEnabled()}setZoomAnchor(n){this._chart.setZoomAnchor(n)}getZoomAnchor(){return this._chart.getZoomAnchor()}setScrollEnabled(n){return this._chart.setScrollEnabled(n)}isScrollEnabled(){return this._chart.isScrollEnabled()}resetData(){return this._chart.resetData()}setActiveChart(n){const i=this._charts.get(n);return i&&(this._chart=i),this}chartById(n){return this._charts.get(n)}getOverlayById(n){return this._chart.getOverlays({id:n})[0]??null}}const w5=6,Mb=14,L5=14,$5=18;function Tb(e,n){const i=n.points[0],o=n.extendData;if(!i||!o||!Number.isFinite(i.timestamp)||typeof o.isBuy!="boolean")return null;const l=e.getDataList().find($=>$.timestamp===i.timestamp);let c,f;if(l&&Number.isFinite(l.high)&&Number.isFinite(l.low)?(c=l.high,f=l.low):(c=typeof o.barHigh=="number"&&Number.isFinite(o.barHigh)?o.barHigh:void 0,f=typeof o.barLow=="number"&&Number.isFinite(o.barLow)?o.barLow:void 0),c===void 0||f===void 0)return null;const g=e.convertToPixel({timestamp:i.timestamp,value:i.value}).x,_=e.convertToPixel({timestamp:i.timestamp,value:c}).y,y=e.convertToPixel({timestamp:i.timestamp,value:f}).y;if(typeof g!="number"||typeof _!="number"||typeof y!="number")return null;const v=Math.max(0,o.stackIndex??0),k=Math.abs(y-_),b=Number.isFinite(k)&&k<$5?Math.max(0,$5-k)*.65:0,C=Mb+b,L=o.isBuy?y+C+v*L5:_-C-v*L5;return{cx:g,cy:L-.5}}function Pb(e,n,i){const o=e.getOverlays({name:"hisOrderMark",paneId:"candle_pane"})??[],s=e.getDom("candle_pane","main"),l=s==null?void 0:s.getBoundingClientRect(),c=w5*w5,f=[];for(const y of o){const v=y.id;if(!v)continue;const k=Tb(e,y);if(!k)continue;const b=n-k.cx,C=i-k.cy,L=b*b+C*C;if(L>c)continue;const $=y.extendData,T=Math.max(0,$.stackIndex??0);f.push({overlayId:v,order:$,distSq:L,stackIndex:T,cx:k.cx,cy:k.cy})}if(f.length===0)return null;f.sort((y,v)=>y.distSq!==v.distSq?y.distSq-v.distSq:v.stackIndex-y.stackIndex);const d=f[0],g=l?l.left+d.cx:d.cx,_=l?l.top+d.cy:d.cy;return{overlayId:d.overlayId,order:d.order,anchorX:g,anchorY:_}}const S5={visible:!1,indicatorName:"",paneId:"",calcParams:[]};function Ob(e){return{onIndicatorTooltipFeatureClick:l=>{const c=l,f=e.getApi();if(f)switch(c.feature.id){case"visible":f.overrideIndicator({name:c.indicator.name,visible:!0,paneId:c.paneId});break;case"invisible":f.overrideIndicator({name:c.indicator.name,visible:!1,paneId:c.paneId});break;case"setting":{const d=f.getIndicators({paneId:c.paneId,name:c.indicator.name,id:c.indicator.id}).at(0);if(!d)return;e.setIndicatorSettingModalParams({visible:!0,indicatorName:c.indicator.name,paneId:c.paneId,calcParams:d.calcParams});break}case"close":{if(c.paneId==="candle_pane"){const d=[...e.mainIndicators()];f.removeIndicator({paneId:c.paneId,name:c.indicator.name,id:c.indicator.id}),d.splice(d.indexOf(c.indicator.name),1),e.setMainIndicators(d)}else{const d={...e.subIndicators()};f.removeIndicator({paneId:c.paneId,name:c.indicator.name,id:c.indicator.id}),delete d[c.indicator.name],e.setSubIndicators(d)}break}}},onMainIndicatorChange:l=>{const c=e.getApi();if(!c)return;const f=[...e.mainIndicators()];l.added?(e.createIndicator(c,l.name,!0,{id:"candle_pane"}),f.push(l.name)):(c.removeIndicator({name:l.name,paneId:"candle_pane",id:l.id??void 0}),f.splice(f.indexOf(l.name),1)),e.setMainIndicators(f)},onSubIndicatorChange:l=>{const c=e.getApi();if(!c)return;const f={...e.subIndicators()};if(l.added){const d=e.createIndicator(c,l.name);d&&(f[l.name]=d)}else l.id&&(c.removeIndicator({name:l.name,id:l.id}),delete f[l.name]);e.setSubIndicators(f)},onIndicatorSettingConfirm:l=>{const c=e.getApi();if(!c)return;const f=e.indicatorSettingModalParams();c.overrideIndicator({name:f.indicatorName,calcParams:l,paneId:f.paneId})}}}const Ib=e=>{const n=["calc","figures","regenerateFigures","draw","createTooltipDataSource"];let i=e;return n.forEach(o=>{delete i[o]}),i},Eb=e=>{const n=["onDrawStart","onDrawing","onDrawEnd","onClick","onDoubleClick","onRightClick","onMouseEnter","onMouseLeave","onPressedMoveStart","onPressedMoving","onPressedMoveEnd","onRemoved","onSelected","onDeselected","performEventMoveForDrawing","performEventPressedMove","_prevPressedPoint","_prevPressedPoints","createPointFigures","createXAxisFigures","createYAxisFigures"];let i=e;return n.forEach(o=>{delete i[o]}),i},Db=()=>{const e=(b,C,L)=>{const $=localStorage.getItem("chartstatedata");let T;const O=Ib(ut.cloneDeep(b));return $?(T=JSON.parse($),T.indicators?T.indicators.find(E=>{var U,X;return((U=E.value)==null?void 0:U.name)===O.name&&((X=E.paneOptions)==null?void 0:X.id)===(L==null?void 0:L.id)})?T.indicators=T.indicators.map(E=>{var U;return((U=E.value)==null?void 0:U.id)!==O.id?E:{value:O,isStack:C,paneOptions:L}}):T.indicators.push({value:O,isStack:C,paneOptions:L}):T.indicators=[{value:O,isStack:C,paneOptions:L}]):T={indicators:[{value:O,isStack:C,paneOptions:L}]},localStorage.setItem("chartstatedata",JSON.stringify(T)),tr(!0),!1},n=b=>{const C=localStorage.getItem("chartstatedata");let L;const $=Eb(ut.cloneDeep(b));return C?(L=JSON.parse(C),L.overlays?L.overlays.find(T=>{var O;return((O=T.value)==null?void 0:O.id)===$.id})?L.overlays=L.overlays.map(T=>{var O;return((O=T.value)==null?void 0:O.id)!==$.id?T:{value:$,paneId:b.paneId}}):L.overlays.push({value:$,paneId:b.paneId}):L.overlays=[{value:b,paneId:b.paneId}]):L={overlays:[{value:$,paneId:b.paneId}]},localStorage.setItem("chartstatedata",JSON.stringify(L)),tr(!0),!1};function i(b,C,L,$,T=!1){C==="VOL"&&($={axis:{gap:{bottom:2}},...$});const O=($==null?void 0:$.id)==="candle_pane",E=b.createIndicator({name:C,createTooltipDataSource:U=>{const Y=U.chart.getStyles().indicator.tooltip.features,I=[];return O&&I.push(U.indicator.visible?Y[1]:Y[0]),I.push(Y[2]),I.push(Y[3]),{features:I}}},L,$)??null;if(E&&T){const U=b==null?void 0:b.getIndicators({id:E,name:C})[0];U&&e(U,L,{id:E})}return E}const o=(b,C,L=!1)=>{var E,U,X;const $=(E=re())==null?void 0:E.createOverlay({...b,paneId:C});if(!$)return!1;const T=(U=re())==null?void 0:U.getOverlays({id:$})[0],O=Y=>(Y.preventDefault&&Y.preventDefault(),s(Y.overlay.id),!0);T&&(b.properties&&T.setProperties(b.properties,$),(X=re())==null||X.overrideOverlay({id:T.id,onDrawEnd:Y=>["measure"].includes(T.name)?!1:n(Y.overlay),onPressedMoveEnd:Y=>["measure"].includes(T.name)?!1:n(Y.overlay),onSelected:Y=>bi(Y.overlay),onDeselected:()=>bi(null),onRightClick:T.onRightClick?T.onRightClick:O,onDoubleClick:T.onDoubleClick?T.onDoubleClick:O}),L||n(T))},s=b=>{var L,$,T;const C=localStorage.getItem("chartstatedata");if(C){let O=JSON.parse(C);O.overlays=(L=O.overlays)==null?void 0:L.filter(E=>{var U;return((U=E.value)==null?void 0:U.id)!==b}),localStorage.setItem("chartstatedata",JSON.stringify(O)),tr(!0)}($=re())==null||$.removeOverlay({id:b}),((T=Ny())==null?void 0:T.id)===b&&bi(null)},l=(b,C)=>{var $,T;const L=localStorage.getItem("chartstatedata");if(L){let O=JSON.parse(L);O.overlays=($=O.overlays)==null?void 0:$.map(E=>{var U;return((U=E.value)==null?void 0:U.id)===b&&(E.value={...E.value,...C},E.paneId=C.paneId??E.paneId),E}),localStorage.setItem("chartstatedata",JSON.stringify(O)),tr(!0),(T=re())==null||T.overrideOverlay({...C,id:b})}},c=(b,C)=>{var $,T;const L=localStorage.getItem("chartstatedata");if(L){let O=JSON.parse(L);O.overlays=($=O.overlays)==null?void 0:$.map(U=>{var X;return((X=U.value)==null?void 0:X.id)===b&&(U.value.properties={...U.value.properties,...C}),U});const E=(T=re())==null?void 0:T.getOverlayById(b);E&&E.setProperties(C,b),localStorage.setItem("chartstatedata",JSON.stringify(O)),tr(!0)}},f=b=>{const C=[...X9()];b.added?(i(re(),b.name,!0,{id:"candle_pane"},!0),C.push(b.name)):(_(b.name,"candle_pane"),C.splice(C.indexOf(b.name),1)),J9(C)},d=b=>{const C={...e5()};if(b.added){const L=i(re(),b.name,!1,void 0,!0);L&&(C[b.name]=L)}else b.paneId&&(_(b.name,b.paneId),delete C[b.name]);t5(C)},g=(b,C)=>{var $,T;const L=localStorage.getItem("chartstatedata");if(L){let O=JSON.parse(L);O.indicators=($=O.indicators)==null?void 0:$.map(E=>{var U;return((U=E.value)==null?void 0:U.name)===b.indicatorName&&(E.value.name=b.indicatorName,E.value.calcParams=C,E.paneOptions.id=b.paneId),E}),localStorage.setItem("chartstatedata",JSON.stringify(O)),tr(!0),(T=re())==null||T.overrideIndicator({name:b.indicatorName,calcParams:C,paneId:b.paneId})}},_=(b,C,L)=>{var T,O;const $=localStorage.getItem("chartstatedata");if((T=re())==null||T.removeIndicator({id:b,paneId:L,name:C}),$){let E=JSON.parse($);E.indicators=(O=E.indicators)==null?void 0:O.filter(U=>{var X,Y;return((X=U.paneOptions)==null?void 0:X.id)!==L&&((Y=U.value)==null?void 0:Y.name)!==C}),localStorage.setItem("chartstatedata",JSON.stringify(E)),tr(!0)}},y=(b,C)=>{document.documentElement.style.setProperty(b,C,"important");const L=document.querySelector("[data-theme]");L&&L.style.setProperty(b,C,"important")},v=b=>{var C;b.background&&y("--klinecharts-pro-pane-background",b.background),b.backgroundGradientStartColor&&y("--klinecharts-pro-pane-background-gradient-start",b.backgroundGradientStartColor),b.backgroundGradientEndColor&&y("--klinecharts-pro-pane-background-gradient-end",b.backgroundGradientEndColor),(C=b.separator)!=null&&C.color&&y("--klinecharts-pro-border-color",b.separator.color)};return{createIndicator:i,modifyIndicator:g,popIndicator:_,syncIndiObject:e,syncObject:n,pushOverlay:o,modifyOverlay:l,modifyOverlayProperties:c,popOverlay:s,pushMainIndicator:f,pushSubIndicator:d,restoreChartState:async b=>{const C=T=>{const O=JSON.parse(T);O.figures,O.overlays&&O.overlays.forEach(E=>{o(E.value,E.paneId,!0)}),O.indicators&&setTimeout(()=>{const E=[...X9()],U={...e5};O.indicators.forEach(X=>{var Y,I,z;X.value&&((Y=re())==null||Y.createIndicator(X.value,X.isStack,X.paneOptions),((I=X.paneOptions)==null?void 0:I.id)==="candle_pane"?E.push(X.value.name):U[X.value.name]=(z=X.paneOptions)==null?void 0:z.id)}),J9(E),t5(U)},500)},L=localStorage.getItem("chartstatedata");L&&C(L);const $=JSON.parse(L)??{};b&&(v(b),$.styleObj||($.styleObj=b,localStorage.setItem("chartstatedata",JSON.stringify($)))),$.styleObj&&q9($.styleObj)}}};function Rb(e,n){let i=null;const o=()=>{i!=null&&(globalThis.clearTimeout(i),i=null)};return{onEvent:f=>{const g=f.detail;if(!!(g!=null&&g.visible)){o(),n({visible:!0,order:(g==null?void 0:g.order)??null,x:(g==null?void 0:g.anchorX)??null,y:(g==null?void 0:g.anchorY)??null});return}o(),i=globalThis.setTimeout(()=>{i=null,n({visible:!1,order:null,x:null,y:null})},e)},clear:o,setExclusiveHover:f=>{o(),n({visible:!0,order:f.order,x:f.anchorX??null,y:f.anchorY??null})},resetHoverToHidden:()=>{o(),n({visible:!1,order:null,x:null,y:null})}}}function Bb(e,n){const i=[];let o=0;const s=()=>{for(;i.length>0;){const c=i.pop();c!=null&&globalThis.clearTimeout(c)}};return{schedule:()=>{o+=1;const c=o;s(),n.forEach(f=>{const d=globalThis.setTimeout(()=>{if(c!==o)return;e();const g=i.indexOf(d);g>=0&&i.splice(g,1)},f);i.push(d)})},clear:s}}var Fb=N('<i class="icon-close klinecharts-pro-load-icon">'),zb=N("<div class=klinecharts-pro-content><div class=klinecharts-pro-widget>"),Nb=N("<div class=klinecharts-pro-alert-detail>");const{createIndicator:yo,pushOverlay:Kb,restoreChartState:Hb}=Db(),Wb=[0,120,360,900],Ub=120,k5="alert_overlays",Zb=["price_reach","price_rise_to","price_fall_to"];function Yb(e){const n=e.price;if(n==null)return null;if(typeof n=="number"&&Number.isFinite(n))return n;if(typeof n=="string"&&n.trim()!==""){const i=Number(n.trim().replace(/,/g,""));return Number.isFinite(i)?i:null}return null}function Gb(e,n){var l,c,f;const i=(l=e.symbol)==null?void 0:l.trim();if(!i||i===n.ticker)return!0;const o=(c=n.name)==null?void 0:c.trim();if(o&&i===o)return!0;const s=(f=n.shortName)==null?void 0:f.trim();return!!(s&&i===s)}function Vb(e){return{indicator:{tooltip:{features:[{id:"visible",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"invisible",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"setting",position:"middle",marginLeft:6,marginTop:3,marginBottom:0,marginRight:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"close",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"}]}}}}const Qb=e=>{let n,i;const[o,s]=G(e.theme),[l,c]=G(e.locale),[f,d]=G(!1),[g,_]=G([...e.mainIndicators]),[y,v]=G({}),[k,b]=G(!1),[C,L]=G({key:e.timezone,text:a5(e.timezone,e.locale)}),[$,T]=G(!1),[O,E]=G(!1),[U,X]=G(),[Y,I]=G(""),[z,Q]=G(e.drawingBarVisible),[j,te]=G([...e.alerts??[]]),[ee,Oe]=G(null),[oe,bt]=G(!1),[St,it]=G(!1),[tt,ke]=G(null),[Qe,ze]=G({x:null,y:null});let nt=null,ie=!1,Me=null,ue=!1,Ee;const[ot,Je]=G(S5),Et=D=>D.replace(/[^a-zA-Z0-9_-]/g,"_"),rn=()=>{var ln;const D=re(),V=v1();if(!D||!V)return;const me=((ln=D.getDataList().at(-1))==null?void 0:ln.timestamp)??Date.now(),ce=j(),$e=[];for(let ve=0;ve<ce.length;ve++){const pt=ce[ve];if(!Zb.includes(pt.type))continue;const Ct=Yb(pt);Ct!=null&&Gb(pt,V)&&$e.push({alertItem:pt,price:Ct})}const We=new Set;$e.forEach(({alertItem:ve,price:pt},Ct)=>{const de=`alert-${Et(ve.id||`idx_${Ct}`)}`;We.add(de);const st=(D.getOverlays({id:de})??[]).length>0,Ge={...ve,price:pt},Zt={id:de,name:"priceAlertLine",groupId:k5,paneId:"candle_pane",mode:"normal",points:[{timestamp:me,value:pt}],extendData:{alert:Ge,showInfo:!1}};st?D.overrideOverlay({id:de,points:Zt.points,extendData:Zt.extendData}):D.createOverlay(Zt)}),(D.getOverlays({groupId:k5})??[]).forEach(ve=>{ve.id&&!We.has(ve.id)&&D.removeOverlay({id:ve.id})})},Un=async D=>{var V;return await((V=e.onRemoveAlert)==null?void 0:V.call(e,D))??!0};X6({onRemove:D=>{Un(D)}}),ho(e.period),fo(e.symbol);const bn=Rb(Ub,D=>{it(D.visible),ke(D.order),ze({x:D.x,y:D.y})});let Cn=null;const kt=D=>{const V=D;if(!V)return;const me=re(),ce=n,$e=ce==null?void 0:ce.closest(".klinecharts-pro");if(!me||!$e||V.paneId!=="candle_pane"||typeof V.x!="number"||typeof V.y!="number")return;const We=Pb(me,V.x,V.y);if(We){if(We.overlayId===Cn)return;Cn=We.overlayId,bn.setExclusiveHover({order:We.order,anchorX:We.anchorX,anchorY:We.anchorY});return}Cn!=null&&(Cn=null,bn.resetHoverToHidden())},Be=Bb(()=>mr(re()),Wb),At=Ob({getApi:()=>re(),mainIndicators:g,setMainIndicators:_,subIndicators:y,setSubIndicators:v,indicatorSettingModalParams:ot,setIndicatorSettingModalParams:Je,createIndicator:yo}),Ye=D=>{const V=D.detail,me=(V==null?void 0:V.sourceContainer)??null,ce=n==null?void 0:n.closest(".klinecharts-pro");ce&&(me&&me!==ce||V!=null&&V.alert&&Oe(V.alert))},_t=D=>{const V=D.detail,me=(V==null?void 0:V.sourceContainer)??null,ce=n==null?void 0:n.closest(".klinecharts-pro");ce&&(me&&me!==ce||bn.onEvent(D))},on=()=>{var V;if(ie)return;ie=!0,(V=re())==null||V.unsubscribeAction("onCrosshairChange",kt),Cn=null,bn.clear(),Be.clear(),nt!=null&&(window.cancelAnimationFrame(nt),nt=null);const D=n==null?void 0:n.closest(".klinecharts-pro");D==null||D.removeEventListener(z1,_t),D==null||D.removeEventListener(f1,Ye),window.removeEventListener(z1,_t),window.removeEventListener(f1,Ye),window.removeEventListener("resize",gt),n&&fe.dispose(n)},at={setTheme:s,getTheme:()=>o(),setStyles:q9,getStyles:()=>j9()??{},setLocale:c,getLocale:()=>l(),setTimezone:D=>{L({key:D,text:a5(e.timezone,l())})},getTimezone:()=>C().key,setSymbol:fo,getSymbol:()=>v1(),setPeriod:ho,getPeriod:()=>b1(),getInstanceApi:()=>re(),resize:()=>{var D;return(D=re())==null?void 0:D.resize()},dispose:()=>{on()},setPositions:D=>{Kv(D,re())},setLiqPrice:D=>{Hv(D,re())},setOpenOrders:D=>{Wv(D,re())},setHisOrders:D=>{Uv(D,re())},setAlerts:D=>{te([...D]),rn()}};e.ref(at);const gt=()=>{nt==null&&(nt=window.requestAnimationFrame(()=>{var D;nt=null,(D=re())==null||D.resize()}))},an=()=>{Be.schedule()};return C0(()=>{var me,ce,$e,We,sn,ln,ve,pt,Ct,Ut;const D=n==null?void 0:n.closest(".klinecharts-pro");if(D==null||D.addEventListener(z1,_t),D==null||D.addEventListener(f1,Ye),window.addEventListener(z1,_t),window.addEventListener(f1,Ye),window.addEventListener("resize",gt),Fy(mo.init(n,{formatter:{formatDate:de=>{switch(b1().type){case"minute":return de.type==="xAxis"?fe.utils.formatDate(de.dateTimeFormat,de.timestamp,"HH:mm"):fe.utils.formatDate(de.dateTimeFormat,de.timestamp,"YYYY-MM-DD HH:mm");case"hour":return de.type==="xAxis"?fe.utils.formatDate(de.dateTimeFormat,de.timestamp,"MM-DD HH:mm"):fe.utils.formatDate(de.dateTimeFormat,de.timestamp,"YYYY-MM-DD HH:mm");case"day":case"week":return fe.utils.formatDate(de.dateTimeFormat,de.timestamp,"YYYY-MM-DD");case"month":return de.type==="xAxis"?fe.utils.formatDate(de.dateTimeFormat,de.timestamp,"YYYY-MM"):fe.utils.formatDate(de.dateTimeFormat,de.timestamp,"YYYY-MM-DD");case"year":return de.type==="xAxis"?fe.utils.formatDate(de.dateTimeFormat,de.timestamp,"YYYY"):fe.utils.formatDate(de.dateTimeFormat,de.timestamp,"YYYY-MM-DD")}return fe.utils.formatDate(de.dateTimeFormat,de.timestamp,"YYYY-MM-DD HH:mm")}}})),re()){Ey(e.rootElementId);const de=re().getDom("candle_pane","main");if(de){let Zt=document.createElement("div");if(Zt.className="klinecharts-pro-watermark",fe.utils.isString(e.watermark)){const _o=e.watermark.replace(/(^\s*)|(\s*$)/g,"");Zt.innerHTML=_o}else Zt.appendChild(e.watermark);de.appendChild(Zt)}const st=re().getDom("candle_pane","yAxis");i=document.createElement("span"),i.className="klinecharts-pro-price-unit",st==null||st.appendChild(i),(me=re())==null||me.setZoomAnchor({main:"last_bar",xAxis:"last_bar"}),(ce=re())==null||ce.setBarSpace(400),($e=re())==null||$e.subscribeAction("onCrosshairFeatureClick",Zt=>{}),(We=re())==null||We.subscribeAction("onIndicatorTooltipFeatureClick",At.onIndicatorTooltipFeatureClick),(sn=re())==null||sn.subscribeAction("onCandleTooltipFeatureClick",Zt=>{}),(ln=re())==null||ln.subscribeAction("onZoom",Zt=>{}),(ve=re())==null||ve.subscribeAction("onCrosshairChange",kt),Hb(e.overrides),Nv(re()),xi(re()),mr(re()),rn();const Ge=v1();Ge!=null&&Ge.priceCurrency?(i.innerHTML=Ge==null?void 0:Ge.priceCurrency.toLocaleUpperCase(),i.style.display="flex"):i.style.display="none",(pt=re())==null||pt.setSymbol({ticker:Ge.ticker,pricePrecision:(Ge==null?void 0:Ge.pricePrecision)??2,volumePrecision:(Ge==null?void 0:Ge.volumePrecision)??0}),(Ct=re())==null||Ct.setPeriod(b1()),(Ut=re())==null||Ut.setDataLoader(e.dataloader)}const V=re();if(V){g().forEach(st=>{yo(V,st,!0,{id:"candle_pane"})});const de={};e.subIndicators.forEach(st=>{const Ge=yo(V,st,!0);Ge&&(de[st]=Ge)}),v(de)}}),Sr(()=>{on()}),Ot(D=>{var ve,pt,Ct,Ut,de,st,Ge;const V=v1(),me=b1(),ce=re();if(!V||!me)return{symbol:V,period:me};const $e=D!==void 0&&(D.period.span!==me.span||D.period.type!==me.type||D.period.text!==me.text),We=D!==void 0&&(((ve=D.symbol)==null?void 0:ve.ticker)!==V.ticker||(((pt=D.symbol)==null?void 0:pt.pricePrecision)??2)!==(V.pricePrecision??2)||(((Ct=D.symbol)==null?void 0:Ct.volumePrecision)??0)!==(V.volumePrecision??0)),sn=D!==void 0&&((Ut=D.symbol)==null?void 0:Ut.ticker)===V.ticker&&((((de=D.symbol)==null?void 0:de.pricePrecision)??2)!==(V.pricePrecision??2)||(((st=D.symbol)==null?void 0:st.volumePrecision)??0)!==(V.volumePrecision??0));return D!==void 0&&((Ge=D.symbol)==null?void 0:Ge.ticker)!==V.ticker&&bi(null),$e&&(ce==null||ce.setPeriod(me),an()),$e&&!We||(ce==null||ce.setSymbol({...V,pricePrecision:V.pricePrecision??2,volumePrecision:V.volumePrecision??0}),an(),sn&&(ce==null||ce.resize())),rn(),{symbol:V,period:me}}),Ot(()=>{const D=re();if(!D)return;const V=o();D.setStyles(V);const me=V==="dark"?"#929AA5":"#76808F";Me!==me&&(Me=me,D.setStyles(Vb(me)))}),Ot(()=>{var D;(D=re())==null||D.setLocale(l())}),Ot(()=>{var D;(D=re())==null||D.setTimezone(C().key)}),Ot(()=>{const D=re();!D||ue||(X(eg(D.getStyles())),ue=!0)}),Ot(()=>{const D=re();if(!D)return;const V=j9();!V||Ee===V||(Ee=V,D.setStyles(V))}),Ot(()=>{j(),rn()}),Ot(()=>{const D=n;if(!D||!$()&&!O()&&!ee())return;const V=me=>{me.preventDefault(),me.stopPropagation()};D.addEventListener("wheel",V,{passive:!1}),D.addEventListener("touchmove",V,{passive:!1}),Sr(()=>{D.removeEventListener("wheel",V),D.removeEventListener("touchmove",V)})}),[Fb(),W(Pe,{get when(){return oe()},get children(){return W(lb,{get locale(){return e.locale},get datafeed(){return e.dataloader},onSymbolSelected:D=>{fo(D)},onClose:()=>{bt(!1)}})}}),W(Pe,{get when(){return f()},get children(){return W(Sv,{get locale(){return e.locale},get mainIndicators(){return g()},get subIndicators(){return y()},onClose:()=>{d(!1)},get onMainIndicatorChange(){return At.onMainIndicatorChange},get onSubIndicatorChange(){return At.onSubIndicatorChange}})}}),W(Pe,{get when(){return k()},get children(){return W(Mv,{get locale(){return e.locale},get timezone(){return C()},onClose:()=>{b(!1)},onConfirm:L})}}),W(Pe,{get when(){return O()},get children(){return W(Ab,{get alerts(){return j()},onClose:()=>{E(!1)},get onAddAlert(){return e.onAddAlert},onRemoveAlert:Un})}}),W(Pe,{get when(){return ee()},children:D=>W(Pn,{title:"预警详情",width:400,height:260,onClose:()=>{Oe(null)},get children(){var V=Nb();return K(V,W(x5,{get alert(){return D()}})),V}})}),W(Pe,{get when(){return $()},get children(){return W(qv,{get locale(){return e.locale},get currentStyles(){return fe.utils.clone(re().getStyles())},onClose:()=>{T(!1)},onChange:D=>{var V;(V=re())==null||V.setStyles(D)},onRestoreDefault:D=>{var me;const V={};D.forEach(ce=>{const $e=ce.key;p1(V,$e,fe.utils.formatValue(U(),$e))}),(me=re())==null||me.setStyles(V)}})}}),W(Pe,{get when(){return Y().length>0},get children(){return W(Jv,{get locale(){return e.locale},get url(){return Y()},onClose:()=>{I("")}})}}),W(Pe,{get when(){return ot().visible},get children(){return W(rb,{get locale(){return e.locale},get params(){return ot()},onClose:()=>{Je(S5)},get onConfirm(){return At.onIndicatorSettingConfirm}})}}),W(Pe,{get when(){return qe(()=>!!St())()&&!!tt()},get children(){return W(Py,{get order(){return tt()},get formattedTime(){return L6(tt().timestamp,e.locale,C().key)},get anchorX(){return Qe().x},get anchorY(){return Qe().y},get clipElement(){return n==null?void 0:n.closest(".klinecharts-pro")}})}}),W(Gy,{get locale(){return e.locale},get symbol(){return v1()},get spread(){return z()},get period(){return b1()},get periods(){return e.periods},onMenuClick:async()=>{var D;try{await dc(()=>Q(!z())),(D=re())==null||D.resize()}catch{}},onSymbolClick:()=>{bt(!oe())},onPeriodChange:ho,onIndicatorClick:()=>{d(D=>!D)},onTimezoneClick:()=>{b(D=>!D)},onAlertClick:()=>{E(!0)},onSettingClick:()=>{T(D=>!D)},onScreenshotClick:()=>{if(re()){const D=re().getConvertPictureUrl(!0,"jpeg",e.theme==="dark"?"#151517":"#ffffff");I(D)}}}),(()=>{var D=zb(),V=D.firstChild;K(D,W(Pe,{get when(){return By()},get children(){return W(t9,{})}}),V),K(D,W(Pe,{get when(){return z()},get children(){return W(Lv,{get locale(){return e.locale},onDrawingItemClick:ce=>{Kb(ce,"candle_pane")},onModeChange:ce=>{var $e;($e=re())==null||$e.overrideOverlay({groupId:"drawing_tools",mode:ce})},onLockChange:ce=>{var $e;($e=re())==null||$e.overrideOverlay({groupId:"drawing_tools",lock:ce})},onVisibleChange:ce=>{var $e;($e=re())==null||$e.overrideOverlay({groupId:"drawing_tools",visible:ce})},onRemoveClick:ce=>{var $e;($e=re())==null||$e.removeOverlay({groupId:ce})}})}}),V);var me=n;return typeof me=="function"?q1(me,V):n=V,Te(ce=>{var $e=e.overrides.backgroundType??"solid",We=z();return $e!==ce.e&&ft(V,"data-pane-style",ce.e=$e),We!==ce.t&&ft(V,"data-drawing-bar-visible",ce.t=We),ce},{e:void 0,t:void 0}),D})()]};class jb{constructor(n){kn(this,"_datafeed");kn(this,"_loading");this._datafeed=n,this._loading=!1}async getBars(n){const{type:i,timestamp:o,symbol:s,period:l,callback:c}=n,f=l;if(i==="backward"||i==="update"){c([],!1);return}this._loading=!0,Q9(!0);const d=o??new Date().getTime();await(async()=>{const[_,y]=this.adjustFromTo(f,d,500),v=await this._datafeed.getHistoryKLineData(s,f,_,y);c(v,v.length>0),this._loading=!1,Q9(!1)})()}subscribeBar(n){const{symbol:i,period:o,callback:s}=n;this._datafeed.subscribe(i,o,s)}unsubscribeBar(n){const{symbol:i,period:o}=n;this._datafeed.unsubscribe(i,o)}searchSymbols(n){return this._datafeed.searchSymbols(n)}get loading(){return this._loading}set loading(n){this._loading=n}adjustFromTo(n,i,o){let s=i,l=s;switch(n.type){case"minute":s-=s%(60*1e3),l=s-o*n.span*60*1e3;break;case"hour":s-=s%(60*60*1e3),l=s-o*n.span*60*60*1e3;break;case"day":s-=s%(24*60*60*1e3),l=s-o*n.span*24*60*60*1e3;break;case"week":{const c=new Date(s),f=c.getDay()||7;c.setHours(0,0,0,0),s=c.getTime()-(f-1)*24*60*60*1e3,l=s-o*n.span*7*24*60*60*1e3;break}case"month":{const c=new Date(s);s=new Date(c.getFullYear(),c.getMonth(),1).getTime();const f=new Date(s-o*n.span*30*24*60*60*1e3);l=new Date(f.getFullYear(),f.getMonth(),1).getTime();break}case"year":{const c=new Date(s);s=new Date(c.getFullYear(),0,1).getTime();const f=new Date(s-o*n.span*365*24*60*60*1e3);l=new Date(f.getFullYear(),0,1).getTime();break}}return[l,s]}}var qb=N('<svg class=logo viewBox="0 0 80 92"><path d=M28.148808359375,51.7280513671875L22.963588359375,51.7280513671875C21.572648359375002,51.7280513671875,20.445068359375,52.6220613671875,20.445068359375,53.7248813671875L20.445068359375,72.3979013671875C20.445068359375,73.5007013671875,21.572648359375002,74.39470136718751,22.963588359375,74.39470136718751L33.926568359375,74.39470136718751C35.317468359375,74.39470136718751,36.445068359375,73.5007013671875,36.445068359375,72.3979013671875L36.445068359375,53.7248813671875C36.445068359375,52.6220613671875,35.317468359375,51.7280513671875,33.926568359375,51.7280513671875L28.741398359374998,51.7280513671875L28.741398359374998,46.2963223671875C28.741398359374998,46.1665793671875,28.608748359375,46.0614013671875,28.445108359375,46.0614013671875C28.281468359375,46.0614013671875,28.148808359375,46.1665793671875,28.148808359375,46.2963223671875L28.148808359375,51.7280513671875ZM28.741398359374998,74.3948013671875L28.741398359374998,79.82650136718749C28.741398359374998,79.9563013671875,28.608748359375,80.0614013671875,28.445108359375,80.0614013671875C28.281468359375,80.0614013671875,28.148808359375,79.9563013671875,28.148808359375,79.82650136718749L28.148808359375,74.3948013671875L28.741398359374998,74.3948013671875Z></path><path d=M51.148808359374996,44.7280513671875L45.963588359375,44.7280513671875C44.572648359375,44.7280513671875,43.445068359375,45.6220613671875,43.445068359375,46.7248813671875L43.445068359375,65.3979013671875C43.445068359375,66.5007013671875,44.572648359375,67.39470136718751,45.963588359375,67.39470136718751L56.926568359375,67.39470136718751C58.317468359375,67.39470136718751,59.445068359375,66.5007013671875,59.445068359375,65.3979013671875L59.445068359375,46.7248813671875C59.445068359375,45.6220613671875,58.317468359375,44.7280513671875,56.926568359375,44.7280513671875L51.741398359375,44.7280513671875L51.741398359375,39.2963223671875C51.741398359375,39.1665793671875,51.608748359375,39.0614013671875,51.445108359375,39.0614013671875C51.281468359375,39.0614013671875,51.148808359374996,39.1665793671875,51.148808359374996,39.2963223671875L51.148808359374996,44.7280513671875ZM51.741398359375,67.3948013671875L51.741398359375,72.82650136718749C51.741398359375,72.9563013671875,51.608748359375,73.0614013671875,51.445108359375,73.0614013671875C51.281468359375,73.0614013671875,51.148808359374996,72.9563013671875,51.148808359374996,72.82650136718749L51.148808359374996,67.3948013671875L51.741398359375,67.3948013671875Z></path><path d=M17.7274,90.6541C17.5901,90.6541,17.4517,90.6436,17.3121,90.6225C9.93219,89.5095,4.80718,86.7136,2.07787,82.3084C-1.1223,77.1437,0.241766,71.6314,0.56829,70.5137C5.37624,46.647,15.0785,38.4945,21.5025,33.0957C22.9683,31.8633,24.2342,30.7995,25.1676,29.7672C25.4105,29.4984,25.6051,29.2154,25.7556,28.9202C24.7465,29.2231,24.1971,29.4326,24.1703,29.4429C22.908,29.9368,21.4777,29.3247,20.9761,28.076C20.4756,26.8272,21.0897,25.4146,22.352,24.9172C22.5042,24.8571,23.5312,24.4607,25.3073,23.9616C24.087,21.4425,21.7693,18.7949,19.7125,16.6431L19.2819,16.1902C16.2438,12.9776,14.6017,4.80159,14.3036,3.19471C14.1306,2.26212,14.4636,1.30796,15.1814,0.679657C15.8995,0.0512175,16.8976,-0.159672,17.8125,0.123747C22.7731,1.66274,24.2638,1.81255,27.2321,2.11098C28.7357,2.26195,29.83,3.59029,29.6762,5.07662C29.5236,6.56295,28.182,7.64786,26.6784,7.49454C24.4992,7.27569,22.9517,7.09896,20.724,6.56646C21.4493,9.09088,22.3803,11.5427,23.2771,12.4919L23.6876,12.9237C25.3757,14.69,28.9691,18.45,30.7016,22.7299C35.0392,21.9433,40.8791,21.3359,47.7817,21.7249C48.2004,20.7386,48.8054,19.7953,49.5907,18.9135C49.7137,18.7754,49.8498,18.6502,49.9988,18.539C53.6142,15.8508,57.5491,12.857,59.7803,11.0758C58.1028,11.2502,56.1034,11.0278,53.9124,9.70882C53.2439,9.30622,52.5992,8.89427,51.9662,8.48933C48.4668,6.25164,46.497,5.12109,43.4234,5.94853C41.9647,6.34058,40.4622,5.48975,40.0659,4.04789C39.6695,2.60604,40.5296,1.11853,41.9871,0.726471C47.5602,-0.773825,51.4796,1.73271,54.9364,3.9434L54.9364,3.9434C55.5284,4.32176,56.1318,4.70797,56.7564,5.08482C58.3843,6.06556,59.4858,5.76127,61.2899,5.13865C62.3511,4.77234,63.5567,4.35687,64.8675,4.53476C66.3321,4.73254,67.4406,5.56933,67.9103,6.83096C68.7444,9.07333,67.1035,11.5533,65.5797,13.2374C64.6729,14.2394,60.0845,17.7606,56.4519,20.4957C56.9477,20.3369,57.4767,20.2511,58.026,20.2511C59.4281,20.2511,60.6982,20.8102,61.621,21.7153C65.4948,20.6901,67.87,17.9563,67.9033,17.9175C68.78,16.8888,70.3322,16.7577,71.3721,17.6226C72.412,18.4886,72.5457,20.0253,71.6702,21.054C71.5221,21.2286,69.5063,23.5492,66.0787,25.233C69.5399,26.8822,72.9993,29.682,74.1841,34.4145C74.5106,35.7206,73.7062,37.0407,72.3859,37.3638C72.1871,37.4117,71.9884,37.4351,71.792,37.4351C70.687,37.4351,69.6826,36.6932,69.4046,35.5848C68.4378,31.7217,64.8144,29.7431,61.7619,28.7456C60.8298,29.7349,59.5009,30.3535,58.026,30.3535C55.8642,30.3535,54.0162,29.0245,53.2713,27.1474C53.2022,27.138,53.1331,27.1287,53.0642,27.1195C54.232,29.5936,57.0851,31.9259,58.1868,32.665C58.3157,32.7516,58.4423,32.8523,58.5547,32.9599C66.5865,40.6151,72.4887,48.8133,76.0971,57.3287C76.6815,58.7074,76.0249,60.2932,74.6313,60.8702C74.2976,61.01,73.9388,61.082,73.576,61.082C72.5065,61.082,71.4914,60.4582,71.0525,59.4213C67.7577,51.6455,62.331,44.1074,54.9203,37.0116C53.6073,36.1009,48.0984,31.9917,47.2065,26.583C40.9421,26.2679,35.6187,26.8278,31.6725,27.5336C31.6197,29.527,30.9225,31.5172,29.2456,33.3731C28.0614,34.6827,26.5968,35.915,25.0446,37.2188C21.9414,39.8269,18.2648,42.9169,14.8104,48.1192C11.356,53.3215,8.12389,60.6361,5.9098,71.6934C5.88732,71.8035,5.85893,71.9123,5.82344,72.0188C5.81634,72.041,4.57886,76.0413,6.77344,79.5289C8.6332,82.4828,12.4557,84.4139,18.1367,85.2705C19.6297,85.4953,20.6566,86.8762,20.4295,88.3532C20.2213,89.6944,19.0559,90.6541,17.7274,90.6541ZM35.1195,7.03101C33.3502,7.03101,31.9158,5.61208,31.9158,3.86173C31.9158,2.11139,33.3502,0.69245,35.1195,0.69245C36.8889,0.69245,38.3233,2.11139,38.3233,3.86173C38.3233,5.61208,36.8889,7.03101,35.1195,7.03101ZM57.6848,23.1892L58.414,24.4754C58.8984,24.3623,59.3923,24.3435,59.8644,24.4203C60.2191,24.5005,60.5087,24.7182,60.6663,25.0229C60.8636,25.3394,60.8993,25.7346,60.7646,26.1094C60.5988,26.5176,60.2972,26.8749,59.9085,27.1235L60.31,27.8316L59.7886,28.1294L59.3994,27.443C58.9257,27.7175,58.399,27.883,57.8664,27.9247L57.3744,27.0569C57.6378,27.0741,57.9071,27.048,58.1704,26.9797C58.4501,26.9251,58.7239,26.8323,58.9829,26.7044L58.2801,25.4647C57.8047,25.5877,57.3167,25.6065,56.8549,25.5197C56.4913,25.4263,56.196,25.1971,56.0328,24.8814C55.8433,24.5561,55.8127,24.1572,55.9484,23.7789C56.088,23.373,56.3763,23.0149,56.7584,22.7726L56.4166,22.1699L56.938,21.8721L57.2727,22.4625C57.6615,22.2376,58.0888,22.0901,58.5254,22.0301L59.0042,22.8746C58.5548,22.8828,58.103,22.9906,57.6848,23.1892ZM56.9319,24.2961Q57.1278,24.6417,57.7863,24.5856L57.1695,23.4978Q56.6982,23.884,56.9319,24.2961ZM58.9077,25.3462L59.4981,26.3875L59.499,26.3891Q59.9965,26.0045,59.7628,25.5923Q59.573,25.2576,58.9077,25.3462ZM73.2212,66.5065C73.2212,68.2569,74.6555,69.6758,76.4249,69.6758C78.1943,69.6758,79.6286,68.2569,79.6286,66.5065C79.6286,64.7562,78.1943,63.3372,76.4249,63.3372C74.6555,63.3372,73.2212,64.7562,73.2212,66.5065ZM35.9465,91.8045C35.0734,91.8045,34.2038,91.7987,33.3378,91.7858C31.827,91.7636,30.6203,90.5359,30.6428,89.0402C30.6653,87.5457,31.9158,86.3297,33.4183,86.3742C49.6344,86.6059,65.7512,84.6175,67.6134,84.037C72.1953,82.4184,74.5295,79.3603,74.5295,74.9575C74.5295,73.463,75.754,72.2517,77.2648,72.2517C78.7755,72.2517,80,73.463,80,74.9575C80,81.5992,76.148,86.7686,69.4317,89.142C67.0041,89.9999,51.0955,91.8046,35.9465,91.8045ZM25.2731,92C23.5037,92,22.0693,90.5811,22.0693,88.8307C22.0693,87.0804,23.5037,85.6615,25.2731,85.6615C27.0424,85.6615,28.4768,87.0804,28.4768,88.8307C28.4768,90.5811,27.0424,92,25.2731,92Z>');const Xb=qb();class Jb{constructor(n){kn(this,"_container");kn(this,"_chartApi",null);if(fe.utils.isString(n.container)){if(this._container=document.getElementById(n.container),!this._container)throw new Error("Container is null")}else this._container=n.container;this._container.classList.add("klinecharts-pro"),this._container.setAttribute("data-theme",n.theme??"light");const i=new jb(n.datafeed);wc(()=>{const o=this;return W(Qb,{ref:s=>{o._chartApi=s},get watermark(){return n.watermark??Xb},get theme(){return n.theme??"light"},get locale(){return n.locale??"zh-CN"},get drawingBarVisible(){return n.drawingBarVisible??!0},get symbol(){return n.symbol},get period(){return n.period},get periods(){return n.periods??[{span:1,type:"minute",text:"1m"},{span:5,type:"minute",text:"5m"},{span:15,type:"minute",text:"15m"},{span:1,type:"hour",text:"1H"},{span:2,type:"hour",text:"2H"},{span:4,type:"hour",text:"4H"},{span:1,type:"day",text:"D"},{span:1,type:"week",text:"W"},{span:1,type:"month",text:"M"},{span:1,type:"year",text:"Y"}]},get overrides(){return n.overrides??{}},get timezone(){return n.timezone??"Etc/UTC"},get mainIndicators(){return n.mainIndicators??["MA"]},get subIndicators(){return n.subIndicators??["VOL"]},get dataTimestamp(){return n.dataTimestamp??new Date().getTime()},get alerts(){return n.alerts??[]},get onAddAlert(){return n.onAddAlert??(()=>!0)},get onRemoveAlert(){return n.onRemoveAlert??(()=>!0)},get rootElementId(){var s;return n.rootElementId??((s=o._container)==null?void 0:s.id)??""},dataloader:i})},this._container)}destroy(){this._container&&fe.dispose(this._container),this._container=null,this._chartApi=null}setTheme(n){var i;(i=this._container)==null||i.setAttribute("data-theme",n),this._chartApi.setTheme(n)}getTheme(){return this._chartApi.getTheme()}setStyles(n){this._chartApi.setStyles(n)}getStyles(){return this._chartApi.getStyles()}setLocale(n){this._chartApi.setLocale(n)}getLocale(){return this._chartApi.getLocale()}setTimezone(n){this._chartApi.setTimezone(n)}getTimezone(){return this._chartApi.getTimezone()}setSymbol(n){this._chartApi.setSymbol(n)}getSymbol(){return this._chartApi.getSymbol()}setPeriod(n){this._chartApi.setPeriod(n)}getPeriod(){return this._chartApi.getPeriod()}getInstanceApi(){return re()}resize(){re().resize()}dispose(){this.destroy()}setPositions(n){var i;(i=this._chartApi)==null||i.setPositions(n)}setLiqPrice(n){var i;(i=this._chartApi)==null||i.setLiqPrice(n)}setOpenOrders(n){var i;(i=this._chartApi)==null||i.setOpenOrders(n)}setHisOrders(n){var i;(i=this._chartApi)==null||i.setHisOrders(n)}setAlerts(n){var i;(i=this._chartApi)==null||i.setAlerts(n)}}const mI="";console.log("[@wangliang139/klinecharts-pro] v0.2.24"),nc.forEach(e=>{fe.registerOverlay(e)}),Pt.DefaultDatafeed=rc,Pt.KLineChartPro=Jb,Pt.loadLocales=Oy,Object.defineProperty(Pt,Symbol.toStringTag,{value:"Module"})});
40
40
  //# sourceMappingURL=klinecharts-pro.umd.js.map