@esri/solutions-components 0.5.9 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/public-notification/resources.json +1 -1
- package/dist/assets/t9n/public-notification/resources_ar.json +5 -4
- package/dist/assets/t9n/public-notification/resources_bg.json +5 -4
- package/dist/assets/t9n/public-notification/resources_bs.json +5 -4
- package/dist/assets/t9n/public-notification/resources_ca.json +5 -4
- package/dist/assets/t9n/public-notification/resources_cs.json +5 -4
- package/dist/assets/t9n/public-notification/resources_da.json +5 -4
- package/dist/assets/t9n/public-notification/resources_de.json +5 -4
- package/dist/assets/t9n/public-notification/resources_el.json +5 -4
- package/dist/assets/t9n/public-notification/resources_en.json +1 -1
- package/dist/assets/t9n/public-notification/resources_es.json +5 -4
- package/dist/assets/t9n/public-notification/resources_et.json +5 -4
- package/dist/assets/t9n/public-notification/resources_fi.json +5 -4
- package/dist/assets/t9n/public-notification/resources_fr.json +5 -4
- package/dist/assets/t9n/public-notification/resources_he.json +5 -4
- package/dist/assets/t9n/public-notification/resources_hr.json +5 -4
- package/dist/assets/t9n/public-notification/resources_hu.json +5 -4
- package/dist/assets/t9n/public-notification/resources_id.json +5 -4
- package/dist/assets/t9n/public-notification/resources_it.json +5 -4
- package/dist/assets/t9n/public-notification/resources_ja.json +5 -4
- package/dist/assets/t9n/public-notification/resources_ko.json +5 -4
- package/dist/assets/t9n/public-notification/resources_lt.json +5 -4
- package/dist/assets/t9n/public-notification/resources_lv.json +5 -4
- package/dist/assets/t9n/public-notification/resources_nb.json +5 -4
- package/dist/assets/t9n/public-notification/resources_nl.json +5 -4
- package/dist/assets/t9n/public-notification/resources_pl.json +5 -4
- package/dist/assets/t9n/public-notification/resources_pt-BR.json +5 -4
- package/dist/assets/t9n/public-notification/resources_pt-PT.json +5 -4
- package/dist/assets/t9n/public-notification/resources_ro.json +5 -4
- package/dist/assets/t9n/public-notification/resources_ru.json +5 -4
- package/dist/assets/t9n/public-notification/resources_sk.json +5 -4
- package/dist/assets/t9n/public-notification/resources_sl.json +5 -4
- package/dist/assets/t9n/public-notification/resources_sr.json +5 -4
- package/dist/assets/t9n/public-notification/resources_sv.json +5 -4
- package/dist/assets/t9n/public-notification/resources_th.json +5 -4
- package/dist/assets/t9n/public-notification/resources_tr.json +5 -4
- package/dist/assets/t9n/public-notification/resources_uk.json +5 -4
- package/dist/assets/t9n/public-notification/resources_vi.json +5 -4
- package/dist/assets/t9n/public-notification/resources_zh-CN.json +5 -4
- package/dist/assets/t9n/public-notification/resources_zh-HK.json +5 -4
- package/dist/assets/t9n/public-notification/resources_zh-TW.json +5 -4
- package/dist/cjs/buffer-tools_4.cjs.entry.js +3 -3
- package/dist/cjs/calcite-input-text_5.cjs.entry.js +6 -11
- package/dist/cjs/{downloadUtils-4ef4b28b.js → downloadUtils-7a0fd3c0.js} +77 -20
- package/dist/cjs/{index.es-cbe67d5b.js → index.es-9965b78c.js} +1 -1
- package/dist/cjs/layer-table_2.cjs.entry.js +8 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +56 -21
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/buffer-tools/buffer-tools.css +4 -0
- package/dist/collection/components/buffer-tools/buffer-tools.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +7 -2
- package/dist/collection/components/map-draw-tools/map-draw-tools.css +4 -0
- package/dist/collection/components/map-select-tools/map-select-tools.js +18 -1
- package/dist/collection/components/pdf-download/pdf-download.js +3 -9
- package/dist/collection/components/public-notification/public-notification.js +57 -21
- package/dist/collection/demos/new-public-notification.html +6 -4
- package/dist/collection/utils/downloadUtils.js +74 -19
- package/dist/collection/utils/downloadUtils.ts +93 -26
- package/dist/collection/utils/interfaces.ts +2 -2
- package/dist/components/buffer-tools2.js +2 -2
- package/dist/components/downloadUtils.js +75 -20
- package/dist/components/layer-table2.js +7 -2
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-select-tools2.js +3 -1
- package/dist/components/pdf-download2.js +3 -9
- package/dist/components/public-notification.js +57 -21
- package/dist/esm/buffer-tools_4.entry.js +3 -3
- package/dist/esm/calcite-combobox_3.entry.js +1 -1
- package/dist/esm/calcite-input-text_5.entry.js +7 -12
- package/dist/esm/{downloadUtils-2ebeb46d.js → downloadUtils-a447bab1.js} +77 -22
- package/dist/esm/{index.es-6dd27a48.js → index.es-b9cb902a.js} +2 -2
- package/dist/esm/layer-table_2.entry.js +9 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{mapViewUtils-ebbd4733.js → mapViewUtils-27dfdc29.js} +1 -1
- package/dist/esm/public-notification.entry.js +57 -22
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/demos/new-public-notification.html +6 -4
- package/dist/solutions-components/p-2f4e1ddf.entry.js +6 -0
- package/dist/solutions-components/{p-657caece.js → p-345f517c.js} +5 -5
- package/dist/solutions-components/{p-390d7de8.js → p-4b426bab.js} +1 -1
- package/dist/solutions-components/{p-b4d4b50a.entry.js → p-52b747fa.entry.js} +3 -3
- package/dist/solutions-components/p-62492a2d.entry.js +17 -0
- package/dist/solutions-components/{p-ad82c173.js → p-80757ebd.js} +1 -1
- package/dist/solutions-components/p-cf00a2ef.entry.js +6 -0
- package/dist/solutions-components/{p-83e3db8e.entry.js → p-db099e05.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/downloadUtils.ts +93 -26
- package/dist/solutions-components/utils/interfaces.ts +2 -2
- package/dist/types/components/map-select-tools/map-select-tools.d.ts +5 -0
- package/dist/types/components/public-notification/public-notification.d.ts +18 -11
- package/dist/types/components.d.ts +8 -0
- package/dist/types/utils/downloadUtils.d.ts +22 -8
- package/dist/types/utils/interfaces.d.ts +2 -2
- package/package.json +1 -1
- package/dist/solutions-components/p-6f27bea2.entry.js +0 -17
- package/dist/solutions-components/p-db82a9ce.entry.js +0 -6
- package/dist/solutions-components/p-deb90ce7.entry.js +0 -6
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{a as t,c as r,g as i}from"./p-e1a4994d.js";import{_ as e}from"./p-657caece.js";import"./p-f8be5d5f.js";import"./p-d7ddd3a2.js";import"./p-fc2277fe.js";import"./p-390d7de8.js";import"./p-92de1de9.js";var n,s,a=function(t){return t&&t.Math==Math&&t},o=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof t&&t)||function(){return this}()||Function("return this")(),h=function(t){try{return!!t()}catch(t){return!0}},u=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!h((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,l=c?f.bind(f):function(){return f.apply(f,arguments)},v={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,p=d&&!v.call({1:2},1)?function(t){var r=d(this,t);return!!r&&r.enumerable}:v,y={f:p},g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},m=Function.prototype,b=m.call,w=c&&m.bind.bind(b,b),x=c?w:function(t){return function(){return b.apply(t,arguments)}},M=x({}.toString),k=x("".slice),S=function(t){return k(M(t),8,-1)},N=Object,P=x("".split),j=h((function(){return!N("z").propertyIsEnumerable(0)}))?function(t){return"String"==S(t)?P(t,""):N(t)}:N,O=function(t){return null==t},E=TypeError,T=function(t){if(O(t))throw E("Can't call method on "+t);return t},C=function(t){return j(T(t))},A="object"==typeof document&&document.all,R={all:A,IS_HTMLDDA:void 0===A&&void 0!==A},B=R.all,L=R.IS_HTMLDDA?function(t){return"function"==typeof t||t===B}:function(t){return"function"==typeof t},$=R.all,I=R.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:L(t)||t===$}:function(t){return"object"==typeof t?null!==t:L(t)},D=function(t){return L(t)?t:void 0},F=function(t,r){return arguments.length<2?D(o[t]):o[t]&&o[t][r]},z=x({}.isPrototypeOf),_="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Y=o.process,X=o.Deno,q=Y&&Y.versions||X&&X.version,G=q&&q.v8;G&&(s=(n=G.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&_&&(!(n=_.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=_.match(/Chrome\/(\d+)/))&&(s=+n[1]);var U=s,V=!!Object.getOwnPropertySymbols&&!h((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&U&&U<41})),H=V&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,W=Object,Q=H?function(t){return"symbol"==typeof t}:function(t){var r=F("Symbol");return L(r)&&z(r.prototype,W(t))},Z=String,K=function(t){try{return Z(t)}catch(t){return"Object"}},J=TypeError,tt=function(t){if(L(t))return t;throw J(K(t)+" is not a function")},rt=function(t,r){var i=t[r];return O(i)?void 0:tt(i)},it=TypeError,et=Object.defineProperty,nt=function(t,r){try{et(o,t,{value:r,configurable:!0,writable:!0})}catch(i){o[t]=r}return r},st="__core-js_shared__",at=o[st]||nt(st,{}),ot=r((function(t){(t.exports=function(t,r){return at[t]||(at[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.27.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})})),ht=Object,ut=function(t){return ht(T(t))},ct=x({}.hasOwnProperty),ft=Object.hasOwn||function(t,r){return ct(ut(t),r)},lt=0,vt=Math.random(),dt=x(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+dt(++lt+vt,36)},yt=o.Symbol,gt=ot("wks"),mt=H?yt.for||yt:yt&&yt.withoutSetter||pt,bt=function(t){return ft(gt,t)||(gt[t]=V&&ft(yt,t)?yt[t]:mt("Symbol."+t)),gt[t]},wt=TypeError,xt=bt("toPrimitive"),Mt=function(t){var r=function(t,r){if(!I(t)||Q(t))return t;var i,e=rt(t,xt);if(e){if(void 0===r&&(r="default"),i=l(e,t,r),!I(i)||Q(i))return i;throw wt("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var i,e;if("string"===r&&L(i=t.toString)&&!I(e=l(i,t)))return e;if(L(i=t.valueOf)&&!I(e=l(i,t)))return e;if("string"!==r&&L(i=t.toString)&&!I(e=l(i,t)))return e;throw it("Can't convert object to primitive value")}(t,r)}(t,"string");return Q(r)?r:r+""},kt=o.document,St=I(kt)&&I(kt.createElement),Nt=function(t){return St?kt.createElement(t):{}},Pt=!u&&!h((function(){return 7!=Object.defineProperty(Nt("div"),"a",{get:function(){return 7}}).a})),jt=Object.getOwnPropertyDescriptor,Ot=u?jt:function(t,r){if(t=C(t),r=Mt(r),Pt)try{return jt(t,r)}catch(t){}if(ft(t,r))return g(!l(y.f,t,r),t[r])},Et={f:Ot},Tt=u&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=String,At=TypeError,Rt=function(t){if(I(t))return t;throw At(Ct(t)+" is not an object")},Bt=TypeError,Lt=Object.defineProperty,$t=Object.getOwnPropertyDescriptor,It="enumerable",Dt="configurable",Ft="writable",zt=u?Tt?function(t,r,i){if(Rt(t),r=Mt(r),Rt(i),"function"==typeof t&&"prototype"===r&&"value"in i&&Ft in i&&!i[Ft]){var e=$t(t,r);e&&e[Ft]&&(t[r]=i.value,i={configurable:Dt in i?i[Dt]:e[Dt],enumerable:It in i?i[It]:e[It],writable:!1})}return Lt(t,r,i)}:Lt:function(t,r,i){if(Rt(t),r=Mt(r),Rt(i),Pt)try{return Lt(t,r,i)}catch(t){}if("get"in i||"set"in i)throw Bt("Accessors not supported");return"value"in i&&(t[r]=i.value),t},_t={f:zt},Yt=u?function(t,r,i){return _t.f(t,r,g(1,i))}:function(t,r,i){return t[r]=i,t},Xt=Function.prototype,qt=u&&Object.getOwnPropertyDescriptor,Gt=ft(Xt,"name"),Ut={EXISTS:Gt,PROPER:Gt&&"something"===function(){}.name,CONFIGURABLE:Gt&&(!u||u&&qt(Xt,"name").configurable)},Vt=x(Function.toString);L(at.inspectSource)||(at.inspectSource=function(t){return Vt(t)});var Ht,Wt,Qt,Zt=at.inspectSource,Kt=o.WeakMap,Jt=L(Kt)&&/native code/.test(String(Kt)),tr=ot("keys"),rr=function(t){return tr[t]||(tr[t]=pt(t))},ir={},er="Object already initialized",nr=o.TypeError;if(Jt||at.state){var sr=at.state||(at.state=new(0,o.WeakMap));sr.get=sr.get,sr.has=sr.has,sr.set=sr.set,Ht=function(t,r){if(sr.has(t))throw nr(er);return r.facade=t,sr.set(t,r),r},Wt=function(t){return sr.get(t)||{}},Qt=function(t){return sr.has(t)}}else{var ar=rr("state");ir[ar]=!0,Ht=function(t,r){if(ft(t,ar))throw nr(er);return r.facade=t,Yt(t,ar,r),r},Wt=function(t){return ft(t,ar)?t[ar]:{}},Qt=function(t){return ft(t,ar)}}var or={set:Ht,get:Wt,has:Qt,enforce:function(t){return Qt(t)?Wt(t):Ht(t,{})},getterFor:function(t){return function(r){var i;if(!I(r)||(i=Wt(r)).type!==t)throw nr("Incompatible receiver, "+t+" required");return i}}},hr=r((function(t){var r=Ut.CONFIGURABLE,i=or.enforce,e=or.get,n=String,s=Object.defineProperty,a=x("".slice),o=x("".replace),c=x([].join),f=u&&!h((function(){return 8!==s((function(){}),"length",{value:8}).length})),l=String(String).split("String"),v=t.exports=function(t,e,h){"Symbol("===a(n(e),0,7)&&(e="["+o(n(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),h&&h.getter&&(e="get "+e),h&&h.setter&&(e="set "+e),(!ft(t,"name")||r&&t.name!==e)&&(u?s(t,"name",{value:e,configurable:!0}):t.name=e),f&&h&&ft(h,"arity")&&t.length!==h.arity&&s(t,"length",{value:h.arity});try{h&&ft(h,"constructor")&&h.constructor?u&&s(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var v=i(t);return ft(v,"source")||(v.source=c(l,"string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return L(this)&&e(this).source||Zt(this)}),"toString")})),ur=function(t,r,i,e){e||(e={});var n=e.enumerable,s=void 0!==e.name?e.name:r;if(L(i)&&hr(i,s,e),e.global)n?t[r]=i:nt(r,i);else{try{e.unsafe?t[r]&&(n=!0):delete t[r]}catch(t){}n?t[r]=i:_t.f(t,r,{value:i,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return t},cr=Math.ceil,fr=Math.floor,lr=Math.trunc||function(t){var r=+t;return(r>0?fr:cr)(r)},vr=function(t){var r=+t;return r!=r||0===r?0:lr(r)},dr=Math.max,pr=Math.min,yr=function(t,r){var i=vr(t);return i<0?dr(i+r,0):pr(i,r)},gr=Math.min,mr=function(t){return t>0?gr(vr(t),9007199254740991):0},br=function(t){return mr(t.length)},wr=function(t){return function(r,i,e){var n,s=C(r),a=br(s),o=yr(e,a);if(t&&i!=i){for(;a>o;)if((n=s[o++])!=n)return!0}else for(;a>o;o++)if((t||o in s)&&s[o]===i)return t||o||0;return!t&&-1}},xr={includes:wr(!0),indexOf:wr(!1)},Mr=xr.indexOf,kr=x([].push),Sr=function(t,r){var i,e=C(t),n=0,s=[];for(i in e)!ft(ir,i)&&ft(e,i)&&kr(s,i);for(;r.length>n;)ft(e,i=r[n++])&&(~Mr(s,i)||kr(s,i));return s},Nr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pr=Nr.concat("length","prototype"),jr=Object.getOwnPropertyNames||function(t){return Sr(t,Pr)},Or={f:jr},Er={f:Object.getOwnPropertySymbols},Tr=x([].concat),Cr=F("Reflect","ownKeys")||function(t){var r=Or.f(Rt(t)),i=Er.f;return i?Tr(r,i(t)):r},Ar=function(t,r,i){for(var e=Cr(r),n=_t.f,s=Et.f,a=0;a<e.length;a++){var o=e[a];ft(t,o)||i&&ft(i,o)||n(t,o,s(r,o))}},Rr=/#|\.prototype\./,Br=function(t,r){var i=$r[Lr(t)];return i==Dr||i!=Ir&&(L(r)?h(r):!!r)},Lr=Br.normalize=function(t){return String(t).replace(Rr,".").toLowerCase()},$r=Br.data={},Ir=Br.NATIVE="N",Dr=Br.POLYFILL="P",Fr=Br,zr=Et.f,_r=function(t,r){var i,e,n,s,a,h=t.target,u=t.global,c=t.stat;if(i=u?o:c?o[h]||nt(h,{}):(o[h]||{}).prototype)for(e in r){if(s=r[e],n=t.dontCallGetSet?(a=zr(i,e))&&a.value:i[e],!Fr(u?e:h+(c?".":"#")+e,t.forced)&&void 0!==n){if(typeof s==typeof n)continue;Ar(s,n)}(t.sham||n&&n.sham)&&Yt(s,"sham",!0),ur(i,e,s,t)}},Yr="undefined"!=typeof process&&"process"==S(process),Xr=String,qr=TypeError,Gr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,i={};try{(t=x(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),r=i instanceof Array}catch(t){}return function(i,e){return Rt(i),function(t){if("object"==typeof t||L(t))return t;throw qr("Can't set "+Xr(t)+" as a prototype")}(e),r?t(i,e):i.__proto__=e,i}}():void 0),Ur=_t.f,Vr=bt("toStringTag"),Hr=function(t,r,i){t&&!i&&(t=t.prototype),t&&!ft(t,Vr)&&Ur(t,Vr,{configurable:!0,value:r})},Wr=bt("species"),Qr=TypeError,Zr={};Zr[bt("toStringTag")]="z";var Kr="[object z]"===String(Zr),Jr=bt("toStringTag"),ti=Object,ri="Arguments"==S(function(){return arguments}()),ii=Kr?S:function(t){var r,i,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,r){try{return t[r]}catch(t){}}(r=ti(t),Jr))?i:ri?S(r):"Object"==(e=S(r))&&L(r.callee)?"Arguments":e},ei=function(){},ni=[],si=F("Reflect","construct"),ai=/^\s*(?:class|function)\b/,oi=x(ai.exec),hi=!ai.exec(ei),ui=function(t){if(!L(t))return!1;try{return si(ei,ni,t),!0}catch(t){return!1}},ci=function(t){if(!L(t))return!1;switch(ii(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return hi||!!oi(ai,Zt(t))}catch(t){return!0}};ci.sham=!0;var fi,li,vi,di,pi=!si||h((function(){var t;return ui(ui.call)||!ui(Object)||!ui((function(){t=!0}))||t}))?ci:ui,yi=TypeError,gi=bt("species"),mi=function(t,r){var i,e=Rt(t).constructor;return void 0===e||O(i=Rt(e)[gi])?r:function(t){if(pi(t))return t;throw yi(K(t)+" is not a constructor")}(i)},bi=Function.prototype,wi=bi.apply,xi=bi.call,Mi="object"==typeof Reflect&&Reflect.apply||(c?xi.bind(wi):function(){return xi.apply(wi,arguments)}),ki=function(t){if("Function"===S(t))return x(t)},Si=ki(ki.bind),Ni=function(t,r){return tt(t),void 0===r?t:c?Si(t,r):function(){return t.apply(r,arguments)}},Pi=F("document","documentElement"),ji=x([].slice),Oi=TypeError,Ei=function(t,r){if(t<r)throw Oi("Not enough arguments");return t},Ti=/(?:ipad|iphone|ipod).*applewebkit/i.test(_),Ci=o.setImmediate,Ai=o.clearImmediate,Ri=o.process,Bi=o.Dispatch,Li=o.Function,$i=o.MessageChannel,Ii=o.String,Di=0,Fi={},zi="onreadystatechange";h((function(){fi=o.location}));var _i=function(t){if(ft(Fi,t)){var r=Fi[t];delete Fi[t],r()}},Yi=function(t){return function(){_i(t)}},Xi=function(t){_i(t.data)},qi=function(t){o.postMessage(Ii(t),fi.protocol+"//"+fi.host)};Ci&&Ai||(Ci=function(t){Ei(arguments.length,1);var r=L(t)?t:Li(t),i=ji(arguments,1);return Fi[++Di]=function(){Mi(r,void 0,i)},li(Di),Di},Ai=function(t){delete Fi[t]},Yr?li=function(t){Ri.nextTick(Yi(t))}:Bi&&Bi.now?li=function(t){Bi.now(Yi(t))}:$i&&!Ti?(di=(vi=new $i).port2,vi.port1.onmessage=Xi,li=Ni(di.postMessage,di)):o.addEventListener&&L(o.postMessage)&&!o.importScripts&&fi&&"file:"!==fi.protocol&&!h(qi)?(li=qi,o.addEventListener("message",Xi,!1)):li=zi in Nt("script")?function(t){Pi.appendChild(Nt("script"))[zi]=function(){Pi.removeChild(this),_i(t)}}:function(t){setTimeout(Yi(t),0)});var Gi={set:Ci,clear:Ai},Ui=function(){this.head=null,this.tail=null};Ui.prototype={add:function(t){var r={item:t,next:null},i=this.tail;i?i.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Vi,Hi,Wi,Qi,Zi,Ki=Ui,Ji=/ipad|iphone|ipod/i.test(_)&&"undefined"!=typeof Pebble,te=/web0s(?!.*chrome)/i.test(_),re=Gi.set,ie=o.MutationObserver||o.WebKitMutationObserver,ee=o.document,ne=o.process,se=o.Promise,ae=(0,Et.f)(o,"queueMicrotask"),oe=ae&&ae.value;if(!oe){var he=new Ki,ue=function(){var t,r;for(Yr&&(t=ne.domain)&&t.exit();r=he.get();)try{r()}catch(t){throw he.head&&Vi(),t}t&&t.enter()};Ti||Yr||te||!ie||!ee?!Ji&&se&&se.resolve?((Qi=se.resolve(void 0)).constructor=se,Zi=Ni(Qi.then,Qi),Vi=function(){Zi(ue)}):Yr?Vi=function(){ne.nextTick(ue)}:(re=Ni(re,o),Vi=function(){re(ue)}):(Hi=!0,Wi=ee.createTextNode(""),new ie(ue).observe(Wi,{characterData:!0}),Vi=function(){Wi.data=Hi=!Hi}),oe=function(t){he.head||Vi(),he.add(t)}}var ce,fe,le,ve,de=oe,pe=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},ye=o.Promise,ge="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,me=!ge&&!Yr&&"object"==typeof window&&"object"==typeof document,be=bt("species"),we=!1,xe=L(o.PromiseRejectionEvent),Me=Fr("Promise",(function(){var t=Zt(ye),r=t!==String(ye);if(!r&&66===U)return!0;if(!U||U<51||!/native code/.test(t)){var i=new ye((function(t){t(1)})),e=function(t){t((function(){}),(function(){}))};if((i.constructor={})[be]=e,!(we=i.then((function(){}))instanceof e))return!0}return!r&&(me||ge)&&!xe})),ke={CONSTRUCTOR:Me,REJECTION_EVENT:xe,SUBCLASSING:we},Se=TypeError,Ne=function(t){var r,i;this.promise=new t((function(t,e){if(void 0!==r||void 0!==i)throw Se("Bad Promise constructor");r=t,i=e})),this.resolve=tt(r),this.reject=tt(i)},Pe={f:function(t){return new Ne(t)}},je=Gi.set,Oe="Promise",Ee=ke.CONSTRUCTOR,Te=ke.REJECTION_EVENT,Ce=ke.SUBCLASSING,Ae=or.getterFor(Oe),Re=or.set,Be=ye&&ye.prototype,Le=ye,$e=Be,Ie=o.TypeError,De=o.document,Fe=o.process,ze=Pe.f,_e=ze,Ye=!!(De&&De.createEvent&&o.dispatchEvent),Xe="unhandledrejection",qe=function(t){var r;return!(!I(t)||!L(r=t.then))&&r},Ge=function(t,r){var i,e,n,s=r.value,a=1==r.state,o=a?t.ok:t.fail,h=t.resolve,u=t.reject,c=t.domain;try{o?(a||(2===r.rejection&&Qe(r),r.rejection=1),!0===o?i=s:(c&&c.enter(),i=o(s),c&&(c.exit(),n=!0)),i===t.promise?u(Ie("Promise-chain cycle")):(e=qe(i))?l(e,i,h,u):h(i)):u(s)}catch(t){c&&!n&&c.exit(),u(t)}},Ue=function(t,r){t.notified||(t.notified=!0,de((function(){for(var i,e=t.reactions;i=e.get();)Ge(i,t);t.notified=!1,r&&!t.rejection&&He(t)})))},Ve=function(t,r,i){var e,n;Ye?((e=De.createEvent("Event")).promise=r,e.reason=i,e.initEvent(t,!1,!0),o.dispatchEvent(e)):e={promise:r,reason:i},!Te&&(n=o["on"+t])?n(e):t===Xe&&function(t,r){try{1==arguments.length?console.error(t):console.error(t,r)}catch(t){}}("Unhandled promise rejection",i)},He=function(t){l(je,o,(function(){var r,i=t.facade,e=t.value;if(We(t)&&(r=pe((function(){Yr?Fe.emit("unhandledRejection",e,i):Ve(Xe,i,e)})),t.rejection=Yr||We(t)?2:1,r.error))throw r.value}))},We=function(t){return 1!==t.rejection&&!t.parent},Qe=function(t){l(je,o,(function(){var r=t.facade;Yr?Fe.emit("rejectionHandled",r):Ve("rejectionhandled",r,t.value)}))},Ze=function(t,r,i){return function(e){t(r,e,i)}},Ke=function(t,r,i){t.done||(t.done=!0,i&&(t=i),t.value=r,t.state=2,Ue(t,!0))},Je=function(t,r,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===r)throw Ie("Promise can't be resolved itself");var e=qe(r);e?de((function(){var i={done:!1};try{l(e,r,Ze(Je,i,t),Ze(Ke,i,t))}catch(r){Ke(i,r,t)}})):(t.value=r,t.state=1,Ue(t,!1))}catch(r){Ke({done:!1},r,t)}}};if(Ee&&(Le=function(t){!function(t){if(z($e,t))return t;throw Qr("Incorrect invocation")}(this),tt(t),l(ce,this);var r=Ae(this);try{t(Ze(Je,r),Ze(Ke,r))}catch(t){Ke(r,t)}},(ce=function(){Re(this,{type:Oe,done:!1,notified:!1,parent:!1,reactions:new Ki,rejection:!1,state:0,value:void 0})}).prototype=ur($e=Le.prototype,"then",(function(t,r){var i=Ae(this),e=ze(mi(this,Le));return i.parent=!0,e.ok=!L(t)||t,e.fail=L(r)&&r,e.domain=Yr?Fe.domain:void 0,0==i.state?i.reactions.add(e):de((function(){Ge(e,i)})),e.promise})),fe=function(){var t=new ce,r=Ae(t);this.promise=t,this.resolve=Ze(Je,r),this.reject=Ze(Ke,r)},Pe.f=ze=function(t){return t===Le||void 0===t?new fe(t):_e(t)},L(ye)&&Be!==Object.prototype)){le=Be.then,Ce||ur(Be,"then",(function(t,r){var i=this;return new Le((function(t,r){l(le,i,t,r)})).then(t,r)}),{unsafe:!0});try{delete Be.constructor}catch(t){}Gr&&Gr(Be,$e)}_r({global:!0,constructor:!0,wrap:!0,forced:Ee},{Promise:Le}),Hr(Le,Oe,!1),ve=F(Oe),u&&ve&&!ve[Wr]&&(0,_t.f)(ve,Wr,{configurable:!0,get:function(){return this}});var tn={},rn=bt("iterator"),en=Array.prototype,nn=bt("iterator"),sn=function(t){if(!O(t))return rt(t,nn)||rt(t,"@@iterator")||tn[ii(t)]},an=TypeError,on=function(t,r,i){var e,n;Rt(t);try{if(!(e=rt(t,"return"))){if("throw"===r)throw i;return i}e=l(e,t)}catch(t){n=!0,e=t}if("throw"===r)throw i;if(n)throw e;return Rt(e),i},hn=TypeError,un=function(t,r){this.stopped=t,this.result=r},cn=un.prototype,fn=function(t,r,i){var e,n,s,a,o,h,u,c,f=!(!i||!i.AS_ENTRIES),v=!(!i||!i.IS_RECORD),d=!(!i||!i.IS_ITERATOR),p=!(!i||!i.INTERRUPTED),y=Ni(r,i&&i.that),g=function(t){return e&&on(e,"normal",t),new un(!0,t)},m=function(t){return f?(Rt(t),p?y(t[0],t[1],g):y(t[0],t[1])):p?y(t,g):y(t)};if(v)e=t.iterator;else if(d)e=t;else{if(!(n=sn(t)))throw hn(K(t)+" is not iterable");if(void 0!==(c=n)&&(tn.Array===c||en[rn]===c)){for(s=0,a=br(t);a>s;s++)if((o=m(t[s]))&&z(cn,o))return o;return new un(!1)}e=function(t,r){var i=arguments.length<2?sn(t):r;if(tt(i))return Rt(l(i,t));throw an(K(t)+" is not iterable")}(t,n)}for(h=v?t.next:e.next;!(u=l(h,e)).done;){try{o=m(u.value)}catch(t){on(e,"throw",t)}if("object"==typeof o&&o&&z(cn,o))return o}return new un(!1)},ln=bt("iterator"),vn=!1;try{var dn=0,pn={next:function(){return{done:!!dn++}},return:function(){vn=!0}};pn[ln]=function(){return this},Array.from(pn,(function(){throw 2}))}catch(t){}var yn=ke.CONSTRUCTOR||!function(){if(!vn)return!1;var t=!1;try{var r={};r[ln]=function(){return{next:function(){return{done:t=!0}}}},ye.all(r).then(void 0,(function(){}))}catch(t){}return t}();_r({target:"Promise",stat:!0,forced:yn},{all:function(t){var r=this,i=Pe.f(r),e=i.resolve,n=i.reject,s=pe((function(){var i=tt(r.resolve),s=[],a=0,o=1;fn(t,(function(t){var h=a++,u=!1;o++,l(i,r,t).then((function(t){u||(u=!0,s[h]=t,--o||e(s))}),n)})),--o||e(s)}));return s.error&&n(s.value),i.promise}});var gn=ye&&ye.prototype;if(_r({target:"Promise",proto:!0,forced:ke.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(ye)){var mn=F("Promise").prototype.catch;gn.catch!==mn&&ur(gn,"catch",mn,{unsafe:!0})}_r({target:"Promise",stat:!0,forced:yn},{race:function(t){var r=this,i=Pe.f(r),e=i.reject,n=pe((function(){var n=tt(r.resolve);fn(t,(function(t){l(n,r,t).then(i.resolve,e)}))}));return n.error&&e(n.value),i.promise}}),_r({target:"Promise",stat:!0,forced:ke.CONSTRUCTOR},{reject:function(t){var r=Pe.f(this);return l(r.reject,void 0,t),r.promise}}),_r({target:"Promise",stat:!0,forced:ke.CONSTRUCTOR},{resolve:function(t){return function(t,r){if(Rt(t),I(r)&&r.constructor===t)return r;var i=Pe.f(t);return(0,i.resolve)(r),i.promise}(this,t)}});const bn=i(r((function(t){function r(t,r,i,e,n,s,a){try{var o=t[s](a),h=o.value}catch(t){return void i(t)}o.done?r(h):Promise.resolve(h).then(e,n)}t.exports=function(t){return function(){var i=this,e=arguments;return new Promise((function(n,s){var a=t.apply(i,e);function o(t){r(a,n,s,o,h,"next",t)}function h(t){r(a,n,s,o,h,"throw",t)}o(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports})));var wn,xn=String,Mn=function(t){if("Symbol"===ii(t))throw TypeError("Cannot convert a Symbol value to a string");return xn(t)},kn=function(){var t=Rt(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},Sn=o.RegExp,Nn=h((function(){var t=Sn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Pn=Nn||h((function(){return!Sn("a","y").sticky})),jn={BROKEN_CARET:Nn||h((function(){var t=Sn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Pn,UNSUPPORTED_Y:Nn},On=Object.keys||function(t){return Sr(t,Nr)},En=u&&!Tt?Object.defineProperties:function(t,r){Rt(t);for(var i,e=C(r),n=On(r),s=n.length,a=0;s>a;)_t.f(t,i=n[a++],e[i]);return t},Tn={f:En},Cn="prototype",An="script",Rn=rr("IE_PROTO"),Bn=function(){},Ln=function(t){return"<"+An+">"+t+"</"+An+">"},$n=function(t){t.write(Ln("")),t.close();var r=t.parentWindow.Object;return t=null,r},In=function(){try{wn=new ActiveXObject("htmlfile")}catch(t){}var t,r,i;In="undefined"!=typeof document?document.domain&&wn?$n(wn):(r=Nt("iframe"),i="java"+An+":",r.style.display="none",Pi.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(Ln("document.F=Object")),t.close(),t.F):$n(wn);for(var e=Nr.length;e--;)delete In[Cn][Nr[e]];return In()};ir[Rn]=!0;var Dn,Fn,zn=Object.create||function(t,r){var i;return null!==t?(Bn[Cn]=Rt(t),i=new Bn,Bn[Cn]=null,i[Rn]=t):i=In(),void 0===r?i:Tn.f(i,r)},_n=o.RegExp,Yn=h((function(){var t=_n(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Xn=o.RegExp,qn=h((function(){var t=Xn("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Gn=or.get,Un=ot("native-string-replace",String.prototype.replace),Vn=RegExp.prototype.exec,Hn=Vn,Wn=x("".charAt),Qn=x("".indexOf),Zn=x("".replace),Kn=x("".slice),Jn=(Fn=/b*/g,l(Vn,Dn=/a/,"a"),l(Vn,Fn,"a"),0!==Dn.lastIndex||0!==Fn.lastIndex),ts=jn.BROKEN_CARET,rs=void 0!==/()??/.exec("")[1];(Jn||rs||ts||Yn||qn)&&(Hn=function(t){var r,i,e,n,s,a,o,h=this,u=Gn(h),c=Mn(t),f=u.raw;if(f)return f.lastIndex=h.lastIndex,r=l(Hn,f,c),h.lastIndex=f.lastIndex,r;var v=u.groups,d=ts&&h.sticky,p=l(kn,h),y=h.source,g=0,m=c;if(d&&(p=Zn(p,"y",""),-1===Qn(p,"g")&&(p+="g"),m=Kn(c,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==Wn(c,h.lastIndex-1))&&(y="(?: "+y+")",m=" "+m,g++),i=new RegExp("^(?:"+y+")",p)),rs&&(i=new RegExp("^"+y+"$(?!\\s)",p)),Jn&&(e=h.lastIndex),n=l(Vn,d?i:h,m),d?n?(n.input=Kn(n.input,g),n[0]=Kn(n[0],g),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:Jn&&n&&(h.lastIndex=h.global?n.index+n[0].length:e),rs&&n&&n.length>1&&l(Un,n[0],i,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n&&v)for(n.groups=a=zn(null),s=0;s<v.length;s++)a[(o=v[s])[0]]=n[o[1]];return n});var is=Hn;_r({target:"RegExp",proto:!0,forced:/./.exec!==is},{exec:is});var es=bt("species"),ns=RegExp.prototype,ss=function(t,r,i,e){var n=bt(t),s=!h((function(){var r={};return r[n]=function(){return 7},7!=""[t](r)})),a=s&&!h((function(){var r=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[es]=function(){return i},i.flags="",i[n]=/./[n]),i.exec=function(){return r=!0,null},i[n](""),!r}));if(!s||!a||i){var o=ki(/./[n]),u=r(n,""[t],(function(t,r,i,e,n){var a=ki(t),h=r.exec;return h===is||h===ns.exec?s&&!n?{done:!0,value:o(r,i,e)}:{done:!0,value:a(i,r,e)}:{done:!1}}));ur(String.prototype,t,u[0]),ur(ns,n,u[1])}e&&Yt(ns[n],"sham",!0)},as=x("".charAt),os=x("".charCodeAt),hs=x("".slice),us=function(t){return function(r,i){var e,n,s=Mn(T(r)),a=vr(i),o=s.length;return a<0||a>=o?t?"":void 0:(e=os(s,a))<55296||e>56319||a+1===o||(n=os(s,a+1))<56320||n>57343?t?as(s,a):e:t?hs(s,a,a+2):n-56320+(e-55296<<10)+65536}},cs=(us(!1),us(!0)),fs=function(t,r,i){return r+(i?cs(t,r).length:1)},ls=TypeError,vs=function(t,r){var i=t.exec;if(L(i)){var e=l(i,t,r);return null!==e&&Rt(e),e}if("RegExp"===S(t))return l(is,t,r);throw ls("RegExp#exec called on incompatible receiver")};ss("match",(function(t,r,i){return[function(r){var i=T(this),e=O(r)?void 0:rt(r,t);return e?l(e,r,i):new RegExp(r)[t](Mn(i))},function(t){var e=Rt(this),n=Mn(t),s=i(r,e,n);if(s.done)return s.value;if(!e.global)return vs(e,n);var a=e.unicode;e.lastIndex=0;for(var o,h=[],u=0;null!==(o=vs(e,n));){var c=Mn(o[0]);h[u]=c,""===c&&(e.lastIndex=fs(n,mr(e.lastIndex),a)),u++}return 0===u?null:h}]}));var ds=Math.floor,ps=x("".charAt),ys=x("".replace),gs=x("".slice),ms=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,bs=/\$([$&'`]|\d{1,2})/g,ws=function(t,r,i,e,n,s){var a=i+t.length,o=e.length,h=bs;return void 0!==n&&(n=ut(n),h=ms),ys(s,h,(function(s,h){var u;switch(ps(h,0)){case"$":return"$";case"&":return t;case"`":return gs(r,0,i);case"'":return gs(r,a);case"<":u=n[gs(h,1,-1)];break;default:var c=+h;if(0===c)return s;if(c>o){var f=ds(c/10);return 0===f?s:f<=o?void 0===e[f-1]?ps(h,1):e[f-1]+ps(h,1):s}u=e[c-1]}return void 0===u?"":u}))},xs=bt("replace"),Ms=Math.max,ks=Math.min,Ss=x([].concat),Ns=x([].push),Ps=x("".indexOf),js=x("".slice),Os="$0"==="a".replace(/./,"$0"),Es=!!/./[xs]&&""===/./[xs]("a","$0");ss("replace",(function(t,r,i){var e=Es?"$":"$0";return[function(t,i){var e=T(this),n=O(t)?void 0:rt(t,xs);return n?l(n,t,e,i):l(r,Mn(e),t,i)},function(t,n){var s=Rt(this),a=Mn(t);if("string"==typeof n&&-1===Ps(n,e)&&-1===Ps(n,"$<")){var o=i(r,s,a,n);if(o.done)return o.value}var h=L(n);h||(n=Mn(n));var u=s.global;if(u){var c=s.unicode;s.lastIndex=0}for(var f=[];;){var l=vs(s,a);if(null===l)break;if(Ns(f,l),!u)break;""===Mn(l[0])&&(s.lastIndex=fs(a,mr(s.lastIndex),c))}for(var v,d="",p=0,y=0;y<f.length;y++){for(var g=Mn((l=f[y])[0]),m=Ms(ks(vr(l.index),a.length),0),b=[],w=1;w<l.length;w++)Ns(b,void 0===(v=l[w])?v:String(v));var x=l.groups;if(h){var M=Ss([g],b,m,a);void 0!==x&&Ns(M,x);var k=Mn(Mi(n,void 0,M))}else k=ws(g,a,m,b,x,n);m>=p&&(d+=js(a,p,m)+k,p=m+g.length)}return d+js(a,p)}]}),!!h((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Os||Es);var Ts,Cs=bt("match"),As=function(t){var r;return I(t)&&(void 0!==(r=t[Cs])?!!r:"RegExp"==S(t))},Rs=TypeError,Bs=function(t){if(As(t))throw Rs("The method doesn't accept regular expressions");return t},Ls=bt("match"),$s=function(t){var r=/./;try{"/./"[t](r)}catch(i){try{return r[Ls]=!1,"/./"[t](r)}catch(t){}}return!1},Is=Et.f,Ds=ki("".startsWith),Fs=ki("".slice),zs=Math.min,_s=$s("startsWith"),Ys=!(_s||(Ts=Is(String.prototype,"startsWith"),!Ts||Ts.writable));_r({target:"String",proto:!0,forced:!Ys&&!_s},{startsWith:function(t){var r=Mn(T(this));Bs(t);var i=mr(zs(arguments.length>1?arguments[1]:void 0,r.length)),e=Mn(t);return Ds?Ds(r,e,i):Fs(r,i,i+e.length)===e}});var Xs=_t.f,qs=bt("unscopables"),Gs=Array.prototype;null==Gs[qs]&&Xs(Gs,qs,{configurable:!0,value:zn(null)});var Us,Vs,Hs,Ws=function(t){Gs[qs][t]=!0},Qs=!h((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Zs=rr("IE_PROTO"),Ks=Object,Js=Ks.prototype,ta=Qs?Ks.getPrototypeOf:function(t){var r=ut(t);if(ft(r,Zs))return r[Zs];var i=r.constructor;return L(i)&&r instanceof i?i.prototype:r instanceof Ks?Js:null},ra=bt("iterator"),ia=!1;[].keys&&("next"in(Hs=[].keys())?(Vs=ta(ta(Hs)))!==Object.prototype&&(Us=Vs):ia=!0);var ea=!I(Us)||h((function(){var t={};return Us[ra].call(t)!==t}));ea&&(Us={}),L(Us[ra])||ur(Us,ra,(function(){return this}));var na={IteratorPrototype:Us,BUGGY_SAFARI_ITERATORS:ia},sa=na.IteratorPrototype,aa=function(){return this},oa=Ut.PROPER,ha=Ut.CONFIGURABLE,ua=na.IteratorPrototype,ca=na.BUGGY_SAFARI_ITERATORS,fa=bt("iterator"),la="keys",va="values",da="entries",pa=function(){return this},ya=function(t,r){return{value:t,done:r}},ga=_t.f,ma="Array Iterator",ba=or.set,wa=or.getterFor(ma),xa=function(t,r,i,e,n){!function(t,r,i){var e=r+" Iterator";t.prototype=zn(sa,{next:g(1,i)}),Hr(t,e,!1),tn[e]=aa}(i,r,(function(){var t=wa(this),r=t.target,i=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,ya(void 0,!0)):ya("keys"==i?e:"values"==i?r[e]:[e,r[e]],!1)}));var s,a,o,h=function(t){if(t===n&&d)return d;if(!ca&&t in f)return f[t];switch(t){case la:case va:case da:return function(){return new i(this,t)}}return function(){return new i(this)}},u=r+" Iterator",c=!1,f=t.prototype,v=f[fa]||f["@@iterator"]||n&&f[n],d=!ca&&v||h(n),p=f.entries||v;if(p&&(s=ta(p.call(new t)))!==Object.prototype&&s.next&&(ta(s)!==ua&&(Gr?Gr(s,ua):L(s[fa])||ur(s,fa,pa)),Hr(s,u,!0)),oa&&v&&v.name!==va&&(ha?Yt(f,"name",va):(c=!0,d=function(){return l(v,this)})),n)if(void(a={values:h(va),keys:h(la),entries:h(da)}))for(o in a)(ca||c||!(o in f))&&ur(f,o,a[o]);else _r({target:r,proto:!0,forced:ca||c},a);return f[fa]!==d&&ur(f,fa,d,{name:n}),tn[r]=d,a}(Array,"Array",(function(t,r){ba(this,{type:ma,target:C(t),index:0,kind:r})}),0,"values"),Ma=tn.Arguments=tn.Array;if(Ws("keys"),Ws("values"),Ws("entries"),u&&"values"!==Ma.name)try{ga(Ma,"name",{value:"values"})}catch(t){}var ka={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Sa=Nt("span").classList,Na=Sa&&Sa.constructor&&Sa.constructor.prototype,Pa=Na===Object.prototype?void 0:Na,ja=bt("iterator"),Oa=bt("toStringTag"),Ea=xa.values,Ta=function(t,r){if(t){if(t[ja]!==Ea)try{Yt(t,ja,Ea)}catch(r){t[ja]=Ea}if(t[Oa]||Yt(t,Oa,r),ka[r])for(var i in xa)if(t[i]!==xa[i])try{Yt(t,i,xa[i])}catch(r){t[i]=xa[i]}}};for(var Ca in ka)Ta(o[Ca]&&o[Ca].prototype,Ca);Ta(Pa,"DOMTokenList");var Aa=r((function(t){var r=e.default;t.exports=function(t,i){if("object"!==r(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),Ra=r((function(t){var r=e.default;t.exports=function(t){var i=Aa(t,"string");return"symbol"===r(i)?i:String(i)},t.exports.__esModule=!0,t.exports.default=t.exports}));const Ba=i(r((function(t){t.exports=function(t,r,i){return(r=Ra(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports})));var La=TypeError,$a=function(t){return function(r,i,e,n){tt(i);var s=ut(r),a=j(s),o=br(s),h=t?o-1:0,u=t?-1:1;if(e<2)for(;;){if(h in a){n=a[h],h+=u;break}if(h+=u,t?h<0:o<=h)throw La("Reduce of empty array with no initial value")}for(;t?h>=0:o>h;h+=u)h in a&&(n=i(n,a[h],h,s));return n}},Ia=function(t,r){var i=[][t];return!!i&&h((function(){i.call(null,r||function(){return 1},1)}))},Da=[$a(!1),$a(!0)][0],Fa=!Yr&&U>79&&U<83||!Ia("reduce");_r({target:"Array",proto:!0,forced:Fa},{reduce:function(t){var r=arguments.length;return Da(this,t,r,r>1?arguments[1]:void 0)}});var za=Et.f,_a=ki("".endsWith),Ya=ki("".slice),Xa=Math.min,qa=$s("endsWith"),Ga=!qa&&!!function(){var t=za(String.prototype,"endsWith");return t&&!t.writable}();_r({target:"String",proto:!0,forced:!Ga&&!qa},{endsWith:function(t){var r=Mn(T(this));Bs(t);var i=arguments.length>1?arguments[1]:void 0,e=r.length,n=void 0===i?e:Xa(mr(i),e),s=Mn(t);return _a?_a(r,s,n):Ya(r,n-s.length,n)===s}});var Ua=Array,Va=Math.max,Ha=function(t,r,i){for(var e,n,s,a=br(t),o=yr(r,a),h=yr(void 0===i?a:i,a),u=Ua(Va(h-o,0)),c=0;o<h;o++,c++)e=u,n=t[o],void 0,(s=Mt(c))in e?_t.f(e,s,g(0,n)):e[s]=n;return u.length=c,u},Wa=jn.UNSUPPORTED_Y,Qa=4294967295,Za=Math.min,Ka=[].push,Ja=x(/./.exec),to=x(Ka),ro=x("".slice);ss("split",(function(t,r,i){var e;return e="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var e=Mn(T(this)),n=void 0===i?Qa:i>>>0;if(0===n)return[];if(void 0===t)return[e];if(!As(t))return l(r,e,t,n);for(var s,a,o,h=[],u=0,c=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(s=l(is,c,e))&&!((a=c.lastIndex)>u&&(to(h,ro(e,u,s.index)),s.length>1&&s.index<e.length&&Mi(Ka,h,Ha(s,1)),o=s[0].length,u=a,h.length>=n));)c.lastIndex===s.index&&c.lastIndex++;return u===e.length?!o&&Ja(c,"")||to(h,""):to(h,ro(e,u)),h.length>n?Ha(h,0,n):h}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:l(r,this,t,i)}:r,[function(r,i){var n=T(this),s=O(r)?void 0:rt(r,t);return s?l(s,r,n,i):l(e,Mn(n),r,i)},function(t,n){var s=Rt(this),a=Mn(t),o=i(e,s,a,n,e!==r);if(o.done)return o.value;var h=mi(s,RegExp),u=s.unicode,c=new h(Wa?"^(?:"+s.source+")":s,(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(Wa?"g":"y")),f=void 0===n?Qa:n>>>0;if(0===f)return[];if(0===a.length)return null===vs(c,a)?[a]:[];for(var l=0,v=0,d=[];v<a.length;){c.lastIndex=Wa?0:v;var p,y=vs(c,Wa?ro(a,v):a);if(null===y||(p=Za(mr(c.lastIndex+(Wa?v:0)),a.length))===l)v=fs(a,v,u);else{if(to(d,ro(a,l,v)),d.length===f)return d;for(var g=1;g<=y.length-1;g++)if(to(d,y[g]),d.length===f)return d;v=l=p}}return to(d,ro(a,l)),d}]}),!!h((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),Wa);for(var io=r((function(r){(function(){var t,i,e,n,s,a;"undefined"!=typeof performance&&null!==performance&&performance.now?r.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(r.exports=function(){return(t()-s)/1e6},i=process.hrtime,n=(t=function(){var t;return 1e9*(t=i())[0]+t[1]})(),a=1e9*process.uptime(),s=n-a):Date.now?(r.exports=function(){return Date.now()-e},e=Date.now()):(r.exports=function(){return(new Date).getTime()-e},e=(new Date).getTime())}).call(t)})),eo="undefined"==typeof window?t:window,no=["moz","webkit"],so="AnimationFrame",ao=eo["request"+so],oo=eo["cancel"+so]||eo["cancelRequest"+so],ho=0;!ao&&ho<no.length;ho++)ao=eo[no[ho]+"Request"+so],oo=eo[no[ho]+"Cancel"+so]||eo[no[ho]+"CancelRequest"+so];if(!ao||!oo){var uo=0,co=0,fo=[];ao=function(t){if(0===fo.length){var r=io(),i=Math.max(0,16.666666666666668-(r-uo));uo=i+r,setTimeout((function(){var t=fo.slice(0);fo.length=0;for(var r=0;r<t.length;r++)if(!t[r].cancelled)try{t[r].callback(uo)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(i))}return fo.push({handle:++co,callback:t,cancelled:!1}),co},oo=function(t){for(var r=0;r<fo.length;r++)fo[r].handle===t&&(fo[r].cancelled=!0)}}var lo=function(t){return ao.call(eo,t)};lo.cancel=function(){oo.apply(eo,arguments)},lo.polyfill=function(t){t||(t=eo),t.requestAnimationFrame=ao,t.cancelAnimationFrame=oo};var vo,po="\t\n\v\f\r \u2028\u2029\ufeff",yo=x("".replace),go="["+po+"]",mo=RegExp("^"+go+go+"*"),bo=RegExp(go+go+"*$"),wo=function(t){return function(r){var i=Mn(T(r));return 1&t&&(i=yo(i,mo,"")),2&t&&(i=yo(i,bo,"")),i}},xo={start:wo(1),end:wo(2),trim:wo(3)},Mo=Ut.PROPER,ko=xo.trim;_r({target:"String",proto:!0,forced:(vo="trim",h((function(){return!!po[vo]()||"
"!=="
"[vo]()||Mo&&po[vo].name!==vo})))},{trim:function(){return ko(this)}});var So=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var r={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",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",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:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=r[t]||t;for(var i=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],e=0;e<i.length;e++){var n=i[e].process,s=i[e].re.exec(t);if(s){var a=n(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),r=this.g.toString(16),i=this.b.toString(16);return 1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),1==i.length&&(i="0"+i),"#"+t+r+i},this.getHelpXML=function(){for(var t=new Array,e=0;e<i.length;e++)for(var n=i[e].example,s=0;s<n.length;s++)t[t.length]=n[s];for(var a in r)t[t.length]=a;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),e=0;e<t.length;e++)try{var h=document.createElement("li"),u=new RGBColor(t[e]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),c.appendChild(document.createTextNode("test"));var f=document.createTextNode(" "+t[e]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(c),h.appendChild(f),o.appendChild(h)}catch(t){}return o}},No=xr.indexOf,Po=ki([].indexOf),jo=!!Po&&1/Po([1],1,-0)<0,Oo=jo||!Ia("indexOf");_r({target:"Array",proto:!0,forced:Oo},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return jo?Po(this,t,r)||0:No(this,t,r)}});var Eo=x("".indexOf);_r({target:"String",proto:!0,forced:!$s("includes")},{includes:function(t){return!!~Eo(Mn(T(this)),Mn(Bs(t)),arguments.length>1?arguments[1]:void 0)}});var To=Array.isArray||function(t){return"Array"==S(t)},Co=x([].reverse),Ao=[1,2];_r({target:"Array",proto:!0,forced:String(Ao)===String(Ao.reverse())},{reverse:function(){return To(this)&&(this.length=this.length),Co(this)}});
|
6
|
+
import{a as t,c as r,g as i}from"./p-e1a4994d.js";import{_ as e}from"./p-345f517c.js";import"./p-f8be5d5f.js";import"./p-d7ddd3a2.js";import"./p-fc2277fe.js";import"./p-4b426bab.js";import"./p-92de1de9.js";var n,s,a=function(t){return t&&t.Math==Math&&t},o=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof t&&t)||function(){return this}()||Function("return this")(),h=function(t){try{return!!t()}catch(t){return!0}},u=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!h((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,l=c?f.bind(f):function(){return f.apply(f,arguments)},v={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,p=d&&!v.call({1:2},1)?function(t){var r=d(this,t);return!!r&&r.enumerable}:v,y={f:p},g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},m=Function.prototype,b=m.call,w=c&&m.bind.bind(b,b),x=c?w:function(t){return function(){return b.apply(t,arguments)}},M=x({}.toString),k=x("".slice),S=function(t){return k(M(t),8,-1)},N=Object,P=x("".split),j=h((function(){return!N("z").propertyIsEnumerable(0)}))?function(t){return"String"==S(t)?P(t,""):N(t)}:N,O=function(t){return null==t},E=TypeError,T=function(t){if(O(t))throw E("Can't call method on "+t);return t},C=function(t){return j(T(t))},A="object"==typeof document&&document.all,R={all:A,IS_HTMLDDA:void 0===A&&void 0!==A},B=R.all,L=R.IS_HTMLDDA?function(t){return"function"==typeof t||t===B}:function(t){return"function"==typeof t},$=R.all,I=R.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:L(t)||t===$}:function(t){return"object"==typeof t?null!==t:L(t)},D=function(t){return L(t)?t:void 0},F=function(t,r){return arguments.length<2?D(o[t]):o[t]&&o[t][r]},z=x({}.isPrototypeOf),_="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Y=o.process,X=o.Deno,q=Y&&Y.versions||X&&X.version,G=q&&q.v8;G&&(s=(n=G.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&_&&(!(n=_.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=_.match(/Chrome\/(\d+)/))&&(s=+n[1]);var U=s,V=!!Object.getOwnPropertySymbols&&!h((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&U&&U<41})),H=V&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,W=Object,Q=H?function(t){return"symbol"==typeof t}:function(t){var r=F("Symbol");return L(r)&&z(r.prototype,W(t))},Z=String,K=function(t){try{return Z(t)}catch(t){return"Object"}},J=TypeError,tt=function(t){if(L(t))return t;throw J(K(t)+" is not a function")},rt=function(t,r){var i=t[r];return O(i)?void 0:tt(i)},it=TypeError,et=Object.defineProperty,nt=function(t,r){try{et(o,t,{value:r,configurable:!0,writable:!0})}catch(i){o[t]=r}return r},st="__core-js_shared__",at=o[st]||nt(st,{}),ot=r((function(t){(t.exports=function(t,r){return at[t]||(at[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.27.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})})),ht=Object,ut=function(t){return ht(T(t))},ct=x({}.hasOwnProperty),ft=Object.hasOwn||function(t,r){return ct(ut(t),r)},lt=0,vt=Math.random(),dt=x(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+dt(++lt+vt,36)},yt=o.Symbol,gt=ot("wks"),mt=H?yt.for||yt:yt&&yt.withoutSetter||pt,bt=function(t){return ft(gt,t)||(gt[t]=V&&ft(yt,t)?yt[t]:mt("Symbol."+t)),gt[t]},wt=TypeError,xt=bt("toPrimitive"),Mt=function(t){var r=function(t,r){if(!I(t)||Q(t))return t;var i,e=rt(t,xt);if(e){if(void 0===r&&(r="default"),i=l(e,t,r),!I(i)||Q(i))return i;throw wt("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var i,e;if("string"===r&&L(i=t.toString)&&!I(e=l(i,t)))return e;if(L(i=t.valueOf)&&!I(e=l(i,t)))return e;if("string"!==r&&L(i=t.toString)&&!I(e=l(i,t)))return e;throw it("Can't convert object to primitive value")}(t,r)}(t,"string");return Q(r)?r:r+""},kt=o.document,St=I(kt)&&I(kt.createElement),Nt=function(t){return St?kt.createElement(t):{}},Pt=!u&&!h((function(){return 7!=Object.defineProperty(Nt("div"),"a",{get:function(){return 7}}).a})),jt=Object.getOwnPropertyDescriptor,Ot=u?jt:function(t,r){if(t=C(t),r=Mt(r),Pt)try{return jt(t,r)}catch(t){}if(ft(t,r))return g(!l(y.f,t,r),t[r])},Et={f:Ot},Tt=u&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=String,At=TypeError,Rt=function(t){if(I(t))return t;throw At(Ct(t)+" is not an object")},Bt=TypeError,Lt=Object.defineProperty,$t=Object.getOwnPropertyDescriptor,It="enumerable",Dt="configurable",Ft="writable",zt=u?Tt?function(t,r,i){if(Rt(t),r=Mt(r),Rt(i),"function"==typeof t&&"prototype"===r&&"value"in i&&Ft in i&&!i[Ft]){var e=$t(t,r);e&&e[Ft]&&(t[r]=i.value,i={configurable:Dt in i?i[Dt]:e[Dt],enumerable:It in i?i[It]:e[It],writable:!1})}return Lt(t,r,i)}:Lt:function(t,r,i){if(Rt(t),r=Mt(r),Rt(i),Pt)try{return Lt(t,r,i)}catch(t){}if("get"in i||"set"in i)throw Bt("Accessors not supported");return"value"in i&&(t[r]=i.value),t},_t={f:zt},Yt=u?function(t,r,i){return _t.f(t,r,g(1,i))}:function(t,r,i){return t[r]=i,t},Xt=Function.prototype,qt=u&&Object.getOwnPropertyDescriptor,Gt=ft(Xt,"name"),Ut={EXISTS:Gt,PROPER:Gt&&"something"===function(){}.name,CONFIGURABLE:Gt&&(!u||u&&qt(Xt,"name").configurable)},Vt=x(Function.toString);L(at.inspectSource)||(at.inspectSource=function(t){return Vt(t)});var Ht,Wt,Qt,Zt=at.inspectSource,Kt=o.WeakMap,Jt=L(Kt)&&/native code/.test(String(Kt)),tr=ot("keys"),rr=function(t){return tr[t]||(tr[t]=pt(t))},ir={},er="Object already initialized",nr=o.TypeError;if(Jt||at.state){var sr=at.state||(at.state=new(0,o.WeakMap));sr.get=sr.get,sr.has=sr.has,sr.set=sr.set,Ht=function(t,r){if(sr.has(t))throw nr(er);return r.facade=t,sr.set(t,r),r},Wt=function(t){return sr.get(t)||{}},Qt=function(t){return sr.has(t)}}else{var ar=rr("state");ir[ar]=!0,Ht=function(t,r){if(ft(t,ar))throw nr(er);return r.facade=t,Yt(t,ar,r),r},Wt=function(t){return ft(t,ar)?t[ar]:{}},Qt=function(t){return ft(t,ar)}}var or={set:Ht,get:Wt,has:Qt,enforce:function(t){return Qt(t)?Wt(t):Ht(t,{})},getterFor:function(t){return function(r){var i;if(!I(r)||(i=Wt(r)).type!==t)throw nr("Incompatible receiver, "+t+" required");return i}}},hr=r((function(t){var r=Ut.CONFIGURABLE,i=or.enforce,e=or.get,n=String,s=Object.defineProperty,a=x("".slice),o=x("".replace),c=x([].join),f=u&&!h((function(){return 8!==s((function(){}),"length",{value:8}).length})),l=String(String).split("String"),v=t.exports=function(t,e,h){"Symbol("===a(n(e),0,7)&&(e="["+o(n(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),h&&h.getter&&(e="get "+e),h&&h.setter&&(e="set "+e),(!ft(t,"name")||r&&t.name!==e)&&(u?s(t,"name",{value:e,configurable:!0}):t.name=e),f&&h&&ft(h,"arity")&&t.length!==h.arity&&s(t,"length",{value:h.arity});try{h&&ft(h,"constructor")&&h.constructor?u&&s(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var v=i(t);return ft(v,"source")||(v.source=c(l,"string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return L(this)&&e(this).source||Zt(this)}),"toString")})),ur=function(t,r,i,e){e||(e={});var n=e.enumerable,s=void 0!==e.name?e.name:r;if(L(i)&&hr(i,s,e),e.global)n?t[r]=i:nt(r,i);else{try{e.unsafe?t[r]&&(n=!0):delete t[r]}catch(t){}n?t[r]=i:_t.f(t,r,{value:i,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return t},cr=Math.ceil,fr=Math.floor,lr=Math.trunc||function(t){var r=+t;return(r>0?fr:cr)(r)},vr=function(t){var r=+t;return r!=r||0===r?0:lr(r)},dr=Math.max,pr=Math.min,yr=function(t,r){var i=vr(t);return i<0?dr(i+r,0):pr(i,r)},gr=Math.min,mr=function(t){return t>0?gr(vr(t),9007199254740991):0},br=function(t){return mr(t.length)},wr=function(t){return function(r,i,e){var n,s=C(r),a=br(s),o=yr(e,a);if(t&&i!=i){for(;a>o;)if((n=s[o++])!=n)return!0}else for(;a>o;o++)if((t||o in s)&&s[o]===i)return t||o||0;return!t&&-1}},xr={includes:wr(!0),indexOf:wr(!1)},Mr=xr.indexOf,kr=x([].push),Sr=function(t,r){var i,e=C(t),n=0,s=[];for(i in e)!ft(ir,i)&&ft(e,i)&&kr(s,i);for(;r.length>n;)ft(e,i=r[n++])&&(~Mr(s,i)||kr(s,i));return s},Nr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pr=Nr.concat("length","prototype"),jr=Object.getOwnPropertyNames||function(t){return Sr(t,Pr)},Or={f:jr},Er={f:Object.getOwnPropertySymbols},Tr=x([].concat),Cr=F("Reflect","ownKeys")||function(t){var r=Or.f(Rt(t)),i=Er.f;return i?Tr(r,i(t)):r},Ar=function(t,r,i){for(var e=Cr(r),n=_t.f,s=Et.f,a=0;a<e.length;a++){var o=e[a];ft(t,o)||i&&ft(i,o)||n(t,o,s(r,o))}},Rr=/#|\.prototype\./,Br=function(t,r){var i=$r[Lr(t)];return i==Dr||i!=Ir&&(L(r)?h(r):!!r)},Lr=Br.normalize=function(t){return String(t).replace(Rr,".").toLowerCase()},$r=Br.data={},Ir=Br.NATIVE="N",Dr=Br.POLYFILL="P",Fr=Br,zr=Et.f,_r=function(t,r){var i,e,n,s,a,h=t.target,u=t.global,c=t.stat;if(i=u?o:c?o[h]||nt(h,{}):(o[h]||{}).prototype)for(e in r){if(s=r[e],n=t.dontCallGetSet?(a=zr(i,e))&&a.value:i[e],!Fr(u?e:h+(c?".":"#")+e,t.forced)&&void 0!==n){if(typeof s==typeof n)continue;Ar(s,n)}(t.sham||n&&n.sham)&&Yt(s,"sham",!0),ur(i,e,s,t)}},Yr="undefined"!=typeof process&&"process"==S(process),Xr=String,qr=TypeError,Gr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,i={};try{(t=x(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),r=i instanceof Array}catch(t){}return function(i,e){return Rt(i),function(t){if("object"==typeof t||L(t))return t;throw qr("Can't set "+Xr(t)+" as a prototype")}(e),r?t(i,e):i.__proto__=e,i}}():void 0),Ur=_t.f,Vr=bt("toStringTag"),Hr=function(t,r,i){t&&!i&&(t=t.prototype),t&&!ft(t,Vr)&&Ur(t,Vr,{configurable:!0,value:r})},Wr=bt("species"),Qr=TypeError,Zr={};Zr[bt("toStringTag")]="z";var Kr="[object z]"===String(Zr),Jr=bt("toStringTag"),ti=Object,ri="Arguments"==S(function(){return arguments}()),ii=Kr?S:function(t){var r,i,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,r){try{return t[r]}catch(t){}}(r=ti(t),Jr))?i:ri?S(r):"Object"==(e=S(r))&&L(r.callee)?"Arguments":e},ei=function(){},ni=[],si=F("Reflect","construct"),ai=/^\s*(?:class|function)\b/,oi=x(ai.exec),hi=!ai.exec(ei),ui=function(t){if(!L(t))return!1;try{return si(ei,ni,t),!0}catch(t){return!1}},ci=function(t){if(!L(t))return!1;switch(ii(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return hi||!!oi(ai,Zt(t))}catch(t){return!0}};ci.sham=!0;var fi,li,vi,di,pi=!si||h((function(){var t;return ui(ui.call)||!ui(Object)||!ui((function(){t=!0}))||t}))?ci:ui,yi=TypeError,gi=bt("species"),mi=function(t,r){var i,e=Rt(t).constructor;return void 0===e||O(i=Rt(e)[gi])?r:function(t){if(pi(t))return t;throw yi(K(t)+" is not a constructor")}(i)},bi=Function.prototype,wi=bi.apply,xi=bi.call,Mi="object"==typeof Reflect&&Reflect.apply||(c?xi.bind(wi):function(){return xi.apply(wi,arguments)}),ki=function(t){if("Function"===S(t))return x(t)},Si=ki(ki.bind),Ni=function(t,r){return tt(t),void 0===r?t:c?Si(t,r):function(){return t.apply(r,arguments)}},Pi=F("document","documentElement"),ji=x([].slice),Oi=TypeError,Ei=function(t,r){if(t<r)throw Oi("Not enough arguments");return t},Ti=/(?:ipad|iphone|ipod).*applewebkit/i.test(_),Ci=o.setImmediate,Ai=o.clearImmediate,Ri=o.process,Bi=o.Dispatch,Li=o.Function,$i=o.MessageChannel,Ii=o.String,Di=0,Fi={},zi="onreadystatechange";h((function(){fi=o.location}));var _i=function(t){if(ft(Fi,t)){var r=Fi[t];delete Fi[t],r()}},Yi=function(t){return function(){_i(t)}},Xi=function(t){_i(t.data)},qi=function(t){o.postMessage(Ii(t),fi.protocol+"//"+fi.host)};Ci&&Ai||(Ci=function(t){Ei(arguments.length,1);var r=L(t)?t:Li(t),i=ji(arguments,1);return Fi[++Di]=function(){Mi(r,void 0,i)},li(Di),Di},Ai=function(t){delete Fi[t]},Yr?li=function(t){Ri.nextTick(Yi(t))}:Bi&&Bi.now?li=function(t){Bi.now(Yi(t))}:$i&&!Ti?(di=(vi=new $i).port2,vi.port1.onmessage=Xi,li=Ni(di.postMessage,di)):o.addEventListener&&L(o.postMessage)&&!o.importScripts&&fi&&"file:"!==fi.protocol&&!h(qi)?(li=qi,o.addEventListener("message",Xi,!1)):li=zi in Nt("script")?function(t){Pi.appendChild(Nt("script"))[zi]=function(){Pi.removeChild(this),_i(t)}}:function(t){setTimeout(Yi(t),0)});var Gi={set:Ci,clear:Ai},Ui=function(){this.head=null,this.tail=null};Ui.prototype={add:function(t){var r={item:t,next:null},i=this.tail;i?i.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Vi,Hi,Wi,Qi,Zi,Ki=Ui,Ji=/ipad|iphone|ipod/i.test(_)&&"undefined"!=typeof Pebble,te=/web0s(?!.*chrome)/i.test(_),re=Gi.set,ie=o.MutationObserver||o.WebKitMutationObserver,ee=o.document,ne=o.process,se=o.Promise,ae=(0,Et.f)(o,"queueMicrotask"),oe=ae&&ae.value;if(!oe){var he=new Ki,ue=function(){var t,r;for(Yr&&(t=ne.domain)&&t.exit();r=he.get();)try{r()}catch(t){throw he.head&&Vi(),t}t&&t.enter()};Ti||Yr||te||!ie||!ee?!Ji&&se&&se.resolve?((Qi=se.resolve(void 0)).constructor=se,Zi=Ni(Qi.then,Qi),Vi=function(){Zi(ue)}):Yr?Vi=function(){ne.nextTick(ue)}:(re=Ni(re,o),Vi=function(){re(ue)}):(Hi=!0,Wi=ee.createTextNode(""),new ie(ue).observe(Wi,{characterData:!0}),Vi=function(){Wi.data=Hi=!Hi}),oe=function(t){he.head||Vi(),he.add(t)}}var ce,fe,le,ve,de=oe,pe=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},ye=o.Promise,ge="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,me=!ge&&!Yr&&"object"==typeof window&&"object"==typeof document,be=bt("species"),we=!1,xe=L(o.PromiseRejectionEvent),Me=Fr("Promise",(function(){var t=Zt(ye),r=t!==String(ye);if(!r&&66===U)return!0;if(!U||U<51||!/native code/.test(t)){var i=new ye((function(t){t(1)})),e=function(t){t((function(){}),(function(){}))};if((i.constructor={})[be]=e,!(we=i.then((function(){}))instanceof e))return!0}return!r&&(me||ge)&&!xe})),ke={CONSTRUCTOR:Me,REJECTION_EVENT:xe,SUBCLASSING:we},Se=TypeError,Ne=function(t){var r,i;this.promise=new t((function(t,e){if(void 0!==r||void 0!==i)throw Se("Bad Promise constructor");r=t,i=e})),this.resolve=tt(r),this.reject=tt(i)},Pe={f:function(t){return new Ne(t)}},je=Gi.set,Oe="Promise",Ee=ke.CONSTRUCTOR,Te=ke.REJECTION_EVENT,Ce=ke.SUBCLASSING,Ae=or.getterFor(Oe),Re=or.set,Be=ye&&ye.prototype,Le=ye,$e=Be,Ie=o.TypeError,De=o.document,Fe=o.process,ze=Pe.f,_e=ze,Ye=!!(De&&De.createEvent&&o.dispatchEvent),Xe="unhandledrejection",qe=function(t){var r;return!(!I(t)||!L(r=t.then))&&r},Ge=function(t,r){var i,e,n,s=r.value,a=1==r.state,o=a?t.ok:t.fail,h=t.resolve,u=t.reject,c=t.domain;try{o?(a||(2===r.rejection&&Qe(r),r.rejection=1),!0===o?i=s:(c&&c.enter(),i=o(s),c&&(c.exit(),n=!0)),i===t.promise?u(Ie("Promise-chain cycle")):(e=qe(i))?l(e,i,h,u):h(i)):u(s)}catch(t){c&&!n&&c.exit(),u(t)}},Ue=function(t,r){t.notified||(t.notified=!0,de((function(){for(var i,e=t.reactions;i=e.get();)Ge(i,t);t.notified=!1,r&&!t.rejection&&He(t)})))},Ve=function(t,r,i){var e,n;Ye?((e=De.createEvent("Event")).promise=r,e.reason=i,e.initEvent(t,!1,!0),o.dispatchEvent(e)):e={promise:r,reason:i},!Te&&(n=o["on"+t])?n(e):t===Xe&&function(t,r){try{1==arguments.length?console.error(t):console.error(t,r)}catch(t){}}("Unhandled promise rejection",i)},He=function(t){l(je,o,(function(){var r,i=t.facade,e=t.value;if(We(t)&&(r=pe((function(){Yr?Fe.emit("unhandledRejection",e,i):Ve(Xe,i,e)})),t.rejection=Yr||We(t)?2:1,r.error))throw r.value}))},We=function(t){return 1!==t.rejection&&!t.parent},Qe=function(t){l(je,o,(function(){var r=t.facade;Yr?Fe.emit("rejectionHandled",r):Ve("rejectionhandled",r,t.value)}))},Ze=function(t,r,i){return function(e){t(r,e,i)}},Ke=function(t,r,i){t.done||(t.done=!0,i&&(t=i),t.value=r,t.state=2,Ue(t,!0))},Je=function(t,r,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===r)throw Ie("Promise can't be resolved itself");var e=qe(r);e?de((function(){var i={done:!1};try{l(e,r,Ze(Je,i,t),Ze(Ke,i,t))}catch(r){Ke(i,r,t)}})):(t.value=r,t.state=1,Ue(t,!1))}catch(r){Ke({done:!1},r,t)}}};if(Ee&&(Le=function(t){!function(t){if(z($e,t))return t;throw Qr("Incorrect invocation")}(this),tt(t),l(ce,this);var r=Ae(this);try{t(Ze(Je,r),Ze(Ke,r))}catch(t){Ke(r,t)}},(ce=function(){Re(this,{type:Oe,done:!1,notified:!1,parent:!1,reactions:new Ki,rejection:!1,state:0,value:void 0})}).prototype=ur($e=Le.prototype,"then",(function(t,r){var i=Ae(this),e=ze(mi(this,Le));return i.parent=!0,e.ok=!L(t)||t,e.fail=L(r)&&r,e.domain=Yr?Fe.domain:void 0,0==i.state?i.reactions.add(e):de((function(){Ge(e,i)})),e.promise})),fe=function(){var t=new ce,r=Ae(t);this.promise=t,this.resolve=Ze(Je,r),this.reject=Ze(Ke,r)},Pe.f=ze=function(t){return t===Le||void 0===t?new fe(t):_e(t)},L(ye)&&Be!==Object.prototype)){le=Be.then,Ce||ur(Be,"then",(function(t,r){var i=this;return new Le((function(t,r){l(le,i,t,r)})).then(t,r)}),{unsafe:!0});try{delete Be.constructor}catch(t){}Gr&&Gr(Be,$e)}_r({global:!0,constructor:!0,wrap:!0,forced:Ee},{Promise:Le}),Hr(Le,Oe,!1),ve=F(Oe),u&&ve&&!ve[Wr]&&(0,_t.f)(ve,Wr,{configurable:!0,get:function(){return this}});var tn={},rn=bt("iterator"),en=Array.prototype,nn=bt("iterator"),sn=function(t){if(!O(t))return rt(t,nn)||rt(t,"@@iterator")||tn[ii(t)]},an=TypeError,on=function(t,r,i){var e,n;Rt(t);try{if(!(e=rt(t,"return"))){if("throw"===r)throw i;return i}e=l(e,t)}catch(t){n=!0,e=t}if("throw"===r)throw i;if(n)throw e;return Rt(e),i},hn=TypeError,un=function(t,r){this.stopped=t,this.result=r},cn=un.prototype,fn=function(t,r,i){var e,n,s,a,o,h,u,c,f=!(!i||!i.AS_ENTRIES),v=!(!i||!i.IS_RECORD),d=!(!i||!i.IS_ITERATOR),p=!(!i||!i.INTERRUPTED),y=Ni(r,i&&i.that),g=function(t){return e&&on(e,"normal",t),new un(!0,t)},m=function(t){return f?(Rt(t),p?y(t[0],t[1],g):y(t[0],t[1])):p?y(t,g):y(t)};if(v)e=t.iterator;else if(d)e=t;else{if(!(n=sn(t)))throw hn(K(t)+" is not iterable");if(void 0!==(c=n)&&(tn.Array===c||en[rn]===c)){for(s=0,a=br(t);a>s;s++)if((o=m(t[s]))&&z(cn,o))return o;return new un(!1)}e=function(t,r){var i=arguments.length<2?sn(t):r;if(tt(i))return Rt(l(i,t));throw an(K(t)+" is not iterable")}(t,n)}for(h=v?t.next:e.next;!(u=l(h,e)).done;){try{o=m(u.value)}catch(t){on(e,"throw",t)}if("object"==typeof o&&o&&z(cn,o))return o}return new un(!1)},ln=bt("iterator"),vn=!1;try{var dn=0,pn={next:function(){return{done:!!dn++}},return:function(){vn=!0}};pn[ln]=function(){return this},Array.from(pn,(function(){throw 2}))}catch(t){}var yn=ke.CONSTRUCTOR||!function(){if(!vn)return!1;var t=!1;try{var r={};r[ln]=function(){return{next:function(){return{done:t=!0}}}},ye.all(r).then(void 0,(function(){}))}catch(t){}return t}();_r({target:"Promise",stat:!0,forced:yn},{all:function(t){var r=this,i=Pe.f(r),e=i.resolve,n=i.reject,s=pe((function(){var i=tt(r.resolve),s=[],a=0,o=1;fn(t,(function(t){var h=a++,u=!1;o++,l(i,r,t).then((function(t){u||(u=!0,s[h]=t,--o||e(s))}),n)})),--o||e(s)}));return s.error&&n(s.value),i.promise}});var gn=ye&&ye.prototype;if(_r({target:"Promise",proto:!0,forced:ke.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(ye)){var mn=F("Promise").prototype.catch;gn.catch!==mn&&ur(gn,"catch",mn,{unsafe:!0})}_r({target:"Promise",stat:!0,forced:yn},{race:function(t){var r=this,i=Pe.f(r),e=i.reject,n=pe((function(){var n=tt(r.resolve);fn(t,(function(t){l(n,r,t).then(i.resolve,e)}))}));return n.error&&e(n.value),i.promise}}),_r({target:"Promise",stat:!0,forced:ke.CONSTRUCTOR},{reject:function(t){var r=Pe.f(this);return l(r.reject,void 0,t),r.promise}}),_r({target:"Promise",stat:!0,forced:ke.CONSTRUCTOR},{resolve:function(t){return function(t,r){if(Rt(t),I(r)&&r.constructor===t)return r;var i=Pe.f(t);return(0,i.resolve)(r),i.promise}(this,t)}});const bn=i(r((function(t){function r(t,r,i,e,n,s,a){try{var o=t[s](a),h=o.value}catch(t){return void i(t)}o.done?r(h):Promise.resolve(h).then(e,n)}t.exports=function(t){return function(){var i=this,e=arguments;return new Promise((function(n,s){var a=t.apply(i,e);function o(t){r(a,n,s,o,h,"next",t)}function h(t){r(a,n,s,o,h,"throw",t)}o(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports})));var wn,xn=String,Mn=function(t){if("Symbol"===ii(t))throw TypeError("Cannot convert a Symbol value to a string");return xn(t)},kn=function(){var t=Rt(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},Sn=o.RegExp,Nn=h((function(){var t=Sn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Pn=Nn||h((function(){return!Sn("a","y").sticky})),jn={BROKEN_CARET:Nn||h((function(){var t=Sn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Pn,UNSUPPORTED_Y:Nn},On=Object.keys||function(t){return Sr(t,Nr)},En=u&&!Tt?Object.defineProperties:function(t,r){Rt(t);for(var i,e=C(r),n=On(r),s=n.length,a=0;s>a;)_t.f(t,i=n[a++],e[i]);return t},Tn={f:En},Cn="prototype",An="script",Rn=rr("IE_PROTO"),Bn=function(){},Ln=function(t){return"<"+An+">"+t+"</"+An+">"},$n=function(t){t.write(Ln("")),t.close();var r=t.parentWindow.Object;return t=null,r},In=function(){try{wn=new ActiveXObject("htmlfile")}catch(t){}var t,r,i;In="undefined"!=typeof document?document.domain&&wn?$n(wn):(r=Nt("iframe"),i="java"+An+":",r.style.display="none",Pi.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(Ln("document.F=Object")),t.close(),t.F):$n(wn);for(var e=Nr.length;e--;)delete In[Cn][Nr[e]];return In()};ir[Rn]=!0;var Dn,Fn,zn=Object.create||function(t,r){var i;return null!==t?(Bn[Cn]=Rt(t),i=new Bn,Bn[Cn]=null,i[Rn]=t):i=In(),void 0===r?i:Tn.f(i,r)},_n=o.RegExp,Yn=h((function(){var t=_n(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Xn=o.RegExp,qn=h((function(){var t=Xn("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Gn=or.get,Un=ot("native-string-replace",String.prototype.replace),Vn=RegExp.prototype.exec,Hn=Vn,Wn=x("".charAt),Qn=x("".indexOf),Zn=x("".replace),Kn=x("".slice),Jn=(Fn=/b*/g,l(Vn,Dn=/a/,"a"),l(Vn,Fn,"a"),0!==Dn.lastIndex||0!==Fn.lastIndex),ts=jn.BROKEN_CARET,rs=void 0!==/()??/.exec("")[1];(Jn||rs||ts||Yn||qn)&&(Hn=function(t){var r,i,e,n,s,a,o,h=this,u=Gn(h),c=Mn(t),f=u.raw;if(f)return f.lastIndex=h.lastIndex,r=l(Hn,f,c),h.lastIndex=f.lastIndex,r;var v=u.groups,d=ts&&h.sticky,p=l(kn,h),y=h.source,g=0,m=c;if(d&&(p=Zn(p,"y",""),-1===Qn(p,"g")&&(p+="g"),m=Kn(c,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==Wn(c,h.lastIndex-1))&&(y="(?: "+y+")",m=" "+m,g++),i=new RegExp("^(?:"+y+")",p)),rs&&(i=new RegExp("^"+y+"$(?!\\s)",p)),Jn&&(e=h.lastIndex),n=l(Vn,d?i:h,m),d?n?(n.input=Kn(n.input,g),n[0]=Kn(n[0],g),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:Jn&&n&&(h.lastIndex=h.global?n.index+n[0].length:e),rs&&n&&n.length>1&&l(Un,n[0],i,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n&&v)for(n.groups=a=zn(null),s=0;s<v.length;s++)a[(o=v[s])[0]]=n[o[1]];return n});var is=Hn;_r({target:"RegExp",proto:!0,forced:/./.exec!==is},{exec:is});var es=bt("species"),ns=RegExp.prototype,ss=function(t,r,i,e){var n=bt(t),s=!h((function(){var r={};return r[n]=function(){return 7},7!=""[t](r)})),a=s&&!h((function(){var r=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[es]=function(){return i},i.flags="",i[n]=/./[n]),i.exec=function(){return r=!0,null},i[n](""),!r}));if(!s||!a||i){var o=ki(/./[n]),u=r(n,""[t],(function(t,r,i,e,n){var a=ki(t),h=r.exec;return h===is||h===ns.exec?s&&!n?{done:!0,value:o(r,i,e)}:{done:!0,value:a(i,r,e)}:{done:!1}}));ur(String.prototype,t,u[0]),ur(ns,n,u[1])}e&&Yt(ns[n],"sham",!0)},as=x("".charAt),os=x("".charCodeAt),hs=x("".slice),us=function(t){return function(r,i){var e,n,s=Mn(T(r)),a=vr(i),o=s.length;return a<0||a>=o?t?"":void 0:(e=os(s,a))<55296||e>56319||a+1===o||(n=os(s,a+1))<56320||n>57343?t?as(s,a):e:t?hs(s,a,a+2):n-56320+(e-55296<<10)+65536}},cs=(us(!1),us(!0)),fs=function(t,r,i){return r+(i?cs(t,r).length:1)},ls=TypeError,vs=function(t,r){var i=t.exec;if(L(i)){var e=l(i,t,r);return null!==e&&Rt(e),e}if("RegExp"===S(t))return l(is,t,r);throw ls("RegExp#exec called on incompatible receiver")};ss("match",(function(t,r,i){return[function(r){var i=T(this),e=O(r)?void 0:rt(r,t);return e?l(e,r,i):new RegExp(r)[t](Mn(i))},function(t){var e=Rt(this),n=Mn(t),s=i(r,e,n);if(s.done)return s.value;if(!e.global)return vs(e,n);var a=e.unicode;e.lastIndex=0;for(var o,h=[],u=0;null!==(o=vs(e,n));){var c=Mn(o[0]);h[u]=c,""===c&&(e.lastIndex=fs(n,mr(e.lastIndex),a)),u++}return 0===u?null:h}]}));var ds=Math.floor,ps=x("".charAt),ys=x("".replace),gs=x("".slice),ms=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,bs=/\$([$&'`]|\d{1,2})/g,ws=function(t,r,i,e,n,s){var a=i+t.length,o=e.length,h=bs;return void 0!==n&&(n=ut(n),h=ms),ys(s,h,(function(s,h){var u;switch(ps(h,0)){case"$":return"$";case"&":return t;case"`":return gs(r,0,i);case"'":return gs(r,a);case"<":u=n[gs(h,1,-1)];break;default:var c=+h;if(0===c)return s;if(c>o){var f=ds(c/10);return 0===f?s:f<=o?void 0===e[f-1]?ps(h,1):e[f-1]+ps(h,1):s}u=e[c-1]}return void 0===u?"":u}))},xs=bt("replace"),Ms=Math.max,ks=Math.min,Ss=x([].concat),Ns=x([].push),Ps=x("".indexOf),js=x("".slice),Os="$0"==="a".replace(/./,"$0"),Es=!!/./[xs]&&""===/./[xs]("a","$0");ss("replace",(function(t,r,i){var e=Es?"$":"$0";return[function(t,i){var e=T(this),n=O(t)?void 0:rt(t,xs);return n?l(n,t,e,i):l(r,Mn(e),t,i)},function(t,n){var s=Rt(this),a=Mn(t);if("string"==typeof n&&-1===Ps(n,e)&&-1===Ps(n,"$<")){var o=i(r,s,a,n);if(o.done)return o.value}var h=L(n);h||(n=Mn(n));var u=s.global;if(u){var c=s.unicode;s.lastIndex=0}for(var f=[];;){var l=vs(s,a);if(null===l)break;if(Ns(f,l),!u)break;""===Mn(l[0])&&(s.lastIndex=fs(a,mr(s.lastIndex),c))}for(var v,d="",p=0,y=0;y<f.length;y++){for(var g=Mn((l=f[y])[0]),m=Ms(ks(vr(l.index),a.length),0),b=[],w=1;w<l.length;w++)Ns(b,void 0===(v=l[w])?v:String(v));var x=l.groups;if(h){var M=Ss([g],b,m,a);void 0!==x&&Ns(M,x);var k=Mn(Mi(n,void 0,M))}else k=ws(g,a,m,b,x,n);m>=p&&(d+=js(a,p,m)+k,p=m+g.length)}return d+js(a,p)}]}),!!h((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Os||Es);var Ts,Cs=bt("match"),As=function(t){var r;return I(t)&&(void 0!==(r=t[Cs])?!!r:"RegExp"==S(t))},Rs=TypeError,Bs=function(t){if(As(t))throw Rs("The method doesn't accept regular expressions");return t},Ls=bt("match"),$s=function(t){var r=/./;try{"/./"[t](r)}catch(i){try{return r[Ls]=!1,"/./"[t](r)}catch(t){}}return!1},Is=Et.f,Ds=ki("".startsWith),Fs=ki("".slice),zs=Math.min,_s=$s("startsWith"),Ys=!(_s||(Ts=Is(String.prototype,"startsWith"),!Ts||Ts.writable));_r({target:"String",proto:!0,forced:!Ys&&!_s},{startsWith:function(t){var r=Mn(T(this));Bs(t);var i=mr(zs(arguments.length>1?arguments[1]:void 0,r.length)),e=Mn(t);return Ds?Ds(r,e,i):Fs(r,i,i+e.length)===e}});var Xs=_t.f,qs=bt("unscopables"),Gs=Array.prototype;null==Gs[qs]&&Xs(Gs,qs,{configurable:!0,value:zn(null)});var Us,Vs,Hs,Ws=function(t){Gs[qs][t]=!0},Qs=!h((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Zs=rr("IE_PROTO"),Ks=Object,Js=Ks.prototype,ta=Qs?Ks.getPrototypeOf:function(t){var r=ut(t);if(ft(r,Zs))return r[Zs];var i=r.constructor;return L(i)&&r instanceof i?i.prototype:r instanceof Ks?Js:null},ra=bt("iterator"),ia=!1;[].keys&&("next"in(Hs=[].keys())?(Vs=ta(ta(Hs)))!==Object.prototype&&(Us=Vs):ia=!0);var ea=!I(Us)||h((function(){var t={};return Us[ra].call(t)!==t}));ea&&(Us={}),L(Us[ra])||ur(Us,ra,(function(){return this}));var na={IteratorPrototype:Us,BUGGY_SAFARI_ITERATORS:ia},sa=na.IteratorPrototype,aa=function(){return this},oa=Ut.PROPER,ha=Ut.CONFIGURABLE,ua=na.IteratorPrototype,ca=na.BUGGY_SAFARI_ITERATORS,fa=bt("iterator"),la="keys",va="values",da="entries",pa=function(){return this},ya=function(t,r){return{value:t,done:r}},ga=_t.f,ma="Array Iterator",ba=or.set,wa=or.getterFor(ma),xa=function(t,r,i,e,n){!function(t,r,i){var e=r+" Iterator";t.prototype=zn(sa,{next:g(1,i)}),Hr(t,e,!1),tn[e]=aa}(i,r,(function(){var t=wa(this),r=t.target,i=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,ya(void 0,!0)):ya("keys"==i?e:"values"==i?r[e]:[e,r[e]],!1)}));var s,a,o,h=function(t){if(t===n&&d)return d;if(!ca&&t in f)return f[t];switch(t){case la:case va:case da:return function(){return new i(this,t)}}return function(){return new i(this)}},u=r+" Iterator",c=!1,f=t.prototype,v=f[fa]||f["@@iterator"]||n&&f[n],d=!ca&&v||h(n),p=f.entries||v;if(p&&(s=ta(p.call(new t)))!==Object.prototype&&s.next&&(ta(s)!==ua&&(Gr?Gr(s,ua):L(s[fa])||ur(s,fa,pa)),Hr(s,u,!0)),oa&&v&&v.name!==va&&(ha?Yt(f,"name",va):(c=!0,d=function(){return l(v,this)})),n)if(void(a={values:h(va),keys:h(la),entries:h(da)}))for(o in a)(ca||c||!(o in f))&&ur(f,o,a[o]);else _r({target:r,proto:!0,forced:ca||c},a);return f[fa]!==d&&ur(f,fa,d,{name:n}),tn[r]=d,a}(Array,"Array",(function(t,r){ba(this,{type:ma,target:C(t),index:0,kind:r})}),0,"values"),Ma=tn.Arguments=tn.Array;if(Ws("keys"),Ws("values"),Ws("entries"),u&&"values"!==Ma.name)try{ga(Ma,"name",{value:"values"})}catch(t){}var ka={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Sa=Nt("span").classList,Na=Sa&&Sa.constructor&&Sa.constructor.prototype,Pa=Na===Object.prototype?void 0:Na,ja=bt("iterator"),Oa=bt("toStringTag"),Ea=xa.values,Ta=function(t,r){if(t){if(t[ja]!==Ea)try{Yt(t,ja,Ea)}catch(r){t[ja]=Ea}if(t[Oa]||Yt(t,Oa,r),ka[r])for(var i in xa)if(t[i]!==xa[i])try{Yt(t,i,xa[i])}catch(r){t[i]=xa[i]}}};for(var Ca in ka)Ta(o[Ca]&&o[Ca].prototype,Ca);Ta(Pa,"DOMTokenList");var Aa=r((function(t){var r=e.default;t.exports=function(t,i){if("object"!==r(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),Ra=r((function(t){var r=e.default;t.exports=function(t){var i=Aa(t,"string");return"symbol"===r(i)?i:String(i)},t.exports.__esModule=!0,t.exports.default=t.exports}));const Ba=i(r((function(t){t.exports=function(t,r,i){return(r=Ra(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports})));var La=TypeError,$a=function(t){return function(r,i,e,n){tt(i);var s=ut(r),a=j(s),o=br(s),h=t?o-1:0,u=t?-1:1;if(e<2)for(;;){if(h in a){n=a[h],h+=u;break}if(h+=u,t?h<0:o<=h)throw La("Reduce of empty array with no initial value")}for(;t?h>=0:o>h;h+=u)h in a&&(n=i(n,a[h],h,s));return n}},Ia=function(t,r){var i=[][t];return!!i&&h((function(){i.call(null,r||function(){return 1},1)}))},Da=[$a(!1),$a(!0)][0],Fa=!Yr&&U>79&&U<83||!Ia("reduce");_r({target:"Array",proto:!0,forced:Fa},{reduce:function(t){var r=arguments.length;return Da(this,t,r,r>1?arguments[1]:void 0)}});var za=Et.f,_a=ki("".endsWith),Ya=ki("".slice),Xa=Math.min,qa=$s("endsWith"),Ga=!qa&&!!function(){var t=za(String.prototype,"endsWith");return t&&!t.writable}();_r({target:"String",proto:!0,forced:!Ga&&!qa},{endsWith:function(t){var r=Mn(T(this));Bs(t);var i=arguments.length>1?arguments[1]:void 0,e=r.length,n=void 0===i?e:Xa(mr(i),e),s=Mn(t);return _a?_a(r,s,n):Ya(r,n-s.length,n)===s}});var Ua=Array,Va=Math.max,Ha=function(t,r,i){for(var e,n,s,a=br(t),o=yr(r,a),h=yr(void 0===i?a:i,a),u=Ua(Va(h-o,0)),c=0;o<h;o++,c++)e=u,n=t[o],void 0,(s=Mt(c))in e?_t.f(e,s,g(0,n)):e[s]=n;return u.length=c,u},Wa=jn.UNSUPPORTED_Y,Qa=4294967295,Za=Math.min,Ka=[].push,Ja=x(/./.exec),to=x(Ka),ro=x("".slice);ss("split",(function(t,r,i){var e;return e="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var e=Mn(T(this)),n=void 0===i?Qa:i>>>0;if(0===n)return[];if(void 0===t)return[e];if(!As(t))return l(r,e,t,n);for(var s,a,o,h=[],u=0,c=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(s=l(is,c,e))&&!((a=c.lastIndex)>u&&(to(h,ro(e,u,s.index)),s.length>1&&s.index<e.length&&Mi(Ka,h,Ha(s,1)),o=s[0].length,u=a,h.length>=n));)c.lastIndex===s.index&&c.lastIndex++;return u===e.length?!o&&Ja(c,"")||to(h,""):to(h,ro(e,u)),h.length>n?Ha(h,0,n):h}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:l(r,this,t,i)}:r,[function(r,i){var n=T(this),s=O(r)?void 0:rt(r,t);return s?l(s,r,n,i):l(e,Mn(n),r,i)},function(t,n){var s=Rt(this),a=Mn(t),o=i(e,s,a,n,e!==r);if(o.done)return o.value;var h=mi(s,RegExp),u=s.unicode,c=new h(Wa?"^(?:"+s.source+")":s,(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(Wa?"g":"y")),f=void 0===n?Qa:n>>>0;if(0===f)return[];if(0===a.length)return null===vs(c,a)?[a]:[];for(var l=0,v=0,d=[];v<a.length;){c.lastIndex=Wa?0:v;var p,y=vs(c,Wa?ro(a,v):a);if(null===y||(p=Za(mr(c.lastIndex+(Wa?v:0)),a.length))===l)v=fs(a,v,u);else{if(to(d,ro(a,l,v)),d.length===f)return d;for(var g=1;g<=y.length-1;g++)if(to(d,y[g]),d.length===f)return d;v=l=p}}return to(d,ro(a,l)),d}]}),!!h((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),Wa);for(var io=r((function(r){(function(){var t,i,e,n,s,a;"undefined"!=typeof performance&&null!==performance&&performance.now?r.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(r.exports=function(){return(t()-s)/1e6},i=process.hrtime,n=(t=function(){var t;return 1e9*(t=i())[0]+t[1]})(),a=1e9*process.uptime(),s=n-a):Date.now?(r.exports=function(){return Date.now()-e},e=Date.now()):(r.exports=function(){return(new Date).getTime()-e},e=(new Date).getTime())}).call(t)})),eo="undefined"==typeof window?t:window,no=["moz","webkit"],so="AnimationFrame",ao=eo["request"+so],oo=eo["cancel"+so]||eo["cancelRequest"+so],ho=0;!ao&&ho<no.length;ho++)ao=eo[no[ho]+"Request"+so],oo=eo[no[ho]+"Cancel"+so]||eo[no[ho]+"CancelRequest"+so];if(!ao||!oo){var uo=0,co=0,fo=[];ao=function(t){if(0===fo.length){var r=io(),i=Math.max(0,16.666666666666668-(r-uo));uo=i+r,setTimeout((function(){var t=fo.slice(0);fo.length=0;for(var r=0;r<t.length;r++)if(!t[r].cancelled)try{t[r].callback(uo)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(i))}return fo.push({handle:++co,callback:t,cancelled:!1}),co},oo=function(t){for(var r=0;r<fo.length;r++)fo[r].handle===t&&(fo[r].cancelled=!0)}}var lo=function(t){return ao.call(eo,t)};lo.cancel=function(){oo.apply(eo,arguments)},lo.polyfill=function(t){t||(t=eo),t.requestAnimationFrame=ao,t.cancelAnimationFrame=oo};var vo,po="\t\n\v\f\r \u2028\u2029\ufeff",yo=x("".replace),go="["+po+"]",mo=RegExp("^"+go+go+"*"),bo=RegExp(go+go+"*$"),wo=function(t){return function(r){var i=Mn(T(r));return 1&t&&(i=yo(i,mo,"")),2&t&&(i=yo(i,bo,"")),i}},xo={start:wo(1),end:wo(2),trim:wo(3)},Mo=Ut.PROPER,ko=xo.trim;_r({target:"String",proto:!0,forced:(vo="trim",h((function(){return!!po[vo]()||"
"!=="
"[vo]()||Mo&&po[vo].name!==vo})))},{trim:function(){return ko(this)}});var So=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var r={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",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",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:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=r[t]||t;for(var i=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],e=0;e<i.length;e++){var n=i[e].process,s=i[e].re.exec(t);if(s){var a=n(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),r=this.g.toString(16),i=this.b.toString(16);return 1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),1==i.length&&(i="0"+i),"#"+t+r+i},this.getHelpXML=function(){for(var t=new Array,e=0;e<i.length;e++)for(var n=i[e].example,s=0;s<n.length;s++)t[t.length]=n[s];for(var a in r)t[t.length]=a;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),e=0;e<t.length;e++)try{var h=document.createElement("li"),u=new RGBColor(t[e]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),c.appendChild(document.createTextNode("test"));var f=document.createTextNode(" "+t[e]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(c),h.appendChild(f),o.appendChild(h)}catch(t){}return o}},No=xr.indexOf,Po=ki([].indexOf),jo=!!Po&&1/Po([1],1,-0)<0,Oo=jo||!Ia("indexOf");_r({target:"Array",proto:!0,forced:Oo},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return jo?Po(this,t,r)||0:No(this,t,r)}});var Eo=x("".indexOf);_r({target:"String",proto:!0,forced:!$s("includes")},{includes:function(t){return!!~Eo(Mn(T(this)),Mn(Bs(t)),arguments.length>1?arguments[1]:void 0)}});var To=Array.isArray||function(t){return"Array"==S(t)},Co=x([].reverse),Ao=[1,2];_r({target:"Array",proto:!0,forced:String(Ao)===String(Ao.reverse())},{reverse:function(){return To(this)&&(this.length=this.length),Co(this)}});
|
7
7
|
/*! *****************************************************************************
|
8
8
|
Copyright (c) Microsoft Corporation.
|
9
9
|
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,c as i,h as s,H as e,g as l}from"./p-f8be5d5f.js";import{a,b as n,c as o}from"./p-92de1de9.js";import{l as d}from"./p-d7ddd3a2.js";import{g as c,h as r}from"./p-4b426bab.js";import{s as h}from"./p-a29ba58a.js";import{g as p}from"./p-fc2277fe.js";import{c as g,r as b}from"./p-345f517c.js";import"./p-4ff653eb.js";import"./p-e1a4994d.js";const m=class{constructor(s){t(this,s),this.searchConfigurationChange=i(this,"searchConfigurationChange",7),this._numSelected=0,this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.featureEffect=void 0,this.featureHighlightEnabled=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._addMap=!1,this._addTitle=!1,this._downloadActive=!0,this._exportType=a.PDF,this._numDuplicates=0,this._pageType=n.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=void 0}async mapViewWatchHandler(t){(null==t?void 0:t.popup)&&(this._popupsEnabled=null==t?void 0:t.popup.autoOpenEnabled)}async watchSearchConfigurationHandler(t,i){const s=JSON.stringify(t);s!==JSON.stringify(i)&&(this._searchConfiguration=JSON.parse(s),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){var s;if(this._checkPopups(),(null===(s=this.mapView)||void 0===s?void 0:s.popup)&&(this.mapView.popup.autoOpenEnabled=t===n.LIST&&this._popupsEnabled),t===n.EXPORT&&(this._numDuplicates=await this._getNumDuplicates()),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),t!==n.SELECT)return this._highlightFeatures()}selectionSetsChanged(t){this._selectionSets=[...t.detail]}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols()}render(){return s(e,null,s("calcite-shell",null,s("calcite-action-bar",{class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:"header"},this._getActionGroup("list-check",n.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",n.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",n.EXPORT,this._translations.export)),this._getPage(this._pageType)))}async _initModules(){const[t,i]=await d(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils"]);this._geometryEngine=t,this._jsonUtils=i}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_getActionGroup(t,i,e){return s("calcite-action-group",{class:"action-center"+(this.showRefineSelection?" w-1-3":" w-1-2"),layout:"horizontal"},s("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",compact:!1,icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""}),s("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},s("span",null,e)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case n.LIST:i=this._getListPage();break;case n.SELECT:i=this._getSelectPage();break;case n.EXPORT:i=this._getExportPage();break;case n.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections();return s("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(t?this._translations.listHasSetsTip:this._translations.selectLayerAndAdd,"padding-sides-1 padding-bottom-1"),t?this._getSelectionSetList():null,s("div",{class:"display-flex padding-1"},s("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},this._translations.add)))}_getSelectionSetList(){return s("div",{class:"padding-top-1-2 padding-bottom-1-2"},s("calcite-list",{class:"list-border margin-sides-1"},this._selectionSets.reduce(((t,i,e)=>{var l;const a=this._getSelectionSetIds(i);let n=!0;return i.workflowType===o.REFINE&&(n=Object.keys(i.refineInfos).reduce(((t,s)=>{const e=i.refineInfos[s];return t+(e.addIds.length+e.removeIds.length)}),0)>0),n&&t.push(s("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},s("div",{slot:"content"},s("div",{class:"list-label"},i.label),s("div",{class:"list-description"},null===(l=null==i?void 0:i.layerView)||void 0===l?void 0:l.layer.title),s("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",a.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(e,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==o.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,s)=>[...i,...t.refineInfos[s].addIds]),[])}_hasSelections(t=!1){let i=[];const s=this._selectionSets.some((t=>{if(t.workflowType===o.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&s?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await g(t),s=b(i);return i.length-s.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==o.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];this._updateIds(s,e.layerView,e.addIds,t)}))),t)),{})}_updateIds(t,i,s,e){return e[t]?e[t].ids=e[t].ids.concat(s):e[t]={layerView:i,ids:s},e}_getSelectPage(){const t=this._translations.selectSearchTip;return s("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t),s("div",null,s("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return s("calcite-panel",null,s("div",null,this._getLabel(this._translations.export,!1),t?s("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),s("div",{class:"padding-sides-1 "+i},s("div",{class:"display-flex"},s("calcite-label",{layout:"inline"},s("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),s("div",{class:"display-flex"},this._translations.removeDuplicate,s("div",{class:"info-message padding-start-1-2"},s("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),s("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"remove-duplicates-icon",scale:"s"})),s("calcite-popover",{closable:!0,label:"",referenceElement:"remove-duplicates-icon"},s("span",{class:"tooltip-message"},this._translations.duplicatesTip))),s("div",{class:"border-bottom"}),s("div",{class:"padding-top-sides-1"},s("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t)},s("calcite-segmented-control-item",{checked:this._exportType===a.PDF,class:"w-50 end-border",value:a.PDF},this._translations.pdf),s("calcite-segmented-control-item",{checked:this._exportType===a.CSV,class:"w-50",value:a.CSV},this._translations.csv))),s("div",{class:"padding-bottom-1"},this._getExportOptions()),s("div",{class:"padding-1 display-flex"},s("calcite-button",{disabled:!this._downloadActive,onClick:()=>{this._export()},width:"full"},this._translations.export))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none";return s("div",{class:this._exportType===a.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),s("div",{class:"padding-top-sides-1"},s("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),s("div",{class:"padding-sides-1"},s("pdf-download",{disabled:!this._downloadActive,ref:t=>{this._downloadTools=t}})),s("div",{class:"padding-top-sides-1"},s("calcite-label",{class:"label-margin-0",layout:"inline"},s("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.addTitle)),s("div",{class:t},this._getLabel(this._translations.title,!0,""),s("calcite-input-text",{class:"padding-sides-1",placeholder:this._translations.titlePlaceholder,ref:t=>{this._title=t}})),s("div",{class:"padding-top-sides-1"},s("calcite-label",{class:"label-margin-0",layout:"inline"},s("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._addMap=!this._addMap}),this._translations.includeMap)))}_getRefinePage(){const t=this._hasSelections();return s("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?s("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),s("refine-selection",{enabledLayerIds:this.selectionLayerIds,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,e,l,a,n){return s("div",null,s("div",{class:"display-flex padding-top-sides-1"},s("calcite-button",{disabled:i,onClick:e,width:"full"},t)),s("div",{class:"display-flex padding-top-1-2 padding-sides-1"},s("calcite-button",{appearance:"outline",disabled:a,onClick:n,width:"full"},l)))}_getNotice(t,i="padding-1"){return s("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},s("div",{slot:"message"},t))}_getLabel(t,i=!1,e="font-bold"){return s("div",{class:"padding-top-sides-1"},s("calcite-label",{class:e+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{var e;const l=this._getSelectionSetIds(i),a=i.workflowType!==o.REFINE||l.length>0;return!this._downloadActive&&i.download&&a&&(this._downloadActive=!0),a&&t.push(s("div",{class:"display-flex padding-sides-1 padding-bottom-1"},s("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),s("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list"},s("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},s("div",{slot:"content"},s("div",{class:"list-label"},i.label),s("div",{class:"list-description"},null===(e=null==i?void 0:i.layerView)||void 0===e?void 0:e.layer.title),s("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",l.length.toString()))))))),t}),[])||s("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((s=>(s.download=s.id===t?!s.download:s.download,i=!!s.download||i,s))),this._downloadActive=i,this._numDuplicates=await this._getNumDuplicates(),await this._highlightFeatures()}async _export(){const t=this._getSelectionIdsAndViews(this._selectionSets,!0);if(this._exportType===a.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=null==t?void 0:t.dataUrl}this._downloadTools.downloadPDF(t,this._removeDuplicates.checked,this._addTitle?this._title.value:"",i)}this._exportType===a.CSV&&this._downloadTools.downloadCSV(t,this._removeDuplicates.checked)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{var s;if(i.workflowType===o.REFINE)Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds&&(t=this._updateExportInfos(t,e.layerView.layer.id,i.label,e.addIds,e.layerView))}));else{const e=null===(s=null==i?void 0:i.layerView)||void 0===s?void 0:s.layer.id;t=this._updateExportInfos(t,e,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,s,e,l){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...e])],t[i].selectionSetNames.push(s)):i&&(t[i]={ids:e,layerView:l,selectionSetNames:[s]}),t}_getAction(t,i,e,l,a=!1,n=""){return s("calcite-action",{disabled:!t,icon:i,indicator:a,onClick:l,slot:n,text:e})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(n.LIST)}async _saveSelection(){var t,i;const s=await(null===(t=this._selectTools)||void 0===t?void 0:t.getSelection()),e=null===(i=this._selectTools)||void 0===i?void 0:i.isUpdate;return this._selectionSets=e?this._selectionSets.map((t=>t.id===s.id?s:t)):[...this._selectionSets,s],this._home()}async _clearSelection(){var t;await(null===(t=this._selectTools)||void 0===t?void 0:t.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,s)=>{if(s!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){c(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===o.REFINE?n.REFINE:n.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===n.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){const e=t[i[s]];h.highlightHandles.push(await r(e.ids,e.layerView,this.mapView))}}_checkPopups(){var t;"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=null===(t=this.mapView)||void 0===t?void 0:t.popup.autoOpenEnabled)}_clearHighlight(){h&&h.highlightHandles&&h.removeHandles()}async _getTranslations(){const t=await p(this.el);this._translations=t[0]}get el(){return l(this)}static get watchers(){return{mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};m.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{-webkit-padding-before:1rem;padding-block-start:1rem;-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-sides-1{-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-end-1-2{-webkit-padding-end:.5rem;padding-inline-end:.5rem}.padding-top-1-2{-webkit-padding-before:.5rem;padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.margin-start-1-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{-webkit-margin-before:0 !important;margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-ui-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{-webkit-margin-before:0.125rem;margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}';export{m as public_notification}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as i,c as t,h as e,H as s,g as a}from"./p-f8be5d5f.js";import{f as n}from"./p-b8a638ef.js";import{i as o,t as c,g as l,a as r}from"./p-dd3d070d.js";import{d as h,f as d,c as m,u as p,r as u,a as b,F as f}from"./p-0a763d23.js";import{s as g,c as v,a as x,d as w,H as y}from"./p-bf0c6866.js";import{g as k}from"./p-d1bcb992.js";import{u as C}from"./p-c0d3537c.js";import{c as z,d as I,g as H}from"./p-24cb0a19.js";import{c as $,s as _,a as j}from"./p-5b5ad89d.js";import{c as D,d as L}from"./p-0d207a2c.js";import{c as S}from"./p-631b6461.js";import{c as A,d as E}from"./p-1bf24177.js";import{c as P,s as F,d as M,u as O}from"./p-6bbf6f62.js";import{C as R,b as B,c as T,h as W,d as U,e as V,g as X,a as Y}from"./p-ed93c5f2.js";import{d as G}from"./p-4e32bf8c.js";import{c as K,d as N}from"./p-a4f08a98.js";import{i as q,k as J}from"./p-390d7de8.js";import{s as Q}from"./p-a29ba58a.js";import"./p-062f1fe7.js";import"./p-89e6a976.js";import"./p-92de1de9.js";import"./p-4ff653eb.js";const Z="combobox-item-",ii="combobox-chip-",ti="combobox-label-",ei="combobox-listbox-",si="combobox-input-",ai=class{constructor(e){i(this,e),this.calciteComboboxChange=t(this,"calciteComboboxChange",6),this.calciteComboboxFilterChange=t(this,"calciteComboboxFilterChange",6),this.calciteComboboxChipClose=t(this,"calciteComboboxChipClose",6),this.calciteComboboxBeforeClose=t(this,"calciteComboboxBeforeClose",6),this.calciteComboboxClose=t(this,"calciteComboboxClose",6),this.calciteComboboxBeforeOpen=t(this,"calciteComboboxBeforeOpen",6),this.calciteComboboxOpen=t(this,"calciteComboboxOpen",6),this.placement=h,this.internalValueChangeFlag=!1,this.textInput=null,this.mutationObserver=S("mutation",(()=>this.updateItems())),this.resizeObserver=S("resize",(()=>this.setMaxScrollerHeight())),this.guid=k(),this.inputHeight=0,this.ignoreSelectedEventsFlag=!1,this.openTransitionProp="opacity",this.setFilteredPlacements=()=>{const{el:i,flipPlacements:t}=this;this.filteredFlipPlacements=t?d(t,i):null},this.getValue=()=>{const i=this.selectedItems.map((i=>{var t;return null===(t=null==i?void 0:i.value)||void 0===t?void 0:t.toString()}));return(null==i?void 0:i.length)?i.length>1?i:i[0]:""},this.onLabelClick=()=>{this.setFocus()},this.keydownHandler=i=>{const{key:t}=i;switch(t){case"Tab":this.activeChipIndex=-1,this.activeItemIndex=-1,this.allowCustomValues&&this.text?(this.addCustomChip(this.text,!0),i.preventDefault()):this.open&&(this.open=!1,i.preventDefault());break;case"ArrowLeft":this.previousChip(),i.preventDefault();break;case"ArrowRight":this.nextChip(),i.preventDefault();break;case"ArrowUp":i.preventDefault(),this.shiftActiveItemIndex(-1),this.comboboxInViewport()||this.el.scrollIntoView();break;case"ArrowDown":i.preventDefault(),this.open||(this.open=!0),this.shiftActiveItemIndex(1),this.comboboxInViewport()||this.el.scrollIntoView();break;case" ":this.textInput.value||(i.preventDefault(),this.open=!0,this.shiftActiveItemIndex(1));break;case"Home":if(!this.open)return;i.preventDefault(),this.updateActiveItemIndex(0),this.scrollToActiveItem(),this.comboboxInViewport()||this.el.scrollIntoView();break;case"End":if(!this.open)return;i.preventDefault(),this.updateActiveItemIndex(this.filteredItems.length-1),this.scrollToActiveItem(),this.comboboxInViewport()||this.el.scrollIntoView();break;case"Escape":this.open=!1,i.preventDefault();break;case"Enter":this.activeItemIndex>-1?(this.toggleSelection(this.filteredItems[this.activeItemIndex]),i.preventDefault()):this.activeChipIndex>-1?(this.removeActiveChip(),i.preventDefault()):this.allowCustomValues&&this.text?(this.addCustomChip(this.text,!0),i.preventDefault()):i.defaultPrevented||g(this)&&i.preventDefault();break;case"Delete":case"Backspace":this.activeChipIndex>-1?(i.preventDefault(),this.removeActiveChip()):!this.text&&this.isMulti()&&(i.preventDefault(),this.removeLastChip())}},this.toggleCloseEnd=()=>{this.open=!1,this.el.removeEventListener("calciteComboboxClose",this.toggleCloseEnd)},this.toggleOpenEnd=()=>{this.open=!1,this.el.removeEventListener("calciteComboboxOpen",this.toggleOpenEnd)},this.setMaxScrollerHeight=async()=>{const{listContainerEl:i,open:t,referenceEl:e}=this;if(!i||!t)return;await this.reposition(!0);const s=this.getMaxScrollerHeight();i.style.maxHeight=s>0?`${s}px`:"",i.style.minWidth=`${e.clientWidth}px`,await this.reposition(!0)},this.calciteChipCloseHandler=i=>{this.open=!1;const t=this.items.find((t=>t===i));t&&this.toggleSelection(t,!1),this.calciteComboboxChipClose.emit()},this.clickHandler=i=>{i.composedPath().some((i=>"CALCITE-CHIP"===i.tagName))||(this.open=!this.open,this.updateActiveItemIndex(0),this.setFocus())},this.setInactiveIfNotContained=i=>{const t=i.composedPath();!this.open||t.includes(this.el)||t.includes(this.referenceEl)||(this.allowCustomValues&&this.text.trim().length&&this.addCustomChip(this.text),"single"===this.selectionMode&&(this.textInput&&(this.textInput.value=""),this.text="",this.filterItems(""),this.updateActiveItemIndex(-1)),this.open=!1)},this.setFloatingEl=i=>{this.floatingEl=i,m(this,this.referenceEl,this.floatingEl)},this.setContainerEl=i=>{this.resizeObserver.observe(i),this.listContainerEl=i,this.transitionEl=i,A(this)},this.setReferenceEl=i=>{this.referenceEl=i,m(this,this.referenceEl,this.floatingEl)},this.inputHandler=i=>{const t=i.target.value;this.text=t,this.filterItems(t),t&&(this.activeChipIndex=-1)},this.filterItems=(()=>{const i=(i,t)=>i&&t.some((({label:t,value:e})=>i.tagName===V?e===i.label:e===i.textLabel||e===i.value||t===i.textLabel||t===i.value));return G((t=>{const e=n(this.data,t);this.getCombinedItems().forEach((t=>{const s=!i(t,e);t.hidden=s;const[a,n]=t.ancestors;(i(a,e)||i(n,e))&&(t.hidden=!1),s||t.ancestors.forEach((i=>i.hidden=!1))})),this.filteredItems=this.getfilteredItems(),this.calciteComboboxFilterChange.emit()}),100)})(),this.internalComboboxChangeEvent=()=>{this.calciteComboboxChange.emit()},this.emitComboboxChange=G(this.internalComboboxChangeEvent,0),this.updateItems=()=>{this.items=this.getItems(),this.groupItems=this.getGroupItems(),this.data=this.getData(),this.selectedItems=this.getSelectedItems(),this.filteredItems=this.getfilteredItems(),this.needsIcon=this.getNeedsIcon(),this.allowCustomValues||this.setMaxScrollerHeight()},this.scrollToActiveItem=()=>{const i=this.filteredItems[this.activeItemIndex];if(!i)return;const t=this.calculateSingleItemHeight(i),{offsetHeight:e,scrollTop:s}=this.listContainerEl;e+s<i.offsetTop+t?this.listContainerEl.scrollTop=i.offsetTop-e+t:i.offsetTop<s&&(this.listContainerEl.scrollTop=i.offsetTop)},this.comboboxFocusHandler=()=>{var i;null===(i=this.textInput)||void 0===i||i.focus()},this.comboboxBlurHandler=i=>{this.setInactiveIfNotContained(i)},this.open=!1,this.disabled=!1,this.form=void 0,this.label=void 0,this.placeholder=void 0,this.placeholderIcon=void 0,this.placeholderIconFlipRtl=!1,this.maxItems=0,this.name=void 0,this.allowCustomValues=void 0,this.overlayPositioning="absolute",this.required=!1,this.selectionMode="multiple",this.scale="m",this.value=null,this.flipPlacements=void 0,this.messages=void 0,this.messageOverrides=void 0,this.selectedItems=[],this.filteredItems=[],this.items=[],this.groupItems=[],this.needsIcon=void 0,this.activeItemIndex=-1,this.activeChipIndex=-1,this.activeDescendant="",this.text="",this.effectiveLocale=void 0,this.defaultMessages=void 0}openHandler(i){i||p(this.floatingEl),this.disabled?this.open=!1:this.setMaxScrollerHeight()}handleDisabledChange(i){i||(this.open=!1)}maxItemsHandler(){this.setMaxScrollerHeight()}overlayPositioningHandler(){this.reposition(!0)}valueHandler(i){if(!this.internalValueChangeFlag){const t=this.getItems();Array.isArray(i)?t.forEach((t=>t.selected=i.includes(t.value))):t.forEach(i?t=>t.selected=i===t.value:i=>i.selected=!1),this.updateItems()}}onMessagesChange(){}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}selectedItemsHandler(){this.internalValueChangeFlag=!0,this.value=this.getValue(),this.internalValueChangeFlag=!1}documentClickHandler(i){o(i)&&this.setInactiveIfNotContained(i)}calciteComboboxItemChangeHandler(i){if(this.ignoreSelectedEventsFlag)return;const t=i.target,e=this.filteredItems.indexOf(t);this.updateActiveItemIndex(e),this.toggleSelection(t,t.selected)}async reposition(i=!1){const{floatingEl:t,referenceEl:e,placement:s,overlayPositioning:a,filteredFlipPlacements:n}=this;return u(this,{floatingEl:t,referenceEl:e,overlayPositioning:a,placement:s,flipPlacements:n,type:"menu"},i)}async setFocus(){var i;await $(this),null===(i=this.textInput)||void 0===i||i.focus(),this.activeChipIndex=-1,this.activeItemIndex=-1}connectedCallback(){var i;D(this),P(this),this.internalValueChangeFlag=!0,this.value=this.getValue(),this.internalValueChangeFlag=!1,null===(i=this.mutationObserver)||void 0===i||i.observe(this.el,{childList:!0,subtree:!0}),z(this),v(this),A(this),this.setFilteredPlacements(),this.reposition(!0),this.open&&this.openHandler(this.open)}async componentWillLoad(){_(this),this.updateItems(),await F(this)}componentDidLoad(){x(this,this.getValue()),this.reposition(!0),j(this)}componentDidRender(){this.el.offsetHeight!==this.inputHeight&&(this.reposition(!0),this.inputHeight=this.el.offsetHeight),C(this)}disconnectedCallback(){var i,t;null===(i=this.mutationObserver)||void 0===i||i.disconnect(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),I(this),w(this),b(this,this.referenceEl,this.floatingEl),E(this),L(this),M(this)}textHandler(){this.updateActiveItemIndex(-1)}effectiveLocaleChange(){O(this,this.effectiveLocale)}comboboxInViewport(){const i=this.el.getBoundingClientRect();return i.top>=0&&i.left>=0&&i.right<=(window.innerWidth||document.documentElement.clientWidth)&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)}onBeforeOpen(){this.calciteComboboxBeforeOpen.emit()}onOpen(){this.calciteComboboxOpen.emit()}onBeforeClose(){this.calciteComboboxBeforeClose.emit()}onClose(){this.calciteComboboxClose.emit()}getMaxScrollerHeight(){const i=this.getCombinedItems().filter((i=>!i.hidden)),{maxItems:t}=this;let e=0,s=0;return i.length>t&&i.forEach((i=>{if(e<t&&t>0){const t=this.calculateSingleItemHeight(i);t>0&&(s+=t,e++)}})),s}calculateSingleItemHeight(i){if(!i)return;let t=i.offsetHeight;return Array.from(i.querySelectorAll(R)).map((i=>null==i?void 0:i.offsetHeight)).forEach((i=>{t-=i})),t}getCombinedItems(){return[...this.groupItems,...this.items]}toggleSelection(i,t=!i.selected){i&&(this.isMulti()?(i.selected=t,this.updateAncestors(i),this.selectedItems=this.getSelectedItems(),this.emitComboboxChange(),this.resetText(),this.filterItems("")):(this.ignoreSelectedEventsFlag=!0,this.items.forEach((e=>e.selected=e===i&&t)),this.ignoreSelectedEventsFlag=!1,this.selectedItems=this.getSelectedItems(),this.emitComboboxChange(),this.textInput&&(this.textInput.value=i.textLabel),this.open=!1,this.updateActiveItemIndex(-1),this.resetText(),this.filterItems("")))}updateAncestors(i){if("ancestors"!==this.selectionMode)return;const t=B(i),e=T(i);i.selected?t.forEach((i=>{i.selected=!0})):(e.forEach((i=>i.selected=!1)),[...t].forEach((i=>{W(i)||(i.selected=!1)})))}getfilteredItems(){return this.items.filter((i=>!i.hidden))}getSelectedItems(){if(!this.isMulti()){const i=this.items.find((({selected:i})=>i));return i?[i]:[]}return this.items.filter((i=>i.selected&&("ancestors"!==this.selectionMode||!W(i)))).sort(((i,t)=>{const e=this.selectedItems.indexOf(i),s=this.selectedItems.indexOf(t);return e>-1&&s>-1?e-s:s-e}))}getData(){return this.items.map((i=>({filterDisabled:i.filterDisabled,value:i.value,label:i.textLabel})))}getNeedsIcon(){return"single"===this.selectionMode&&this.items.some((i=>i.icon))}resetText(){this.textInput&&(this.textInput.value=""),this.text=""}getItems(){return Array.from(this.el.querySelectorAll(U)).filter((i=>!i.disabled))}getGroupItems(){return Array.from(this.el.querySelectorAll(V))}addCustomChip(i,t){const e=this.items.find((t=>t.textLabel===i));if(e)this.toggleSelection(e,!0);else{this.isMulti()||this.toggleSelection(this.selectedItems[this.selectedItems.length-1],!1);const e=document.createElement(U);e.value=i,e.textLabel=i,e.selected=!0,this.el.appendChild(e),this.resetText(),t&&this.setFocus(),this.updateItems(),this.filterItems(""),this.emitComboboxChange()}}removeActiveChip(){this.toggleSelection(this.selectedItems[this.activeChipIndex],!1),this.setFocus()}removeLastChip(){this.toggleSelection(this.selectedItems[this.selectedItems.length-1],!1),this.setFocus()}previousChip(){if(this.text)return;const i=this.activeChipIndex;this.activeChipIndex=-1===i?this.selectedItems.length-1:Math.max(i-1,0),this.updateActiveItemIndex(-1),this.focusChip()}nextChip(){if(this.text||-1===this.activeChipIndex)return;const i=this.activeChipIndex+1;i>this.selectedItems.length-1?(this.activeChipIndex=-1,this.setFocus()):(this.activeChipIndex=i,this.focusChip()),this.updateActiveItemIndex(-1)}focusChip(){var i;const t=null===(i=this.selectedItems[this.activeChipIndex])||void 0===i?void 0:i.guid,e=t?this.referenceEl.querySelector(`#${ii}${t}`):null;null==e||e.setFocus()}shiftActiveItemIndex(i){const{length:t}=this.filteredItems;this.updateActiveItemIndex((this.activeItemIndex+t+i)%t),this.scrollToActiveItem()}updateActiveItemIndex(i){this.activeItemIndex=i;let t=null;this.filteredItems.forEach(((e,s)=>{s===i?(e.active=!0,t=`${Z}${e.guid}`):e.active=!1})),this.activeDescendant=t,this.activeItemIndex>-1&&(this.activeChipIndex=-1)}isMulti(){return"single"!==this.selectionMode}renderChips(){const{activeChipIndex:i,scale:t,selectionMode:s,messages:a}=this;return this.selectedItems.map(((n,o)=>{const c={chip:!0,"chip--active":i===o},l=[...[...B(n)].reverse(),n].map((i=>i.textLabel)),r="ancestors"!==s?n.textLabel:l.join(" / ");return e("calcite-chip",{class:c,closable:!0,icon:n.icon,iconFlipRtl:n.iconFlipRtl,id:n.guid?`${ii}${n.guid}`:null,key:n.textLabel,messageOverrides:{dismissLabel:a.removeTag},onCalciteChipClose:()=>this.calciteChipCloseHandler(n),scale:t,title:r,value:n.value},r)}))}renderInput(){const{guid:i,disabled:t,placeholder:s,selectionMode:a,selectedItems:n,open:o}=this,c="single"===a,l=n[0],r=!o&&c&&!!l;return e("span",{class:{"input-wrap":!0,"input-wrap--single":c}},r&&e("span",{class:{label:!0,"label--icon":!!(null==l?void 0:l.icon)},key:"label"},l.textLabel),e("input",{"aria-activedescendant":this.activeDescendant,"aria-autocomplete":"list","aria-controls":`${ei}${i}`,"aria-label":H(this),class:{input:!0,"input--single":!0,"input--transparent":this.activeChipIndex>-1,"input--hidden":r,"input--icon":!!this.placeholderIcon},disabled:t,id:`${si}${i}`,key:"input",onBlur:this.comboboxBlurHandler,onFocus:this.comboboxFocusHandler,onInput:this.inputHandler,placeholder:s,type:"text",ref:i=>this.textInput=i}))}renderListBoxOptions(){return this.filteredItems.map((i=>e("li",{"aria-selected":c(i.selected),id:i.guid?`${Z}${i.guid}`:null,role:"option",tabindex:"-1"},i.textLabel)))}renderFloatingUIContainer(){const{setFloatingEl:i,setContainerEl:t,open:s}=this;return e("div",{"aria-hidden":"true",class:{"floating-ui-container":!0,"floating-ui-container--active":s},ref:i},e("div",{class:{"list-container":!0,[f.animation]:!0,[f.animationActive]:s},ref:t},e("ul",{class:{list:!0,"list--hide":!s}},e("slot",null))))}renderIconStart(){const{selectedItems:i,placeholderIcon:t,selectionMode:s,placeholderIconFlipRtl:a}=this,n=i[0],o=null==n?void 0:n.icon,c="single"===s;return(!this.open&&n?!!o&&c:!!this.placeholderIcon&&(!n||c))&&e("span",{class:"icon-start"},e("calcite-icon",{class:"selected-icon",flipRtl:this.open&&n?n.iconFlipRtl:a,icon:!this.open&&n?o:t,scale:"s"}))}renderIconEnd(){const{open:i}=this;return e("span",{class:"icon-end"},e("calcite-icon",{icon:i?"chevron-up":"chevron-down",scale:"s"}))}render(){const{guid:i,label:t,open:a}=this,n="single"===this.selectionMode;return e(s,{onClick:this.comboboxFocusHandler},e("div",{"aria-autocomplete":"list","aria-controls":`${ei}${i}`,"aria-expanded":c(a),"aria-haspopup":"listbox","aria-label":H(this),"aria-live":"polite","aria-owns":`${ei}${i}`,class:{wrapper:!0,"wrapper--single":n||!this.selectedItems.length,"wrapper--active":a},onClick:this.clickHandler,onKeyDown:this.keydownHandler,role:"combobox",ref:this.setReferenceEl},e("div",{class:"grid-input"},this.renderIconStart(),!n&&this.renderChips(),e("label",{class:"screen-readers-only",htmlFor:`${si}${i}`,id:`${ti}${i}`},t),this.renderInput()),this.renderIconEnd()),e("ul",{"aria-labelledby":`${ti}${i}`,"aria-multiselectable":"true",class:"screen-readers-only",id:`${ei}${i}`,role:"listbox",tabIndex:-1},this.renderListBoxOptions()),this.renderFloatingUIContainer(),e(y,{component:this}))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{open:["openHandler"],disabled:["handleDisabledChange"],maxItems:["maxItemsHandler"],overlayPositioning:["overlayPositioningHandler"],value:["valueHandler"],messageOverrides:["onMessagesChange"],flipPlacements:["flipPlacementsHandler"],selectedItems:["selectedItemsHandler"],text:["textHandler"],effectiveLocale:["effectiveLocaleChange"]}}};ai.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:flex;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-color:transparent;padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}.grid-input{display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}.input{flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-inline-size:120px;-webkit-margin-after:var(--calcite-combobox-item-spacing-unit-s);margin-block-end:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-block:0px;padding:0px}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:flex;flex-grow:1}.input-wrap--single{flex:1 1 0%;overflow:hidden}.label{pointer-events:none;display:flex;max-inline-size:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--icon{padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:flex;inline-size:1rem;cursor:pointer;align-items:center}.icon-end{flex:none}.floating-ui-container{--calcite-floating-ui-z-index:600;display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index);visibility:hidden}.floating-ui-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}.floating-ui-container--active{visibility:visible}@media (forced-colors: active){.wrapper,.floating-ui-container--active{border:1px solid canvasText}}.screen-readers-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{max-block-size:45vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}.list{margin:0px;display:block;padding:0px}.list--hide{block-size:0px;overflow:hidden}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-inline-size:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.item{display:block}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
6
|
+
import{r as i,c as t,h as e,H as s,g as a}from"./p-f8be5d5f.js";import{f as n}from"./p-b8a638ef.js";import{i as o,t as c,g as l,a as r}from"./p-dd3d070d.js";import{d as h,f as d,c as m,u as p,r as u,a as b,F as f}from"./p-0a763d23.js";import{s as g,c as v,a as x,d as w,H as y}from"./p-bf0c6866.js";import{g as k}from"./p-d1bcb992.js";import{u as C}from"./p-c0d3537c.js";import{c as z,d as I,g as H}from"./p-24cb0a19.js";import{c as $,s as _,a as j}from"./p-5b5ad89d.js";import{c as D,d as L}from"./p-0d207a2c.js";import{c as S}from"./p-631b6461.js";import{c as A,d as E}from"./p-1bf24177.js";import{c as P,s as F,d as M,u as O}from"./p-6bbf6f62.js";import{C as R,b as B,c as T,h as W,d as U,e as V,g as X,a as Y}from"./p-ed93c5f2.js";import{d as G}from"./p-4e32bf8c.js";import{c as K,d as N}from"./p-a4f08a98.js";import{i as q,k as J}from"./p-4b426bab.js";import{s as Q}from"./p-a29ba58a.js";import"./p-062f1fe7.js";import"./p-89e6a976.js";import"./p-92de1de9.js";import"./p-4ff653eb.js";const Z="combobox-item-",ii="combobox-chip-",ti="combobox-label-",ei="combobox-listbox-",si="combobox-input-",ai=class{constructor(e){i(this,e),this.calciteComboboxChange=t(this,"calciteComboboxChange",6),this.calciteComboboxFilterChange=t(this,"calciteComboboxFilterChange",6),this.calciteComboboxChipClose=t(this,"calciteComboboxChipClose",6),this.calciteComboboxBeforeClose=t(this,"calciteComboboxBeforeClose",6),this.calciteComboboxClose=t(this,"calciteComboboxClose",6),this.calciteComboboxBeforeOpen=t(this,"calciteComboboxBeforeOpen",6),this.calciteComboboxOpen=t(this,"calciteComboboxOpen",6),this.placement=h,this.internalValueChangeFlag=!1,this.textInput=null,this.mutationObserver=S("mutation",(()=>this.updateItems())),this.resizeObserver=S("resize",(()=>this.setMaxScrollerHeight())),this.guid=k(),this.inputHeight=0,this.ignoreSelectedEventsFlag=!1,this.openTransitionProp="opacity",this.setFilteredPlacements=()=>{const{el:i,flipPlacements:t}=this;this.filteredFlipPlacements=t?d(t,i):null},this.getValue=()=>{const i=this.selectedItems.map((i=>{var t;return null===(t=null==i?void 0:i.value)||void 0===t?void 0:t.toString()}));return(null==i?void 0:i.length)?i.length>1?i:i[0]:""},this.onLabelClick=()=>{this.setFocus()},this.keydownHandler=i=>{const{key:t}=i;switch(t){case"Tab":this.activeChipIndex=-1,this.activeItemIndex=-1,this.allowCustomValues&&this.text?(this.addCustomChip(this.text,!0),i.preventDefault()):this.open&&(this.open=!1,i.preventDefault());break;case"ArrowLeft":this.previousChip(),i.preventDefault();break;case"ArrowRight":this.nextChip(),i.preventDefault();break;case"ArrowUp":i.preventDefault(),this.shiftActiveItemIndex(-1),this.comboboxInViewport()||this.el.scrollIntoView();break;case"ArrowDown":i.preventDefault(),this.open||(this.open=!0),this.shiftActiveItemIndex(1),this.comboboxInViewport()||this.el.scrollIntoView();break;case" ":this.textInput.value||(i.preventDefault(),this.open=!0,this.shiftActiveItemIndex(1));break;case"Home":if(!this.open)return;i.preventDefault(),this.updateActiveItemIndex(0),this.scrollToActiveItem(),this.comboboxInViewport()||this.el.scrollIntoView();break;case"End":if(!this.open)return;i.preventDefault(),this.updateActiveItemIndex(this.filteredItems.length-1),this.scrollToActiveItem(),this.comboboxInViewport()||this.el.scrollIntoView();break;case"Escape":this.open=!1,i.preventDefault();break;case"Enter":this.activeItemIndex>-1?(this.toggleSelection(this.filteredItems[this.activeItemIndex]),i.preventDefault()):this.activeChipIndex>-1?(this.removeActiveChip(),i.preventDefault()):this.allowCustomValues&&this.text?(this.addCustomChip(this.text,!0),i.preventDefault()):i.defaultPrevented||g(this)&&i.preventDefault();break;case"Delete":case"Backspace":this.activeChipIndex>-1?(i.preventDefault(),this.removeActiveChip()):!this.text&&this.isMulti()&&(i.preventDefault(),this.removeLastChip())}},this.toggleCloseEnd=()=>{this.open=!1,this.el.removeEventListener("calciteComboboxClose",this.toggleCloseEnd)},this.toggleOpenEnd=()=>{this.open=!1,this.el.removeEventListener("calciteComboboxOpen",this.toggleOpenEnd)},this.setMaxScrollerHeight=async()=>{const{listContainerEl:i,open:t,referenceEl:e}=this;if(!i||!t)return;await this.reposition(!0);const s=this.getMaxScrollerHeight();i.style.maxHeight=s>0?`${s}px`:"",i.style.minWidth=`${e.clientWidth}px`,await this.reposition(!0)},this.calciteChipCloseHandler=i=>{this.open=!1;const t=this.items.find((t=>t===i));t&&this.toggleSelection(t,!1),this.calciteComboboxChipClose.emit()},this.clickHandler=i=>{i.composedPath().some((i=>"CALCITE-CHIP"===i.tagName))||(this.open=!this.open,this.updateActiveItemIndex(0),this.setFocus())},this.setInactiveIfNotContained=i=>{const t=i.composedPath();!this.open||t.includes(this.el)||t.includes(this.referenceEl)||(this.allowCustomValues&&this.text.trim().length&&this.addCustomChip(this.text),"single"===this.selectionMode&&(this.textInput&&(this.textInput.value=""),this.text="",this.filterItems(""),this.updateActiveItemIndex(-1)),this.open=!1)},this.setFloatingEl=i=>{this.floatingEl=i,m(this,this.referenceEl,this.floatingEl)},this.setContainerEl=i=>{this.resizeObserver.observe(i),this.listContainerEl=i,this.transitionEl=i,A(this)},this.setReferenceEl=i=>{this.referenceEl=i,m(this,this.referenceEl,this.floatingEl)},this.inputHandler=i=>{const t=i.target.value;this.text=t,this.filterItems(t),t&&(this.activeChipIndex=-1)},this.filterItems=(()=>{const i=(i,t)=>i&&t.some((({label:t,value:e})=>i.tagName===V?e===i.label:e===i.textLabel||e===i.value||t===i.textLabel||t===i.value));return G((t=>{const e=n(this.data,t);this.getCombinedItems().forEach((t=>{const s=!i(t,e);t.hidden=s;const[a,n]=t.ancestors;(i(a,e)||i(n,e))&&(t.hidden=!1),s||t.ancestors.forEach((i=>i.hidden=!1))})),this.filteredItems=this.getfilteredItems(),this.calciteComboboxFilterChange.emit()}),100)})(),this.internalComboboxChangeEvent=()=>{this.calciteComboboxChange.emit()},this.emitComboboxChange=G(this.internalComboboxChangeEvent,0),this.updateItems=()=>{this.items=this.getItems(),this.groupItems=this.getGroupItems(),this.data=this.getData(),this.selectedItems=this.getSelectedItems(),this.filteredItems=this.getfilteredItems(),this.needsIcon=this.getNeedsIcon(),this.allowCustomValues||this.setMaxScrollerHeight()},this.scrollToActiveItem=()=>{const i=this.filteredItems[this.activeItemIndex];if(!i)return;const t=this.calculateSingleItemHeight(i),{offsetHeight:e,scrollTop:s}=this.listContainerEl;e+s<i.offsetTop+t?this.listContainerEl.scrollTop=i.offsetTop-e+t:i.offsetTop<s&&(this.listContainerEl.scrollTop=i.offsetTop)},this.comboboxFocusHandler=()=>{var i;null===(i=this.textInput)||void 0===i||i.focus()},this.comboboxBlurHandler=i=>{this.setInactiveIfNotContained(i)},this.open=!1,this.disabled=!1,this.form=void 0,this.label=void 0,this.placeholder=void 0,this.placeholderIcon=void 0,this.placeholderIconFlipRtl=!1,this.maxItems=0,this.name=void 0,this.allowCustomValues=void 0,this.overlayPositioning="absolute",this.required=!1,this.selectionMode="multiple",this.scale="m",this.value=null,this.flipPlacements=void 0,this.messages=void 0,this.messageOverrides=void 0,this.selectedItems=[],this.filteredItems=[],this.items=[],this.groupItems=[],this.needsIcon=void 0,this.activeItemIndex=-1,this.activeChipIndex=-1,this.activeDescendant="",this.text="",this.effectiveLocale=void 0,this.defaultMessages=void 0}openHandler(i){i||p(this.floatingEl),this.disabled?this.open=!1:this.setMaxScrollerHeight()}handleDisabledChange(i){i||(this.open=!1)}maxItemsHandler(){this.setMaxScrollerHeight()}overlayPositioningHandler(){this.reposition(!0)}valueHandler(i){if(!this.internalValueChangeFlag){const t=this.getItems();Array.isArray(i)?t.forEach((t=>t.selected=i.includes(t.value))):t.forEach(i?t=>t.selected=i===t.value:i=>i.selected=!1),this.updateItems()}}onMessagesChange(){}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}selectedItemsHandler(){this.internalValueChangeFlag=!0,this.value=this.getValue(),this.internalValueChangeFlag=!1}documentClickHandler(i){o(i)&&this.setInactiveIfNotContained(i)}calciteComboboxItemChangeHandler(i){if(this.ignoreSelectedEventsFlag)return;const t=i.target,e=this.filteredItems.indexOf(t);this.updateActiveItemIndex(e),this.toggleSelection(t,t.selected)}async reposition(i=!1){const{floatingEl:t,referenceEl:e,placement:s,overlayPositioning:a,filteredFlipPlacements:n}=this;return u(this,{floatingEl:t,referenceEl:e,overlayPositioning:a,placement:s,flipPlacements:n,type:"menu"},i)}async setFocus(){var i;await $(this),null===(i=this.textInput)||void 0===i||i.focus(),this.activeChipIndex=-1,this.activeItemIndex=-1}connectedCallback(){var i;D(this),P(this),this.internalValueChangeFlag=!0,this.value=this.getValue(),this.internalValueChangeFlag=!1,null===(i=this.mutationObserver)||void 0===i||i.observe(this.el,{childList:!0,subtree:!0}),z(this),v(this),A(this),this.setFilteredPlacements(),this.reposition(!0),this.open&&this.openHandler(this.open)}async componentWillLoad(){_(this),this.updateItems(),await F(this)}componentDidLoad(){x(this,this.getValue()),this.reposition(!0),j(this)}componentDidRender(){this.el.offsetHeight!==this.inputHeight&&(this.reposition(!0),this.inputHeight=this.el.offsetHeight),C(this)}disconnectedCallback(){var i,t;null===(i=this.mutationObserver)||void 0===i||i.disconnect(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),I(this),w(this),b(this,this.referenceEl,this.floatingEl),E(this),L(this),M(this)}textHandler(){this.updateActiveItemIndex(-1)}effectiveLocaleChange(){O(this,this.effectiveLocale)}comboboxInViewport(){const i=this.el.getBoundingClientRect();return i.top>=0&&i.left>=0&&i.right<=(window.innerWidth||document.documentElement.clientWidth)&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)}onBeforeOpen(){this.calciteComboboxBeforeOpen.emit()}onOpen(){this.calciteComboboxOpen.emit()}onBeforeClose(){this.calciteComboboxBeforeClose.emit()}onClose(){this.calciteComboboxClose.emit()}getMaxScrollerHeight(){const i=this.getCombinedItems().filter((i=>!i.hidden)),{maxItems:t}=this;let e=0,s=0;return i.length>t&&i.forEach((i=>{if(e<t&&t>0){const t=this.calculateSingleItemHeight(i);t>0&&(s+=t,e++)}})),s}calculateSingleItemHeight(i){if(!i)return;let t=i.offsetHeight;return Array.from(i.querySelectorAll(R)).map((i=>null==i?void 0:i.offsetHeight)).forEach((i=>{t-=i})),t}getCombinedItems(){return[...this.groupItems,...this.items]}toggleSelection(i,t=!i.selected){i&&(this.isMulti()?(i.selected=t,this.updateAncestors(i),this.selectedItems=this.getSelectedItems(),this.emitComboboxChange(),this.resetText(),this.filterItems("")):(this.ignoreSelectedEventsFlag=!0,this.items.forEach((e=>e.selected=e===i&&t)),this.ignoreSelectedEventsFlag=!1,this.selectedItems=this.getSelectedItems(),this.emitComboboxChange(),this.textInput&&(this.textInput.value=i.textLabel),this.open=!1,this.updateActiveItemIndex(-1),this.resetText(),this.filterItems("")))}updateAncestors(i){if("ancestors"!==this.selectionMode)return;const t=B(i),e=T(i);i.selected?t.forEach((i=>{i.selected=!0})):(e.forEach((i=>i.selected=!1)),[...t].forEach((i=>{W(i)||(i.selected=!1)})))}getfilteredItems(){return this.items.filter((i=>!i.hidden))}getSelectedItems(){if(!this.isMulti()){const i=this.items.find((({selected:i})=>i));return i?[i]:[]}return this.items.filter((i=>i.selected&&("ancestors"!==this.selectionMode||!W(i)))).sort(((i,t)=>{const e=this.selectedItems.indexOf(i),s=this.selectedItems.indexOf(t);return e>-1&&s>-1?e-s:s-e}))}getData(){return this.items.map((i=>({filterDisabled:i.filterDisabled,value:i.value,label:i.textLabel})))}getNeedsIcon(){return"single"===this.selectionMode&&this.items.some((i=>i.icon))}resetText(){this.textInput&&(this.textInput.value=""),this.text=""}getItems(){return Array.from(this.el.querySelectorAll(U)).filter((i=>!i.disabled))}getGroupItems(){return Array.from(this.el.querySelectorAll(V))}addCustomChip(i,t){const e=this.items.find((t=>t.textLabel===i));if(e)this.toggleSelection(e,!0);else{this.isMulti()||this.toggleSelection(this.selectedItems[this.selectedItems.length-1],!1);const e=document.createElement(U);e.value=i,e.textLabel=i,e.selected=!0,this.el.appendChild(e),this.resetText(),t&&this.setFocus(),this.updateItems(),this.filterItems(""),this.emitComboboxChange()}}removeActiveChip(){this.toggleSelection(this.selectedItems[this.activeChipIndex],!1),this.setFocus()}removeLastChip(){this.toggleSelection(this.selectedItems[this.selectedItems.length-1],!1),this.setFocus()}previousChip(){if(this.text)return;const i=this.activeChipIndex;this.activeChipIndex=-1===i?this.selectedItems.length-1:Math.max(i-1,0),this.updateActiveItemIndex(-1),this.focusChip()}nextChip(){if(this.text||-1===this.activeChipIndex)return;const i=this.activeChipIndex+1;i>this.selectedItems.length-1?(this.activeChipIndex=-1,this.setFocus()):(this.activeChipIndex=i,this.focusChip()),this.updateActiveItemIndex(-1)}focusChip(){var i;const t=null===(i=this.selectedItems[this.activeChipIndex])||void 0===i?void 0:i.guid,e=t?this.referenceEl.querySelector(`#${ii}${t}`):null;null==e||e.setFocus()}shiftActiveItemIndex(i){const{length:t}=this.filteredItems;this.updateActiveItemIndex((this.activeItemIndex+t+i)%t),this.scrollToActiveItem()}updateActiveItemIndex(i){this.activeItemIndex=i;let t=null;this.filteredItems.forEach(((e,s)=>{s===i?(e.active=!0,t=`${Z}${e.guid}`):e.active=!1})),this.activeDescendant=t,this.activeItemIndex>-1&&(this.activeChipIndex=-1)}isMulti(){return"single"!==this.selectionMode}renderChips(){const{activeChipIndex:i,scale:t,selectionMode:s,messages:a}=this;return this.selectedItems.map(((n,o)=>{const c={chip:!0,"chip--active":i===o},l=[...[...B(n)].reverse(),n].map((i=>i.textLabel)),r="ancestors"!==s?n.textLabel:l.join(" / ");return e("calcite-chip",{class:c,closable:!0,icon:n.icon,iconFlipRtl:n.iconFlipRtl,id:n.guid?`${ii}${n.guid}`:null,key:n.textLabel,messageOverrides:{dismissLabel:a.removeTag},onCalciteChipClose:()=>this.calciteChipCloseHandler(n),scale:t,title:r,value:n.value},r)}))}renderInput(){const{guid:i,disabled:t,placeholder:s,selectionMode:a,selectedItems:n,open:o}=this,c="single"===a,l=n[0],r=!o&&c&&!!l;return e("span",{class:{"input-wrap":!0,"input-wrap--single":c}},r&&e("span",{class:{label:!0,"label--icon":!!(null==l?void 0:l.icon)},key:"label"},l.textLabel),e("input",{"aria-activedescendant":this.activeDescendant,"aria-autocomplete":"list","aria-controls":`${ei}${i}`,"aria-label":H(this),class:{input:!0,"input--single":!0,"input--transparent":this.activeChipIndex>-1,"input--hidden":r,"input--icon":!!this.placeholderIcon},disabled:t,id:`${si}${i}`,key:"input",onBlur:this.comboboxBlurHandler,onFocus:this.comboboxFocusHandler,onInput:this.inputHandler,placeholder:s,type:"text",ref:i=>this.textInput=i}))}renderListBoxOptions(){return this.filteredItems.map((i=>e("li",{"aria-selected":c(i.selected),id:i.guid?`${Z}${i.guid}`:null,role:"option",tabindex:"-1"},i.textLabel)))}renderFloatingUIContainer(){const{setFloatingEl:i,setContainerEl:t,open:s}=this;return e("div",{"aria-hidden":"true",class:{"floating-ui-container":!0,"floating-ui-container--active":s},ref:i},e("div",{class:{"list-container":!0,[f.animation]:!0,[f.animationActive]:s},ref:t},e("ul",{class:{list:!0,"list--hide":!s}},e("slot",null))))}renderIconStart(){const{selectedItems:i,placeholderIcon:t,selectionMode:s,placeholderIconFlipRtl:a}=this,n=i[0],o=null==n?void 0:n.icon,c="single"===s;return(!this.open&&n?!!o&&c:!!this.placeholderIcon&&(!n||c))&&e("span",{class:"icon-start"},e("calcite-icon",{class:"selected-icon",flipRtl:this.open&&n?n.iconFlipRtl:a,icon:!this.open&&n?o:t,scale:"s"}))}renderIconEnd(){const{open:i}=this;return e("span",{class:"icon-end"},e("calcite-icon",{icon:i?"chevron-up":"chevron-down",scale:"s"}))}render(){const{guid:i,label:t,open:a}=this,n="single"===this.selectionMode;return e(s,{onClick:this.comboboxFocusHandler},e("div",{"aria-autocomplete":"list","aria-controls":`${ei}${i}`,"aria-expanded":c(a),"aria-haspopup":"listbox","aria-label":H(this),"aria-live":"polite","aria-owns":`${ei}${i}`,class:{wrapper:!0,"wrapper--single":n||!this.selectedItems.length,"wrapper--active":a},onClick:this.clickHandler,onKeyDown:this.keydownHandler,role:"combobox",ref:this.setReferenceEl},e("div",{class:"grid-input"},this.renderIconStart(),!n&&this.renderChips(),e("label",{class:"screen-readers-only",htmlFor:`${si}${i}`,id:`${ti}${i}`},t),this.renderInput()),this.renderIconEnd()),e("ul",{"aria-labelledby":`${ti}${i}`,"aria-multiselectable":"true",class:"screen-readers-only",id:`${ei}${i}`,role:"listbox",tabIndex:-1},this.renderListBoxOptions()),this.renderFloatingUIContainer(),e(y,{component:this}))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{open:["openHandler"],disabled:["handleDisabledChange"],maxItems:["maxItemsHandler"],overlayPositioning:["overlayPositioningHandler"],value:["valueHandler"],messageOverrides:["onMessagesChange"],flipPlacements:["flipPlacementsHandler"],selectedItems:["selectedItemsHandler"],text:["textHandler"],effectiveLocale:["effectiveLocaleChange"]}}};ai.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:flex;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-color:transparent;padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}.grid-input{display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}.input{flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-inline-size:120px;-webkit-margin-after:var(--calcite-combobox-item-spacing-unit-s);margin-block-end:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-block:0px;padding:0px}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:flex;flex-grow:1}.input-wrap--single{flex:1 1 0%;overflow:hidden}.label{pointer-events:none;display:flex;max-inline-size:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--icon{padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:flex;inline-size:1rem;cursor:pointer;align-items:center}.icon-end{flex:none}.floating-ui-container{--calcite-floating-ui-z-index:600;display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index);visibility:hidden}.floating-ui-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}.floating-ui-container--active{visibility:visible}@media (forced-colors: active){.wrapper,.floating-ui-container--active{border:1px solid canvasText}}.screen-readers-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{max-block-size:45vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}.list{margin:0px;display:block;padding:0px}.list--hide{block-size:0px;overflow:hidden}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-inline-size:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.item{display:block}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|