index-8ddf2fd6.js 2.7 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350
  1. var Lq=Object.defineProperty;var Dq=(e,t,n)=>t in e?Lq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Wt=(e,t,n)=>(Dq(e,typeof t!="symbol"?t+"":t,n),n),Kw=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var D=(e,t,n)=>(Kw(e,t,"read from private field"),n?n.call(e):t.get(e)),ue=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Ce=(e,t,n,i)=>(Kw(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Kr=(e,t,n,i)=>({set _(o){Ce(e,t,o,n)},get _(){return D(e,t,i)}}),_e=(e,t,n)=>(Kw(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const r of s.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();/**
  2. * @vue/shared v3.5.12
  3. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  4. * @license MIT
  5. **//*! #__NO_SIDE_EFFECTS__ */function dS(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Tn={},Zf=[],ss=()=>{},Nq=()=>!1,e1=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),fT=e=>e.startsWith("onUpdate:"),si=Object.assign,hT=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},jq=Object.prototype.hasOwnProperty,Hn=(e,t)=>jq.call(e,t),en=Array.isArray,Gf=e=>Up(e)==="[object Map]",sf=e=>Up(e)==="[object Set]",Y8=e=>Up(e)==="[object Date]",zq=e=>Up(e)==="[object RegExp]",an=e=>typeof e=="function",di=e=>typeof e=="string",Hs=e=>typeof e=="symbol",ni=e=>e!==null&&typeof e=="object",pT=e=>(ni(e)||an(e))&&an(e.then)&&an(e.catch),rz=Object.prototype.toString,Up=e=>rz.call(e),Rq=e=>Up(e).slice(8,-1),fS=e=>Up(e)==="[object Object]",mT=e=>di(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yf=dS(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hS=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Bq=/-(\w)/g,br=hS(e=>e.replace(Bq,(t,n)=>n?n.toUpperCase():"")),Fq=/\B([A-Z])/g,wo=hS(e=>e.replace(Fq,"-$1").toLowerCase()),Zp=hS(e=>e.charAt(0).toUpperCase()+e.slice(1)),Xf=hS(e=>e?`on${Zp(e)}`:""),no=(e,t)=>!Object.is(e,t),Kf=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},oz=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},Ek=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Mk=e=>{const t=di(e)?Number(e):NaN;return isNaN(t)?e:t};let X8;const pS=()=>X8||(X8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Vq="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",Hq=dS(Vq);function Te(e){if(en(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],o=di(i)?Gq(i):Te(i);if(o)for(const s in o)t[s]=o[s]}return t}else if(di(e)||ni(e))return e}const Wq=/;(?![^(]*\))/g,Uq=/:([^]+)/,Zq=/\/\*[^]*?\*\//g;function Gq(e){const t={};return e.replace(Zq,"").split(Wq).forEach(n=>{if(n){const i=n.split(Uq);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function G(e){let t="";if(di(e))t=e;else if(en(e))for(let n=0;n<e.length;n++){const i=G(e[n]);i&&(t+=i+" ")}else if(ni(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Bn(e){if(!e)return null;let{class:t,style:n}=e;return t&&!di(t)&&(e.class=G(t)),n&&(e.style=Te(n)),e}const Yq="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Xq=dS(Yq);function sz(e){return!!e||e===""}function Kq(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=Yc(e[i],t[i]);return n}function Yc(e,t){if(e===t)return!0;let n=Y8(e),i=Y8(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=Hs(e),i=Hs(t),n||i)return e===t;if(n=en(e),i=en(t),n||i)return n&&i?Kq(e,t):!1;if(n=ni(e),i=ni(t),n||i){if(!n||!i)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const r in e){const a=e.hasOwnProperty(r),u=t.hasOwnProperty(r);if(a&&!u||!a&&u||!Yc(e[r],t[r]))return!1}}return String(e)===String(t)}function mS(e,t){return e.findIndex(n=>Yc(n,t))}const az=e=>!!(e&&e.__v_isRef===!0),tt=e=>di(e)?e:e==null?"":en(e)||ni(e)&&(e.toString===rz||!an(e.toString))?az(e)?tt(e.value):JSON.stringify(e,lz,2):String(e),lz=(e,t)=>az(t)?lz(e,t.value):Gf(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o],s)=>(n[Jw(i,s)+" =>"]=o,n),{})}:sf(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Jw(n))}:Hs(t)?Jw(t):ni(t)&&!en(t)&&!fS(t)?String(t):t,Jw=(e,t="")=>{var n;return Hs(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
  6. * @vue/reactivity v3.5.12
  7. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  8. * @license MIT
  9. **/let to;class vS{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=to,!t&&to&&(this.index=(to.scopes||(to.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=to;try{return to=this,t()}finally{to=n}}}on(){to=this}off(){to=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function t1(e){return new vS(e)}function n1(){return to}function gS(e,t=!1){to&&to.cleanups.push(e)}let ui;const qw=new WeakSet;class Pp{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,to&&to.active&&to.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,qw.has(this)&&(qw.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||uz(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,K8(this),dz(this);const t=ui,n=Rs;ui=this,Rs=!0;try{return this.fn()}finally{fz(this),ui=t,Rs=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)yT(t);this.deps=this.depsTail=void 0,K8(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?qw.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){LA(this)&&this.run()}get dirty(){return LA(this)}}let cz=0,nv,iv;function uz(e,t=!1){if(e.flags|=8,t){e.next=iv,iv=e;return}e.next=nv,nv=e}function vT(){cz++}function gT(){if(--cz>0)return;if(iv){let t=iv;for(iv=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;nv;){let t=nv;for(nv=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=n}}if(e)throw e}function dz(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function fz(e){let t,n=e.depsTail,i=n;for(;i;){const o=i.prevDep;i.version===-1?(i===n&&(n=o),yT(i),Jq(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=o}e.deps=t,e.depsTail=n}function LA(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(hz(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function hz(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ev))return;e.globalVersion=Ev;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!LA(e)){e.flags&=-3;return}const n=ui,i=Rs;ui=e,Rs=!0;try{dz(e);const o=e.fn(e._value);(t.version===0||no(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ui=n,Rs=i,fz(e),e.flags&=-3}}function yT(e,t=!1){const{dep:n,prevSub:i,nextSub:o}=e;if(i&&(i.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)yT(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Jq(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function pz(e,t){e.effect instanceof Pp&&(e=e.effect.fn);const n=new Pp(e);t&&si(n,t);try{n.run()}catch(o){throw n.stop(),o}const i=n.run.bind(n);return i.effect=n,i}function mz(e){e.effect.stop()}let Rs=!0;const vz=[];function tu(){vz.push(Rs),Rs=!1}function nu(){const e=vz.pop();Rs=e===void 0?!0:e}function K8(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ui;ui=void 0;try{t()}finally{ui=n}}}let Ev=0,qq=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class yS{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!ui||!Rs||ui===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ui)n=this.activeLink=new qq(ui,this),ui.deps?(n.prevDep=ui.depsTail,ui.depsTail.nextDep=n,ui.depsTail=n):ui.deps=ui.depsTail=n,gz(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=ui.depsTail,n.nextDep=void 0,ui.depsTail.nextDep=n,ui.depsTail=n,ui.deps===n&&(ui.deps=i)}return n}trigger(t){this.version++,Ev++,this.notify(t)}notify(t){vT();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{gT()}}}function gz(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)gz(i)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Tk=new WeakMap,Rd=Symbol(""),DA=Symbol(""),Mv=Symbol("");function Vr(e,t,n){if(Rs&&ui){let i=Tk.get(e);i||Tk.set(e,i=new Map);let o=i.get(n);o||(i.set(n,o=new yS),o.map=i,o.key=n),o.track()}}function Cl(e,t,n,i,o,s){const r=Tk.get(e);if(!r){Ev++;return}const a=u=>{u&&u.trigger()};if(vT(),t==="clear")r.forEach(a);else{const u=en(e),c=u&&mT(n);if(u&&n==="length"){const l=Number(i);r.forEach((g,C)=>{(C==="length"||C===Mv||!Hs(C)&&C>=l)&&a(g)})}else switch((n!==void 0||r.has(void 0))&&a(r.get(n)),c&&a(r.get(Mv)),t){case"add":u?c&&a(r.get("length")):(a(r.get(Rd)),Gf(e)&&a(r.get(DA)));break;case"delete":u||(a(r.get(Rd)),Gf(e)&&a(r.get(DA)));break;case"set":Gf(e)&&a(r.get(Rd));break}}gT()}function Qq(e,t){const n=Tk.get(e);return n&&n.get(t)}function _f(e){const t=An(e);return t===e?t:(Vr(t,"iterate",Mv),Io(e)?t:t.map(Hr))}function bS(e){return Vr(e=An(e),"iterate",Mv),e}const eQ={__proto__:null,[Symbol.iterator](){return Qw(this,Symbol.iterator,Hr)},concat(...e){return _f(this).concat(...e.map(t=>en(t)?_f(t):t))},entries(){return Qw(this,"entries",e=>(e[1]=Hr(e[1]),e))},every(e,t){return za(this,"every",e,t,void 0,arguments)},filter(e,t){return za(this,"filter",e,t,n=>n.map(Hr),arguments)},find(e,t){return za(this,"find",e,t,Hr,arguments)},findIndex(e,t){return za(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return za(this,"findLast",e,t,Hr,arguments)},findLastIndex(e,t){return za(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return za(this,"forEach",e,t,void 0,arguments)},includes(...e){return e_(this,"includes",e)},indexOf(...e){return e_(this,"indexOf",e)},join(e){return _f(this).join(e)},lastIndexOf(...e){return e_(this,"lastIndexOf",e)},map(e,t){return za(this,"map",e,t,void 0,arguments)},pop(){return ym(this,"pop")},push(...e){return ym(this,"push",e)},reduce(e,...t){return J8(this,"reduce",e,t)},reduceRight(e,...t){return J8(this,"reduceRight",e,t)},shift(){return ym(this,"shift")},some(e,t){return za(this,"some",e,t,void 0,arguments)},splice(...e){return ym(this,"splice",e)},toReversed(){return _f(this).toReversed()},toSorted(e){return _f(this).toSorted(e)},toSpliced(...e){return _f(this).toSpliced(...e)},unshift(...e){return ym(this,"unshift",e)},values(){return Qw(this,"values",Hr)}};function Qw(e,t,n){const i=bS(e),o=i[t]();return i!==e&&!Io(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.value&&(s.value=n(s.value)),s}),o}const tQ=Array.prototype;function za(e,t,n,i,o,s){const r=bS(e),a=r!==e&&!Io(e),u=r[t];if(u!==tQ[t]){const g=u.apply(e,s);return a?Hr(g):g}let c=n;r!==e&&(a?c=function(g,C){return n.call(this,Hr(g),C,e)}:n.length>2&&(c=function(g,C){return n.call(this,g,C,e)}));const l=u.call(r,c,i);return a&&o?o(l):l}function J8(e,t,n,i){const o=bS(e);let s=n;return o!==e&&(Io(e)?n.length>3&&(s=function(r,a,u){return n.call(this,r,a,u,e)}):s=function(r,a,u){return n.call(this,r,Hr(a),u,e)}),o[t](s,...i)}function e_(e,t,n){const i=An(e);Vr(i,"iterate",Mv);const o=i[t](...n);return(o===-1||o===!1)&&r1(n[0])?(n[0]=An(n[0]),i[t](...n)):o}function ym(e,t,n=[]){tu(),vT();const i=An(e)[t].apply(e,n);return gT(),nu(),i}const nQ=dS("__proto__,__v_isRef,__isVue"),yz=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Hs));function iQ(e){Hs(e)||(e=String(e));const t=An(this);return Vr(t,"has",e),t.hasOwnProperty(e)}class bz{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return i===(o?s?Iz:_z:s?wz:Sz).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const r=en(t);if(!o){let u;if(r&&(u=eQ[n]))return u;if(n==="hasOwnProperty")return iQ}const a=Reflect.get(t,n,oi(t)?t:i);return(Hs(n)?yz.has(n):nQ(n))||(o||Vr(t,"get",n),s)?a:oi(a)?r&&mT(n)?a:a.value:ni(a)?o?i1(a):it(a):a}}class kz extends bz{constructor(t=!1){super(!1,t)}set(t,n,i,o){let s=t[n];if(!this._isShallow){const u=Ll(s);if(!Io(i)&&!Ll(i)&&(s=An(s),i=An(i)),!en(t)&&oi(s)&&!oi(i))return u?!1:(s.value=i,!0)}const r=en(t)&&mT(n)?Number(n)<t.length:Hn(t,n),a=Reflect.set(t,n,i,oi(t)?t:o);return t===An(o)&&(r?no(i,s)&&Cl(t,"set",n,i):Cl(t,"add",n,i)),a}deleteProperty(t,n){const i=Hn(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&i&&Cl(t,"delete",n,void 0),o}has(t,n){const i=Reflect.has(t,n);return(!Hs(n)||!yz.has(n))&&Vr(t,"has",n),i}ownKeys(t){return Vr(t,"iterate",en(t)?"length":Rd),Reflect.ownKeys(t)}}class Cz extends bz{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const rQ=new kz,oQ=new Cz,sQ=new kz(!0),aQ=new Cz(!0),NA=e=>e,uy=e=>Reflect.getPrototypeOf(e);function lQ(e,t,n){return function(...i){const o=this.__v_raw,s=An(o),r=Gf(s),a=e==="entries"||e===Symbol.iterator&&r,u=e==="keys"&&r,c=o[e](...i),l=n?NA:t?jA:Hr;return!t&&Vr(s,"iterate",u?DA:Rd),{next(){const{value:g,done:C}=c.next();return C?{value:g,done:C}:{value:a?[l(g[0]),l(g[1])]:l(g),done:C}},[Symbol.iterator](){return this}}}}function dy(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function cQ(e,t){const n={get(o){const s=this.__v_raw,r=An(s),a=An(o);e||(no(o,a)&&Vr(r,"get",o),Vr(r,"get",a));const{has:u}=uy(r),c=t?NA:e?jA:Hr;if(u.call(r,o))return c(s.get(o));if(u.call(r,a))return c(s.get(a));s!==r&&s.get(o)},get size(){const o=this.__v_raw;return!e&&Vr(An(o),"iterate",Rd),Reflect.get(o,"size",o)},has(o){const s=this.__v_raw,r=An(s),a=An(o);return e||(no(o,a)&&Vr(r,"has",o),Vr(r,"has",a)),o===a?s.has(o):s.has(o)||s.has(a)},forEach(o,s){const r=this,a=r.__v_raw,u=An(a),c=t?NA:e?jA:Hr;return!e&&Vr(u,"iterate",Rd),a.forEach((l,g)=>o.call(s,c(l),c(g),r))}};return si(n,e?{add:dy("add"),set:dy("set"),delete:dy("delete"),clear:dy("clear")}:{add(o){!t&&!Io(o)&&!Ll(o)&&(o=An(o));const s=An(this);return uy(s).has.call(s,o)||(s.add(o),Cl(s,"add",o,o)),this},set(o,s){!t&&!Io(s)&&!Ll(s)&&(s=An(s));const r=An(this),{has:a,get:u}=uy(r);let c=a.call(r,o);c||(o=An(o),c=a.call(r,o));const l=u.call(r,o);return r.set(o,s),c?no(s,l)&&Cl(r,"set",o,s):Cl(r,"add",o,s),this},delete(o){const s=An(this),{has:r,get:a}=uy(s);let u=r.call(s,o);u||(o=An(o),u=r.call(s,o)),a&&a.call(s,o);const c=s.delete(o);return u&&Cl(s,"delete",o,void 0),c},clear(){const o=An(this),s=o.size!==0,r=o.clear();return s&&Cl(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=lQ(o,e,t)}),n}function kS(e,t){const n=cQ(e,t);return(i,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(Hn(n,o)&&o in i?n:i,o,s)}const uQ={get:kS(!1,!1)},dQ={get:kS(!1,!0)},fQ={get:kS(!0,!1)},hQ={get:kS(!0,!0)},Sz=new WeakMap,wz=new WeakMap,_z=new WeakMap,Iz=new WeakMap;function pQ(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function mQ(e){return e.__v_skip||!Object.isExtensible(e)?0:pQ(Rq(e))}function it(e){return Ll(e)?e:SS(e,!1,rQ,uQ,Sz)}function CS(e){return SS(e,!1,sQ,dQ,wz)}function i1(e){return SS(e,!0,oQ,fQ,_z)}function xz(e){return SS(e,!0,aQ,hQ,Iz)}function SS(e,t,n,i,o){if(!ni(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const r=mQ(e);if(r===0)return e;const a=new Proxy(e,r===2?i:n);return o.set(e,a),a}function Bs(e){return Ll(e)?Bs(e.__v_raw):!!(e&&e.__v_isReactive)}function Ll(e){return!!(e&&e.__v_isReadonly)}function Io(e){return!!(e&&e.__v_isShallow)}function r1(e){return e?!!e.__v_raw:!1}function An(e){const t=e&&e.__v_raw;return t?An(t):e}function o1(e){return!Hn(e,"__v_skip")&&Object.isExtensible(e)&&oz(e,"__v_skip",!0),e}const Hr=e=>ni(e)?it(e):e,jA=e=>ni(e)?i1(e):e;function oi(e){return e?e.__v_isRef===!0:!1}function he(e){return $z(e,!1)}function Gp(e){return $z(e,!0)}function $z(e,t){return oi(e)?e:new vQ(e,t)}class vQ{constructor(t,n){this.dep=new yS,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:An(t),this._value=n?t:Hr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,i=this.__v_isShallow||Io(t)||Ll(t);t=i?t:An(t),no(t,n)&&(this._rawValue=t,this._value=i?t:Hr(t),this.dep.trigger())}}function Az(e){e.dep&&e.dep.trigger()}function ji(e){return oi(e)?e.value:e}function Ez(e){return an(e)?e():ji(e)}const gQ={get:(e,t,n)=>t==="__v_raw"?e:ji(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return oi(o)&&!oi(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function wS(e){return Bs(e)?e:new Proxy(e,gQ)}class yQ{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new yS,{get:i,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=i,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function bT(e){return new yQ(e)}function lt(e){const t=en(e)?new Array(e.length):{};for(const n in e)t[n]=Mz(e,n);return t}class bQ{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Qq(An(this._object),this._key)}}class kQ{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function lo(e,t,n){return oi(e)?e:an(e)?new kQ(e):ni(e)&&arguments.length>1?Mz(e,t,n):he(e)}function Mz(e,t,n){const i=e[t];return oi(i)?i:new bQ(e,t,n)}class CQ{constructor(t,n,i){this.fn=t,this.setter=n,this._value=void 0,this.dep=new yS(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ev-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&ui!==this)return uz(this,!0),!0}get value(){const t=this.dep.track();return hz(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function SQ(e,t,n=!1){let i,o;return an(e)?i=e:(i=e.get,o=e.set),new CQ(i,o,n)}const Tz={GET:"get",HAS:"has",ITERATE:"iterate"},Pz={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},fy={},Pk=new WeakMap;let nc;function Oz(){return nc}function kT(e,t=!1,n=nc){if(n){let i=Pk.get(n);i||Pk.set(n,i=[]),i.push(e)}}function wQ(e,t,n=Tn){const{immediate:i,deep:o,once:s,scheduler:r,augmentJob:a,call:u}=n,c=f=>o?f:Io(f)||o===!1||o===0?Sl(f,1):Sl(f);let l,g,C,S,_=!1,A=!1;if(oi(e)?(g=()=>e.value,_=Io(e)):Bs(e)?(g=()=>c(e),_=!0):en(e)?(A=!0,_=e.some(f=>Bs(f)||Io(f)),g=()=>e.map(f=>{if(oi(f))return f.value;if(Bs(f))return c(f);if(an(f))return u?u(f,2):f()})):an(e)?t?g=u?()=>u(e,2):e:g=()=>{if(C){tu();try{C()}finally{nu()}}const f=nc;nc=l;try{return u?u(e,3,[S]):e(S)}finally{nc=f}}:g=ss,t&&o){const f=g,p=o===!0?1/0:o;g=()=>Sl(f(),p)}const y=n1(),d=()=>{l.stop(),y&&hT(y.effects,l)};if(s&&t){const f=t;t=(...p)=>{f(...p),d()}}let v=A?new Array(e.length).fill(fy):fy;const m=f=>{if(!(!(l.flags&1)||!l.dirty&&!f))if(t){const p=l.run();if(o||_||(A?p.some((h,b)=>no(h,v[b])):no(p,v))){C&&C();const h=nc;nc=l;try{const b=[p,v===fy?void 0:A&&v[0]===fy?[]:v,S];u?u(t,3,b):t(...b),v=p}finally{nc=h}}}else l.run()};return a&&a(m),l=new Pp(g),l.scheduler=r?()=>r(m,!1):m,S=f=>kT(f,!1,l),C=l.onStop=()=>{const f=Pk.get(l);if(f){if(u)u(f,4);else for(const p of f)p();Pk.delete(l)}},t?i?m(!0):v=l.run():r?r(m.bind(null,!0),!0):l.run(),d.pause=l.pause.bind(l),d.resume=l.resume.bind(l),d.stop=d,d}function Sl(e,t=1/0,n){if(t<=0||!ni(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,oi(e))Sl(e.value,t,n);else if(en(e))for(let i=0;i<e.length;i++)Sl(e[i],t,n);else if(sf(e)||Gf(e))e.forEach(i=>{Sl(i,t,n)});else if(fS(e)){for(const i in e)Sl(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&Sl(e[i],t,n)}return e}/**
  10. * @vue/runtime-core v3.5.12
  11. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  12. * @license MIT
  13. **/const Lz=[];function _Q(e){Lz.push(e)}function IQ(){Lz.pop()}function Dz(e,t){}const Nz={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},xQ={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush",[15]:"component update",[16]:"app unmount cleanup function"};function af(e,t,n,i){try{return i?e(...i):e()}catch(o){iu(o,t,n)}}function Ho(e,t,n,i){if(an(e)){const o=af(e,t,n,i);return o&&pT(o)&&o.catch(s=>{iu(s,t,n)}),o}if(en(e)){const o=[];for(let s=0;s<e.length;s++)o.push(Ho(e[s],t,n,i));return o}}function iu(e,t,n,i=!0){const o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||Tn;if(t){let a=t.parent;const u=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const l=a.ec;if(l){for(let g=0;g<l.length;g++)if(l[g](e,u,c)===!1)return}a=a.parent}if(s){tu(),af(s,null,10,[e,u,c]),nu();return}}$Q(e,n,o,i,r)}function $Q(e,t,n,i=!0,o=!1){if(o)throw e;console.error(e)}const io=[];let ea=-1;const Jf=[];let ic=null,Af=0;const jz=Promise.resolve();let Ok=null;function fn(e){const t=Ok||jz;return e?t.then(this?e.bind(this):e):t}function AQ(e){let t=ea+1,n=io.length;for(;t<n;){const i=t+n>>>1,o=io[i],s=Pv(o);s<e||s===e&&o.flags&2?t=i+1:n=i}return t}function CT(e){if(!(e.flags&1)){const t=Pv(e),n=io[io.length-1];!n||!(e.flags&2)&&t>=Pv(n)?io.push(e):io.splice(AQ(t),0,e),e.flags|=1,zz()}}function zz(){Ok||(Ok=jz.then(Rz))}function Tv(e){en(e)?Jf.push(...e):ic&&e.id===-1?ic.splice(Af+1,0,e):e.flags&1||(Jf.push(e),e.flags|=1),zz()}function q8(e,t,n=ea+1){for(;n<io.length;n++){const i=io[n];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;io.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function Lk(e){if(Jf.length){const t=[...new Set(Jf)].sort((n,i)=>Pv(n)-Pv(i));if(Jf.length=0,ic){ic.push(...t);return}for(ic=t,Af=0;Af<ic.length;Af++){const n=ic[Af];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ic=null,Af=0}}const Pv=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Rz(e){const t=ss;try{for(ea=0;ea<io.length;ea++){const n=io[ea];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),af(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;ea<io.length;ea++){const n=io[ea];n&&(n.flags&=-2)}ea=-1,io.length=0,Lk(),Ok=null,(io.length||Jf.length)&&Rz()}}let Ef,hy=[];function Bz(e,t){var n,i;Ef=e,Ef?(Ef.enabled=!0,hy.forEach(({event:o,args:s})=>Ef.emit(o,...s)),hy=[]):typeof window<"u"&&window.HTMLElement&&!((i=(n=window.navigator)==null?void 0:n.userAgent)!=null&&i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{Bz(s,t)}),setTimeout(()=>{Ef||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,hy=[])},3e3)):hy=[]}let ar=null,_S=null;function Ov(e){const t=ar;return ar=e,_S=e&&e.type.__scopeId||null,t}function Fz(e){_S=e}function Vz(){_S=null}const Hz=e=>Ve;function Ve(e,t=ar,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&Rk(-1);const s=Ov(t);let r;try{r=e(...o)}finally{Ov(s),i._d&&Rk(1)}return r};return i._n=!0,i._c=!0,i._d=!0,i}function gi(e,t){if(ar===null)return e;const n=c1(ar),i=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[s,r,a,u=Tn]=t[o];s&&(an(s)&&(s={mounted:s,updated:s}),s.deep&&Sl(r),i.push({dir:s,instance:n,value:r,oldValue:void 0,arg:a,modifiers:u}))}return e}function ta(e,t,n,i){const o=e.dirs,s=t&&t.dirs;for(let r=0;r<o.length;r++){const a=o[r];s&&(a.oldValue=s[r].value);let u=a.dir[i];u&&(tu(),Ho(u,n,8,[e.el,a,e,t]),nu())}}const Wz=Symbol("_vte"),Uz=e=>e.__isTeleport,rv=e=>e&&(e.disabled||e.disabled===""),EQ=e=>e&&(e.defer||e.defer===""),Q8=e=>typeof SVGElement<"u"&&e instanceof SVGElement,e6=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,zA=(e,t)=>{const n=e&&e.to;return di(n)?t?t(n):null:n},MQ={name:"Teleport",__isTeleport:!0,process(e,t,n,i,o,s,r,a,u,c){const{mc:l,pc:g,pbc:C,o:{insert:S,querySelector:_,createText:A,createComment:y}}=c,d=rv(t.props);let{shapeFlag:v,children:m,dynamicChildren:f}=t;if(e==null){const p=t.el=A(""),h=t.anchor=A("");S(p,n,i),S(h,n,i);const b=(k,$)=>{v&16&&(o&&o.isCE&&(o.ce._teleportTarget=k),l(m,k,$,o,s,r,a,u))},w=()=>{const k=t.target=zA(t.props,_),$=Zz(k,t,A,S);k&&(r!=="svg"&&Q8(k)?r="svg":r!=="mathml"&&e6(k)&&(r="mathml"),d||(b(k,$),Fy(t,!1)))};d&&(b(n,h),Fy(t,!0)),EQ(t.props)?gr(w,s):w()}else{t.el=e.el,t.targetStart=e.targetStart;const p=t.anchor=e.anchor,h=t.target=e.target,b=t.targetAnchor=e.targetAnchor,w=rv(e.props),k=w?n:h,$=w?p:b;if(r==="svg"||Q8(h)?r="svg":(r==="mathml"||e6(h))&&(r="mathml"),f?(C(e.dynamicChildren,f,k,o,s,r,a),jT(e,t,!0)):u||g(e,t,k,$,o,s,r,a,!1),d)w?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):py(t,n,p,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const E=t.target=zA(t.props,_);E&&py(t,E,null,c,0)}else w&&py(t,h,b,c,1);Fy(t,d)}},remove(e,t,n,{um:i,o:{remove:o}},s){const{shapeFlag:r,children:a,anchor:u,targetStart:c,targetAnchor:l,target:g,props:C}=e;if(g&&(o(c),o(l)),s&&o(u),r&16){const S=s||!rv(C);for(let _=0;_<a.length;_++){const A=a[_];i(A,t,n,S,!!A.dynamicChildren)}}},move:py,hydrate:TQ};function py(e,t,n,{o:{insert:i},m:o},s=2){s===0&&i(e.targetAnchor,t,n);const{el:r,anchor:a,shapeFlag:u,children:c,props:l}=e,g=s===2;if(g&&i(r,t,n),(!g||rv(l))&&u&16)for(let C=0;C<c.length;C++)o(c[C],t,n,2);g&&i(a,t,n)}function TQ(e,t,n,i,o,s,{o:{nextSibling:r,parentNode:a,querySelector:u,insert:c,createText:l}},g){const C=t.target=zA(t.props,u);if(C){const S=rv(t.props),_=C._lpa||C.firstChild;if(t.shapeFlag&16)if(S)t.anchor=g(r(e),t,a(e),n,i,o,s),t.targetStart=_,t.targetAnchor=_&&r(_);else{t.anchor=r(e);let A=_;for(;A;){if(A&&A.nodeType===8){if(A.data==="teleport start anchor")t.targetStart=A;else if(A.data==="teleport anchor"){t.targetAnchor=A,C._lpa=t.targetAnchor&&r(t.targetAnchor);break}}A=r(A)}t.targetAnchor||Zz(C,t,l,c),g(_&&r(_),t,C,n,i,o,s)}Fy(t,S)}return t.anchor&&r(t.anchor)}const Yp=MQ;function Fy(e,t){const n=e.ctx;if(n&&n.ut){let i,o;for(t?(i=e.el,o=e.anchor):(i=e.targetStart,o=e.targetAnchor);i&&i!==o;)i.nodeType===1&&i.setAttribute("data-v-owner",n.uid),i=i.nextSibling;n.ut()}}function Zz(e,t,n,i){const o=t.targetStart=n(""),s=t.targetAnchor=n("");return o[Wz]=s,e&&(i(o,e),i(s,e)),s}const rc=Symbol("_leaveCb"),my=Symbol("_enterCb");function IS(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Yt(()=>{e.isMounted=!0}),ei(()=>{e.isUnmounting=!0}),e}const Ko=[Function,Array],xS={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ko,onEnter:Ko,onAfterEnter:Ko,onEnterCancelled:Ko,onBeforeLeave:Ko,onLeave:Ko,onAfterLeave:Ko,onLeaveCancelled:Ko,onBeforeAppear:Ko,onAppear:Ko,onAfterAppear:Ko,onAppearCancelled:Ko},Gz=e=>{const t=e.subTree;return t.component?Gz(t.component):t},PQ={name:"BaseTransition",props:xS,setup(e,{slots:t}){const n=Vn(),i=IS();return()=>{const o=t.default&&s1(t.default(),!0);if(!o||!o.length)return;const s=Yz(o),r=An(e),{mode:a}=r;if(i.isLeaving)return t_(s);const u=t6(s);if(!u)return t_(s);let c=Gd(u,r,i,n,C=>c=C);u.type!==Pi&&Aa(u,c);const l=n.subTree,g=l&&t6(l);if(g&&g.type!==Pi&&!Ns(u,g)&&Gz(n).type!==Pi){const C=Gd(g,r,i,n);if(Aa(g,C),a==="out-in"&&u.type!==Pi)return i.isLeaving=!0,C.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete C.afterLeave},t_(s);a==="in-out"&&u.type!==Pi&&(C.delayLeave=(S,_,A)=>{const y=Xz(i,g);y[String(g.key)]=g,S[rc]=()=>{_(),S[rc]=void 0,delete c.delayedLeave},c.delayedLeave=A})}return s}}};function Yz(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Pi){t=n;break}}return t}const ST=PQ;function Xz(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function Gd(e,t,n,i,o){const{appear:s,mode:r,persisted:a=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:l,onEnterCancelled:g,onBeforeLeave:C,onLeave:S,onAfterLeave:_,onLeaveCancelled:A,onBeforeAppear:y,onAppear:d,onAfterAppear:v,onAppearCancelled:m}=t,f=String(e.key),p=Xz(n,e),h=(k,$)=>{k&&Ho(k,i,9,$)},b=(k,$)=>{const E=$[1];h(k,$),en(k)?k.every(N=>N.length<=1)&&E():k.length<=1&&E()},w={mode:r,persisted:a,beforeEnter(k){let $=u;if(!n.isMounted)if(s)$=y||u;else return;k[rc]&&k[rc](!0);const E=p[f];E&&Ns(e,E)&&E.el[rc]&&E.el[rc](),h($,[k])},enter(k){let $=c,E=l,N=g;if(!n.isMounted)if(s)$=d||c,E=v||l,N=m||g;else return;let j=!1;const z=k[my]=V=>{j||(j=!0,V?h(N,[k]):h(E,[k]),w.delayedLeave&&w.delayedLeave(),k[my]=void 0)};$?b($,[k,z]):z()},leave(k,$){const E=String(e.key);if(k[my]&&k[my](!0),n.isUnmounting)return $();h(C,[k]);let N=!1;const j=k[rc]=z=>{N||(N=!0,$(),z?h(A,[k]):h(_,[k]),k[rc]=void 0,p[E]===e&&delete p[E])};p[E]=e,S?b(S,[k,j]):j()},clone(k){const $=Gd(k,t,n,i,o);return o&&o($),$}};return w}function t_(e){if(a1(e))return e=Tr(e),e.children=null,e}function t6(e){if(!a1(e))return Uz(e.type)&&e.children?Yz(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&an(n.default))return n.default()}}function Aa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Aa(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function s1(e,t=!1,n){let i=[],o=0;for(let s=0;s<e.length;s++){let r=e[s];const a=n==null?r.key:String(n)+String(r.key!=null?r.key:s);r.type===ft?(r.patchFlag&128&&o++,i=i.concat(s1(r.children,t,a))):(t||r.type!==Pi)&&i.push(a!=null?Tr(r,{key:a}):r)}if(o>1)for(let s=0;s<i.length;s++)i[s].patchFlag=-2;return i}/*! #__NO_SIDE_EFFECTS__ */function se(e,t){return an(e)?(()=>si({name:e.name},t,{setup:e}))():e}function Kz(){const e=Vn();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function wT(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $S(e){const t=Vn(),n=Gp(null);if(t){const o=t.refs===Tn?t.refs={}:t.refs;Object.defineProperty(o,e,{enumerable:!0,get:()=>n.value,set:s=>n.value=s})}return n}function Dk(e,t,n,i,o=!1){if(en(e)){e.forEach((_,A)=>Dk(_,t&&(en(t)?t[A]:t),n,i,o));return}if(Zc(i)&&!o)return;const s=i.shapeFlag&4?c1(i.component):i.el,r=o?null:s,{i:a,r:u}=e,c=t&&t.r,l=a.refs===Tn?a.refs={}:a.refs,g=a.setupState,C=An(g),S=g===Tn?()=>!1:_=>Hn(C,_);if(c!=null&&c!==u&&(di(c)?(l[c]=null,S(c)&&(g[c]=null)):oi(c)&&(c.value=null)),an(u))af(u,a,12,[r,l]);else{const _=di(u),A=oi(u);if(_||A){const y=()=>{if(e.f){const d=_?S(u)?g[u]:l[u]:u.value;o?en(d)&&hT(d,s):en(d)?d.includes(s)||d.push(s):_?(l[u]=[s],S(u)&&(g[u]=l[u])):(u.value=[s],e.k&&(l[e.k]=u.value))}else _?(l[u]=r,S(u)&&(g[u]=r)):A&&(u.value=r,e.k&&(l[e.k]=r))};r?(y.id=-1,gr(y,n)):y()}}}let n6=!1;const If=()=>{n6||(console.error("Hydration completed but contains mismatches."),n6=!0)},OQ=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",LQ=e=>e.namespaceURI.includes("MathML"),vy=e=>{if(e.nodeType===1){if(OQ(e))return"svg";if(LQ(e))return"mathml"}},Bf=e=>e.nodeType===8;function DQ(e){const{mt:t,p:n,o:{patchProp:i,createText:o,nextSibling:s,parentNode:r,remove:a,insert:u,createComment:c}}=e,l=(m,f)=>{if(!f.hasChildNodes()){n(null,m,f),Lk(),f._vnode=m;return}g(f.firstChild,m,null,null,null),Lk(),f._vnode=m},g=(m,f,p,h,b,w=!1)=>{w=w||!!f.dynamicChildren;const k=Bf(m)&&m.data==="[",$=()=>A(m,f,p,h,b,k),{type:E,ref:N,shapeFlag:j,patchFlag:z}=f;let V=m.nodeType;f.el=m,z===-2&&(w=!1,f.dynamicChildren=null);let W=null;switch(E){case xa:V!==3?f.children===""?(u(f.el=o(""),r(m),m),W=m):W=$():(m.data!==f.children&&(If(),m.data=f.children),W=s(m));break;case Pi:v(m)?(W=s(m),d(f.el=m.content.firstChild,m,p)):V!==8||k?W=$():W=s(m);break;case Gc:if(k&&(m=s(m),V=m.nodeType),V===1||V===3){W=m;const H=!f.children.length;for(let U=0;U<f.staticCount;U++)H&&(f.children+=W.nodeType===1?W.outerHTML:W.data),U===f.staticCount-1&&(f.anchor=W),W=s(W);return k?s(W):W}else $();break;case ft:k?W=_(m,f,p,h,b,w):W=$();break;default:if(j&1)(V!==1||f.type.toLowerCase()!==m.tagName.toLowerCase())&&!v(m)?W=$():W=C(m,f,p,h,b,w);else if(j&6){f.slotScopeIds=b;const H=r(m);if(k?W=y(m):Bf(m)&&m.data==="teleport start"?W=y(m,m.data,"teleport end"):W=s(m),t(f,H,null,p,h,vy(H),w),Zc(f)){let U;k?(U=O(ft),U.anchor=W?W.previousSibling:H.lastChild):U=m.nodeType===3?pt(""):O("div"),U.el=m,f.component.subTree=U}}else j&64?V!==8?W=$():W=f.type.hydrate(m,f,p,h,b,w,e,S):j&128&&(W=f.type.hydrate(m,f,p,h,vy(r(m)),b,w,e,g))}return N!=null&&Dk(N,null,h,f),W},C=(m,f,p,h,b,w)=>{w=w||!!f.dynamicChildren;const{type:k,props:$,patchFlag:E,shapeFlag:N,dirs:j,transition:z}=f,V=k==="input"||k==="option";if(V||E!==-1){j&&ta(f,null,p,"created");let W=!1;if(v(m)){W=PR(null,z)&&p&&p.vnode.props&&p.vnode.props.appear;const U=m.content.firstChild;W&&z.beforeEnter(U),d(U,m,p),f.el=m=U}if(N&16&&!($&&($.innerHTML||$.textContent))){let U=S(m.firstChild,f,m,p,h,b,w);for(;U;){gy(m,1)||If();const Q=U;U=U.nextSibling,a(Q)}}else if(N&8){let U=f.children;U[0]===`
  14. `&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(U=U.slice(1)),m.textContent!==U&&(gy(m,0)||If(),m.textContent=f.children)}if($){if(V||!w||E&48){const U=m.tagName.includes("-");for(const Q in $)(V&&(Q.endsWith("value")||Q==="indeterminate")||e1(Q)&&!Yf(Q)||Q[0]==="."||U)&&i(m,Q,null,$[Q],void 0,p)}else if($.onClick)i(m,"onClick",null,$.onClick,void 0,p);else if(E&4&&Bs($.style))for(const U in $.style)$.style[U]}let H;(H=$&&$.onVnodeBeforeMount)&&ko(H,p,f),j&&ta(f,null,p,"beforeMount"),((H=$&&$.onVnodeMounted)||j||W)&&BR(()=>{H&&ko(H,p,f),W&&z.enter(m),j&&ta(f,null,p,"mounted")},h)}return m.nextSibling},S=(m,f,p,h,b,w,k)=>{k=k||!!f.dynamicChildren;const $=f.children,E=$.length;for(let N=0;N<E;N++){const j=k?$[N]:$[N]=So($[N]),z=j.type===xa;m?(z&&!k&&N+1<E&&So($[N+1]).type===xa&&(u(o(m.data.slice(j.children.length)),p,s(m)),m.data=j.children),m=g(m,j,h,b,w,k)):z&&!j.children?u(j.el=o(""),p):(gy(p,1)||If(),n(null,j,p,null,h,b,vy(p),w))}return m},_=(m,f,p,h,b,w)=>{const{slotScopeIds:k}=f;k&&(b=b?b.concat(k):k);const $=r(m),E=S(s(m),f,$,p,h,b,w);return E&&Bf(E)&&E.data==="]"?s(f.anchor=E):(If(),u(f.anchor=c("]"),$,E),E)},A=(m,f,p,h,b,w)=>{if(gy(m.parentElement,1)||If(),f.el=null,w){const E=y(m);for(;;){const N=s(m);if(N&&N!==E)a(N);else break}}const k=s(m),$=r(m);return a(m),n(null,f,$,k,p,h,vy($),b),k},y=(m,f="[",p="]")=>{let h=0;for(;m;)if(m=s(m),m&&Bf(m)&&(m.data===f&&h++,m.data===p)){if(h===0)return s(m);h--}return m},d=(m,f,p)=>{const h=f.parentNode;h&&h.replaceChild(m,f);let b=p;for(;b;)b.vnode.el===f&&(b.vnode.el=b.subTree.el=m),b=b.parent},v=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[l,g]}const i6="data-allow-mismatch",NQ={[0]:"text",[1]:"children",[2]:"class",[3]:"style",[4]:"attribute"};function gy(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(i6);)e=e.parentElement;const n=e&&e.getAttribute(i6);if(n==null)return!1;if(n==="")return!0;{const i=n.split(",");return t===0&&i.includes("children")?!0:n.split(",").includes(NQ[t])}}const jQ=pS().requestIdleCallback||(e=>setTimeout(e,1)),zQ=pS().cancelIdleCallback||(e=>clearTimeout(e)),Jz=(e=1e4)=>t=>{const n=jQ(t,{timeout:e});return()=>zQ(n)};function RQ(e){const{top:t,left:n,bottom:i,right:o}=e.getBoundingClientRect(),{innerHeight:s,innerWidth:r}=window;return(t>0&&t<s||i>0&&i<s)&&(n>0&&n<r||o>0&&o<r)}const qz=e=>(t,n)=>{const i=new IntersectionObserver(o=>{for(const s of o)if(s.isIntersecting){i.disconnect(),t();break}},e);return n(o=>{if(o instanceof Element){if(RQ(o))return t(),i.disconnect(),!1;i.observe(o)}}),()=>i.disconnect()},Qz=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},eR=(e=[])=>(t,n)=>{di(e)&&(e=[e]);let i=!1;const o=r=>{i||(i=!0,s(),t(),r.target.dispatchEvent(new r.constructor(r.type,r)))},s=()=>{n(r=>{for(const a of e)r.removeEventListener(a,o)})};return n(r=>{for(const a of e)r.addEventListener(a,o,{once:!0})}),s};function BQ(e,t){if(Bf(e)&&e.data==="["){let n=1,i=e.nextSibling;for(;i;){if(i.nodeType===1){if(t(i)===!1)break}else if(Bf(i))if(i.data==="]"){if(--n===0)break}else i.data==="["&&n++;i=i.nextSibling}}else t(e)}const Zc=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function tR(e){an(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:o=200,hydrate:s,timeout:r,suspensible:a=!0,onError:u}=e;let c=null,l,g=0;const C=()=>(g++,c=null,S()),S=()=>{let _;return c||(_=c=t().catch(A=>{if(A=A instanceof Error?A:new Error(String(A)),u)return new Promise((y,d)=>{u(A,()=>y(C()),()=>d(A),g+1)});throw A}).then(A=>_!==c&&c?c:(A&&(A.__esModule||A[Symbol.toStringTag]==="Module")&&(A=A.default),l=A,A)))};return se({name:"AsyncComponentWrapper",__asyncLoader:S,__asyncHydrate(_,A,y){const d=s?()=>{const v=s(y,m=>BQ(_,m));v&&(A.bum||(A.bum=[])).push(v)}:y;l?d():S().then(()=>!A.isUnmounted&&d())},get __asyncResolved(){return l},setup(){const _=rr;if(wT(_),l)return()=>n_(l,_);const A=m=>{c=null,iu(m,_,13,!i)};if(a&&_.suspense||Op)return S().then(m=>()=>n_(m,_)).catch(m=>(A(m),()=>i?O(i,{error:m}):null));const y=he(!1),d=he(),v=he(!!o);return o&&setTimeout(()=>{v.value=!1},o),r!=null&&setTimeout(()=>{if(!y.value&&!d.value){const m=new Error(`Async component timed out after ${r}ms.`);A(m),d.value=m}},r),S().then(()=>{y.value=!0,_.parent&&a1(_.parent.vnode)&&_.parent.update()}).catch(m=>{A(m),d.value=m}),()=>{if(y.value&&l)return n_(l,_);if(d.value&&i)return O(i,{error:d.value});if(n&&!v.value)return O(n)}}})}function n_(e,t){const{ref:n,props:i,children:o,ce:s}=t.vnode,r=O(e,i,o);return r.ref=n,r.ce=s,delete t.vnode.ce,r}const a1=e=>e.type.__isKeepAlive,FQ={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Vn(),i=n.ctx;if(!i.renderer)return()=>{const v=t.default&&t.default();return v&&v.length===1?v[0]:v};const o=new Map,s=new Set;let r=null;const a=n.suspense,{renderer:{p:u,m:c,um:l,o:{createElement:g}}}=i,C=g("div");i.activate=(v,m,f,p,h)=>{const b=v.component;c(v,m,f,0,a),u(b.vnode,v,m,f,b,a,p,v.slotScopeIds,h),gr(()=>{b.isDeactivated=!1,b.a&&Kf(b.a);const w=v.props&&v.props.onVnodeMounted;w&&ko(w,b.parent,v)},a)},i.deactivate=v=>{const m=v.component;jk(m.m),jk(m.a),c(v,C,null,1,a),gr(()=>{m.da&&Kf(m.da);const f=v.props&&v.props.onVnodeUnmounted;f&&ko(f,m.parent,v),m.isDeactivated=!0},a)};function S(v){i_(v),l(v,n,a,!0)}function _(v){o.forEach((m,f)=>{const p=XA(m.type);p&&!v(p)&&A(f)})}function A(v){const m=o.get(v);m&&(!r||!Ns(m,r))?S(m):r&&i_(r),o.delete(v),s.delete(v)}gt(()=>[e.include,e.exclude],([v,m])=>{v&&_(f=>Tm(v,f)),m&&_(f=>!Tm(m,f))},{flush:"post",deep:!0});let y=null;const d=()=>{y!=null&&(zk(n.subTree.type)?gr(()=>{o.set(y,yy(n.subTree))},n.subTree.suspense):o.set(y,yy(n.subTree)))};return Yt(d),Bi(d),ei(()=>{o.forEach(v=>{const{subTree:m,suspense:f}=n,p=yy(m);if(v.type===p.type&&v.key===p.key){i_(p);const h=p.component.da;h&&gr(h,f);return}S(v)})}),()=>{if(y=null,!t.default)return r=null;const v=t.default(),m=v[0];if(v.length>1)return r=null,v;if(!On(m)||!(m.shapeFlag&4)&&!(m.shapeFlag&128))return r=null,m;let f=yy(m);if(f.type===Pi)return r=null,f;const p=f.type,h=XA(Zc(f)?f.type.__asyncResolved||{}:p),{include:b,exclude:w,max:k}=e;if(b&&(!h||!Tm(b,h))||w&&h&&Tm(w,h))return f.shapeFlag&=-257,r=f,m;const $=f.key==null?p:f.key,E=o.get($);return f.el&&(f=Tr(f),m.shapeFlag&128&&(m.ssContent=f)),y=$,E?(f.el=E.el,f.component=E.component,f.transition&&Aa(f,f.transition),f.shapeFlag|=512,s.delete($),s.add($)):(s.add($),k&&s.size>parseInt(k,10)&&A(s.values().next().value)),f.shapeFlag|=256,r=f,zk(m.type)?m:f}}},nR=FQ;function Tm(e,t){return en(e)?e.some(n=>Tm(n,t)):di(e)?e.split(",").includes(t):zq(e)?(e.lastIndex=0,e.test(t)):!1}function _T(e,t){iR(e,"a",t)}function AS(e,t){iR(e,"da",t)}function iR(e,t,n=rr){const i=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ES(t,i,n),n){let o=n.parent;for(;o&&o.parent;)a1(o.parent.vnode)&&VQ(i,t,n,o),o=o.parent}}function VQ(e,t,n,i){const o=ES(t,e,i,!0);$i(()=>{hT(i[t],o)},n)}function i_(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function yy(e){return e.shapeFlag&128?e.ssContent:e}function ES(e,t,n=rr,i=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{tu();const a=Xd(n),u=Ho(t,n,e,r);return a(),nu(),u});return i?o.unshift(s):o.push(s),s}}const Dl=e=>(t,n=rr)=>{(!Op||e==="sp")&&ES(e,(...i)=>t(...i),n)},MS=Dl("bm"),Yt=Dl("m"),TS=Dl("bu"),Bi=Dl("u"),ei=Dl("bum"),$i=Dl("um"),IT=Dl("sp"),xT=Dl("rtg"),$T=Dl("rtc");function AT(e,t=rr){ES("ec",e,t)}const ET="components",HQ="directives";function Pe(e,t){return MT(ET,e,!0,t)||e}const rR=Symbol.for("v-ndc");function Zr(e){return di(e)?MT(ET,e,!1)||e:e||rR}function PS(e){return MT(HQ,e)}function MT(e,t,n=!0,i=!1){const o=ar||rr;if(o){const s=o.type;if(e===ET){const a=XA(s,!1);if(a&&(a===t||a===br(t)||a===Zp(br(t))))return s}const r=r6(o[e]||s[e],t)||r6(o.appContext[e],t);return!r&&i?s:r}}function r6(e,t){return e&&(e[t]||e[br(t)]||e[Zp(br(t))])}function dn(e,t,n,i){let o;const s=n&&n[i],r=en(e);if(r||di(e)){const a=r&&Bs(e);let u=!1;a&&(u=!Io(e),e=bS(e)),o=new Array(e.length);for(let c=0,l=e.length;c<l;c++)o[c]=t(u?Hr(e[c]):e[c],c,void 0,s&&s[c])}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,s&&s[a])}else if(ni(e))if(e[Symbol.iterator])o=Array.from(e,(a,u)=>t(a,u,void 0,s&&s[u]));else{const a=Object.keys(e);o=new Array(a.length);for(let u=0,c=a.length;u<c;u++){const l=a[u];o[u]=t(e[l],l,u,s&&s[u])}}else o=[];return n&&(n[i]=o),o}function ti(e,t){for(let n=0;n<t.length;n++){const i=t[n];if(en(i))for(let o=0;o<i.length;o++)e[i[o].name]=i[o].fn;else i&&(e[i.name]=i.key?(...o)=>{const s=i.fn(...o);return s&&(s.key=i.key),s}:i.fn)}return e}function He(e,t,n={},i,o){if(ar.ce||ar.parent&&Zc(ar.parent)&&ar.parent.ce)return t!=="default"&&(n.name=t),R(),We(ft,null,[O("slot",n,i&&i())],64);let s=e[t];s&&s._c&&(s._d=!1),R();const r=s&&TT(s(n)),a=n.key||r&&r.key,u=We(ft,{key:(a&&!Hs(a)?a:`_${t}`)+(!r&&i?"_fb":"")},r||(i?i():[]),r&&e._===1?64:-2);return!o&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),s&&s._c&&(s._d=!0),u}function TT(e){return e.some(t=>On(t)?!(t.type===Pi||t.type===ft&&!TT(t.children)):!0)?e:null}function oR(e,t){const n={};for(const i in e)n[t&&/[A-Z]/.test(i)?`on:${i}`:Xf(i)]=e[i];return n}const RA=e=>e?ZR(e)?c1(e):RA(e.parent):null,ov=si(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>RA(e.parent),$root:e=>RA(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>PT(e),$forceUpdate:e=>e.f||(e.f=()=>{CT(e.update)}),$nextTick:e=>e.n||(e.n=fn.bind(e.proxy)),$watch:e=>oee.bind(e)}),r_=(e,t)=>e!==Tn&&!e.__isScriptSetup&&Hn(e,t),BA={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:o,props:s,accessCache:r,type:a,appContext:u}=e;let c;if(t[0]!=="$"){const S=r[t];if(S!==void 0)switch(S){case 1:return i[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(r_(i,t))return r[t]=1,i[t];if(o!==Tn&&Hn(o,t))return r[t]=2,o[t];if((c=e.propsOptions[0])&&Hn(c,t))return r[t]=3,s[t];if(n!==Tn&&Hn(n,t))return r[t]=4,n[t];FA&&(r[t]=0)}}const l=ov[t];let g,C;if(l)return t==="$attrs"&&Vr(e.attrs,"get",""),l(e);if((g=a.__cssModules)&&(g=g[t]))return g;if(n!==Tn&&Hn(n,t))return r[t]=4,n[t];if(C=u.config.globalProperties,Hn(C,t))return C[t]},set({_:e},t,n){const{data:i,setupState:o,ctx:s}=e;return r_(o,t)?(o[t]=n,!0):i!==Tn&&Hn(i,t)?(i[t]=n,!0):Hn(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,propsOptions:s}},r){let a;return!!n[r]||e!==Tn&&Hn(e,r)||r_(t,r)||(a=s[0])&&Hn(a,r)||Hn(i,r)||Hn(ov,r)||Hn(o.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Hn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},WQ=si({},BA,{get(e,t){if(t!==Symbol.unscopables)return BA.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Hq(t)}});function sR(){return null}function aR(){return null}function lR(e){}function cR(e){}function uR(){return null}function dR(){}function fR(e,t){return null}function hR(){return mR().slots}function pR(){return mR().attrs}function mR(){const e=Vn();return e.setupContext||(e.setupContext=JR(e))}function Lv(e){return en(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function vR(e,t){const n=Lv(e);for(const i in t){if(i.startsWith("__skip"))continue;let o=n[i];o?en(o)||an(o)?o=n[i]={type:o,default:t[i]}:o.default=t[i]:o===null&&(o=n[i]={default:t[i]}),o&&t[`__skip_${i}`]&&(o.skipFactory=!0)}return n}function gR(e,t){return!e||!t?e||t:en(e)&&en(t)?e.concat(t):si({},Lv(e),Lv(t))}function yR(e,t){const n={};for(const i in e)t.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>e[i]});return n}function bR(e){const t=Vn();let n=e();return ZA(),pT(n)&&(n=n.catch(i=>{throw Xd(t),i})),[n,()=>Xd(t)]}let FA=!0;function UQ(e){const t=PT(e),n=e.proxy,i=e.ctx;FA=!1,t.beforeCreate&&o6(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:r,watch:a,provide:u,inject:c,created:l,beforeMount:g,mounted:C,beforeUpdate:S,updated:_,activated:A,deactivated:y,beforeDestroy:d,beforeUnmount:v,destroyed:m,unmounted:f,render:p,renderTracked:h,renderTriggered:b,errorCaptured:w,serverPrefetch:k,expose:$,inheritAttrs:E,components:N,directives:j,filters:z}=t;if(c&&ZQ(c,i,null),r)for(const H in r){const U=r[H];an(U)&&(i[H]=U.bind(n))}if(o){const H=o.call(n,n);ni(H)&&(e.data=it(H))}if(FA=!0,s)for(const H in s){const U=s[H],Q=an(U)?U.bind(n,n):an(U.get)?U.get.bind(n,n):ss,q=!an(U)&&an(U.set)?U.set.bind(n):ss,ae=P({get:Q,set:q});Object.defineProperty(i,H,{enumerable:!0,configurable:!0,get:()=>ae.value,set:ne=>ae.value=ne})}if(a)for(const H in a)kR(a[H],i,n,H);if(u){const H=an(u)?u.call(n):u;Reflect.ownKeys(H).forEach(U=>{cn(U,H[U])})}l&&o6(l,e,"c");function W(H,U){en(U)?U.forEach(Q=>H(Q.bind(n))):U&&H(U.bind(n))}if(W(MS,g),W(Yt,C),W(TS,S),W(Bi,_),W(_T,A),W(AS,y),W(AT,w),W($T,h),W(xT,b),W(ei,v),W($i,f),W(IT,k),en($))if($.length){const H=e.exposed||(e.exposed={});$.forEach(U=>{Object.defineProperty(H,U,{get:()=>n[U],set:Q=>n[U]=Q})})}else e.exposed||(e.exposed={});p&&e.render===ss&&(e.render=p),E!=null&&(e.inheritAttrs=E),N&&(e.components=N),j&&(e.directives=j),k&&wT(e)}function ZQ(e,t,n=ss){en(e)&&(e=VA(e));for(const i in e){const o=e[i];let s;ni(o)?"default"in o?s=Dt(o.from||i,o.default,!0):s=Dt(o.from||i):s=Dt(o),oi(s)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>s.value,set:r=>s.value=r}):t[i]=s}}function o6(e,t,n){Ho(en(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function kR(e,t,n,i){let o=i.includes(".")?LR(n,i):()=>n[i];if(di(e)){const s=t[e];an(s)&&gt(o,s)}else if(an(e))gt(o,e.bind(n));else if(ni(e))if(en(e))e.forEach(s=>kR(s,t,n,i));else{const s=an(e.handler)?e.handler.bind(n):t[e.handler];an(s)&&gt(o,s,e)}}function PT(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:r}}=e.appContext,a=s.get(t);let u;return a?u=a:!o.length&&!n&&!i?u=t:(u={},o.length&&o.forEach(c=>Nk(u,c,r,!0)),Nk(u,t,r)),ni(t)&&s.set(t,u),u}function Nk(e,t,n,i=!1){const{mixins:o,extends:s}=t;s&&Nk(e,s,n,!0),o&&o.forEach(r=>Nk(e,r,n,!0));for(const r in t)if(!(i&&r==="expose")){const a=GQ[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const GQ={data:s6,props:a6,emits:a6,methods:Pm,computed:Pm,beforeCreate:Jr,created:Jr,beforeMount:Jr,mounted:Jr,beforeUpdate:Jr,updated:Jr,beforeDestroy:Jr,beforeUnmount:Jr,destroyed:Jr,unmounted:Jr,activated:Jr,deactivated:Jr,errorCaptured:Jr,serverPrefetch:Jr,components:Pm,directives:Pm,watch:XQ,provide:s6,inject:YQ};function s6(e,t){return t?e?function(){return si(an(e)?e.call(this,this):e,an(t)?t.call(this,this):t)}:t:e}function YQ(e,t){return Pm(VA(e),VA(t))}function VA(e){if(en(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Jr(e,t){return e?[...new Set([].concat(e,t))]:t}function Pm(e,t){return e?si(Object.create(null),e,t):t}function a6(e,t){return e?en(e)&&en(t)?[...new Set([...e,...t])]:si(Object.create(null),Lv(e),Lv(t??{})):t}function XQ(e,t){if(!e)return t;if(!t)return e;const n=si(Object.create(null),e);for(const i in t)n[i]=Jr(e[i],t[i]);return n}function CR(){return{app:null,config:{isNativeTag:Nq,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let KQ=0;function JQ(e,t){return function(i,o=null){an(i)||(i=si({},i)),o!=null&&!ni(o)&&(o=null);const s=CR(),r=new WeakSet,a=[];let u=!1;const c=s.app={_uid:KQ++,_component:i,_props:o,_container:null,_context:s,_instance:null,version:UT,get config(){return s.config},set config(l){},use(l,...g){return r.has(l)||(l&&an(l.install)?(r.add(l),l.install(c,...g)):an(l)&&(r.add(l),l(c,...g))),c},mixin(l){return s.mixins.includes(l)||s.mixins.push(l),c},component(l,g){return g?(s.components[l]=g,c):s.components[l]},directive(l,g){return g?(s.directives[l]=g,c):s.directives[l]},mount(l,g,C){if(!u){const S=c._ceVNode||O(i,o);return S.appContext=s,C===!0?C="svg":C===!1&&(C=void 0),g&&t?t(S,l):e(S,l,C),u=!0,c._container=l,l.__vue_app__=c,c1(S.component)}},onUnmount(l){a.push(l)},unmount(){u&&(Ho(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(l,g){return s.provides[l]=g,c},runWithContext(l){const g=Bd;Bd=c;try{return l()}finally{Bd=g}}};return c}}let Bd=null;function cn(e,t){if(rr){let n=rr.provides;const i=rr.parent&&rr.parent.provides;i===n&&(n=rr.provides=Object.create(i)),n[e]=t}}function Dt(e,t,n=!1){const i=rr||ar;if(i||Bd){const o=Bd?Bd._context.provides:i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&an(t)?t.call(i&&i.proxy):t}}function OT(){return!!(rr||ar||Bd)}const SR={},wR=()=>Object.create(SR),_R=e=>Object.getPrototypeOf(e)===SR;function qQ(e,t,n,i=!1){const o={},s=wR();e.propsDefaults=Object.create(null),IR(e,t,o,s);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=i?o:CS(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function QQ(e,t,n,i){const{props:o,attrs:s,vnode:{patchFlag:r}}=e,a=An(o),[u]=e.propsOptions;let c=!1;if((i||r>0)&&!(r&16)){if(r&8){const l=e.vnode.dynamicProps;for(let g=0;g<l.length;g++){let C=l[g];if(OS(e.emitsOptions,C))continue;const S=t[C];if(u)if(Hn(s,C))S!==s[C]&&(s[C]=S,c=!0);else{const _=br(C);o[_]=HA(u,a,_,S,e,!1)}else S!==s[C]&&(s[C]=S,c=!0)}}}else{IR(e,t,o,s)&&(c=!0);let l;for(const g in a)(!t||!Hn(t,g)&&((l=wo(g))===g||!Hn(t,l)))&&(u?n&&(n[g]!==void 0||n[l]!==void 0)&&(o[g]=HA(u,a,g,void 0,e,!0)):delete o[g]);if(s!==a)for(const g in s)(!t||!Hn(t,g))&&(delete s[g],c=!0)}c&&Cl(e.attrs,"set","")}function IR(e,t,n,i){const[o,s]=e.propsOptions;let r=!1,a;if(t)for(let u in t){if(Yf(u))continue;const c=t[u];let l;o&&Hn(o,l=br(u))?!s||!s.includes(l)?n[l]=c:(a||(a={}))[l]=c:OS(e.emitsOptions,u)||(!(u in i)||c!==i[u])&&(i[u]=c,r=!0)}if(s){const u=An(n),c=a||Tn;for(let l=0;l<s.length;l++){const g=s[l];n[g]=HA(o,u,g,c[g],e,!Hn(c,g))}}return r}function HA(e,t,n,i,o,s){const r=e[n];if(r!=null){const a=Hn(r,"default");if(a&&i===void 0){const u=r.default;if(r.type!==Function&&!r.skipFactory&&an(u)){const{propsDefaults:c}=o;if(n in c)i=c[n];else{const l=Xd(o);i=c[n]=u.call(null,t),l()}}else i=u;o.ce&&o.ce._setProp(n,i)}r[0]&&(s&&!a?i=!1:r[1]&&(i===""||i===wo(n))&&(i=!0))}return i}const eee=new WeakMap;function xR(e,t,n=!1){const i=n?eee:t.propsCache,o=i.get(e);if(o)return o;const s=e.props,r={},a=[];let u=!1;if(!an(e)){const l=g=>{u=!0;const[C,S]=xR(g,t,!0);si(r,C),S&&a.push(...S)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!s&&!u)return ni(e)&&i.set(e,Zf),Zf;if(en(s))for(let l=0;l<s.length;l++){const g=br(s[l]);l6(g)&&(r[g]=Tn)}else if(s)for(const l in s){const g=br(l);if(l6(g)){const C=s[l],S=r[g]=en(C)||an(C)?{type:C}:si({},C),_=S.type;let A=!1,y=!0;if(en(_))for(let d=0;d<_.length;++d){const v=_[d],m=an(v)&&v.name;if(m==="Boolean"){A=!0;break}else m==="String"&&(y=!1)}else A=an(_)&&_.name==="Boolean";S[0]=A,S[1]=y,(A||Hn(S,"default"))&&a.push(g)}}const c=[r,a];return ni(e)&&i.set(e,c),c}function l6(e){return e[0]!=="$"&&!Yf(e)}const $R=e=>e[0]==="_"||e==="$stable",LT=e=>en(e)?e.map(So):[So(e)],tee=(e,t,n)=>{if(t._n)return t;const i=Ve((...o)=>LT(t(...o)),n);return i._c=!1,i},AR=(e,t,n)=>{const i=e._ctx;for(const o in e){if($R(o))continue;const s=e[o];if(an(s))t[o]=tee(o,s,i);else if(s!=null){const r=LT(s);t[o]=()=>r}}},ER=(e,t)=>{const n=LT(t);e.slots.default=()=>n},MR=(e,t,n)=>{for(const i in t)(n||i!=="_")&&(e[i]=t[i])},nee=(e,t,n)=>{const i=e.slots=wR();if(e.vnode.shapeFlag&32){const o=t._;o?(MR(i,t,n),n&&oz(i,"_",o,!0)):AR(t,i)}else t&&ER(e,t)},iee=(e,t,n)=>{const{vnode:i,slots:o}=e;let s=!0,r=Tn;if(i.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:MR(o,t,n):(s=!t.$stable,AR(t,o)),r=t}else t&&(ER(e,t),r={default:1});if(s)for(const a in o)!$R(a)&&r[a]==null&&delete o[a]},gr=BR;function DT(e){return TR(e)}function NT(e){return TR(e,DQ)}function TR(e,t){const n=pS();n.__VUE__=!0;const{insert:i,remove:o,patchProp:s,createElement:r,createText:a,createComment:u,setText:c,setElementText:l,parentNode:g,nextSibling:C,setScopeId:S=ss,insertStaticContent:_}=e,A=(Y,Z,ee,ce=null,xe=null,re=null,le=void 0,ve=null,De=!!Z.dynamicChildren)=>{if(Y===Z)return;Y&&!Ns(Y,Z)&&(ce=Me(Y),ne(Y,xe,re,!0),Y=null),Z.patchFlag===-2&&(De=!1,Z.dynamicChildren=null);const{type:Ee,ref:we,shapeFlag:me}=Z;switch(Ee){case xa:y(Y,Z,ee,ce);break;case Pi:d(Y,Z,ee,ce);break;case Gc:Y==null&&v(Z,ee,ce,le);break;case ft:N(Y,Z,ee,ce,xe,re,le,ve,De);break;default:me&1?p(Y,Z,ee,ce,xe,re,le,ve,De):me&6?j(Y,Z,ee,ce,xe,re,le,ve,De):(me&64||me&128)&&Ee.process(Y,Z,ee,ce,xe,re,le,ve,De,fe)}we!=null&&xe&&Dk(we,Y&&Y.ref,re,Z||Y,!Z)},y=(Y,Z,ee,ce)=>{if(Y==null)i(Z.el=a(Z.children),ee,ce);else{const xe=Z.el=Y.el;Z.children!==Y.children&&c(xe,Z.children)}},d=(Y,Z,ee,ce)=>{Y==null?i(Z.el=u(Z.children||""),ee,ce):Z.el=Y.el},v=(Y,Z,ee,ce)=>{[Y.el,Y.anchor]=_(Y.children,Z,ee,ce,Y.el,Y.anchor)},m=({el:Y,anchor:Z},ee,ce)=>{let xe;for(;Y&&Y!==Z;)xe=C(Y),i(Y,ee,ce),Y=xe;i(Z,ee,ce)},f=({el:Y,anchor:Z})=>{let ee;for(;Y&&Y!==Z;)ee=C(Y),o(Y),Y=ee;o(Z)},p=(Y,Z,ee,ce,xe,re,le,ve,De)=>{Z.type==="svg"?le="svg":Z.type==="math"&&(le="mathml"),Y==null?h(Z,ee,ce,xe,re,le,ve,De):k(Y,Z,xe,re,le,ve,De)},h=(Y,Z,ee,ce,xe,re,le,ve)=>{let De,Ee;const{props:we,shapeFlag:me,transition:Ae,dirs:Fe}=Y;if(De=Y.el=r(Y.type,re,we&&we.is,we),me&8?l(De,Y.children):me&16&&w(Y.children,De,null,ce,xe,o_(Y,re),le,ve),Fe&&ta(Y,null,ce,"created"),b(De,Y,Y.scopeId,le,ce),we){for(const ze in we)ze!=="value"&&!Yf(ze)&&s(De,ze,null,we[ze],re,ce);"value"in we&&s(De,"value",null,we.value,re),(Ee=we.onVnodeBeforeMount)&&ko(Ee,ce,Y)}Fe&&ta(Y,null,ce,"beforeMount");const Ne=PR(xe,Ae);Ne&&Ae.beforeEnter(De),i(De,Z,ee),((Ee=we&&we.onVnodeMounted)||Ne||Fe)&&gr(()=>{Ee&&ko(Ee,ce,Y),Ne&&Ae.enter(De),Fe&&ta(Y,null,ce,"mounted")},xe)},b=(Y,Z,ee,ce,xe)=>{if(ee&&S(Y,ee),ce)for(let re=0;re<ce.length;re++)S(Y,ce[re]);if(xe){let re=xe.subTree;if(Z===re||zk(re.type)&&(re.ssContent===Z||re.ssFallback===Z)){const le=xe.vnode;b(Y,le,le.scopeId,le.slotScopeIds,xe.parent)}}},w=(Y,Z,ee,ce,xe,re,le,ve,De=0)=>{for(let Ee=De;Ee<Y.length;Ee++){const we=Y[Ee]=ve?oc(Y[Ee]):So(Y[Ee]);A(null,we,Z,ee,ce,xe,re,le,ve)}},k=(Y,Z,ee,ce,xe,re,le)=>{const ve=Z.el=Y.el;let{patchFlag:De,dynamicChildren:Ee,dirs:we}=Z;De|=Y.patchFlag&16;const me=Y.props||Tn,Ae=Z.props||Tn;let Fe;if(ee&&vu(ee,!1),(Fe=Ae.onVnodeBeforeUpdate)&&ko(Fe,ee,Z,Y),we&&ta(Z,Y,ee,"beforeUpdate"),ee&&vu(ee,!0),(me.innerHTML&&Ae.innerHTML==null||me.textContent&&Ae.textContent==null)&&l(ve,""),Ee?$(Y.dynamicChildren,Ee,ve,ee,ce,o_(Z,xe),re):le||U(Y,Z,ve,null,ee,ce,o_(Z,xe),re,!1),De>0){if(De&16)E(ve,me,Ae,ee,xe);else if(De&2&&me.class!==Ae.class&&s(ve,"class",null,Ae.class,xe),De&4&&s(ve,"style",me.style,Ae.style,xe),De&8){const Ne=Z.dynamicProps;for(let ze=0;ze<Ne.length;ze++){const Ue=Ne[ze],et=me[Ue],Xe=Ae[Ue];(Xe!==et||Ue==="value")&&s(ve,Ue,et,Xe,xe,ee)}}De&1&&Y.children!==Z.children&&l(ve,Z.children)}else!le&&Ee==null&&E(ve,me,Ae,ee,xe);((Fe=Ae.onVnodeUpdated)||we)&&gr(()=>{Fe&&ko(Fe,ee,Z,Y),we&&ta(Z,Y,ee,"updated")},ce)},$=(Y,Z,ee,ce,xe,re,le)=>{for(let ve=0;ve<Z.length;ve++){const De=Y[ve],Ee=Z[ve],we=De.el&&(De.type===ft||!Ns(De,Ee)||De.shapeFlag&70)?g(De.el):ee;A(De,Ee,we,null,ce,xe,re,le,!0)}},E=(Y,Z,ee,ce,xe)=>{if(Z!==ee){if(Z!==Tn)for(const re in Z)!Yf(re)&&!(re in ee)&&s(Y,re,Z[re],null,xe,ce);for(const re in ee){if(Yf(re))continue;const le=ee[re],ve=Z[re];le!==ve&&re!=="value"&&s(Y,re,ve,le,xe,ce)}"value"in ee&&s(Y,"value",Z.value,ee.value,xe)}},N=(Y,Z,ee,ce,xe,re,le,ve,De)=>{const Ee=Z.el=Y?Y.el:a(""),we=Z.anchor=Y?Y.anchor:a("");let{patchFlag:me,dynamicChildren:Ae,slotScopeIds:Fe}=Z;Fe&&(ve=ve?ve.concat(Fe):Fe),Y==null?(i(Ee,ee,ce),i(we,ee,ce),w(Z.children||[],ee,we,xe,re,le,ve,De)):me>0&&me&64&&Ae&&Y.dynamicChildren?($(Y.dynamicChildren,Ae,ee,xe,re,le,ve),(Z.key!=null||xe&&Z===xe.subTree)&&jT(Y,Z,!0)):U(Y,Z,ee,we,xe,re,le,ve,De)},j=(Y,Z,ee,ce,xe,re,le,ve,De)=>{Z.slotScopeIds=ve,Y==null?Z.shapeFlag&512?xe.ctx.activate(Z,ee,ce,le,De):z(Z,ee,ce,xe,re,le,De):V(Y,Z,De)},z=(Y,Z,ee,ce,xe,re,le)=>{const ve=Y.component=UR(Y,ce,xe);if(a1(Y)&&(ve.ctx.renderer=fe),GR(ve,!1,le),ve.asyncDep){if(xe&&xe.registerDep(ve,W,le),!Y.el){const De=ve.subTree=O(Pi);d(null,De,Z,ee)}}else W(ve,Y,Z,ee,xe,re,le)},V=(Y,Z,ee)=>{const ce=Z.component=Y.component;if(uee(Y,Z,ee))if(ce.asyncDep&&!ce.asyncResolved){H(ce,Z,ee);return}else ce.next=Z,ce.update();else Z.el=Y.el,ce.vnode=Z},W=(Y,Z,ee,ce,xe,re,le)=>{const ve=()=>{if(Y.isMounted){let{next:me,bu:Ae,u:Fe,parent:Ne,vnode:ze}=Y;{const Et=OR(Y);if(Et){me&&(me.el=ze.el,H(Y,me,le)),Et.asyncDep.then(()=>{Y.isUnmounted||ve()});return}}let Ue=me,et;vu(Y,!1),me?(me.el=ze.el,H(Y,me,le)):me=ze,Ae&&Kf(Ae),(et=me.props&&me.props.onVnodeBeforeUpdate)&&ko(et,Ne,me,ze),vu(Y,!0);const Xe=Vy(Y),yt=Y.subTree;Y.subTree=Xe,A(yt,Xe,g(yt.el),Me(yt),Y,xe,re),me.el=Xe.el,Ue===null&&VT(Y,Xe.el),Fe&&gr(Fe,xe),(et=me.props&&me.props.onVnodeUpdated)&&gr(()=>ko(et,Ne,me,ze),xe)}else{let me;const{el:Ae,props:Fe}=Z,{bm:Ne,m:ze,parent:Ue,root:et,type:Xe}=Y,yt=Zc(Z);if(vu(Y,!1),Ne&&Kf(Ne),!yt&&(me=Fe&&Fe.onVnodeBeforeMount)&&ko(me,Ue,Z),vu(Y,!0),Ae&&je){const Et=()=>{Y.subTree=Vy(Y),je(Ae,Y.subTree,Y,xe,null)};yt&&Xe.__asyncHydrate?Xe.__asyncHydrate(Ae,Y,Et):Et()}else{et.ce&&et.ce._injectChildStyle(Xe);const Et=Y.subTree=Vy(Y);A(null,Et,ee,ce,Y,xe,re),Z.el=Et.el}if(ze&&gr(ze,xe),!yt&&(me=Fe&&Fe.onVnodeMounted)){const Et=Z;gr(()=>ko(me,Ue,Et),xe)}(Z.shapeFlag&256||Ue&&Zc(Ue.vnode)&&Ue.vnode.shapeFlag&256)&&Y.a&&gr(Y.a,xe),Y.isMounted=!0,Z=ee=ce=null}};Y.scope.on();const De=Y.effect=new Pp(ve);Y.scope.off();const Ee=Y.update=De.run.bind(De),we=Y.job=De.runIfDirty.bind(De);we.i=Y,we.id=Y.uid,De.scheduler=()=>CT(we),vu(Y,!0),Ee()},H=(Y,Z,ee)=>{Z.component=Y;const ce=Y.vnode.props;Y.vnode=Z,Y.next=null,QQ(Y,Z.props,ce,ee),iee(Y,Z.children,ee),tu(),q8(Y),nu()},U=(Y,Z,ee,ce,xe,re,le,ve,De=!1)=>{const Ee=Y&&Y.children,we=Y?Y.shapeFlag:0,me=Z.children,{patchFlag:Ae,shapeFlag:Fe}=Z;if(Ae>0){if(Ae&128){q(Ee,me,ee,ce,xe,re,le,ve,De);return}else if(Ae&256){Q(Ee,me,ee,ce,xe,re,le,ve,De);return}}Fe&8?(we&16&&$e(Ee,xe,re),me!==Ee&&l(ee,me)):we&16?Fe&16?q(Ee,me,ee,ce,xe,re,le,ve,De):$e(Ee,xe,re,!0):(we&8&&l(ee,""),Fe&16&&w(me,ee,ce,xe,re,le,ve,De))},Q=(Y,Z,ee,ce,xe,re,le,ve,De)=>{Y=Y||Zf,Z=Z||Zf;const Ee=Y.length,we=Z.length,me=Math.min(Ee,we);let Ae;for(Ae=0;Ae<me;Ae++){const Fe=Z[Ae]=De?oc(Z[Ae]):So(Z[Ae]);A(Y[Ae],Fe,ee,null,xe,re,le,ve,De)}Ee>we?$e(Y,xe,re,!0,!1,me):w(Z,ee,ce,xe,re,le,ve,De,me)},q=(Y,Z,ee,ce,xe,re,le,ve,De)=>{let Ee=0;const we=Z.length;let me=Y.length-1,Ae=we-1;for(;Ee<=me&&Ee<=Ae;){const Fe=Y[Ee],Ne=Z[Ee]=De?oc(Z[Ee]):So(Z[Ee]);if(Ns(Fe,Ne))A(Fe,Ne,ee,null,xe,re,le,ve,De);else break;Ee++}for(;Ee<=me&&Ee<=Ae;){const Fe=Y[me],Ne=Z[Ae]=De?oc(Z[Ae]):So(Z[Ae]);if(Ns(Fe,Ne))A(Fe,Ne,ee,null,xe,re,le,ve,De);else break;me--,Ae--}if(Ee>me){if(Ee<=Ae){const Fe=Ae+1,Ne=Fe<we?Z[Fe].el:ce;for(;Ee<=Ae;)A(null,Z[Ee]=De?oc(Z[Ee]):So(Z[Ee]),ee,Ne,xe,re,le,ve,De),Ee++}}else if(Ee>Ae)for(;Ee<=me;)ne(Y[Ee],xe,re,!0),Ee++;else{const Fe=Ee,Ne=Ee,ze=new Map;for(Ee=Ne;Ee<=Ae;Ee++){const bt=Z[Ee]=De?oc(Z[Ee]):So(Z[Ee]);bt.key!=null&&ze.set(bt.key,Ee)}let Ue,et=0;const Xe=Ae-Ne+1;let yt=!1,Et=0;const nt=new Array(Xe);for(Ee=0;Ee<Xe;Ee++)nt[Ee]=0;for(Ee=Fe;Ee<=me;Ee++){const bt=Y[Ee];if(et>=Xe){ne(bt,xe,re,!0);continue}let It;if(bt.key!=null)It=ze.get(bt.key);else for(Ue=Ne;Ue<=Ae;Ue++)if(nt[Ue-Ne]===0&&Ns(bt,Z[Ue])){It=Ue;break}It===void 0?ne(bt,xe,re,!0):(nt[It-Ne]=Ee+1,It>=Et?Et=It:yt=!0,A(bt,Z[It],ee,null,xe,re,le,ve,De),et++)}const St=yt?ree(nt):Zf;for(Ue=St.length-1,Ee=Xe-1;Ee>=0;Ee--){const bt=Ne+Ee,It=Z[bt],Mt=bt+1<we?Z[bt+1].el:ce;nt[Ee]===0?A(null,It,ee,Mt,xe,re,le,ve,De):yt&&(Ue<0||Ee!==St[Ue]?ae(It,ee,Mt,2):Ue--)}}},ae=(Y,Z,ee,ce,xe=null)=>{const{el:re,type:le,transition:ve,children:De,shapeFlag:Ee}=Y;if(Ee&6){ae(Y.component.subTree,Z,ee,ce);return}if(Ee&128){Y.suspense.move(Z,ee,ce);return}if(Ee&64){le.move(Y,Z,ee,fe);return}if(le===ft){i(re,Z,ee);for(let me=0;me<De.length;me++)ae(De[me],Z,ee,ce);i(Y.anchor,Z,ee);return}if(le===Gc){m(Y,Z,ee);return}if(ce!==2&&Ee&1&&ve)if(ce===0)ve.beforeEnter(re),i(re,Z,ee),gr(()=>ve.enter(re),xe);else{const{leave:me,delayLeave:Ae,afterLeave:Fe}=ve,Ne=()=>i(re,Z,ee),ze=()=>{me(re,()=>{Ne(),Fe&&Fe()})};Ae?Ae(re,Ne,ze):ze()}else i(re,Z,ee)},ne=(Y,Z,ee,ce=!1,xe=!1)=>{const{type:re,props:le,ref:ve,children:De,dynamicChildren:Ee,shapeFlag:we,patchFlag:me,dirs:Ae,cacheIndex:Fe}=Y;if(me===-2&&(xe=!1),ve!=null&&Dk(ve,null,ee,Y,!0),Fe!=null&&(Z.renderCache[Fe]=void 0),we&256){Z.ctx.deactivate(Y);return}const Ne=we&1&&Ae,ze=!Zc(Y);let Ue;if(ze&&(Ue=le&&le.onVnodeBeforeUnmount)&&ko(Ue,Z,Y),we&6)Ie(Y.component,ee,ce);else{if(we&128){Y.suspense.unmount(ee,ce);return}Ne&&ta(Y,null,Z,"beforeUnmount"),we&64?Y.type.remove(Y,Z,ee,fe,ce):Ee&&!Ee.hasOnce&&(re!==ft||me>0&&me&64)?$e(Ee,Z,ee,!1,!0):(re===ft&&me&384||!xe&&we&16)&&$e(De,Z,ee),ce&&be(Y)}(ze&&(Ue=le&&le.onVnodeUnmounted)||Ne)&&gr(()=>{Ue&&ko(Ue,Z,Y),Ne&&ta(Y,null,Z,"unmounted")},ee)},be=Y=>{const{type:Z,el:ee,anchor:ce,transition:xe}=Y;if(Z===ft){te(ee,ce);return}if(Z===Gc){f(Y);return}const re=()=>{o(ee),xe&&!xe.persisted&&xe.afterLeave&&xe.afterLeave()};if(Y.shapeFlag&1&&xe&&!xe.persisted){const{leave:le,delayLeave:ve}=xe,De=()=>le(ee,re);ve?ve(Y.el,re,De):De()}else re()},te=(Y,Z)=>{let ee;for(;Y!==Z;)ee=C(Y),o(Y),Y=ee;o(Z)},Ie=(Y,Z,ee)=>{const{bum:ce,scope:xe,job:re,subTree:le,um:ve,m:De,a:Ee}=Y;jk(De),jk(Ee),ce&&Kf(ce),xe.stop(),re&&(re.flags|=8,ne(le,Y,Z,ee)),ve&&gr(ve,Z),gr(()=>{Y.isUnmounted=!0},Z),Z&&Z.pendingBranch&&!Z.isUnmounted&&Y.asyncDep&&!Y.asyncResolved&&Y.suspenseId===Z.pendingId&&(Z.deps--,Z.deps===0&&Z.resolve())},$e=(Y,Z,ee,ce=!1,xe=!1,re=0)=>{for(let le=re;le<Y.length;le++)ne(Y[le],Z,ee,ce,xe)},Me=Y=>{if(Y.shapeFlag&6)return Me(Y.component.subTree);if(Y.shapeFlag&128)return Y.suspense.next();const Z=C(Y.anchor||Y.el),ee=Z&&Z[Wz];return ee?C(ee):Z};let ge=!1;const Se=(Y,Z,ee)=>{Y==null?Z._vnode&&ne(Z._vnode,null,null,!0):A(Z._vnode||null,Y,Z,null,null,null,ee),Z._vnode=Y,ge||(ge=!0,q8(),Lk(),ge=!1)},fe={p:A,um:ne,m:ae,r:be,mt:z,mc:w,pc:U,pbc:$,n:Me,o:e};let pe,je;return t&&([pe,je]=t(fe)),{render:Se,hydrate:pe,createApp:JQ(Se,pe)}}function o_({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function vu({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function PR(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function jT(e,t,n=!1){const i=e.children,o=t.children;if(en(i)&&en(o))for(let s=0;s<i.length;s++){const r=i[s];let a=o[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[s]=oc(o[s]),a.el=r.el),!n&&a.patchFlag!==-2&&jT(r,a)),a.type===xa&&(a.el=r.el)}}function ree(e){const t=e.slice(),n=[0];let i,o,s,r,a;const u=e.length;for(i=0;i<u;i++){const c=e[i];if(c!==0){if(o=n[n.length-1],e[o]<c){t[i]=o,n.push(i);continue}for(s=0,r=n.length-1;s<r;)a=s+r>>1,e[n[a]]<c?s=a+1:r=a;c<e[n[s]]&&(s>0&&(t[i]=n[s-1]),n[s]=i)}}for(s=n.length,r=n[s-1];s-- >0;)n[s]=r,r=t[r];return n}function OR(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:OR(t)}function jk(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const zT=Symbol.for("v-scx"),RT=()=>Dt(zT);function Xi(e,t){return l1(e,null,t)}function BT(e,t){return l1(e,null,{flush:"post"})}function FT(e,t){return l1(e,null,{flush:"sync"})}function gt(e,t,n){return l1(e,t,n)}function l1(e,t,n=Tn){const{immediate:i,deep:o,flush:s,once:r}=n,a=si({},n),u=t&&i||!t&&s!=="post";let c;if(Op){if(s==="sync"){const S=RT();c=S.__watcherHandles||(S.__watcherHandles=[])}else if(!u){const S=()=>{};return S.stop=ss,S.resume=ss,S.pause=ss,S}}const l=rr;a.call=(S,_,A)=>Ho(S,l,_,A);let g=!1;s==="post"?a.scheduler=S=>{gr(S,l&&l.suspense)}:s!=="sync"&&(g=!0,a.scheduler=(S,_)=>{_?S():CT(S)}),a.augmentJob=S=>{t&&(S.flags|=4),g&&(S.flags|=2,l&&(S.id=l.uid,S.i=l))};const C=wQ(e,t,a);return Op&&(c?c.push(C):u&&C()),C}function oee(e,t,n){const i=this.proxy,o=di(e)?e.includes(".")?LR(i,e):()=>i[e]:e.bind(i,i);let s;an(t)?s=t:(s=t.handler,n=t);const r=Xd(this),a=l1(o,s.bind(i),n);return r(),a}function LR(e,t){const n=t.split(".");return()=>{let i=e;for(let o=0;o<n.length&&i;o++)i=i[n[o]];return i}}function DR(e,t,n=Tn){const i=Vn(),o=br(t),s=wo(t),r=NR(e,o),a=bT((u,c)=>{let l,g=Tn,C;return FT(()=>{const S=e[o];no(l,S)&&(l=S,c())}),{get(){return u(),n.get?n.get(l):l},set(S){const _=n.set?n.set(S):S;if(!no(_,l)&&!(g!==Tn&&no(S,g)))return;const A=i.vnode.props;A&&(t in A||o in A||s in A)&&(`onUpdate:${t}`in A||`onUpdate:${o}`in A||`onUpdate:${s}`in A)||(l=S,c()),i.emit(`update:${t}`,_),no(S,_)&&no(S,g)&&!no(_,C)&&c(),g=S,C=_}}});return a[Symbol.iterator]=()=>{let u=0;return{next(){return u<2?{value:u++?r||Tn:a,done:!1}:{done:!0}}}},a}const NR=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${br(t)}Modifiers`]||e[`${wo(t)}Modifiers`];function see(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||Tn;let o=n;const s=t.startsWith("update:"),r=s&&NR(i,t.slice(7));r&&(r.trim&&(o=n.map(l=>di(l)?l.trim():l)),r.number&&(o=n.map(Ek)));let a,u=i[a=Xf(t)]||i[a=Xf(br(t))];!u&&s&&(u=i[a=Xf(wo(t))]),u&&Ho(u,e,6,o);const c=i[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ho(c,e,6,o)}}function jR(e,t,n=!1){const i=t.emitsCache,o=i.get(e);if(o!==void 0)return o;const s=e.emits;let r={},a=!1;if(!an(e)){const u=c=>{const l=jR(c,t,!0);l&&(a=!0,si(r,l))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!s&&!a?(ni(e)&&i.set(e,null),null):(en(s)?s.forEach(u=>r[u]=null):si(r,s),ni(e)&&i.set(e,r),r)}function OS(e,t){return!e||!e1(t)?!1:(t=t.slice(2).replace(/Once$/,""),Hn(e,t[0].toLowerCase()+t.slice(1))||Hn(e,wo(t))||Hn(e,t))}function Vy(e){const{type:t,vnode:n,proxy:i,withProxy:o,propsOptions:[s],slots:r,attrs:a,emit:u,render:c,renderCache:l,props:g,data:C,setupState:S,ctx:_,inheritAttrs:A}=e,y=Ov(e);let d,v;try{if(n.shapeFlag&4){const f=o||i,p=f;d=So(c.call(p,f,l,g,S,C,_)),v=a}else{const f=t;d=So(f.length>1?f(g,{attrs:a,slots:r,emit:u}):f(g,null)),v=t.props?a:lee(a)}}catch(f){sv.length=0,iu(f,e,1),d=O(Pi)}let m=d;if(v&&A!==!1){const f=Object.keys(v),{shapeFlag:p}=m;f.length&&p&7&&(s&&f.some(fT)&&(v=cee(v,s)),m=Tr(m,v,!1,!0))}return n.dirs&&(m=Tr(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&Aa(m,n.transition),d=m,Ov(y),d}function aee(e,t=!0){let n;for(let i=0;i<e.length;i++){const o=e[i];if(On(o)){if(o.type!==Pi||o.children==="v-if"){if(n)return;n=o}}else return}return n}const lee=e=>{let t;for(const n in e)(n==="class"||n==="style"||e1(n))&&((t||(t={}))[n]=e[n]);return t},cee=(e,t)=>{const n={};for(const i in e)(!fT(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function uee(e,t,n){const{props:i,children:o,component:s}=e,{props:r,children:a,patchFlag:u}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return i?c6(i,r,c):!!r;if(u&8){const l=t.dynamicProps;for(let g=0;g<l.length;g++){const C=l[g];if(r[C]!==i[C]&&!OS(c,C))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:i===r?!1:i?r?c6(i,r,c):!0:!!r;return!1}function c6(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let o=0;o<i.length;o++){const s=i[o];if(t[s]!==e[s]&&!OS(n,s))return!0}return!1}function VT({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=n,t=t.parent;else break}}const zk=e=>e.__isSuspense;let WA=0;const dee={name:"Suspense",__isSuspense:!0,process(e,t,n,i,o,s,r,a,u,c){if(e==null)fee(t,n,i,o,s,r,a,u,c);else{if(s&&s.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}hee(e,t,n,i,o,r,a,u,c)}},hydrate:pee,normalize:mee},zR=dee;function Dv(e,t){const n=e.props&&e.props[t];an(n)&&n()}function fee(e,t,n,i,o,s,r,a,u){const{p:c,o:{createElement:l}}=u,g=l("div"),C=e.suspense=RR(e,o,i,t,g,n,s,r,a,u);c(null,C.pendingBranch=e.ssContent,g,null,i,C,s,r),C.deps>0?(Dv(e,"onPending"),Dv(e,"onFallback"),c(null,e.ssFallback,t,n,i,null,s,r),qf(C,e.ssFallback)):C.resolve(!1,!0)}function hee(e,t,n,i,o,s,r,a,{p:u,um:c,o:{createElement:l}}){const g=t.suspense=e.suspense;g.vnode=t,t.el=e.el;const C=t.ssContent,S=t.ssFallback,{activeBranch:_,pendingBranch:A,isInFallback:y,isHydrating:d}=g;if(A)g.pendingBranch=C,Ns(C,A)?(u(A,C,g.hiddenContainer,null,o,g,s,r,a),g.deps<=0?g.resolve():y&&(d||(u(_,S,n,i,o,null,s,r,a),qf(g,S)))):(g.pendingId=WA++,d?(g.isHydrating=!1,g.activeBranch=A):c(A,o,g),g.deps=0,g.effects.length=0,g.hiddenContainer=l("div"),y?(u(null,C,g.hiddenContainer,null,o,g,s,r,a),g.deps<=0?g.resolve():(u(_,S,n,i,o,null,s,r,a),qf(g,S))):_&&Ns(C,_)?(u(_,C,n,i,o,g,s,r,a),g.resolve(!0)):(u(null,C,g.hiddenContainer,null,o,g,s,r,a),g.deps<=0&&g.resolve()));else if(_&&Ns(C,_))u(_,C,n,i,o,g,s,r,a),qf(g,C);else if(Dv(t,"onPending"),g.pendingBranch=C,C.shapeFlag&512?g.pendingId=C.component.suspenseId:g.pendingId=WA++,u(null,C,g.hiddenContainer,null,o,g,s,r,a),g.deps<=0)g.resolve();else{const{timeout:v,pendingId:m}=g;v>0?setTimeout(()=>{g.pendingId===m&&g.fallback(S)},v):v===0&&g.fallback(S)}}function RR(e,t,n,i,o,s,r,a,u,c,l=!1){const{p:g,m:C,um:S,n:_,o:{parentNode:A,remove:y}}=c;let d;const v=vee(e);v&&t&&t.pendingBranch&&(d=t.pendingId,t.deps++);const m=e.props?Mk(e.props.timeout):void 0,f=s,p={vnode:e,parent:t,parentComponent:n,namespace:r,container:i,hiddenContainer:o,deps:0,pendingId:WA++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!l,isHydrating:l,isUnmounted:!1,effects:[],resolve(h=!1,b=!1){const{vnode:w,activeBranch:k,pendingBranch:$,pendingId:E,effects:N,parentComponent:j,container:z}=p;let V=!1;p.isHydrating?p.isHydrating=!1:h||(V=k&&$.transition&&$.transition.mode==="out-in",V&&(k.transition.afterLeave=()=>{E===p.pendingId&&(C($,z,s===f?_(k):s,0),Tv(N))}),k&&(A(k.el)===z&&(s=_(k)),S(k,j,p,!0)),V||C($,z,s,0)),qf(p,$),p.pendingBranch=null,p.isInFallback=!1;let W=p.parent,H=!1;for(;W;){if(W.pendingBranch){W.effects.push(...N),H=!0;break}W=W.parent}!H&&!V&&Tv(N),p.effects=[],v&&t&&t.pendingBranch&&d===t.pendingId&&(t.deps--,t.deps===0&&!b&&t.resolve()),Dv(w,"onResolve")},fallback(h){if(!p.pendingBranch)return;const{vnode:b,activeBranch:w,parentComponent:k,container:$,namespace:E}=p;Dv(b,"onFallback");const N=_(w),j=()=>{p.isInFallback&&(g(null,h,$,N,k,null,E,a,u),qf(p,h))},z=h.transition&&h.transition.mode==="out-in";z&&(w.transition.afterLeave=j),p.isInFallback=!0,S(w,k,null,!0),z||j()},move(h,b,w){p.activeBranch&&C(p.activeBranch,h,b,w),p.container=h},next(){return p.activeBranch&&_(p.activeBranch)},registerDep(h,b,w){const k=!!p.pendingBranch;k&&p.deps++;const $=h.vnode.el;h.asyncDep.catch(E=>{iu(E,h,0)}).then(E=>{if(h.isUnmounted||p.isUnmounted||p.pendingId!==h.suspenseId)return;h.asyncResolved=!0;const{vnode:N}=h;GA(h,E,!1),$&&(N.el=$);const j=!$&&h.subTree.el;b(h,N,A($||h.subTree.el),$?null:_(h.subTree),p,r,w),j&&y(j),VT(h,N.el),k&&--p.deps===0&&p.resolve()})},unmount(h,b){p.isUnmounted=!0,p.activeBranch&&S(p.activeBranch,n,h,b),p.pendingBranch&&S(p.pendingBranch,n,h,b)}};return p}function pee(e,t,n,i,o,s,r,a,u){const c=t.suspense=RR(t,i,n,e.parentNode,document.createElement("div"),null,o,s,r,a,!0),l=u(e,c.pendingBranch=t.ssContent,n,c,s,r);return c.deps===0&&c.resolve(!1,!0),l}function mee(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=u6(i?n.default:n),e.ssFallback=i?u6(n.fallback):O(Pi)}function u6(e){let t;if(an(e)){const n=Yd&&e._c;n&&(e._d=!1,R()),e=e(),n&&(e._d=!0,t=Ur,FR())}return en(e)&&(e=aee(e)),e=So(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function BR(e,t){t&&t.pendingBranch?en(e)?t.effects.push(...e):t.effects.push(e):Tv(e)}function qf(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,i&&i.subTree===n&&(i.vnode.el=o,VT(i,o))}function vee(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ft=Symbol.for("v-fgt"),xa=Symbol.for("v-txt"),Pi=Symbol.for("v-cmt"),Gc=Symbol.for("v-stc"),sv=[];let Ur=null;function R(e=!1){sv.push(Ur=e?null:[])}function FR(){sv.pop(),Ur=sv[sv.length-1]||null}let Yd=1;function Rk(e){Yd+=e,e<0&&Ur&&(Ur.hasOnce=!0)}function VR(e){return e.dynamicChildren=Yd>0?Ur||Zf:null,FR(),Yd>0&&Ur&&Ur.push(e),e}function X(e,t,n,i,o,s){return VR(B(e,t,n,i,o,s,!0))}function We(e,t,n,i,o){return VR(O(e,t,n,i,o,!0))}function On(e){return e?e.__v_isVNode===!0:!1}function Ns(e,t){return e.type===t.type&&e.key===t.key}function HR(e){}const WR=({key:e})=>e??null,Hy=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?di(e)||oi(e)||an(e)?{i:ar,r:e,k:t,f:!!n}:e:null);function B(e,t=null,n=null,i=0,o=null,s=e===ft?0:1,r=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&WR(t),ref:t&&Hy(t),scopeId:_S,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ar};return a?(HT(u,n),s&128&&e.normalize(u)):n&&(u.shapeFlag|=di(n)?8:16),Yd>0&&!r&&Ur&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&Ur.push(u),u}const O=gee;function gee(e,t=null,n=null,i=0,o=null,s=!1){if((!e||e===rR)&&(e=Pi),On(e)){const a=Tr(e,t,!0);return n&&HT(a,n),Yd>0&&!s&&Ur&&(a.shapeFlag&6?Ur[Ur.indexOf(e)]=a:Ur.push(a)),a.patchFlag=-2,a}if(See(e)&&(e=e.__vccOpts),t){t=ir(t);let{class:a,style:u}=t;a&&!di(a)&&(t.class=G(a)),ni(u)&&(r1(u)&&!en(u)&&(u=si({},u)),t.style=Te(u))}const r=di(e)?1:zk(e)?128:Uz(e)?64:ni(e)?4:an(e)?2:0;return B(e,t,n,i,o,r,s,!0)}function ir(e){return e?r1(e)||_R(e)?si({},e):e:null}function Tr(e,t,n=!1,i=!1){const{props:o,ref:s,patchFlag:r,children:a,transition:u}=e,c=t?Qe(o||{},t):o,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&WR(c),ref:t&&t.ref?n&&s?en(s)?s.concat(Hy(t)):[s,Hy(t)]:Hy(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ft?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tr(e.ssContent),ssFallback:e.ssFallback&&Tr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&i&&Aa(l,u.clone(l)),l}function pt(e=" ",t=0){return O(xa,null,e,t)}function Xp(e,t){const n=O(Gc,null,e);return n.staticCount=t,n}function Re(e="",t=!1){return t?(R(),We(Pi,null,e)):O(Pi,null,e)}function So(e){return e==null||typeof e=="boolean"?O(Pi):en(e)?O(ft,null,e.slice()):On(e)?oc(e):O(xa,null,String(e))}function oc(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tr(e)}function HT(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(en(t))n=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),HT(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!_R(t)?t._ctx=ar:o===3&&ar&&(ar.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else an(t)?(t={default:t,_ctx:ar},n=32):(t=String(t),i&64?(n=16,t=[pt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Qe(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const o in i)if(o==="class")t.class!==i.class&&(t.class=G([t.class,i.class]));else if(o==="style")t.style=Te([t.style,i.style]);else if(e1(o)){const s=t[o],r=i[o];r&&s!==r&&!(en(s)&&s.includes(r))&&(t[o]=s?[].concat(s,r):r)}else o!==""&&(t[o]=i[o])}return t}function ko(e,t,n,i=null){Ho(e,t,7,[n,i])}const yee=CR();let bee=0;function UR(e,t,n){const i=e.type,o=(t?t.appContext:e.appContext)||yee,s={uid:bee++,vnode:e,type:i,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new vS(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:xR(i,o),emitsOptions:jR(i,o),emit:null,emitted:null,propsDefaults:Tn,inheritAttrs:i.inheritAttrs,ctx:Tn,data:Tn,props:Tn,attrs:Tn,slots:Tn,refs:Tn,setupState:Tn,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=see.bind(null,s),e.ce&&e.ce(s),s}let rr=null;const Vn=()=>rr||ar;let Bk,UA;{const e=pS(),t=(n,i)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(i),s=>{o.length>1?o.forEach(r=>r(s)):o[0](s)}};Bk=t("__VUE_INSTANCE_SETTERS__",n=>rr=n),UA=t("__VUE_SSR_SETTERS__",n=>Op=n)}const Xd=e=>{const t=rr;return Bk(e),e.scope.on(),()=>{e.scope.off(),Bk(t)}},ZA=()=>{rr&&rr.scope.off(),Bk(null)};function ZR(e){return e.vnode.shapeFlag&4}let Op=!1;function GR(e,t=!1,n=!1){t&&UA(t);const{props:i,children:o}=e.vnode,s=ZR(e);qQ(e,i,s,t),nee(e,o,n);const r=s?kee(e,t):void 0;return t&&UA(!1),r}function kee(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,BA);const{setup:i}=n;if(i){tu();const o=e.setupContext=i.length>1?JR(e):null,s=Xd(e),r=af(i,e,0,[e.props,o]),a=pT(r);if(nu(),s(),(a||e.sp)&&!Zc(e)&&wT(e),a){if(r.then(ZA,ZA),t)return r.then(u=>{GA(e,u,t)}).catch(u=>{iu(u,e,0)});e.asyncDep=r}else GA(e,r,t)}else KR(e,t)}function GA(e,t,n){an(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ni(t)&&(e.setupState=wS(t)),KR(e,n)}let Fk,YA;function YR(e){Fk=e,YA=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,WQ))}}const XR=()=>!Fk;function KR(e,t,n){const i=e.type;if(!e.render){if(!t&&Fk&&!i.render){const o=i.template||PT(e).template;if(o){const{isCustomElement:s,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:u}=i,c=si(si({isCustomElement:s,delimiters:a},r),u);i.render=Fk(o,c)}}e.render=i.render||ss,YA&&YA(e)}{const o=Xd(e);tu();try{UQ(e)}finally{nu(),o()}}}const Cee={get(e,t){return Vr(e,"get",""),e[t]}};function JR(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Cee),slots:e.slots,emit:e.emit,expose:t}}function c1(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(wS(o1(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ov)return ov[n](e)},has(t,n){return n in t||n in ov}})):e.proxy}function XA(e,t=!0){return an(e)?e.displayName||e.name:e.name||t&&e.__name}function See(e){return an(e)&&"__vccOpts"in e}const P=(e,t)=>SQ(e,t,Op);function Wn(e,t,n){const i=arguments.length;return i===2?ni(t)&&!en(t)?On(t)?O(e,null,[t]):O(e,t):O(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&On(n)&&(n=[n]),O(e,t,n))}function qR(){}function QR(e,t,n,i){const o=n[i];if(o&&WT(o,e))return o;const s=t();return s.memo=e.slice(),s.cacheIndex=i,n[i]=s}function WT(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let i=0;i<n.length;i++)if(no(n[i],t[i]))return!1;return Yd>0&&Ur&&Ur.push(e),!0}const UT="3.5.12",eB=ss,tB=xQ,nB=Ef,iB=Bz,wee={createComponentInstance:UR,setupComponent:GR,renderComponentRoot:Vy,setCurrentRenderingInstance:Ov,isVNode:On,normalizeVNode:So,getComponentPublicInstance:c1,ensureValidVNode:TT,pushWarningContext:_Q,popWarningContext:IQ},rB=wee,oB=null,sB=null,aB=null;/**
  15. * @vue/runtime-dom v3.5.12
  16. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  17. * @license MIT
  18. **/let KA;const d6=typeof window<"u"&&window.trustedTypes;if(d6)try{KA=d6.createPolicy("vue",{createHTML:e=>e})}catch{}const lB=KA?e=>KA.createHTML(e):e=>e,_ee="http://www.w3.org/2000/svg",Iee="http://www.w3.org/1998/Math/MathML",Ua=typeof document<"u"?document:null,f6=Ua&&Ua.createElement("template"),xee={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o=t==="svg"?Ua.createElementNS(_ee,e):t==="mathml"?Ua.createElementNS(Iee,e):n?Ua.createElement(e,{is:n}):Ua.createElement(e);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>Ua.createTextNode(e),createComment:e=>Ua.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ua.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,s){const r=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{f6.innerHTML=lB(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const a=f6.content;if(i==="svg"||i==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Wl="transition",bm="animation",Lp=Symbol("_vtc"),cB={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},uB=si({},xS,cB),$ee=e=>(e.displayName="Transition",e.props=uB,e),Pr=$ee((e,{slots:t})=>Wn(ST,dB(e),t)),gu=(e,t=[])=>{en(e)?e.forEach(n=>n(...t)):e&&e(...t)},h6=e=>e?en(e)?e.some(t=>t.length>1):e.length>1:!1;function dB(e){const t={};for(const N in e)N in cB||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:i,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:u=s,appearActiveClass:c=r,appearToClass:l=a,leaveFromClass:g=`${n}-leave-from`,leaveActiveClass:C=`${n}-leave-active`,leaveToClass:S=`${n}-leave-to`}=e,_=Aee(o),A=_&&_[0],y=_&&_[1],{onBeforeEnter:d,onEnter:v,onEnterCancelled:m,onLeave:f,onLeaveCancelled:p,onBeforeAppear:h=d,onAppear:b=v,onAppearCancelled:w=m}=t,k=(N,j,z)=>{Jl(N,j?l:a),Jl(N,j?c:r),z&&z()},$=(N,j)=>{N._isLeaving=!1,Jl(N,g),Jl(N,S),Jl(N,C),j&&j()},E=N=>(j,z)=>{const V=N?b:v,W=()=>k(j,N,z);gu(V,[j,W]),p6(()=>{Jl(j,N?u:s),Va(j,N?l:a),h6(V)||m6(j,i,A,W)})};return si(t,{onBeforeEnter(N){gu(d,[N]),Va(N,s),Va(N,r)},onBeforeAppear(N){gu(h,[N]),Va(N,u),Va(N,c)},onEnter:E(!1),onAppear:E(!0),onLeave(N,j){N._isLeaving=!0;const z=()=>$(N,j);Va(N,g),Va(N,C),hB(),p6(()=>{N._isLeaving&&(Jl(N,g),Va(N,S),h6(f)||m6(N,i,y,z))}),gu(f,[N,z])},onEnterCancelled(N){k(N,!1),gu(m,[N])},onAppearCancelled(N){k(N,!0),gu(w,[N])},onLeaveCancelled(N){$(N),gu(p,[N])}})}function Aee(e){if(e==null)return null;if(ni(e))return[s_(e.enter),s_(e.leave)];{const t=s_(e);return[t,t]}}function s_(e){return Mk(e)}function Va(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Lp]||(e[Lp]=new Set)).add(t)}function Jl(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[Lp];n&&(n.delete(t),n.size||(e[Lp]=void 0))}function p6(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Eee=0;function m6(e,t,n,i){const o=e._endId=++Eee,s=()=>{o===e._endId&&i()};if(n!=null)return setTimeout(s,n);const{type:r,timeout:a,propCount:u}=fB(e,t);if(!r)return i();const c=r+"end";let l=0;const g=()=>{e.removeEventListener(c,C),s()},C=S=>{S.target===e&&++l>=u&&g()};setTimeout(()=>{l<u&&g()},a+1),e.addEventListener(c,C)}function fB(e,t){const n=window.getComputedStyle(e),i=_=>(n[_]||"").split(", "),o=i(`${Wl}Delay`),s=i(`${Wl}Duration`),r=v6(o,s),a=i(`${bm}Delay`),u=i(`${bm}Duration`),c=v6(a,u);let l=null,g=0,C=0;t===Wl?r>0&&(l=Wl,g=r,C=s.length):t===bm?c>0&&(l=bm,g=c,C=u.length):(g=Math.max(r,c),l=g>0?r>c?Wl:bm:null,C=l?l===Wl?s.length:u.length:0);const S=l===Wl&&/\b(transform|all)(,|$)/.test(i(`${Wl}Property`).toString());return{type:l,timeout:g,propCount:C,hasTransform:S}}function v6(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>g6(n)+g6(e[i])))}function g6(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function hB(){return document.body.offsetHeight}function Mee(e,t,n){const i=e[Lp];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Vk=Symbol("_vod"),pB=Symbol("_vsh"),ki={beforeMount(e,{value:t},{transition:n}){e[Vk]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):km(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),km(e,!0),i.enter(e)):i.leave(e,()=>{km(e,!1)}):km(e,t))},beforeUnmount(e,{value:t}){km(e,t)}};function km(e,t){e.style.display=t?e[Vk]:"none",e[pB]=!t}function Tee(){ki.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const mB=Symbol("");function vB(e){const t=Vn();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>Hk(s,o))},i=()=>{const o=e(t.proxy);t.ce?Hk(t.ce,o):JA(t.subTree,o),n(o)};MS(()=>{BT(i)}),Yt(()=>{const o=new MutationObserver(i);o.observe(t.subTree.el.parentNode,{childList:!0}),$i(()=>o.disconnect())})}function JA(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{JA(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Hk(e.el,t);else if(e.type===ft)e.children.forEach(n=>JA(n,t));else if(e.type===Gc){let{el:n,anchor:i}=e;for(;n&&(Hk(n,t),n!==i);)n=n.nextSibling}}function Hk(e,t){if(e.nodeType===1){const n=e.style;let i="";for(const o in t)n.setProperty(`--${o}`,t[o]),i+=`--${o}: ${t[o]};`;n[mB]=i}}const Pee=/(^|;)\s*display\s*:/;function Oee(e,t,n){const i=e.style,o=di(n);let s=!1;if(n&&!o){if(t)if(di(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&Wy(i,a,"")}else for(const r in t)n[r]==null&&Wy(i,r,"");for(const r in n)r==="display"&&(s=!0),Wy(i,r,n[r])}else if(o){if(t!==n){const r=i[mB];r&&(n+=";"+r),i.cssText=n,s=Pee.test(n)}}else t&&e.removeAttribute("style");Vk in e&&(e[Vk]=s?i.display:"",e[pB]&&(i.display="none"))}const y6=/\s*!important$/;function Wy(e,t,n){if(en(n))n.forEach(i=>Wy(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Lee(e,t);y6.test(n)?e.setProperty(wo(i),n.replace(y6,""),"important"):e[i]=n}}const b6=["Webkit","Moz","ms"],a_={};function Lee(e,t){const n=a_[t];if(n)return n;let i=br(t);if(i!=="filter"&&i in e)return a_[t]=i;i=Zp(i);for(let o=0;o<b6.length;o++){const s=b6[o]+i;if(s in e)return a_[t]=s}return t}const k6="http://www.w3.org/1999/xlink";function C6(e,t,n,i,o,s=Xq(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(k6,t.slice(6,t.length)):e.setAttributeNS(k6,t,n):n==null||s&&!sz(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Hs(n)?String(n):n)}function S6(e,t,n,i,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?lB(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const a=s==="OPTION"?e.getAttribute("value")||"":e.value,u=n==null?e.type==="checkbox"?"on":"":String(n);(a!==u||!("_value"in e))&&(e.value=u),n==null&&e.removeAttribute(t),e._value=n;return}let r=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=sz(n):n==null&&a==="string"?(n="",r=!0):a==="number"&&(n=0,r=!0)}try{e[t]=n}catch{}r&&e.removeAttribute(o||t)}function wl(e,t,n,i){e.addEventListener(t,n,i)}function Dee(e,t,n,i){e.removeEventListener(t,n,i)}const w6=Symbol("_vei");function Nee(e,t,n,i,o=null){const s=e[w6]||(e[w6]={}),r=s[t];if(i&&r)r.value=i;else{const[a,u]=jee(t);if(i){const c=s[t]=Bee(i,o);wl(e,a,c,u)}else r&&(Dee(e,a,r,u),s[t]=void 0)}}const _6=/(?:Once|Passive|Capture)$/;function jee(e){let t;if(_6.test(e)){t={};let i;for(;i=e.match(_6);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):wo(e.slice(2)),t]}let l_=0;const zee=Promise.resolve(),Ree=()=>l_||(zee.then(()=>l_=0),l_=Date.now());function Bee(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Ho(Fee(i,n.value),t,5,[i])};return n.value=e,n.attached=Ree(),n}function Fee(e,t){if(en(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const I6=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vee=(e,t,n,i,o,s)=>{const r=o==="svg";t==="class"?Mee(e,i,r):t==="style"?Oee(e,n,i):e1(t)?fT(t)||Nee(e,t,n,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Hee(e,t,i,r))?(S6(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&C6(e,t,i,r,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!di(i))?S6(e,br(t),i,s,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),C6(e,t,i,r))};function Hee(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&I6(t)&&an(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return I6(t)&&di(n)?!1:t in e}const x6={};/*! #__NO_SIDE_EFFECTS__ */function ZT(e,t,n){const i=se(e,t);fS(i)&&si(i,t);class o extends u1{constructor(r){super(i,r,n)}}return o.def=i,o}/*! #__NO_SIDE_EFFECTS__ */const gB=(e,t)=>ZT(e,t,KT),Wee=typeof HTMLElement<"u"?HTMLElement:class{};class u1 extends Wee{constructor(t,n={},i=Kc){super(),this._def=t,this._props=n,this._createApp=i,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&i!==Kc?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof u1){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,fn(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);this._ob=new MutationObserver(i=>{for(const o of i)this._setAttr(o.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(i,o=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:s,styles:r}=i;let a;if(s&&!en(s))for(const u in s){const c=s[u];(c===Number||c&&c.type===Number)&&(u in this._props&&(this._props[u]=Mk(this._props[u])),(a||(a=Object.create(null)))[br(u)]=!0)}this._numberProps=a,o&&this._resolveProps(i),this.shadowRoot&&this._applyStyles(r),this._mount(i)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(i=>t(this._def=i,!0)):t(this._def)}_mount(t){this._app=this._createApp(t),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const i in n)Hn(this,i)||Object.defineProperty(this,i,{get:()=>ji(n[i])})}_resolveProps(t){const{props:n}=t,i=en(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&i.includes(o)&&this._setProp(o,this[o]);for(const o of i.map(br))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(s){this._setProp(o,s,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let i=n?this.getAttribute(t):x6;const o=br(t);n&&this._numberProps&&this._numberProps[o]&&(i=Mk(i)),this._setProp(o,i,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,i=!0,o=!1){n!==this._props[t]&&(n===x6?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),o&&this._instance&&this._update(),i&&(n===!0?this.setAttribute(wo(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(wo(t),n+""):n||this.removeAttribute(wo(t))))}_update(){Ws(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=O(this._def,si(t,this._props));return this._instance||(n.ce=i=>{this._instance=i,i.ce=this,i.isCE=!0;const o=(s,r)=>{this.dispatchEvent(new CustomEvent(s,fS(r[0])?si({detail:r},r[0]):{detail:r}))};i.emit=(s,...r)=>{o(s,r),wo(s)!==s&&o(wo(s),r)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const i=this._nonce;for(let o=t.length-1;o>=0;o--){const s=document.createElement("style");i&&s.setAttribute("nonce",i),s.textContent=t[o],this.shadowRoot.prepend(s)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const i=n.nodeType===1&&n.getAttribute("slot")||"default";(t[i]||(t[i]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),n=this._instance.type.__scopeId;for(let i=0;i<t.length;i++){const o=t[i],s=o.getAttribute("name")||"default",r=this._slots[s],a=o.parentNode;if(r)for(const u of r){if(n&&u.nodeType===1){const c=n+"-s",l=document.createTreeWalker(u,1);u.setAttribute(c,"");let g;for(;g=l.nextNode();)g.setAttribute(c,"")}a.insertBefore(u,o)}else for(;o.firstChild;)a.insertBefore(o.firstChild,o);a.removeChild(o)}}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}function GT(e){const t=Vn(),n=t&&t.ce;return n||null}function yB(){const e=GT();return e&&e.shadowRoot}function bB(e="$style"){{const t=Vn();if(!t)return Tn;const n=t.type.__cssModules;if(!n)return Tn;const i=n[e];return i||Tn}}const kB=new WeakMap,CB=new WeakMap,Wk=Symbol("_moveCb"),$6=Symbol("_enterCb"),Uee=e=>(delete e.props.mode,e),Zee=Uee({name:"TransitionGroup",props:si({},uB,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Vn(),i=IS();let o,s;return Bi(()=>{if(!o.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!Kee(o[0].el,n.vnode.el,r))return;o.forEach(Gee),o.forEach(Yee);const a=o.filter(Xee);hB(),a.forEach(u=>{const c=u.el,l=c.style;Va(c,r),l.transform=l.webkitTransform=l.transitionDuration="";const g=c[Wk]=C=>{C&&C.target!==c||(!C||/transform$/.test(C.propertyName))&&(c.removeEventListener("transitionend",g),c[Wk]=null,Jl(c,r))};c.addEventListener("transitionend",g)})}),()=>{const r=An(e),a=dB(r);let u=r.tag||ft;if(o=[],s)for(let c=0;c<s.length;c++){const l=s[c];l.el&&l.el instanceof Element&&(o.push(l),Aa(l,Gd(l,a,i,n)),kB.set(l,l.el.getBoundingClientRect()))}s=t.default?s1(t.default()):[];for(let c=0;c<s.length;c++){const l=s[c];l.key!=null&&Aa(l,Gd(l,a,i,n))}return O(u,null,s)}}}),lf=Zee;function Gee(e){const t=e.el;t[Wk]&&t[Wk](),t[$6]&&t[$6]()}function Yee(e){CB.set(e,e.el.getBoundingClientRect())}function Xee(e){const t=kB.get(e),n=CB.get(e),i=t.left-n.left,o=t.top-n.top;if(i||o){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${i}px,${o}px)`,s.transitionDuration="0s",e}}function Kee(e,t,n){const i=e.cloneNode(),o=e[Lp];o&&o.forEach(a=>{a.split(/\s+/).forEach(u=>u&&i.classList.remove(u))}),n.split(/\s+/).forEach(a=>a&&i.classList.add(a)),i.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(i);const{hasTransform:r}=fB(i);return s.removeChild(i),r}const Xc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return en(t)?n=>Kf(t,n):t};function Jee(e){e.target.composing=!0}function A6(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const as=Symbol("_assign"),Nv={created(e,{modifiers:{lazy:t,trim:n,number:i}},o){e[as]=Xc(o);const s=i||o.props&&o.props.type==="number";wl(e,t?"change":"input",r=>{if(r.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=Ek(a)),e[as](a)}),n&&wl(e,"change",()=>{e.value=e.value.trim()}),t||(wl(e,"compositionstart",Jee),wl(e,"compositionend",A6),wl(e,"change",A6))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:o,number:s}},r){if(e[as]=Xc(r),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?Ek(e.value):e.value,u=t??"";a!==u&&(document.activeElement===e&&e.type!=="range"&&(i&&t===n||o&&e.value.trim()===u)||(e.value=u))}},LS={deep:!0,created(e,t,n){e[as]=Xc(n),wl(e,"change",()=>{const i=e._modelValue,o=Dp(e),s=e.checked,r=e[as];if(en(i)){const a=mS(i,o),u=a!==-1;if(s&&!u)r(i.concat(o));else if(!s&&u){const c=[...i];c.splice(a,1),r(c)}}else if(sf(i)){const a=new Set(i);s?a.add(o):a.delete(o),r(a)}else r(SB(e,s))})},mounted:E6,beforeUpdate(e,t,n){e[as]=Xc(n),E6(e,t,n)}};function E6(e,{value:t,oldValue:n},i){e._modelValue=t;let o;if(en(t))o=mS(t,i.props.value)>-1;else if(sf(t))o=t.has(i.props.value);else{if(t===n)return;o=Yc(t,SB(e,!0))}e.checked!==o&&(e.checked=o)}const DS={created(e,{value:t},n){e.checked=Yc(t,n.props.value),e[as]=Xc(n),wl(e,"change",()=>{e[as](Dp(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[as]=Xc(i),t!==n&&(e.checked=Yc(t,i.props.value))}},YT={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const o=sf(t);wl(e,"change",()=>{const s=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?Ek(Dp(r)):Dp(r));e[as](e.multiple?o?new Set(s):s:s[0]),e._assigning=!0,fn(()=>{e._assigning=!1})}),e[as]=Xc(i)},mounted(e,{value:t}){M6(e,t)},beforeUpdate(e,t,n){e[as]=Xc(n)},updated(e,{value:t}){e._assigning||M6(e,t)}};function M6(e,t){const n=e.multiple,i=en(t);if(!(n&&!i&&!sf(t))){for(let o=0,s=e.options.length;o<s;o++){const r=e.options[o],a=Dp(r);if(n)if(i){const u=typeof a;u==="string"||u==="number"?r.selected=t.some(c=>String(c)===String(a)):r.selected=mS(t,a)>-1}else r.selected=t.has(a);else if(Yc(Dp(r),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Dp(e){return"_value"in e?e._value:e.value}function SB(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const XT={created(e,t,n){by(e,t,n,null,"created")},mounted(e,t,n){by(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){by(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){by(e,t,n,i,"updated")}};function wB(e,t){switch(e){case"SELECT":return YT;case"TEXTAREA":return Nv;default:switch(t){case"checkbox":return LS;case"radio":return DS;default:return Nv}}}function by(e,t,n,i,o){const r=wB(e.tagName,n.props&&n.props.type)[o];r&&r(e,t,n,i)}function qee(){Nv.getSSRProps=({value:e})=>({value:e}),DS.getSSRProps=({value:e},t)=>{if(t.props&&Yc(t.props.value,e))return{checked:!0}},LS.getSSRProps=({value:e},t)=>{if(en(e)){if(t.props&&mS(e,t.props.value)>-1)return{checked:!0}}else if(sf(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},XT.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=wB(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const Qee=["ctrl","shift","alt","meta"],ete={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Qee.some(n=>e[`${n}Key`]&&!t.includes(n))},oo=(e,t)=>{const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=(o,...s)=>{for(let r=0;r<t.length;r++){const a=ete[t[r]];if(a&&a(o,t))return}return e(o,...s)})},tte={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},_a=(e,t)=>{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=o=>{if(!("key"in o))return;const s=wo(o.key);if(t.some(r=>r===s||tte[r]===s))return e(o)})},_B=si({patchProp:Vee},xee);let av,T6=!1;function IB(){return av||(av=DT(_B))}function xB(){return av=T6?av:NT(_B),T6=!0,av}const Ws=(...e)=>{IB().render(...e)},$B=(...e)=>{xB().hydrate(...e)},Kc=(...e)=>{const t=IB().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=EB(i);if(!o)return;const s=t._component;!an(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,AB(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t},KT=(...e)=>{const t=xB().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=EB(i);if(o)return n(o,!0,AB(o))},t};function AB(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function EB(e){return di(e)?document.querySelector(e):e}let P6=!1;const MB=()=>{P6||(P6=!0,qee(),Tee())};/**
  19. * vue v3.5.12
  20. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  21. * @license MIT
  22. **/const TB=()=>{},nte=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:ST,BaseTransitionPropsValidators:xS,Comment:Pi,DeprecationTypes:aB,EffectScope:vS,ErrorCodes:Nz,ErrorTypeStrings:tB,Fragment:ft,KeepAlive:nR,ReactiveEffect:Pp,Static:Gc,Suspense:zR,Teleport:Yp,Text:xa,TrackOpTypes:Tz,Transition:Pr,TransitionGroup:lf,TriggerOpTypes:Pz,VueElement:u1,assertNumber:Dz,callWithAsyncErrorHandling:Ho,callWithErrorHandling:af,camelize:br,capitalize:Zp,cloneVNode:Tr,compatUtils:sB,compile:TB,computed:P,createApp:Kc,createBlock:We,createCommentVNode:Re,createElementBlock:X,createElementVNode:B,createHydrationRenderer:NT,createPropsRestProxy:yR,createRenderer:DT,createSSRApp:KT,createSlots:ti,createStaticVNode:Xp,createTextVNode:pt,createVNode:O,customRef:bT,defineAsyncComponent:tR,defineComponent:se,defineCustomElement:ZT,defineEmits:aR,defineExpose:lR,defineModel:dR,defineOptions:cR,defineProps:sR,defineSSRCustomElement:gB,defineSlots:uR,devtools:nB,effect:pz,effectScope:t1,getCurrentInstance:Vn,getCurrentScope:n1,getCurrentWatcher:Oz,getTransitionRawChildren:s1,guardReactiveProps:ir,h:Wn,handleError:iu,hasInjectionContext:OT,hydrate:$B,hydrateOnIdle:Jz,hydrateOnInteraction:eR,hydrateOnMediaQuery:Qz,hydrateOnVisible:qz,initCustomFormatter:qR,initDirectivesForSSR:MB,inject:Dt,isMemoSame:WT,isProxy:r1,isReactive:Bs,isReadonly:Ll,isRef:oi,isRuntimeOnly:XR,isShallow:Io,isVNode:On,markRaw:o1,mergeDefaults:vR,mergeModels:gR,mergeProps:Qe,nextTick:fn,normalizeClass:G,normalizeProps:Bn,normalizeStyle:Te,onActivated:_T,onBeforeMount:MS,onBeforeUnmount:ei,onBeforeUpdate:TS,onDeactivated:AS,onErrorCaptured:AT,onMounted:Yt,onRenderTracked:$T,onRenderTriggered:xT,onScopeDispose:gS,onServerPrefetch:IT,onUnmounted:$i,onUpdated:Bi,onWatcherCleanup:kT,openBlock:R,popScopeId:Vz,provide:cn,proxyRefs:wS,pushScopeId:Fz,queuePostFlushCb:Tv,reactive:it,readonly:i1,ref:he,registerRuntimeCompiler:YR,render:Ws,renderList:dn,renderSlot:He,resolveComponent:Pe,resolveDirective:PS,resolveDynamicComponent:Zr,resolveFilter:oB,resolveTransitionHooks:Gd,setBlockTracking:Rk,setDevtoolsHook:iB,setTransitionHooks:Aa,shallowReactive:CS,shallowReadonly:xz,shallowRef:Gp,ssrContextKey:zT,ssrUtils:rB,stop:mz,toDisplayString:tt,toHandlerKey:Xf,toHandlers:oR,toRaw:An,toRef:lo,toRefs:lt,toValue:Ez,transformVNodeArgs:HR,triggerRef:Az,unref:ji,useAttrs:pR,useCssModule:bB,useCssVars:vB,useHost:GT,useId:Kz,useModel:DR,useSSRContext:RT,useShadowRoot:yB,useSlots:hR,useTemplateRef:$S,useTransitionState:IS,vModelCheckbox:LS,vModelDynamic:XT,vModelRadio:DS,vModelSelect:YT,vModelText:Nv,vShow:ki,version:UT,warn:eB,watch:gt,watchEffect:Xi,watchPostEffect:BT,watchSyncEffect:FT,withAsyncContext:bR,withCtx:Ve,withDefaults:fR,withDirectives:gi,withKeys:_a,withMemo:QR,withModifiers:oo,withScopeId:Hz},Symbol.toStringTag,{value:"Module"})),cf=Object.prototype.toString;function Kt(e){return cf.call(e)==="[object Array]"}function Xr(e){return cf.call(e)==="[object Null]"}function Gr(e){return cf.call(e)==="[object Boolean]"}function rn(e){return cf.call(e)==="[object Object]"}const Kd=e=>cf.call(e)==="[object Promise]";function Ai(e){return cf.call(e)==="[object String]"}function Le(e){return cf.call(e)==="[object Number]"&&e===e}function jt(e){return e===void 0}function Nt(e){return typeof e=="function"}function ite(e){return rn(e)&&Object.keys(e).length===0}function O6(e){return e||e===0}function Uy(e){return e===window}const PB=e=>(e==null?void 0:e.$)!==void 0,rte=e=>/\[Q]Q/.test(e);function ls(e){return rn(e)&&"$y"in e&&"$M"in e&&"$D"in e&&"$d"in e&&"$H"in e&&"$m"in e&&"$s"in e}const Or=Symbol("ArcoConfigProvider"),ky={formatYear:"YYYY 年",formatMonth:"YYYY 年 MM 月",today:"今天",view:{month:"月",year:"年",week:"周",day:"日"},month:{long:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},short:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},week:{long:{self:"周",monday:"周一",tuesday:"周二",wednesday:"周三",thursday:"周四",friday:"周五",saturday:"周六",sunday:"周日"},short:{self:"周",monday:"一",tuesday:"二",wednesday:"三",thursday:"四",friday:"五",saturday:"六",sunday:"日"}}},ote={locale:"zh-CN",empty:{description:"暂无数据"},drawer:{okText:"确定",cancelText:"取消"},popconfirm:{okText:"确定",cancelText:"取消"},modal:{okText:"确定",cancelText:"取消"},pagination:{goto:"前往",page:"页",countPerPage:"条/页",total:"共 {0} 条"},table:{okText:"确定",resetText:"重置"},upload:{start:"开始",cancel:"取消",delete:"删除",retry:"点击重试",buttonText:"点击上传",preview:"预览",drag:"点击或拖拽文件到此处上传",dragHover:"释放文件并开始上传",error:"上传失败"},calendar:ky,datePicker:{view:ky.view,month:ky.month,week:ky.week,placeholder:{date:"请选择日期",week:"请选择周",month:"请选择月份",year:"请选择年份",quarter:"请选择季度",time:"请选择时间"},rangePlaceholder:{date:["开始日期","结束日期"],week:["开始周","结束周"],month:["开始月份","结束月份"],year:["开始年份","结束年份"],quarter:["开始季度","结束季度"],time:["开始时间","结束时间"]},selectTime:"选择时间",today:"今天",now:"此刻",ok:"确定"},image:{loading:"加载中"},imagePreview:{fullScreen:"全屏",rotateRight:"向右旋转",rotateLeft:"向左旋转",zoomIn:"放大",zoomOut:"缩小",originalSize:"原始尺寸"},typography:{copied:"已复制",copy:"复制",expand:"展开",collapse:"折叠",edit:"编辑"},form:{validateMessages:{required:"#{field} 是必填项",type:{string:"#{field} 不是合法的文本类型",number:"#{field} 不是合法的数字类型",boolean:"#{field} 不是合法的布尔类型",array:"#{field} 不是合法的数组类型",object:"#{field} 不是合法的对象类型",url:"#{field} 不是合法的 url 地址",email:"#{field} 不是合法的邮箱地址",ip:"#{field} 不是合法的 IP 地址"},number:{min:"`#{value}` 小于最小值 `#{min}`",max:"`#{value}` 大于最大值 `#{max}`",equal:"`#{value}` 不等于 `#{equal}`",range:"`#{value}` 不在 `#{min} ~ #{max}` 范围内",positive:"`#{value}` 不是正数",negative:"`#{value}` 不是负数"},array:{length:"`#{field}` 个数不等于 #{length}",minLength:"`#{field}` 个数最少为 #{minLength}",maxLength:"`#{field}` 个数最多为 #{maxLength}",includes:"#{field} 不包含 #{includes}",deepEqual:"#{field} 不等于 #{deepEqual}",empty:"`#{field}` 不是空数组"},string:{minLength:"字符数最少为 #{minLength}",maxLength:"字符数最多为 #{maxLength}",length:"字符数必须是 #{length}",match:"`#{value}` 不符合模式 #{pattern}",uppercase:"`#{value}` 必须全大写",lowercase:"`#{value}` 必须全小写"},object:{deepEqual:"`#{field}` 不等于期望值",hasKeys:"`#{field}` 不包含必须字段",empty:"`#{field}` 不是对象"},boolean:{true:"期望是 `true`",false:"期望是 `false`"}}},colorPicker:{history:"最近使用颜色",preset:"系统预设颜色",empty:"暂无"}},JT=he("zh-CN"),Uk=it({"zh-CN":ote}),ste=(e,t)=>{for(const n of Object.keys(e))(!Uk[n]||t!=null&&t.overwrite)&&(Uk[n]=e[n])},ate=e=>{if(!Uk[e]){console.warn(`use ${e} failed! Please add ${e} first`);return}JT.value=e},lte=()=>JT.value,fi=()=>{const e=Dt(Or,void 0),t=P(()=>{var o;return(o=e==null?void 0:e.locale)!=null?o:Uk[JT.value]}),n=P(()=>t.value.locale);return{i18nMessage:t,locale:n,t:(o,...s)=>{const r=o.split(".");let a=t.value;for(const u of r){if(!a[u])return o;a=a[u]}return Ai(a)&&s.length>0?a.replace(/{(\d+)}/g,(u,c)=>{var l;return(l=s[c])!=null?l:u}):a}}};var cte=Object.defineProperty,ute=Object.defineProperties,dte=Object.getOwnPropertyDescriptors,L6=Object.getOwnPropertySymbols,fte=Object.prototype.hasOwnProperty,hte=Object.prototype.propertyIsEnumerable,D6=(e,t,n)=>t in e?cte(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pte=(e,t)=>{for(var n in t||(t={}))fte.call(t,n)&&D6(e,n,t[n]);if(L6)for(var n of L6(t))hte.call(t,n)&&D6(e,n,t[n]);return e},mte=(e,t)=>ute(e,dte(t));const vte="A",gte="arco",qA="$arco",Ft=e=>{var t;return(t=e==null?void 0:e.componentPrefix)!=null?t:vte},Vt=(e,t)=>{var n;t&&t.classPrefix&&(e.config.globalProperties[qA]=mte(pte({},(n=e.config.globalProperties[qA])!=null?n:{}),{classPrefix:t.classPrefix}))},de=e=>{var t,n,i;const o=Vn(),s=Dt(Or,void 0),r=(i=(n=s==null?void 0:s.prefixCls)!=null?n:(t=o==null?void 0:o.appContext.config.globalProperties[qA])==null?void 0:t.classPrefix)!=null?i:gte;return e?`${r}-${e}`:r};var OB=function(){if(typeof Map<"u")return Map;function e(t,n){var i=-1;return t.some(function(o,s){return o[0]===n?(i=s,!0):!1}),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var i=e(this.__entries__,n),o=this.__entries__[i];return o&&o[1]},t.prototype.set=function(n,i){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=i:this.__entries__.push([n,i])},t.prototype.delete=function(n){var i=this.__entries__,o=e(i,n);~o&&i.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,i){i===void 0&&(i=null);for(var o=0,s=this.__entries__;o<s.length;o++){var r=s[o];n.call(i,r[1],r[0])}},t}()}(),QA=typeof window<"u"&&typeof document<"u"&&window.document===document,Zk=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),yte=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Zk):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),bte=2;function kte(e,t){var n=!1,i=!1,o=0;function s(){n&&(n=!1,e()),i&&a()}function r(){yte(s)}function a(){var u=Date.now();if(n){if(u-o<bte)return;i=!0}else n=!0,i=!1,setTimeout(r,t);o=u}return a}var Cte=20,Ste=["top","right","bottom","left","width","height","size","weight"],wte=typeof MutationObserver<"u",_te=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=kte(this.refresh.bind(this),Cte)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,i=n.indexOf(t);~i&&n.splice(i,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!QA||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),wte?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!QA||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,i=n===void 0?"":n,o=Ste.some(function(s){return!!~i.indexOf(s)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),LB=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Np=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Zk},DB=NS(0,0,0,0);function Gk(e){return parseFloat(e)||0}function N6(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(i,o){var s=e["border-"+o+"-width"];return i+Gk(s)},0)}function Ite(e){for(var t=["top","right","bottom","left"],n={},i=0,o=t;i<o.length;i++){var s=o[i],r=e["padding-"+s];n[s]=Gk(r)}return n}function xte(e){var t=e.getBBox();return NS(0,0,t.width,t.height)}function $te(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return DB;var i=Np(e).getComputedStyle(e),o=Ite(i),s=o.left+o.right,r=o.top+o.bottom,a=Gk(i.width),u=Gk(i.height);if(i.boxSizing==="border-box"&&(Math.round(a+s)!==t&&(a-=N6(i,"left","right")+s),Math.round(u+r)!==n&&(u-=N6(i,"top","bottom")+r)),!Ete(e)){var c=Math.round(a+s)-t,l=Math.round(u+r)-n;Math.abs(c)!==1&&(a-=c),Math.abs(l)!==1&&(u-=l)}return NS(o.left,o.top,a,u)}var Ate=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Np(e).SVGGraphicsElement}:function(e){return e instanceof Np(e).SVGElement&&typeof e.getBBox=="function"}}();function Ete(e){return e===Np(e).document.documentElement}function Mte(e){return QA?Ate(e)?xte(e):$te(e):DB}function Tte(e){var t=e.x,n=e.y,i=e.width,o=e.height,s=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,r=Object.create(s.prototype);return LB(r,{x:t,y:n,width:i,height:o,top:n,right:t+i,bottom:o+n,left:t}),r}function NS(e,t,n,i){return{x:e,y:t,width:n,height:i}}var Pte=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=NS(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Mte(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Ote=function(){function e(t,n){var i=Tte(n);LB(this,{target:t,contentRect:i})}return e}(),Lte=function(){function e(t,n,i){if(this.activeObservations_=[],this.observations_=new OB,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=i}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Np(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Pte(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Np(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(i){return new Ote(i.target,i.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),NB=typeof WeakMap<"u"?new WeakMap:new OB,jB=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=_te.getInstance(),i=new Lte(t,n,this);NB.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){jB.prototype[e]=function(){var t;return(t=NB.get(this))[e].apply(t,arguments)}});var jS=function(){return typeof Zk.ResizeObserver<"u"?Zk.ResizeObserver:jB}(),j6;(function(e){e[e.ELEMENT=1]="ELEMENT",e[e.FUNCTIONAL_COMPONENT=2]="FUNCTIONAL_COMPONENT",e[e.STATEFUL_COMPONENT=4]="STATEFUL_COMPONENT",e[e.COMPONENT=6]="COMPONENT",e[e.TEXT_CHILDREN=8]="TEXT_CHILDREN",e[e.ARRAY_CHILDREN=16]="ARRAY_CHILDREN",e[e.SLOTS_CHILDREN=32]="SLOTS_CHILDREN",e[e.TELEPORT=64]="TELEPORT",e[e.SUSPENSE=128]="SUSPENSE",e[e.COMPONENT_SHOULD_KEEP_ALIVE=256]="COMPONENT_SHOULD_KEEP_ALIVE",e[e.COMPONENT_KEPT_ALIVE=512]="COMPONENT_KEPT_ALIVE"})(j6||(j6={}));var z6;(function(e){e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.DEV_ROOT_FRAGMENT=2048]="DEV_ROOT_FRAGMENT",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL"})(z6||(z6={}));const zS=e=>!!(e&&e.shapeFlag&1),d1=(e,t)=>!!(e&&e.shapeFlag&6),Dte=(e,t)=>!!(e&&e.shapeFlag&8),RS=(e,t)=>!!(e&&e.shapeFlag&16),BS=(e,t)=>!!(e&&e.shapeFlag&32),Qf=e=>{var t,n;if(e)for(const i of e){if(zS(i)||d1(i))return i;if(RS(i,i.children)){const o=Qf(i.children);if(o)return o}else if(BS(i,i.children)){const o=(n=(t=i.children).default)==null?void 0:n.call(t);if(o){const s=Qf(o);if(s)return s}}else if(Kt(i)){const o=Qf(i);if(o)return o}}},Nte=e=>{if(!e)return!0;for(const t of e)if(t.children)return!1;return!0},zB=(e,t)=>{if(e&&e.length>0)for(let n=0;n<e.length;n++){const i=e[n];if(zS(i)||d1(i)){const s=Nt(t)?t(i):t;return e[n]=Tr(i,s,!0),!0}const o=qT(i);if(o&&o.length>0&&zB(o,t))return!0}return!1},qT=e=>{if(RS(e,e.children))return e.children;if(Kt(e))return e},RB=e=>{var t,n;if(zS(e))return e.el;if(d1(e)){if(((t=e.el)==null?void 0:t.nodeType)===1)return e.el;if((n=e.component)!=null&&n.subTree){const i=RB(e.component.subTree);if(i)return i}}else{const i=qT(e);return BB(i)}},BB=e=>{if(e&&e.length>0)for(const t of e){const n=RB(t);if(n)return n}},$a=(e,t=!1)=>{var n,i;const o=[];for(const s of e??[])zS(s)||d1(s)||t&&Dte(s,s.children)?o.push(s):RS(s,s.children)?o.push(...$a(s.children,t)):BS(s,s.children)?o.push(...$a((i=(n=s.children).default)==null?void 0:i.call(n),t)):Kt(s)&&o.push(...$a(s,t));return o};function jte(e){function t(n){const i=[];return n.forEach(o=>{var s,r;On(o)&&o.type===ft?BS(o,o.children)?i.push(...t(((r=(s=o.children).default)==null?void 0:r.call(s))||[])):RS(o,o.children)?i.push(...t(o.children)):Ai(o.children)&&i.push(o.children):i.push(o)}),i}return t(e)}const ro=e=>{if(e)return Nt(e)?e:()=>e},FB=(e,t)=>{var n;const i=[];if(d1(e,e.type))e.type.name===t?e.component&&i.push(e.component.uid):(n=e.component)!=null&&n.subTree&&i.push(...FB(e.component.subTree,t));else{const o=qT(e);o&&i.push(...VB(o,t))}return i},VB=(e,t)=>{const n=[];if(e&&e.length>0)for(const i of e)n.push(...FB(i,t));return n};var Us=se({name:"ResizeObserver",emits:["resize"],setup(e,{emit:t,slots:n}){let i;const o=he(),s=P(()=>PB(o.value)?o.value.$el:o.value),r=u=>{u&&(i=new jS(c=>{const l=c[0];t("resize",l)}),i.observe(u))},a=()=>{i&&(i.disconnect(),i=null)};return gt(s,u=>{i&&a(),u&&r(u)}),Yt(()=>{s.value&&r(s.value)}),$i(()=>{a()}),()=>{var u,c;const l=Qf((c=(u=n.default)==null?void 0:u.call(n))!=null?c:[]);return l?Tr(l,{ref:o},!0):null}}});const HB=typeof window>"u"?global:window,WB=HB.requestAnimationFrame,Yk=HB.cancelAnimationFrame;function Jd(e){let t=0;const n=(...i)=>{t&&Yk(t),t=WB(()=>{e(...i),t=0})};return n.cancel=()=>{Yk(t),t=0},n}const eh=()=>{},UB=()=>{const{body:e}=document,t=document.documentElement;let n;try{n=(window.top||window.self||window).document.body}catch{}return{height:Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight,(n==null?void 0:n.scrollHeight)||0,(n==null?void 0:n.clientHeight)||0),width:Math.max(e.scrollWidth,e.offsetWidth,t.clientWidth,t.scrollWidth,t.offsetWidth,(n==null?void 0:n.scrollWidth)||0,(n==null?void 0:n.clientWidth)||0)}},f1=(()=>{try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}})(),Nn=(()=>f1?eh:(e,t,n,i=!1)=>{e.addEventListener(t,n,i)})(),Qn=(()=>f1?eh:(e,t,n,i=!1)=>{e.removeEventListener(t,n,i)})(),zte=(e,t)=>{if(!e||!t)return!1;let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1},FS=e=>{const t=document.createElement("div");return t.setAttribute("class",`arco-overlay arco-overlay-${e}`),t},ZB=(e,t)=>{var n;return f1?eh():(n=(t??document).querySelector(e))!=null?n:void 0},wa=(e,t)=>{if(Ai(e)){const n=e[0]==="#"?`[id='${e.slice(1)}']`:e;return ZB(n,t)}return e},Rte=(e,t)=>{const n=e.getBoundingClientRect(),i=t.getBoundingClientRect();return{top:n.top-i.top,bottom:i.bottom-n.bottom,left:n.left-i.left,right:i.right-n.right,width:n.width,height:n.height}},Bte=e=>e.tagName==="BODY"?document.documentElement.scrollHeight>window.innerHeight:e.scrollHeight>e.offsetHeight,Fte=e=>e.tagName==="BODY"?window.innerWidth-UB().width:e.offsetWidth-e.clientWidth;var ye=(e,t)=>{for(const[n,i]of t)e[n]=i;return e},Vte=Object.defineProperty,R6=Object.getOwnPropertySymbols,Hte=Object.prototype.hasOwnProperty,Wte=Object.prototype.propertyIsEnumerable,B6=(e,t,n)=>t in e?Vte(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F6=(e,t)=>{for(var n in t||(t={}))Hte.call(t,n)&&B6(e,n,t[n]);if(R6)for(var n of R6(t))Wte.call(t,n)&&B6(e,n,t[n]);return e};function Ute(e){return Uy(e)?{top:0,bottom:window.innerHeight}:e.getBoundingClientRect()}const Zte=se({name:"Affix",components:{ResizeObserver:Us},props:{offsetTop:{type:Number,default:0},offsetBottom:{type:Number},target:{type:[String,Object,Function]},targetContainer:{type:[String,Object,Function]}},emits:{change:e=>!0},setup(e,{emit:t}){const n=de("affix"),{target:i,targetContainer:o}=lt(e),s=he(),r=he(),a=he(!1),u=he({}),c=he({}),l=P(()=>({[n]:a.value})),g=Jd(()=>{if(!s.value||!r.value)return;const{offsetTop:C,offsetBottom:S}=e,_=jt(S)?"top":"bottom",A=s.value.getBoundingClientRect(),y=Ute(r.value);let d=!1,v={};const m={width:`${s.value.offsetWidth}px`,height:`${s.value.offsetHeight}px`};_==="top"?(d=A.top-y.top<(C||0),v=d?{position:"fixed",top:`${y.top+(C||0)}px`}:{}):(d=y.bottom-A.bottom<(S||0),v=d?{position:"fixed",bottom:`${window.innerHeight-y.bottom+(S||0)}px`}:{}),d!==a.value&&(a.value=d,t("change",d)),u.value=m,c.value=F6(F6({},v),d?m:{})});return Yt(()=>{Xi(C=>{const S=i&&i.value!==window&&wa(i.value)||window;r.value=S,S&&(Nn(S,"scroll",g),Nn(S,"resize",g),C(()=>{Qn(S,"scroll",g),Qn(S,"resize",g)}))}),Xi(C=>{if(!r.value)return;const S=o&&o.value!==window&&wa(o.value)||window;S&&(Nn(S,"scroll",g),Nn(S,"resize",g),C(()=>{Qn(S,"scroll",g),Qn(S,"resize",g)}))})}),{wrapperRef:s,isFixed:a,classNames:l,placeholderStyles:u,fixedStyles:c,updatePositionThrottle:g}},methods:{updatePosition(){this.updatePositionThrottle()}}}),Gte={ref:"wrapperRef"};function Yte(e,t,n,i,o,s){const r=Pe("ResizeObserver");return R(),We(r,{onResize:e.updatePositionThrottle},{default:Ve(()=>[B("div",Gte,[e.isFixed?(R(),X("div",{key:0,style:Te(e.placeholderStyles)},null,4)):Re("v-if",!0),B("div",{class:G(e.classNames),style:Te(e.fixedStyles)},[O(r,{onResize:e.updatePositionThrottle},{default:Ve(()=>[He(e.$slots,"default")]),_:3},8,["onResize"])],6)],512)]),_:3},8,["onResize"])}var c_=ye(Zte,[["render",Yte]]);const Xte=Object.assign(c_,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+c_.name,c_)}}),Kte=se({name:"IconHover",props:{prefix:{type:String},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},setup(){return{prefixCls:de("icon-hover")}}});function Jte(e,t,n,i,o,s){return R(),X("span",{class:G([e.prefixCls,{[`${e.prefix}-icon-hover`]:e.prefix,[`${e.prefixCls}-size-${e.size}`]:e.size!=="medium",[`${e.prefixCls}-disabled`]:e.disabled}])},[He(e.$slots,"default")],2)}var ai=ye(Kte,[["render",Jte]]);const qte=se({name:"IconClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-close`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Qte=["stroke-width","stroke-linecap","stroke-linejoin"],ene=B("path",{d:"M9.857 9.858 24 24m0 0 14.142 14.142M24 24 38.142 9.858M24 24 9.857 38.142"},null,-1),tne=[ene];function nne(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},tne,14,Qte)}var u_=ye(qte,[["render",nne]]);const Cr=Object.assign(u_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+u_.name,u_)}}),ine=se({name:"IconInfoCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-info-circle-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),rne=["stroke-width","stroke-linecap","stroke-linejoin"],one=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-30a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2Zm0 17h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-8a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v11Z",fill:"currentColor",stroke:"none"},null,-1),sne=[one];function ane(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},sne,14,rne)}var d_=ye(ine,[["render",ane]]);const Kp=Object.assign(d_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+d_.name,d_)}}),lne=se({name:"IconCheckCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-check-circle-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),cne=["stroke-width","stroke-linecap","stroke-linejoin"],une=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm10.207-24.379a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0L22 26.172l-4.878-4.88a1 1 0 0 0-1.415 0l-1.414 1.415a1 1 0 0 0 0 1.414l7 7a1 1 0 0 0 1.414 0l11.5-11.5Z",fill:"currentColor",stroke:"none"},null,-1),dne=[une];function fne(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},dne,14,cne)}var f_=ye(lne,[["render",fne]]);const ru=Object.assign(f_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+f_.name,f_)}}),hne=se({name:"IconExclamationCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-exclamation-circle-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),pne=["stroke-width","stroke-linecap","stroke-linejoin"],mne=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-2-11a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",fill:"currentColor",stroke:"none"},null,-1),vne=[mne];function gne(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},vne,14,pne)}var h_=ye(hne,[["render",gne]]);const Ta=Object.assign(h_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+h_.name,h_)}}),yne=se({name:"IconCloseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-close-circle-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),bne=["stroke-width","stroke-linecap","stroke-linejoin"],kne=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm4.955-27.771-4.95 4.95-4.95-4.95a1 1 0 0 0-1.414 0l-1.414 1.414a1 1 0 0 0 0 1.414l4.95 4.95-4.95 4.95a1 1 0 0 0 0 1.414l1.414 1.414a1 1 0 0 0 1.414 0l4.95-4.95 4.95 4.95a1 1 0 0 0 1.414 0l1.414-1.414a1 1 0 0 0 0-1.414l-4.95-4.95 4.95-4.95a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0Z",fill:"currentColor",stroke:"none"},null,-1),Cne=[kne];function Sne(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Cne,14,bne)}var p_=ye(yne,[["render",Sne]]);const uf=Object.assign(p_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+p_.name,p_)}}),wne=se({name:"Alert",components:{IconHover:ai,IconClose:Cr,IconInfoCircleFill:Kp,IconCheckCircleFill:ru,IconExclamationCircleFill:Ta,IconCloseCircleFill:uf},props:{type:{type:String,default:"info"},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},title:String,banner:{type:Boolean,default:!1},center:{type:Boolean,default:!1}},emits:{close:e=>!0,afterClose:()=>!0},setup(e,{slots:t,emit:n}){const i=de("alert"),o=he(!0),s=u=>{o.value=!1,n("close",u)},r=()=>{n("afterClose")},a=P(()=>[i,`${i}-${e.type}`,{[`${i}-with-title`]:!!(e.title||t.title),[`${i}-banner`]:e.banner,[`${i}-center`]:e.center}]);return{prefixCls:i,cls:a,visible:o,handleClose:s,handleAfterLeave:r}}});function _ne(e,t,n,i,o,s){const r=Pe("icon-info-circle-fill"),a=Pe("icon-check-circle-fill"),u=Pe("icon-exclamation-circle-fill"),c=Pe("icon-close-circle-fill"),l=Pe("icon-close"),g=Pe("icon-hover");return R(),We(Pr,{name:"zoom-in-top",onAfterLeave:e.handleAfterLeave},{default:Ve(()=>[e.visible?(R(),X("div",{key:0,role:"alert",class:G(e.cls)},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(R(),X("div",{key:0,class:G(`${e.prefixCls}-icon`)},[He(e.$slots,"icon",{},()=>[e.type==="info"?(R(),We(r,{key:0})):e.type==="success"?(R(),We(a,{key:1})):e.type==="warning"?(R(),We(u,{key:2})):e.type==="error"?(R(),We(c,{key:3})):Re("v-if",!0)])],2)):Re("v-if",!0),B("div",{class:G(`${e.prefixCls}-body`)},[e.title||e.$slots.title?(R(),X("div",{key:0,class:G(`${e.prefixCls}-title`)},[He(e.$slots,"title",{},()=>[pt(tt(e.title),1)])],2)):Re("v-if",!0),B("div",{class:G(`${e.prefixCls}-content`)},[He(e.$slots,"default")],2)],2),e.$slots.action?(R(),X("div",{key:1,class:G(`${e.prefixCls}-action`)},[He(e.$slots,"action")],2)):Re("v-if",!0),e.closable?(R(),X("div",{key:2,tabindex:"-1",role:"button","aria-label":"Close",class:G(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...C)=>e.handleClose&&e.handleClose(...C))},[He(e.$slots,"close-element",{},()=>[O(g,null,{default:Ve(()=>[O(l)]),_:1})])],2)):Re("v-if",!0)],2)):Re("v-if",!0)]),_:3},8,["onAfterLeave"])}var m_=ye(wne,[["render",_ne]]);const GB=Object.assign(m_,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+m_.name,m_)}});function V6(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function H6(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function v_(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return H6(n.overflowY,t)||H6(n.overflowX,t)||function(i){var o=function(s){if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}}(i);return!!o&&(o.clientHeight<i.scrollHeight||o.clientWidth<i.scrollWidth)}(e)}return!1}function Cy(e,t,n,i,o,s,r,a){return s<e&&r>t||s>e&&r<t?0:s<=e&&a<=n||r>=t&&a>=n?s-e-i:r>t&&a<n||s<e&&a>n?r-t+o:0}var eE=function(e,t){var n=window,i=t.scrollMode,o=t.block,s=t.inline,r=t.boundary,a=t.skipOverflowHiddenElements,u=typeof r=="function"?r:function(Z){return Z!==r};if(!V6(e))throw new TypeError("Invalid target");for(var c,l,g=document.scrollingElement||document.documentElement,C=[],S=e;V6(S)&&u(S);){if((S=(l=(c=S).parentElement)==null?c.getRootNode().host||null:l)===g){C.push(S);break}S!=null&&S===document.body&&v_(S)&&!v_(document.documentElement)||S!=null&&v_(S,a)&&C.push(S)}for(var _=n.visualViewport?n.visualViewport.width:innerWidth,A=n.visualViewport?n.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,d=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),m=v.height,f=v.width,p=v.top,h=v.right,b=v.bottom,w=v.left,k=o==="start"||o==="nearest"?p:o==="end"?b:p+m/2,$=s==="center"?w+f/2:s==="end"?h:w,E=[],N=0;N<C.length;N++){var j=C[N],z=j.getBoundingClientRect(),V=z.height,W=z.width,H=z.top,U=z.right,Q=z.bottom,q=z.left;if(i==="if-needed"&&p>=0&&w>=0&&b<=A&&h<=_&&p>=H&&b<=Q&&w>=q&&h<=U)return E;var ae=getComputedStyle(j),ne=parseInt(ae.borderLeftWidth,10),be=parseInt(ae.borderTopWidth,10),te=parseInt(ae.borderRightWidth,10),Ie=parseInt(ae.borderBottomWidth,10),$e=0,Me=0,ge="offsetWidth"in j?j.offsetWidth-j.clientWidth-ne-te:0,Se="offsetHeight"in j?j.offsetHeight-j.clientHeight-be-Ie:0,fe="offsetWidth"in j?j.offsetWidth===0?0:W/j.offsetWidth:0,pe="offsetHeight"in j?j.offsetHeight===0?0:V/j.offsetHeight:0;if(g===j)$e=o==="start"?k:o==="end"?k-A:o==="nearest"?Cy(d,d+A,A,be,Ie,d+k,d+k+m,m):k-A/2,Me=s==="start"?$:s==="center"?$-_/2:s==="end"?$-_:Cy(y,y+_,_,ne,te,y+$,y+$+f,f),$e=Math.max(0,$e+d),Me=Math.max(0,Me+y);else{$e=o==="start"?k-H-be:o==="end"?k-Q+Ie+Se:o==="nearest"?Cy(H,Q,V,be,Ie+Se,k,k+m,m):k-(H+V/2)+Se/2,Me=s==="start"?$-q-ne:s==="center"?$-(q+W/2)+ge/2:s==="end"?$-U+te+ge:Cy(q,U,W,ne,te+ge,$,$+f,f);var je=j.scrollLeft,Y=j.scrollTop;k+=Y-($e=Math.max(0,Math.min(Y+$e/pe,j.scrollHeight-V/pe+Se))),$+=je-(Me=Math.max(0,Math.min(je+Me/fe,j.scrollWidth-W/fe+ge)))}E.push({el:j,top:$e,left:Me})}return E},h1=function(e){return function(t){return Math.pow(t,e)}},p1=function(e){return function(t){return 1-Math.abs(Math.pow(t-1,e))}},VS=function(e){return function(t){return t<.5?h1(e)(t*2)/2:p1(e)(t*2-1)/2+.5}},Ine=function(e){return e},xne=h1(2),$ne=p1(2),Ane=VS(2),Ene=h1(3),Mne=p1(3),Tne=VS(3),Pne=h1(4),One=p1(4),Lne=VS(4),Dne=h1(5),Nne=p1(5),jne=VS(5),zne=function(e){return 1+Math.sin(Math.PI/2*e-Math.PI/2)},Rne=function(e){return Math.sin(Math.PI/2*e)},Bne=function(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2},QT=function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?(e-=1.5/n,t*e*e+.75):e<2.5/n?(e-=2.25/n,t*e*e+.9375):(e-=2.625/n,t*e*e+.984375)},YB=function(e){return 1-QT(1-e)},Fne=function(e){return e<.5?YB(e*2)*.5:QT(e*2-1)*.5+.5},Vne=Object.freeze({linear:Ine,quadIn:xne,quadOut:$ne,quadInOut:Ane,cubicIn:Ene,cubicOut:Mne,cubicInOut:Tne,quartIn:Pne,quartOut:One,quartInOut:Lne,quintIn:Dne,quintOut:Nne,quintInOut:jne,sineIn:zne,sineOut:Rne,sineInOut:Bne,bounceOut:QT,bounceIn:YB,bounceInOut:Fne}),df=function(t){var n=t.from,i=t.to,o=t.duration,s=t.delay,r=t.easing,a=t.onStart,u=t.onUpdate,c=t.onFinish;for(var l in n)i[l]===void 0&&(i[l]=n[l]);for(var g in i)n[g]===void 0&&(n[g]=i[g]);this.from=n,this.to=i,this.duration=o||500,this.delay=s||0,this.easing=r||"linear",this.onStart=a,this.onUpdate=u||function(){},this.onFinish=c,this.startTime=Date.now()+this.delay,this.started=!1,this.finished=!1,this.timer=null,this.keys={}};df.prototype.update=function(){if(this.time=Date.now(),!(this.time<this.startTime)&&!this.finished){if(this.elapsed===this.duration){this.finished||(this.finished=!0,this.onFinish&&this.onFinish(this.keys));return}this.elapsed=this.time-this.startTime,this.elapsed=this.elapsed>this.duration?this.duration:this.elapsed;for(var t in this.to)this.keys[t]=this.from[t]+(this.to[t]-this.from[t])*Vne[this.easing](this.elapsed/this.duration);this.started||(this.onStart&&this.onStart(this.keys),this.started=!0),this.onUpdate(this.keys)}};df.prototype.start=function(){var t=this;this.startTime=Date.now()+this.delay;var n=function(){t.update(),t.timer=requestAnimationFrame(n),t.finished&&(cancelAnimationFrame(t.timer),t.timer=null)};n()};df.prototype.stop=function(){cancelAnimationFrame(this.timer),this.timer=null};function Hne(e,t,n){new df({from:{scrollTop:e.scrollTop},to:{scrollTop:t},easing:"quartOut",duration:300,onUpdate:o=>{e.scrollTop=o.scrollTop},onFinish:()=>{Nt(n)&&n()}}).start()}const XB=Symbol("ArcoAnchor"),Wne=["start","end","center","nearest"],Une=se({name:"Anchor",props:{boundary:{type:[Number,String],default:"start",validator:e=>Le(e)||Wne.includes(e)},lineLess:{type:Boolean,default:!1},scrollContainer:{type:[String,Object]},changeHash:{type:Boolean,default:!0},smooth:{type:Boolean,default:!0}},emits:{select:(e,t)=>!0,change:e=>!0},setup(e,{emit:t}){const n=de("anchor"),i=he(),o=he(),s=it({}),r=he(""),a=he(!1),u=he(),c=he(),l=(p,h)=>{p&&(s[p]=h)},g=p=>{delete s[p]},C=(p,h)=>{e.changeHash||p.preventDefault(),h&&(S(h),A(h)),t("select",h,r.value)},S=p=>{try{const h=wa(p);if(!h)return;let b,w=0;Le(e.boundary)?(b="start",w=e.boundary):b=e.boundary;const k=eE(h,{block:b});if(!k.length)return;const{el:$,top:E}=k[0],N=E-w;Hne($,N,()=>{a.value=!1}),a.value=!0}catch(h){console.error(h)}},_=Jd(()=>{if(a.value)return;const p=y();if(p&&p.id){const h=`#${p.id}`;A(h)}}),A=p=>{if(!s[p]&&i.value){const h=wa(`a[data-href='${p}']`,i.value);if(!h)return;s[p]=h}p!==r.value&&(r.value=p,fn(()=>{t("change",p)}))},y=()=>{if(!u.value||!c.value)return;const p=Le(e.boundary)?e.boundary:0,h=c.value.getBoundingClientRect();for(const b of Object.keys(s)){const w=wa(b);if(w){const{top:k}=w.getBoundingClientRect(),$=Uy(u.value)?k-p:k-h.top-p;if($>=0&&$<=h.height/2)return w}}};gt(r,()=>{const p=s[r.value];!e.lineLess&&p&&o.value&&(o.value.style.top=`${p.offsetTop}px`)});const d=()=>{u.value&&Nn(u.value,"scroll",_)},v=()=>{u.value&&Qn(u.value,"scroll",_)},m=()=>{e.scrollContainer?(u.value=Uy(e.scrollContainer)?window:wa(e.scrollContainer),c.value=Uy(e.scrollContainer)?document.documentElement:wa(e.scrollContainer)):(u.value=window,c.value=document.documentElement)};Yt(()=>{m();const p=decodeURIComponent(window.location.hash);p?(S(p),A(p)):_(),d()}),ei(()=>{v()}),cn(XB,it({currentLink:r,addLink:l,removeLink:g,handleClick:C}));const f=P(()=>[n,{[`${n}-line-less`]:e.lineLess}]);return{prefixCls:n,cls:f,anchorRef:i,lineSliderRef:o}}});function Zne(e,t,n,i,o,s){return R(),X("div",{ref:"anchorRef",class:G(e.cls)},[e.lineLess?Re("v-if",!0):(R(),X("div",{key:0,ref:"lineSliderRef",class:G(`${e.prefixCls}-line-slider`)},null,2)),B("ul",{class:G(`${e.prefixCls}-list`)},[He(e.$slots,"default")],2)],2)}var g_=ye(Une,[["render",Zne]]);const Gne=se({name:"AnchorLink",props:{title:String,href:String},setup(e){const t=de("anchor"),n=`${t}-link`,i=he(),o=Dt(XB,void 0);Yt(()=>{e.href&&i.value&&(o==null||o.addLink(e.href,i.value))});const s=P(()=>[`${n}-item`,{[`${n}-active`]:(o==null?void 0:o.currentLink)===e.href}]);return{prefixCls:t,linkCls:n,cls:s,linkRef:i,handleClick:a=>o==null?void 0:o.handleClick(a,e.href)}}}),Yne=["href"];function Xne(e,t,n,i,o,s){return R(),X("li",{ref:"linkRef",class:G(e.cls)},[B("a",{class:G(e.linkCls),href:e.href,onClick:t[0]||(t[0]=(...r)=>e.handleClick&&e.handleClick(...r))},[He(e.$slots,"default",{},()=>[pt(tt(e.title),1)])],10,Yne),e.$slots.sublist?(R(),X("ul",{key:0,class:G(`${e.prefixCls}-sublist`)},[He(e.$slots,"sublist")],2)):Re("v-if",!0)],2)}var Zy=ye(Gne,[["render",Xne]]);const Kne=Object.assign(g_,{Link:Zy,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+g_.name,g_),e.component(n+Zy.name,Zy)}}),HS=["info","success","warning","error"],Jc=["onFocus","onFocusin","onFocusout","onBlur","onChange","onBeforeinput","onInput","onReset","onSubmit","onInvalid","onKeydown","onKeypress","onKeyup","onCopy","onCut","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onSelect","autocomplete","autofocus","maxlength","minlength","name","pattern","readonly","required"],Jne=se({name:"IconLoading",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-loading`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),qne=["stroke-width","stroke-linecap","stroke-linejoin"],Qne=B("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"},null,-1),eie=[Qne];function tie(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},eie,14,qne)}var y_=ye(Jne,[["render",tie]]);const Lr=Object.assign(y_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+y_.name,y_)}}),nie=se({name:"FeedbackIcon",components:{IconLoading:Lr,IconCheckCircleFill:ru,IconExclamationCircleFill:Ta,IconCloseCircleFill:uf},props:{type:{type:String}},setup(e){const t=de("feedback-icon");return{cls:P(()=>[t,`${t}-status-${e.type}`])}}});function iie(e,t,n,i,o,s){const r=Pe("icon-loading"),a=Pe("icon-check-circle-fill"),u=Pe("icon-exclamation-circle-fill"),c=Pe("icon-close-circle-fill");return R(),X("span",{class:G(e.cls)},[e.type==="validating"?(R(),We(r,{key:0})):e.type==="success"?(R(),We(a,{key:1})):e.type==="warning"?(R(),We(u,{key:2})):e.type==="error"?(R(),We(c,{key:3})):Re("v-if",!0)],2)}var m1=ye(nie,[["render",iie]]);const eP={key:"Enter",code:"Enter"},KB={key:"Backspace",code:"Backspace"},rie={key:"ArrowLeft",code:"ArrowLeft"},oie={key:"ArrowRight",code:"ArrowRight"};var sie=Object.defineProperty,W6=Object.getOwnPropertySymbols,aie=Object.prototype.hasOwnProperty,lie=Object.prototype.propertyIsEnumerable,U6=(e,t,n)=>t in e?sie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cie=(e,t)=>{for(var n in t||(t={}))aie.call(t,n)&&U6(e,n,t[n]);if(W6)for(var n of W6(t))lie.call(t,n)&&U6(e,n,t[n]);return e};const kr=(e,t)=>{const n=cie({},e);for(const i of t)i in n&&delete n[i];return n};function Ea(e,t){const n={};return t.forEach(i=>{const o=i;i in e&&(n[o]=e[o])}),n}const tE=Symbol("ArcoFormItemContext"),tP=Symbol("ArcoFormContext"),li=({size:e,disabled:t,error:n,uninject:i}={})=>{const o=i?{}:Dt(tE,{}),s=P(()=>{var l;return(l=e==null?void 0:e.value)!=null?l:o.size}),r=P(()=>(t==null?void 0:t.value)||o.disabled),a=P(()=>(n==null?void 0:n.value)||o.error),u=lo(o,"feedback"),c=lo(o,"eventHandlers");return{formItemCtx:o,mergedSize:s,mergedDisabled:r,mergedError:a,feedback:u,eventHandlers:c}},Sr=(e,{defaultValue:t="medium"}={})=>{const n=Dt(Or,void 0);return{mergedSize:P(()=>{var o,s;return(s=(o=e==null?void 0:e.value)!=null?o:n==null?void 0:n.size)!=null?s:t})}};function JB(e){const t=he();function n(){if(!e.value)return;const{selectionStart:o,selectionEnd:s,value:r}=e.value;if(o==null||s==null)return;const a=r.slice(0,Math.max(0,o)),u=r.slice(Math.max(0,s));t.value={selectionStart:o,selectionEnd:s,value:r,beforeTxt:a,afterTxt:u}}function i(){if(!e.value||!t.value)return;const{value:o}=e.value,{beforeTxt:s,afterTxt:r,selectionStart:a}=t.value;if(!s||!r||!a)return;let u=o.length;if(o.endsWith(r))u=o.length-r.length;else if(o.startsWith(s))u=s.length;else{const c=s[a-1],l=o.indexOf(c,a-1);l!==-1&&(u=l+1)}e.value.setSelectionRange(u,u)}return[n,i]}var uie=Object.defineProperty,Z6=Object.getOwnPropertySymbols,die=Object.prototype.hasOwnProperty,fie=Object.prototype.propertyIsEnumerable,G6=(e,t,n)=>t in e?uie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y6=(e,t)=>{for(var n in t||(t={}))die.call(t,n)&&G6(e,n,t[n]);if(Z6)for(var n of Z6(t))fie.call(t,n)&&G6(e,n,t[n]);return e},lv=se({name:"Input",inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},size:{type:String},allowClear:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},error:{type:Boolean,default:!1},placeholder:String,maxLength:{type:[Number,Object],default:0},showWordLimit:{type:Boolean,default:!1},wordLength:{type:Function},wordSlice:{type:Function},inputAttrs:{type:Object},type:{type:String,default:"text"}},emits:{"update:modelValue":e=>!0,input:(e,t)=>!0,change:(e,t)=>!0,pressEnter:e=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n,attrs:i}){const{size:o,disabled:s,error:r,modelValue:a}=lt(e),u=de("input"),c=he(),{mergedSize:l,mergedDisabled:g,mergedError:C,feedback:S,eventHandlers:_}=li({size:o,disabled:s,error:r}),{mergedSize:A}=Sr(l),[y,d]=JB(c),v=he(e.defaultValue),m=P(()=>{var Y;return(Y=e.modelValue)!=null?Y:v.value});gt(a,Y=>{(jt(Y)||Xr(Y))&&(v.value="")});let f=m.value;const p=he(!1),h=P(()=>e.allowClear&&!e.readonly&&!g.value&&!!m.value),b=he(!1),w=he(""),k=Y=>{var Z;return Nt(e.wordLength)?e.wordLength(Y):(Z=Y.length)!=null?Z:0},$=P(()=>k(m.value)),E=P(()=>C.value||!!(rn(e.maxLength)&&e.maxLength.errorOnly&&$.value>j.value)),N=P(()=>rn(e.maxLength)&&!!e.maxLength.errorOnly),j=P(()=>rn(e.maxLength)?e.maxLength.length:e.maxLength),z=P(()=>{const Y=k("a");return Math.floor(j.value/Y)}),V=Y=>{var Z,ee;j.value&&!N.value&&k(Y)>j.value&&(Y=(ee=(Z=e.wordSlice)==null?void 0:Z.call(e,Y,j.value))!=null?ee:Y.slice(0,z.value)),v.value=Y,t("update:modelValue",Y)},W=Y=>{c.value&&Y.target!==c.value&&(Y.preventDefault(),c.value.focus())},H=(Y,Z)=>{var ee,ce;Y!==f&&(f=Y,t("change",Y,Z),(ce=(ee=_.value)==null?void 0:ee.onChange)==null||ce.call(ee,Z))},U=Y=>{var Z,ee;p.value=!0,f=m.value,t("focus",Y),(ee=(Z=_.value)==null?void 0:Z.onFocus)==null||ee.call(Z,Y)},Q=Y=>{var Z,ee;p.value=!1,H(m.value,Y),t("blur",Y),(ee=(Z=_.value)==null?void 0:Z.onBlur)==null||ee.call(Z,Y)},q=Y=>{var Z,ee,ce;const{value:xe,selectionStart:re,selectionEnd:le}=Y.target;if(Y.type==="compositionend"){if(b.value=!1,w.value="",j.value&&!N.value&&$.value>=j.value&&k(xe)>j.value&&re===le){ae();return}V(xe),t("input",xe,Y),(ee=(Z=_.value)==null?void 0:Z.onInput)==null||ee.call(Z,Y),ae()}else b.value=!0,w.value=m.value+((ce=Y.data)!=null?ce:"")},ae=()=>{y(),fn(()=>{c.value&&m.value!==c.value.value&&(c.value.value=m.value,d())})},ne=Y=>{var Z,ee;const{value:ce}=Y.target;if(!b.value){if(j.value&&!N.value&&$.value>=j.value&&k(ce)>j.value&&Y.inputType==="insertText"){ae();return}V(ce),t("input",ce,Y),(ee=(Z=_.value)==null?void 0:Z.onInput)==null||ee.call(Z,Y),ae()}},be=Y=>{V(""),H("",Y),t("clear",Y)},te=Y=>{const Z=Y.key||Y.code;!b.value&&Z===eP.key&&(H(m.value,Y),t("pressEnter",Y))},Ie=P(()=>[`${u}-outer`,`${u}-outer-size-${A.value}`,{[`${u}-outer-has-suffix`]:!!n.suffix,[`${u}-outer-disabled`]:g.value}]),$e=P(()=>[`${u}-wrapper`,{[`${u}-error`]:E.value,[`${u}-disabled`]:g.value,[`${u}-focus`]:p.value}]),Me=P(()=>[u,`${u}-size-${A.value}`]),ge=P(()=>kr(i,Jc)),Se=P(()=>Ea(i,Jc)),fe=P(()=>{const Y=Y6(Y6({},Se.value),e.inputAttrs);return E.value&&(Y["aria-invalid"]=!0),Y}),pe=Y=>{var Z;return O("span",Qe({class:$e.value,onMousedown:W},Y?void 0:ge.value),[n.prefix&&O("span",{class:`${u}-prefix`},[n.prefix()]),O("input",Qe({ref:c,class:Me.value,value:m.value,type:e.type,placeholder:e.placeholder,readonly:e.readonly,disabled:g.value,onInput:ne,onKeydown:te,onFocus:U,onBlur:Q,onCompositionstart:q,onCompositionupdate:q,onCompositionend:q},fe.value),null),h.value&&O(ai,{prefix:u,class:`${u}-clear-btn`,onClick:be},{default:()=>[O(Cr,null,null)]}),(n.suffix||!!e.maxLength&&e.showWordLimit||!!S.value)&&O("span",{class:[`${u}-suffix`,{[`${u}-suffix-has-feedback`]:S.value}]},[!!e.maxLength&&e.showWordLimit&&O("span",{class:`${u}-word-limit`},[$.value,pt("/"),j.value]),(Z=n.suffix)==null?void 0:Z.call(n),!!S.value&&O(m1,{type:S.value},null)])])};return{inputRef:c,render:()=>n.prepend||n.append?O("span",Qe({class:Ie.value},ge.value),[n.prepend&&O("span",{class:`${u}-prepend`},[n.prepend()]),pe(!0),n.append&&O("span",{class:`${u}-append`},[n.append()])]):pe()}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const hie=se({name:"IconSearch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-search`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),pie=["stroke-width","stroke-linecap","stroke-linejoin"],mie=B("path",{d:"M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485"},null,-1),vie=[mie];function gie(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},vie,14,pie)}var b_=ye(hie,[["render",gie]]);const Xk=Object.assign(b_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+b_.name,b_)}}),qB=Symbol("ArcoButtonGroup"),yie=se({name:"Button",components:{IconLoading:Lr},props:{type:{type:String},shape:{type:String},status:{type:String},size:{type:String},long:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean},htmlType:{type:String,default:"button"},autofocus:{type:Boolean,default:!1},href:String},emits:{click:e=>!0},setup(e,{emit:t}){const{size:n,disabled:i}=lt(e),o=de("btn"),s=Dt(qB,void 0),r=P(()=>{var S;return(S=n.value)!=null?S:s==null?void 0:s.size}),a=P(()=>!!(i.value||s!=null&&s.disabled)),{mergedSize:u,mergedDisabled:c}=li({size:r,disabled:a}),{mergedSize:l}=Sr(u),g=P(()=>{var S,_,A,y,d,v;return[o,`${o}-${(_=(S=e.type)!=null?S:s==null?void 0:s.type)!=null?_:"secondary"}`,`${o}-shape-${(y=(A=e.shape)!=null?A:s==null?void 0:s.shape)!=null?y:"square"}`,`${o}-size-${l.value}`,`${o}-status-${(v=(d=e.status)!=null?d:s==null?void 0:s.status)!=null?v:"normal"}`,{[`${o}-long`]:e.long,[`${o}-loading`]:e.loading,[`${o}-disabled`]:c.value,[`${o}-link`]:Ai(e.href)}]});return{prefixCls:o,cls:g,mergedDisabled:c,handleClick:S=>{if(e.disabled||e.loading){S.preventDefault();return}t("click",S)}}}}),bie=["href"],kie=["type","disabled","autofocus"];function Cie(e,t,n,i,o,s){const r=Pe("icon-loading");return e.href?(R(),X("a",{key:0,class:G([e.cls,{[`${e.prefixCls}-only-icon`]:e.$slots.icon&&!e.$slots.default}]),href:e.mergedDisabled||e.loading?void 0:e.href,onClick:t[0]||(t[0]=(...a)=>e.handleClick&&e.handleClick(...a))},[e.loading||e.$slots.icon?(R(),X("span",{key:0,class:G(`${e.prefixCls}-icon`)},[e.loading?(R(),We(r,{key:0,spin:"true"})):He(e.$slots,"icon",{key:1})],2)):Re("v-if",!0),He(e.$slots,"default")],10,bie)):(R(),X("button",{key:1,class:G([e.cls,{[`${e.prefixCls}-only-icon`]:e.$slots.icon&&!e.$slots.default}]),type:e.htmlType,disabled:e.mergedDisabled,autofocus:e.autofocus,onClick:t[1]||(t[1]=(...a)=>e.handleClick&&e.handleClick(...a))},[e.loading||e.$slots.icon?(R(),X("span",{key:0,class:G(`${e.prefixCls}-icon`)},[e.loading?(R(),We(r,{key:0,spin:!0})):He(e.$slots,"icon",{key:1})],2)):Re("v-if",!0),He(e.$slots,"default")],10,kie))}var k_=ye(yie,[["render",Cie]]);const Sie=se({name:"ButtonGroup",props:{type:{type:String},status:{type:String},shape:{type:String},size:{type:String},disabled:{type:Boolean}},setup(e){const{type:t,size:n,status:i,disabled:o,shape:s}=lt(e),r=de("btn-group");return cn(qB,it({type:t,size:n,shape:s,status:i,disabled:o})),{prefixCls:r}}});function wie(e,t,n,i,o,s){return R(),X("div",{class:G(e.prefixCls)},[He(e.$slots,"default")],2)}var cv=ye(Sie,[["render",wie]]);const Yr=Object.assign(k_,{Group:cv,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+k_.name,k_),e.component(n+cv.name,cv)}});var Gy=se({name:"InputSearch",props:{searchButton:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String},buttonText:{type:String},buttonProps:{type:Object}},emits:{search:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{size:i}=lt(e),o=de("input-search"),{mergedSize:s}=Sr(i),r=he(),a=g=>{r.value.inputRef&&t("search",r.value.inputRef.value,g)},u=()=>{var g;return O(ft,null,[e.loading?O(Lr,null,null):O(ai,{onClick:a},{default:()=>[O(Xk,null,null)]}),(g=n.suffix)==null?void 0:g.call(n)])},c=()=>{var g;let C={};return e.buttonText||n["button-default"]||n["button-icon"]?C={default:(g=n["button-default"])!=null?g:e.buttonText?()=>e.buttonText:void 0,icon:n["button-icon"]}:C={icon:()=>O(Xk,null,null)},O(Yr,Qe({type:"primary",class:`${o}-btn`,disabled:e.disabled,size:s.value,loading:e.loading},e.buttonProps,{onClick:a}),C)};return{inputRef:r,render:()=>O(lv,{ref:r,class:o,size:s.value,disabled:e.disabled},{prepend:n.prepend,prefix:n.prefix,suffix:e.searchButton?n.suffix:u,append:e.searchButton?c:n.append})}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const _ie=se({name:"IconEye",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-eye`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Iie=["stroke-width","stroke-linecap","stroke-linejoin"],xie=B("path",{"clip-rule":"evenodd",d:"M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z"},null,-1),$ie=B("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"},null,-1),Aie=[xie,$ie];function Eie(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Aie,14,Iie)}var C_=ye(_ie,[["render",Eie]]);const nP=Object.assign(C_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+C_.name,C_)}}),Mie=se({name:"IconEyeInvisible",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-eye-invisible`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Tie=["stroke-width","stroke-linecap","stroke-linejoin"],Pie=B("path",{d:"M14 14.5c-2.69 2-5.415 5.33-8 9.5 5.373 8.667 11.373 13 18 13 3.325 0 6.491-1.09 9.5-3.271M17.463 12.5C19 11 21.75 11 24 11c6.627 0 12.627 4.333 18 13-1.766 2.848-3.599 5.228-5.5 7.14"},null,-1),Oie=B("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0ZM6.852 7.103l34.294 34.294"},null,-1),Lie=[Pie,Oie];function Die(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Lie,14,Tie)}var S_=ye(Mie,[["render",Die]]);const QB=Object.assign(S_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+S_.name,S_)}});function Er(e){const t=he(e);return[t,i=>{t.value=i}]}function cr(e,t){const{value:n}=lt(t),[i,o]=Er(jt(n.value)?e:n.value);return gt(n,r=>{jt(r)&&o(void 0)}),[P(()=>jt(n.value)?i.value:n.value),o,i]}const Nie=se({name:"InputPassword",components:{IconEye:nP,IconEyeInvisible:QB,AIconHover:ai,AInput:lv},props:{visibility:{type:Boolean,default:void 0},defaultVisibility:{type:Boolean,default:!0},invisibleButton:{type:Boolean,default:!0}},emits:["visibility-change","update:visibility"],setup(e,{emit:t}){const{visibility:n,defaultVisibility:i}=lt(e),o=he(),s=()=>{u(!r.value)},[r,a]=cr(i.value,it({value:n})),u=c=>{c!==r.value&&(t("visibility-change",c),t("update:visibility",c),a(c))};return{inputRef:o,mergedVisible:r,handleInvisible:s}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}}});function jie(e,t,n,i,o,s){const r=Pe("icon-eye"),a=Pe("icon-eye-invisible"),u=Pe("a-icon-hover"),c=Pe("a-input");return R(),We(c,{ref:"inputRef",type:e.mergedVisible?"password":"text"},ti({_:2},[e.$slots.prepend?{name:"prepend",fn:Ve(()=>[He(e.$slots,"prepend")])}:void 0,e.$slots.prefix?{name:"prefix",fn:Ve(()=>[He(e.$slots,"prefix")])}:void 0,e.invisibleButton||e.$slots.suffix?{name:"suffix",fn:Ve(()=>[e.invisibleButton?(R(),We(u,{key:0,onClick:e.handleInvisible,onMousedown:t[0]||(t[0]=oo(()=>{},["prevent"])),onMouseup:t[1]||(t[1]=oo(()=>{},["prevent"]))},{default:Ve(()=>[e.mergedVisible?(R(),We(a,{key:1})):(R(),We(r,{key:0}))]),_:1},8,["onClick"])):Re("v-if",!0),He(e.$slots,"suffix")])}:void 0,e.$slots.append?{name:"append",fn:Ve(()=>[He(e.$slots,"append")])}:void 0]),1032,["type"])}var Yy=ye(Nie,[["render",jie]]);const zie=se({name:"InputGroup",setup(){return{prefixCls:de("input-group")}}});function Rie(e,t,n,i,o,s){return R(),X("div",{class:G(e.prefixCls)},[He(e.$slots,"default")],2)}var th=ye(zie,[["render",Rie]]);const ou=Object.assign(lv,{Search:Gy,Password:Yy,Group:th,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+lv.name,lv),e.component(n+th.name,th),e.component(n+Gy.name,Gy),e.component(n+Yy.name,Yy)}});var Bie=Object.defineProperty,X6=Object.getOwnPropertySymbols,Fie=Object.prototype.hasOwnProperty,Vie=Object.prototype.propertyIsEnumerable,K6=(e,t,n)=>t in e?Bie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Om=(e,t)=>{for(var n in t||(t={}))Fie.call(t,n)&&K6(e,n,t[n]);if(X6)for(var n of X6(t))Vie.call(t,n)&&K6(e,n,t[n]);return e};const Hie=()=>{const{height:e,width:t}=UB();return{width:Math.min(t,window.innerWidth),height:Math.min(e,window.innerHeight)}},J6=(e,t)=>{var n,i;const o=e.getBoundingClientRect();return{top:o.top,bottom:o.bottom,left:o.left,right:o.right,scrollTop:o.top-t.top,scrollBottom:o.bottom-t.top,scrollLeft:o.left-t.left,scrollRight:o.right-t.left,width:(n=e.offsetWidth)!=null?n:e.clientWidth,height:(i=e.offsetHeight)!=null?i:e.clientHeight}},Wie=e=>{switch(e){case"top":case"tl":case"tr":return"top";case"bottom":case"bl":case"br":return"bottom";case"left":case"lt":case"lb":return"left";case"right":case"rt":case"rb":return"right";default:return"top"}},Sy=(e,t)=>{switch(t){case"top":switch(e){case"bottom":return"top";case"bl":return"tl";case"br":return"tr";default:return e}case"bottom":switch(e){case"top":return"bottom";case"tl":return"bl";case"tr":return"br";default:return e}case"left":switch(e){case"right":return"left";case"rt":return"lt";case"rb":return"lb";default:return e}case"right":switch(e){case"left":return"right";case"lt":return"rt";case"lb":return"rb";default:return e}default:return e}},Uie=(e,t,{containerRect:n,triggerRect:i,popupRect:o,offset:s,translate:r})=>{const a=Wie(e),u=Hie(),c={top:n.top+t.top,bottom:u.height-(n.top+t.top+o.height),left:n.left+t.left,right:u.width-(n.left+t.left+o.width)};let l=e;if(a==="top"&&c.top<0)if(i.top>o.height)t.top=-n.top;else{const g=Lm("bottom",i,o,{offset:s,translate:r});u.height-(n.top+g.top+o.height)>0&&(l=Sy(e,"bottom"),t.top=g.top)}if(a==="bottom"&&c.bottom<0)if(u.height-i.bottom>o.height)t.top=-n.top+(u.height-o.height);else{const g=Lm("top",i,o,{offset:s,translate:r});n.top+g.top>0&&(l=Sy(e,"top"),t.top=g.top)}if(a==="left"&&c.left<0)if(i.left>o.width)t.left=-n.left;else{const g=Lm("right",i,o,{offset:s,translate:r});u.width-(n.left+g.left+o.width)>0&&(l=Sy(e,"right"),t.left=g.left)}if(a==="right"&&c.right<0)if(u.width-i.right>o.width)t.left=-n.left+(u.width-o.width);else{const g=Lm("left",i,o,{offset:s,translate:r});n.left+g.left>0&&(l=Sy(e,"left"),t.left=g.left)}return(a==="top"||a==="bottom")&&(c.left<0?t.left=-n.left:c.right<0&&(t.left=-n.left+(u.width-o.width))),(a==="left"||a==="right")&&(c.top<0?t.top=-n.top:c.bottom<0&&(t.top=-n.top+(u.height-o.height))),{popupPosition:t,position:l}},Lm=(e,t,n,{offset:i=0,translate:o=[0,0]}={})=>{var s;const r=(s=Kt(o)?o:o[e])!=null?s:[0,0];switch(e){case"top":return{left:t.scrollLeft+Math.round(t.width/2)-Math.round(n.width/2)+r[0],top:t.scrollTop-n.height-i+r[1]};case"tl":return{left:t.scrollLeft+r[0],top:t.scrollTop-n.height-i+r[1]};case"tr":return{left:t.scrollRight-n.width+r[0],top:t.scrollTop-n.height-i+r[1]};case"bottom":return{left:t.scrollLeft+Math.round(t.width/2)-Math.round(n.width/2)+r[0],top:t.scrollBottom+i+r[1]};case"bl":return{left:t.scrollLeft+r[0],top:t.scrollBottom+i+r[1]};case"br":return{left:t.scrollRight-n.width+r[0],top:t.scrollBottom+i+r[1]};case"left":return{left:t.scrollLeft-n.width-i+r[0],top:t.scrollTop+Math.round(t.height/2)-Math.round(n.height/2)+r[1]};case"lt":return{left:t.scrollLeft-n.width-i+r[0],top:t.scrollTop+r[1]};case"lb":return{left:t.scrollLeft-n.width-i+r[0],top:t.scrollBottom-n.height+r[1]};case"right":return{left:t.scrollRight+i+r[0],top:t.scrollTop+Math.round(t.height/2)-Math.round(n.height/2)+r[1]};case"rt":return{left:t.scrollRight+i+r[0],top:t.scrollTop+r[1]};case"rb":return{left:t.scrollRight+i+r[0],top:t.scrollBottom-n.height+r[1]};default:return{left:0,top:0}}},Zie=e=>{let t="0";["top","bottom"].includes(e)?t="50%":["left","lt","lb","tr","br"].includes(e)&&(t="100%");let n="0";return["left","right"].includes(e)?n="50%":["top","tl","tr","lb","rb"].includes(e)&&(n="100%"),`${t} ${n}`},Gie=(e,t,n,i,{offset:o=0,translate:s=[0,0],customStyle:r={},autoFitPosition:a=!1}={})=>{let u=e,c=Lm(e,n,i,{offset:o,translate:s});if(a){const g=Uie(e,c,{containerRect:t,popupRect:i,triggerRect:n,offset:o,translate:s});c=g.popupPosition,u=g.position}return{style:Om({left:`${c.left}px`,top:`${c.top}px`},r),position:u}},Yie=(e,t,n,{customStyle:i={}})=>{if(["top","tl","tr","bottom","bl","br"].includes(e)){let s=Math.abs(t.scrollLeft+t.width/2-n.scrollLeft);return s>n.width-8&&(t.width>n.width?s=n.width/2:s=n.width-8),["top","tl","tr"].includes(e)?Om({left:`${s}px`,bottom:"0",transform:"translate(-50%,50%) rotate(45deg)"},i):Om({left:`${s}px`,top:"0",transform:"translate(-50%,-50%) rotate(45deg)"},i)}let o=Math.abs(t.scrollTop+t.height/2-n.scrollTop);return o>n.height-8&&(t.height>n.height?o=n.height/2:o=n.height-8),["left","lt","lb"].includes(e)?Om({top:`${o}px`,right:"0",transform:"translate(50%,-50%) rotate(45deg)"},i):Om({top:`${o}px`,left:"0",transform:"translate(-50%,-50%) rotate(45deg)"},i)},Xie=e=>e.scrollHeight>e.offsetHeight||e.scrollWidth>e.offsetWidth,q6=e=>{var t;const n=[];let i=e;for(;i&&i!==document.documentElement;)Xie(i)&&n.push(i),i=(t=i.parentElement)!=null?t:void 0;return n},eF=()=>{const e={},t=he(),n=()=>{const i=BB(e.value);i!==t.value&&(t.value=i)};return Yt(()=>n()),Bi(()=>n()),{children:e,firstElement:t}};var qc=se({name:"ResizeObserver",props:{watchOnUpdated:Boolean},emits:["resize"],setup(e,{emit:t,slots:n}){const{children:i,firstElement:o}=eF();let s;const r=u=>{u&&(s=new jS(c=>{const l=c[0];t("resize",l)}),s.observe(u))},a=()=>{s&&(s.disconnect(),s=null)};return gt(o,u=>{s&&a(),u&&r(u)}),ei(()=>{s&&a()}),()=>{var u;return i.value=(u=n.default)==null?void 0:u.call(n),i.value}}});function Ds(e,t){const n=he(e[t]);return Bi(()=>{const i=e[t];n.value!==i&&(n.value=i)}),n}const Q6=Symbol("ArcoTrigger"),Kie=1e3,Jie=5e3,qie=1;class Qie{constructor(){this.popupStack={popup:new Set,dialog:new Set,message:new Set},this.getNextZIndex=t=>(t==="message"?Array.from(this.popupStack.message).pop()||Jie:Array.from(this.popupStack.popup).pop()||Kie)+qie,this.add=t=>{const n=this.getNextZIndex(t);return this.popupStack[t].add(n),t==="dialog"&&this.popupStack.popup.add(n),n},this.delete=(t,n)=>{this.popupStack[n].delete(t),n==="dialog"&&this.popupStack.popup.delete(t)},this.isLastDialog=t=>this.popupStack.dialog.size>1?t===Array.from(this.popupStack.dialog).pop():!0}}const w_=new Qie;function Jp(e,{visible:t,runOnMounted:n}={}){const i=he(0),o=()=>{i.value=w_.add(e)},s=()=>{w_.delete(i.value,e)},r=()=>e==="dialog"?w_.isLastDialog(i.value):!1;return gt(()=>t==null?void 0:t.value,a=>{a?o():s()},{immediate:!0}),n&&(Yt(()=>{o()}),ei(()=>{s()})),{zIndex:i1(i),open:o,close:s,isLastDialog:r}}const ere=({elementRef:e,onResize:t})=>{let n;return{createResizeObserver:()=>{e.value&&(n=new jS(s=>{const r=s[0];Nt(t)&&t(r)}),n.observe(e.value))},destroyResizeObserver:()=>{n&&(n.disconnect(),n=null)}}};var iP=se({name:"ClientOnly",setup(e,{slots:t}){const n=he(!1);return Yt(()=>n.value=!0),()=>{var i;return n.value?(i=t.default)==null?void 0:i.call(t):null}}});const rP=({popupContainer:e,visible:t,defaultContainer:n="body",documentContainer:i})=>{const o=he(e.value),s=he(),r=()=>{const a=wa(e.value),u=a?e.value:n,c=a??(i?document.documentElement:wa(n));u!==o.value&&(o.value=u),c!==s.value&&(s.value=c)};return Yt(()=>r()),gt(t,a=>{o.value!==e.value&&a&&r()}),{teleportContainer:o,containerRef:s}};var tre=Object.defineProperty,nre=Object.defineProperties,ire=Object.getOwnPropertyDescriptors,eL=Object.getOwnPropertySymbols,rre=Object.prototype.hasOwnProperty,ore=Object.prototype.propertyIsEnumerable,tL=(e,t,n)=>t in e?tre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sre=(e,t)=>{for(var n in t||(t={}))rre.call(t,n)&&tL(e,n,t[n]);if(eL)for(var n of eL(t))ore.call(t,n)&&tL(e,n,t[n]);return e},are=(e,t)=>nre(e,ire(t));const lre=["onClick","onMouseenter","onMouseleave","onFocusin","onFocusout","onContextmenu"];var __=se({name:"Trigger",inheritAttrs:!1,props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"hover"},position:{type:String,default:"bottom"},disabled:{type:Boolean,default:!1},popupOffset:{type:Number,default:0},popupTranslate:{type:[Array,Object]},showArrow:{type:Boolean,default:!1},alignPoint:{type:Boolean,default:!1},popupHoverStay:{type:Boolean,default:!0},blurToClose:{type:Boolean,default:!0},clickToClose:{type:Boolean,default:!0},clickOutsideToClose:{type:Boolean,default:!0},unmountOnClose:{type:Boolean,default:!0},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupStyle:{type:Object},animationName:{type:String,default:"fade-in"},duration:{type:[Number,Object]},mouseEnterDelay:{type:Number,default:100},mouseLeaveDelay:{type:Number,default:100},focusDelay:{type:Number,default:0},autoFitPopupWidth:{type:Boolean,default:!1},autoFitPopupMinWidth:{type:Boolean,default:!1},autoFixPosition:{type:Boolean,default:!0},popupContainer:{type:[String,Object]},updateAtScroll:{type:Boolean,default:!1},autoFitTransformOrigin:{type:Boolean,default:!1},hideEmpty:{type:Boolean,default:!1},openedClass:{type:[String,Array,Object]},autoFitPosition:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},preventFocus:{type:Boolean,default:!1},scrollToClose:{type:Boolean,default:!1},scrollToCloseDistance:{type:Number,default:0}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,show:()=>!0,hide:()=>!0,resize:()=>!0},setup(e,{emit:t,slots:n,attrs:i}){const{popupContainer:o}=lt(e),s=de("trigger"),r=P(()=>kr(i,lre)),a=Dt(Or,void 0),u=P(()=>[].concat(e.trigger)),c=new Set,l=Dt(Q6,void 0),{children:g,firstElement:C}=eF(),S=he(),_=he(e.defaultPopupVisible),A=he(e.position),y=he({}),d=he({}),v=he({}),m=he(),f=he({top:0,left:0});let p=null,h=null;const b=P(()=>{var ze;return(ze=e.popupVisible)!=null?ze:_.value}),{teleportContainer:w,containerRef:k}=rP({popupContainer:o,visible:b,documentContainer:!0}),{zIndex:$}=Jp("popup",{visible:b});let E=0,N=!1,j=!1;const z=()=>{E&&(window.clearTimeout(E),E=0)},V=ze=>{if(e.alignPoint){const{pageX:Ue,pageY:et}=ze;f.value={top:et,left:Ue}}},W=()=>{if(!C.value||!S.value||!k.value)return;const ze=k.value.getBoundingClientRect(),Ue=e.alignPoint?{top:f.value.top,bottom:f.value.top,left:f.value.left,right:f.value.left,scrollTop:f.value.top,scrollBottom:f.value.top,scrollLeft:f.value.left,scrollRight:f.value.left,width:0,height:0}:J6(C.value,ze),et=()=>J6(S.value,ze),Xe=et(),{style:yt,position:Et}=Gie(e.position,ze,Ue,Xe,{offset:e.popupOffset,translate:e.popupTranslate,customStyle:e.popupStyle,autoFitPosition:e.autoFitPosition});e.autoFitTransformOrigin&&(d.value={transformOrigin:Zie(Et)}),e.autoFitPopupMinWidth?yt.minWidth=`${Ue.width}px`:e.autoFitPopupWidth&&(yt.width=`${Ue.width}px`),A.value!==Et&&(A.value=Et),y.value=yt,e.showArrow&&fn(()=>{v.value=Yie(Et,Ue,et(),{customStyle:e.arrowStyle})})},H=(ze,Ue)=>{if(ze===b.value&&E===0)return;const et=()=>{_.value=ze,t("update:popupVisible",ze),t("popupVisibleChange",ze),ze&&fn(()=>{W()})};ze||(p=null,h=null),Ue?(z(),ze!==b.value&&(E=window.setTimeout(et,Ue))):et()},U=ze=>{var Ue;(Ue=i.onClick)==null||Ue.call(i,ze),!(e.disabled||b.value&&!e.clickToClose)&&(u.value.includes("click")?(V(ze),H(!b.value)):u.value.includes("contextMenu")&&b.value&&H(!1))},Q=ze=>{var Ue;(Ue=i.onMouseenter)==null||Ue.call(i,ze),!(e.disabled||!u.value.includes("hover"))&&(V(ze),H(!0,e.mouseEnterDelay))},q=ze=>{l==null||l.onMouseenter(ze),Q(ze)},ae=ze=>{var Ue;(Ue=i.onMouseleave)==null||Ue.call(i,ze),!(e.disabled||!u.value.includes("hover"))&&H(!1,e.mouseLeaveDelay)},ne=ze=>{l==null||l.onMouseleave(ze),ae(ze)},be=ze=>{var Ue;(Ue=i.onFocusin)==null||Ue.call(i,ze),!(e.disabled||!u.value.includes("focus"))&&H(!0,e.focusDelay)},te=ze=>{var Ue;(Ue=i.onFocusout)==null||Ue.call(i,ze),!(e.disabled||!u.value.includes("focus"))&&e.blurToClose&&H(!1)},Ie=ze=>{var Ue;(Ue=i.onContextmenu)==null||Ue.call(i,ze),!(e.disabled||!u.value.includes("contextMenu")||b.value&&!e.clickToClose)&&(V(ze),H(!b.value),ze.preventDefault())};cn(Q6,it({onMouseenter:q,onMouseleave:ne,addChildRef:ze=>{c.add(ze),l==null||l.addChildRef(ze)},removeChildRef:ze=>{c.delete(ze),l==null||l.removeChildRef(ze)}}));const ge=()=>{Qn(document.documentElement,"mousedown",pe),N=!1},Se=Ds(n,"content"),fe=P(()=>{var ze;return e.hideEmpty&&Nte((ze=Se.value)==null?void 0:ze.call(Se))}),pe=ze=>{var Ue,et,Xe;if(!((Ue=C.value)!=null&&Ue.contains(ze.target)||(et=S.value)!=null&&et.contains(ze.target))){for(const yt of c)if((Xe=yt.value)!=null&&Xe.contains(ze.target))return;ge(),H(!1)}},je=(ze,Ue)=>{const[et,Xe]=ze,{scrollTop:yt,scrollLeft:Et}=Ue;return Math.abs(yt-et)>=e.scrollToCloseDistance||Math.abs(Et-Xe)>=e.scrollToCloseDistance},Y=Jd(ze=>{if(b.value)if(e.scrollToClose||a!=null&&a.scrollToClose){const Ue=ze.target;p||(p=[Ue.scrollTop,Ue.scrollLeft]),je(p,Ue)?H(!1):W()}else W()}),Z=()=>{Qn(window,"scroll",ee),j=!1},ee=Jd(ze=>{const Ue=ze.target.documentElement;h||(h=[Ue.scrollTop,Ue.scrollLeft]),je(h,Ue)&&(H(!1),Z())}),ce=()=>{b.value&&W()},xe=()=>{ce(),t("resize")},re=ze=>{e.preventFocus&&ze.preventDefault()};l==null||l.addChildRef(S);const le=P(()=>b.value?e.openedClass:void 0);let ve;gt(b,ze=>{if(e.clickOutsideToClose&&(!ze&&N?ge():ze&&!N&&(Nn(document.documentElement,"mousedown",pe),N=!0)),(e.scrollToClose||a!=null&&a.scrollToClose)&&(Nn(window,"scroll",ee),j=!0),e.updateAtScroll||a!=null&&a.updateAtScroll){if(ze){ve=q6(C.value);for(const Ue of ve)Ue.addEventListener("scroll",Y)}else if(ve){for(const Ue of ve)Ue.removeEventListener("scroll",Y);ve=void 0}}ze&&(we.value=!0)}),gt(()=>[e.autoFitPopupWidth,e.autoFitPopupMinWidth],()=>{b.value&&W()});const{createResizeObserver:De,destroyResizeObserver:Ee}=ere({elementRef:k,onResize:ce});Yt(()=>{if(De(),b.value&&(W(),e.clickOutsideToClose&&!N&&(Nn(document.documentElement,"mousedown",pe),N=!0),e.updateAtScroll||a!=null&&a.updateAtScroll)){ve=q6(C.value);for(const ze of ve)ze.addEventListener("scroll",Y)}}),Bi(()=>{b.value&&W()}),AS(()=>{H(!1)}),ei(()=>{if(l==null||l.removeChildRef(S),Ee(),N&&ge(),j&&Z(),ve){for(const ze of ve)ze.removeEventListener("scroll",Y);ve=void 0}});const we=he(b.value),me=he(!1),Ae=()=>{me.value=!0},Fe=()=>{me.value=!1,b.value&&t("show")},Ne=()=>{me.value=!1,b.value||(we.value=!1,t("hide"))};return()=>{var ze,Ue;return g.value=(Ue=(ze=n.default)==null?void 0:ze.call(n))!=null?Ue:[],zB(g.value,{class:le.value,onClick:U,onMouseenter:Q,onMouseleave:ae,onFocusin:be,onFocusout:te,onContextmenu:Ie}),O(ft,null,[e.autoFixPosition?O(qc,{onResize:xe},{default:()=>[g.value]}):g.value,O(iP,null,{default:()=>[O(Yp,{to:w.value,disabled:!e.renderToBody},{default:()=>[(!e.unmountOnClose||b.value||we.value)&&!fe.value&&O(qc,{onResize:ce},{default:()=>[O("div",Qe({ref:S,class:[`${s}-popup`,`${s}-position-${A.value}`],style:are(sre({},y.value),{zIndex:$.value,pointerEvents:me.value?"none":"auto"}),"trigger-placement":A.value,onMouseenter:q,onMouseleave:ne,onMousedown:re},r.value),[O(Pr,{name:e.animationName,duration:e.duration,appear:!0,onBeforeEnter:Ae,onAfterEnter:Fe,onBeforeLeave:Ae,onAfterLeave:Ne},{default:()=>{var et;return[gi(O("div",{class:`${s}-popup-wrapper`,style:d.value},[O("div",{class:[`${s}-content`,e.contentClass],style:e.contentStyle},[(et=n.content)==null?void 0:et.call(n)]),e.showArrow&&O("div",{ref:m,class:[`${s}-arrow`,e.arrowClass],style:v.value},null)]),[[ki,b.value]])]}})])]})]})]})])}}});const ur=Object.assign(__,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+__.name,__)}}),cre=se({name:"IconEmpty",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-empty`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),ure=["stroke-width","stroke-linecap","stroke-linejoin"],dre=B("path",{d:"M24 5v6m7 1 4-4m-18 4-4-4m28.5 22H28s-1 3-4 3-4-3-4-3H6.5M40 41H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"},null,-1),fre=[dre];function hre(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},fre,14,ure)}var I_=ye(cre,[["render",hre]]);const tF=Object.assign(I_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+I_.name,I_)}});var Xy=se({name:"Empty",inheritAttrs:!1,props:{description:String,imgSrc:String,inConfigProvider:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){const i=de("empty"),{t:o}=fi(),s=Dt(Or,void 0);return()=>{var r,a,u,c;return!e.inConfigProvider&&(s!=null&&s.slots.empty)&&!(t.image||e.imgSrc||e.description)?s.slots.empty({component:"empty"}):O("div",Qe({class:i},n),[O("div",{class:`${i}-image`},[(a=(r=t.image)==null?void 0:r.call(t))!=null?a:e.imgSrc?O("img",{src:e.imgSrc,alt:e.description||"empty"},null):O(tF,null,null)]),O("div",{class:`${i}-description`},[(c=(u=t.default)==null?void 0:u.call(t))!=null?c:e.description||o("empty.description")])])}}});const Nl=Object.assign(Xy,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+Xy.name,Xy)}}),pre=5;var mre=se({name:"DotLoading",props:{size:{type:Number}},setup(e){const t=de("dot-loading");return()=>{const n=e.size?{width:`${e.size}px`,height:`${e.size}px`}:{};return O("div",{class:t,style:{width:e.size?`${e.size*7}px`:void 0,height:e.size?`${e.size}px`:void 0}},[Array(pre).fill(1).map((i,o)=>O("div",{class:`${t}-item`,key:o,style:n},null))])}}}),x_=se({name:"Spin",props:{size:{type:Number},loading:Boolean,dot:Boolean,tip:String,hideIcon:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=de("spin"),i=Dt(Or,void 0),o=P(()=>[n,{[`${n}-loading`]:e.loading,[`${n}-with-tip`]:e.tip&&!t.default}]),s=()=>{if(t.icon){const a=Qf(t.icon());if(a)return Tr(a,{spin:!0})}return t.element?t.element():e.dot?O(mre,{size:e.size},null):i!=null&&i.slots.loading?i.slots.loading():O(Lr,{spin:!0,size:e.size},null)},r=()=>{var a,u,c;const l=e.size?{fontSize:`${e.size}px`}:void 0,g=!!((a=t.tip)!=null?a:e.tip);return O(ft,null,[!e.hideIcon&&O("div",{class:`${n}-icon`,style:l},[s()]),g&&O("div",{class:`${n}-tip`},[(c=(u=t.tip)==null?void 0:u.call(t))!=null?c:e.tip])])};return()=>O("div",{class:o.value},[t.default?O(ft,null,[t.default(),e.loading&&O("div",{class:`${n}-mask`},[O("div",{class:`${n}-mask-icon`},[r()])])]):r()])}});const Zs=Object.assign(x_,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+x_.name,x_)}}),vre=se({name:"Thumb",props:{data:{type:Object},direction:{type:String,default:"horizontal"},alwaysShow:{type:Boolean,default:!1},both:{type:Boolean,default:!1}},emits:["scroll"],setup(e,{emit:t}){const n=de("scrollbar"),i=he(!1),o=he(),s=he(),r=P(()=>e.direction==="horizontal"?{size:"width",direction:"left",offset:"offsetWidth",client:"clientX"}:{size:"height",direction:"top",offset:"offsetHeight",client:"clientY"}),a=he(0),u=he(!1),c=he(0),l=P(()=>{var v,m;return{[r.value.size]:`${(m=(v=e.data)==null?void 0:v.thumbSize)!=null?m:0}px`,[r.value.direction]:`${a.value}px`}}),g=v=>{v.preventDefault(),s.value&&(c.value=v[r.value.client]-s.value.getBoundingClientRect()[r.value.direction],u.value=!0,Nn(window,"mousemove",_),Nn(window,"mouseup",A),Nn(window,"contextmenu",A))},C=v=>{var m,f,p,h;if(v.preventDefault(),s.value){const b=S(v[r.value.client]>s.value.getBoundingClientRect()[r.value.direction]?a.value+((f=(m=e.data)==null?void 0:m.thumbSize)!=null?f:0):a.value-((h=(p=e.data)==null?void 0:p.thumbSize)!=null?h:0));b!==a.value&&(a.value=b,t("scroll",b))}},S=v=>v<0?0:e.data&&v>e.data.max?e.data.max:v,_=v=>{if(o.value&&s.value){const m=S(v[r.value.client]-o.value.getBoundingClientRect()[r.value.direction]-c.value);m!==a.value&&(a.value=m,t("scroll",m))}},A=()=>{u.value=!1,Qn(window,"mousemove",_),Qn(window,"mouseup",A)},y=v=>{u.value||(v=S(v),v!==a.value&&(a.value=v))},d=P(()=>[`${n}-thumb`,`${n}-thumb-direction-${e.direction}`,{[`${n}-thumb-dragging`]:u.value}]);return{visible:i,trackRef:o,thumbRef:s,prefixCls:n,thumbCls:d,thumbStyle:l,handleThumbMouseDown:g,handleTrackClick:C,setOffset:y}}});function gre(e,t,n,i,o,s){return R(),We(Pr,null,{default:Ve(()=>[B("div",{ref:"trackRef",class:G([`${e.prefixCls}-track`,`${e.prefixCls}-track-direction-${e.direction}`]),onMousedown:t[1]||(t[1]=oo((...r)=>e.handleTrackClick&&e.handleTrackClick(...r),["self"]))},[B("div",{ref:"thumbRef",class:G(e.thumbCls),style:Te(e.thumbStyle),onMousedown:t[0]||(t[0]=(...r)=>e.handleThumbMouseDown&&e.handleThumbMouseDown(...r))},[B("div",{class:G(`${e.prefixCls}-thumb-bar`)},null,2)],38)],34)]),_:1})}var yre=ye(vre,[["render",gre]]);const nL=20,wy=15,bre=se({name:"Scrollbar",components:{ResizeObserver:qc,Thumb:yre},inheritAttrs:!1,props:{type:{type:String,default:"embed"},outerClass:[String,Object,Array],outerStyle:{type:[String,Object,Array]},hide:{type:Boolean,default:!1},disableHorizontal:{type:Boolean,default:!1},disableVertical:{type:Boolean,default:!1}},emits:{scroll:e=>!0},setup(e,{emit:t}){const n=de("scrollbar"),i=he(),o=he(),s=he(),r=he(),a=he(),u=he(!1),c=he(!1),l=P(()=>u.value&&!e.disableHorizontal),g=P(()=>c.value&&!e.disableVertical),C=he(!1),S=()=>{var f,p,h,b,w,k;if(i.value){const{clientWidth:$,clientHeight:E,offsetWidth:N,offsetHeight:j,scrollWidth:z,scrollHeight:V,scrollTop:W,scrollLeft:H}=i.value;u.value=z>$,c.value=V>E,C.value=l.value&&g.value;const U=e.type==="embed"&&C.value?N-wy:N,Q=e.type==="embed"&&C.value?j-wy:j,q=Math.round(U/Math.min(z/$,U/nL)),ae=U-q,ne=(z-$)/ae,be=Math.round(Q/Math.min(V/E,Q/nL)),te=Q-be,Ie=(V-E)/te;if(o.value={ratio:ne,thumbSize:q,max:ae},s.value={ratio:Ie,thumbSize:be,max:te},W>0){const $e=Math.round(W/((p=(f=s.value)==null?void 0:f.ratio)!=null?p:1));(h=a.value)==null||h.setOffset($e)}if(H>0){const $e=Math.round(H/((w=(b=s.value)==null?void 0:b.ratio)!=null?w:1));(k=r.value)==null||k.setOffset($e)}}};Yt(()=>{S()});const _=()=>{S()},A=f=>{var p,h,b,w,k,$;if(i.value){if(l.value&&!e.disableHorizontal){const E=Math.round(i.value.scrollLeft/((h=(p=o.value)==null?void 0:p.ratio)!=null?h:1));(b=r.value)==null||b.setOffset(E)}if(g.value&&!e.disableVertical){const E=Math.round(i.value.scrollTop/((k=(w=s.value)==null?void 0:w.ratio)!=null?k:1));($=a.value)==null||$.setOffset(E)}}t("scroll",f)},y=f=>{var p,h;i.value&&i.value.scrollTo({left:f*((h=(p=o.value)==null?void 0:p.ratio)!=null?h:1)})},d=f=>{var p,h;i.value&&i.value.scrollTo({top:f*((h=(p=s.value)==null?void 0:p.ratio)!=null?h:1)})},v=P(()=>{const f={};return e.type==="track"&&(l.value&&(f.paddingBottom=`${wy}px`),g.value&&(f.paddingRight=`${wy}px`)),[f,e.outerStyle]}),m=P(()=>[`${n}`,`${n}-type-${e.type}`,{[`${n}-both`]:C.value},e.outerClass]);return{prefixCls:n,cls:m,style:v,containerRef:i,horizontalThumbRef:r,verticalThumbRef:a,horizontalData:o,verticalData:s,isBoth:C,hasHorizontalScrollbar:l,hasVerticalScrollbar:g,handleResize:_,handleScroll:A,handleHorizontalScroll:y,handleVerticalScroll:d}},methods:{scrollTo(e,t){var n,i;rn(e)?(n=this.$refs.containerRef)==null||n.scrollTo(e):(e||t)&&((i=this.$refs.containerRef)==null||i.scrollTo(e,t))},scrollTop(e){var t;(t=this.$refs.containerRef)==null||t.scrollTo({top:e})},scrollLeft(e){var t;(t=this.$refs.containerRef)==null||t.scrollTo({left:e})}}});function kre(e,t,n,i,o,s){const r=Pe("ResizeObserver"),a=Pe("thumb");return R(),X("div",{class:G(e.cls),style:Te(e.style)},[O(r,{onResize:e.handleResize},{default:Ve(()=>[B("div",Qe({ref:"containerRef",class:`${e.prefixCls}-container`},e.$attrs,{onScroll:t[0]||(t[0]=(...u)=>e.handleScroll&&e.handleScroll(...u))}),[O(r,{onResize:e.handleResize},{default:Ve(()=>[He(e.$slots,"default")]),_:3},8,["onResize"])],16)]),_:3},8,["onResize"]),!e.hide&&e.hasHorizontalScrollbar?(R(),We(a,{key:0,ref:"horizontalThumbRef",data:e.horizontalData,direction:"horizontal",both:e.isBoth,onScroll:e.handleHorizontalScroll},null,8,["data","both","onScroll"])):Re("v-if",!0),!e.hide&&e.hasVerticalScrollbar?(R(),We(a,{key:1,ref:"verticalThumbRef",data:e.verticalData,direction:"vertical",both:e.isBoth,onScroll:e.handleVerticalScroll},null,8,["data","both","onScroll"])):Re("v-if",!0)],6)}var $_=ye(bre,[["render",kre]]);const Gs=Object.assign($_,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+$_.name,$_)}}),Ff=e=>{const t=he(),n=()=>PB(t.value)?t.value.$refs[e]:t.value,i=he();return Yt(()=>{i.value=n()}),gt([t],()=>{i.value=n()}),{componentRef:t,elementRef:i}};var Cre=Object.defineProperty,iL=Object.getOwnPropertySymbols,Sre=Object.prototype.hasOwnProperty,wre=Object.prototype.propertyIsEnumerable,rL=(e,t,n)=>t in e?Cre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_re=(e,t)=>{for(var n in t||(t={}))Sre.call(t,n)&&rL(e,n,t[n]);if(iL)for(var n of iL(t))wre.call(t,n)&&rL(e,n,t[n]);return e};const WS=e=>{const t=P(()=>!!e.value),n=P(()=>{if(e.value)return _re({type:"embed"},Gr(e.value)?void 0:e.value)});return{displayScrollbar:t,scrollbarProps:n}},Ire=se({name:"SelectDropdown",components:{ScrollbarComponent:Gs,Empty:Nl,Spin:Zs},props:{loading:Boolean,empty:Boolean,virtualList:Boolean,bottomOffset:{type:Number,default:0},scrollbar:{type:[Boolean,Object],default:!0},onScroll:{type:[Function,Array]},onReachBottom:{type:[Function,Array]},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1}},emits:["scroll","reachBottom"],setup(e,{emit:t,slots:n}){var i,o,s;const{scrollbar:r}=lt(e),a=de("select-dropdown"),u=Dt(Or,void 0),c=(s=(o=u==null?void 0:(i=u.slots).empty)==null?void 0:o.call(i,{component:"select"}))==null?void 0:s[0],{componentRef:l,elementRef:g}=Ff("containerRef"),{displayScrollbar:C,scrollbarProps:S}=WS(r),_=y=>{const{scrollTop:d,scrollHeight:v,offsetHeight:m}=y.target;v-(d+m)<=e.bottomOffset&&t("reachBottom",y),t("scroll",y)},A=P(()=>[a,{[`${a}-has-header`]:!!n.header,[`${a}-has-footer`]:!!n.footer}]);return{prefixCls:a,SelectEmpty:c,cls:A,wrapperRef:g,wrapperComRef:l,handleScroll:_,displayScrollbar:C,scrollbarProps:S}}});function xre(e,t,n,i,o,s){const r=Pe("spin");return R(),X("div",{class:G(e.cls)},[e.$slots.header&&(!e.empty||e.showHeaderOnEmpty)?(R(),X("div",{key:0,class:G(`${e.prefixCls}-header`)},[He(e.$slots,"header")],2)):Re("v-if",!0),e.loading?(R(),We(r,{key:1,class:G(`${e.prefixCls}-loading`)},null,8,["class"])):e.empty?(R(),X("div",{key:2,class:G(`${e.prefixCls}-empty`)},[He(e.$slots,"empty",{},()=>[(R(),We(Zr(e.SelectEmpty?e.SelectEmpty:"Empty")))])],2)):Re("v-if",!0),e.virtualList&&!e.loading&&!e.empty?He(e.$slots,"virtual-list",{key:3}):Re("v-if",!0),e.virtualList?Re("v-if",!0):gi((R(),We(Zr(e.displayScrollbar?"ScrollbarComponent":"div"),Qe({key:4,ref:"wrapperComRef",class:`${e.prefixCls}-list-wrapper`},e.scrollbarProps,{onScroll:e.handleScroll}),{default:Ve(()=>[B("ul",{class:G(`${e.prefixCls}-list`)},[He(e.$slots,"default")],2)]),_:3},16,["class","onScroll"])),[[ki,!e.loading&&!e.empty]]),e.$slots.footer&&(!e.empty||e.showFooterOnEmpty)?(R(),X("div",{key:5,class:G(`${e.prefixCls}-footer`)},[He(e.$slots,"footer")],2)):Re("v-if",!0)],2)}var oP=ye(Ire,[["render",xre]]),oL=se({name:"IconCheck",render(){return O("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 1024 1024",width:"200",height:"200",fill:"currentColor"},[O("path",{d:"M877.44815445 206.10060629a64.72691371 64.72691371 0 0 0-95.14856334 4.01306852L380.73381888 685.46812814 235.22771741 533.48933518a64.72691371 64.72691371 0 0 0-92.43003222-1.03563036l-45.82665557 45.82665443a64.72691371 64.72691371 0 0 0-0.90617629 90.61767965l239.61903446 250.10479331a64.72691371 64.72691371 0 0 0 71.19960405 15.14609778 64.33855261 64.33855261 0 0 0 35.08198741-21.23042702l36.24707186-42.71976334 40.5190474-40.77795556-3.36579926-3.49525333 411.40426297-486.74638962a64.72691371 64.72691371 0 0 0-3.88361443-87.64024149l-45.3088404-45.43829334z","p-id":"840"},null)])}});const nF=Symbol("ArcoCheckboxGroup");var Ky=se({name:"Checkbox",components:{IconCheck:oL,IconHover:ai},props:{modelValue:{type:[Boolean,Array],default:void 0},defaultChecked:{type:Boolean,default:!1},value:{type:[String,Number,Boolean]},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},uninjectGroupContext:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{disabled:i,modelValue:o}=lt(e),s=de("checkbox"),r=he(),a=e.uninjectGroupContext?void 0:Dt(nF,void 0),u=(a==null?void 0:a.name)==="ArcoCheckboxGroup",{mergedDisabled:c,eventHandlers:l}=li({disabled:i}),g=he(e.defaultChecked),C=P(()=>{var f;return u?a==null?void 0:a.computedValue:(f=e.modelValue)!=null?f:g.value}),S=P(()=>{var f;return Kt(C.value)?C.value.includes((f=e.value)!=null?f:!0):C.value}),_=P(()=>(a==null?void 0:a.disabled)||(c==null?void 0:c.value)||!S.value&&(a==null?void 0:a.isMaxed)),A=f=>{f.stopPropagation()},y=f=>{var p,h,b,w;const{checked:k}=f.target;let $=k;if(Kt(C.value)){const E=new Set(C.value);k?E.add((p=e.value)!=null?p:!0):E.delete((h=e.value)!=null?h:!0),$=Array.from(E)}g.value=k,u&&Kt($)?a==null||a.handleChange($,f):(t("update:modelValue",$),t("change",$,f),(w=(b=l.value)==null?void 0:b.onChange)==null||w.call(b,f)),fn(()=>{r.value&&r.value.checked!==S.value&&(r.value.checked=S.value)})},d=P(()=>[s,{[`${s}-checked`]:S.value,[`${s}-indeterminate`]:e.indeterminate,[`${s}-disabled`]:_.value}]),v=f=>{var p,h;(h=(p=l.value)==null?void 0:p.onFocus)==null||h.call(p,f)},m=f=>{var p,h;(h=(p=l.value)==null?void 0:p.onBlur)==null||h.call(p,f)};return gt(o,f=>{(jt(f)||Xr(f))&&(g.value=!1)}),gt(C,f=>{var p;let h;Kt(f)?h=f.includes((p=e.value)!=null?p:!0):h=f,g.value!==h&&(g.value=h),r.value&&r.value.checked!==h&&(r.value.checked=h)}),()=>{var f,p,h,b;return O("label",{"aria-disabled":_.value,class:d.value},[O("input",{ref:r,type:"checkbox",checked:S.value,value:e.value,class:`${s}-target`,disabled:_.value,onClick:A,onChange:y,onFocus:v,onBlur:m},null),(b=(h=(p=n.checkbox)!=null?p:(f=a==null?void 0:a.slots)==null?void 0:f.checkbox)==null?void 0:h({checked:S.value,disabled:_.value}))!=null?b:O(ai,{class:`${s}-icon-hover`,disabled:_.value||S.value},{default:()=>[O("div",{class:`${s}-icon`},[S.value&&O(oL,{class:`${s}-icon-check`},null)])]}),n.default&&O("span",{class:`${s}-label`},[n.default()])])}}}),Jy=se({name:"CheckboxGroup",props:{modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:()=>[]},max:{type:Number},options:{type:Array},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{disabled:i}=lt(e),o=de("checkbox-group"),{mergedDisabled:s,eventHandlers:r}=li({disabled:i}),a=he(e.defaultValue),u=P(()=>Kt(e.modelValue)?e.modelValue:a.value),c=P(()=>e.max===void 0?!1:u.value.length>=e.max),l=P(()=>{var _;return((_=e.options)!=null?_:[]).map(A=>Ai(A)||Le(A)?{label:A,value:A}:A)});cn(nF,it({name:"ArcoCheckboxGroup",computedValue:u,disabled:s,isMaxed:c,slots:n,handleChange:(_,A)=>{var y,d;a.value=_,t("update:modelValue",_),t("change",_,A),(d=(y=r.value)==null?void 0:y.onChange)==null||d.call(y,A)}}));const C=P(()=>[o,`${o}-direction-${e.direction}`]);gt(()=>e.modelValue,_=>{Kt(_)?a.value=[..._]:a.value=[]});const S=()=>l.value.map(_=>{const A=u.value.includes(_.value);return O(Ky,{key:_.value,value:_.value,disabled:_.disabled||!A&&c.value,indeterminate:_.indeterminate,modelValue:A},{default:()=>[n.label?n.label({data:_}):Nt(_.label)?_.label():_.label]})});return()=>{var _;return O("span",{class:C.value},[l.value.length>0?S():(_=n.default)==null?void 0:_.call(n)])}}});const Fs=Object.assign(Ky,{Group:Jy,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+Ky.name,Ky),e.component(n+Jy.name,Jy)}}),iF=Symbol("ArcoSelectContext");var $re=Object.defineProperty,Are=Object.defineProperties,Ere=Object.getOwnPropertyDescriptors,sL=Object.getOwnPropertySymbols,Mre=Object.prototype.hasOwnProperty,Tre=Object.prototype.propertyIsEnumerable,aL=(e,t,n)=>t in e?$re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sP=(e,t)=>{for(var n in t||(t={}))Mre.call(t,n)&&aL(e,n,t[n]);if(sL)for(var n of sL(t))Tre.call(t,n)&&aL(e,n,t[n]);return e},rF=(e,t)=>Are(e,Ere(t));const Pre=e=>rn(e)&&"isGroup"in e,oF=e=>rn(e)&&"isGroup"in e,Ore=(e,t="value")=>String(rn(e)?e[t]:e),qd=(e,t="value")=>rn(e)?`__arco__option__object__${e[t]}`:e||Le(e)||Ai(e)||Gr(e)?`__arco__option__${typeof e}-${e}`:"",Lre=e=>e.has("__arco__option__string-"),Dre=(e,{valueKey:t,fieldNames:n,origin:i,index:o=-1})=>{var s;if(rn(e)){const a=e[n.value];return{raw:e,index:o,key:qd(a,t),origin:i,value:a,label:(s=e[n.label])!=null?s:Ore(a,t),render:e[n.render],disabled:!!e[n.disabled],tagProps:e[n.tagProps]}}const r={value:e,label:String(e),disabled:!1};return sP({raw:r,index:o,key:qd(e,t),origin:i},r)},nE=(e,{valueKey:t,fieldNames:n,origin:i,optionInfoMap:o})=>{var s;const r=[];for(const a of e)if(Pre(a)){const u=nE((s=a.options)!=null?s:[],{valueKey:t,fieldNames:n,origin:i,optionInfoMap:o});u.length>0&&r.push(rF(sP({},a),{key:`__arco__group__${a.label}`,options:u}))}else{const u=Dre(a,{valueKey:t,fieldNames:n,origin:i});r.push(u),o.get(u.key)||o.set(u.key,u)}return r},lL=(e,{inputValue:t,filterOption:n})=>{const i=o=>{var s;const r=[];for(const a of o)if(oF(a)){const u=i((s=a.options)!=null?s:[]);u.length>0&&r.push(rF(sP({},a),{options:u}))}else US(a,{inputValue:t,filterOption:n})&&r.push(a);return r};return i(e)},US=(e,{inputValue:t,filterOption:n})=>Nt(n)?!t||n(t,e.raw):n?e.label.toLowerCase().includes((t??"").toLowerCase()):!0,Nre=(e,t)=>{if(!e||!t||e.length!==t.length)return!1;for(const n of Object.keys(e))if(!qp(e[n],t[n]))return!1;return!0},jre=(e,t)=>{if(!e||!t)return!1;const{length:n}=e;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(!qp(e[i],t[i]))return!1;return!0},qp=(e,t)=>{const n=Object.prototype.toString.call(e);return n!==Object.prototype.toString.call(t)?!1:n==="[object Object]"?Nre(e,t):n==="[object Array]"?jre(e,t):n==="[object Function]"?e===t?!0:e.toString()===t.toString():e===t},zre=se({name:"Option",components:{Checkbox:Fs},props:{value:{type:[String,Number,Boolean,Object],default:void 0},label:String,disabled:Boolean,tagProps:{type:Object},extra:{type:Object},index:{type:Number},internal:Boolean},setup(e){const{disabled:t,tagProps:n,index:i}=lt(e),o=de("select-option"),s=Dt(iF,void 0),r=Vn(),a=he(),u=he(n.value);gt(n,(h,b)=>{qp(h,b)||(u.value=h)});const c=he(""),l=P(()=>{var h,b;return(b=(h=e.value)!=null?h:e.label)!=null?b:c.value}),g=P(()=>{var h;return(h=e.label)!=null?h:c.value}),C=P(()=>qd(l.value,s==null?void 0:s.valueKey)),S=P(()=>{var h;return(h=s==null?void 0:s.component)!=null?h:"li"}),_=()=>{var h;if(!e.label&&a.value){const b=(h=a.value.textContent)!=null?h:"";c.value!==b&&(c.value=b)}};Yt(()=>_()),Bi(()=>_());const A=P(()=>{var h;return(h=s==null?void 0:s.valueKeys.includes(C.value))!=null?h:!1}),y=P(()=>(s==null?void 0:s.activeKey)===C.value);let d=he(!0);if(!e.internal){const h=it({raw:{value:l,label:g,disabled:t,tagProps:u},ref:a,index:i,key:C,origin:"slot",value:l,label:g,disabled:t,tagProps:u});d=P(()=>US(h,{inputValue:s==null?void 0:s.inputValue,filterOption:s==null?void 0:s.filterOption})),r&&(s==null||s.addSlotOptionInfo(r.uid,h)),ei(()=>{r&&(s==null||s.removeSlotOptionInfo(r.uid))})}const v=h=>{e.disabled||s==null||s.onSelect(C.value,h)},m=()=>{e.disabled||s==null||s.setActiveKey(C.value)},f=()=>{e.disabled||s==null||s.setActiveKey()},p=P(()=>[o,{[`${o}-disabled`]:e.disabled,[`${o}-selected`]:A.value,[`${o}-active`]:y.value,[`${o}-multiple`]:s==null?void 0:s.multiple}]);return{prefixCls:o,cls:p,selectCtx:s,itemRef:a,component:S,isSelected:A,isValid:d,handleClick:v,handleMouseEnter:m,handleMouseLeave:f}}});function Rre(e,t,n,i,o,s){const r=Pe("checkbox");return gi((R(),We(Zr(e.component),{ref:"itemRef",class:G([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:e.handleClick,onMouseenter:e.handleMouseEnter,onMouseleave:e.handleMouseLeave},{default:Ve(()=>[e.$slots.icon?(R(),X("span",{key:0,class:G(`${e.prefixCls}-icon`)},[He(e.$slots,"icon")],2)):Re("v-if",!0),e.selectCtx&&e.selectCtx.multiple?(R(),We(r,{key:1,class:G(`${e.prefixCls}-checkbox`),"model-value":e.isSelected,disabled:e.disabled,"uninject-group-context":""},{default:Ve(()=>[He(e.$slots,"default",{},()=>[pt(tt(e.label),1)])]),_:3},8,["class","model-value","disabled"])):(R(),X("span",{key:2,class:G(`${e.prefixCls}-content`)},[He(e.$slots,"default",{},()=>[pt(tt(e.label),1)])],2)),e.$slots.suffix?(R(),X("span",{key:3,class:G(`${e.prefixCls}-suffix`)},[He(e.$slots,"suffix")],2)):Re("v-if",!0)]),_:3},8,["class","onClick","onMouseenter","onMouseleave"])),[[ki,e.isValid]])}var Fd=ye(zre,[["render",Rre]]),Bre=Object.defineProperty,Fre=Object.defineProperties,Vre=Object.getOwnPropertyDescriptors,cL=Object.getOwnPropertySymbols,Hre=Object.prototype.hasOwnProperty,Wre=Object.prototype.propertyIsEnumerable,uL=(e,t,n)=>t in e?Bre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A_=(e,t)=>{for(var n in t||(t={}))Hre.call(t,n)&&uL(e,n,t[n]);if(cL)for(var n of cL(t))Wre.call(t,n)&&uL(e,n,t[n]);return e},Ure=(e,t)=>Fre(e,Vre(t));const Zre={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"},Gre=({options:e,extraOptions:t,inputValue:n,filterOption:i,showExtraOptions:o,valueKey:s,fieldNames:r})=>{const a=P(()=>A_(A_({},Zre),r==null?void 0:r.value)),u=it(new Map),c=P(()=>Array.from(u.values()).sort((m,f)=>Le(m.index)&&Le(f.index)?m.index-f.index:0)),l=P(()=>{var m,f;const p=new Map;return{optionInfos:nE((m=e==null?void 0:e.value)!=null?m:[],{valueKey:(f=s==null?void 0:s.value)!=null?f:"value",fieldNames:a.value,origin:"options",optionInfoMap:p}),optionInfoMap:p}}),g=P(()=>{var m,f;const p=new Map;return{optionInfos:nE((m=t==null?void 0:t.value)!=null?m:[],{valueKey:(f=s==null?void 0:s.value)!=null?f:"value",fieldNames:a.value,origin:"extraOptions",optionInfoMap:p}),optionInfoMap:p}}),C=it(new Map);gt([c,e??he([]),t??he([]),s??he("value")],()=>{C.clear(),c.value.forEach((m,f)=>{C.set(m.key,Ure(A_({},m),{index:f}))}),l.value.optionInfoMap.forEach(m=>{C.has(m.key)||(m.index=C.size,C.set(m.key,m))}),g.value.optionInfoMap.forEach(m=>{C.has(m.key)||(m.index=C.size,C.set(m.key,m))})},{immediate:!0,deep:!0});const S=P(()=>{var m;const f=lL(l.value.optionInfos,{inputValue:n==null?void 0:n.value,filterOption:i==null?void 0:i.value});return((m=o==null?void 0:o.value)==null||m)&&f.push(...lL(g.value.optionInfos,{inputValue:n==null?void 0:n.value,filterOption:i==null?void 0:i.value})),f}),_=P(()=>Array.from(C.values()).filter(m=>m.origin==="extraOptions"&&(o==null?void 0:o.value)===!1?!1:US(m,{inputValue:n==null?void 0:n.value,filterOption:i==null?void 0:i.value}))),A=P(()=>_.value.filter(m=>!m.disabled).map(m=>m.key));return{validOptions:S,optionInfoMap:C,validOptionInfos:_,enabledOptionKeys:A,getNextSlotOptionIndex:()=>u.size,addSlotOptionInfo:(m,f)=>{u.set(m,f)},removeSlotOptionInfo:m=>{u.delete(m)}}},mi={ENTER:"Enter",ESC:"Escape",BACKSPACE:"Backspace",TAB:"Tab",SPACE:" ",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight"},dL=e=>JSON.stringify({key:e.key,ctrl:!!e.ctrl,shift:!!e.shift,alt:!!e.alt,meta:!!e.meta}),ZS=e=>{const t={};return e.forEach((n,i)=>{const o=Ai(i)?{key:i}:i;t[dL(o)]=n}),n=>{const i=dL({key:n.key,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey}),o=t[i];o&&(n.stopPropagation(),o(n))}},aP=({multiple:e,options:t,extraOptions:n,inputValue:i,filterOption:o,showExtraOptions:s,component:r,valueKey:a,fieldNames:u,loading:c,popupVisible:l,valueKeys:g,dropdownRef:C,optionRefs:S,virtualListRef:_,onSelect:A,onPopupVisibleChange:y,enterToOpen:d=!0,defaultActiveFirstOption:v})=>{const{validOptions:m,optionInfoMap:f,validOptionInfos:p,enabledOptionKeys:h,getNextSlotOptionIndex:b,addSlotOptionInfo:w,removeSlotOptionInfo:k}=Gre({options:t,extraOptions:n,inputValue:i,filterOption:o,showExtraOptions:s,valueKey:a,fieldNames:u}),$=he();gt(h,V=>{(!$.value||!V.includes($.value))&&($.value=V[0])});const E=V=>{$.value=V},N=V=>{const W=h.value.length;if(W===0)return;if(!$.value)return V==="down"?h.value[0]:h.value[W-1];const H=h.value.indexOf($.value),U=(W+H+(V==="up"?-1:1))%W;return h.value[U]},j=V=>{var W,H;_!=null&&_.value&&_.value.scrollTo({key:V});const U=f.get(V),Q=(W=C==null?void 0:C.value)==null?void 0:W.wrapperRef,q=(H=S==null?void 0:S.value[V])!=null?H:U==null?void 0:U.ref;if(!Q||!q||Q.scrollHeight===Q.offsetHeight)return;const ae=Rte(q,Q),ne=Q.scrollTop;ae.top<0?Q.scrollTo(0,ne+ae.top):ae.bottom<0&&Q.scrollTo(0,ne-ae.bottom)};gt(l,V=>{var W;if(V){const H=g.value[g.value.length-1];let U=(W=v==null?void 0:v.value)==null||W?h.value[0]:void 0;h.value.includes(H)&&(U=H),U!==$.value&&($.value=U),fn(()=>{$.value&&j($.value)})}});const z=ZS(new Map([[mi.ENTER,V=>{!(c!=null&&c.value)&&!V.isComposing&&(l.value?$.value&&(A($.value,V),V.preventDefault()):d&&(y(!0),V.preventDefault()))}],[mi.ESC,V=>{l.value&&(y(!1),V.preventDefault())}],[mi.ARROW_DOWN,V=>{if(l.value){const W=N("down");W&&($.value=W,j(W)),V.preventDefault()}}],[mi.ARROW_UP,V=>{if(l.value){const W=N("up");W&&($.value=W,j(W)),V.preventDefault()}}]]));return cn(iF,it({multiple:e,valueKey:a,inputValue:i,filterOption:o,component:r,valueKeys:g,activeKey:$,setActiveKey:E,onSelect:A,getNextSlotOptionIndex:b,addSlotOptionInfo:w,removeSlotOptionInfo:k})),{validOptions:m,optionInfoMap:f,validOptionInfos:p,enabledOptionKeys:h,activeKey:$,setActiveKey:E,addSlotOptionInfo:w,removeSlotOptionInfo:k,getNextActiveKey:N,scrollIntoView:j,handleKeyDown:z}},Yre=({dataKeys:e,contentRef:t,fixedSize:n,estimatedSize:i,buffer:o})=>{const s=he(0),r=new Map,a=P(()=>e.value.length),u=he(0),c=P(()=>{const b=u.value+o.value*3;return b>a.value?a.value:b}),l=P(()=>{const b=a.value-o.value*3;return b<0?0:b}),g=b=>{b<0?u.value=0:b>l.value?u.value=l.value:u.value=b},C=he(n.value),S=P(()=>i.value!==30?i.value:s.value||i.value),_=(b,w)=>{r.set(b,w)},A=b=>{var w;if(C.value)return S.value;const k=e.value[b];return(w=r.get(k))!=null?w:S.value},y=b=>r.has(b);Yt(()=>{const b=Array.from(r.values()).reduce((w,k)=>w+k,0);b>0&&(s.value=b/r.size)});const d=b=>C.value?S.value*b:v(0,b),v=(b,w)=>{let k=0;for(let $=b;$<w;$++)k+=A($);return k},m=P(()=>C.value?S.value*u.value:v(0,u.value)),f=b=>{const w=b>=m.value;let k=Math.abs(b-m.value);const $=w?u.value:u.value-1;let E=0;for(;k>0;)k-=A($+E),w?E++:E--;return E},p=b=>{const w=f(b),k=u.value+w-o.value;return k<0?0:k>l.value?l.value:k},h=P(()=>C.value?S.value*(a.value-c.value):v(c.value,a.value));return{frontPadding:m,behindPadding:h,start:u,end:c,getStartByScroll:p,setItemSize:_,hasItemSize:y,setStart:g,getScrollOffset:d}};var Xre=se({name:"VirtualListItem",props:{hasItemSize:{type:Function,required:!0},setItemSize:{type:Function,required:!0}},setup(e,{slots:t}){var n;const i=(n=Vn())==null?void 0:n.vnode.key,o=he(),s=()=>{var r,a,u,c;const l=(a=(r=o.value)==null?void 0:r.$el)!=null?a:o.value,g=(c=(u=l==null?void 0:l.getBoundingClientRect)==null?void 0:u.call(l).height)!=null?c:l==null?void 0:l.offsetHeight;g&&e.setItemSize(i,g)};return Yt(()=>s()),ei(()=>s()),()=>{var r;const a=Qf((r=t.default)==null?void 0:r.call(t));return a?Tr(a,{ref:o},!0):null}}}),Kre=Object.defineProperty,fL=Object.getOwnPropertySymbols,Jre=Object.prototype.hasOwnProperty,qre=Object.prototype.propertyIsEnumerable,hL=(e,t,n)=>t in e?Kre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qre=(e,t)=>{for(var n in t||(t={}))Jre.call(t,n)&&hL(e,n,t[n]);if(fL)for(var n of fL(t))qre.call(t,n)&&hL(e,n,t[n]);return e};const eoe=se({name:"VirtualList",components:{VirtualListItem:Xre},props:{height:{type:[Number,String],default:200},data:{type:Array,default:()=>[]},threshold:{type:Number,default:0},itemKey:{type:String,default:"key"},fixedSize:{type:Boolean,default:!1},estimatedSize:{type:Number,default:30},buffer:{type:Number,default:10},component:{type:[String,Object],default:"div"},listAttrs:{type:Object},contentAttrs:{type:Object},paddingPosition:{type:String,default:"content"}},emits:{scroll:e=>!0,reachBottom:e=>!0},setup(e,{emit:t}){const{data:n,itemKey:i,fixedSize:o,estimatedSize:s,buffer:r,height:a}=lt(e),u=de("virtual-list"),c=P(()=>rn(e.component)?Qre({container:"div",list:"div",content:"div"},e.component):{container:e.component,list:"div",content:"div"}),l=he(),g=he(),C=P(()=>({height:Le(a.value)?`${a.value}px`:a.value,overflow:"auto"})),S=P(()=>n.value.map(($,E)=>{var N;return(N=$[i.value])!=null?N:E})),{frontPadding:_,behindPadding:A,start:y,end:d,getStartByScroll:v,setItemSize:m,hasItemSize:f,setStart:p,getScrollOffset:h}=Yre({dataKeys:S,contentRef:g,fixedSize:o,estimatedSize:s,buffer:r}),b=P(()=>e.threshold&&n.value.length<=e.threshold?n.value:n.value.slice(y.value,d.value)),w=$=>{const{scrollTop:E,scrollHeight:N,offsetHeight:j}=$.target,z=v(E);z!==y.value&&(p(z),fn(()=>{k(E)})),t("scroll",$),Math.floor(N-(E+j))<=0&&t("reachBottom",$)},k=$=>{var E,N;if(l.value)if(Le($))l.value.scrollTop=$;else{const j=(N=$.index)!=null?N:S.value.indexOf((E=$.key)!=null?E:"");p(j-r.value),l.value.scrollTop=h(j),fn(()=>{if(l.value){const z=h(j);z!==l.value.scrollTop&&(l.value.scrollTop=z)}})}};return{prefixCls:u,containerRef:l,contentRef:g,frontPadding:_,currentList:b,behindPadding:A,onScroll:w,setItemSize:m,hasItemSize:f,start:y,scrollTo:k,style:C,mergedComponent:c}}});function toe(e,t,n,i,o,s){const r=Pe("VirtualListItem");return R(),We(Zr(e.mergedComponent.container),{ref:"containerRef",class:G(e.prefixCls),style:Te(e.style),onScroll:e.onScroll},{default:Ve(()=>[(R(),We(Zr(e.mergedComponent.list),Qe(e.listAttrs,{style:e.paddingPosition==="list"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:Ve(()=>[(R(),We(Zr(e.mergedComponent.content),Qe({ref:"contentRef"},e.contentAttrs,{style:e.paddingPosition==="content"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:Ve(()=>[(R(!0),X(ft,null,dn(e.currentList,(a,u)=>{var c;return R(),We(r,{key:(c=a[e.itemKey])!=null?c:e.start+u,"has-item-size":e.hasItemSize,"set-item-size":e.setItemSize},{default:Ve(()=>[He(e.$slots,"item",{item:a,index:e.start+u})]),_:2},1032,["has-item-size","set-item-size"])}),128))]),_:3},16,["style"]))]),_:3},16,["style"]))]),_:3},8,["class","style","onScroll"])}var Qp=ye(eoe,[["render",toe]]),E_=se({name:"AutoComplete",inheritAttrs:!1,props:{modelValue:{type:String,default:void 0},defaultValue:{type:String,default:""},disabled:{type:Boolean,default:!1},data:{type:Array,default:()=>[]},popupContainer:{type:[String,Object]},strict:{type:Boolean,default:!1},filterOption:{type:[Boolean,Function],default:!0},triggerProps:{type:Object},allowClear:{type:Boolean,default:!1},virtualListProps:{type:Object}},emits:{"update:modelValue":e=>!0,change:e=>!0,search:e=>!0,select:e=>!0,clear:e=>!0,dropdownScroll:e=>!0,dropdownReachBottom:e=>!0},setup(e,{emit:t,attrs:n,slots:i}){const{modelValue:o}=lt(e),s=de("auto-complete"),{mergedDisabled:r,eventHandlers:a}=li({disabled:lo(e,"disabled")}),u=he(e.defaultValue),c=he(),l=P(()=>{var q;return(q=e.modelValue)!=null?q:u.value});gt(o,q=>{(jt(q)||Xr(q))&&(u.value="")});const g=P(()=>l.value?[qd(l.value)]:[]),{data:C}=lt(e),S=he(),_=he({}),A=he(!1),y=P(()=>A.value&&z.value.length>0),d=he(),v=P(()=>e.virtualListProps?"div":"li"),m=q=>{A.value=q},f=(q,ae)=>{var ne;return!!((ne=ae.label)!=null&&ne.includes(q))},p=P(()=>Nt(e.filterOption)?e.filterOption:e.filterOption&&e.strict?f:e.filterOption),h=q=>{var ae,ne;u.value=q,t("update:modelValue",q),t("change",q),(ne=(ae=a.value)==null?void 0:ae.onChange)==null||ne.call(ae)},b=q=>{var ae,ne;u.value="",t("update:modelValue",""),t("change",""),(ne=(ae=a.value)==null?void 0:ae.onChange)==null||ne.call(ae),t("clear",q)},w=(q,ae)=>{var ne,be;const te=(ne=j.get(q))==null?void 0:ne.value;t("select",te),h(te),(be=c.value)==null||be.blur()},k=q=>{t("search",q),h(q)},$=q=>{t("dropdownScroll",q)},E=q=>{t("dropdownReachBottom",q)},{validOptions:N,optionInfoMap:j,validOptionInfos:z,handleKeyDown:V}=aP({options:C,inputValue:l,filterOption:p,popupVisible:y,valueKeys:g,component:v,dropdownRef:S,optionRefs:_,onSelect:w,onPopupVisibleChange:m}),W=q=>{if(Nt(i.option)&&q.value){const ae=j.get(q.key),ne=i.option;return()=>ne({data:ae})}return()=>q.label},H=q=>O(Fd,{ref:ae=>{ae!=null&&ae.$el&&(_.value[q.key]=ae.$el)},key:q.key,value:q.value,disabled:q.disabled,internal:!0},{default:W(q)}),U=()=>O(oP,{ref:S,class:`${s}-dropdown`,virtualList:!!e.virtualListProps,onScroll:$,onReachBottom:E},{default:()=>[...N.value.map(q=>H(q))],"virtual-list":()=>O(Qp,Qe(e.virtualListProps,{ref:d,data:N.value}),{item:({item:q})=>H(q)}),footer:i.footer});return{inputRef:c,render:()=>O(ur,Qe({trigger:"focus",position:"bl",animationName:"slide-dynamic-origin",autoFitTransformOrigin:!0,popupVisible:y.value,clickToClose:!1,preventFocus:!0,popupOffset:4,disabled:r.value,autoFitPopupWidth:!0},e.triggerProps,{onPopupVisibleChange:m}),{default:()=>[O(ou,Qe({ref:c},n,{allowClear:e.allowClear,modelValue:l.value,disabled:r.value,onInput:k,onClear:b,onKeydown:V}),i)],content:U})}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const noe=Object.assign(E_,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+E_.name,E_)}}),GS=({itemRef:e,selector:t,index:n,parentClassName:i})=>{const o=he(-1),s=P(()=>{var c;return(c=n==null?void 0:n.value)!=null?c:o.value}),r=he(),a=()=>{var c,l,g;let C=(l=(c=e.value)==null?void 0:c.parentElement)!=null?l:void 0;if(i)for(;C&&!C.className.includes(i);)C=(g=C.parentElement)!=null?g:void 0;return C},u=()=>{if(jt(n==null?void 0:n.value)&&r.value&&e.value){const c=Array.from(r.value.querySelectorAll(t)).indexOf(e.value);c!==o.value&&(o.value=c)}};return gt(e,()=>{e.value&&!r.value&&(r.value=a())}),Yt(()=>{e.value&&(r.value=a()),u()}),Bi(()=>u()),{computedIndex:s}},sF=Symbol("ArcoAvatarGroup"),ioe=se({name:"IconImageClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-image-close`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),roe=["stroke-width","stroke-linecap","stroke-linejoin"],ooe=Xp('<path d="M41 26V9a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v30a2 2 0 0 0 2 2h17"></path><path d="m24 33 9-8.5V27s-2 1-3.5 2.5C27.841 31.159 27 33 27 33h-3Zm0 0-3.5-4.5L17 33h7Z"></path><path d="M20.5 28.5 17 33h7l-3.5-4.5ZM33 24.5 24 33h3s.841-1.841 2.5-3.5C31 28 33 27 33 27v-2.5Z" fill="currentColor" stroke="none"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M46 38a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-4.95-4.782 1.74 1.74-3.045 3.046 3.046 3.046-1.74 1.74-3.047-3.045-3.046 3.046-1.74-1.74 3.046-3.047-3.046-3.046 1.74-1.74 3.046 3.046 3.046-3.046Z" fill="currentColor" stroke="none"></path><path d="M17 15h-2v2h2v-2Z"></path>',5),soe=[ooe];function aoe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},soe,14,roe)}var M_=ye(ioe,[["render",aoe]]);const YS=Object.assign(M_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+M_.name,M_)}});var loe=Object.defineProperty,pL=Object.getOwnPropertySymbols,coe=Object.prototype.hasOwnProperty,uoe=Object.prototype.propertyIsEnumerable,mL=(e,t,n)=>t in e?loe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vL=(e,t)=>{for(var n in t||(t={}))coe.call(t,n)&&mL(e,n,t[n]);if(pL)for(var n of pL(t))uoe.call(t,n)&&mL(e,n,t[n]);return e};const doe=se({name:"Avatar",components:{ResizeObserver:qc,IconImageClose:YS,IconLoading:Lr},props:{shape:{type:String,default:"circle"},imageUrl:String,size:Number,autoFixFontSize:{type:Boolean,default:!0},triggerType:{type:String,default:"button"},triggerIconStyle:{type:Object},objectFit:{type:String}},emits:{click:e=>!0,error:()=>!0,load:()=>!0},setup(e,{slots:t,emit:n,attrs:i}){const{shape:o,size:s,autoFixFontSize:r,triggerType:a,triggerIconStyle:u}=lt(e),c=de("avatar"),l=Dt(sF,void 0),g=he(),C=he(),S=P(()=>{var z;return(z=l==null?void 0:l.shape)!=null?z:o.value}),_=P(()=>{var z;return(z=l==null?void 0:l.size)!=null?z:s.value}),A=P(()=>{var z;return(z=l==null?void 0:l.autoFixFontSize)!=null?z:r.value}),y=he(!1),d=he(!1),v=he(!0),m=he(!1),f=l?GS({itemRef:g,selector:`.${c}`}).computedIndex:he(-1),p=P(()=>{var z;const V=Le(_.value)?{width:`${_.value}px`,height:`${_.value}px`,fontSize:`${_.value/2}px`}:{};return l&&(V.zIndex=l.zIndexAscend?f.value+1:l.total-f.value,V.marginLeft=f.value!==0?`-${((z=_.value)!=null?z:40)/4}px`:"0"),V}),h=foe({triggerIconStyle:u==null?void 0:u.value,inlineStyle:i.style,triggerType:a.value}),b=()=>{!y.value&&!e.imageUrl&&fn(()=>{var z;if(!C.value||!g.value)return;const V=C.value.clientWidth,W=(z=_.value)!=null?z:g.value.offsetWidth,H=W/(V+8);W&&H<1&&(C.value.style.transform=`scale(${H}) translateX(-50%)`),v.value=!0})};Yt(()=>{var z;(z=C.value)!=null&&z.firstElementChild&&["IMG","PICTURE"].includes(C.value.firstElementChild.tagName)&&(y.value=!0),A.value&&b()}),gt(s,()=>{A.value&&b()});const w=P(()=>[c,`${c}-${S.value}`]),k=P(()=>y.value||e.imageUrl?`${c}-image`:`${c}-text`);return{prefixCls:c,itemRef:g,cls:w,outerStyle:p,wrapperRef:C,wrapperCls:k,computedTriggerIconStyle:h,isImage:y,shouldLoad:v,isLoaded:m,hasError:d,onClick:z=>{n("click",z)},handleResize:()=>{A.value&&b()},handleImgLoad:()=>{m.value=!0,n("load")},handleImgError:()=>{d.value=!0,n("error")}}}}),foe=({triggerType:e,inlineStyle:t={},triggerIconStyle:n={}})=>{let i={};return e==="button"&&(!n||n&&!n.color)&&t&&t.backgroundColor&&(i={color:t.backgroundColor}),vL(vL({},n),i)},hoe=["src"];function poe(e,t,n,i,o,s){const r=Pe("IconImageClose"),a=Pe("IconLoading"),u=Pe("resize-observer");return R(),X("div",{ref:"itemRef",style:Te(e.outerStyle),class:G([e.cls,{[`${e.prefixCls}-with-trigger-icon`]:!!e.$slots["trigger-icon"]}]),onClick:t[2]||(t[2]=(...c)=>e.onClick&&e.onClick(...c))},[O(u,{onResize:e.handleResize},{default:Ve(()=>[B("span",{ref:"wrapperRef",class:G(e.wrapperCls)},[e.imageUrl?(R(),X(ft,{key:0},[e.hasError?He(e.$slots,"error",{key:0},()=>[B("div",{class:G(`${e.prefixCls}-image-icon`)},[O(r)],2)]):Re("v-if",!0),!(e.hasError||!e.shouldLoad)&&!e.isLoaded?He(e.$slots,"default",{key:1},()=>[B("div",{class:G(`${e.prefixCls}-image-icon`)},[O(a)],2)]):Re("v-if",!0),e.hasError||!e.shouldLoad?Re("v-if",!0):(R(),X("img",{key:2,src:e.imageUrl,style:Te({width:e.size+"px",height:e.size+"px",objectFit:e.objectFit}),alt:"avatar",onLoad:t[0]||(t[0]=(...c)=>e.handleImgLoad&&e.handleImgLoad(...c)),onError:t[1]||(t[1]=(...c)=>e.handleImgError&&e.handleImgError(...c))},null,44,hoe))],64)):He(e.$slots,"default",{key:1})],2)]),_:3},8,["onResize"]),e.$slots["trigger-icon"]?(R(),X("div",{key:0,class:G(`${e.prefixCls}-trigger-icon-${e.triggerType}`),style:Te(e.computedTriggerIconStyle)},[He(e.$slots,"trigger-icon")],6)):Re("v-if",!0)],6)}var qy=ye(doe,[["render",poe]]);const moe=se({name:"Popover",components:{Trigger:ur},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},title:String,content:String,trigger:{type:[String,Array],default:"hover"},position:{type:String,default:"top"},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const n=de("popover"),i=he(e.defaultPopupVisible),o=P(()=>{var u;return(u=e.popupVisible)!=null?u:i.value}),s=u=>{i.value=u,t("update:popupVisible",u),t("popupVisibleChange",u)},r=P(()=>[`${n}-popup-content`,e.contentClass]),a=P(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,computedPopupVisible:o,contentCls:r,arrowCls:a,handlePopupVisibleChange:s}}});function voe(e,t,n,i,o,s){const r=Pe("trigger");return R(),We(r,{class:G(e.prefixCls),trigger:e.trigger,position:e.position,"popup-visible":e.computedPopupVisible,"popup-offset":10,"content-class":e.contentCls,"content-style":e.contentStyle,"arrow-class":e.arrowCls,"arrow-style":e.arrowStyle,"show-arrow":"","popup-container":e.popupContainer,"animation-name":"zoom-in-fade-out","auto-fit-transform-origin":"",onPopupVisibleChange:e.handlePopupVisibleChange},{content:Ve(()=>[B("div",{class:G(`${e.prefixCls}-title`)},[He(e.$slots,"title",{},()=>[pt(tt(e.title),1)])],2),B("div",{class:G(`${e.prefixCls}-content`)},[He(e.$slots,"content",{},()=>[pt(tt(e.content),1)])],2)]),default:Ve(()=>[He(e.$slots,"default")]),_:3},8,["class","trigger","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var T_=ye(moe,[["render",voe]]);const lP=Object.assign(T_,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+T_.name,T_)}}),Qy=se({name:"AvatarGroup",props:{shape:{type:String,default:"circle"},size:Number,autoFixFontSize:{type:Boolean,default:!0},maxCount:{type:Number,default:0},zIndexAscend:{type:Boolean,default:!1},maxStyle:{type:Object},maxPopoverTriggerProps:{type:Object}},setup(e,{slots:t}){const{shape:n,size:i,autoFixFontSize:o,zIndexAscend:s}=lt(e),r=de("avatar-group"),a=he(0);return cn(sF,it({shape:n,size:i,autoFixFontSize:o,zIndexAscend:s,total:a})),()=>{var u,c;const l=$a((c=(u=t.default)==null?void 0:u.call(t))!=null?c:[]),g=e.maxCount>0?l.slice(0,e.maxCount):l,C=e.maxCount>0?l.slice(e.maxCount):[];return a.value!==l.length&&(a.value=l.length),O("div",{class:r},[g,C.length>0&&O(lP,e.maxPopoverTriggerProps,{default:()=>[O(qy,{class:`${r}-max-count-avatar`,style:e.maxStyle},{default:()=>[pt("+"),C.length]})],content:()=>O("div",null,[C])})])}}}),goe=Object.assign(qy,{Group:Qy,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+qy.name,qy),e.component(n+Qy.name,Qy)}}),yoe=se({name:"IconToTop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-to-top`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),boe=["stroke-width","stroke-linecap","stroke-linejoin"],koe=B("path",{d:"M43 7H5M24 20v23M24 13.96 30.453 21H17.546L24 13.96Zm.736-.804Z"},null,-1),Coe=B("path",{d:"m24 14-6 7h12l-6-7Z",fill:"currentColor",stroke:"none"},null,-1),Soe=[koe,Coe];function woe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Soe,14,boe)}var P_=ye(yoe,[["render",woe]]);const aF=Object.assign(P_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+P_.name,P_)}}),_oe=se({name:"BackTop",components:{IconToTop:aF},props:{visibleHeight:{type:Number,default:200},targetContainer:{type:[String,Object]},easing:{type:String,default:"quartOut"},duration:{type:Number,default:200}},setup(e){const t=de("back-top"),n=he(!1),i=he(),o=!e.targetContainer,s=Jd(()=>{if(i.value){const{visibleHeight:u}=e,{scrollTop:c}=i.value;n.value=c>=u}}),r=u=>Ai(u)?document.querySelector(u):u;return Yt(()=>{i.value=o?document==null?void 0:document.documentElement:r(e.targetContainer),i.value&&(Nn(o?window:i.value,"scroll",s),s())}),$i(()=>{s.cancel(),i.value&&Qn(o?window:i.value,"scroll",s)}),{prefixCls:t,visible:n,scrollToTop:()=>{if(i.value){const{scrollTop:u}=i.value;new df({from:{scrollTop:u},to:{scrollTop:0},easing:e.easing,duration:e.duration,onUpdate:l=>{i.value&&(i.value.scrollTop=l.scrollTop)}}).start()}}}}});function Ioe(e,t,n,i,o,s){const r=Pe("icon-to-top");return R(),We(Pr,{name:"fade-in"},{default:Ve(()=>[e.visible?(R(),X("div",{key:0,class:G(e.prefixCls),onClick:t[0]||(t[0]=(...a)=>e.scrollToTop&&e.scrollToTop(...a))},[He(e.$slots,"default",{},()=>[B("button",{class:G(`${e.prefixCls}-btn`)},[O(r)],2)])],2)):Re("v-if",!0)]),_:3})}var O_=ye(_oe,[["render",Ioe]]);const xoe=Object.assign(O_,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+O_.name,O_)}});var $oe=Object.defineProperty,gL=Object.getOwnPropertySymbols,Aoe=Object.prototype.hasOwnProperty,Eoe=Object.prototype.propertyIsEnumerable,yL=(e,t,n)=>t in e?$oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L_=(e,t)=>{for(var n in t||(t={}))Aoe.call(t,n)&&yL(e,n,t[n]);if(gL)for(var n of gL(t))Eoe.call(t,n)&&yL(e,n,t[n]);return e};const Moe=["red","orangered","orange","gold","lime","green","cyan","arcoblue","purple","pinkpurple","magenta","gray"],Toe=["normal","processing","success","warning","danger"];var D_=se({name:"Badge",props:{text:{type:String},dot:{type:Boolean},dotStyle:{type:Object},maxCount:{type:Number,default:99},offset:{type:Array,default:()=>[]},color:{type:String},status:{type:String,validator:e=>Toe.includes(e)},count:{type:Number}},setup(e,{slots:t}){const{status:n,color:i,dotStyle:o,offset:s,text:r,dot:a,maxCount:u,count:c}=lt(e),l=de("badge"),g=Poe(l,n==null?void 0:n.value,t==null?void 0:t.default),C=P(()=>{const _=L_({},(o==null?void 0:o.value)||{}),[A,y]=(s==null?void 0:s.value)||[];A&&(_.marginRight=`${-A}px`),y&&(_.marginTop=`${y}px`);const d=!(i!=null&&i.value)||Moe.includes(i==null?void 0:i.value)?{}:{backgroundColor:i.value};return{mergedStyle:L_(L_({},d),_),computedDotStyle:_,computedColorStyle:d}}),S=()=>{const _=r==null?void 0:r.value,A=i==null?void 0:i.value,y=n==null?void 0:n.value,d=a==null?void 0:a.value,v=Number(c==null?void 0:c.value),m=(c==null?void 0:c.value)!=null,{computedDotStyle:f,mergedStyle:p}=C.value;return t.content?O("span",{class:`${l}-custom-dot`,style:f},[t.content()]):_&&!A&&!y?O("span",{class:`${l}-text`,style:f},[_]):y||A&&!m?O("span",{class:`${l}-status-wrapper`},[O("span",{class:[`${l}-status-dot`,{[`${l}-status-${y}`]:y,[`${l}-color-${A}`]:A}],style:p},null),_&&O("span",{class:`${l}-status-text`},[_])]):(d||A)&&v>0?O("span",{class:[`${l}-dot`,{[`${l}-color-${A}`]:A}],style:p},null):v===0?null:O("span",{class:`${l}-number`,style:p},[O("span",null,[u.value&&v>u.value?`${u.value}+`:v])])};return()=>O("span",{class:g.value},[t.default&&t.default(),S()])}});const Poe=(e,t,n)=>P(()=>[e,{[`${e}-status`]:t,[`${e}-no-children`]:!n}]),Ooe=Object.assign(D_,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+D_.name,D_)}}),lF=Symbol("ArcoBreadcrumb"),Loe=se({name:"IconMore",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-more`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Doe=["stroke-width","stroke-linecap","stroke-linejoin"],Noe=B("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z",fill:"currentColor",stroke:"none"},null,-1),joe=B("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z"},null,-1),zoe=[Noe,joe];function Roe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},zoe,14,Doe)}var N_=ye(Loe,[["render",Roe]]);const XS=Object.assign(N_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+N_.name,N_)}}),Boe=se({name:"IconDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-down`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Foe=["stroke-width","stroke-linecap","stroke-linejoin"],Voe=B("path",{d:"M39.6 17.443 24.043 33 8.487 17.443"},null,-1),Hoe=[Voe];function Woe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Hoe,14,Foe)}var j_=ye(Boe,[["render",Woe]]);const ff=Object.assign(j_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+j_.name,j_)}}),Uoe=se({name:"IconObliqueLine",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-oblique-line`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Zoe=["stroke-width","stroke-linecap","stroke-linejoin"],Goe=B("path",{d:"M29.506 6.502 18.493 41.498"},null,-1),Yoe=[Goe];function Xoe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Yoe,14,Zoe)}var z_=ye(Uoe,[["render",Xoe]]);const cF=Object.assign(z_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+z_.name,z_)}}),cP=Symbol("ArcoDropdown"),Koe=se({name:"DropdownPanel",components:{Scrollbar:Gs,Empty:Nl},props:{loading:{type:Boolean,default:!1},isEmpty:{type:Boolean,default:!1},bottomOffset:{type:Number,default:0},onScroll:{type:[Function,Array]},onReachBottom:{type:[Function,Array]}},emits:["scroll","reachBottom"],setup(e,{emit:t,slots:n}){const i=de("dropdown"),o=Dt(cP,{}),s=he(),r=c=>{const{scrollTop:l,scrollHeight:g,offsetHeight:C}=c.target;g-(l+C)<=e.bottomOffset&&t("reachBottom",c),t("scroll",c)},a=P(()=>{if(Le(o.popupMaxHeight))return{maxHeight:`${o.popupMaxHeight}px`};if(!o.popupMaxHeight)return{maxHeight:"none",overflowY:"hidden"}}),u=P(()=>[i,{[`${i}-has-footer`]:!!n.footer}]);return{prefixCls:i,cls:u,style:a,wrapperRef:s,handleScroll:r}}});function Joe(e,t,n,i,o,s){const r=Pe("empty"),a=Pe("Scrollbar");return R(),X("div",{class:G(e.cls)},[e.isEmpty?(R(),X("div",{key:0,class:G(`${e.prefixCls}-empty`)},[He(e.$slots,"empty",{},()=>[O(r)])],2)):Re("v-if",!0),O(a,{ref:"wrapperRef",class:G(`${e.prefixCls}-list-wrapper`),style:Te(e.style),onScroll:e.handleScroll},{default:Ve(()=>[B("ul",{class:G(`${e.prefixCls}-list`)},[He(e.$slots,"default")],2)]),_:3},8,["class","style","onScroll"]),e.$slots.footer&&!e.isEmpty?(R(),X("div",{key:1,class:G(`${e.prefixCls}-footer`)},[He(e.$slots,"footer")],2)):Re("v-if",!0)],2)}var uF=ye(Koe,[["render",Joe]]);const KS=({popupVisible:e,defaultPopupVisible:t,emit:n})=>{var i;const o=he((i=t==null?void 0:t.value)!=null?i:!1),s=P(()=>{var a;return(a=e==null?void 0:e.value)!=null?a:o.value}),r=a=>{a!==s.value&&(o.value=a,n("update:popupVisible",a),n("popupVisibleChange",a))};return gt(s,a=>{o.value!==a&&(o.value=a)}),{computedPopupVisible:s,handlePopupVisibleChange:r}},qoe=se({name:"Dropdown",components:{Trigger:ur,DropdownPanel:uF},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"click"},position:{type:String,default:"bottom"},popupContainer:{type:[String,Object]},popupMaxHeight:{type:[Boolean,Number],default:!0},hideOnSelect:{type:Boolean,default:!0}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,select:(e,t)=>!0},setup(e,{emit:t}){const{defaultPopupVisible:n,popupVisible:i,popupMaxHeight:o}=lt(e),s=de("dropdown"),{computedPopupVisible:r,handlePopupVisibleChange:a}=KS({defaultPopupVisible:n,popupVisible:i,emit:t});return cn(cP,it({popupMaxHeight:o,onOptionClick:(c,l)=>{t("select",c,l),e.hideOnSelect&&a(!1)}})),{prefixCls:s,computedPopupVisible:r,handlePopupVisibleChange:a}}});function Qoe(e,t,n,i,o,s){const r=Pe("DropdownPanel"),a=Pe("Trigger");return R(),We(a,{"popup-visible":e.computedPopupVisible,"animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"",trigger:e.trigger,position:e.position,"popup-offset":4,"popup-container":e.popupContainer,"opened-class":`${e.prefixCls}-open`,onPopupVisibleChange:e.handlePopupVisibleChange},{content:Ve(()=>[O(r,null,ti({default:Ve(()=>[He(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:Ve(()=>[He(e.$slots,"footer")])}:void 0]),1024)]),default:Ve(()=>[He(e.$slots,"default")]),_:3},8,["popup-visible","trigger","position","popup-container","opened-class","onPopupVisibleChange"])}var eb=ye(qoe,[["render",Qoe]]);const ese=se({name:"Doption",props:{value:{type:[String,Number,Object]},disabled:{type:Boolean,default:!1},active:Boolean,uninjectContext:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("dropdown-option"),i=he(),o=P(()=>{var u,c,l;return(l=(c=e.value)!=null?c:(u=i.value)==null?void 0:u.textContent)!=null?l:void 0}),s=e.uninjectContext?void 0:Dt(cP,void 0),r=u=>{e.disabled||(t("click",u),s==null||s.onOptionClick(o.value,u))},a=P(()=>[n,{[`${n}-disabled`]:e.disabled,[`${n}-active`]:e.active}]);return{prefixCls:n,cls:a,liRef:i,handleClick:r}}});function tse(e,t,n,i,o,s){return R(),X("li",{ref:"liRef",class:G([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:t[0]||(t[0]=(...r)=>e.handleClick&&e.handleClick(...r))},[e.$slots.icon?(R(),X("span",{key:0,class:G(`${e.prefixCls}-icon`)},[He(e.$slots,"icon")],2)):Re("v-if",!0),B("span",{class:G(`${e.prefixCls}-content`)},[He(e.$slots,"default")],2),e.$slots.suffix?(R(),X("span",{key:1,class:G(`${e.prefixCls}-suffix`)},[He(e.$slots,"suffix")],2)):Re("v-if",!0)],2)}var nh=ye(ese,[["render",tse]]);const nse=se({name:"Dgroup",props:{title:String},setup(){return{prefixCls:de("dropdown-group")}}});function ise(e,t,n,i,o,s){return R(),X(ft,null,[B("li",{class:G(`${e.prefixCls}-title`)},[He(e.$slots,"title",{},()=>[pt(tt(e.title),1)])],2),He(e.$slots,"default")],64)}var tb=ye(nse,[["render",ise]]);const rse=se({name:"IconRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-right`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),ose=["stroke-width","stroke-linecap","stroke-linejoin"],sse=B("path",{d:"m16 39.513 15.556-15.557L16 8.4"},null,-1),ase=[sse];function lse(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},ase,14,ose)}var R_=ye(rse,[["render",lse]]);const fs=Object.assign(R_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+R_.name,R_)}}),cse=se({name:"Dsubmenu",components:{Trigger:ur,DropdownPanel:uF,DropdownOption:nh,IconRight:fs},props:{value:{type:[String,Number]},disabled:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"click"},position:{type:String,default:"rt"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},optionProps:{type:Object}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const{defaultPopupVisible:n,popupVisible:i}=lt(e),o=de("dropdown"),{computedPopupVisible:s,handlePopupVisibleChange:r}=KS({defaultPopupVisible:n,popupVisible:i,emit:t});return{prefixCls:o,computedPopupVisible:s,handlePopupVisibleChange:r}}});function use(e,t,n,i,o,s){const r=Pe("IconRight"),a=Pe("dropdown-option"),u=Pe("dropdown-panel"),c=Pe("Trigger");return R(),We(c,{"popup-visible":e.computedPopupVisible,trigger:e.trigger,position:e.position,disabled:e.disabled,"popup-offset":4,onPopupVisibleChange:e.handlePopupVisibleChange},{content:Ve(()=>[O(u,{class:G(`${e.prefixCls}-submenu`)},ti({default:Ve(()=>[He(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:Ve(()=>[He(e.$slots,"footer")])}:void 0]),1032,["class"])]),default:Ve(()=>[O(a,Qe(e.optionProps,{active:e.computedPopupVisible,"uninject-context":""}),ti({suffix:Ve(()=>[He(e.$slots,"suffix",{},()=>[O(r)])]),default:Ve(()=>[He(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:Ve(()=>[He(e.$slots,"icon")])}:void 0]),1040,["active"])]),_:3},8,["popup-visible","trigger","position","disabled","onPopupVisibleChange"])}var nb=ye(cse,[["render",use]]);const dse=se({name:"DropdownButton",components:{IconMore:XS,Button:Yr,ButtonGroup:cv,Dropdown:eb},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"click"},position:{type:String,default:"br"},popupContainer:{type:[String,Object]},disabled:{type:Boolean,default:!1},type:{type:String},size:{type:String},buttonProps:{type:Object},hideOnSelect:{type:Boolean,default:!0}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,click:e=>!0,select:(e,t)=>!0},setup(e,{emit:t}){const{defaultPopupVisible:n,popupVisible:i}=lt(e),o=de("dropdown"),{computedPopupVisible:s,handlePopupVisibleChange:r}=KS({defaultPopupVisible:n,popupVisible:i,emit:t});return{prefixCls:o,computedPopupVisible:s,handleClick:c=>{t("click",c)},handleSelect:(c,l)=>{t("select",c,l)},handlePopupVisibleChange:r}}});function fse(e,t,n,i,o,s){const r=Pe("Button"),a=Pe("IconMore"),u=Pe("Dropdown"),c=Pe("ButtonGroup");return R(),We(c,null,{default:Ve(()=>[O(r,Qe({size:e.size,type:e.type,disabled:e.disabled},e.buttonProps,{onClick:e.handleClick}),{default:Ve(()=>[He(e.$slots,"default")]),_:3},16,["size","type","disabled","onClick"]),O(u,{"popup-visible":e.computedPopupVisible,trigger:e.trigger,position:e.position,"popup-container":e.popupContainer,"hide-on-select":e.hideOnSelect,onSelect:e.handleSelect,onPopupVisibleChange:e.handlePopupVisibleChange},{content:Ve(()=>[He(e.$slots,"content")]),default:Ve(()=>[O(r,{size:e.size,type:e.type,disabled:e.disabled},{icon:Ve(()=>[He(e.$slots,"icon",{popupVisible:e.computedPopupVisible},()=>[O(a)])]),_:3},8,["size","type","disabled"])]),_:3},8,["popup-visible","trigger","position","popup-container","hide-on-select","onSelect","onPopupVisibleChange"])]),_:3})}var ib=ye(dse,[["render",fse]]);const dF=Object.assign(eb,{Option:nh,Group:tb,Submenu:nb,Button:ib,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+eb.name,eb),e.component(n+nh.name,nh),e.component(n+tb.name,tb),e.component(n+nb.name,nb),e.component(n+ib.name,ib)}});var uv=se({name:"BreadcrumbItem",inheritAttrs:!1,props:{separator:{type:[String,Number]},droplist:{type:Array},dropdownProps:{type:Object},index:{type:Number,default:0}},setup(e,{slots:t,attrs:n}){const i=de("breadcrumb-item"),o=Dt(lF,void 0),s=he(!1),r=P(()=>!(o&&o.needHide&&e.index>1&&e.index<=o.total-o.maxCount)),a=P(()=>o&&o.needHide?e.index===1:!1),u=P(()=>o?e.index<o.total-1:!0),c=_=>{s.value=_},l=()=>{var _,A,y,d,v,m,f;if(!u.value)return null;const p=(f=(m=(v=(A=(_=t.separator)==null?void 0:_.call(t))!=null?A:e.separator)!=null?v:(d=o==null?void 0:(y=o.slots).separator)==null?void 0:d.call(y))!=null?m:o==null?void 0:o.separator)!=null?f:O(cF,null,null);return O("div",{"aria-hidden":"true",class:`${i}-separator`},[p])},g=()=>{var _,A,y,d;return O("div",Qe({role:"listitem",class:[i,{[`${i}-with-dropdown`]:e.droplist||t.droplist}]},a.value?{"aria-label":"ellipses of breadcrumb items"}:void 0,n),[a.value?(y=(A=o==null?void 0:(_=o.slots)["more-icon"])==null?void 0:A.call(_))!=null?y:O(XS,null,null):(d=t.default)==null?void 0:d.call(t),(e.droplist||t.droplist)&&O("span",{"aria-hidden":!0,class:[`${i}-dropdown-icon`,{[`${i}-dropdown-icon-active`]:s.value}]},[O(ff,null,null)])])},C=()=>{var _,A,y;return(y=(_=t.droplist)==null?void 0:_.call(t))!=null?y:(A=e.droplist)==null?void 0:A.map(d=>O(nh,{value:d.path},{default:()=>[d.label]}))},S=()=>O(dF,Qe({popupVisible:s.value,onPopupVisibleChange:c},e.dropdownProps),{default:()=>[g()],content:C});return()=>r.value?O(ft,null,[t.droplist||e.droplist?S():g(),l()]):null}}),B_=se({name:"Breadcrumb",props:{maxCount:{type:Number,default:0},routes:{type:Array},separator:{type:[String,Number]},customUrl:{type:Function}},setup(e,{slots:t}){const{maxCount:n,separator:i,routes:o}=lt(e),s=de("breadcrumb"),r=he(0),a=P(()=>n.value>0&&r.value>n.value+1);cn(lF,it({total:r,maxCount:n,separator:i,needHide:a,slots:t}));const u=(g,C,S)=>{var _,A;if(C.indexOf(g)===C.length-1)return O("span",null,[g.label]);const y=(A=(_=e.customUrl)==null?void 0:_.call(e,S))!=null?A:`#/${S.join("/").replace(/^\//,"")}`;return O("a",{href:y},[g.label])},c=()=>{var g;if(!((g=o.value)!=null&&g.length))return null;r.value!==o.value.length&&(r.value=o.value.length);const C=[];return o.value.map((S,_,A)=>{C.push((S.path||"").replace(/^\//,""));const y=[...C];return O(uv,{key:S.path||S.label,index:_,droplist:S.children},{default:()=>{var d,v;return[(v=(d=t["item-render"])==null?void 0:d.call(t,{route:S,routes:A,paths:y}))!=null?v:u(S,A,y)]}})})},l=()=>{var g,C;const S=$a((C=(g=t.default)==null?void 0:g.call(t))!=null?C:[]);return r.value!==S.length&&(r.value=S.length),S.map((_,A)=>{var y;return _.props=Qe((y=_.props)!=null?y:{},{index:A}),_})};return()=>O("div",{role:"list",class:s},[t.default?l():c()])}});const hse=Object.assign(B_,{Item:uv,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+B_.name,B_),e.component(n+uv.name,uv)}});var su=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function au(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cst(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function i(){if(this instanceof i){var o=[null];o.push.apply(o,arguments);var s=Function.bind.apply(t,o);return new s}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,o.get?o:{enumerable:!0,get:function(){return e[i]}})}),n}var fF={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(su,function(){var n=1e3,i=6e4,o=36e5,s="millisecond",r="second",a="minute",u="hour",c="day",l="week",g="month",C="quarter",S="year",_="date",A="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var V=["th","st","nd","rd"],W=z%100;return"["+z+(V[(W-20)%10]||V[W]||V[0])+"]"}},m=function(z,V,W){var H=String(z);return!H||H.length>=V?z:""+Array(V+1-H.length).join(W)+z},f={s:m,z:function(z){var V=-z.utcOffset(),W=Math.abs(V),H=Math.floor(W/60),U=W%60;return(V<=0?"+":"-")+m(H,2,"0")+":"+m(U,2,"0")},m:function z(V,W){if(V.date()<W.date())return-z(W,V);var H=12*(W.year()-V.year())+(W.month()-V.month()),U=V.clone().add(H,g),Q=W-U<0,q=V.clone().add(H+(Q?-1:1),g);return+(-(H+(W-U)/(Q?U-q:q-U))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:g,y:S,w:l,d:c,D:_,h:u,m:a,s:r,ms:s,Q:C}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},p="en",h={};h[p]=v;var b="$isDayjsObject",w=function(z){return z instanceof N||!(!z||!z[b])},k=function z(V,W,H){var U;if(!V)return p;if(typeof V=="string"){var Q=V.toLowerCase();h[Q]&&(U=Q),W&&(h[Q]=W,U=Q);var q=V.split("-");if(!U&&q.length>1)return z(q[0])}else{var ae=V.name;h[ae]=V,U=ae}return!H&&U&&(p=U),U||!H&&p},$=function(z,V){if(w(z))return z.clone();var W=typeof V=="object"?V:{};return W.date=z,W.args=arguments,new N(W)},E=f;E.l=k,E.i=w,E.w=function(z,V){return $(z,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var N=function(){function z(W){this.$L=k(W.locale,null,!0),this.parse(W),this.$x=this.$x||W.x||{},this[b]=!0}var V=z.prototype;return V.parse=function(W){this.$d=function(H){var U=H.date,Q=H.utc;if(U===null)return new Date(NaN);if(E.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var q=U.match(y);if(q){var ae=q[2]-1||0,ne=(q[7]||"0").substring(0,3);return Q?new Date(Date.UTC(q[1],ae,q[3]||1,q[4]||0,q[5]||0,q[6]||0,ne)):new Date(q[1],ae,q[3]||1,q[4]||0,q[5]||0,q[6]||0,ne)}}return new Date(U)}(W),this.init()},V.init=function(){var W=this.$d;this.$y=W.getFullYear(),this.$M=W.getMonth(),this.$D=W.getDate(),this.$W=W.getDay(),this.$H=W.getHours(),this.$m=W.getMinutes(),this.$s=W.getSeconds(),this.$ms=W.getMilliseconds()},V.$utils=function(){return E},V.isValid=function(){return this.$d.toString()!==A},V.isSame=function(W,H){var U=$(W);return this.startOf(H)<=U&&U<=this.endOf(H)},V.isAfter=function(W,H){return $(W)<this.startOf(H)},V.isBefore=function(W,H){return this.endOf(H)<$(W)},V.$g=function(W,H,U){return E.u(W)?this[H]:this.set(U,W)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(W,H){var U=this,Q=!!E.u(H)||H,q=E.p(W),ae=function(Se,fe){var pe=E.w(U.$u?Date.UTC(U.$y,fe,Se):new Date(U.$y,fe,Se),U);return Q?pe:pe.endOf(c)},ne=function(Se,fe){return E.w(U.toDate()[Se].apply(U.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(fe)),U)},be=this.$W,te=this.$M,Ie=this.$D,$e="set"+(this.$u?"UTC":"");switch(q){case S:return Q?ae(1,0):ae(31,11);case g:return Q?ae(1,te):ae(0,te+1);case l:var Me=this.$locale().weekStart||0,ge=(be<Me?be+7:be)-Me;return ae(Q?Ie-ge:Ie+(6-ge),te);case c:case _:return ne($e+"Hours",0);case u:return ne($e+"Minutes",1);case a:return ne($e+"Seconds",2);case r:return ne($e+"Milliseconds",3);default:return this.clone()}},V.endOf=function(W){return this.startOf(W,!1)},V.$set=function(W,H){var U,Q=E.p(W),q="set"+(this.$u?"UTC":""),ae=(U={},U[c]=q+"Date",U[_]=q+"Date",U[g]=q+"Month",U[S]=q+"FullYear",U[u]=q+"Hours",U[a]=q+"Minutes",U[r]=q+"Seconds",U[s]=q+"Milliseconds",U)[Q],ne=Q===c?this.$D+(H-this.$W):H;if(Q===g||Q===S){var be=this.clone().set(_,1);be.$d[ae](ne),be.init(),this.$d=be.set(_,Math.min(this.$D,be.daysInMonth())).$d}else ae&&this.$d[ae](ne);return this.init(),this},V.set=function(W,H){return this.clone().$set(W,H)},V.get=function(W){return this[E.p(W)]()},V.add=function(W,H){var U,Q=this;W=Number(W);var q=E.p(H),ae=function(te){var Ie=$(Q);return E.w(Ie.date(Ie.date()+Math.round(te*W)),Q)};if(q===g)return this.set(g,this.$M+W);if(q===S)return this.set(S,this.$y+W);if(q===c)return ae(1);if(q===l)return ae(7);var ne=(U={},U[a]=i,U[u]=o,U[r]=n,U)[q]||1,be=this.$d.getTime()+W*ne;return E.w(be,this)},V.subtract=function(W,H){return this.add(-1*W,H)},V.format=function(W){var H=this,U=this.$locale();if(!this.isValid())return U.invalidDate||A;var Q=W||"YYYY-MM-DDTHH:mm:ssZ",q=E.z(this),ae=this.$H,ne=this.$m,be=this.$M,te=U.weekdays,Ie=U.months,$e=U.meridiem,Me=function(fe,pe,je,Y){return fe&&(fe[pe]||fe(H,Q))||je[pe].slice(0,Y)},ge=function(fe){return E.s(ae%12||12,fe,"0")},Se=$e||function(fe,pe,je){var Y=fe<12?"AM":"PM";return je?Y.toLowerCase():Y};return Q.replace(d,function(fe,pe){return pe||function(je){switch(je){case"YY":return String(H.$y).slice(-2);case"YYYY":return E.s(H.$y,4,"0");case"M":return be+1;case"MM":return E.s(be+1,2,"0");case"MMM":return Me(U.monthsShort,be,Ie,3);case"MMMM":return Me(Ie,be);case"D":return H.$D;case"DD":return E.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return Me(U.weekdaysMin,H.$W,te,2);case"ddd":return Me(U.weekdaysShort,H.$W,te,3);case"dddd":return te[H.$W];case"H":return String(ae);case"HH":return E.s(ae,2,"0");case"h":return ge(1);case"hh":return ge(2);case"a":return Se(ae,ne,!0);case"A":return Se(ae,ne,!1);case"m":return String(ne);case"mm":return E.s(ne,2,"0");case"s":return String(H.$s);case"ss":return E.s(H.$s,2,"0");case"SSS":return E.s(H.$ms,3,"0");case"Z":return q}return null}(fe)||q.replace(":","")})},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(W,H,U){var Q,q=this,ae=E.p(H),ne=$(W),be=(ne.utcOffset()-this.utcOffset())*i,te=this-ne,Ie=function(){return E.m(q,ne)};switch(ae){case S:Q=Ie()/12;break;case g:Q=Ie();break;case C:Q=Ie()/3;break;case l:Q=(te-be)/6048e5;break;case c:Q=(te-be)/864e5;break;case u:Q=te/o;break;case a:Q=te/i;break;case r:Q=te/n;break;default:Q=te}return U?Q:E.a(Q)},V.daysInMonth=function(){return this.endOf(g).$D},V.$locale=function(){return h[this.$L]},V.locale=function(W,H){if(!W)return this.$L;var U=this.clone(),Q=k(W,H,!0);return Q&&(U.$L=Q),U},V.clone=function(){return E.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},z}(),j=N.prototype;return $.prototype=j,[["$ms",s],["$s",r],["$m",a],["$H",u],["$W",c],["$M",g],["$y",S],["$D",_]].forEach(function(z){j[z[1]]=function(V){return this.$g(V,z[0],z[1])}}),$.extend=function(z,V){return z.$i||(z(V,N,$),z.$i=!0),$},$.locale=k,$.isDayjs=w,$.unix=function(z){return $(1e3*z)},$.en=h[p],$.Ls=h,$.p={},$})})(fF);var hF=fF.exports;const yr=au(hF);var pF={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(su,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,s=/\d\d/,r=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,u={},c=function(y){return(y=+y)+(y>68?1900:2e3)},l=function(y){return function(d){this[y]=+d}},g=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(d){if(!d||d==="Z")return 0;var v=d.match(/([+-]|\d\d)/g),m=60*v[1]+(+v[2]||0);return m===0?0:v[0]==="+"?-m:m}(y)}],C=function(y){var d=u[y];return d&&(d.indexOf?d:d.s.concat(d.f))},S=function(y,d){var v,m=u.meridiem;if(m){for(var f=1;f<=24;f+=1)if(y.indexOf(m(f,0,d))>-1){v=f>12;break}}else v=y===(d?"pm":"PM");return v},_={A:[a,function(y){this.afternoon=S(y,!1)}],a:[a,function(y){this.afternoon=S(y,!0)}],Q:[o,function(y){this.month=3*(y-1)+1}],S:[o,function(y){this.milliseconds=100*+y}],SS:[s,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[s,l("day")],Do:[a,function(y){var d=u.ordinal,v=y.match(/\d+/);if(this.day=v[0],d)for(var m=1;m<=31;m+=1)d(m).replace(/\[|\]/g,"")===y&&(this.day=m)}],w:[r,l("week")],ww:[s,l("week")],M:[r,l("month")],MM:[s,l("month")],MMM:[a,function(y){var d=C("months"),v=(C("monthsShort")||d.map(function(m){return m.slice(0,3)})).indexOf(y)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[a,function(y){var d=C("months").indexOf(y)+1;if(d<1)throw new Error;this.month=d%12||d}],Y:[/[+-]?\d+/,l("year")],YY:[s,function(y){this.year=c(y)}],YYYY:[/\d{4}/,l("year")],Z:g,ZZ:g};function A(y){var d,v;d=y,v=u&&u.formats;for(var m=(y=d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,E,N){var j=N&&N.toUpperCase();return E||v[N]||n[N]||v[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(z,V,W){return V||W.slice(1)})})).match(i),f=m.length,p=0;p<f;p+=1){var h=m[p],b=_[h],w=b&&b[0],k=b&&b[1];m[p]=k?{regex:w,parser:k}:h.replace(/^\[|\]$/g,"")}return function($){for(var E={},N=0,j=0;N<f;N+=1){var z=m[N];if(typeof z=="string")j+=z.length;else{var V=z.regex,W=z.parser,H=$.slice(j),U=V.exec(H)[0];W.call(E,U),$=$.replace(U,"")}}return function(Q){var q=Q.afternoon;if(q!==void 0){var ae=Q.hours;q?ae<12&&(Q.hours+=12):ae===12&&(Q.hours=0),delete Q.afternoon}}(E),E}}return function(y,d,v){v.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var m=d.prototype,f=m.parse;m.parse=function(p){var h=p.date,b=p.utc,w=p.args;this.$u=b;var k=w[1];if(typeof k=="string"){var $=w[2]===!0,E=w[3]===!0,N=$||E,j=w[2];E&&(j=w[2]),u=this.$locale(),!$&&j&&(u=v.Ls[j]),this.$d=function(H,U,Q,q){try{if(["x","X"].indexOf(U)>-1)return new Date((U==="X"?1e3:1)*H);var ae=A(U)(H),ne=ae.year,be=ae.month,te=ae.day,Ie=ae.hours,$e=ae.minutes,Me=ae.seconds,ge=ae.milliseconds,Se=ae.zone,fe=ae.week,pe=new Date,je=te||(ne||be?1:pe.getDate()),Y=ne||pe.getFullYear(),Z=0;ne&&!be||(Z=be>0?be-1:pe.getMonth());var ee,ce=Ie||0,xe=$e||0,re=Me||0,le=ge||0;return Se?new Date(Date.UTC(Y,Z,je,ce,xe,re,le+60*Se.offset*1e3)):Q?new Date(Date.UTC(Y,Z,je,ce,xe,re,le)):(ee=new Date(Y,Z,je,ce,xe,re,le),fe&&(ee=q(ee).week(fe).toDate()),ee)}catch{return new Date("")}}(h,k,b,v),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),N&&h!=this.format(k)&&(this.$d=new Date("")),u={}}else if(k instanceof Array)for(var z=k.length,V=1;V<=z;V+=1){w[1]=k[V-1];var W=v.apply(this,w);if(W.isValid()){this.$d=W.$d,this.$L=W.$L,this.init();break}V===z&&(this.$d=new Date(""))}else f.call(this,p)}}})})(pF);var pse=pF.exports;const mse=au(pse);var mF={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(su,function(){return function(n,i,o){i.prototype.isBetween=function(s,r,a,u){var c=o(s),l=o(r),g=(u=u||"()")[0]==="(",C=u[1]===")";return(g?this.isAfter(c,a):!this.isBefore(c,a))&&(C?this.isBefore(l,a):!this.isAfter(l,a))||(g?this.isBefore(c,a):!this.isAfter(c,a))&&(C?this.isAfter(l,a):!this.isBefore(l,a))}}})})(mF);var vse=mF.exports;const gse=au(vse);var vF={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(su,function(){var n="week",i="year";return function(o,s,r){var a=s.prototype;a.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var l=r(this).startOf(i).add(1,i).date(c),g=r(this).endOf(n);if(l.isBefore(g))return 1}var C=r(this).startOf(i).date(c).startOf(n).subtract(1,"millisecond"),S=this.diff(C,n,!0);return S<0?r(this).startOf("week").week():Math.ceil(S)},a.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(vF);var yse=vF.exports;const bse=au(yse);var gF={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(su,function(){return function(n,i){var o=i.prototype,s=o.format;o.format=function(r){var a=this,u=this.$locale();if(!this.isValid())return s.bind(this)(r);var c=this.$utils(),l=(r||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(g){switch(g){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return u.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return u.ordinal(a.week(),"W");case"w":case"ww":return c.s(a.week(),g==="w"?1:2,"0");case"W":case"WW":return c.s(a.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return c.s(String(a.$H===0?24:a.$H),g==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return g}});return s.bind(this)(l)}}})})(gF);var kse=gF.exports;const Cse=au(kse);var yF={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(su,function(){return function(n,i){i.prototype.weekYear=function(){var o=this.month(),s=this.week(),r=this.year();return s===1&&o===11?r+1:o===0&&s>=52?r-1:r}}})})(yF);var Sse=yF.exports;const wse=au(Sse);var bF={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(su,function(){var n="month",i="quarter";return function(o,s){var r=s.prototype;r.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var a=r.add;r.add=function(c,l){return c=Number(c),this.$utils().p(l)===i?this.add(3*c,n):a.bind(this)(c,l)};var u=r.startOf;r.startOf=function(c,l){var g=this.$utils(),C=!!g.u(l)||l;if(g.p(c)===i){var S=this.quarter()-1;return C?this.month(3*S).startOf(n).startOf("day"):this.month(3*S+2).endOf(n).endOf("day")}return u.bind(this)(c,l)}}})})(bF);var _se=bF.exports;const Ise=au(_se);var xse={exports:{}};(function(e,t){(function(n,i){e.exports=i(hF)})(su,function(n){function i(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var o=i(n),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(r,a){return a==="W"?r+"周":r+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(r,a){var u=100*r+a;return u<600?"凌晨":u<900?"早上":u<1100?"上午":u<1300?"中午":u<1800?"下午":"晚上"}};return o.default.locale(s,null,!0),s})})(xse);var $se=Object.defineProperty,Ase=Object.defineProperties,Ese=Object.getOwnPropertyDescriptors,bL=Object.getOwnPropertySymbols,Mse=Object.prototype.hasOwnProperty,Tse=Object.prototype.propertyIsEnumerable,kL=(e,t,n)=>t in e?$se(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pse=(e,t)=>{for(var n in t||(t={}))Mse.call(t,n)&&kL(e,n,t[n]);if(bL)for(var n of bL(t))Tse.call(t,n)&&kL(e,n,t[n]);return e},Ose=(e,t)=>Ase(e,Ese(t));const Lse=(e,t,n)=>{n=function(s,r){if(ls(s))return s.clone();const a=typeof r=="object"?r:{};return a.date=s,a.args=arguments,new t(a)};const i=t.prototype,o=i.$utils;i.$utils=()=>{const s=o();return s.i=ls,s},n.isDayjs=ls};yr.extend(Lse);yr.extend(mse);yr.extend(gse);yr.extend(bse);yr.extend(Cse);yr.extend(wse);yr.extend(Ise);const zi=yr,Yi={add(e,t,n){return e.add(t,n)},subtract(e,t,n){return e.subtract(t,n)},startOf(e,t){return e.startOf(t)},startOfWeek(e,t){const n=e.day();let i=e.subtract(n-t,"day");return i.isAfter(e)&&(i=i.subtract(7,"day")),i},endOf(e,t){return e.endOf(t)},set(e,t,n){return e.set(t,n)},isSameWeek(e,t,n){const i=o=>{const s=o.day(),r=s-n+(s<n?7:0);return o.subtract(r,"day").week()};return i(e)===i(t)}};function Mr(){return zi()}function jv(e){return[...e].sort((t,n)=>t.valueOf()-n.valueOf())}function uP(e,t){const n=(i,o)=>i===void 0&&o===void 0?!1:i&&!o||!i&&o?!0:(i==null?void 0:i.valueOf())!==(o==null?void 0:o.valueOf());return t===void 0&&e===void 0?!1:Kt(t)&&Kt(e)?n(t[0],e[0])||n(t[1],e[1]):!Kt(t)&&!Kt(e)?n(t,e):!0}function Wo(e,t){const n=o=>{const s=/(Q1)|(Q2)|(Q3)|(Q4)/,r={Q1:"01",Q2:"04",Q3:"07",Q4:"10"},[a]=s.exec(o);return o.replace(s,r[a])},i=o=>{if(o){if(typeof o=="string"){if(rte(t))return zi(n(o),t.replace(/\[Q]Q/,"MM"));if(zi(o,t).isValid())return zi(o,t)}return zi(o)}};return Kt(e)?e.map(i):i(e)}function _o(e){const t=n=>n?n.toDate():void 0;return Kt(e)?e.map(t):t(e)}function kF(e,t){zi.locale(Ose(Pse({},zi.Ls[e.toLocaleLowerCase()]),{weekStart:t}))}function Dse(e){const t={};return e&&Object.keys(e).forEach(n=>{const i=String(n);i.indexOf("data-")===0&&(t[i]=e[i]),i.indexOf("aria-")===0&&(t[i]=e[i])}),t}function Vd(e,t,n=" "){const i=String(e);if(!t)return i;const o=i.length<t?`${n}${i}`:i;return o.length<t?Vd(o,t,n):o}var Nse=se({name:"Week",props:{mode:{type:String},dayStartOfWeek:{type:Number},isWeek:{type:Boolean},panel:{type:Boolean},value:{type:Object,required:!0},selectHandler:{type:Function},pageShowData:{type:Object,required:!0},pageData:{type:Array}},setup(e){const{dayStartOfWeek:t,isWeek:n,panel:i,mode:o}=lt(e),s=de("calendar-week-list"),{t:r}=fi(),a=["monday","tuesday","wednesday","thursday","friday","saturday"];return t.value===0?a.unshift("sunday"):a.push("sunday"),n.value&&a.unshift("self"),()=>O("div",{class:s},[a.map(u=>O("div",{class:`${s}-item`,key:u},[r(`calendar.week.${i.value||o.value==="year"?"short":"long"}.${u}`)]))])}});function _y(e,t){if(e&&Kt(e))return e[t]}function CF({prefixCls:e,mergedValue:t,rangeValues:n,hoverRangeValues:i,panel:o,isSameTime:s,innerMode:r}){function a(u,c,l){return!c||!l?!1:s(u,c)||s(u,l)||u.isBetween(c,l,null,"[]")}return function(c,l){const g=_y(n,0),C=_y(n,1),S=_y(i,0),_=_y(i,1),A=!c.isPrev&&!c.isNext,y=A&&o,d=y&&g&&s(c.time,g),v=y&&C&&s(c.time,C),m=S&&g&&S.isBefore(g),f=C&&_&&_.isAfter(C),p=m&&d||f&&v;let h=s(c.time,Mr());return!o&&r==="year"&&(h=Mr().isSame(c.time,"date")),[`${e}-cell`,{[`${e}-cell-in-view`]:A,[`${e}-cell-today`]:h,[`${e}-cell-selected`]:t&&s(c.time,t),[`${e}-cell-range-start`]:d,[`${e}-cell-range-end`]:v,[`${e}-cell-in-range`]:y&&a(c.time,g,C),[`${e}-cell-in-range-near-hover`]:p,[`${e}-cell-hover-range-start`]:y&&S&&s(c.time,S),[`${e}-cell-hover-range-end`]:y&&_&&s(c.time,_),[`${e}-cell-hover-in-range`]:y&&a(c.time,S,_),[`${e}-cell-disabled`]:l}]}}var jse=Object.defineProperty,zse=Object.defineProperties,Rse=Object.getOwnPropertyDescriptors,CL=Object.getOwnPropertySymbols,Bse=Object.prototype.hasOwnProperty,Fse=Object.prototype.propertyIsEnumerable,SL=(e,t,n)=>t in e?jse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F_=(e,t)=>{for(var n in t||(t={}))Bse.call(t,n)&&SL(e,n,t[n]);if(CL)for(var n of CL(t))Fse.call(t,n)&&SL(e,n,t[n]);return e},V_=(e,t)=>zse(e,Rse(t));const wL=6*7,Kk=e=>({year:e.year(),month:e.month()+1,date:e.date(),day:e.day(),time:e}),Vse=e=>({start:Kk(Yi.startOf(e,"month")),end:Kk(Yi.endOf(e,"month")),days:e.daysInMonth()});function SF(e,{dayStartOfWeek:t=0,isWeek:n}){const i=Vse(e),o=Array(wL).fill(null).map(()=>({})),s=t===0?i.start.day:(i.start.day||7)-1;o[s]=V_(F_({},i.start),{isCurrent:!0});for(let a=0;a<s;a++)o[s-a-1]=V_(F_({},Kk(Yi.subtract(i.start.time,a+1,"day"))),{isPrev:!0});for(let a=0;a<wL-s-1;a++)o[s+a+1]=V_(F_({},Kk(Yi.add(i.start.time,a+1,"day"))),{isCurrent:a<i.days,isNext:a>=i.days-1});const r=Array(6).fill(null).map(()=>[]);for(let a=0;a<6;a++)if(r[a]=o.slice(a*7,7*(a+1)),n){const u=r[a][0].time,c=[...r[a]];r[a].unshift({weekRows:c,weekOfYear:u.week()})}return r}var wF=se({name:"Month",props:{cell:{type:Boolean},pageData:{type:Array},current:{type:Number},value:{type:Object,required:!0},selectHandler:{type:Function,required:!0},mode:{type:String},pageShowDate:{type:Object,required:!0},panel:{type:Boolean},dayStartOfWeek:{type:Number,required:!0},isWeek:{type:Boolean,required:!0}},setup(e,{slots:t}){const{pageData:n}=lt(e),i=de("calendar"),o=e.pageShowDate.year(),s=P(()=>CF({prefixCls:i,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(u,c)=>u.isSame(c,"day")}));function r(u){return u.map((c,l)=>{var g;if(c.time){const C=()=>e.selectHandler(c.time,!1),S=e.isWeek?{onClick:C}:{},_=e.isWeek?{}:{onClick:C};return O("div",Qe({key:l,class:s.value(c,!1)},S),[t.default?(g=t.default)==null?void 0:g.call(t,{year:c.year,month:c.month,date:c.date}):O("div",Qe({class:`${i}-date`},_),[O("div",{class:`${i}-date-value`},[e.panel?c.date:O("div",{class:`${i}-date-circle`},[c.date])])])])}if("weekOfYear"in c){const C=e.value.year(),S=e.value.month()+1,_=e.value.week(),A=e.value&&c.weekRows.find(y=>y.year===C&&y.month===S)&&_===c.weekOfYear;return O("div",{key:l,class:[`${i}-cell`,`${i}-cell-week`,{[`${i}-cell-selected-week`]:A,[`${i}-cell-in-range`]:A}]},[O("div",{class:`${i}-date`},[O("div",{class:`${i}-date-value`},[c.weekOfYear])])])}return null})}let a=n.value;return typeof e.current=="number"&&(a=SF(zi(`${o}-${Vd(e.current+1,2,"0")}-01`),{dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek})),()=>O("div",{class:e.cell?`${i}-month-cell`:`${i}-month`},[O(Nse,{value:e.value,selectHandler:e.selectHandler,dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek,panel:e.panel,mode:e.mode,pageShowData:e.pageShowDate,pageData:e.pageData},null),O("div",{class:`${i}-month-cell-body`},[a==null?void 0:a.map((u,c)=>O("div",{key:c,class:[`${i}-month-row`,{[`${i}-row-week`]:e.isWeek}]},[r(u)]))])])}}),Hse=Object.defineProperty,Wse=Object.defineProperties,Use=Object.getOwnPropertyDescriptors,_L=Object.getOwnPropertySymbols,Zse=Object.prototype.hasOwnProperty,Gse=Object.prototype.propertyIsEnumerable,IL=(e,t,n)=>t in e?Hse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yse=(e,t)=>{for(var n in t||(t={}))Zse.call(t,n)&&IL(e,n,t[n]);if(_L)for(var n of _L(t))Gse.call(t,n)&&IL(e,n,t[n]);return e},Xse=(e,t)=>Wse(e,Use(t));const _F=["January","February","March","April","May","June","July","August","September","October","November","December"].map((e,t)=>({name:e,value:t})),IF=Array(3);for(let e=0;e<3;e++)IF[e]=_F.slice(e*4,4*(e+1));const xF=Array(4);for(let e=0;e<4;e++)xF[e]=_F.slice(e*3,3*(e+1));var Kse=se({name:"Year",props:{mode:{type:String,required:!0},dayStartOfWeek:{type:Number,required:!0},value:{type:Object,required:!0},isWeek:{type:Boolean},panel:{type:Boolean,default:!1},pageShowData:{type:Object,required:!0},pageData:{type:Array},selectHandler:{type:Function,required:!0}},setup(e){const t=de("calendar"),n=P(()=>CF({prefixCls:t,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(r,a)=>r.isSame(a,"month")})),{t:i}=fi(),o=P(()=>e.pageShowData.year()),s=e.panel?xF:IF;return()=>O("div",{class:`${t}-year`},[s.map((r,a)=>O("div",{class:`${t}-year-row`,key:a},[r.map(u=>{const c=zi(`${o.value}-${Vd(u.value+1,2,"0")}-01`),l=e.panel?{onClick:()=>e.selectHandler(c,!1)}:{};return O("div",{key:u.value,class:n.value(Xse(Yse({},u),{time:c}),!1)},[e.panel?O("div",Qe({class:`${t}-date`},l),[O("div",{class:`${t}-date-value`},[i(`calendar.month.short.${u.name}`)])]):O("div",{class:`${t}-month-with-days`},[O("div",{class:`${t}-month-title`},[i(`calendar.month.long.${u.name}`)]),O(wF,{pageShowDate:e.pageShowData,pageData:e.pageData,dayStartOfWeek:e.dayStartOfWeek,selectHandler:e.selectHandler,isWeek:e.isWeek,cell:!0,current:u.value,value:e.value,mode:e.mode},null)])])})]))])}});const Jse=({defaultValue:e,modelValue:t,emit:n,eventName:i="input",updateEventName:o="update:modelValue",eventHandlers:s})=>{var r;const a=he(),u=he((r=e==null?void 0:e.value)!=null?r:""),c=he(!1),l=he(!1),g=he("");let C;const S=P(()=>{var h;return(h=t==null?void 0:t.value)!=null?h:u.value}),_=(h,b)=>{u.value=h,n(o,h),n(i,h,b)},A=h=>{const{value:b}=h.target;l.value||(_(b,h),fn(()=>{a.value&&S.value!==a.value.value&&(a.value.value=S.value)}))},y=h=>{i==="input"&&S.value!==C&&(C=S.value,n("change",S.value,h))},d=h=>{var b;const{value:w}=h.target;h.type==="compositionend"?(l.value=!1,g.value="",_(w,h),fn(()=>{a.value&&S.value!==a.value.value&&(a.value.value=S.value)})):(l.value=!0,g.value=S.value+((b=h.data)!=null?b:""))},v=h=>{var b,w;c.value=!0,C=S.value,n("focus",h),(w=(b=s==null?void 0:s.value)==null?void 0:b.onFocus)==null||w.call(b,h)},m=h=>{var b,w;c.value=!1,n("blur",h),(w=(b=s==null?void 0:s.value)==null?void 0:b.onBlur)==null||w.call(b,h),y(h)},f=h=>{const b=h.key||h.code;!l.value&&b===eP.key&&(n("pressEnter",h),y(h))},p=h=>{a.value&&h.target!==a.value&&(h.preventDefault(),a.value.focus())};return gt(S,h=>{a.value&&h!==a.value.value&&(a.value.value=h)}),{inputRef:a,_value:u,_focused:c,isComposition:l,compositionValue:g,computedValue:S,handleInput:A,handleComposition:d,handleFocus:v,handleBlur:m,handleKeyDown:f,handleMousedown:p}};var qse=se({name:"InputLabel",inheritAttrs:!1,props:{modelValue:Object,inputValue:{type:String,default:""},enabledInput:Boolean,formatLabel:Function,placeholder:String,retainInputValue:Boolean,disabled:Boolean,baseCls:String,size:String,error:Boolean,focused:Boolean,uninjectFormItemContext:Boolean},emits:["update:inputValue","inputValueChange","focus","blur"],setup(e,{attrs:t,emit:n,slots:i}){var o;const{size:s,disabled:r,error:a,inputValue:u,uninjectFormItemContext:c}=lt(e),l=(o=e.baseCls)!=null?o:de("input-label"),{mergedSize:g,mergedDisabled:C,mergedError:S,eventHandlers:_}=li({size:s,disabled:r,error:a,uninject:c==null?void 0:c.value}),{mergedSize:A}=Sr(g),{inputRef:y,_focused:d,computedValue:v,handleInput:m,handleComposition:f,handleFocus:p,handleBlur:h,handleMousedown:b}=Jse({modelValue:u,emit:n,eventName:"inputValueChange",updateEventName:"update:inputValue",eventHandlers:_}),w=P(()=>{var H;return(H=e.focused)!=null?H:d.value}),k=P(()=>e.enabledInput&&d.value||!e.modelValue),$=()=>{var H,U;return e.modelValue?(U=(H=e.formatLabel)==null?void 0:H.call(e,e.modelValue))!=null?U:e.modelValue.label:""},E=P(()=>e.enabledInput&&e.modelValue?$():e.placeholder),N=()=>{var H,U;return e.modelValue?(U=(H=i.default)==null?void 0:H.call(i,{data:e.modelValue}))!=null?U:$():null},j=P(()=>[l,`${l}-size-${A.value}`,{[`${l}-search`]:e.enabledInput,[`${l}-focus`]:w.value,[`${l}-disabled`]:C.value,[`${l}-error`]:S.value}]),z=P(()=>kr(t,Jc)),V=P(()=>Ea(t,Jc));return{inputRef:y,render:()=>O("span",Qe(z.value,{class:j.value,title:$(),onMousedown:b}),[i.prefix&&O("span",{class:`${l}-prefix`},[i.prefix()]),O("input",Qe(V.value,{ref:y,class:[`${l}-input`,{[`${l}-input-hidden`]:!k.value}],value:v.value,readonly:!e.enabledInput,placeholder:E.value,disabled:C.value,onInput:m,onFocus:p,onBlur:h,onCompositionstart:f,onCompositionupdate:f,onCompositionend:f}),null),O("span",{class:[`${l}-value`,{[`${l}-value-hidden`]:k.value}]},[N()]),i.suffix&&O("span",{class:`${l}-suffix`},[i.suffix()])])}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}}),Qse=Object.defineProperty,xL=Object.getOwnPropertySymbols,eae=Object.prototype.hasOwnProperty,tae=Object.prototype.propertyIsEnumerable,$L=(e,t,n)=>t in e?Qse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nae=(e,t)=>{for(var n in t||(t={}))eae.call(t,n)&&$L(e,n,t[n]);if(xL)for(var n of xL(t))tae.call(t,n)&&$L(e,n,t[n]);return e};const iae=(e,t)=>{const n=[];for(const i of e)if(rn(i))n.push({raw:i,value:i[t.value],label:i[t.label],closable:i[t.closable],tagProps:i[t.tagProps]});else if(e||Le(e)){const o={value:i,label:String(i),closable:!0};n.push(nae({raw:o},o))}return n},AL=["red","orangered","orange","gold","lime","green","cyan","blue","arcoblue","purple","pinkpurple","magenta","gray"],rae=se({name:"Tag",components:{IconHover:ai,IconClose:Cr,IconLoading:Lr},props:{color:{type:String},size:{type:String},bordered:{type:Boolean,default:!1},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},closable:{type:Boolean,default:!1},checkable:{type:Boolean,default:!1},checked:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,default:!0},nowrap:{type:Boolean,default:!1}},emits:{"update:visible":e=>!0,"update:checked":e=>!0,close:e=>!0,check:(e,t)=>!0},setup(e,{emit:t}){const{size:n}=lt(e),i=de("tag"),o=P(()=>e.color&&AL.includes(e.color)),s=P(()=>e.color&&!AL.includes(e.color)),r=he(e.defaultVisible),a=he(e.defaultChecked),u=P(()=>{var y;return(y=e.visible)!=null?y:r.value}),c=P(()=>{var y;return e.checkable?(y=e.checked)!=null?y:a.value:!0}),{mergedSize:l}=Sr(n),g=P(()=>l.value==="mini"?"small":l.value),C=y=>{r.value=!1,t("update:visible",!1),t("close",y)},S=y=>{if(e.checkable){const d=!c.value;a.value=d,t("update:checked",d),t("check",d,y)}},_=P(()=>[i,`${i}-size-${g.value}`,{[`${i}-loading`]:e.loading,[`${i}-hide`]:!u.value,[`${i}-${e.color}`]:o.value,[`${i}-bordered`]:e.bordered,[`${i}-checkable`]:e.checkable,[`${i}-checked`]:c.value,[`${i}-custom-color`]:s.value}]),A=P(()=>{if(s.value)return{backgroundColor:e.color}});return{prefixCls:i,cls:_,style:A,computedVisible:u,computedChecked:c,handleClick:S,handleClose:C}}});function oae(e,t,n,i,o,s){const r=Pe("icon-close"),a=Pe("icon-hover"),u=Pe("icon-loading");return e.computedVisible?(R(),X("span",{key:0,class:G(e.cls),style:Te(e.style),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.$slots.icon?(R(),X("span",{key:0,class:G(`${e.prefixCls}-icon`)},[He(e.$slots,"icon")],2)):Re("v-if",!0),e.nowrap?(R(),X("span",{key:1,class:G(`${e.prefixCls}-text`)},[He(e.$slots,"default")],2)):He(e.$slots,"default",{key:2}),e.closable?(R(),We(a,{key:3,role:"button","aria-label":"Close",prefix:e.prefixCls,class:G(`${e.prefixCls}-close-btn`),onClick:oo(e.handleClose,["stop"])},{default:Ve(()=>[He(e.$slots,"close-icon",{},()=>[O(r)])]),_:3},8,["prefix","class","onClick"])):Re("v-if",!0),e.loading?(R(),X("span",{key:4,class:G(`${e.prefixCls}-loading-icon`)},[O(u)],2)):Re("v-if",!0)],6)):Re("v-if",!0)}var H_=ye(rae,[["render",oae]]);const dP=Object.assign(H_,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+H_.name,H_)}});var sae=Object.defineProperty,EL=Object.getOwnPropertySymbols,aae=Object.prototype.hasOwnProperty,lae=Object.prototype.propertyIsEnumerable,ML=(e,t,n)=>t in e?sae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Iy=(e,t)=>{for(var n in t||(t={}))aae.call(t,n)&&ML(e,n,t[n]);if(EL)for(var n of EL(t))lae.call(t,n)&&ML(e,n,t[n]);return e};const cae={value:"value",label:"label",closable:"closable",tagProps:"tagProps"};var W_=se({name:"InputTag",inheritAttrs:!1,props:{modelValue:{type:Array},defaultValue:{type:Array,default:()=>[]},inputValue:String,defaultInputValue:{type:String,default:""},placeholder:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},size:{type:String},maxTagCount:{type:Number,default:0},retainInputValue:{type:[Boolean,Object],default:!1},formatTag:{type:Function},uniqueValue:{type:Boolean,default:!1},fieldNames:{type:Object},tagNowrap:{type:Boolean,default:!1},baseCls:String,focused:Boolean,disabledInput:Boolean,uninjectFormItemContext:Boolean},emits:{"update:modelValue":e=>!0,"update:inputValue":e=>!0,change:(e,t)=>!0,inputValueChange:(e,t)=>!0,pressEnter:(e,t)=>!0,remove:(e,t)=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n,attrs:i}){const{size:o,disabled:s,error:r,uninjectFormItemContext:a,modelValue:u}=lt(e),c=e.baseCls||de("input-tag"),l=he(),g=he(),{mergedSize:C,mergedDisabled:S,mergedError:_,feedback:A,eventHandlers:y}=li({size:o,disabled:s,error:r,uninject:a==null?void 0:a.value}),{mergedSize:d}=Sr(C),v=P(()=>Iy(Iy({},cae),e.fieldNames)),m=he(!1),f=he(e.defaultValue),p=he(e.defaultInputValue),h=he(!1),b=he(""),w=P(()=>rn(e.retainInputValue)?Iy({create:!1,blur:!1},e.retainInputValue):{create:e.retainInputValue,blur:e.retainInputValue}),k=it({width:"12px"}),$=P(()=>e.focused||m.value),E=(Z,ee)=>{p.value=Z,t("update:inputValue",Z),t("inputValueChange",Z,ee)},N=Z=>{var ee;const{value:ce}=Z.target;Z.type==="compositionend"?(h.value=!1,b.value="",E(ce,Z),fn(()=>{l.value&&z.value!==l.value.value&&(l.value.value=z.value)})):(h.value=!0,b.value=z.value+((ee=Z.data)!=null?ee:""))},j=P(()=>{var Z;return(Z=e.modelValue)!=null?Z:f.value}),z=P(()=>{var Z;return(Z=e.inputValue)!=null?Z:p.value});gt(u,Z=>{(jt(Z)||Xr(Z))&&(f.value=[])});const V=Z=>{l.value&&Z.target!==l.value&&(Z.preventDefault(),l.value.focus())},W=Z=>{const{value:ee}=Z.target;h.value||(E(ee,Z),fn(()=>{l.value&&z.value!==l.value.value&&(l.value.value=z.value)}))},H=P(()=>iae(j.value,v.value)),U=P(()=>{if(e.maxTagCount>0){const Z=H.value.length-e.maxTagCount;if(Z>0){const ee=H.value.slice(0,e.maxTagCount),ce={value:"__arco__more",label:`+${Z}...`,closable:!1};return ee.push(Iy({raw:ce},ce)),ee}}return H.value}),Q=(Z,ee)=>{var ce,xe;f.value=Z,t("update:modelValue",Z),t("change",Z,ee),(xe=(ce=y.value)==null?void 0:ce.onChange)==null||xe.call(ce,ee)},q=(Z,ee,ce)=>{var xe;const re=(xe=j.value)==null?void 0:xe.filter((le,ve)=>ve!==ee);Q(re,ce),t("remove",Z,ce)},ae=Z=>{Q([],Z),t("clear",Z)},ne=P(()=>!S.value&&!e.readonly&&e.allowClear&&!!j.value.length),be=Z=>{var ee;if(z.value){if(Z.preventDefault(),e.uniqueValue&&((ee=j.value)!=null&&ee.includes(z.value))){t("pressEnter",z.value,Z);return}const ce=j.value.concat(z.value);Q(ce,Z),t("pressEnter",z.value,Z),w.value.create||E("",Z)}},te=Z=>{var ee,ce;m.value=!0,t("focus",Z),(ce=(ee=y.value)==null?void 0:ee.onFocus)==null||ce.call(ee,Z)},Ie=Z=>{var ee,ce;m.value=!1,!w.value.blur&&z.value&&E("",Z),t("blur",Z),(ce=(ee=y.value)==null?void 0:ee.onBlur)==null||ce.call(ee,Z)},$e=()=>{for(let Z=H.value.length-1;Z>=0;Z--)if(H.value[Z].closable)return Z;return-1},Me=Z=>{if(S.value||e.readonly)return;const ee=Z.key||Z.code;if(!h.value&&z.value&&ee===eP.key&&be(Z),!h.value&&U.value.length>0&&!z.value&&ee===KB.key){const ce=$e();ce>=0&&q(H.value[ce].value,ce,Z)}},ge=Z=>{Z>12?k.width=`${Z}px`:k.width="12px"};Yt(()=>{g.value&&ge(g.value.offsetWidth)});const Se=()=>{g.value&&ge(g.value.offsetWidth)};gt(z,Z=>{l.value&&!h.value&&Z!==l.value.value&&(l.value.value=Z)});const fe=P(()=>[c,`${c}-size-${d.value}`,{[`${c}-disabled`]:S.value,[`${c}-disabled-input`]:e.disabledInput,[`${c}-error`]:_.value,[`${c}-focus`]:$.value,[`${c}-readonly`]:e.readonly,[`${c}-has-tag`]:U.value.length>0,[`${c}-has-prefix`]:!!n.prefix,[`${c}-has-suffix`]:!!n.suffix||ne.value||A.value,[`${c}-has-placeholder`]:!j.value.length}]),pe=P(()=>kr(i,Jc)),je=P(()=>Ea(i,Jc));return{inputRef:l,render:()=>{var Z;return O("span",Qe({class:fe.value,onMousedown:V},pe.value),[O(Us,{onResize:Se},{default:()=>[O("span",{ref:g,class:`${c}-mirror`},[U.value.length>0?b.value||z.value:b.value||z.value||e.placeholder])]}),n.prefix&&O("span",{class:`${c}-prefix`},[n.prefix()]),O(lf,{tag:"span",name:"input-tag-zoom",class:[`${c}-inner`,{[`${c}-nowrap`]:e.tagNowrap}]},{default:()=>[U.value.map((ee,ce)=>O(dP,Qe({key:`tag-${ee.value}`,class:`${c}-tag`,closable:!S.value&&!e.readonly&&ee.closable,visible:!0,nowrap:e.tagNowrap},ee.tagProps,{onClose:xe=>q(ee.value,ce,xe)}),{default:()=>{var xe,re,le,ve;return[(ve=(le=(xe=n.tag)==null?void 0:xe.call(n,{data:ee.raw}))!=null?le:(re=e.formatTag)==null?void 0:re.call(e,ee.raw))!=null?ve:ee.label]}})),O("input",Qe(je.value,{ref:l,key:"input-tag-input",class:`${c}-input`,style:k,placeholder:U.value.length===0?e.placeholder:void 0,disabled:S.value,readonly:e.readonly||e.disabledInput,onInput:W,onKeydown:Me,onFocus:te,onBlur:Ie,onCompositionstart:N,onCompositionupdate:N,onCompositionend:N}),null)]}),ne.value&&O(ai,{class:`${c}-clear-btn`,onClick:ae,onMousedown:ee=>ee.stopPropagation()},{default:()=>[O(Cr,null,null)]}),(n.suffix||!!A.value)&&O("span",{class:`${c}-suffix`},[(Z=n.suffix)==null?void 0:Z.call(n),!!A.value&&O(m1,{type:A.value},null)])])}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const $F=Object.assign(W_,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+W_.name,W_)}});var Jk=se({name:"SelectView",props:{modelValue:{type:Array,required:!0},inputValue:String,placeholder:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},opened:{type:Boolean,default:!1},size:{type:String},bordered:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},allowSearch:{type:Boolean,default:e=>Kt(e.modelValue)},maxTagCount:{type:Number,default:0},tagNowrap:{type:Boolean,default:!1},retainInputValue:{type:Boolean,default:!1}},emits:["remove","clear","focus","blur"],setup(e,{emit:t,slots:n}){const{size:i,disabled:o,error:s}=lt(e),r=de("select-view"),{feedback:a,eventHandlers:u,mergedDisabled:c,mergedSize:l,mergedError:g}=li({size:i,disabled:o,error:s}),{mergedSize:C}=Sr(l),{opened:S}=lt(e),_=he(),A=P(()=>{var E;return(E=_.value)==null?void 0:E.inputRef}),y=P(()=>e.modelValue.length===0),d=P(()=>e.allowSearch||e.allowCreate),v=P(()=>e.allowClear&&!e.disabled&&!y.value),m=E=>{var N,j;t("focus",E),(j=(N=u.value)==null?void 0:N.onFocus)==null||j.call(N,E)},f=E=>{var N,j;t("blur",E),(j=(N=u.value)==null?void 0:N.onBlur)==null||j.call(N,E)},p=E=>{t("remove",E)},h=E=>{t("clear",E)},b=()=>{var E,N,j,z;return e.loading?(N=(E=n["loading-icon"])==null?void 0:E.call(n))!=null?N:O(Lr,null,null):e.allowSearch&&e.opened?(z=(j=n["search-icon"])==null?void 0:j.call(n))!=null?z:O(Xk,null,null):n["arrow-icon"]?n["arrow-icon"]():O(ff,{class:`${r}-arrow-icon`},null)},w=()=>O(ft,null,[v.value&&O(ai,{class:`${r}-clear-btn`,onClick:h,onMousedown:E=>E.stopPropagation()},{default:()=>[O(Cr,null,null)]}),O("span",{class:`${r}-icon`},[b()]),!!a.value&&O(m1,{type:a.value},null)]);gt(S,E=>{!E&&A.value&&A.value.isSameNode(document.activeElement)&&A.value.blur()});const k=P(()=>[`${r}-${e.multiple?"multiple":"single"}`,{[`${r}-opened`]:e.opened,[`${r}-borderless`]:!e.bordered}]);return{inputRef:A,handleFocus:m,handleBlur:f,render:()=>e.multiple?O($F,{ref:_,baseCls:r,class:k.value,modelValue:e.modelValue,inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:c.value,size:C.value,error:g.value,maxTagCount:e.maxTagCount,disabledInput:!e.allowSearch&&!e.allowCreate,tagNowrap:e.tagNowrap,retainInputValue:!0,uninjectFormItemContext:!0,onRemove:p,onFocus:m,onBlur:f},{prefix:n.prefix,suffix:w,tag:n.label}):O(qse,{ref:_,baseCls:r,class:k.value,modelValue:e.modelValue[0],inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:c.value,size:C.value,error:g.value,enabledInput:d.value,uninjectFormItemContext:!0,onFocus:m,onBlur:f},{default:n.label,prefix:n.prefix,suffix:w})}},methods:{focus(){this.inputRef&&this.inputRef.focus()},blur(){this.inputRef&&this.inputRef.blur()}},render(){return this.render()}});const uae=se({name:"Optgroup",props:{label:{type:String}},setup(){return{prefixCls:de("select-group")}}});function dae(e,t,n,i,o,s){return R(),X(ft,null,[B("li",{class:G(`${e.prefixCls}-title`)},[He(e.$slots,"label",{},()=>[pt(tt(e.label),1)])],2),He(e.$slots,"default")],64)}var dv=ye(uae,[["render",dae]]);const TL=typeof window>"u"?global:window;function zv(e,t){let n=0;return(...i)=>{n&&TL.clearTimeout(n),n=TL.setTimeout(()=>{n=0,e(...i)},t)}}var fae=Object.defineProperty,hae=Object.defineProperties,pae=Object.getOwnPropertyDescriptors,PL=Object.getOwnPropertySymbols,mae=Object.prototype.hasOwnProperty,vae=Object.prototype.propertyIsEnumerable,OL=(e,t,n)=>t in e?fae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cm=(e,t)=>{for(var n in t||(t={}))mae.call(t,n)&&OL(e,n,t[n]);if(PL)for(var n of PL(t))vae.call(t,n)&&OL(e,n,t[n]);return e},gae=(e,t)=>hae(e,pae(t));function yae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}const bae={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"};var U_=se({name:"Select",components:{Trigger:ur,SelectView:Jk},inheritAttrs:!1,props:{multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},defaultValue:{type:[String,Number,Boolean,Object,Array],default:e=>jt(e.multiple)?"":[]},inputValue:{type:String},defaultInputValue:{type:String,default:""},size:{type:String},placeholder:String,loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},allowSearch:{type:[Boolean,Object],default:e=>!!e.multiple},allowCreate:{type:Boolean,default:!1},maxTagCount:{type:Number,default:0},popupContainer:{type:[String,Object]},bordered:{type:Boolean,default:!0},defaultActiveFirstOption:{type:Boolean,default:!0},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},unmountOnClose:{type:Boolean,default:!1},filterOption:{type:[Boolean,Function],default:!0},options:{type:Array,default:()=>[]},virtualListProps:{type:Object},triggerProps:{type:Object},formatLabel:{type:Function},fallbackOption:{type:[Boolean,Function],default:!0},showExtraOptions:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},searchDelay:{type:Number,default:500},limit:{type:Number,default:0},fieldNames:{type:Object},scrollbar:{type:[Boolean,Object],default:!0},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1},tagNowrap:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,"update:inputValue":e=>!0,"update:popupVisible":e=>!0,change:e=>!0,inputValueChange:e=>!0,popupVisibleChange:e=>!0,clear:e=>!0,remove:e=>!0,search:e=>!0,dropdownScroll:e=>!0,dropdownReachBottom:e=>!0,exceedLimit:(e,t)=>!0},setup(e,{slots:t,emit:n,attrs:i}){const{size:o,disabled:s,error:r,options:a,filterOption:u,valueKey:c,multiple:l,popupVisible:g,defaultPopupVisible:C,showExtraOptions:S,modelValue:_,fieldNames:A,loading:y,defaultActiveFirstOption:d}=lt(e),v=de("select"),{mergedSize:m,mergedDisabled:f,mergedError:p,eventHandlers:h}=li({size:o,disabled:s,error:r}),b=P(()=>e.virtualListProps?"div":"li"),w=P(()=>rn(e.allowSearch)&&!!e.allowSearch.retainInputValue);P(()=>{if(Nt(e.formatLabel))return Ne=>{const ze=re.get(Ne.value);return e.formatLabel(ze)}});const k=he(),$=he({}),E=he(),{computedPopupVisible:N,handlePopupVisibleChange:j}=KS({popupVisible:g,defaultPopupVisible:C,emit:n}),z=he(e.defaultValue),V=P(()=>{var Ne;const ze=(Ne=e.modelValue)!=null?Ne:z.value;return(Kt(ze)?ze:ze||Le(ze)||Ai(ze)||Gr(ze)?[ze]:[]).map(et=>({value:et,key:qd(et,e.valueKey)}))});gt(_,Ne=>{(jt(Ne)||Xr(Ne))&&(z.value=l.value?[]:Ne)});const W=P(()=>V.value.map(Ne=>Ne.key)),H=P(()=>Cm(Cm({},bae),A==null?void 0:A.value)),U=he(),Q=Ne=>{const ze={};return Ne.forEach(Ue=>{ze[Ue]=re.get(Ue)}),ze},q=Ne=>{U.value=Q(Ne)},ae=Ne=>Nt(e.fallbackOption)?e.fallbackOption(Ne):{[H.value.value]:Ne,[H.value.label]:String(rn(Ne)?Ne[c==null?void 0:c.value]:Ne)},ne=()=>{const Ne=[],ze=[];if(e.allowCreate||e.fallbackOption){for(const Ue of V.value)if(!ze.includes(Ue.key)&&Ue.value!==""){const et=re.get(Ue.key);(!et||et.origin==="extraOptions")&&(Ne.push(Ue),ze.push(Ue.key))}}if(e.allowCreate&&$e.value){const Ue=qd($e.value);if(!ze.includes(Ue)){const et=re.get(Ue);(!et||et.origin==="extraOptions")&&Ne.push({value:$e.value,key:Ue})}}return Ne},be=he([]),te=P(()=>be.value.map(Ne=>{var ze;let Ue=ae(Ne.value);const et=(ze=U.value)==null?void 0:ze[Ne.key];return!jt(et)&&!ite(et)&&(Ue=Cm(Cm({},Ue),et)),Ue}));fn(()=>{Xi(()=>{var Ne;const ze=ne();if(ze.length!==be.value.length)be.value=ze;else if(ze.length>0){for(let Ue=0;Ue<ze.length;Ue++)if(ze[Ue].key!==((Ne=be.value[Ue])==null?void 0:Ne.key)){be.value=ze;break}}})});const Ie=he(""),$e=P(()=>{var Ne;return(Ne=e.inputValue)!=null?Ne:Ie.value});gt(N,Ne=>{!Ne&&!w.value&&$e.value&&Se("")});const Me=Ne=>{var ze,Ue;return e.multiple?Ne.map(et=>{var Xe,yt;return(yt=(Xe=re.get(et))==null?void 0:Xe.value)!=null?yt:""}):(Ue=(ze=re.get(Ne[0]))==null?void 0:ze.value)!=null?Ue:Lre(re)?void 0:""},ge=Ne=>{var ze,Ue;const et=Me(Ne);z.value=et,n("update:modelValue",et),n("change",et),(Ue=(ze=h.value)==null?void 0:ze.onChange)==null||Ue.call(ze),q(Ne)},Se=Ne=>{Ie.value=Ne,n("update:inputValue",Ne),n("inputValueChange",Ne)},fe=(Ne,ze)=>{if(e.multiple){if(W.value.includes(Ne)){const Ue=W.value.filter(et=>et!==Ne);ge(Ue)}else if(ve.value.includes(Ne))if(e.limit>0&&W.value.length>=e.limit){const Ue=re.get(Ne);n("exceedLimit",Ue==null?void 0:Ue.value,ze)}else{const Ue=W.value.concat(Ne);ge(Ue)}w.value||Se("")}else{if(Ne!==W.value[0]&&ge([Ne]),w.value){const Ue=re.get(Ne);Ue&&Se(Ue.label)}j(!1)}},pe=zv(Ne=>{n("search",Ne)},e.searchDelay),je=Ne=>{Ne!==$e.value&&(N.value||j(!0),Se(Ne),e.allowSearch&&pe(Ne))},Y=Ne=>{const ze=re.get(Ne),Ue=W.value.filter(et=>et!==Ne);ge(Ue),n("remove",ze==null?void 0:ze.value)},Z=Ne=>{Ne==null||Ne.stopPropagation();const ze=W.value.filter(Ue=>{var et;return(et=re.get(Ue))==null?void 0:et.disabled});ge(ze),Se(""),n("clear",Ne)},ee=Ne=>{n("dropdownScroll",Ne)},ce=Ne=>{n("dropdownReachBottom",Ne)},{validOptions:xe,optionInfoMap:re,validOptionInfos:le,enabledOptionKeys:ve,handleKeyDown:De}=aP({multiple:l,options:a,extraOptions:te,inputValue:$e,filterOption:u,showExtraOptions:S,component:b,valueKey:c,fieldNames:A,loading:y,popupVisible:N,valueKeys:W,dropdownRef:k,optionRefs:$,virtualListRef:E,defaultActiveFirstOption:d,onSelect:fe,onPopupVisibleChange:j}),Ee=P(()=>{var Ne;const ze=[];for(const Ue of V.value){const et=re.get(Ue.key);et&&ze.push(gae(Cm({},et),{value:Ue.key,label:(Ne=et==null?void 0:et.label)!=null?Ne:String(rn(Ue.value)?Ue.value[c==null?void 0:c.value]:Ue.value),closable:!(et!=null&&et.disabled),tagProps:et==null?void 0:et.tagProps}))}return ze}),we=Ne=>{if(Nt(t.option)){const ze=t.option;return()=>ze({data:Ne.raw})}return Nt(Ne.render)?Ne.render:()=>Ne.label},me=Ne=>{if(oF(Ne)){let ze;return O(dv,{key:Ne.key,label:Ne.label},yae(ze=Ne.options.map(Ue=>me(Ue)))?ze:{default:()=>[ze]})}return US(Ne,{inputValue:$e.value,filterOption:u==null?void 0:u.value})?O(Fd,{ref:ze=>{ze!=null&&ze.$el&&($.value[Ne.key]=ze.$el)},key:Ne.key,value:Ne.value,label:Ne.label,disabled:Ne.disabled,internal:!0},{default:we(Ne)}):null},Ae=()=>O(oP,{ref:k,loading:e.loading,empty:le.value.length===0,virtualList:!!e.virtualListProps,scrollbar:e.scrollbar,showHeaderOnEmpty:e.showHeaderOnEmpty,showFooterOnEmpty:e.showFooterOnEmpty,onScroll:ee,onReachBottom:ce},{default:()=>{var Ne,ze;return[...(ze=(Ne=t.default)==null?void 0:Ne.call(t))!=null?ze:[],...xe.value.map(me)]},"virtual-list":()=>O(Qp,Qe(e.virtualListProps,{ref:E,data:xe.value}),{item:({item:Ne})=>me(Ne)}),empty:t.empty,header:t.header,footer:t.footer}),Fe=({data:Ne})=>{var ze,Ue,et,Xe;if((t.label||Nt(e.formatLabel))&&Ne){const yt=re.get(Ne.value);if(yt!=null&&yt.raw)return(et=(ze=t.label)==null?void 0:ze.call(t,{data:yt.raw}))!=null?et:(Ue=e.formatLabel)==null?void 0:Ue.call(e,yt.raw)}return(Xe=Ne==null?void 0:Ne.label)!=null?Xe:""};return()=>O(ur,Qe({trigger:"click",position:"bl",popupOffset:4,animationName:"slide-dynamic-origin",hideEmpty:!0,preventFocus:!0,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:f.value,popupVisible:N.value,unmountOnClose:e.unmountOnClose,clickToClose:!(e.allowSearch||e.allowCreate),popupContainer:e.popupContainer,onPopupVisibleChange:j},e.triggerProps),{default:()=>{var Ne,ze;return[(ze=(Ne=t.trigger)==null?void 0:Ne.call(t))!=null?ze:O(Jk,Qe({class:v,modelValue:Ee.value,inputValue:$e.value,multiple:e.multiple,disabled:f.value,error:p.value,loading:e.loading,allowClear:e.allowClear,allowCreate:e.allowCreate,allowSearch:!!e.allowSearch,opened:N.value,maxTagCount:e.maxTagCount,placeholder:e.placeholder,bordered:e.bordered,size:m.value,tagNowrap:e.tagNowrap,onInputValueChange:je,onRemove:Y,onClear:Z,onKeydown:De},i),{label:Fe,prefix:t.prefix,"arrow-icon":t["arrow-icon"],"loading-icon":t["loading-icon"],"search-icon":t["search-icon"]})]},content:Ae})}});const Rv=Object.assign(U_,{Option:Fd,OptGroup:dv,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+U_.name,U_),e.component(n+Fd.name,Fd),e.component(n+dv.name,dv)}}),AF=Symbol("RadioGroup");var rb=se({name:"Radio",components:{IconHover:ai},props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultChecked:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:!0},type:{type:String,default:"radio"},disabled:{type:Boolean,default:!1},uninjectGroupContext:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const i=de("radio"),{modelValue:o}=lt(e),s=e.uninjectGroupContext?void 0:Dt(AF,void 0),{mergedDisabled:r,eventHandlers:a}=li({disabled:lo(e,"disabled")}),u=he(null),c=he(e.defaultChecked),l=P(()=>(s==null?void 0:s.name)==="ArcoRadioGroup"),g=P(()=>{var f;return(f=s==null?void 0:s.type)!=null?f:e.type}),C=P(()=>(s==null?void 0:s.disabled)||r.value),S=P(()=>{var f,p;return l.value?(s==null?void 0:s.value)===((f=e.value)!=null?f:!0):jt(e.modelValue)?c.value:e.modelValue===((p=e.value)!=null?p:!0)});gt(o,f=>{(jt(f)||Xr(f))&&(c.value=!1)}),gt(S,(f,p)=>{f!==p&&(c.value=f,u.value&&(u.value.checked=f))});const _=f=>{var p,h;(h=(p=a.value)==null?void 0:p.onFocus)==null||h.call(p,f)},A=f=>{var p,h;(h=(p=a.value)==null?void 0:p.onBlur)==null||h.call(p,f)},y=f=>{f.stopPropagation()},d=f=>{var p,h,b,w,k;c.value=!0,l.value?s==null||s.handleChange((p=e.value)!=null?p:!0,f):(t("update:modelValue",(h=e.value)!=null?h:!0),t("change",(b=e.value)!=null?b:!0,f),(k=(w=a.value)==null?void 0:w.onChange)==null||k.call(w,f)),fn(()=>{u.value&&u.value.checked!==S.value&&(u.value.checked=S.value)})},v=P(()=>[`${g.value==="button"?`${i}-button`:i}`,{[`${i}-checked`]:S.value,[`${i}-disabled`]:C.value}]),m=()=>O(ft,null,[O(Pe("icon-hover"),{class:`${i}-icon-hover`,disabled:C.value||S.value},{default:()=>[O("span",{class:`${i}-icon`},null)]}),n.default&&O("span",{class:`${i}-label`},[n.default()])]);return()=>{var f,p,h,b;return O("label",{class:v.value},[O("input",{ref:u,type:"radio",checked:S.value,value:e.value,class:`${i}-target`,disabled:C.value,onClick:y,onChange:d,onFocus:_,onBlur:A},null),g.value==="radio"?(b=(h=(p=n.radio)!=null?p:(f=s==null?void 0:s.slots)==null?void 0:f.radio)==null?void 0:h({checked:S.value,disabled:C.value}))!=null?b:m():O("span",{class:`${i}-button-content`},[n.default&&n.default()])])}}}),ob=se({name:"RadioGroup",props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultValue:{type:[String,Number,Boolean],default:""},type:{type:String,default:"radio"},size:{type:String},options:{type:Array},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const i=de("radio-group"),{size:o,type:s,disabled:r,modelValue:a}=lt(e),{mergedDisabled:u,mergedSize:c,eventHandlers:l}=li({size:o,disabled:r}),{mergedSize:g}=Sr(c),C=he(e.defaultValue),S=P(()=>{var v;return(v=e.modelValue)!=null?v:C.value}),_=P(()=>{var v;return((v=e.options)!=null?v:[]).map(m=>Ai(m)||Le(m)?{label:m,value:m}:m)});cn(AF,it({name:"ArcoRadioGroup",value:S,size:g,type:s,disabled:u,slots:n,handleChange:(v,m)=>{var f,p;C.value=v,t("update:modelValue",v),t("change",v,m),(p=(f=l.value)==null?void 0:f.onChange)==null||p.call(f,m)}})),gt(S,v=>{C.value!==v&&(C.value=v)}),gt(a,v=>{(jt(v)||Xr(v))&&(C.value="")});const y=P(()=>[`${i}${e.type==="button"?"-button":""}`,`${i}-size-${g.value}`,`${i}-direction-${e.direction}`,{[`${i}-disabled`]:u.value}]),d=()=>_.value.map(v=>O(rb,{key:v.value,value:v.value,disabled:v.disabled,modelValue:S.value===v.value},{default:()=>[n.label?n.label({data:v}):Nt(v.label)?v.label():v.label]}));return()=>{var v;return O("span",{class:y.value},[_.value.length>0?d():(v=n.default)==null?void 0:v.call(n)])}}});const jp=Object.assign(rb,{Group:ob,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+rb.name,rb),e.component(n+ob.name,ob)}}),kae=se({name:"IconLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-left`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Cae=["stroke-width","stroke-linecap","stroke-linejoin"],Sae=B("path",{d:"M32 8.4 16.444 23.956 32 39.513"},null,-1),wae=[Sae];function _ae(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},wae,14,Cae)}var Z_=ye(kae,[["render",_ae]]);const Pa=Object.assign(Z_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Z_.name,Z_)}});function Iae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}function LL(e){return e.parentElement}var xae=se({name:"Header",props:{mode:{type:String},dayStartOfWeek:{type:Number},isWeek:{type:Boolean},panel:{type:Boolean},modes:{type:Array},headerType:{type:String},pageShowData:{type:Object,required:!0},move:{type:Function,required:!0},onYearChange:{type:Function,required:!0},onMonthChange:{type:Function,required:!0},changePageShowDate:{type:Function,required:!0},onModeChange:{type:Function,required:!0},headerValueFormat:{type:String,required:!0}},emits:["yearChange","monthChange"],setup(e,{slots:t}){const n=de("calendar"),{t:i}=fi(),o=Kt(e.modes)?e.modes.map(l=>({label:i(`datePicker.view.${l}`),value:l})):[],s=e.headerType==="select",r=P(()=>e.pageShowData.year()),a=P(()=>e.pageShowData.month()+1),u=P(()=>{const l=[r.value];for(let g=1;g<=10;g++)l.unshift(r.value-g);for(let g=1;g<10;g++)l.push(r.value+g);return l}),c=[1,2,3,4,5,6,7,8,9,10,11,12];return()=>{let l;return O("div",{class:`${n}-header`},[O("div",{class:`${n}-header-left`},[s?O(ft,null,[O(Rv,{size:"small",class:`${n}-header-value-year`,value:r,options:u.value,onChange:e.onYearChange,getPopupContainer:LL},null),e.mode==="month"&&O(Rv,{size:"small",class:`${n}-header-value-month`,value:a,options:c,onChange:e.onMonthChange,getPopupContainer:LL},null)]):O(ft,null,[O("div",{class:`${n}-header-icon`,role:"button",tabIndex:0,onClick:()=>e.changePageShowDate("prev",e.mode)},[O(Pa,null,null)]),O("div",{class:`${n}-header-value`},[t.default?t.default({year:r,month:a}):e.pageShowData.format(e.headerValueFormat)]),O("div",{role:"button",tabIndex:0,class:`${n}-header-icon`,onClick:()=>e.changePageShowDate("next",e.mode)},[O(fs,null,null)])]),O(Yr,{size:"small",onClick:()=>e.move(Mr())},Iae(l=i("datePicker.today"))?l:{default:()=>[l]})]),O("div",{class:`${n}-header-right`},[O(jp.Group,{size:"small",type:"button",options:o,onChange:e.onModeChange,modelValue:e.mode},null)])])}}});function $ae(e,t){return e==="month"||e==="year"&&!t?"YYYY-MM-DD":"YYYY-MM"}var G_=se({name:"Calendar",props:{modelValue:{type:Date,default:void 0},defaultValue:{type:Date},mode:{type:String},defaultMode:{type:String,default:"month"},modes:{type:Array,default:()=>["month","year"]},allowSelect:{type:Boolean,default:!0},panel:{type:Boolean,default:!1},panelWidth:{type:Number},panelTodayBtn:{type:Boolean,default:!1},dayStartOfWeek:{type:Number,default:0},isWeek:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,panelChange:e=>!0},setup(e,{emit:t,slots:n}){const{dayStartOfWeek:i,isWeek:o}=lt(e),s=de("calendar"),r=he(e.defaultMode),{t:a}=fi(),u=P(()=>e.mode?e.mode:r.value),c=$ae(u.value,e.panel),l=he(Wo(e.defaultValue||Date.now(),c)),g=P(()=>e.modelValue?Wo(e.modelValue,c):l.value),C=he(g.value||Mr()),S=P(()=>SF(C.value,{dayStartOfWeek:i.value,isWeek:o.value}));function _(w){C.value=w,t("panelChange",w.toDate())}function A(w){l.value=w,t("change",w.toDate()),t("update:modelValue",w.toDate()),_(w)}function y(w,k=!1){k||A(w)}let d="";u.value==="month"?d=a("calendar.formatMonth"):u.value==="year"&&(d=a("calendar.formatYear"));function v(w,k){w==="prev"&&(C.value=Yi.subtract(C.value,1,k)),w==="next"&&(C.value=Yi.add(C.value,1,k)),t("panelChange",C.value.toDate())}function m(w){const k=Yi.set(C.value,"year",w);C.value=k,t("panelChange",k.toDate())}function f(w){const k=Yi.set(C.value,"month",w-1);C.value=k,t("panelChange",k.toDate())}function p(w){r.value=w}const h=P(()=>[s,u.value==="month"?`${s}-mode-month`:`${s}-mode-year`,{[`${s}-panel`]:e.panel&&(u.value==="month"||u.value==="year")}]),b=e.panel?{width:e.panelWidth}:{};return()=>O("div",Qe({class:h.value,style:b},Dse(e)),[O(xae,{move:A,headerValueFormat:d,modes:e.modes,mode:u.value,pageShowData:C.value,dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek,onModeChange:p,onYearChange:m,onMonthChange:f,changePageShowDate:v},{default:n.header}),u.value==="month"&&O("div",{class:`${s}-body`},[O(wF,{key:C.value.month(),pageData:S.value,value:g.value,mode:u.value,selectHandler:y,isWeek:e.isWeek,dayStartOfWeek:e.dayStartOfWeek,pageShowDate:C.value},{default:n.default})]),u.value==="year"&&O("div",{class:`${s}-body`},[O(Kse,{key:C.value.year(),pageData:S.value,pageShowData:C.value,mode:u.value,isWeek:e.isWeek,value:g.value,dayStartOfWeek:e.dayStartOfWeek,selectHandler:y},null)]),e.panel&&e.panelTodayBtn&&O("div",{class:`${s}-footer-btn-wrapper`},[a("today")])])}});const EF=Object.assign(G_,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+G_.name,G_)}}),fP=Symbol("ArcoCard");var Y_=se({name:"Card",components:{Spin:Zs},props:{bordered:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},size:{type:String},headerStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({})},title:{type:String},extra:{type:String}},setup(e,{slots:t}){const n=de("card"),{size:i}=lt(e),{mergedSize:o}=Sr(i),s=P(()=>o.value==="small"||o.value==="mini"?"small":"medium"),r=c=>{const l=$a(c);return O("div",{class:`${n}-actions`},[O("div",{class:`${n}-actions-right`},[l.map((g,C)=>O("span",{key:`action-${C}`,class:`${n}-actions-item`},[g]))])])},a=it({hasMeta:!1,hasGrid:!1,slots:t,renderActions:r});cn(fP,a);const u=P(()=>[n,`${n}-size-${s.value}`,{[`${n}-loading`]:e.loading,[`${n}-bordered`]:e.bordered,[`${n}-hoverable`]:e.hoverable,[`${n}-contain-grid`]:a.hasGrid}]);return()=>{var c,l,g,C,S,_,A;const y=!!((c=t.title)!=null?c:e.title),d=!!((l=t.extra)!=null?l:e.extra);return O("div",{class:u.value},[(y||d)&&O("div",{class:[`${n}-header`,{[`${n}-header-no-title`]:!y}],style:e.headerStyle},[y&&O("div",{class:`${n}-header-title`},[(C=(g=t.title)==null?void 0:g.call(t))!=null?C:e.title]),d&&O("div",{class:`${n}-header-extra`},[(_=(S=t.extra)==null?void 0:S.call(t))!=null?_:e.extra])]),t.cover&&O("div",{class:`${n}-cover`},[t.cover()]),O("div",{class:`${n}-body`,style:e.bodyStyle},[e.loading?O(Zs,null,null):(A=t.default)==null?void 0:A.call(t),t.actions&&!a.hasMeta&&r(t.actions())])])}}}),sb=se({name:"CardMeta",props:{title:{type:String},description:{type:String}},setup(e,{slots:t}){const n=de("card-meta"),i=Dt(fP);return Yt(()=>{i&&(i.hasMeta=!0)}),()=>{var o,s,r,a,u,c;const l=!!((o=t.title)!=null?o:e.title),g=!!((s=t.description)!=null?s:e.description);return O("div",{class:n},[(l||g)&&O("div",{class:`${n}-content`},[l&&O("div",{class:`${n}-title`},[(a=(r=t.title)==null?void 0:r.call(t))!=null?a:e.title]),g&&O("div",{class:`${n}-description`},[(c=(u=t.description)==null?void 0:u.call(t))!=null?c:e.description])]),(t.avatar||(i==null?void 0:i.slots.actions))&&O("div",{class:[`${n}-footer `,{[`${n}-footer-only-actions`]:!t.avatar}]},[t.avatar&&O("div",{class:`${n}-avatar`},[t.avatar()]),i&&i.slots.actions&&i.renderActions(i.slots.actions())])])}}});const Aae=se({name:"CardGrid",props:{hoverable:{type:Boolean,default:!1}},setup(e){const t=de("card-grid"),n=Dt(fP);return Yt(()=>{n&&(n.hasGrid=!0)}),{cls:P(()=>[t,{[`${t}-hoverable`]:e.hoverable}])}}});function Eae(e,t,n,i,o,s){return R(),X("div",{class:G(e.cls)},[He(e.$slots,"default")],2)}var ab=ye(Aae,[["render",Eae]]);const Mae=Object.assign(Y_,{Meta:sb,Grid:ab,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+Y_.name,Y_),e.component(n+sb.name,sb),e.component(n+ab.name,ab)}}),Tae=se({name:"Indicator",props:{count:{type:Number,default:2},activeIndex:{type:Number,default:0},type:{type:String,default:"line"},position:{type:String,default:"bottom"},trigger:{type:String,default:"click"}},emits:["select"],setup(e,{emit:t}){const n=de("carousel-indicator"),i=a=>{var u;if(a.preventDefault(),e.type==="slider"){const c=a.offsetX,l=a.currentTarget.clientWidth;if(a.target===a.currentTarget){const g=Math.floor(c/l*e.count);g!==e.activeIndex&&t("select",g)}}else{const c=Number.parseInt((u=a.target.getAttribute("data-index"))!=null?u:"",10);!Number.isNaN(c)&&c!==e.activeIndex&&t("select",c)}},o=P(()=>e.trigger==="click"?{onClick:i}:{onMouseover:i}),s=P(()=>[`${n}`,`${n}-${e.type}`,`${n}-${e.position}`]),r=P(()=>{const a=100/e.count;return{width:`${a}%`,left:`${e.activeIndex*a}%`}});return{prefixCls:n,eventHandlers:o,cls:s,sliderStyle:r}}}),Pae=["data-index"];function Oae(e,t,n,i,o,s){return R(),X("div",Qe({class:e.cls},e.eventHandlers),[e.type==="slider"?(R(),X("span",{key:0,style:Te(e.sliderStyle),class:G([`${e.prefixCls}-item`,`${e.prefixCls}-item-active`])},null,6)):(R(!0),X(ft,{key:1},dn(Array(e.count),(r,a)=>(R(),X("span",{key:a,"data-index":a,class:G([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:a===e.activeIndex}])},null,10,Pae))),128))],16)}var Lae=ye(Tae,[["render",Oae]]);const Dae=se({name:"IconUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-up`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Nae=["stroke-width","stroke-linecap","stroke-linejoin"],jae=B("path",{d:"M39.6 30.557 24.043 15 8.487 30.557"},null,-1),zae=[jae];function Rae(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},zae,14,Nae)}var X_=ye(Dae,[["render",Rae]]);const JS=Object.assign(X_,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+X_.name,X_)}}),Bae=se({name:"Arrow",components:{IconUp:JS,IconDown:ff,IconLeft:Pa,IconRight:fs},props:{direction:{type:String,default:"horizontal"},showArrow:{type:String,default:"always"}},emits:["previousClick","nextClick"],setup(e,{emit:t}){const n=de("carousel"),i=r=>{t("previousClick",r)},o=r=>{t("nextClick",r)},s=P(()=>[`${n}-arrow`,{[`${n}-arrow-hover`]:e.showArrow==="hover"}]);return{prefixCls:n,cls:s,onPreviousClick:i,onNextClick:o}}});function Fae(e,t,n,i,o,s){const r=Pe("IconLeft"),a=Pe("IconUp"),u=Pe("IconRight"),c=Pe("IconDown");return R(),X("div",{class:G(e.cls)},[B("div",{class:G(`${e.prefixCls}-arrow-${e.direction==="vertical"?"top":"left"}`),onClick:t[0]||(t[0]=(...l)=>e.onPreviousClick&&e.onPreviousClick(...l))},[e.direction==="horizontal"?(R(),We(r,{key:0})):(R(),We(a,{key:1}))],2),B("div",{class:G(`${e.prefixCls}-arrow-${e.direction==="vertical"?"bottom":"right"}`),onClick:t[1]||(t[1]=(...l)=>e.onNextClick&&e.onNextClick(...l))},[e.direction==="horizontal"?(R(),We(u,{key:0})):(R(),We(c,{key:1}))],2)],2)}var Vae=ye(Bae,[["render",Fae]]);const MF=Symbol("ArcoCarousel"),v1=e=>{const t={},n=he([]),i=()=>{if(t.value){const o=VB(t.value,e);(o.length!==n.value.length||o.toString()!==n.value.toString())&&(n.value=o)}};return Yt(()=>i()),Bi(()=>i()),{children:t,components:n}};var Hae=Object.defineProperty,DL=Object.getOwnPropertySymbols,Wae=Object.prototype.hasOwnProperty,Uae=Object.prototype.propertyIsEnumerable,NL=(e,t,n)=>t in e?Hae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jL=(e,t)=>{for(var n in t||(t={}))Wae.call(t,n)&&NL(e,n,t[n]);if(DL)for(var n of DL(t))Uae.call(t,n)&&NL(e,n,t[n]);return e};const zL={interval:3e3,hoverToPause:!0};function K_(e,t){const n=+e;return typeof n=="number"&&!Number.isNaN(n)?(n+t)%t:e}var J_=se({name:"Carousel",props:{current:{type:Number},defaultCurrent:{type:Number,default:1},autoPlay:{type:[Boolean,Object],default:!1},moveSpeed:{type:Number,default:500},animationName:{type:String,default:"slide"},trigger:{type:String,default:"click"},direction:{type:String,default:"horizontal"},showArrow:{type:String,default:"always"},arrowClass:{type:String,default:""},indicatorType:{type:String,default:"dot"},indicatorPosition:{type:String,default:"bottom"},indicatorClass:{type:String,default:""},transitionTimingFunction:{type:String,default:"cubic-bezier(0.34, 0.69, 0.1, 1)"}},emits:{"update:current":e=>!0,change:(e,t,n)=>!0},setup(e,{emit:t,slots:n}){const{current:i,animationName:o,moveSpeed:s,transitionTimingFunction:r}=lt(e),a=de("carousel"),u=he(!1),c=he(),l=he(),g=P(()=>rn(e.autoPlay)?jL(jL({},zL),e.autoPlay):e.autoPlay?zL:{});let C=0,S=0;const{children:_,components:A}=v1("CarouselItem"),y=he(e.defaultCurrent-1),d=P(()=>{const z=A.value.length,V=Le(i.value)?K_(i.value-1,z):y.value,W=K_(V-1,z),H=K_(V+1,z);return{mergedIndex:V,mergedPrevIndex:W,mergedNextIndex:H}}),v=it({items:A,slideTo:f,mergedIndexes:d,previousIndex:c,animationName:o,slideDirection:l,transitionTimingFunction:r,moveSpeed:s});cn(MF,v);const m=()=>{C&&window.clearInterval(C)};Xi(()=>{var z;const{interval:V}=g.value||{},{mergedNextIndex:W}=d.value,H=((z=A.value)==null?void 0:z.length)>1&&!u.value&&!!V;m(),H&&(C=window.setInterval(()=>{f({targetIndex:W})},V))}),ei(()=>{m()});function f({targetIndex:z,isNegative:V=!1,isManual:W=!1}){!S&&z!==d.value.mergedIndex&&(c.value=y.value,y.value=z,l.value=V?"negative":"positive",S=window.setTimeout(()=>{S=0},s.value),t("update:current",y.value+1),t("change",y.value+1,c.value+1,W))}const p=()=>f({targetIndex:d.value.mergedPrevIndex,isNegative:!0,isManual:!0}),h=()=>f({targetIndex:d.value.mergedNextIndex,isManual:!0}),b=z=>f({targetIndex:z,isNegative:z<d.value.mergedIndex,isManual:!0}),w=P(()=>g.value.hoverToPause?{onMouseenter:()=>{u.value=!0},onMouseleave:()=>{u.value=!1}}:{}),k=P(()=>e.indicatorType!=="never"&&A.value.length>1),$=P(()=>e.showArrow!=="never"&&A.value.length>1),E=P(()=>[a,`${a}-indicator-position-${e.indicatorPosition}`]),N=P(()=>[`${a}-${e.animationName}`,`${a}-${e.direction}`,{[`${a}-negative`]:l.value==="negative"}]),j=P(()=>[`${a}-indicator-wrapper`,`${a}-indicator-wrapper-${e.indicatorPosition}`]);return()=>{var z;return _.value=(z=n.default)==null?void 0:z.call(n),O("div",Qe({class:E.value},w.value),[O("div",{class:N.value},[_.value]),k.value&&O("div",{class:j.value},[O(Lae,{class:e.indicatorClass,type:e.indicatorType,count:A.value.length,activeIndex:d.value.mergedIndex,position:e.indicatorPosition,trigger:e.trigger,onSelect:b},null)]),$.value&&O(Vae,{class:e.arrowClass,direction:e.direction,showArrow:e.showArrow,onPreviousClick:p,onNextClick:h},null)])}}});const Zae=se({name:"CarouselItem",setup(){const e=de("carousel-item"),t=Vn(),n=Dt(MF,{}),i=P(()=>{var a,u,c;return(c=(u=n.items)==null?void 0:u.indexOf((a=t==null?void 0:t.uid)!=null?a:-1))!=null?c:-1}),o=P(()=>{var a;return((a=n.mergedIndexes)==null?void 0:a.mergedIndex)===i.value}),s=P(()=>{const{previousIndex:a,animationName:u,slideDirection:c,mergedIndexes:l}=n;return{[`${e}-prev`]:i.value===(l==null?void 0:l.mergedPrevIndex),[`${e}-next`]:i.value===(l==null?void 0:l.mergedNextIndex),[`${e}-current`]:o.value,[`${e}-slide-in`]:u==="slide"&&c&&o.value,[`${e}-slide-out`]:u==="slide"&&c&&i.value===a}}),r=P(()=>{const{transitionTimingFunction:a,moveSpeed:u}=n;return{transitionTimingFunction:a,transitionDuration:`${u}ms`,animationTimingFunction:a,animationDuration:`${u}ms`}});return{cls:s,animationStyle:r,isCurrent:o}}}),Gae=["aria-hidden"];function Yae(e,t,n,i,o,s){return R(),X("div",{"aria-hidden":!e.isCurrent,class:G(e.cls),style:Te(e.animationStyle)},[He(e.$slots,"default")],14,Gae)}var lb=ye(Zae,[["render",Yae]]);const Xae=Object.assign(J_,{Item:lb,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+J_.name,J_),e.component(n+lb.name,lb)}}),TF=(e,{optionMap:t,leafOptionMap:n,leafOptionSet:i,leafOptionValueMap:o,totalLevel:s,checkStrictly:r,enabledLazyLoad:a,lazyLoadOptions:u,valueKey:c,fieldNames:l})=>{let g=0;const C=(_,A,y)=>{var d;const v=(d=A==null?void 0:A.path)!=null?d:[];return g=Math.max(g,y??1),_.map((m,f)=>{var p;const h=m[l.value],b={raw:m,value:h,label:(p=m[l.label])!=null?p:String(h),disabled:!!m[l.disabled],selectionDisabled:!1,render:m[l.render],tagProps:m[l.tagProps],isLeaf:m[l.isLeaf],level:v.length,index:f,key:"",valueKey:String(rn(h)?h[c.value]:h),parent:A,path:[],pathValue:[]},w=v.concat(b),k=[],$=w.map(E=>(k.push(E.value),E.valueKey)).join("-");return b.path=w,b.pathValue=k,b.key=$,m[l.children]?(b.isLeaf=!1,b.children=C(m[l.children],b,(y??1)+1)):a&&!b.isLeaf?(b.isLeaf=!1,u[$]&&(b.children=C(u[$],b,(y??1)+1))):b.isLeaf=!0,b.children&&!b.disabled&&(b.totalLeafOptions=b.children.reduce((E,N)=>Le(N.totalLeafOptions)?E+N.totalLeafOptions:N.disabled||N.selectionDisabled?E:E+(N.isLeaf?1:0),0),b.totalLeafOptions===0&&!r.value&&(b.selectionDisabled=!0)),t.set(b.key,b),(b.isLeaf||r.value)&&(i.add(b),n.set(b.key,b),o.has(b.valueKey)||o.set(b.valueKey,b.key)),b})},S=C(e);return s.value=g,S},hP=(e,t)=>{var n,i;let o=!1,s=!1;if(e.isLeaf)t!=null&&t.has(e.key)&&(o=!0);else{const r=new RegExp(`^${e.key}(-|$)`),a=Array.from((n=t==null?void 0:t.keys())!=null?n:[]).reduce((u,c)=>r.test(c)?u+1:u,0);a>0&&a>=((i=e.totalLeafOptions)!=null?i:1)?o=!0:a>0&&(s=!0)}return{checked:o,indeterminate:s}},pP=e=>{const t=[];if(e.isLeaf)t.push(e.key);else if(e.children)for(const n of e.children)t.push(...pP(n));return t},mP=e=>{const t=[];if(e.disabled||e.selectionDisabled)return t;if(e.isLeaf)t.push(e);else if(e.children)for(const n of e.children)t.push(...mP(n));return t},PF=(e,{valueKey:t,leafOptionValueMap:n})=>{var i;if(Kt(e))return e.map(s=>rn(s)?s[t]:s).join("-");const o=rn(e)?e[t]:e;return(i=n.get(String(o)))!=null?i:String(o)},OF=(e,{multiple:t,pathMode:n})=>Kt(e)?n&&!t&&e.length>0&&!Kt(e[0])?[e]:e:jt(e)||Xr(e)||e===""?[]:[e],LF=e=>e.path.map(t=>t.label).join(" / "),vP=Symbol("ArcoCascader");var iE=se({name:"CascaderOption",props:{option:{type:Object,required:!0},active:Boolean,multiple:Boolean,checkStrictly:Boolean,searchOption:Boolean,pathLabel:Boolean},setup(e){const t=de("cascader-option"),n=Dt(vP,{}),i=he(!1),o={},s=l=>{var g;if(Nt(n.loadMore)&&!e.option.isLeaf){const{isLeaf:C,children:S,key:_}=e.option;!C&&!S&&(i.value=!0,new Promise(A=>{var y;(y=n.loadMore)==null||y.call(n,e.option.raw,A)}).then(A=>{var y;i.value=!1,A&&((y=n.addLazyLoadOptions)==null||y.call(n,A,_))}))}(g=n.setSelectedPath)==null||g.call(n,e.option.key)};e.option.disabled||(o.onMouseenter=[()=>{var l;return(l=n.setActiveKey)==null?void 0:l.call(n,e.option.key)}],o.onMouseleave=()=>{var l;return(l=n.setActiveKey)==null?void 0:l.call(n)},o.onClick=[],n.expandTrigger==="hover"?o.onMouseenter.push(l=>s()):o.onClick.push(l=>s()),e.option.isLeaf&&!e.multiple&&o.onClick.push(l=>{var g;s(),(g=n.onClickOption)==null||g.call(n,e.option)}));const r=P(()=>[t,{[`${t}-active`]:e.active,[`${t}-disabled`]:e.option.disabled}]),a=P(()=>{var l;return e.checkStrictly?{checked:(l=n.valueMap)==null?void 0:l.has(e.option.key),indeterminate:!1}:hP(e.option,n.valueMap)}),u=()=>{var l,g,C;return e.pathLabel?(g=(l=n==null?void 0:n.formatLabel)==null?void 0:l.call(n,e.option.path.map(S=>S.raw)))!=null?g:LF(e.option):(C=n.slots)!=null&&C.option?n.slots.option({data:e.option}):Nt(e.option.render)?e.option.render():e.option.label},c=()=>i.value?O(Lr,null,null):!e.searchOption&&!e.option.isLeaf?O(fs,null,null):null;return()=>{var l;return O("li",Qe({tabindex:"0",role:"menuitem","aria-disabled":e.option.disabled,"aria-haspopup":!e.option.isLeaf,"aria-expanded":!e.option.isLeaf&&e.active,title:e.option.label,class:r.value},o),[e.multiple&&O(Fs,{modelValue:a.value.checked,indeterminate:a.value.indeterminate,disabled:e.option.disabled||e.option.selectionDisabled,uninjectGroupContext:!0,onChange:(g,C)=>{var S;C.stopPropagation(),s(),(S=n.onClickOption)==null||S.call(n,e.option,!a.value.checked)},onClick:g=>g.stopPropagation()},null),e.checkStrictly&&!e.multiple&&O(jp,{modelValue:(l=n.valueMap)==null?void 0:l.has(e.option.key),disabled:e.option.disabled,uninjectGroupContext:!0,onChange:(g,C)=>{var S;C.stopPropagation(),s(),(S=n.onClickOption)==null||S.call(n,e.option,!0)},onClick:g=>g.stopPropagation()},null),O("div",{class:`${t}-label`},[u(),c()])])}}}),Kae=se({name:"CascaderColumn",props:{column:{type:Array,required:!0},level:{type:Number,default:0},selectedPath:{type:Array,required:!0},activeKey:String,totalLevel:{type:Number,required:!0},multiple:Boolean,checkStrictly:Boolean,virtualListProps:{type:Object}},setup(e,{slots:t}){const n=de("cascader"),i=Dt(Or,void 0),o=he(),s=he(!!e.virtualListProps),r=()=>{var a,u,c,l,g;return(g=(l=(a=t.empty)==null?void 0:a.call(t))!=null?l:(c=i==null?void 0:(u=i.slots).empty)==null?void 0:c.call(u,{component:"cascader"}))!=null?g:O(Nl,null,null)};return()=>{var a;return O("div",{class:`${n}-panel-column`,style:{zIndex:e.totalLevel-e.level}},[e.column.length===0?O(Gs,{class:`${n}-column-content`},{default:()=>[O("div",{class:`${n}-list-empty`},[r()])]}):s.value?O(Qp,Qe({key:(a=e.column)==null?void 0:a.length},e.virtualListProps,{ref:o,data:e.column}),{item:({item:u})=>O(iE,{key:u.key,option:u,active:e.selectedPath.includes(u.key)||u.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null)}):O(Gs,{class:`${n}-column-content`},{default:()=>[O("ul",{role:"menu",class:[`${n}-list`,{[`${n}-list-multiple`]:!!(e!=null&&e.multiple),[`${n}-list-strictly`]:!!(e!=null&&e.checkStrictly)}]},[e.column.map(u=>O(iE,{key:u.key,option:u,active:e.selectedPath.includes(u.key)||u.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null))])]})])}}});function Jae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var DF=se({name:"BaseCascaderPanel",props:{displayColumns:{type:Array,required:!0},selectedPath:{type:Array,required:!0},activeKey:String,totalLevel:{type:Number,required:!0},multiple:Boolean,checkStrictly:Boolean,loading:Boolean,dropdown:Boolean,virtualListProps:{type:Object}},setup(e,{slots:t}){const n=de("cascader"),i=Dt(Or,void 0),o=()=>{var r,a,u,c,l;return(l=(c=(r=t.empty)==null?void 0:r.call(t))!=null?c:(u=i==null?void 0:(a=i.slots).empty)==null?void 0:u.call(a,{component:"cascader"}))!=null?l:O(Nl,null,null)},s=()=>e.loading?O("div",{key:"panel-column-loading",class:[`${n}-panel-column`,`${n}-panel-column-loading`]},[O(Zs,null,null)]):e.displayColumns.length===0?O("div",{key:"panel-column-empty",class:`${n}-panel-column`},[O("div",{class:`${n}-list-empty`},[o()])]):e.displayColumns.map((r,a)=>O(Kae,{key:`column-${a}`,column:r,level:a,selectedPath:e.selectedPath,activeKey:e.activeKey,totalLevel:e.totalLevel,multiple:e.multiple,checkStrictly:e.checkStrictly,virtualListProps:e.virtualListProps},{empty:t.empty}));return()=>{let r;return O(lf,{tag:"div",name:"cascader-slide",class:[`${n}-panel`,{[`${n}-dropdown-panel`]:e.dropdown}]},Jae(r=s())?r:{default:()=>[r]})}}});function qae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var Qae=se({name:"CascaderSearchPanel",props:{options:{type:Array,required:!0},loading:Boolean,activeKey:String,multiple:Boolean,checkStrictly:Boolean,pathLabel:Boolean},setup(e,{slots:t}){const n=de("cascader"),i=Dt(Or,void 0),o=()=>{var s,r,a,u,c;return e.loading?O(Zs,null,null):e.options.length===0?O("div",{class:`${n}-list-empty`},[(c=(u=(s=t.empty)==null?void 0:s.call(t))!=null?u:(a=i==null?void 0:(r=i.slots).empty)==null?void 0:a.call(r,{component:"cascader"}))!=null?c:O(Nl,null,null)]):O("ul",{role:"menu",class:[`${n}-list`,`${n}-search-list`,{[`${n}-list-multiple`]:e.multiple}]},[e.options.map(l=>O(iE,{key:l.key,class:`${n}-search-option`,option:l,active:l.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly,pathLabel:e.pathLabel,searchOption:!0},null))])};return()=>{let s;return O(Gs,{class:[`${n}-panel`,`${n}-search-panel`]},qae(s=o())?s:{default:()=>[s]})}}});const NF=(e,{optionMap:t,filteredLeafOptions:n,showSearchPanel:i,expandChild:o})=>{const s=he(),r=P(()=>{if(s.value)return t.get(s.value)}),a=he([]),u=P(()=>{const _=[e.value];for(const A of a.value){const y=t.get(A);y!=null&&y.children&&_.push(y.children)}return _}),c=_=>{var A;const y=C(_);a.value=(A=y==null?void 0:y.path.map(d=>d.key))!=null?A:[]},l=_=>{s.value=_},g=P(()=>{var _;return i!=null&&i.value?n.value.filter(A=>!A.disabled):r.value&&r.value.parent?(_=r.value.parent.children)==null?void 0:_.filter(A=>!A.disabled):e.value.filter(A=>!A.disabled)}),C=_=>{let A=_?t.get(_):void 0;if(o.value)for(;A&&A.children&&A.children.length>0;)A=A.children[0];return A};return{activeKey:s,activeOption:r,selectedPath:a,displayColumns:u,setActiveKey:l,setSelectedPath:c,getNextActiveNode:_=>{var A,y,d,v,m,f,p;const h=(y=(A=g.value)==null?void 0:A.length)!=null?y:0;if(s.value){const b=(v=(d=g.value)==null?void 0:d.findIndex(w=>w.key===s.value))!=null?v:0;return _==="next"?(m=g.value)==null?void 0:m[(h+b+1)%h]:(f=g.value)==null?void 0:f[(h+b-1)%h]}return(p=g.value)==null?void 0:p[0]}}};var ele=Object.defineProperty,RL=Object.getOwnPropertySymbols,tle=Object.prototype.hasOwnProperty,nle=Object.prototype.propertyIsEnumerable,BL=(e,t,n)=>t in e?ele(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,FL=(e,t)=>{for(var n in t||(t={}))tle.call(t,n)&&BL(e,n,t[n]);if(RL)for(var n of RL(t))nle.call(t,n)&&BL(e,n,t[n]);return e};const ile=se({name:"Cascader",components:{Trigger:ur,SelectView:Jk,BaseCascaderPanel:DF,CascaderSearchPanel:Qae},inheritAttrs:!1,props:{pathMode:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Object,Array]},defaultValue:{type:[String,Number,Object,Array],default:e=>e.multiple?[]:e.pathMode?void 0:""},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},size:{type:String},allowSearch:{type:Boolean,default:e=>!!e.multiple},allowClear:{type:Boolean,default:!1},inputValue:{type:String,default:void 0},defaultInputValue:{type:String,default:""},popupVisible:{type:Boolean,default:void 0},expandTrigger:{type:String,default:"click"},defaultPopupVisible:{type:Boolean,default:!1},placeholder:String,filterOption:{type:Function},popupContainer:{type:[String,Object]},maxTagCount:{type:Number,default:0},formatLabel:{type:Function},triggerProps:{type:Object},checkStrictly:{type:Boolean,default:!1},loadMore:{type:Function},loading:{type:Boolean,default:!1},searchOptionOnlyLabel:{type:Boolean,default:!1},searchDelay:{type:Number,default:500},fieldNames:{type:Object},valueKey:{type:String,default:"value"},fallback:{type:[Boolean,Function],default:!0},expandChild:{type:Boolean,default:!1},virtualListProps:{type:Object},tagNowrap:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,"update:popupVisible":e=>!0,change:e=>!0,inputValueChange:e=>!0,clear:()=>!0,search:e=>!0,popupVisibleChange:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n}){const{options:i,checkStrictly:o,loadMore:s,formatLabel:r,modelValue:a,disabled:u,valueKey:c,expandTrigger:l,expandChild:g,pathMode:C,multiple:S}=lt(e),_=he(e.defaultValue),A=he(e.defaultInputValue),y=he(e.defaultPopupVisible),{mergedDisabled:d,eventHandlers:v}=li({disabled:u});gt(a,le=>{(jt(le)||Xr(le))&&(_.value=e.multiple?[]:void 0)});const m=he([]),f=he(1),p=it(new Map),h=it(new Map),b=it(new Map),w=it(new Set),k=it({}),$=(le,ve)=>{k[ve]=le},E={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},N=P(()=>FL(FL({},E),e.fieldNames));gt([i,k,N],([le,ve,De])=>{p.clear(),h.clear(),b.clear(),w.clear(),m.value=TF(le??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:k,optionMap:p,leafOptionSet:w,leafOptionMap:h,leafOptionValueMap:b,totalLevel:f,checkStrictly:o,valueKey:c,fieldNames:De})},{immediate:!0,deep:!0});const j=P(()=>{var le;const ve=OF((le=e.modelValue)!=null?le:_.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(ve.map(De=>[PF(De,{valueKey:e.valueKey,leafOptionValueMap:b}),De]))}),z=P(()=>{var le;return(le=e.inputValue)!=null?le:A.value}),V=P(()=>{var le;return(le=e.popupVisible)!=null?le:y.value}),W=le=>{var ve;return le==null?void 0:le.toLocaleLowerCase().includes((ve=z.value)==null?void 0:ve.toLocaleLowerCase())},H=P(()=>(e.checkStrictly?Array.from(p.values()):Array.from(w)).filter(ve=>{var De;return Nt(e.filterOption)?e.filterOption(z.value,ve.raw):e.checkStrictly?W(ve.label):(De=ve.path)==null?void 0:De.find(Ee=>W(Ee.label))})),U=le=>{var ve,De,Ee;const we=e.multiple?le:(ve=le[0])!=null?ve:"";le.length===0&&(ee(),Z()),_.value=we,t("update:modelValue",we),t("change",we),(Ee=(De=v.value)==null?void 0:De.onChange)==null||Ee.call(De)};gt([S,C],()=>{const le=[];j.value.forEach((ve,De)=>{const Ee=h.get(De);Ee&&le.push(C.value?Ee.pathValue:Ee.value)}),U(le)});const Q=le=>{V.value!==le&&(y.value=le,t("popupVisibleChange",le))},q=le=>{if(e.multiple){const ve=h.get(le);if(ve)ne(ve,!1);else{const De=[];j.value.forEach((Ee,we)=>{we!==le&&De.push(Ee)}),U(De)}}},ae=le=>{U([e.pathMode?le.pathValue:le.value]),Q(!1)},ne=(le,ve)=>{if(ve){const De=e.checkStrictly?[le]:mP(le);U([...j.value.values(),...De.filter(Ee=>!j.value.has(Ee.key)).map(Ee=>e.pathMode?Ee.pathValue:Ee.value)])}else{const De=e.checkStrictly?[le.key]:pP(le),Ee=[];j.value.forEach((we,me)=>{De.includes(me)||Ee.push(we)}),U(Ee)}Ie("","optionChecked")},be=(le,ve)=>{e.multiple?ne(le,ve??!0):ae(le)},te=zv(le=>{t("search",le)},e.searchDelay),Ie=(le,ve)=>{le!==z.value&&(ve==="manual"&&!V.value&&(y.value=!0,t("popupVisibleChange",!0)),A.value=le,t("inputValueChange",le),e.allowSearch&&te(le))};gt(V,le=>{if(le){if(j.value.size>0){const ve=Array.from(j.value.keys()),De=ve[ve.length-1],Ee=h.get(De);Ee&&Ee.key!==fe.value&&(ee(Ee.key),Z(Ee.key))}}else j.value.size===0&&(ee(),Z()),Ie("","optionListHide")});const $e=le=>{if(le.stopPropagation(),e.multiple){const ve=[];j.value.forEach((De,Ee)=>{const we=h.get(Ee);we!=null&&we.disabled&&ve.push(e.pathMode?we.pathValue:we.value)}),U(ve)}else U([]);Ie("","manual"),t("clear")},Me=P(()=>e.allowSearch&&z.value.length>0),ge=le=>{t("focus",le)},Se=le=>{t("blur",le)},{activeKey:fe,activeOption:pe,selectedPath:je,displayColumns:Y,setActiveKey:Z,setSelectedPath:ee,getNextActiveNode:ce}=NF(m,{optionMap:p,filteredLeafOptions:H,showSearchPanel:Me,expandChild:g});cn(vP,it({onClickOption:be,setActiveKey:Z,setSelectedPath:ee,loadMore:s,expandTrigger:l,addLazyLoadOptions:$,formatLabel:r,slots:n,valueMap:j}));const xe=ZS(new Map([[mi.ENTER,le=>{if(V.value){if(pe.value){let ve;e.checkStrictly||pe.value.isLeaf?ve=!j.value.has(pe.value.key):ve=!hP(pe.value,j.value).checked,ee(pe.value.key),be(pe.value,ve)}}else Q(!0)}],[mi.ESC,le=>{Q(!1)}],[mi.ARROW_DOWN,le=>{le.preventDefault();const ve=ce("next");Z(ve==null?void 0:ve.key)}],[mi.ARROW_UP,le=>{le.preventDefault();const ve=ce("preview");Z(ve==null?void 0:ve.key)}],[mi.ARROW_RIGHT,le=>{var ve,De;Me.value||(le.preventDefault(),(ve=pe.value)!=null&&ve.children&&(ee(pe.value.key),Z((De=pe.value.children[0])==null?void 0:De.key)))}],[mi.ARROW_LEFT,le=>{var ve;Me.value||(le.preventDefault(),(ve=pe.value)!=null&&ve.parent&&(ee(pe.value.parent.key),Z(pe.value.parent.key)))}]])),re=P(()=>{const le=[];return j.value.forEach((ve,De)=>{var Ee,we;const me=h.get(De);if(me)le.push({value:De,label:(we=(Ee=e.formatLabel)==null?void 0:Ee.call(e,me.path.map(Ae=>Ae.raw)))!=null?we:LF(me),closable:!me.disabled,tagProps:me.tagProps});else if(e.fallback){const Ae=Nt(e.fallback)?e.fallback(ve):Kt(ve)?ve.join(" / "):String(ve);le.push({value:De,label:Ae,closable:!0})}}),le});return{optionInfos:m,filteredLeafOptions:H,selectedPath:je,activeKey:fe,displayColumns:Y,computedInputValue:z,computedPopupVisible:V,handleClear:$e,selectViewValue:re,handleInputValueChange:Ie,showSearchPanel:Me,handlePopupVisibleChange:Q,handleFocus:ge,handleBlur:Se,handleRemove:q,mergedDisabled:d,handleKeyDown:xe,totalLevel:f}}});function rle(e,t,n,i,o,s){const r=Pe("select-view"),a=Pe("cascader-search-panel"),u=Pe("base-cascader-panel"),c=Pe("trigger");return R(),We(c,Qe(e.triggerProps,{trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","popup-visible":e.computedPopupVisible,position:"bl",disabled:e.mergedDisabled,"popup-offset":4,"auto-fit-popup-width":e.showSearchPanel,"popup-container":e.popupContainer,"prevent-focus":!0,"click-to-close":!e.allowSearch,onPopupVisibleChange:e.handlePopupVisibleChange}),{content:Ve(()=>[e.showSearchPanel?(R(),We(a,{key:0,options:e.filteredLeafOptions,"active-key":e.activeKey,multiple:e.multiple,"check-strictly":e.checkStrictly,loading:e.loading,"path-label":!e.searchOptionOnlyLabel},ti({_:2},[e.$slots.empty?{name:"empty",fn:Ve(()=>[He(e.$slots,"empty")])}:void 0]),1032,["options","active-key","multiple","check-strictly","loading","path-label"])):(R(),We(u,{key:1,"display-columns":e.displayColumns,"selected-path":e.selectedPath,"active-key":e.activeKey,multiple:e.multiple,"total-level":e.totalLevel,"check-strictly":e.checkStrictly,loading:e.loading,"virtual-list-props":e.virtualListProps,dropdown:""},ti({_:2},[e.$slots.empty?{name:"empty",fn:Ve(()=>[He(e.$slots,"empty")])}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","loading","virtual-list-props"]))]),default:Ve(()=>[O(r,Qe({"model-value":e.selectViewValue,"input-value":e.computedInputValue,disabled:e.mergedDisabled,error:e.error,multiple:e.multiple,"allow-clear":e.allowClear,"allow-search":e.allowSearch,size:e.size,opened:e.computedPopupVisible,placeholder:e.placeholder,loading:e.loading,"max-tag-count":e.maxTagCount,"tag-nowrap":e.tagNowrap},e.$attrs,{onInputValueChange:e.handleInputValueChange,onClear:e.handleClear,onFocus:e.handleFocus,onBlur:e.handleBlur,onRemove:e.handleRemove,onKeydown:e.handleKeyDown}),ti({_:2},[e.$slots.label?{name:"label",fn:Ve(l=>[He(e.$slots,"label",Bn(ir(l)))])}:void 0,e.$slots.prefix?{name:"prefix",fn:Ve(()=>[He(e.$slots,"prefix")])}:void 0,e.$slots["arrow-icon"]?{name:"arrow-icon",fn:Ve(()=>[He(e.$slots,"arrow-icon")])}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:Ve(()=>[He(e.$slots,"loading-icon")])}:void 0,e.$slots["search-icon"]?{name:"search-icon",fn:Ve(()=>[He(e.$slots,"search-icon")])}:void 0]),1040,["model-value","input-value","disabled","error","multiple","allow-clear","allow-search","size","opened","placeholder","loading","max-tag-count","tag-nowrap","onInputValueChange","onClear","onFocus","onBlur","onRemove","onKeydown"])]),_:3},16,["popup-visible","disabled","auto-fit-popup-width","popup-container","click-to-close","onPopupVisibleChange"])}var q_=ye(ile,[["render",rle]]),ole=Object.defineProperty,VL=Object.getOwnPropertySymbols,sle=Object.prototype.hasOwnProperty,ale=Object.prototype.propertyIsEnumerable,HL=(e,t,n)=>t in e?ole(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,WL=(e,t)=>{for(var n in t||(t={}))sle.call(t,n)&&HL(e,n,t[n]);if(VL)for(var n of VL(t))ale.call(t,n)&&HL(e,n,t[n]);return e};const lle=se({name:"CascaderPanel",components:{BaseCascaderPanel:DF},props:{pathMode:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array],default:e=>e.multiple?[]:e.pathMode?void 0:""},options:{type:Array,default:()=>[]},expandTrigger:{type:String,default:"click"},checkStrictly:{type:Boolean,default:!1},loadMore:{type:Function},fieldNames:{type:Object},valueKey:{type:String,default:"value"},expandChild:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0},setup(e,{emit:t,slots:n}){const{options:i,checkStrictly:o,loadMore:s,modelValue:r,valueKey:a,expandChild:u,expandTrigger:c}=lt(e),l=he(e.defaultValue);gt(r,Q=>{(jt(Q)||Xr(Q))&&(l.value=e.multiple?[]:void 0)});const g=he([]),C=he(1),S=it(new Map),_=it(new Map),A=it(new Map),y=it(new Set),d=it({}),v=(Q,q)=>{d[q]=Q},m={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},f=P(()=>WL(WL({},m),e.fieldNames));gt([i,d,f],([Q,q,ae])=>{S.clear(),_.clear(),A.clear(),y.clear(),g.value=TF(Q??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:q,optionMap:S,leafOptionSet:y,leafOptionMap:_,leafOptionValueMap:A,totalLevel:C,checkStrictly:o,fieldNames:ae,valueKey:a})},{immediate:!0});const p=P(()=>{var Q;const q=OF((Q=e.modelValue)!=null?Q:l.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(q.map(ae=>[PF(ae,{valueKey:e.valueKey,leafOptionValueMap:A}),ae]))}),h=P(()=>e.checkStrictly?Array.from(S.values()):Array.from(y)),b=Q=>{var q;const ae=e.multiple?Q:(q=Q[0])!=null?q:"";Q.length===0&&(W(),V()),l.value=ae,t("update:modelValue",ae),t("change",ae)},w=Q=>{b([e.pathMode?Q.pathValue:Q.value])},k=(Q,q)=>{if(q){const ae=e.checkStrictly?[Q]:mP(Q);b([...p.value.values(),...ae.filter(ne=>!p.value.has(ne.key)).map(ne=>e.pathMode?ne.pathValue:ne.value)])}else{const ae=e.checkStrictly?[Q.key]:pP(Q),ne=[];p.value.forEach((be,te)=>{ae.includes(te)||ne.push(be)}),b(ne)}},$=(Q,q)=>{e.multiple?k(Q,q??!0):w(Q)},{activeKey:E,activeOption:N,selectedPath:j,displayColumns:z,setActiveKey:V,setSelectedPath:W,getNextActiveNode:H}=NF(g,{optionMap:S,filteredLeafOptions:h,expandChild:u});cn(vP,it({onClickOption:$,setActiveKey:V,setSelectedPath:W,loadMore:s,addLazyLoadOptions:v,slots:n,valueMap:p,expandTrigger:c}));const U=ZS(new Map([[mi.ENTER,Q=>{if(N.value){let q;e.checkStrictly||N.value.isLeaf?q=!p.value.has(N.value.key):q=!hP(N.value,p.value).checked,W(N.value.key),$(N.value,q)}}],[mi.ARROW_DOWN,Q=>{Q.preventDefault();const q=H("next");V(q==null?void 0:q.key)}],[mi.ARROW_UP,Q=>{Q.preventDefault();const q=H("preview");V(q==null?void 0:q.key)}],[mi.ARROW_RIGHT,Q=>{var q,ae;Q.preventDefault(),(q=N.value)!=null&&q.children&&(W(N.value.key),V((ae=N.value.children[0])==null?void 0:ae.key))}],[mi.ARROW_LEFT,Q=>{var q;Q.preventDefault(),(q=N.value)!=null&&q.parent&&(W(N.value.parent.key),V(N.value.parent.key))}]]));return{optionInfos:g,filteredLeafOptions:h,selectedPath:j,activeKey:E,displayColumns:z,handleKeyDown:U,totalLevel:C}}});function cle(e,t,n,i,o,s){const r=Pe("base-cascader-panel");return R(),We(r,{"display-columns":e.displayColumns,"selected-path":e.selectedPath,"active-key":e.activeKey,multiple:e.multiple,"total-level":e.totalLevel,"check-strictly":e.checkStrictly,onKeydown:e.handleKeyDown},ti({_:2},[e.$slots.empty?{name:"empty",fn:Ve(()=>[He(e.$slots,"empty")])}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","onKeydown"])}var cb=ye(lle,[["render",cle]]);const ule=Object.assign(q_,{CascaderPanel:cb,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+q_.name,q_),e.component(n+cb.name,cb)}}),jF=Symbol("collapseCtx"),dle=se({name:"Collapse",props:{activeKey:{type:Array,default:void 0},defaultActiveKey:{type:Array,default:()=>[]},accordion:{type:Boolean,default:!1},showExpandIcon:{type:Boolean,default:void 0},expandIconPosition:{type:String,default:"left"},bordered:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},emits:{"update:activeKey":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{expandIconPosition:i,destroyOnHide:o,showExpandIcon:s}=lt(e),r=de("collapse"),a=he(e.defaultActiveKey),u=P(()=>{var g;const C=(g=e.activeKey)!=null?g:a.value;return Kt(C)?C:[C]});cn(jF,it({activeKeys:u,slots:n,showExpandIcon:s,expandIconPosition:i,destroyOnHide:o,handleClick:(g,C)=>{let S=[];if(e.accordion)u.value.includes(g)||(S=[g]),a.value=S;else{S=[...u.value];const _=S.indexOf(g);_>-1?S.splice(_,1):e.accordion?S=[g]:S.push(g),a.value=S}t("update:activeKey",S),t("change",S,C)}}));const l=P(()=>[r,{[`${r}-borderless`]:!e.bordered}]);return{prefixCls:r,cls:l}}});function fle(e,t,n,i,o,s){return R(),X("div",{class:G(e.cls)},[He(e.$slots,"default")],2)}var Q_=ye(dle,[["render",fle]]);const hle=se({name:"IconCaretRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-caret-right`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),ple=["stroke-width","stroke-linecap","stroke-linejoin"],mle=B("path",{d:"M34.829 23.063c.6.48.6 1.394 0 1.874L17.949 38.44c-.785.629-1.949.07-1.949-.937V10.497c0-1.007 1.164-1.566 1.95-.937l16.879 13.503Z",fill:"currentColor",stroke:"none"},null,-1),vle=[mle];function gle(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},vle,14,ple)}var e4=ye(hle,[["render",gle]]);const zF=Object.assign(e4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+e4.name,e4)}}),yle=se({name:"IconCaretLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-caret-left`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),ble=["stroke-width","stroke-linecap","stroke-linejoin"],kle=B("path",{d:"M13.171 24.937a1.2 1.2 0 0 1 0-1.874L30.051 9.56c.785-.629 1.949-.07 1.949.937v27.006c0 1.006-1.164 1.566-1.95.937L13.171 24.937Z",fill:"currentColor",stroke:"none"},null,-1),Cle=[kle];function Sle(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Cle,14,ble)}var t4=ye(yle,[["render",Sle]]);const RF=Object.assign(t4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+t4.name,t4)}});var ub=se({name:"CollapseItem",components:{IconHover:ai,IconCaretRight:zF,IconCaretLeft:RF},props:{header:String,disabled:{type:Boolean,default:!1},showExpandIcon:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},setup(e,{slots:t}){var n;const i=Vn(),o=de("collapse-item"),s=Dt(jF,{}),r=i&&Le(i==null?void 0:i.vnode.key)?i.vnode.key:String((n=i==null?void 0:i.vnode.key)!=null?n:""),a=P(()=>{var f;return(f=s.activeKeys)==null?void 0:f.includes(r)}),u=P(()=>s.destroyOnHide||e.destroyOnHide),c=P(()=>{var f;return(f=s==null?void 0:s.showExpandIcon)!=null?f:e.showExpandIcon}),l=he(u.value?a.value:!0),g=P(()=>{var f;return(f=s==null?void 0:s.expandIconPosition)!=null?f:"left"}),C=f=>{var p;e.disabled||(p=s.handleClick)==null||p.call(s,r,f)};gt(a,f=>{f&&!l.value&&(l.value=!0)});const S={onEnter:f=>{f.style.height=`${f.scrollHeight}px`},onAfterEnter:f=>{f.style.height="auto"},onBeforeLeave:f=>{f.style.height=`${f.scrollHeight}px`},onLeave:f=>{f.style.height="0"},onAfterLeave:()=>{u.value&&(l.value=!1)}},_=P(()=>[o,{[`${o}-active`]:a.value}]),A=P(()=>[`${o}-header`,`${o}-header-${s==null?void 0:s.expandIconPosition}`,{[`${o}-header-disabled`]:e.disabled}]),y=P(()=>[{[`${o}-icon-right`]:(s==null?void 0:s.expandIconPosition)==="right"}]),d=P(()=>[`${o}-content`,{[`${o}-content-expend`]:a.value}]),v=()=>g.value==="right"?O(Pe("icon-caret-left"),{class:`${o}-expand-icon`},null):O(Pe("icon-caret-right"),{class:`${o}-expand-icon`},null),m=()=>c.value&&O(Pe("icon-hover"),{prefix:o,class:y.value,disabled:e.disabled},{default:()=>{var f,p,h,b;return[(b=(h=(p=t["expand-icon"])!=null?p:(f=s==null?void 0:s.slots)==null?void 0:f["expand-icon"])==null?void 0:h({active:a.value,disabled:e.disabled,position:g.value}))!=null?b:v()]}});return()=>{var f,p,h;return O("div",{class:_.value},[O("div",{role:"button","aria-disabled":e.disabled,"aria-expanded":a.value,tabindex:"0",class:A.value,onClick:C},[m(),O("div",{class:`${o}-header-title`},[(p=(f=t.header)==null?void 0:f.call(t))!=null?p:e.header]),t.extra&&O("div",{class:`${o}-header-extra`},[(h=t.extra)==null?void 0:h.call(t)])]),O(Pr,Qe({name:"collapse-slider"},S),{default:()=>{var b;return[gi(O("div",{role:"region",class:d.value},[l.value&&O("div",{ref:"contentBoxRef",class:`${o}-content-box`},[(b=t.default)==null?void 0:b.call(t)])]),[[ki,a.value]])]}})])}}});const wle=Object.assign(Q_,{Item:ub,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+Q_.name,Q_),e.component(n+ub.name,ub)}}),_le=["#00B42A","#3C7EFF","#FF7D00","#F76965","#F7BA1E","#F5319D","#D91AD9","#9FDB1D","#FADC19","#722ED1","#3491FA","#7BE188","#93BEFF","#FFCF8B","#FBB0A7","#FCE996","#FB9DC7","#F08EE6","#DCF190","#FDFA94","#C396ED","#9FD4FD"];var Ile=Object.defineProperty,xle=Object.defineProperties,$le=Object.getOwnPropertyDescriptors,UL=Object.getOwnPropertySymbols,Ale=Object.prototype.hasOwnProperty,Ele=Object.prototype.propertyIsEnumerable,ZL=(e,t,n)=>t in e?Ile(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mle=(e,t)=>{for(var n in t||(t={}))Ale.call(t,n)&&ZL(e,n,t[n]);if(UL)for(var n of UL(t))Ele.call(t,n)&&ZL(e,n,t[n]);return e},Tle=(e,t)=>xle(e,$le(t));const BF=(e,t,n)=>{const i=Math.floor(e*6),o=e*6-i,s=n*(1-t),r=n*(1-o*t),a=n*(1-(1-o)*t),u=i%6,c=[n,r,s,s,a,n][u],l=[a,n,n,r,s,s][u],g=[s,s,a,n,n,r][u];return{r:Math.round(c*255),g:Math.round(l*255),b:Math.round(g*255)}},qS=(e,t,n)=>{e/=255,t/=255,n/=255;const i=Math.max(e,t,n),o=Math.min(e,t,n);let s=0;const r=i,a=i-o,u=i===0?0:a/i;if(i===o)s=0;else{switch(i){case e:s=(t-n)/a+(t<n?6:0);break;case t:s=(n-e)/a+2;break;case n:s=(e-t)/a+4;break}s/=6}return{h:s,s:u,v:r}},Ple="[-\\+]?\\d+%?",Ole="[-\\+]?\\d*\\.\\d+%?",xu=`(?:${Ole})|(?:${Ple})`,Lle=`[\\s|\\(]+(${xu})[,|\\s]+(${xu})[,|\\s]+(${xu})\\s*\\)?`,Dle=`[\\s|\\(]+(${xu})[,|\\s]+(${xu})[,|\\s]+(${xu})[,|\\s]+(${xu})\\s*\\)?`,sc={rgb:new RegExp(`rgb${Lle}`),rgba:new RegExp(`rgba${Dle}`),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/},nr=e=>parseInt(e,16),GL=e=>nr(e)/255,Nle=e=>{let t=sc.rgb.exec(e);return t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}:(t=sc.rgba.exec(e),t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10),a:parseFloat(t[4])}:(t=sc.hex8.exec(e),t?{r:nr(t[1]),g:nr(t[2]),b:nr(t[3]),a:GL(t[4])}:(t=sc.hex6.exec(e),t?{r:nr(t[1]),g:nr(t[2]),b:nr(t[3])}:(t=sc.hex4.exec(e),t?{r:nr(t[1]+t[1]),g:nr(t[2]+t[2]),b:nr(t[3]+t[3]),a:GL(t[4]+t[4])}:(t=sc.hex3.exec(e),t?{r:nr(t[1]+t[1]),g:nr(t[2]+t[2]),b:nr(t[3]+t[3])}:!1)))))},jle=e=>{var t;const n=Nle(e);if(n){const i=qS(n.r,n.g,n.b);return Tle(Mle({},i),{a:(t=n.a)!=null?t:1})}return{h:0,s:1,v:1,a:1}},FF=e=>{if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=sc.hex6.exec(e);return t?{r:nr(t[1]),g:nr(t[2]),b:nr(t[3])}:(t=sc.hex3.exec(e),t?{r:nr(t[1]+t[1]),g:nr(t[2]+t[2]),b:nr(t[3]+t[3])}:!1)},YL=(e,t,n)=>[Math.round(e).toString(16).padStart(2,"0"),Math.round(t).toString(16).padStart(2,"0"),Math.round(n).toString(16).padStart(2,"0")].join("").toUpperCase(),zle=(e,t,n,i)=>[Math.round(e).toString(16).padStart(2,"0"),Math.round(t).toString(16).padStart(2,"0"),Math.round(n).toString(16).padStart(2,"0"),Math.round(i*255).toString(16).padStart(2,"0")].join("").toUpperCase(),VF=({value:e,onChange:t})=>{const n=he(!1),i=he(),o=he(),s=(l,g)=>l<0?0:l>g?1:l/g,r=l=>{if(!i.value)return;const{clientX:g,clientY:C}=l,S=i.value.getBoundingClientRect(),_=[s(g-S.x,S.width),s(C-S.y,S.height)];(_[0]!==e[0]||_[1]!==e[1])&&(t==null||t(_))},a=()=>{n.value=!1,window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",a),window.removeEventListener("contextmenu",a)},u=l=>{n.value=!0,r(l),window.addEventListener("mousemove",c),window.addEventListener("mouseup",a),window.addEventListener("contextmenu",a)};function c(l){l.preventDefault(),l.buttons>0?r(l):a()}return{active:n,blockRef:i,handlerRef:o,onMouseDown:u}};var XL=se({name:"ControlBar",props:{x:{type:Number,required:!0},color:{type:Object,required:!0},colorString:String,type:String,onChange:Function},setup(e){const t=de("color-picker"),n=P(()=>e.color.rgb),{blockRef:i,handlerRef:o,onMouseDown:s}=VF({value:[e.x,0],onChange:a=>{var u;return(u=e.onChange)==null?void 0:u.call(e,a[0])}}),r=()=>O("div",{ref:o,class:`${t}-handler`,style:{left:`${e.x*100}%`,color:e.colorString}},null);return()=>e.type==="alpha"?O("div",{class:`${t}-control-bar-bg`},[O("div",{ref:i,class:[`${t}-control-bar`,`${t}-control-bar-alpha`],style:{background:`linear-gradient(to right, rgba(0, 0, 0, 0), rgb(${n.value.r}, ${n.value.g}, ${n.value.b}))`},onMousedown:s},[r()])]):O("div",{ref:i,class:[`${t}-control-bar`,`${t}-control-bar-hue`],onMousedown:s},[r()])}}),Rle=se({name:"Palette",props:{color:{type:Object,required:!0},onChange:Function},setup(e){const t=de("color-picker"),n=P(()=>e.color.hsv),{blockRef:i,handlerRef:o,onMouseDown:s}=VF({value:[n.value.s,1-n.value.v],onChange:a=>{var u;return(u=e.onChange)==null?void 0:u.call(e,a[0],1-a[1])}}),r=P(()=>{const a=BF(n.value.h,1,1);return`rgb(${a.r}, ${a.g}, ${a.b})`});return()=>O("div",{ref:i,class:`${t}-palette`,style:{backgroundColor:r.value},onMousedown:s},[O("div",{ref:o,class:`${t}-handler`,style:{top:`${(1-n.value.v)*100}%`,left:`${n.value.s*100}%`}},null)])}});function gP(e,t){return t===void 0&&(t=15),+parseFloat(Number(e).toPrecision(t))}function Ma(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function Bv(e){if(e.toString().indexOf("e")===-1)return Number(e.toString().replace(".",""));var t=Ma(e);return t>0?gP(Number(e)*Math.pow(10,t)):Number(e)}function rE(e){WF&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&console.warn(e+" is beyond boundary when transfer to integer, the results may not be accurate")}function QS(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t[0],o=t.slice(1);return o.reduce(function(s,r){return e(s,r)},i)}}var Qc=QS(function(e,t){var n=Bv(e),i=Bv(t),o=Ma(e)+Ma(t),s=n*i;return rE(s),s/Math.pow(10,o)}),Ble=QS(function(e,t){var n=Math.pow(10,Math.max(Ma(e),Ma(t)));return(Qc(e,n)+Qc(t,n))/n}),Fle=QS(function(e,t){var n=Math.pow(10,Math.max(Ma(e),Ma(t)));return(Qc(e,n)-Qc(t,n))/n}),HF=QS(function(e,t){var n=Bv(e),i=Bv(t);return rE(n),rE(i),Qc(n/i,gP(Math.pow(10,Ma(t)-Ma(e))))});function Vle(e,t){var n=Math.pow(10,t),i=HF(Math.round(Math.abs(Qc(e,n))),n);return e<0&&i!==0&&(i=Qc(i,-1)),i}var WF=!0;function Hle(e){e===void 0&&(e=!0),WF=e}var so={strip:gP,plus:Ble,minus:Fle,times:Qc,divide:HF,round:Vle,digitLength:Ma,float2Fixed:Bv,enableBoundaryChecking:Hle};const Wle=se({name:"IconPlus",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-plus`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Ule=["stroke-width","stroke-linecap","stroke-linejoin"],Zle=B("path",{d:"M5 24h38M24 5v38"},null,-1),Gle=[Zle];function Yle(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Gle,14,Ule)}var n4=ye(Wle,[["render",Yle]]);const Qd=Object.assign(n4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+n4.name,n4)}}),Xle=se({name:"IconMinus",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-minus`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Kle=["stroke-width","stroke-linecap","stroke-linejoin"],Jle=B("path",{d:"M5 24h38"},null,-1),qle=[Jle];function Qle(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},qle,14,Kle)}var i4=ye(Xle,[["render",Qle]]);const ew=Object.assign(i4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+i4.name,i4)}});var ece=Object.defineProperty,KL=Object.getOwnPropertySymbols,tce=Object.prototype.hasOwnProperty,nce=Object.prototype.propertyIsEnumerable,JL=(e,t,n)=>t in e?ece(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ice=(e,t)=>{for(var n in t||(t={}))tce.call(t,n)&&JL(e,n,t[n]);if(KL)for(var n of KL(t))nce.call(t,n)&&JL(e,n,t[n]);return e};const rce=800,oce=150;so.enableBoundaryChecking(!1);var r4=se({name:"InputNumber",props:{modelValue:Number,defaultValue:Number,mode:{type:String,default:"embed"},precision:Number,step:{type:Number,default:1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},formatter:{type:Function},parser:{type:Function},placeholder:String,hideButton:{type:Boolean,default:!1},size:{type:String},allowClear:{type:Boolean,default:!1},modelEvent:{type:String,default:"change"},readOnly:{type:Boolean,default:!1},inputAttrs:{type:Object}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0,focus:e=>!0,blur:e=>!0,clear:e=>!0,input:(e,t,n)=>!0,keydown:e=>!0},setup(e,{emit:t,slots:n}){var i;const{size:o,disabled:s}=lt(e),r=de("input-number"),a=he(),{mergedSize:u,mergedDisabled:c,eventHandlers:l}=li({size:o,disabled:s}),{mergedSize:g}=Sr(u),C=P(()=>{if(Le(e.precision)){const ae=`${e.step}`.split(".")[1],ne=ae&&ae.length||0;return Math.max(ne,e.precision)}}),S=ae=>{var ne,be;if(!Le(ae))return"";const te=C.value?ae.toFixed(C.value):String(ae);return(be=(ne=e.formatter)==null?void 0:ne.call(e,te))!=null?be:te},_=he(S((i=e.modelValue)!=null?i:e.defaultValue)),A=P(()=>{var ae,ne;if(!_.value)return;const be=Number((ne=(ae=e.parser)==null?void 0:ae.call(e,_.value))!=null?ne:_.value);return Number.isNaN(be)?void 0:be}),y=he(Le(A.value)&&A.value<=e.min),d=he(Le(A.value)&&A.value>=e.max);let v=0;const m=()=>{v&&(window.clearTimeout(v),v=0)},f=ae=>{if(!jt(ae))return Le(e.min)&&ae<e.min&&(ae=e.min),Le(e.max)&&ae>e.max&&(ae=e.max),Le(C.value)?so.round(ae,C.value):ae},p=ae=>{let ne=!1,be=!1;Le(ae)&&(ae<=e.min&&(ne=!0),ae>=e.max&&(be=!0)),d.value!==be&&(d.value=be),y.value!==ne&&(y.value=ne)},h=()=>{const ae=f(A.value),ne=S(ae);(ae!==A.value||_.value!==ne)&&(_.value=ne),t("update:modelValue",ae)};gt(()=>[e.max,e.min],()=>{h(),p(A.value)});const b=(ae,ne)=>{if(c.value||ae==="plus"&&d.value||ae==="minus"&&y.value)return;let be;Le(A.value)?be=f(so[ae](A.value,e.step)):be=e.min===-1/0?0:e.min,_.value=S(be),p(be),t("update:modelValue",be),t("change",be,ne)},w=(ae,ne,be=!1)=>{var te;ae.preventDefault(),!e.readOnly&&((te=a.value)==null||te.focus(),b(ne,ae),be&&(v=window.setTimeout(()=>ae.target.dispatchEvent(ae),v?oce:rce)))},k=(ae,ne)=>{var be,te,Ie,$e;ae=ae.trim().replace(/。/g,"."),ae=(te=(be=e.parser)==null?void 0:be.call(e,ae))!=null?te:ae,(Le(Number(ae))||/^(\.|-)$/.test(ae))&&(_.value=($e=(Ie=e.formatter)==null?void 0:Ie.call(e,ae))!=null?$e:ae,p(A.value),t("input",A.value,_.value,ne),e.modelEvent==="input"&&(t("update:modelValue",A.value),t("change",A.value,ne)))},$=ae=>{t("focus",ae)},E=(ae,ne)=>{ne instanceof MouseEvent&&!ae||(h(),t("change",A.value,ne))},N=ae=>{t("blur",ae)},j=ae=>{var ne,be;_.value="",t("update:modelValue",void 0),t("change",void 0,ae),(be=(ne=l.value)==null?void 0:ne.onChange)==null||be.call(ne,ae),t("clear",ae)},z=ZS(new Map([[mi.ARROW_UP,ae=>{ae.preventDefault(),!e.readOnly&&b("plus",ae)}],[mi.ARROW_DOWN,ae=>{ae.preventDefault(),!e.readOnly&&b("minus",ae)}]])),V=ae=>{t("keydown",ae),ae.defaultPrevented||z(ae)};gt(()=>e.modelValue,ae=>{ae!==A.value&&(_.value=S(ae),p(ae))});const W=()=>{var ae,ne,be;return e.readOnly?null:O(ft,null,[n.suffix&&O("div",{class:`${r}-suffix`},[(ae=n.suffix)==null?void 0:ae.call(n)]),O("div",{class:`${r}-step`},[O("button",{class:[`${r}-step-button`,{[`${r}-step-button-disabled`]:c.value||d.value}],type:"button",tabindex:"-1",disabled:c.value||d.value,onMousedown:te=>w(te,"plus",!0),onMouseup:m,onMouseleave:m},[n.plus?(ne=n.plus)==null?void 0:ne.call(n):O(JS,null,null)]),O("button",{class:[`${r}-step-button`,{[`${r}-step-button-disabled`]:c.value||y.value}],type:"button",tabindex:"-1",disabled:c.value||y.value,onMousedown:te=>w(te,"minus",!0),onMouseup:m,onMouseleave:m},[n.minus?(be=n.minus)==null?void 0:be.call(n):O(ff,null,null)])])])},H=P(()=>[r,`${r}-mode-${e.mode}`,`${r}-size-${g.value}`,{[`${r}-readonly`]:e.readOnly}]),U=()=>O(Yr,{size:g.value,tabindex:"-1",class:`${r}-step-button`,disabled:c.value||y.value,onMousedown:ae=>w(ae,"minus",!0),onMouseup:m,onMouseleave:m},{icon:()=>O(ew,null,null)}),Q=()=>O(Yr,{size:g.value,tabindex:"-1",class:`${r}-step-button`,disabled:c.value||d.value,onMousedown:ae=>w(ae,"plus",!0),onMouseup:m,onMouseleave:m},{icon:()=>O(Qd,null,null)});return{inputRef:a,render:()=>{const ae=e.mode==="embed"?{prepend:n.prepend,prefix:n.prefix,suffix:e.hideButton?n.suffix:W,append:n.append}:{prepend:e.hideButton?n.prepend:U,prefix:n.prefix,suffix:n.suffix,append:e.hideButton?n.append:Q};return O(ou,{key:`__arco__${e.mode}`,ref:a,class:H.value,type:"text",allowClear:e.allowClear,size:g.value,modelValue:_.value,placeholder:e.placeholder,disabled:c.value,readonly:e.readOnly,error:e.error,inputAttrs:ice({role:"spinbutton","aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":_.value},e.inputAttrs),onInput:k,onFocus:$,onBlur:N,onClear:j,onChange:E,onKeydown:V},ae)}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const g1=Object.assign(r4,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+r4.name,r4)}});var UF=se({name:"InputAlpha",props:{value:{type:Number,required:!0},disabled:Boolean,onChange:Function},setup(e){const t=de("color-picker");return()=>O(g1,{class:`${t}-input-alpha`,size:"mini",min:0,max:100,disabled:e.disabled,modelValue:Math.round(e.value*100),onChange:(n=100)=>{var i;return(i=e.onChange)==null?void 0:i.call(e,n/100)}},{suffix:()=>"%"})}}),sce=Object.defineProperty,qL=Object.getOwnPropertySymbols,ace=Object.prototype.hasOwnProperty,lce=Object.prototype.propertyIsEnumerable,QL=(e,t,n)=>t in e?sce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eD=(e,t)=>{for(var n in t||(t={}))ace.call(t,n)&&QL(e,n,t[n]);if(qL)for(var n of qL(t))lce.call(t,n)&&QL(e,n,t[n]);return e},cce=se({name:"InputRgb",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},disabled:Boolean,disabledAlpha:Boolean,onHsvChange:Function,onAlphaChange:Function},setup(e){const t=de("color-picker"),{color:n}=lt(e),i=o=>{var s;const r=eD(eD({},n.value.rgb),o),a=qS(r.r,r.g,r.b);(s=e.onHsvChange)==null||s.call(e,a)};return()=>O(th,{class:`${t}-input-group`},{default:()=>[["r","g","b"].map(o=>O(g1,{key:o,size:"mini",min:0,max:255,disabled:e.disabled,modelValue:n.value.rgb[o],hideButton:!0,onChange:(s=0)=>i({[o]:s})},null)),!e.disabledAlpha&&O(UF,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),uce=se({name:"InputHex",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},disabled:Boolean,disabledAlpha:Boolean,onHsvChange:Function,onAlphaChange:Function},setup(e){const t=de("color-picker"),{color:n}=lt(e),[i,o]=Er(n.value.hex),s=u=>{var c;const l=FF(u)||{r:255,g:0,b:0},g=qS(l.r,l.g,l.b);(c=e.onHsvChange)==null||c.call(e,g)},r=u=>{var c,l;const g=(l=(c=u.match(/[a-fA-F0-9]*/g))==null?void 0:c.join(""))!=null?l:"";g!==n.value.hex&&s(g.toUpperCase())},a=u=>{if(!u.clipboardData)return;let c=u.clipboardData.getData("Text");c.startsWith("#")&&(c=c.slice(1)),r(c),u.preventDefault()};return gt(n,()=>{n.value.hex!==i.value&&o(n.value.hex)}),()=>O(th,{class:`${t}-input-group`},{default:()=>[O(ou,{class:`${t}-input-hex`,size:"mini",maxLength:6,disabled:e.disabled,modelValue:i.value,onInput:o,onChange:r,onBlur:()=>s,onPressEnter:()=>s,onPaste:a},{prefix:()=>"#"}),!e.disabledAlpha&&O(UF,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),dce=se({name:"Panel",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},colorString:String,disabled:Boolean,disabledAlpha:Boolean,showHistory:Boolean,showPreset:Boolean,format:String,historyColors:Array,presetColors:Array,onAlphaChange:Function,onHsvChange:Function},setup(e){const{t}=fi(),n=de("color-picker"),i=P(()=>e.color.hsv),[o,s]=Er(e.format||"hex"),r=C=>{s(C)};he(!1);const a=C=>{var S;const _=FF(C)||{r:255,g:0,b:0},A=qS(_.r,_.g,_.b);(S=e.onHsvChange)==null||S.call(e,A)},u=()=>{const C={color:e.color,alpha:e.alpha,disabled:e.disabled,disabledAlpha:e.disabledAlpha,onHsvChange:e.onHsvChange,onAlphaChange:e.onAlphaChange};return o.value==="rgb"?O(cce,C,null):O(uce,C,null)},c=C=>O("div",{key:C,class:`${n}-color-block`,style:{backgroundColor:C},onClick:()=>a(C)},[O("div",{class:`${n}-block`,style:{backgroundColor:C}},null)]),l=(C,S)=>O("div",{class:`${n}-colors-section`},[O("div",{class:`${n}-colors-text`},[C]),O("div",{class:`${n}-colors-wrapper`},[S!=null&&S.length?O("div",{class:`${n}-colors-list`},[S.map(c)]):O("span",{class:`${n}-colors-empty`},[t("colorPicker.empty")])])]),g=()=>e.showHistory||e.showPreset?O("div",{class:`${n}-panel-colors`},[e.showHistory&&l(t("colorPicker.history"),e.historyColors),e.showPreset&&l(t("colorPicker.preset"),e.presetColors)]):null;return()=>O("div",{class:{[`${n}-panel`]:!0,[`${n}-panel-disabled`]:e.disabled}},[O(Rle,{color:e.color,onChange:(C,S)=>{var _;return(_=e.onHsvChange)==null?void 0:_.call(e,{h:i.value.h,s:C,v:S})}},null),O("div",{class:`${n}-panel-control`},[O("div",{class:`${n}-control-wrapper`},[O("div",null,[O(XL,{type:"hue",x:i.value.h,color:e.color,colorString:e.colorString,onChange:C=>{var S;return(S=e.onHsvChange)==null?void 0:S.call(e,{h:C,s:i.value.s,v:i.value.v})}},null),!e.disabledAlpha&&O(XL,{type:"alpha",x:e.alpha,color:e.color,colorString:e.colorString,onChange:e.onAlphaChange},null)]),O("div",{class:`${n}-preview`,style:{backgroundColor:e.colorString}},null)]),O("div",{class:`${n}-input-wrapper`},[O(Rv,{class:`${n}-select`,size:"mini","trigger-props":{class:`${n}-select-popup`},options:[{value:"hex",label:"Hex"},{value:"rgb",label:"RGB"}],modelValue:o.value,onChange:r},null),O("div",{class:`${n}-group-wrapper`},[u()])])]),g()])}}),o4=se({name:"ColorPicker",props:{modelValue:String,defaultValue:{type:String},format:{type:String},size:{type:String,default:"medium"},showText:{type:Boolean,default:!1},showHistory:{type:Boolean,default:!1},showPreset:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledAlpha:{type:Boolean,default:!1},hideTrigger:{type:Boolean},triggerProps:{type:Object},historyColors:{type:Array},presetColors:{type:Array,default:()=>_le}},emits:{"update:modelValue":e=>!0,change:e=>!0,"popup-visible-change":(e,t)=>!0},setup(e,{emit:t,slots:n}){const i=de("color-picker"),o=P(()=>{var v;return(v=e.modelValue)!=null?v:e.defaultValue}),s=P(()=>jle(o.value||"")),[r,a]=Er(s.value.a),[u,c]=Er({h:s.value.h,s:s.value.s,v:s.value.v});gt(()=>s.value,v=>{o.value!==C.value&&(a(v.a),c({h:v.h,s:v.s,v:v.v}))});const l=P(()=>{const v=BF(u.value.h,u.value.s,u.value.v),m=YL(v.r,v.g,v.b);return{hsv:u.value,rgb:v,hex:m}}),g=P(()=>{const{r:v,g:m,b:f}=l.value.rgb;return`rgba(${v}, ${m}, ${f}, ${r.value.toFixed(2)})`}),C=P(()=>{const{r:v,g:m,b:f}=l.value.rgb;return e.format==="rgb"?r.value<1&&!e.disabledAlpha?`rgba(${v}, ${m}, ${f}, ${r.value.toFixed(2)})`:`rgb(${v}, ${m}, ${f})`:r.value<1&&!e.disabledAlpha?`#${zle(v,m,f,r.value)}`:`#${YL(v,m,f)}`});gt(C,v=>{t("update:modelValue",v),t("change",v)});const S=v=>{!e.disabled&&c(v)},_=v=>{!e.disabled&&a(v)},A=v=>{t("popup-visible-change",v,C.value)},y=()=>O("div",{class:{[i]:!0,[`${i}-size-${e.size}`]:e.size,[`${i}-disabled`]:e.disabled}},[O("div",{class:`${i}-preview`,style:{backgroundColor:C.value}},null),e.showText&&O("div",{class:`${i}-value`},[C.value]),O("input",{class:`${i}-input`,value:C.value,disabled:e.disabled},null)]),d=()=>O(dce,{color:l.value,alpha:r.value,colorString:g.value,historyColors:e.historyColors,presetColors:e.presetColors,showHistory:e.showHistory,showPreset:e.showPreset,disabled:e.disabled,disabledAlpha:e.disabledAlpha,format:e.format,onHsvChange:S,onAlphaChange:_},null);return()=>e.hideTrigger?d():O(ur,Qe({trigger:"click",position:"bl",animationName:"slide-dynamic-origin",popupOffset:4,disabled:e.disabled,onPopupVisibleChange:A},e.triggerProps),{default:()=>[n.default?n.default():y()],content:d})}});const fce=Object.assign(o4,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+o4.name,o4)}});function ZF(e,t,n){return P(()=>!!(e[n]||t[n]))}var hce=Object.defineProperty,tD=Object.getOwnPropertySymbols,pce=Object.prototype.hasOwnProperty,mce=Object.prototype.propertyIsEnumerable,nD=(e,t,n)=>t in e?hce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vce=(e,t)=>{for(var n in t||(t={}))pce.call(t,n)&&nD(e,n,t[n]);if(tD)for(var n of tD(t))mce.call(t,n)&&nD(e,n,t[n]);return e};const gce=se({name:"Comment",props:{author:{type:String},avatar:{type:String},content:{type:String},datetime:{type:String},align:{type:[String,Object],default:"left"}},setup(e,{slots:t}){const n=de("comment"),[i,o,s,r]=["author","avatar","content","datetime"].map(u=>ZF(e,t,u)),a=P(()=>{const{align:u}=e;return vce({},Ai(u)?{datetime:u,actions:u}:u)});return{prefixCls:n,hasAuthor:i,hasAvatar:o,hasContent:s,hasDatetime:r,computedAlign:a}}}),yce=["src"],bce={key:0},kce={key:0},Cce={key:0};function Sce(e,t,n,i,o,s){return R(),X("div",{class:G(e.prefixCls)},[e.hasAvatar?(R(),X("div",{key:0,class:G(`${e.prefixCls}-avatar`)},[e.avatar?(R(),X("img",{key:0,src:e.avatar,alt:"comment-avatar"},null,8,yce)):He(e.$slots,"avatar",{key:1})],2)):Re("v-if",!0),B("div",{class:G(`${e.prefixCls}-inner`)},[B("div",{class:G(`${e.prefixCls}-inner-content`)},[e.hasAuthor||e.hasDatetime?(R(),X("div",{key:0,class:G(`${e.prefixCls}-title ${e.prefixCls}-title-align-${e.computedAlign.datetime}`)},[e.hasAuthor?(R(),X("span",{key:0,class:G(`${e.prefixCls}-author`)},[e.author?(R(),X("span",bce,tt(e.author),1)):He(e.$slots,"author",{key:1})],2)):Re("v-if",!0),e.hasDatetime?(R(),X("span",{key:1,class:G(`${e.prefixCls}-datetime`)},[e.datetime?(R(),X("span",kce,tt(e.datetime),1)):He(e.$slots,"datetime",{key:1})],2)):Re("v-if",!0)],2)):Re("v-if",!0),e.hasContent?(R(),X("div",{key:1,class:G(`${e.prefixCls}-content`)},[e.content?(R(),X("span",Cce,tt(e.content),1)):He(e.$slots,"content",{key:1})],2)):Re("v-if",!0),e.$slots.actions?(R(),X("div",{key:2,class:G(`${e.prefixCls}-actions ${e.prefixCls}-actions-align-${e.computedAlign.actions}`)},[He(e.$slots,"actions")],2)):Re("v-if",!0)],2),e.$slots.default?(R(),X("div",{key:0,class:G(`${e.prefixCls}-inner-comment`)},[He(e.$slots,"default")],2)):Re("v-if",!0)],2)],2)}var s4=ye(gce,[["render",Sce]]);const wce=Object.assign(s4,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+s4.name,s4)}}),_ce=se({name:"ConfigProvider",props:{prefixCls:{type:String,default:"arco"},locale:{type:Object},size:{type:String},global:{type:Boolean,default:!1},updateAtScroll:{type:Boolean,default:!1},scrollToClose:{type:Boolean,default:!1},exchangeTime:{type:Boolean,default:!0}},setup(e,{slots:t}){const{prefixCls:n,locale:i,size:o,updateAtScroll:s,scrollToClose:r,exchangeTime:a}=lt(e),u=it({slots:t,prefixCls:n,locale:i,size:o,updateAtScroll:s,scrollToClose:r,exchangeTime:a});if(e.global){const c=Vn();c&&c.appContext.app.provide(Or,u)}else cn(Or,u)}});function Ice(e,t,n,i,o,s){return He(e.$slots,"default")}var a4=ye(_ce,[["render",Ice]]);const xce=Object.assign(a4,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+a4.name,a4)}});function $ce(e){const{modelValue:t,defaultValue:n,format:i}=lt(e),o=P(()=>Wo(t.value,i.value)),s=P(()=>Wo(n.value,i.value)),[r,a]=Er(jt(o.value)?jt(s.value)?void 0:s.value:o.value);return gt(o,()=>{jt(o.value)&&a(void 0)}),{value:P(()=>o.value||r.value),setValue:a}}const Ace=se({name:"DateInput",components:{IconHover:ai,IconClose:Cr,FeedbackIcon:m1},props:{size:{type:String},focused:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},error:{type:Boolean},allowClear:{type:Boolean},placeholder:{type:String},inputValue:{type:String},value:{type:Object},format:{type:[String,Function],required:!0}},emits:["clear","press-enter","change","blur"],setup(e,{emit:t,slots:n}){const{error:i,focused:o,disabled:s,size:r,value:a,format:u,inputValue:c}=lt(e),{mergedSize:l,mergedDisabled:g,mergedError:C,feedback:S}=li({size:r,disabled:s,error:i}),{mergedSize:_}=Sr(l),A=de("picker"),y=P(()=>[A,`${A}-size-${_.value}`,{[`${A}-focused`]:o.value,[`${A}-disabled`]:g.value,[`${A}-error`]:C.value,[`${A}-has-prefix`]:n.prefix}]),d=P(()=>{if(c!=null&&c.value)return c==null?void 0:c.value;if(a!=null&&a.value&&ls(a.value))return Nt(u.value)?u.value(a.value):a.value.format(u.value)}),v=he();return{feedback:S,prefixCls:A,classNames:y,displayValue:d,mergedDisabled:g,refInput:v,onPressEnter(){t("press-enter")},onChange(m){t("change",m)},onClear(m){t("clear",m)},onBlur(m){t("blur",m)}}},methods:{focus(){this.refInput&&this.refInput.focus&&this.refInput.focus()},blur(){this.refInput&&this.refInput.blur&&this.refInput.blur()}}}),Ece=["disabled","placeholder","value"];function Mce(e,t,n,i,o,s){const r=Pe("IconClose"),a=Pe("IconHover"),u=Pe("FeedbackIcon");return R(),X("div",{class:G(e.classNames)},[e.$slots.prefix?(R(),X("div",{key:0,class:G(`${e.prefixCls}-prefix`)},[He(e.$slots,"prefix")],2)):Re("v-if",!0),B("div",{class:G(`${e.prefixCls}-input`)},[B("input",Qe({ref:"refInput",disabled:e.mergedDisabled,placeholder:e.placeholder,class:`${e.prefixCls}-start-time`,value:e.displayValue},e.readonly?{readonly:!0}:{},{onKeydown:t[0]||(t[0]=_a((...c)=>e.onPressEnter&&e.onPressEnter(...c),["enter"])),onInput:t[1]||(t[1]=(...c)=>e.onChange&&e.onChange(...c)),onBlur:t[2]||(t[2]=(...c)=>e.onBlur&&e.onBlur(...c))}),null,16,Ece)],2),B("div",{class:G(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.displayValue?(R(),We(a,{key:0,prefix:e.prefixCls,class:G(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:Ve(()=>[O(r)]),_:1},8,["prefix","class","onClick"])):Re("v-if",!0),B("span",{class:G(`${e.prefixCls}-suffix-icon`)},[He(e.$slots,"suffix-icon")],2),e.feedback?(R(),We(u,{key:1,type:e.feedback},null,8,["type"])):Re("v-if",!0)],2)],2)}var GF=ye(Ace,[["render",Mce]]);function oE(e){const t=["H","h","m","s","a","A"],n=[];let i=!1;return t.forEach(o=>{e.indexOf(o)!==-1&&(n.push(o),(o==="a"||o==="A")&&(i=!0))}),{list:n,use12Hours:i}}const iD=new Map;function Tce(e,t,n){const i=iD.get(e);jt(i)||cancelAnimationFrame(i),n<=0&&(e.scrollTop=t),iD.set(e,requestAnimationFrame(()=>{new df({from:{scrollTop:e.scrollTop},to:{scrollTop:t},duration:n,onUpdate:s=>{e.scrollTop=s.scrollTop}}).start()}))}function Ia(e,t){const n=i=>{if(Kt(i))return i.map(o=>n(o));if(!jt(i))return i.format(t)};return n(e)}function Dm(e){return jt(e)?!0:Kt(e)?e.length===0||e.length===2&&ls(e[0])&&ls(e[1]):!1}function qk(e,t){return e?typeof e=="string"&&zi(e,t).format(t)===e:!1}function Pce(e,{disabledHours:t,disabledMinutes:n,disabledSeconds:i}){if(!e)return!1;const o=e.hour(),s=e.minute(),r=e.second(),a=(t==null?void 0:t())||[],u=(n==null?void 0:n(o))||[],c=(i==null?void 0:i(o,s))||[],l=(g,C)=>!jt(g)&&C.includes(g);return l(o,a)||l(s,u)||l(r,c)}var jl=se({name:"RenderFunction",props:{renderFunc:{type:Function,required:!0}},render(){return this.renderFunc(this.$attrs)}});const YF=Symbol("PickerInjectionKey");function y1(){const{datePickerT:e}=Dt(YF)||{};return e||((t,...n)=>t)}const Oce=se({name:"PanelShortcuts",components:{Button:Yr,RenderFunction:jl},props:{prefixCls:{type:String,required:!0},shortcuts:{type:Array,default:()=>[]},showNowBtn:{type:Boolean}},emits:["item-click","item-mouse-enter","item-mouse-leave","now-click"],setup(e,{emit:t}){return{datePickerT:y1(),onItemClick:i=>{t("item-click",i)},onItemMouseEnter:i=>{t("item-mouse-enter",i)},onItemMouseLeave:i=>{t("item-mouse-leave",i)},onNowClick:()=>{t("now-click")},isFunction:Nt}}});function Lce(e,t,n,i,o,s){const r=Pe("Button"),a=Pe("RenderFunction");return R(),X("div",{class:G(`${e.prefixCls}-shortcuts`)},[e.showNowBtn?(R(),We(r,{key:0,size:"mini",onClick:t[0]||(t[0]=()=>e.onNowClick())},{default:Ve(()=>[pt(tt(e.datePickerT("datePicker.now")),1)]),_:1})):Re("v-if",!0),(R(!0),X(ft,null,dn(e.shortcuts,(u,c)=>(R(),We(r,{key:c,size:"mini",onClick:()=>e.onItemClick(u),onMouseenter:()=>e.onItemMouseEnter(u),onMouseleave:()=>e.onItemMouseLeave(u)},{default:Ve(()=>[e.isFunction(u.label)?(R(),We(a,{key:0,"render-func":u.label},null,8,["render-func"])):(R(),X(ft,{key:1},[pt(tt(u.label),1)],2112))]),_:2},1032,["onClick","onMouseenter","onMouseleave"]))),128))],2)}var XF=ye(Oce,[["render",Lce]]);function zp(e){return[...Array(e)]}function sE(e){if(!jt(e))return Kt(e)?e:[e,void 0]}function ql(e){return!!e&&ls(e[0])&&ls(e[1])}function Dce(e){return jt(e)||e.length===0||ql(e)}function KF(e,t,n){const i=t||e;return(n||e).set("year",i.year()).set("month",i.month()).set("date",i.date())}const Nce=se({name:"IconDoubleLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-double-left`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),jce=["stroke-width","stroke-linecap","stroke-linejoin"],zce=B("path",{d:"M36.857 9.9 22.715 24.042l14.142 14.142M25.544 9.9 11.402 24.042l14.142 14.142"},null,-1),Rce=[zce];function Bce(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Rce,14,jce)}var l4=ye(Nce,[["render",Bce]]);const JF=Object.assign(l4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+l4.name,l4)}}),Fce=se({name:"IconDoubleRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-double-right`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Vce=["stroke-width","stroke-linecap","stroke-linejoin"],Hce=B("path",{d:"m11.143 38.1 14.142-14.142L11.143 9.816M22.456 38.1l14.142-14.142L22.456 9.816"},null,-1),Wce=[Hce];function Uce(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Wce,14,Vce)}var c4=ye(Fce,[["render",Uce]]);const qF=Object.assign(c4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+c4.name,c4)}}),Zce=se({name:"PanelHeader",components:{IconLeft:Pa,IconRight:fs,IconDoubleLeft:JF,IconDoubleRight:qF,RenderFunction:jl},props:{prefixCls:{type:String,required:!0},title:{type:String,required:!0},mode:{type:String,default:"date"},value:{type:Object},icons:{type:Object},onPrev:{type:Function},onSuperPrev:{type:Function},onNext:{type:Function},onSuperNext:{type:Function},onLabelClick:{type:Function}},emits:["label-click"],setup(e){return{showPrev:P(()=>Nt(e.onPrev)),showSuperPrev:P(()=>Nt(e.onSuperPrev)),showNext:P(()=>Nt(e.onNext)),showSuperNext:P(()=>Nt(e.onSuperNext)),year:P(()=>["date","quarter","month","week"].includes(e.mode)&&e.value?e.value.format("YYYY"):""),month:P(()=>["date","week"].includes(e.mode)&&e.value?e.value.format("MM"):""),getIconClassName:t=>[`${e.prefixCls}-header-icon`,{[`${e.prefixCls}-header-icon-hidden`]:!t}]}}}),Gce={key:1};function Yce(e,t,n,i,o,s){const r=Pe("RenderFunction"),a=Pe("IconDoubleLeft"),u=Pe("IconLeft"),c=Pe("IconRight"),l=Pe("IconDoubleRight");return R(),X("div",{class:G(`${e.prefixCls}-header`)},[B("div",{class:G(e.getIconClassName(e.showSuperPrev)),onClick:t[0]||(t[0]=(...g)=>e.onSuperPrev&&e.onSuperPrev(...g))},[e.showSuperPrev?(R(),X(ft,{key:0},[e.icons&&e.icons.prevDouble?(R(),We(r,{key:0,"render-func":e.icons&&e.icons.prevDouble},null,8,["render-func"])):(R(),We(a,{key:1}))],2112)):Re("v-if",!0)],2),B("div",{class:G(e.getIconClassName(e.showPrev)),onClick:t[1]||(t[1]=(...g)=>e.onPrev&&e.onPrev(...g))},[e.showPrev?(R(),X(ft,{key:0},[e.icons&&e.icons.prev?(R(),We(r,{key:0,"render-func":e.icons&&e.icons.prev},null,8,["render-func"])):(R(),We(u,{key:1}))],2112)):Re("v-if",!0)],2),B("div",{class:G(`${e.prefixCls}-header-title`)},[e.onLabelClick&&(e.year||e.month)?(R(),X(ft,{key:0},[e.year?(R(),X("span",{key:0,class:G(`${e.prefixCls}-header-label`),onClick:t[2]||(t[2]=()=>e.onLabelClick&&e.onLabelClick("year"))},tt(e.year),3)):Re("v-if",!0),e.year&&e.month?(R(),X("span",Gce,"-")):Re("v-if",!0),e.month?(R(),X("span",{key:2,class:G(`${e.prefixCls}-header-label`),onClick:t[3]||(t[3]=()=>e.onLabelClick&&e.onLabelClick("month"))},tt(e.month),3)):Re("v-if",!0)],64)):(R(),X(ft,{key:1},[pt(tt(e.title),1)],2112))],2),B("div",{class:G(e.getIconClassName(e.showNext)),onClick:t[4]||(t[4]=(...g)=>e.onNext&&e.onNext(...g))},[e.showNext?(R(),X(ft,{key:0},[e.icons&&e.icons.next?(R(),We(r,{key:0,"render-func":e.icons&&e.icons.next},null,8,["render-func"])):(R(),We(c,{key:1}))],2112)):Re("v-if",!0)],2),B("div",{class:G(e.getIconClassName(e.showSuperNext)),onClick:t[5]||(t[5]=(...g)=>e.onSuperNext&&e.onSuperNext(...g))},[e.showSuperNext?(R(),X(ft,{key:0},[e.icons&&e.icons.nextDouble?(R(),We(r,{key:0,"render-func":e.icons&&e.icons.nextDouble},null,8,["render-func"])):(R(),We(l,{key:1}))],2112)):Re("v-if",!0)],2)],2)}var tw=ye(Zce,[["render",Yce]]);function Xce(e){const{rangeValues:t}=lt(e),n=P(()=>t!=null&&t.value&&t.value.every(ls)?jv(t.value):t==null?void 0:t.value),i=P(()=>{var s;return(s=n.value)==null?void 0:s[0]}),o=P(()=>{var s;return(s=n.value)==null?void 0:s[1]});return{getCellClassName:(s,r)=>{const{value:a,isSameTime:u,mode:c,prefixCls:l}=e,g=!s.isPrev&&!s.isNext,C=a&&u(s.value,a);let S=u(s.value,Mr());c==="week"&&(S=Mr().isSame(s.value,"date"));const _=g&&i.value&&u(s.value,i.value),A=g&&o.value&&u(s.value,o.value),y=g&&i.value&&o.value&&(_||A||s.value.isBetween(i.value,o.value,null,"[]"));return[`${l}-cell`,{[`${l}-cell-in-view`]:g,[`${l}-cell-today`]:S,[`${l}-cell-selected`]:C,[`${l}-cell-range-start`]:_,[`${l}-cell-range-end`]:A,[`${l}-cell-in-range`]:y,[`${l}-cell-disabled`]:r},s.classNames]}}}const Kce=se({name:"PanelBody",components:{RenderFunction:jl},props:{prefixCls:{type:String,required:!0},rows:{type:Array,default:()=>[]},value:{type:Object},disabledDate:{type:Function},isSameTime:{type:Function,required:!0},mode:{type:String},rangeValues:{type:Array},dateRender:{type:Function}},emits:["cell-click","cell-mouse-enter"],setup(e,{emit:t}){const{prefixCls:n,value:i,disabledDate:o,isSameTime:s,mode:r,rangeValues:a}=lt(e),{getCellClassName:u}=Xce(it({prefixCls:n,value:i,isSameTime:s,mode:r,rangeValues:a})),c=l=>!!(Nt(o==null?void 0:o.value)&&(o!=null&&o.value(_o(l.value))));return{isWeek:P(()=>(r==null?void 0:r.value)==="week"),getCellClassName:l=>{const g=c(l);return u(l,g)},onCellClick:l=>{c(l)||t("cell-click",l)},onCellMouseEnter:l=>{c(l)||t("cell-mouse-enter",l)},onCellMouseLeave:l=>{c(l)||t("cell-mouse-enter",l)},getDateValue:_o}}}),Jce=["onMouseenter","onMouseleave","onClick"];function qce(e,t,n,i,o,s){const r=Pe("RenderFunction");return R(),X("div",{class:G(`${e.prefixCls}-body`)},[(R(!0),X(ft,null,dn(e.rows,(a,u)=>(R(),X("div",{key:u,class:G([`${e.prefixCls}-row`,{[`${e.prefixCls}-row-week`]:e.isWeek}])},[(R(!0),X(ft,null,dn(a,(c,l)=>(R(),X(ft,null,[Re(" 一年中的第几周,只在 week 模式下显示 "),e.isWeek&&l===0?(R(),X("div",{key:l,class:G([`${e.prefixCls}-cell`,`${e.prefixCls}-cell-week`])},[B("div",{class:G(`${e.prefixCls}-date`)},[B("div",{class:G(`${e.prefixCls}-date-value`)},tt(c.label),3)],2)],2)):(R(),X("div",{key:l,class:G(e.getCellClassName(c)),onMouseenter:()=>{e.onCellMouseEnter(c)},onMouseleave:()=>{e.onCellMouseLeave(c)},onClick:()=>{e.onCellClick(c)}},[e.dateRender?(R(),We(r,{key:0,"render-func":e.dateRender,date:e.getDateValue(c.value)},null,8,["render-func","date"])):(R(),X("div",{key:1,class:G(`${e.prefixCls}-date`)},[B("div",{class:G(`${e.prefixCls}-date-value`)},tt(c.label),3)],2))],42,Jce))],64))),256))],2))),128))],2)}var nw=ye(Kce,[["render",qce]]);const Qce=se({name:"PanelWeekList",props:{prefixCls:{type:String,required:!0},weekList:{type:Array,required:!0}},setup(){const e=y1();return{labelList:P(()=>["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].map(n=>e(`datePicker.week.short.${n}`)))}}});function eue(e,t,n,i,o,s){return R(),X("div",{class:G(`${e.prefixCls}-week-list`)},[(R(!0),X(ft,null,dn(e.weekList,r=>(R(),X("div",{key:r,class:G(`${e.prefixCls}-week-list-item`)},tt(e.labelList[r]||""),3))),128))],2)}var tue=ye(Qce,[["render",eue]]);const nue=se({name:"TimePickerColumn",props:{prefixCls:{type:String,required:!0},list:{type:Array,required:!0},value:{type:[Number,String]},visible:{type:Boolean}},emits:["select"],setup(e,{emit:t}){const{visible:n,value:i}=lt(e),o=he(new Map),s=he();function r(a=!1){if(!s.value||jt(i==null?void 0:i.value)||!(n!=null&&n.value))return;const u=o.value.get(i.value);u&&Tce(s.value,u.offsetTop,a?100:0)}return gt([i,n],(a,[,u])=>{n.value!==u?fn(()=>{r()}):r(!0)}),Yt(()=>{r()}),{refWrapper:s,refMap:o,onItemRef(a,u){o.value.set(u.value,a)},onItemClick(a){a.disabled||t("select",a.value)}}}}),iue=["onClick"];function rue(e,t,n,i,o,s){return R(),X("div",{ref:"refWrapper",class:G(`${e.prefixCls}-column`)},[B("ul",null,[(R(!0),X(ft,null,dn(e.list,r=>(R(),X("li",{key:r.value,ref:a=>{e.onItemRef(a,r)},class:G([`${e.prefixCls}-cell`,{[`${e.prefixCls}-cell-disabled`]:r.disabled,[`${e.prefixCls}-cell-selected`]:r.selected}]),onClick:()=>{e.onItemClick(r)}},[B("div",{class:G(`${e.prefixCls}-cell-inner`)},tt(r.label),3)],10,iue))),128))])],2)}var oue=ye(nue,[["render",rue]]);function sue(e){const{format:t,step:n,use12Hours:i,hideDisabledOptions:o,disabledHours:s,disabledMinutes:r,disabledSeconds:a,selectedHour:u,selectedMinute:c,selectedSecond:l,selectedAmpm:g,disabled:C}=lt(e),S=P(()=>{var v;const{hour:m=1}=(n==null?void 0:n.value)||{},f=((v=s==null?void 0:s.value)==null?void 0:v.call(s))||[];let p=[];for(let h=0;h<(i.value?12:24);h+=m)p.push(h);return i.value&&(p[0]=12),o.value&&f.length&&(p=p.filter(h=>f.indexOf(h)<0)),p.map(h=>({label:Vd(h,2,"0"),value:h,selected:u.value===h,disabled:(C==null?void 0:C.value)||f.includes(h)}))}),_=P(()=>{var v;const{minute:m=1}=(n==null?void 0:n.value)||{},f=((v=r==null?void 0:r.value)==null?void 0:v.call(r,u.value))||[];let p=[];for(let h=0;h<60;h+=m)p.push(h);return o.value&&f.length&&(p=p.filter(h=>f.indexOf(h)<0)),p.map(h=>({label:Vd(h,2,"0"),value:h,selected:c.value===h,disabled:(C==null?void 0:C.value)||f.includes(h)}))}),A=P(()=>{var v;const{second:m=1}=(n==null?void 0:n.value)||{},f=((v=a==null?void 0:a.value)==null?void 0:v.call(a,u.value,c.value))||[];let p=[];for(let h=0;h<60;h+=m)p.push(h);return o.value&&f.length&&(p=p.filter(h=>f.indexOf(h)<0)),p.map(h=>({label:Vd(h,2,"0"),value:h,selected:l.value===h,disabled:(C==null?void 0:C.value)||f.includes(h)}))}),y=["am","pm"],d=P(()=>{const v=oE(t.value).list.includes("A");return y.map(m=>({label:v?m.toUpperCase():m,value:m,selected:g.value===m,disabled:C==null?void 0:C.value}))});return{hours:S,minutes:_,seconds:A,ampmList:d}}function yP(e){const{format:t,use12Hours:n,defaultFormat:i}=lt(e),o=P(()=>{let c=(t==null?void 0:t.value)||(i==null?void 0:i.value);return(!c||!oE(c).list.length)&&(c=n!=null&&n.value?"hh:mm:ss a":"HH:mm:ss"),c}),s=P(()=>oE(o.value)),r=P(()=>s.value.list),a=P(()=>s.value.use12Hours),u=P(()=>!!(n!=null&&n.value||a.value));return{columns:r,use12Hours:u,format:o}}function QF(e){const t=n=>Pce(n,{disabledHours:e.disabledHours,disabledMinutes:e.disabledMinutes,disabledSeconds:e.disabledSeconds});return n=>Kt(n)?n.some(i=>t(i)):t(n)}const aue=se({name:"TimePickerPanel",components:{TimeColumn:oue,Button:Yr},props:{value:{type:Object},visible:{type:Boolean},format:{type:String,default:"HH:mm:ss"},use12Hours:{type:Boolean},step:{type:Object},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function},hideDisabledOptions:{type:Boolean},hideFooter:{type:Boolean},isRange:{type:Boolean},disabled:{type:Boolean}},emits:{select:e=>ls(e),confirm:e=>ls(e)},setup(e,{emit:t}){const{value:n,visible:i,format:o,step:s,use12Hours:r,hideDisabledOptions:a,disabledHours:u,disabledMinutes:c,disabledSeconds:l,disabled:g}=lt(e),C=de("timepicker"),{t:S}=fi(),{columns:_,use12Hours:A,format:y}=yP(it({format:o,use12Hours:r})),d=he(n==null?void 0:n.value),v=W=>{d.value=W};gt([i,n],()=>{i.value&&v(n==null?void 0:n.value)});const m=P(()=>{var W;const H=(W=d.value)==null?void 0:W.hour();return jt(H)||!A.value?H:H>12?H-12:H===0?12:H}),f=P(()=>{var W;return(W=d.value)==null?void 0:W.minute()}),p=P(()=>{var W;return(W=d.value)==null?void 0:W.second()}),h=P(()=>{var W;const H=(W=d.value)==null?void 0:W.hour();return!jt(H)&&H>=12?"pm":"am"}),{hours:b,minutes:w,seconds:k,ampmList:$}=sue(it({format:y,step:s,use12Hours:A,hideDisabledOptions:a,disabledHours:u,disabledMinutes:c,disabledSeconds:l,selectedHour:m,selectedMinute:f,selectedSecond:p,selectedAmpm:h,disabled:g})),E=QF(it({disabledHours:u,disabledMinutes:c,disabledSeconds:l})),N=P(()=>E(d.value));function j(W){jt(W)||t("confirm",W)}function z(W){v(W),t("select",W)}function V(W,H="hour"){let U;const Q=m.value||"00",q=f.value||"00",ae=p.value||"00",ne=h.value||"am";switch(H){case"hour":U=`${W}:${q}:${ae}`;break;case"minute":U=`${Q}:${W}:${ae}`;break;case"second":U=`${Q}:${q}:${W}`;break;case"ampm":U=`${Q}:${q}:${ae} ${W}`;break;default:U="00:00:00"}let be="HH:mm:ss";A.value&&(be="HH:mm:ss a",H!=="ampm"&&(U=`${U} ${ne}`)),U=zi(U,be),z(U)}return{prefixCls:C,t:S,hours:b,minutes:w,seconds:k,ampmList:$,selectedValue:d,selectedHour:m,selectedMinute:f,selectedSecond:p,selectedAmpm:h,computedUse12Hours:A,confirmBtnDisabled:N,columns:_,onSelect:V,onSelectNow(){const W=zi(new Date);z(W)},onConfirm(){j(d.value)}}}});function lue(e,t,n,i,o,s){const r=Pe("TimeColumn"),a=Pe("Button");return R(),X(ft,null,[B("div",{class:G(e.prefixCls)},[e.columns.includes("H")||e.columns.includes("h")?(R(),We(r,{key:0,value:e.selectedHour,list:e.hours,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[0]||(t[0]=u=>{e.onSelect(u,"hour")})},null,8,["value","list","prefix-cls","visible"])):Re("v-if",!0),e.columns.includes("m")?(R(),We(r,{key:1,value:e.selectedMinute,list:e.minutes,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[1]||(t[1]=u=>{e.onSelect(u,"minute")})},null,8,["value","list","prefix-cls","visible"])):Re("v-if",!0),e.columns.includes("s")?(R(),We(r,{key:2,value:e.selectedSecond,list:e.seconds,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[2]||(t[2]=u=>{e.onSelect(u,"second")})},null,8,["value","list","prefix-cls","visible"])):Re("v-if",!0),e.computedUse12Hours?(R(),We(r,{key:3,value:e.selectedAmpm,list:e.ampmList,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[3]||(t[3]=u=>{e.onSelect(u,"ampm")})},null,8,["value","list","prefix-cls","visible"])):Re("v-if",!0)],2),e.$slots["extra-footer"]?(R(),X("div",{key:0,class:G(`${e.prefixCls}-footer-extra-wrapper`)},[He(e.$slots,"extra-footer")],2)):Re("v-if",!0),e.hideFooter?Re("v-if",!0):(R(),X("div",{key:1,class:G(`${e.prefixCls}-footer-btn-wrapper`)},[e.isRange?Re("v-if",!0):(R(),We(a,{key:0,size:"mini",onClick:e.onSelectNow},{default:Ve(()=>[pt(tt(e.t("datePicker.now")),1)]),_:1},8,["onClick"])),O(a,{type:"primary",size:"mini",disabled:e.confirmBtnDisabled||!e.selectedValue,onClick:e.onConfirm},{default:Ve(()=>[pt(tt(e.t("datePicker.ok")),1)]),_:1},8,["disabled","onClick"])],2))],64)}var Qk=ye(aue,[["render",lue]]);const cue=se({name:"IconCalendar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-calendar`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),uue=["stroke-width","stroke-linecap","stroke-linejoin"],due=B("path",{d:"M7 22h34M14 5v8m20-8v8M8 41h32a1 1 0 0 0 1-1V10a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1Z"},null,-1),fue=[due];function hue(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},fue,14,uue)}var u4=ye(cue,[["render",hue]]);const iw=Object.assign(u4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+u4.name,u4)}}),pue=se({name:"IconClockCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-clock-circle`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),mue=["stroke-width","stroke-linecap","stroke-linejoin"],vue=B("path",{d:"M24 14v10h9.5m8.5 0c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),gue=[vue];function yue(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},gue,14,mue)}var d4=ye(pue,[["render",yue]]);const bP=Object.assign(d4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+d4.name,d4)}});var bue=Object.defineProperty,kue=Object.defineProperties,Cue=Object.getOwnPropertyDescriptors,rD=Object.getOwnPropertySymbols,Sue=Object.prototype.hasOwnProperty,wue=Object.prototype.propertyIsEnumerable,oD=(e,t,n)=>t in e?bue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,db=(e,t)=>{for(var n in t||(t={}))Sue.call(t,n)&&oD(e,n,t[n]);if(rD)for(var n of rD(t))wue.call(t,n)&&oD(e,n,t[n]);return e},eV=(e,t)=>kue(e,Cue(t));const tV=6,aE=7,_ue=tV*aE;function Iue(e){return{label:e.date(),value:e}}const xue=se({name:"DatePanel",components:{PanelHeader:tw,PanelBody:nw,PanelWeekList:tue,TimePanel:Qk,IconCalendar:iw,IconClockCircle:bP},props:{isRange:{type:Boolean},value:{type:Object},rangeValues:{type:Array},headerValue:{type:Object,required:!0},footerValue:{type:Object},timePickerValue:{type:Object},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},dayStartOfWeek:{type:Number,default:0},disabledDate:{type:Function},disabledTime:{type:Function},isSameTime:{type:Function},mode:{type:String,default:"date"},showTime:{type:Boolean},timePickerProps:{type:Object},currentView:{type:String},dateRender:{type:Function},disabled:{type:Boolean},onHeaderLabelClick:{type:Function}},emits:["select","time-picker-select","cell-mouse-enter","current-view-change","update:currentView"],setup(e,{emit:t}){const{isRange:n,headerValue:i,footerValue:o,dayStartOfWeek:s,isSameTime:r,mode:a,showTime:u,currentView:c,disabledTime:l}=lt(e),g=y1(),C=P(()=>(a==null?void 0:a.value)==="week"),S=P(()=>de(C.value?"panel-week":"panel-date")),_=de("picker"),[A,y]=cr("date",it({value:c})),d=P(()=>u.value&&n.value),v=P(()=>!u.value||!d.value||A.value==="date"),m=P(()=>u.value&&(!d.value||A.value==="time")),f=P(()=>[S.value,{[`${S.value}-with-view-tabs`]:d.value}]),p=P(()=>i.value.format("YYYY-MM")),h=P(()=>{var j;return u.value&&((j=l==null?void 0:l.value)==null?void 0:j.call(l,_o((o==null?void 0:o.value)||Mr())))||{}}),b=P(()=>{const j=[0,1,2,3,4,5,6],z=Math.max(s.value%7,0);return[...j.slice(z),...j.slice(0,z)]}),w=P(()=>{const j=Yi.startOf(i.value,"month"),z=j.day(),V=j.daysInMonth(),W=b.value.indexOf(z),H=zp(_ue);for(let Q=0;Q<H.length;Q++)H[Q]=eV(db({},Iue(Yi.add(j,Q-W,"day"))),{isPrev:Q<W,isNext:Q>W+V-1});return zp(tV).map((Q,q)=>{const ae=H.slice(q*aE,(q+1)*aE);if(C.value){const ne=ae[0].value;ae.unshift({label:ne.week(),value:ne})}return ae})}),k=P(()=>(r==null?void 0:r.value)||((j,z)=>j.isSame(z,"day")));function $(j){t("select",j.value)}function E(j){t("time-picker-select",j)}function N(j){t("cell-mouse-enter",j.value)}return{prefixCls:S,classNames:f,pickerPrefixCls:_,headerTitle:p,rows:w,weekList:P(()=>C.value?[-1,...b.value]:b.value),mergedIsSameTime:k,disabledTimeProps:h,onCellClick:$,onCellMouseEnter:N,onTimePanelSelect:E,showViewTabs:d,showDateView:v,showTimeView:m,changeViewTo:j=>{t("current-view-change",j),t("update:currentView",j),y(j)},datePickerT:g}}});function $ue(e,t,n,i,o,s){const r=Pe("PanelHeader"),a=Pe("PanelWeekList"),u=Pe("PanelBody"),c=Pe("TimePanel"),l=Pe("IconCalendar"),g=Pe("IconClockCircle");return R(),X("div",{class:G(e.classNames)},[e.showDateView?(R(),X("div",{key:0,class:G(`${e.prefixCls}-inner`)},[O(r,Qe(eV(db({},e.headerOperations),{icons:e.headerIcons}),{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:e.mode,value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","mode","value","on-label-click"]),O(a,{"prefix-cls":e.pickerPrefixCls,"week-list":e.weekList},null,8,["prefix-cls","week-list"]),O(u,{mode:e.mode,"prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.isRange?void 0:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.mergedIsSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["mode","prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)):Re("v-if",!0),e.showTimeView?(R(),X("div",{key:1,class:G(`${e.prefixCls}-timepicker`)},[B("header",{class:G(`${e.prefixCls}-timepicker-title`)},tt(e.datePickerT("datePicker.selectTime")),3),O(c,Qe(db(db({},e.timePickerProps),e.disabledTimeProps),{"hide-footer":"",value:e.value||e.isRange?e.timePickerValue:void 0,disabled:e.disabled,onSelect:e.onTimePanelSelect}),null,16,["value","disabled","onSelect"])],2)):Re("v-if",!0),e.showViewTabs?(R(),X("div",{key:2,class:G(`${e.prefixCls}-footer`)},[B("div",{class:G(`${e.prefixCls}-view-tabs`)},[B("div",{class:G([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showDateView}]),onClick:t[0]||(t[0]=()=>e.changeViewTo("date"))},[O(l),B("span",{class:G(`${e.prefixCls}-view-tab-pane-text`)},tt(e.footerValue&&e.footerValue.format("YYYY-MM-DD")),3)],2),B("div",{class:G([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showTimeView}]),onClick:t[1]||(t[1]=()=>e.changeViewTo("time"))},[O(g),B("span",{class:G(`${e.prefixCls}-view-tab-pane-text`)},tt(e.timePickerValue&&e.timePickerValue.format("HH:mm:ss")),3)],2)],2)],2)):Re("v-if",!0)],2)}var kP=ye(xue,[["render",$ue]]);const Aue=se({name:"WeekPanel",components:{DatePanel:kP},props:{dayStartOfWeek:{type:Number,default:0}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){return fi(),{isSameTime:(i,o)=>Yi.isSameWeek(i,o,e.dayStartOfWeek),onSelect:i=>{const o=Yi.startOfWeek(i,e.dayStartOfWeek);t("select",o)},onCellMouseEnter:i=>{const o=Yi.startOfWeek(i,e.dayStartOfWeek);t("cell-mouse-enter",o)}}}});function Eue(e,t,n,i,o,s){const r=Pe("DatePanel");return R(),We(r,Qe(e.$attrs,{mode:"week","is-week":"","day-start-of-week":e.dayStartOfWeek,"is-same-time":e.isSameTime,onSelect:e.onSelect,onCellMouseEnter:e.onCellMouseEnter}),null,16,["day-start-of-week","is-same-time","onSelect","onCellMouseEnter"])}var nV=ye(Aue,[["render",Eue]]),Mue=Object.defineProperty,Tue=Object.defineProperties,Pue=Object.getOwnPropertyDescriptors,sD=Object.getOwnPropertySymbols,Oue=Object.prototype.hasOwnProperty,Lue=Object.prototype.propertyIsEnumerable,aD=(e,t,n)=>t in e?Mue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Due=(e,t)=>{for(var n in t||(t={}))Oue.call(t,n)&&aD(e,n,t[n]);if(sD)for(var n of sD(t))Lue.call(t,n)&&aD(e,n,t[n]);return e},Nue=(e,t)=>Tue(e,Pue(t));const jue=["January","February","March","April","May","June","July","August","September","October","November","December"],zue=12,Rue=4,lD=3,Bue=se({name:"MonthPanel",components:{PanelHeader:tw,PanelBody:nw},props:{headerValue:{type:Object,required:!0},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},value:{type:Object},disabledDate:{type:Function},rangeValues:{type:Array},dateRender:{type:Function},onHeaderLabelClick:{type:Function},abbreviation:{type:Boolean,default:!0}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){const n=y1(),{headerValue:i}=lt(e),o=P(()=>de("panel-month")),s=de("picker"),r=P(()=>i.value.format("YYYY")),a=P(()=>{const g=i.value.year(),C=e.abbreviation?"short":"long",S=zp(zue).map((A,y)=>({label:n(`datePicker.month.${C}.${jue[y]}`),value:zi(`${g}-${y+1}`,"YYYY-M")}));return zp(Rue).map((A,y)=>S.slice(y*lD,(y+1)*lD))}),u=(g,C)=>g.isSame(C,"month");function c(g){t("select",g.value)}function l(g){t("cell-mouse-enter",g.value)}return{prefixCls:o,pickerPrefixCls:s,headerTitle:r,rows:a,isSameTime:u,onCellClick:c,onCellMouseEnter:l}}});function Fue(e,t,n,i,o,s){const r=Pe("PanelHeader"),a=Pe("PanelBody");return R(),X("div",{class:G(e.prefixCls)},[B("div",{class:G(`${e.prefixCls}-inner`)},[O(r,Qe(Nue(Due({},e.headerOperations),{icons:e.headerIcons}),{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:"month",value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","value","on-label-click"]),O(a,{mode:"month","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var iV=ye(Bue,[["render",Fue]]),Vue=Object.defineProperty,Hue=Object.defineProperties,Wue=Object.getOwnPropertyDescriptors,cD=Object.getOwnPropertySymbols,Uue=Object.prototype.hasOwnProperty,Zue=Object.prototype.propertyIsEnumerable,uD=(e,t,n)=>t in e?Vue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gue=(e,t)=>{for(var n in t||(t={}))Uue.call(t,n)&&uD(e,n,t[n]);if(cD)for(var n of cD(t))Zue.call(t,n)&&uD(e,n,t[n]);return e},Yue=(e,t)=>Hue(e,Wue(t));const lE=4,fb=3,Xue=lE*fb,f4=10,Kue=se({name:"YearPanel",components:{PanelHeader:tw,PanelBody:nw},props:{headerValue:{type:Object,required:!0},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},value:{type:Object},disabledDate:{type:Function},rangeValues:{type:Array},dateRender:{type:Function}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){const{headerValue:n}=lt(e),i=P(()=>de("panel-year")),o=de("picker"),s=P(()=>{const l=Math.floor(n.value.year()/f4)*f4-1,g=zp(Xue).map((S,_)=>({label:l+_,value:zi(`${l+_}`,"YYYY"),isPrev:_<1,isNext:_>f4}));return zp(lE).map((S,_)=>g.slice(_*fb,(_+1)*fb))}),r=P(()=>`${s.value[0][1].label}-${s.value[lE-1][fb-1].label}`),a=(l,g)=>l.isSame(g,"year");function u(l){t("select",l.value)}function c(l){t("cell-mouse-enter",l.value)}return{prefixCls:i,pickerPrefixCls:o,headerTitle:r,rows:s,isSameTime:a,onCellClick:u,onCellMouseEnter:c}}});function Jue(e,t,n,i,o,s){const r=Pe("PanelHeader"),a=Pe("PanelBody");return R(),X("div",{class:G(e.prefixCls)},[B("div",{class:G(`${e.prefixCls}-inner`)},[O(r,Qe(Yue(Gue({},e.headerOperations),{icons:e.headerIcons}),{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle}),null,16,["prefix-cls","title"]),O(a,{mode:"year","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var rV=ye(Kue,[["render",Jue]]),que=Object.defineProperty,Que=Object.defineProperties,ede=Object.getOwnPropertyDescriptors,dD=Object.getOwnPropertySymbols,tde=Object.prototype.hasOwnProperty,nde=Object.prototype.propertyIsEnumerable,fD=(e,t,n)=>t in e?que(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ide=(e,t)=>{for(var n in t||(t={}))tde.call(t,n)&&fD(e,n,t[n]);if(dD)for(var n of dD(t))nde.call(t,n)&&fD(e,n,t[n]);return e},rde=(e,t)=>Que(e,ede(t));const ode=se({name:"QuarterPanel",components:{PanelHeader:tw,PanelBody:nw},props:{headerValue:{type:Object,required:!0},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},value:{type:Object},disabledDate:{type:Function},rangeValues:{type:Array},dateRender:{type:Function},onHeaderLabelClick:{type:Function}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){const{headerValue:n}=lt(e),i=P(()=>de("panel-quarter")),o=de("picker"),s=P(()=>n.value.format("YYYY")),r=P(()=>{const l=n.value.year();return[[1,2,3,4].map(g=>({label:`Q${g}`,value:zi(`${l}-${Vd((g-1)*3+1,2,"0")}-01`)}))]}),a=(l,g)=>l.isSame(g,"month")||l.isSame(g,"year")&&Math.floor(l.month()/3)===Math.floor(g.month()/3);function u(l){t("select",l.value)}function c(l){t("cell-mouse-enter",l.value)}return{prefixCls:i,pickerPrefixCls:o,headerTitle:s,rows:r,isSameTime:a,onCellClick:u,onCellMouseEnter:c}}});function sde(e,t,n,i,o,s){const r=Pe("PanelHeader"),a=Pe("PanelBody");return R(),X("div",{class:G(e.prefixCls)},[B("div",{class:G(`${e.prefixCls}-inner`)},[O(r,Qe(rde(ide({},e.headerOperations),{icons:e.headerIcons}),{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:"quarter",value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","value","on-label-click"]),O(a,{mode:"quarter","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var oV=ye(ode,[["render",sde]]);const ade=se({name:"IconLink",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-link`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),lde=["stroke-width","stroke-linecap","stroke-linejoin"],cde=B("path",{d:"m14.1 25.414-4.95 4.95a6 6 0 0 0 8.486 8.485l8.485-8.485a6 6 0 0 0 0-8.485m7.779.707 4.95-4.95a6 6 0 1 0-8.486-8.485l-8.485 8.485a6 6 0 0 0 0 8.485"},null,-1),ude=[cde];function dde(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},ude,14,lde)}var h4=ye(ade,[["render",dde]]);const sV=Object.assign(h4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+h4.name,h4)}}),fde=se({name:"Link",components:{IconLink:sV,IconLoading:Lr},props:{href:String,status:{type:String,default:"normal"},hoverable:{type:Boolean,default:!0},icon:Boolean,loading:Boolean,disabled:Boolean},emits:{click:e=>!0},setup(e,{slots:t,emit:n}){const i=de("link"),o=ZF(e,t,"icon"),s=a=>{if(e.disabled||e.loading){a.preventDefault();return}n("click",a)};return{cls:P(()=>[i,`${i}-status-${e.status}`,{[`${i}-disabled`]:e.disabled,[`${i}-loading`]:e.loading,[`${i}-hoverless`]:!e.hoverable,[`${i}-with-icon`]:e.loading||o.value}]),prefixCls:i,showIcon:o,handleClick:s}}}),hde=["href"];function pde(e,t,n,i,o,s){const r=Pe("icon-loading"),a=Pe("icon-link");return R(),X("a",{href:e.disabled?void 0:e.href,class:G(e.cls),onClick:t[0]||(t[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[e.loading||e.showIcon?(R(),X("span",{key:0,class:G(`${e.prefixCls}-icon`)},[e.loading?(R(),We(r,{key:0})):He(e.$slots,"icon",{key:1},()=>[O(a)])],2)):Re("v-if",!0),He(e.$slots,"default")],10,hde)}var p4=ye(fde,[["render",pde]]);const aV=Object.assign(p4,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+p4.name,p4)}}),mde=se({name:"PanelFooter",components:{Link:aV,Button:Yr},props:{prefixCls:{type:String,required:!0},showTodayBtn:{type:Boolean},showConfirmBtn:{type:Boolean},confirmBtnDisabled:{type:Boolean}},emits:["today-btn-click","confirm-btn-click"],setup(e,{emit:t}){return{datePickerT:y1(),onTodayClick:()=>{t("today-btn-click")},onConfirmBtnClick:()=>{t("confirm-btn-click")}}}});function vde(e,t,n,i,o,s){const r=Pe("Link"),a=Pe("Button");return R(),X("div",{class:G(`${e.prefixCls}-footer`)},[e.$slots.extra?(R(),X("div",{key:0,class:G(`${e.prefixCls}-footer-extra-wrapper`)},[He(e.$slots,"extra")],2)):Re("v-if",!0),e.showTodayBtn?(R(),X("div",{key:1,class:G(`${e.prefixCls}-footer-now-wrapper`)},[O(r,{onClick:e.onTodayClick},{default:Ve(()=>[pt(tt(e.datePickerT("datePicker.today")),1)]),_:1},8,["onClick"])],2)):Re("v-if",!0),e.$slots.btn||e.showConfirmBtn?(R(),X("div",{key:2,class:G(`${e.prefixCls}-footer-btn-wrapper`)},[He(e.$slots,"btn"),e.showConfirmBtn?(R(),We(a,{key:0,class:G(`${e.prefixCls}-btn-confirm`),type:"primary",size:"mini",disabled:e.confirmBtnDisabled,onClick:e.onConfirmBtnClick},{default:Ve(()=>[pt(tt(e.datePickerT("datePicker.ok")),1)]),_:1},8,["class","disabled","onClick"])):Re("v-if",!0)],2)):Re("v-if",!0)],2)}var lV=ye(mde,[["render",vde]]);function cV(e){const{mode:t}=lt(e),n=P(()=>({date:1,week:1,year:10*12,quarter:12,month:12})[t.value]),i=P(()=>["year"].includes(t.value)?10*12:12);return{span:n,superSpan:i}}function eC(e){const{mode:t,value:n,defaultValue:i,selectedValue:o,format:s,onChange:r}=lt(e),a=P(()=>(t==null?void 0:t.value)||"date"),{span:u,superSpan:c}=cV(it({mode:a})),l=(p,h)=>{const b=a.value==="date"||a.value==="week"?"M":"y";return p.isSame(h,b)},g=P(()=>Wo(n==null?void 0:n.value,s.value)),C=P(()=>Wo(i==null?void 0:i.value,s.value)),S=he(C.value||Mr()),_=P(()=>g.value||S.value),A=p=>{p&&(S.value=p)},y=(p,h=!0)=>{var b;p&&(h&&!l(_.value,p)&&((b=r==null?void 0:r.value)==null||b.call(r,p)),A(p))};o!=null&&o.value&&A(o.value),gt(()=>o==null?void 0:o.value,p=>{y(p)});function d(){return(o==null?void 0:o.value)||C.value||Mr()}function v(p=!0){const h=d();p?y(h):A(h)}const m=P(()=>u.value!==c.value),f=P(()=>({onSuperPrev:()=>{y(Yi.subtract(_.value,c.value,"M"))},onPrev:m.value?()=>{y(Yi.subtract(_.value,u.value,"M"))}:void 0,onNext:m.value?()=>{y(Yi.add(_.value,u.value,"M"))}:void 0,onSuperNext:()=>{y(Yi.add(_.value,c.value,"M"))}}));return{headerValue:_,setHeaderValue:y,headerOperations:f,resetHeaderValue:v,getDefaultLocalValue:d}}const gde=se({name:"DatePikerPanel",components:{DatePanel:kP,PanelShortcuts:XF,PanelFooter:lV,WeekPanel:nV,MonthPanel:iV,YearPanel:rV,QuarterPanel:oV,RenderFunction:jl},props:{mode:{type:String},headerMode:{type:String},prefixCls:{type:String,required:!0},value:{type:Object},headerValue:{type:Object,required:!0},timePickerValue:{type:Object},showTime:{type:Boolean},showConfirmBtn:{type:Boolean},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},format:{type:String,required:!0},dayStartOfWeek:{type:Number,default:0},disabledDate:{type:Function},disabledTime:{type:Function},timePickerProps:{type:Object},extra:{type:Function},dateRender:{type:Function},hideTrigger:{type:Boolean},confirmBtnDisabled:{type:Boolean},showNowBtn:{type:Boolean},headerIcons:{type:Object,default:()=>({})},headerOperations:{type:Object},abbreviation:{type:Boolean}},emits:["cell-click","time-picker-select","shortcut-click","shortcut-mouse-enter","shortcut-mouse-leave","confirm","today-btn-click","header-label-click","header-select","month-header-click"],setup(e,{emit:t}){const{prefixCls:n,shortcuts:i,shortcutsPosition:o,format:s,value:r,disabledDate:a,hideTrigger:u,showNowBtn:c,dateRender:l,showConfirmBtn:g,headerValue:C,headerIcons:S,headerOperations:_,headerMode:A}=lt(e),y=P(()=>!!(i.value&&i.value.length)),d=P(()=>c.value&&g.value&&!y.value),v=P(()=>d.value||y.value),m=P(()=>v.value&&o.value==="left"),f=P(()=>v.value&&o.value==="right"),p=P(()=>v.value&&o.value==="bottom"),h=P(()=>[`${n.value}-container`,{[`${n.value}-container-panel-only`]:u.value,[`${n.value}-container-shortcuts-placement-left`]:m.value,[`${n.value}-container-shortcuts-placement-right`]:f.value}]),b=P(()=>(r==null?void 0:r.value)||Mr()),{headerValue:w,setHeaderValue:k,headerOperations:$}=eC(it({mode:A,format:s}));gt(C,te=>{k(te)});function E(te){const{value:Ie}=te;return Wo(Nt(Ie)?Ie():Ie,te.format||s.value)}function N(te){t("shortcut-click",E(te),te)}function j(te){t("shortcut-mouse-enter",E(te))}function z(te){t("shortcut-mouse-leave",E(te))}function V(te){t("cell-click",te)}function W(te){t("time-picker-select",te)}function H(){t("today-btn-click",Mr())}function U(){t("confirm")}function Q(te){t("header-label-click",te)}function q(te){t("header-select",te)}function ae(){t("month-header-click")}const ne=it({prefixCls:n,shortcuts:i,showNowBtn:d,onItemClick:N,onItemMouseEnter:j,onItemMouseLeave:z,onNowClick:H}),be=it({value:r,headerValue:C,headerIcons:S,headerOperations:_,disabledDate:a,dateRender:l,onSelect:V,onHeaderLabelClick:Q});return{classNames:h,showShortcutsInLeft:m,showShortcutsInRight:f,showShortcutsInBottom:p,shortcutsProps:ne,commonPanelProps:be,footerValue:b,onTodayBtnClick:H,onConfirmBtnClick:U,onTimePickerSelect:W,onHeaderPanelSelect:q,headerPanelHeaderValue:w,headerPanelHeaderOperations:$,onMonthHeaderLabelClick:ae}}});function yde(e,t,n,i,o,s){const r=Pe("PanelShortcuts"),a=Pe("YearPanel"),u=Pe("MonthPanel"),c=Pe("WeekPanel"),l=Pe("QuarterPanel"),g=Pe("DatePanel"),C=Pe("RenderFunction"),S=Pe("PanelFooter");return R(),X("div",{class:G(e.classNames)},[e.showShortcutsInLeft?(R(),We(r,Bn(Qe({key:0},e.shortcutsProps)),null,16)):Re("v-if",!0),B("div",{class:G(`${e.prefixCls}-panel-wrapper`)},[e.headerMode?(R(),X(ft,{key:0},[e.headerMode==="year"?(R(),We(a,{key:0,"header-value":e.headerPanelHeaderValue,"header-icons":e.headerIcons,"header-operations":e.headerPanelHeaderOperations,onSelect:e.onHeaderPanelSelect},null,8,["header-value","header-icons","header-operations","onSelect"])):e.headerMode==="month"?(R(),We(u,{key:1,"header-value":e.headerPanelHeaderValue,"header-icons":e.headerIcons,"header-operations":e.headerPanelHeaderOperations,abbreviation:e.abbreviation,onSelect:e.onHeaderPanelSelect,onHeaderLabelClick:e.onMonthHeaderLabelClick},null,8,["header-value","header-icons","header-operations","abbreviation","onSelect","onHeaderLabelClick"])):Re("v-if",!0)],2112)):(R(),X(ft,{key:1},[e.mode==="week"?(R(),We(c,Qe({key:0},e.commonPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])):e.mode==="month"?(R(),We(u,Qe({key:1,abbreviation:e.abbreviation},e.commonPanelProps),null,16,["abbreviation"])):e.mode==="year"?(R(),We(a,Bn(Qe({key:2},e.commonPanelProps)),null,16)):e.mode==="quarter"?(R(),We(l,Bn(Qe({key:3},e.commonPanelProps)),null,16)):(R(),We(g,Qe({key:4},e.commonPanelProps,{mode:"date","show-time":e.showTime,"time-picker-props":e.timePickerProps,"day-start-of-week":e.dayStartOfWeek,"footer-value":e.footerValue,"time-picker-value":e.timePickerValue,"disabled-time":e.disabledTime,onTimePickerSelect:e.onTimePickerSelect}),null,16,["show-time","time-picker-props","day-start-of-week","footer-value","time-picker-value","disabled-time","onTimePickerSelect"])),O(S,{"prefix-cls":e.prefixCls,"show-today-btn":e.showNowBtn&&!(e.showConfirmBtn||e.showShortcutsInBottom),"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onTodayBtnClick:e.onTodayBtnClick,onConfirmBtnClick:e.onConfirmBtnClick},ti({_:2},[e.extra?{name:"extra",fn:Ve(()=>[e.extra?(R(),We(C,{key:0,"render-func":e.extra},null,8,["render-func"])):Re("v-if",!0)])}:void 0,e.showShortcutsInBottom?{name:"btn",fn:Ve(()=>[O(r,Bn(ir(e.shortcutsProps)),null,16)])}:void 0]),1032,["prefix-cls","show-today-btn","show-confirm-btn","confirm-btn-disabled","onTodayBtnClick","onConfirmBtnClick"])],64))],2),e.showShortcutsInRight?(R(),We(r,Bn(Qe({key:1},e.shortcutsProps)),null,16)):Re("v-if",!0)],2)}var bde=ye(gde,[["render",yde]]);function kde(e="date",t=!1){switch(e){case"date":return t?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD";case"month":return"YYYY-MM";case"year":return"YYYY";case"week":return"gggg-wo";case"quarter":return"YYYY-[Q]Q";default:return"YYYY-MM-DD"}}function Cde(e="date",t=!1){switch(e){case"date":return t?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD";case"month":return"YYYY-MM";case"year":return"YYYY";case"week":return"YYYY-MM-DD";case"quarter":return"YYYY-MM";default:return"YYYY-MM-DD"}}function uV(e){const{format:t,mode:n,showTime:i,valueFormat:o}=lt(e),s=P(()=>!Nt(t==null?void 0:t.value)&&(t==null?void 0:t.value)||kde(n==null?void 0:n.value,i==null?void 0:i.value)),r=P(()=>(o==null?void 0:o.value)||Cde(n==null?void 0:n.value,i==null?void 0:i.value)),a=P(()=>["timestamp","Date"].includes(r.value)?s.value:r.value);return{format:s,valueFormat:r,parseValueFormat:a}}function dV(e){const{mode:t,showTime:n,disabledDate:i,disabledTime:o,isRange:s}=lt(e),r=P(()=>(t==null?void 0:t.value)==="date"&&(n==null?void 0:n.value)),a=P(()=>(l,g)=>{if(!(i!=null&&i.value))return!1;const C=_o(l);return s!=null&&s.value?i.value(C,g):i.value(C)}),u=(l,g)=>((g==null?void 0:g())||[]).includes(l),c=P(()=>(l,g)=>{if(!r.value||!(o!=null&&o.value))return!1;const C=_o(l),S=s!=null&&s.value?o.value(C,g):o.value(C);return u(l.hour(),S.disabledHours)||u(l.minute(),S.disabledMinutes)||u(l.second(),S.disabledSeconds)});return function(g,C){return g&&(a.value(g,C||"start")||c.value(g,C||"start"))}}const Hd=(e,t)=>{if(!e||!t)return;t=t.replace(/\[(\w+)\]/g,".$1");const n=t.split(".");if(n.length===0)return;let i=e;for(let o=0;o<n.length;o++){if(!rn(i)&&!Kt(i)||!n[o])return;if(o!==n.length-1)i=i[n[o]];else return i[n[o]]}},tC=(e,t,n,{addPath:i}={})=>{if(!e||!t)return;t=t.replace(/\[(\w+)\]/g,".$1");const o=t.split(".");if(o.length===0)return;let s=e;for(let r=0;r<o.length;r++){if(!rn(s)&&!Kt(s)||!o[r])return;r!==o.length-1?(i&&jt(s[o[r]])&&(s[o[r]]={}),s=s[o[r]]):s[o[r]]=n}};function fV(e){const{locale:t}=lt(e),{locale:n,t:i}=fi();zi.locale(n.value.toLowerCase());const o=(s,...r)=>{const a=s.startsWith("datePicker.")?s.split(".").slice(1).join("."):s;return Hd((t==null?void 0:t.value)||{},a)||i(s,...r)};return cn(YF,{datePickerT:o}),o}function cE(e){const{timePickerProps:t,selectedValue:n}=lt(e),i=P(()=>{var g;return(g=t==null?void 0:t.value)==null?void 0:g.format}),o=P(()=>{var g;return!!((g=t==null?void 0:t.value)!=null&&g.use12Hours)}),{format:s}=yP(it({format:i,use12Hours:o})),r=P(()=>{var g;return Wo((g=t==null?void 0:t.value)==null?void 0:g.defaultValue,s.value)}),a=()=>(n==null?void 0:n.value)||r.value||Mr(),u=he(a());function c(g){g&&(u.value=g)}function l(){u.value=a()}return gt(n,g=>{c(g)}),[u,c,l]}function hV(e,t){return t==="timestamp"?e.toDate().getTime():t==="Date"?e.toDate():e.format(t)}function Sde(e){const{format:t}=lt(e);return n=>hV(n,t.value)}function m4(e,t){return e.map(n=>n?hV(n,t):void 0)}var wde=Object.defineProperty,_de=Object.defineProperties,Ide=Object.getOwnPropertyDescriptors,hD=Object.getOwnPropertySymbols,xde=Object.prototype.hasOwnProperty,$de=Object.prototype.propertyIsEnumerable,pD=(e,t,n)=>t in e?wde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nC=(e,t)=>{for(var n in t||(t={}))xde.call(t,n)&&pD(e,n,t[n]);if(hD)for(var n of hD(t))$de.call(t,n)&&pD(e,n,t[n]);return e},mD=(e,t)=>_de(e,Ide(t));const Ade=se({name:"Picker",components:{DateInput:GF,Trigger:ur,PickerPanel:bde,IconCalendar:iw},inheritAttrs:!1,props:{locale:{type:Object},hideTrigger:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},size:{type:String},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{type:Object},unmountOnClose:{type:Boolean},placeholder:{type:String},disabled:{type:Boolean},disabledDate:{type:Function},disabledTime:{type:Function},pickerValue:{type:[Object,String,Number]},defaultPickerValue:{type:[Object,String,Number]},popupContainer:{type:[String,Object]},mode:{type:String,default:"date"},format:{type:[String,Function]},valueFormat:{type:String},previewShortcut:{type:Boolean,default:!0},showConfirmBtn:{type:Boolean},showTime:{type:Boolean},timePickerProps:{type:Object},showNowBtn:{type:Boolean,default:!0},dayStartOfWeek:{type:Number,default:0},modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},disabledInput:{type:Boolean,default:!1},abbreviation:{type:Boolean,default:!0}},emits:{change:(e,t,n)=>!0,"update:modelValue":e=>!0,select:(e,t,n)=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0,ok:(e,t,n)=>!0,clear:()=>!0,"select-shortcut":e=>!0,"picker-value-change":(e,t,n)=>!0,"update:pickerValue":e=>!0},setup(e,{emit:t,slots:n}){const{mode:i,modelValue:o,defaultValue:s,format:r,valueFormat:a,placeholder:u,popupVisible:c,defaultPopupVisible:l,disabled:g,showTime:C,timePickerProps:S,disabledDate:_,disabledTime:A,readonly:y,locale:d,pickerValue:v,defaultPickerValue:m,dayStartOfWeek:f,previewShortcut:p,showConfirmBtn:h}=lt(e),{locale:b}=fi();Xi(()=>{kF(b.value,f.value)});const{mergedDisabled:w,eventHandlers:k}=li({disabled:g}),$=fV(it({locale:d})),E=de("picker"),N=he(),j=P(()=>(u==null?void 0:u.value)||{date:$("datePicker.placeholder.date"),month:$("datePicker.placeholder.month"),year:$("datePicker.placeholder.year"),week:$("datePicker.placeholder.week"),quarter:$("datePicker.placeholder.quarter")}[i.value]||$("datePicker.placeholder.date")),{format:z,valueFormat:V,parseValueFormat:W}=uV(it({format:r,mode:i,showTime:C,valueFormat:a})),H=P(()=>r&&Nt(r.value)?At=>{var Gt;return(Gt=r.value)==null?void 0:Gt.call(r,_o(At))}:z.value),U=Sde(it({format:V})),Q=dV(it({mode:i,disabledDate:_,disabledTime:A,showTime:C})),q=P(()=>C.value||h.value),ae=P(()=>q.value&&(!Se.value||Q(Se.value))),ne=P(()=>i.value==="date"&&C.value),{value:be,setValue:te}=$ce(it({modelValue:o,defaultValue:s,format:W})),[Ie,$e]=Er(),[Me,ge]=Er(),Se=P(()=>{var At;return(At=Ie.value)!=null?At:be.value}),fe=P(()=>{var At,Gt;return(Gt=(At=Me.value)!=null?At:Ie.value)!=null?Gt:be.value}),[pe,je]=Er(),[Y,Z]=cr(l.value,it({value:c})),ee=At=>{Y.value!==At&&(Z(At),t("popup-visible-change",At),t("update:popupVisible",At))},{headerValue:ce,setHeaderValue:xe,headerOperations:re,resetHeaderValue:le}=eC(it({mode:i,value:v,defaultValue:m,selectedValue:fe,format:W,onChange:At=>{const Gt=U(At),Tt=Ia(At,W.value),st=_o(At);t("picker-value-change",Gt,st,Tt),t("update:pickerValue",Gt)}})),[ve,,De]=cE(it({timePickerProps:S,selectedValue:fe})),Ee=P(()=>!y.value&&!Nt(H.value)),we=he();gt(Y,At=>{$e(void 0),ge(void 0),we.value=void 0,At&&(le(),De()),At||je(void 0)});function me(At,Gt){var Tt,st;const wn=At?U(At):void 0,pn=Ia(At,W.value),bn=_o(At);uP(At,be.value)&&(t("update:modelValue",wn),t("change",wn,bn,pn),(st=(Tt=k.value)==null?void 0:Tt.onChange)==null||st.call(Tt)),Gt&&t("ok",wn,bn,pn)}function Ae(At,Gt,Tt){Q(At)||(me(At,Tt),te(At),$e(void 0),ge(void 0),je(void 0),we.value=void 0,Gr(Gt)&&ee(Gt))}function Fe(At,Gt){if($e(At),ge(void 0),je(void 0),we.value=void 0,Gt){const Tt=At?U(At):void 0,st=Ia(At,W.value),wn=_o(At);t("select",Tt,wn,st)}}function Ne(At){N.value&&N.value.focus&&N.value.focus(At)}function ze(At,Gt){return!ne.value&&!S.value?At:KF(Mr(),At,Gt)}function Ue(At){w.value||ee(At)}function et(At){At.stopPropagation(),Ae(void 0),t("clear")}function Xe(){var At,Gt;(Gt=(At=k.value)==null?void 0:At.onBlur)==null||Gt.call(At)}function yt(At){ee(!0);const Gt=At.target.value;if(je(Gt),!qk(Gt,z.value))return;const Tt=zi(Gt,z.value);Q(Tt)||(q.value?Fe(Tt):Ae(Tt,!0))}function Et(){Ae(fe.value,!1)}function nt(At){q.value?Fe(At,!0):Ae(At,!1)}function St(At){const Gt=ze(At,ve.value);nt(Gt)}function bt(At){const Gt=ze(fe.value||Mr(),At);nt(Gt)}function It(){Ae(fe.value,!1,!0)}function Mt(){e.disabledInput&&Ne()}let Rt;$i(()=>{clearTimeout(Rt)});function mn(At){clearTimeout(Rt),ge(At),je(void 0)}function xn(){clearTimeout(Rt),Rt=setTimeout(()=>{ge(void 0)},100)}function dt(At,Gt){t("select-shortcut",Gt),Ae(At,!1)}function ht(At){we.value=At}function $t(){we.value="year"}function Pt(At){let Gt=ce.value;if(Gt=Gt.set("year",At.year()),we.value==="month"&&(Gt=Gt.set("month",At.month())),xe(Gt),i.value==="quarter"||i.value==="month"){we.value=void 0;return}we.value=we.value==="year"?"month":void 0}const zt=P(()=>mD(nC({format:z.value},kr((S==null?void 0:S.value)||{},["defaultValue"])),{visible:Y.value})),kt=P(()=>mD(nC({},Ea(e,["mode","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","showTime","hideTrigger","abbreviation"])),{showNowBtn:e.showNowBtn&&i.value==="date",prefixCls:E,format:W.value,value:fe.value,visible:Y.value,showConfirmBtn:q.value,confirmBtnDisabled:ae.value,timePickerProps:zt.value,extra:n.extra,dateRender:n.cell,headerValue:ce.value,headerIcons:{prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]},headerOperations:re.value,timePickerValue:ve.value,headerMode:we.value,onCellClick:St,onTimePickerSelect:bt,onConfirm:It,onShortcutClick:dt,onShortcutMouseEnter:p.value?mn:void 0,onShortcutMouseLeave:p.value?xn:void 0,onTodayBtnClick:nt,onHeaderLabelClick:ht,onHeaderSelect:Pt,onMonthHeaderClick:$t}));return{prefixCls:E,refInput:N,panelProps:kt,panelValue:fe,inputValue:pe,selectedValue:be,inputFormat:H,computedPlaceholder:j,panelVisible:Y,inputEditable:Ee,needConfirm:q,mergedDisabled:w,onPanelVisibleChange:Ue,onInputClear:et,onInputChange:yt,onInputPressEnter:Et,onInputBlur:Xe,onPanelClick:Mt}}});function Ede(e,t,n,i,o,s){const r=Pe("IconCalendar"),a=Pe("DateInput"),u=Pe("PickerPanel"),c=Pe("Trigger");return e.hideTrigger?(R(),We(u,Bn(Qe({key:1},nC(nC({},e.$attrs),e.panelProps))),null,16)):(R(),We(c,Qe({key:0,trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,"popup-offset":4},e.triggerProps,{position:e.position,disabled:e.mergedDisabled||e.readonly,"prevent-focus":!0,"popup-visible":e.panelVisible,"unmount-on-close":e.unmountOnClose,"popup-container":e.popupContainer,onPopupVisibleChange:e.onPanelVisibleChange}),{content:Ve(()=>[O(u,Qe(e.panelProps,{onClick:e.onPanelClick}),null,16,["onClick"])]),default:Ve(()=>[He(e.$slots,"default",{},()=>[O(a,Qe(e.$attrs,{ref:"refInput",size:e.size,focused:e.panelVisible,visible:e.panelVisible,error:e.error,disabled:e.mergedDisabled,readonly:!e.inputEditable||e.disabledInput,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,"input-value":e.inputValue,value:e.needConfirm?e.panelValue:e.selectedValue,format:e.inputFormat,onClear:e.onInputClear,onChange:e.onInputChange,onPressEnter:e.onInputPressEnter,onBlur:e.onInputBlur}),ti({"suffix-icon":Ve(()=>[He(e.$slots,"suffix-icon",{},()=>[O(r)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:Ve(()=>[He(e.$slots,"prefix")])}:void 0]),1040,["size","focused","visible","error","disabled","readonly","allow-clear","placeholder","input-value","value","format","onClear","onChange","onPressEnter","onBlur"])])]),_:3},16,["position","disabled","popup-visible","unmount-on-close","popup-container","onPopupVisibleChange"]))}var b1=ye(Ade,[["render",Ede]]),v4=se({name:"DatePicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:[String,Function]},dayStartOfWeek:{type:Number,default:0},showTime:{type:Boolean},timePickerProps:{type:Object},disabled:{type:Boolean},disabledDate:{type:Function},disabledTime:{type:Function},showNowBtn:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){return()=>O(b1,Qe(e,t,{mode:"date"}),n)}}),hb=se({name:"WeekPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"gggg-wo"},valueFormat:{type:String,default:"YYYY-MM-DD"},dayStartOfWeek:{type:Number,default:0}},setup(e,{attrs:t,slots:n}){return()=>O(b1,Qe(e,t,{mode:"week"}),n)}}),pb=se({name:"MonthPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY-MM"}},setup(e,{attrs:t,slots:n}){return()=>O(b1,Qe(e,t,{mode:"month"}),n)}}),mb=se({name:"YearPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY"}},setup(e,{attrs:t,slots:n}){return()=>O(b1,Qe(e,t,{mode:"year"}),n)}}),vb=se({name:"QuarterPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY-[Q]Q"},valueFormat:{type:String,default:"YYYY-MM"}},setup(e,{attrs:t,slots:n}){return()=>O(b1,Qe(e,t,{mode:"quarter"}),n)}});function Mde(e){const{modelValue:t,defaultValue:n,format:i}=lt(e),o=P(()=>Wo(sE(t.value),i.value)),s=P(()=>Wo(sE(n.value),i.value)),[r,a]=Er(jt(o.value)?jt(s.value)?[]:s.value:o.value);return gt(o,()=>{jt(o.value)&&a([])}),{value:P(()=>o.value||r.value),setValue:a}}function Tde(e){const{startHeaderMode:t,endHeaderMode:n,mode:i,value:o,defaultValue:s,selectedValue:r,format:a,onChange:u}=lt(e),c=P(()=>["date","week"].includes(i.value)),l=P(()=>c.value?"M":"y"),g=(Ie,$e)=>Ie.isSame($e,l.value),{span:C,superSpan:S}=cV(it({mode:i})),_=P(()=>(t==null?void 0:t.value)||i.value),A=P(()=>(n==null?void 0:n.value)||i.value),y=P(()=>{var Ie;return(Ie=o.value)==null?void 0:Ie[0]}),d=P(()=>{var Ie;return(Ie=o.value)==null?void 0:Ie[1]}),v=P(()=>{var Ie;return(Ie=s.value)==null?void 0:Ie[0]}),m=P(()=>{var Ie;return(Ie=s.value)==null?void 0:Ie[1]}),f=Ie=>{u!=null&&u.value&&u.value(Ie)},{headerValue:p,setHeaderValue:h,headerOperations:b,getDefaultLocalValue:w}=eC(it({mode:_,value:y,defaultValue:v,selectedValue:void 0,format:a,onChange:Ie=>{f([Ie,k.value])}})),{headerValue:k,setHeaderValue:$,headerOperations:E,getDefaultLocalValue:N}=eC(it({mode:A,value:d,defaultValue:m,selectedValue:void 0,format:a,onChange:Ie=>{f([p.value,Ie])}})),j=Ie=>{const $e=g(p.value,Ie[0]),Me=g(k.value,Ie[1]);h(Ie[0],!1),$(Ie[1],!1),(!$e||!Me)&&u!=null&&u.value&&(u==null||u.value(Ie))};function z(Ie){let[$e,Me]=jv(Ie);const ge=Yi.add($e,C.value,"M");return Me.isBefore(ge,l.value)&&(Me=ge),[$e,Me]}function V(){var Ie,$e;let Me=(Ie=r.value)==null?void 0:Ie[0],ge=($e=r.value)==null?void 0:$e[1];return Me&&ge&&([Me,ge]=jv([Me,ge])),[Me,ge]}const[W,H]=V(),[U,Q]=z([W||p.value,H||k.value]);h(U,!1),$(Q,!1);const q=()=>{const Ie=w(),$e=N();fn(()=>{const[Me,ge]=V(),[Se,fe]=z([Me||Ie,ge||$e]);j([Se,fe])})},ae=P(()=>Yi.add(p.value,C.value,"M").isBefore(k.value,l.value)),ne=P(()=>Yi.add(p.value,S.value,"M").isBefore(k.value,l.value)),be=P(()=>{const Ie=["onSuperPrev"];return c.value&&Ie.push("onPrev"),ae.value&&c&&Ie.push("onNext"),ne.value&&Ie.push("onSuperNext"),Ea(b.value,Ie)}),te=P(()=>{const Ie=["onSuperNext"];return c.value&&Ie.push("onNext"),ae.value&&c.value&&Ie.push("onPrev"),ne.value&&Ie.push("onSuperPrev"),Ea(E.value,Ie)});return{startHeaderValue:p,endHeaderValue:k,startHeaderOperations:be,endHeaderOperations:te,setHeaderValue:j,resetHeaderValue:q}}const Pde=se({name:"DateInputRange",components:{IconHover:ai,IconClose:Cr,FeedbackIcon:m1},props:{size:{type:String},focused:{type:Boolean},focusedIndex:{type:Number},error:{type:Boolean},disabled:{type:[Boolean,Array],default:!1},readonly:{type:Boolean},allowClear:{type:Boolean},placeholder:{type:Array,default:()=>[]},inputValue:{type:Array},value:{type:Array,default:()=>[]},format:{type:[String,Function],required:!0}},emits:["focused-index-change","update:focusedIndex","change","clear","press-enter"],setup(e,{emit:t,slots:n}){const{error:i,focused:o,disabled:s,size:r,value:a,format:u,focusedIndex:c,inputValue:l}=lt(e),{mergedSize:g,mergedDisabled:C,mergedError:S,feedback:_}=li({size:r,error:i}),{mergedSize:A}=Sr(g),y=he(),d=he(),v=W=>C.value?C.value:Kt(s.value)?s.value[W]:s.value,m=P(()=>v(0)),f=P(()=>v(1)),p=de("picker"),h=P(()=>[p,`${p}-range`,`${p}-size-${A.value}`,{[`${p}-focused`]:o.value,[`${p}-disabled`]:m.value&&f.value,[`${p}-error`]:S.value,[`${p}-has-prefix`]:n.prefix}]);function b(W){return[`${p}-input`,{[`${p}-input-active`]:W===(c==null?void 0:c.value)}]}function w(W){var H,U;if(l!=null&&l.value)return(H=l==null?void 0:l.value)==null?void 0:H[W];const Q=(U=a==null?void 0:a.value)==null?void 0:U[W];if(Q&&ls(Q))return Nt(u.value)?u.value(Q):Q.format(u.value)}const k=P(()=>w(0)),$=P(()=>w(1));function E(W){t("focused-index-change",W),t("update:focusedIndex",W)}function N(W){W.stopPropagation(),t("change",W)}function j(){t("press-enter")}function z(W){W.preventDefault()}function V(W){t("clear",W)}return{prefixCls:p,classNames:h,refInput0:y,refInput1:d,disabled0:m,disabled1:f,mergedDisabled:C,getDisabled:v,getInputWrapClassName:b,displayValue0:k,displayValue1:$,changeFocusedInput:E,onChange:N,onPressEnter:j,onPressTab:z,onClear:V,feedback:_}},methods:{focus(e){const t=Le(e)?e:this.focusedIndex,n=t===0?this.refInput0:this.refInput1;!jt(t)&&!this.getDisabled(t)&&n&&n.focus&&n.focus()},blur(){const e=this.focusedIndex===0?this.refInput0:this.refInput1;e&&e.blur&&e.blur()}}}),Ode=["disabled","placeholder","value"],Lde=pt(" - "),Dde=["disabled","placeholder","value"];function Nde(e,t,n,i,o,s){const r=Pe("IconClose"),a=Pe("IconHover"),u=Pe("FeedbackIcon");return R(),X("div",{class:G(e.classNames)},[e.$slots.prefix?(R(),X("div",{key:0,class:G(`${e.prefixCls}-prefix`)},[He(e.$slots,"prefix")],2)):Re("v-if",!0),B("div",{class:G(e.getInputWrapClassName(0))},[B("input",Qe({ref:"refInput0",disabled:e.disabled0,placeholder:e.placeholder[0],value:e.displayValue0},e.readonly?{readonly:!0}:{},{onInput:t[0]||(t[0]=(...c)=>e.onChange&&e.onChange(...c)),onKeydown:[t[1]||(t[1]=_a((...c)=>e.onPressEnter&&e.onPressEnter(...c),["enter"])),t[2]||(t[2]=_a((...c)=>e.onPressTab&&e.onPressTab(...c),["tab"]))],onClick:t[3]||(t[3]=()=>e.changeFocusedInput(0))}),null,16,Ode)],2),B("span",{class:G(`${e.prefixCls}-separator`)},[He(e.$slots,"separator",{},()=>[Lde])],2),B("div",{class:G(e.getInputWrapClassName(1))},[B("input",Qe({ref:"refInput1",disabled:e.disabled1,placeholder:e.placeholder[1],value:e.displayValue1},e.readonly?{readonly:!0}:{},{onInput:t[4]||(t[4]=(...c)=>e.onChange&&e.onChange(...c)),onKeydown:[t[5]||(t[5]=_a((...c)=>e.onPressEnter&&e.onPressEnter(...c),["enter"])),t[6]||(t[6]=_a((...c)=>e.onPressTab&&e.onPressTab(...c),["tab"]))],onClick:t[7]||(t[7]=()=>e.changeFocusedInput(1))}),null,16,Dde)],2),B("div",{class:G(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.value.length===2?(R(),We(a,{key:0,prefix:e.prefixCls,class:G(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:Ve(()=>[O(r)]),_:1},8,["prefix","class","onClick"])):Re("v-if",!0),B("span",{class:G(`${e.prefixCls}-suffix-icon`)},[He(e.$slots,"suffix-icon")],2),e.feedback?(R(),We(u,{key:1,type:e.feedback},null,8,["type"])):Re("v-if",!0)],2)],2)}var pV=ye(Pde,[["render",Nde]]),jde=Object.defineProperty,zde=Object.defineProperties,Rde=Object.getOwnPropertyDescriptors,vD=Object.getOwnPropertySymbols,Bde=Object.prototype.hasOwnProperty,Fde=Object.prototype.propertyIsEnumerable,gD=(e,t,n)=>t in e?jde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g4=(e,t)=>{for(var n in t||(t={}))Bde.call(t,n)&&gD(e,n,t[n]);if(vD)for(var n of vD(t))Fde.call(t,n)&&gD(e,n,t[n]);return e},y4=(e,t)=>zde(e,Rde(t));const Vde=se({name:"DateRangePikerPanel",components:{PanelShortcuts:XF,PanelFooter:lV,RenderFunction:jl,DatePanel:kP,WeekPanel:nV,MonthPanel:iV,YearPanel:rV,QuarterPanel:oV},props:{mode:{type:String,default:"date"},value:{type:Array,default:()=>[]},footerValue:{type:Array},timePickerValue:{type:Array},showTime:{type:Boolean},showConfirmBtn:{type:Boolean},prefixCls:{type:String,required:!0},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},format:{type:String,required:!0},dayStartOfWeek:{type:Number,default:0},disabledDate:{type:Function},disabledTime:{type:Function},timePickerProps:{type:Object},extra:{type:Function},dateRender:{type:Function},hideTrigger:{type:Boolean},startHeaderProps:{type:Object,default:()=>({})},endHeaderProps:{type:Object,default:()=>({})},confirmBtnDisabled:{type:Boolean},disabled:{type:Array,default:()=>[!1,!1]},visible:{type:Boolean},startHeaderMode:{type:String},endHeaderMode:{type:String},abbreviation:{type:Boolean}},emits:["cell-click","cell-mouse-enter","time-picker-select","shortcut-click","shortcut-mouse-enter","shortcut-mouse-leave","confirm","start-header-label-click","end-header-label-click","start-header-select","end-header-select"],setup(e,{emit:t}){const{prefixCls:n,shortcuts:i,shortcutsPosition:o,format:s,hideTrigger:r,value:a,disabledDate:u,disabledTime:c,startHeaderProps:l,endHeaderProps:g,dateRender:C,visible:S,startHeaderMode:_,endHeaderMode:A}=lt(e),y=P(()=>Kt(i.value)&&i.value.length),d=P(()=>[`${n.value}-range-container`,{[`${n.value}-range-container-panel-only`]:r.value,[`${n.value}-range-container-shortcuts-placement-left`]:y.value&&o.value==="left",[`${n.value}-range-container-shortcuts-placement-right`]:y.value&&o.value==="right"}]),v=he("date");gt(S,(ne,be)=>{ne&&!be&&(v.value="date")});function m(ne){return Wo(sE(Nt(ne.value)?ne.value():ne.value),ne.format||s.value)}function f(ne){t("shortcut-click",m(ne),ne)}function p(ne){t("shortcut-mouse-enter",m(ne))}function h(ne){t("shortcut-mouse-leave",m(ne))}function b(ne){t("cell-click",ne)}function w(ne){t("cell-mouse-enter",ne)}function k(){t("confirm")}function $(ne){t("time-picker-select",ne,"start")}function E(ne){t("time-picker-select",ne,"end")}function N(ne){t("start-header-label-click",ne)}function j(ne){t("end-header-label-click",ne)}function z(ne){t("start-header-select",ne)}function V(ne){t("end-header-select",ne)}function W(ne){return Nt(u==null?void 0:u.value)?be=>{var te;return((te=u==null?void 0:u.value)==null?void 0:te.call(u,be,ne===0?"start":"end"))||!1}:void 0}function H(ne){return Nt(c==null?void 0:c.value)?be=>{var te;return((te=c==null?void 0:c.value)==null?void 0:te.call(c,be,ne===0?"start":"end"))||!1}:void 0}function U(ne){return Nt(C==null?void 0:C.value)?be=>{var te;const Ie=y4(g4({},be),{type:ne===0?"start":"end"});return(te=C==null?void 0:C.value)==null?void 0:te.call(C,Ie)}:void 0}const Q=it({prefixCls:n,shortcuts:i,onItemClick:f,onItemMouseEnter:p,onItemMouseLeave:h}),q=P(()=>y4(g4({},l.value),{rangeValues:a.value,disabledDate:W(0),dateRender:U(0),onSelect:_.value?z:b,onCellMouseEnter:w,onHeaderLabelClick:N})),ae=P(()=>y4(g4({},g.value),{rangeValues:a.value,disabledDate:W(1),dateRender:U(1),onSelect:A.value?V:b,onCellMouseEnter:w,onHeaderLabelClick:j}));return{pick:Ea,classNames:d,showShortcuts:y,shortcutsProps:Q,startPanelProps:q,endPanelProps:ae,getDisabledTimeFunc:H,onConfirmBtnClick:k,currentDateView:v,onStartTimePickerSelect:$,onEndTimePickerSelect:E,onStartHeaderPanelSelect:z,onEndHeaderPanelSelect:V}}});function Hde(e,t,n,i,o,s){const r=Pe("PanelShortcuts"),a=Pe("YearPanel"),u=Pe("MonthPanel"),c=Pe("WeekPanel"),l=Pe("QuarterPanel"),g=Pe("DatePanel"),C=Pe("RenderFunction"),S=Pe("PanelFooter");return R(),X("div",{class:G(e.classNames)},[e.showShortcuts&&e.shortcutsPosition==="left"?(R(),We(r,Bn(Qe({key:0},e.shortcutsProps)),null,16)):Re("v-if",!0),B("div",{class:G(`${e.prefixCls}-range-panel-wrapper`)},[Re(" panel "),B("div",{class:G(`${e.prefixCls}-range`)},[B("div",{class:G(`${e.prefixCls}-range-wrapper`)},[e.startHeaderMode||e.endHeaderMode?(R(),X(ft,{key:0},[e.startHeaderMode==="year"?(R(),We(a,Bn(Qe({key:0},e.startPanelProps)),null,16)):Re("v-if",!0),e.endHeaderMode==="year"?(R(),We(a,Bn(Qe({key:1},e.endPanelProps)),null,16)):e.startHeaderMode==="month"?(R(),We(u,Qe({key:2},e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):e.endHeaderMode==="month"?(R(),We(u,Qe({key:3},e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):Re("v-if",!0)],64)):(R(),X(ft,{key:1},[Re(" week "),e.mode==="week"?(R(),X(ft,{key:0},[O(c,Qe(e.startPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"]),O(c,Qe(e.endPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])],64)):e.mode==="month"?(R(),X(ft,{key:1},[Re(" month "),O(u,Qe(e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"]),O(u,Qe(e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])],64)):e.mode==="year"?(R(),X(ft,{key:2},[Re(" year "),O(a,Bn(ir(e.startPanelProps)),null,16),O(a,Bn(ir(e.endPanelProps)),null,16)],64)):e.mode==="quarter"?(R(),X(ft,{key:3},[Re(" quarter "),O(l,Bn(ir(e.startPanelProps)),null,16),O(l,Bn(ir(e.endPanelProps)),null,16)],64)):(R(),X(ft,{key:4},[Re(" date "),O(g,Qe({currentView:e.currentDateView,"onUpdate:currentView":t[0]||(t[0]=_=>e.currentDateView=_)},e.startPanelProps,{"is-range":"",value:e.value&&e.value[0],"footer-value":e.footerValue&&e.footerValue[0],"time-picker-value":e.timePickerValue&&e.timePickerValue[0],"day-start-of-week":e.dayStartOfWeek,"show-time":e.showTime,"time-picker-props":e.timePickerProps,"disabled-time":e.getDisabledTimeFunc(0),disabled:e.disabled[0],onTimePickerSelect:e.onStartTimePickerSelect}),null,16,["currentView","value","footer-value","time-picker-value","day-start-of-week","show-time","time-picker-props","disabled-time","disabled","onTimePickerSelect"]),O(g,Qe({currentView:e.currentDateView,"onUpdate:currentView":t[1]||(t[1]=_=>e.currentDateView=_)},e.endPanelProps,{"is-range":"",value:e.value&&e.value[1],"footer-value":e.footerValue&&e.footerValue[1],"time-picker-value":e.timePickerValue&&e.timePickerValue[1],"day-start-of-week":e.dayStartOfWeek,"show-time":e.showTime,"time-picker-props":e.timePickerProps,"disabled-time":e.getDisabledTimeFunc(1),disabled:e.disabled[1],onTimePickerSelect:e.onEndTimePickerSelect}),null,16,["currentView","value","footer-value","time-picker-value","day-start-of-week","show-time","time-picker-props","disabled-time","disabled","onTimePickerSelect"])],64))],2112))],2)],2),Re(" footer "),O(S,{"prefix-cls":e.prefixCls,"show-today-btn":!1,"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onConfirmBtnClick:e.onConfirmBtnClick},ti({_:2},[e.extra||e.$slots.extra?{name:"extra",fn:Ve(()=>[e.$slots.extra?He(e.$slots,"extra",{key:0}):(R(),We(C,{key:1,"render-func":e.extra},null,8,["render-func"]))])}:void 0,e.showShortcuts&&e.shortcutsPosition==="bottom"?{name:"btn",fn:Ve(()=>[O(r,Bn(ir(e.shortcutsProps)),null,16)])}:void 0]),1032,["prefix-cls","show-confirm-btn","confirm-btn-disabled","onConfirmBtnClick"])],2),e.showShortcuts&&e.shortcutsPosition==="right"?(R(),We(r,Bn(Qe({key:1},e.shortcutsProps)),null,16)):Re("v-if",!0)],2)}var Wde=ye(Vde,[["render",Hde]]),Ude=Object.defineProperty,Zde=Object.defineProperties,Gde=Object.getOwnPropertyDescriptors,yD=Object.getOwnPropertySymbols,Yde=Object.prototype.hasOwnProperty,Xde=Object.prototype.propertyIsEnumerable,bD=(e,t,n)=>t in e?Ude(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kD=(e,t)=>{for(var n in t||(t={}))Yde.call(t,n)&&bD(e,n,t[n]);if(yD)for(var n of yD(t))Xde.call(t,n)&&bD(e,n,t[n]);return e},CD=(e,t)=>Zde(e,Gde(t));function Kde(e){const{timePickerProps:t,selectedValue:n}=lt(e),i=P(()=>{var d;return(d=n==null?void 0:n.value)==null?void 0:d[0]}),o=P(()=>{var d;return(d=n==null?void 0:n.value)==null?void 0:d[1]}),s=P(()=>{var d;return(d=t==null?void 0:t.value)==null?void 0:d.defaultValue}),r=P(()=>Kt(s.value)?CD(kD({},t==null?void 0:t.value),{defaultValue:s.value[0]}):t==null?void 0:t.value),a=P(()=>Kt(s.value)?CD(kD({},t==null?void 0:t.value),{defaultValue:s.value[1]}):t==null?void 0:t.value),[u,c,l]=cE(it({timePickerProps:r,selectedValue:i})),[g,C,S]=cE(it({timePickerProps:a,selectedValue:o})),_=P(()=>[u.value,g.value]);function A(d){d&&(c(d[0]),C(d[1]))}function y(){l(),S()}return[_,A,y]}var Jde=Object.defineProperty,qde=Object.defineProperties,Qde=Object.getOwnPropertyDescriptors,SD=Object.getOwnPropertySymbols,efe=Object.prototype.hasOwnProperty,tfe=Object.prototype.propertyIsEnumerable,wD=(e,t,n)=>t in e?Jde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iC=(e,t)=>{for(var n in t||(t={}))efe.call(t,n)&&wD(e,n,t[n]);if(SD)for(var n of SD(t))tfe.call(t,n)&&wD(e,n,t[n]);return e},_D=(e,t)=>qde(e,Qde(t));const nfe=se({name:"RangePicker",components:{RangePickerPanel:Wde,DateRangeInput:pV,Trigger:ur,IconCalendar:iw},inheritAttrs:!1,props:{mode:{type:String,default:"date"},modelValue:{type:Array},defaultValue:{type:Array},pickerValue:{type:Array},defaultPickerValue:{type:Array},disabled:{type:[Boolean,Array],default:!1},dayStartOfWeek:{type:Number,default:0},format:{type:String},valueFormat:{type:String},showTime:{type:Boolean},timePickerProps:{type:Object},placeholder:{type:Array},disabledDate:{type:Function},disabledTime:{type:Function},separator:{type:String},exchangeTime:{type:Boolean,default:!0},popupContainer:{type:[String,Object]},locale:{type:Object},hideTrigger:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},size:{type:String},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean},triggerProps:{type:Object},unmountOnClose:{type:Boolean},previewShortcut:{type:Boolean,default:!0},showConfirmBtn:{type:Boolean},disabledInput:{type:Boolean,default:!1},abbreviation:{type:Boolean,default:!0}},emits:{change:(e,t,n)=>!0,"update:modelValue":e=>!0,select:(e,t,n)=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0,ok:(e,t,n)=>!0,clear:()=>!0,"select-shortcut":e=>!0,"picker-value-change":(e,t,n)=>!0,"update:pickerValue":e=>!0},setup(e,{emit:t,slots:n}){const{mode:i,showTime:o,format:s,modelValue:r,defaultValue:a,popupVisible:u,defaultPopupVisible:c,placeholder:l,timePickerProps:g,disabled:C,disabledDate:S,disabledTime:_,locale:A,pickerValue:y,defaultPickerValue:d,valueFormat:v,size:m,error:f,dayStartOfWeek:p,exchangeTime:h,previewShortcut:b,showConfirmBtn:w}=lt(e),{locale:k}=fi(),$=Dt(Or,void 0);Xi(()=>{kF(k.value,p.value)});const E=P(()=>{var xt;return!(!h.value||!((xt=$==null?void 0:$.exchangeTime)==null||xt))}),{mergedSize:N,mergedDisabled:j,mergedError:z,eventHandlers:V}=li({size:m,error:f}),W=fV(it({locale:A})),H=de("picker"),U=P(()=>(l==null?void 0:l.value)||{date:W("datePicker.rangePlaceholder.date"),month:W("datePicker.rangePlaceholder.month"),year:W("datePicker.rangePlaceholder.year"),week:W("datePicker.rangePlaceholder.week"),quarter:W("datePicker.rangePlaceholder.quarter")}[i.value]||W("datePicker.rangePlaceholder.date")),{format:Q,valueFormat:q,parseValueFormat:ae}=uV(it({mode:i,format:s,showTime:o,valueFormat:v})),ne=P(()=>{const xt=C.value===!0||j.value||Kt(C.value)&&C.value[0]===!0,Ht=C.value===!0||j.value||Kt(C.value)&&C.value[1]===!0;return[xt,Ht]}),be=P(()=>ne.value[0]&&ne.value[1]);function te(xt=0){return ne.value[xt]?xt^1:xt}const Ie=he(),$e=he(te()),Me=P(()=>{const xt=$e.value,Ht=xt^1;return ne.value[Ht]?xt:Ht}),ge=P(()=>ne.value[$e.value^1]),{value:Se,setValue:fe}=Mde(it({modelValue:r,defaultValue:a,format:ae})),[pe,je]=Er(),[Y,Z]=Er(),ee=P(()=>{var xt;return(xt=pe.value)!=null?xt:Se.value}),ce=P(()=>{var xt,Ht;return(Ht=(xt=Y.value)!=null?xt:pe.value)!=null?Ht:Se.value}),[xe,re]=Er(),le=he(),ve=he(),[De,Ee]=cr(c.value,it({value:u})),we=xt=>{De.value!==xt&&(Ee(xt),t("popup-visible-change",xt),t("update:popupVisible",xt))},{startHeaderValue:me,endHeaderValue:Ae,startHeaderOperations:Fe,endHeaderOperations:Ne,resetHeaderValue:ze,setHeaderValue:Ue}=Tde(it({mode:i,startHeaderMode:le,endHeaderMode:ve,value:y,defaultValue:d,selectedValue:ce,format:ae,onChange:xt=>{const Ht=m4(xt,q.value),Be=Ia(xt,ae.value),rt=_o(xt);t("picker-value-change",Ht,rt,Be),t("update:pickerValue",Ht)}}));function et(xt){le.value=xt}function Xe(xt){ve.value=xt}function yt(xt){let Ht=me.value;Ht=Ht.set("year",xt.year()),le.value==="month"&&(Ht=Ht.set("month",xt.month())),Ue([Ht,Ae.value]),le.value=void 0}function Et(xt){let Ht=Ae.value;Ht=Ht.set("year",xt.year()),ve.value==="month"&&(Ht=Ht.set("month",xt.month())),Ue([me.value,Ht]),ve.value=void 0}const nt=he([ce.value[0]||Mr(),ce.value[1]||Mr()]);gt(ce,()=>{const[xt,Ht]=ce.value;nt.value[0]=xt||nt.value[0],nt.value[1]=Ht||nt.value[1]});const[St,bt,It]=Kde(it({timePickerProps:g,selectedValue:ce})),Mt=P(()=>i.value==="date"&&o.value),Rt=P(()=>Mt.value||g.value),mn=dV(it({mode:i,isRange:!0,showTime:o,disabledDate:S,disabledTime:_})),xn=P(()=>Mt.value||w.value),dt=P(()=>xn.value&&(!ql(ee.value)||mn(ee.value[0],"start")||mn(ee.value[1],"end")));gt(De,xt=>{le.value=void 0,ve.value=void 0,je(void 0),Z(void 0),xt&&(ze(),It(),$e.value=te($e.value),fn(()=>Gt($e.value))),xt||re(void 0)}),gt($e,()=>{e.disabledInput&&(Gt($e.value),re(void 0))});function ht(xt,Ht){var Be,rt;const at=xt?m4(xt,q.value):void 0,mt=Ia(xt,ae.value),wt=_o(xt);uP(xt,Se.value)&&(t("update:modelValue",at),t("change",at,wt,mt),(rt=(Be=V.value)==null?void 0:Be.onChange)==null||rt.call(Be)),Ht&&t("ok",at,wt,mt)}function $t(xt){let Ht=jv(xt);return Rt.value&&!E.value&&(Ht=[Tt(Ht[0],xt[0]),Tt(Ht[1],xt[1])]),Ht}function Pt(xt,Ht,Be){if(mn(xt==null?void 0:xt[0],"start")||mn(xt==null?void 0:xt[1],"end"))return;let rt=xt?[...xt]:void 0;ql(rt)&&(rt=$t(rt)),ht(rt,Be),fe(rt||[]),je(void 0),Z(void 0),re(void 0),le.value=void 0,ve.value=void 0,Gr(Ht)&&we(Ht)}function zt(xt){const Ht=m4(xt,q.value),Be=Ia(xt,ae.value),rt=_o(xt);t("select",Ht,rt,Be)}function kt(xt,Ht){const{emitSelect:Be=!1,updateHeader:rt=!1}=Ht||{};let at=[...xt];ql(at)&&(at=$t(at)),je(at),Z(void 0),re(void 0),le.value=void 0,ve.value=void 0,Be&&zt(at),rt&&ze()}function At(xt,Ht){const{updateHeader:Be=!1}=Ht||{};Z(xt),re(void 0),Be&&ze()}function Gt(xt){Ie.value&&Ie.value.focus&&Ie.value.focus(xt)}function Tt(xt,Ht){return Rt.value?KF(Mr(),xt,Ht):xt}function st(xt){we(xt)}function wn(xt){if(pe.value&&ce.value[Me.value]&&(!xn.value||!ql(pe.value))){const Ht=[...ce.value],Be=Tt(xt,St.value[$e.value]);Ht[$e.value]=Be,At(Ht)}}function pn(xt=!1){return ge.value?[...Se.value]:pe.value?xt||!ql(pe.value)?[...pe.value]:[]:xt?[...Se.value]:[]}function bn(xt){const Ht=pn(),Be=Tt(xt,St.value[$e.value]);Ht[$e.value]=Be,zt(Ht),!xn.value&&ql(Ht)?Pt(Ht,!1):(kt(Ht),ql(Ht)?$e.value=0:$e.value=Me.value)}function Ji(xt,Ht){const Be=Ht==="start"?0:1,rt=Tt(St.value[Be],xt),at=[...St.value];at[Be]=rt,bt(at);const mt=pn(!0);mt[Be]&&(mt[Be]=rt,kt(mt,{emitSelect:!0}))}let yi;$i(()=>{clearTimeout(yi)});function Zn(xt){clearTimeout(yi),At(xt,{updateHeader:!0})}function Vi(){clearTimeout(yi),yi=setTimeout(()=>{Z(void 0),re(void 0),ze()},100)}function kn(xt,Ht){t("select-shortcut",Ht),Pt(xt,!1)}function Go(){Pt(ce.value,!1,!0)}function zl(xt){xt.stopPropagation(),Pt(void 0),t("clear")}function Rl(xt){we(!0);const Ht=xt.target.value;if(!Ht){re(void 0);return}const Be=Ia(ce.value,Q.value),rt=Kt(xe.value)?[...xe.value]:Be||[];if(rt[$e.value]=Ht,re(rt),!qk(Ht,Q.value))return;const at=zi(Ht,Q.value);if(mn(at,$e.value===0?"start":"end"))return;const mt=Kt(ce.value)?[...ce.value]:[];mt[$e.value]=at,kt(mt,{updateHeader:!0})}function Oa(){Dce(ce.value)?Pt(ce.value,!1):$e.value=Me.value}const bi=P(()=>_D(iC({format:Q.value},kr((g==null?void 0:g.value)||{},["defaultValue"])),{visible:De.value})),Dr=P(()=>({prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]})),hs=it({headerValue:me,headerOperations:Fe,headerIcons:Dr}),uo=it({headerValue:Ae,headerOperations:Ne,headerIcons:Dr}),hi=P(()=>_D(iC({},Ea(e,["mode","showTime","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","hideTrigger","abbreviation"])),{prefixCls:H,format:ae.value,value:ce.value,showConfirmBtn:xn.value,confirmBtnDisabled:dt.value,timePickerValue:St.value,timePickerProps:bi.value,extra:n.extra,dateRender:n.cell,startHeaderProps:hs,endHeaderProps:uo,footerValue:nt.value,disabled:ne.value,visible:De.value,onCellClick:bn,onCellMouseEnter:wn,onShortcutClick:kn,onShortcutMouseEnter:b.value?Zn:void 0,onShortcutMouseLeave:b.value?Vi:void 0,onConfirm:Go,onTimePickerSelect:Ji,startHeaderMode:le.value,endHeaderMode:ve.value,onStartHeaderLabelClick:et,onEndHeaderLabelClick:Xe,onStartHeaderSelect:yt,onEndHeaderSelect:Et}));return{prefixCls:H,refInput:Ie,computedFormat:Q,computedPlaceholder:U,panelVisible:De,panelValue:ce,inputValue:xe,focusedIndex:$e,triggerDisabled:be,mergedSize:N,mergedError:z,onPanelVisibleChange:st,onInputClear:zl,onInputChange:Rl,onInputPressEnter:Oa,rangePanelProps:hi}}});function ife(e,t,n,i,o,s){const r=Pe("IconCalendar"),a=Pe("DateRangeInput"),u=Pe("RangePickerPanel"),c=Pe("Trigger");return e.hideTrigger?(R(),We(u,Bn(Qe({key:1},iC(iC({},e.$attrs),e.rangePanelProps))),null,16)):(R(),We(c,Qe({key:0,trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,"popup-offset":4},e.triggerProps,{"unmount-on-close":e.unmountOnClose,position:e.position,disabled:e.triggerDisabled||e.readonly,"popup-visible":e.panelVisible,"popup-container":e.popupContainer,onPopupVisibleChange:e.onPanelVisibleChange}),{content:Ve(()=>[O(u,Bn(ir(e.rangePanelProps)),null,16)]),default:Ve(()=>[He(e.$slots,"default",{},()=>[O(a,Qe({ref:"refInput"},e.$attrs,{focusedIndex:e.focusedIndex,"onUpdate:focusedIndex":t[0]||(t[0]=l=>e.focusedIndex=l),size:e.size,focused:e.panelVisible,visible:e.panelVisible,error:e.error,disabled:e.disabled,readonly:e.readonly||e.disabledInput,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,"input-value":e.inputValue,value:e.panelValue,format:e.computedFormat,onClear:e.onInputClear,onChange:e.onInputChange,onPressEnter:e.onInputPressEnter}),ti({"suffix-icon":Ve(()=>[He(e.$slots,"suffix-icon",{},()=>[O(r)])]),separator:Ve(()=>[He(e.$slots,"separator",{},()=>[pt(tt(e.separator||"-"),1)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:Ve(()=>[He(e.$slots,"prefix")])}:void 0]),1040,["focusedIndex","size","focused","visible","error","disabled","readonly","allow-clear","placeholder","input-value","value","format","onClear","onChange","onPressEnter"])])]),_:3},16,["unmount-on-close","position","disabled","popup-visible","popup-container","onPopupVisibleChange"]))}var gb=ye(nfe,[["render",ife]]);const rfe=Object.assign(v4,{WeekPicker:hb,MonthPicker:pb,YearPicker:mb,QuarterPicker:vb,RangePicker:gb,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+v4.name,v4),e.component(n+mb.name,mb),e.component(n+vb.name,vb),e.component(n+pb.name,pb),e.component(n+hb.name,hb),e.component(n+gb.name,gb)}}),mV=Symbol("ArcoDescriptions");var ofe=Object.defineProperty,sfe=Object.defineProperties,afe=Object.getOwnPropertyDescriptors,ID=Object.getOwnPropertySymbols,lfe=Object.prototype.hasOwnProperty,cfe=Object.prototype.propertyIsEnumerable,xD=(e,t,n)=>t in e?ofe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ufe=(e,t)=>{for(var n in t||(t={}))lfe.call(t,n)&&xD(e,n,t[n]);if(ID)for(var n of ID(t))cfe.call(t,n)&&xD(e,n,t[n]);return e},dfe=(e,t)=>sfe(e,afe(t));const rC=["xxl","xl","lg","md","sm","xs"],xy={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"};let yu=[],ffe=-1,$y={};const oC={matchHandlers:{},dispatch(e,t){return $y=e,yu.length<1?!1:(yu.forEach(n=>{n.func($y,t)}),!0)},subscribe(e){yu.length===0&&this.register();const t=(++ffe).toString();return yu.push({token:t,func:e}),e($y,null),t},unsubscribe(e){yu=yu.filter(t=>t.token!==e),yu.length===0&&this.unregister()},unregister(){Object.keys(xy).forEach(e=>{const t=xy[e];if(!t)return;const n=this.matchHandlers[t];n&&n.mql&&n.listener&&(n.mql.removeEventListener?n.mql.removeEventListener("change",n.listener):n.mql.removeListener(n.listener))})},register(){Object.keys(xy).forEach(e=>{const t=xy[e];if(!t)return;const n=({matches:o})=>{this.dispatch(dfe(ufe({},$y),{[e]:o}),e)},i=window.matchMedia(t);i.addEventListener?i.addEventListener("change",n):i.addListener(n),this.matchHandlers[t]={mql:i,listener:n},n(i)})}};function $D(e){return rn(e)}function Ml(e,t,n=!1){const i=he({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),o=P(()=>{let r=t;if($D(e.value))for(let a=0;a<rC.length;a++){const u=rC[a];if((i.value[u]||u==="xs"&&n)&&e.value[u]!==void 0){r=e.value[u];break}}else r=e.value;return r});let s="";return Yt(()=>{s=oC.subscribe(r=>{$D(e.value)&&(i.value=r)})}),$i(()=>{s&&oC.unsubscribe(s)}),o}var hfe=Object.defineProperty,AD=Object.getOwnPropertySymbols,pfe=Object.prototype.hasOwnProperty,mfe=Object.prototype.propertyIsEnumerable,ED=(e,t,n)=>t in e?hfe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,MD=(e,t)=>{for(var n in t||(t={}))pfe.call(t,n)&&ED(e,n,t[n]);if(AD)for(var n of AD(t))mfe.call(t,n)&&ED(e,n,t[n]);return e};const TD=e=>e?e.reduce((t,n)=>t+n.span,0):0;var b4=se({name:"Descriptions",props:{data:{type:Array,default:()=>[]},column:{type:[Number,Object],default:3},title:String,layout:{type:String,default:"horizontal"},align:{type:[String,Object],default:"left"},size:{type:String},bordered:{type:Boolean,default:!1},labelStyle:{type:Object},valueStyle:{type:Object},tableLayout:{type:String,default:"auto"}},setup(e,{slots:t}){const{column:n,size:i}=lt(e),o=de("descriptions"),{mergedSize:s}=Sr(i),r=Ml(n,3,!0),a=P(()=>{var k;return(k=rn(e.align)?e.align.label:e.align)!=null?k:"left"}),u=P(()=>{var k;return(k=rn(e.align)?e.align.value:e.align)!=null?k:"left"}),c=P(()=>MD({textAlign:a.value},e.labelStyle)),l=P(()=>MD({textAlign:u.value},e.valueStyle)),g=it(new Map),C=P(()=>Array.from(g.values()).sort((k,$)=>k.index-$.index).map(k=>k.span));cn(mV,it({addItem:(k,$)=>{g.set(k,$)},removeItem:k=>{g.delete(k)}}));const A=k=>{const $=[];if(k.forEach((E,N)=>{var j;const z=Math.min((j=On(E)?C.value[N]:E.span)!=null?j:1,r.value),V=$[$.length-1],W=TD(V);W===0||W>=r.value?$.push([{data:E,span:z}]):V.push({data:E,span:z+W>r.value?r.value-W:z})}),$.length){const E=$[$.length-1],N=TD(E);N<r.value&&(E[E.length-1].span+=r.value-N)}return $},y=P(()=>{var k;return A((k=e.data)!=null?k:[])}),d=(k,$)=>{var E,N,j,z,V;return On(k)?BS(k,k.children)&&((N=(E=k.children).label)==null?void 0:N.call(E))||((j=k.props)==null?void 0:j.label):(V=(z=t.label)==null?void 0:z.call(t,{label:k.label,index:$,data:k}))!=null?V:Nt(k.label)?k.label():k.label},v=(k,$)=>{var E,N;return On(k)?k:(N=(E=t.value)==null?void 0:E.call(t,{value:k.value,index:$,data:k}))!=null?N:Nt(k.value)?k.value():k.value},m=k=>O(ft,null,[O("tr",{class:`${o}-row`},[k.map(($,E)=>O("td",{key:`label-${E}`,class:[`${o}-item-label`,`${o}-item-label-block`],style:c.value,colspan:$.span},[d($.data,E)]))]),O("tr",{class:`${o}-row`},[k.map(($,E)=>O("td",{key:`value-${E}`,class:[`${o}-item-value`,`${o}-item-value-block`],style:l.value,colspan:$.span},[v($.data,E)]))])]),f=(k,$)=>O("tr",{class:`${o}-row`,key:`tr-${$}`},[k.map(E=>O(ft,null,[O("td",{class:[`${o}-item-label`,`${o}-item-label-block`],style:c.value},[d(E.data,$)]),O("td",{class:[`${o}-item-value`,`${o}-item-value-block`],style:l.value,colspan:E.span*2-1},[v(E.data,$)])]))]),p=(k,$)=>O("tr",{class:`${o}-row`,key:`inline-${$}`},[k.map((E,N)=>O("td",{key:`item-${N}`,class:`${o}-item`,colspan:E.span},[O("div",{class:[`${o}-item-label`,`${o}-item-label-inline`],style:c.value},[d(E.data,N)]),O("div",{class:[`${o}-item-value`,`${o}-item-value-inline`],style:l.value},[v(E.data,N)])]))]),h=(k,$)=>["inline-horizontal","inline-vertical"].includes(e.layout)?p(k,$):e.layout==="vertical"?m(k):f(k,$),b=P(()=>[o,`${o}-layout-${e.layout}`,`${o}-size-${s.value}`,{[`${o}-border`]:e.bordered},{[`${o}-table-layout-fixed`]:e.tableLayout==="fixed"}]),w=()=>{var k,$;const E=($=(k=t.title)==null?void 0:k.call(t))!=null?$:e.title;return E?O("div",{class:`${o}-title`},[E]):null};return()=>{const k=t.default?A($a(t.default())):y.value;return O("div",{class:b.value},[w(),O("div",{class:`${o}-body`},[O("table",{class:`${o}-table`},[O("tbody",null,[k.map(($,E)=>h($,E))])])])])}}});const vfe=se({name:"DescriptionsItem",props:{span:{type:Number,default:1},label:String},setup(e){var t;const{span:n}=lt(e),i=de("descriptions"),o=Dt(mV,{}),s=Vn(),r=he(),{computedIndex:a}=GS({itemRef:r,selector:`.${i}-item-value`,parentClassName:`${i}-table`}),u=it({index:a.value,span:n.value});s!=null&&s.uid&&((t=o.addItem)==null||t.call(o,s.uid,u));const c=()=>{var l;const g=((l=s==null?void 0:s.proxy)==null?void 0:l.$el).parentElement;g&&g!==r.value&&(r.value=g)};return Yt(()=>c()),Bi(()=>c()),ei(()=>{var l;s!=null&&s.uid&&((l=o.removeItem)==null||l.call(o,s.uid))}),{prefixCls:i}}});function gfe(e,t,n,i,o,s){return He(e.$slots,"default")}var yb=ye(vfe,[["render",gfe]]);const yfe=Object.assign(b4,{DescriptionsItem:yb,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+b4.name,b4),e.component(n+yb.name,yb)}});var k4=se({name:"Divider",props:{direction:{type:String,default:"horizontal"},orientation:{type:String,default:"center"},type:{type:String},size:{type:Number},margin:{type:[Number,String]}},setup(e,{slots:t}){const n=de("divider"),i=P(()=>e.direction==="horizontal"),o=P(()=>{const s={};if(e.size&&(s[i.value?"border-bottom-width":"border-left-width"]=Le(e.size)?`${e.size}px`:e.size),e.type&&(s[i.value?"border-bottom-style":"border-left-style"]=e.type),!jt(e.margin)){const r=Le(e.margin)?`${e.margin}px`:e.margin;s.margin=i.value?`${r} 0`:`0 ${r}`}return s});return()=>{var s;const r=(s=t.default)==null?void 0:s.call(t),a=[n,`${n}-${e.direction}`,{[`${n}-with-text`]:r}];return O("div",{role:"separator",class:a,style:o.value},[r&&e.direction==="horizontal"&&O("span",{class:[`${n}-text`,`${n}-text-${e.orientation}`]},[r])])}}});const bfe=Object.assign(k4,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+k4.name,k4)}}),vV=e=>{const t=he(!1),n={overflow:"",width:"",boxSizing:""};return{setOverflowHidden:()=>{if(e.value){const s=e.value;if(!t.value&&s.style.overflow!=="hidden"){const r=Fte(s);(r>0||Bte(s))&&(n.overflow=s.style.overflow,n.width=s.style.width,n.boxSizing=s.style.boxSizing,s.style.overflow="hidden",s.style.width=`${s.offsetWidth-r}px`,s.style.boxSizing="border-box",t.value=!0)}}},resetOverflow:()=>{if(e.value&&t.value){const s=e.value;s.style.overflow=n.overflow,s.style.width=n.width,s.style.boxSizing=n.boxSizing,t.value=!1}}}};var kfe=Object.defineProperty,PD=Object.getOwnPropertySymbols,Cfe=Object.prototype.hasOwnProperty,Sfe=Object.prototype.propertyIsEnumerable,OD=(e,t,n)=>t in e?kfe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wfe=(e,t)=>{for(var n in t||(t={}))Cfe.call(t,n)&&OD(e,n,t[n]);if(PD)for(var n of PD(t))Sfe.call(t,n)&&OD(e,n,t[n]);return e};const _fe=["top","right","bottom","left"],Ife=se({name:"Drawer",components:{ClientOnly:iP,ArcoButton:Yr,IconHover:ai,IconClose:Cr},inheritAttrs:!1,props:{visible:{type:Boolean,default:!1},defaultVisible:{type:Boolean,default:!1},placement:{type:String,default:"right",validator:e=>_fe.includes(e)},title:String,mask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},okText:String,cancelText:String,okLoading:{type:Boolean,default:!1},okButtonProps:{type:Object},cancelButtonProps:{type:Object},unmountOnClose:Boolean,width:{type:[Number,String],default:250},height:{type:[Number,String],default:250},popupContainer:{type:[String,Object],default:"body"},drawerStyle:{type:Object},onBeforeOk:{type:Function},onBeforeCancel:{type:Function},escToClose:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1}},emits:{"update:visible":e=>!0,ok:e=>!0,cancel:e=>!0,open:()=>!0,close:()=>!0,beforeOpen:()=>!0,beforeClose:()=>!0},setup(e,{emit:t}){const{popupContainer:n}=lt(e),i=de("drawer"),{t:o}=fi(),s=he(e.defaultVisible),r=P(()=>{var j;return(j=e.visible)!=null?j:s.value}),a=he(!1),u=P(()=>e.okLoading||a.value),{teleportContainer:c,containerRef:l}=rP({popupContainer:n,visible:r}),g=he(r.value);let C=!1;const S=j=>{e.escToClose&&j.key===mi.ESC&&d()&&h(j)},_=()=>{e.escToClose&&!C&&(C=!0,Nn(document.documentElement,"keydown",S))},A=()=>{C&&(C=!1,Qn(document.documentElement,"keydown",S))},{zIndex:y,isLastDialog:d}=Jp("dialog",{visible:r}),v=P(()=>(l==null?void 0:l.value)===document.body);let m=0;const f=()=>{m++,a.value&&(a.value=!1),s.value=!1,t("update:visible",!1)},p=async j=>{const z=m,V=await new Promise(async W=>{var H;if(Nt(e.onBeforeOk)){let U=e.onBeforeOk((Q=!0)=>W(Q));if((Kd(U)||!Gr(U))&&(a.value=!0),Kd(U))try{U=(H=await U)!=null?H:!0}catch{U=!1}Gr(U)&&W(U)}else W(!0)});z===m&&(V?(t("ok",j),f()):a.value&&(a.value=!1))},h=j=>{var z;let V=!0;Nt(e.onBeforeCancel)&&(V=(z=e.onBeforeCancel())!=null?z:!1),V&&(t("cancel",j),f())},b=j=>{e.maskClosable&&h(j)},w=()=>{r.value&&t("open")},k=()=>{r.value||(g.value=!1,E(),t("close"))},{setOverflowHidden:$,resetOverflow:E}=vV(l);Yt(()=>{r.value&&(g.value=!0,$(),_())}),ei(()=>{E(),A()}),gt(r,j=>{s.value!==j&&(s.value=j),j?(t("beforeOpen"),g.value=!0,$(),_()):(t("beforeClose"),A())});const N=P(()=>{var j;const z=wfe({[e.placement]:0},(j=e.drawerStyle)!=null?j:{});return["right","left"].includes(e.placement)?z.width=Le(e.width)?`${e.width}px`:e.width:z.height=Le(e.height)?`${e.height}px`:e.height,z});return{prefixCls:i,style:N,t:o,mounted:g,computedVisible:r,mergedOkLoading:u,zIndex:y,handleOk:p,handleCancel:h,handleOpen:w,handleClose:k,handleMask:b,isFixed:v,teleportContainer:c}}});function xfe(e,t,n,i,o,s){const r=Pe("icon-close"),a=Pe("icon-hover"),u=Pe("arco-button"),c=Pe("client-only");return R(),We(c,null,{default:Ve(()=>[(R(),We(Yp,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?gi((R(),X("div",Qe({key:0,class:`${e.prefixCls}-container`,style:e.isFixed?{zIndex:e.zIndex}:{zIndex:"inherit",position:"absolute"}},e.$attrs),[O(Pr,{name:"fade-drawer",appear:""},{default:Ve(()=>[e.mask?gi((R(),X("div",{key:0,class:G(`${e.prefixCls}-mask`),onClick:t[0]||(t[0]=(...l)=>e.handleMask&&e.handleMask(...l))},null,2)),[[ki,e.computedVisible]]):Re("v-if",!0)]),_:1}),O(Pr,{name:`slide-${e.placement}-drawer`,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose},{default:Ve(()=>[gi(B("div",{class:G(e.prefixCls),style:Te(e.style)},[e.header?(R(),X("div",{key:0,class:G(`${e.prefixCls}-header`)},[He(e.$slots,"header",{},()=>[e.$slots.title||e.title?(R(),X("div",{key:0,class:G(`${e.prefixCls}-title`)},[He(e.$slots,"title",{},()=>[pt(tt(e.title),1)])],2)):Re("v-if",!0),e.closable?(R(),X("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:G(`${e.prefixCls}-close-btn`),onClick:t[1]||(t[1]=(...l)=>e.handleCancel&&e.handleCancel(...l))},[O(a,null,{default:Ve(()=>[O(r)]),_:1})],2)):Re("v-if",!0)])],2)):Re("v-if",!0),B("div",{class:G(`${e.prefixCls}-body`)},[He(e.$slots,"default")],2),e.footer?(R(),X("div",{key:1,class:G(`${e.prefixCls}-footer`)},[He(e.$slots,"footer",{},()=>[e.hideCancel?Re("v-if",!0):(R(),We(u,Qe({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:Ve(()=>[pt(tt(e.cancelText||e.t("drawer.cancelText")),1)]),_:1},16,["onClick"])),O(u,Qe({type:"primary",loading:e.mergedOkLoading},e.okButtonProps,{onClick:e.handleOk}),{default:Ve(()=>[pt(tt(e.okText||e.t("drawer.okText")),1)]),_:1},16,["loading","onClick"])])],2)):Re("v-if",!0)],6),[[ki,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],16)),[[ki,e.computedVisible||e.mounted]]):Re("v-if",!0)],8,["to","disabled"]))]),_:3})}var bb=ye(Ife,[["render",xfe]]),$fe=Object.defineProperty,LD=Object.getOwnPropertySymbols,Afe=Object.prototype.hasOwnProperty,Efe=Object.prototype.propertyIsEnumerable,DD=(e,t,n)=>t in e?$fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C4=(e,t)=>{for(var n in t||(t={}))Afe.call(t,n)&&DD(e,n,t[n]);if(LD)for(var n of LD(t))Efe.call(t,n)&&DD(e,n,t[n]);return e};const ND=(e,t)=>{let n=FS("drawer");const i=()=>{c.component&&(c.component.props.visible=!1),Nt(e.onOk)&&e.onOk()},o=()=>{c.component&&(c.component.props.visible=!1),Nt(e.onCancel)&&e.onCancel()},s=async()=>{await fn(),n&&(Ws(null,n),document.body.removeChild(n)),n=null,Nt(e.onClose)&&e.onClose()},r=()=>{c.component&&(c.component.props.visible=!1)},a=l=>{c.component&&Object.entries(l).forEach(([g,C])=>{c.component.props[g]=C})},c=O(bb,C4(C4(C4({},{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:i,onCancel:o,onClose:s}),kr(e,["content","title","footer","visible","unmountOnClose","onOk","onCancel","onClose"])),{header:typeof e.header=="boolean"?e.header:void 0,footer:typeof e.footer=="boolean"?e.footer:void 0}),{default:ro(e.content),header:typeof e.header!="boolean"?ro(e.header):void 0,title:ro(e.title),footer:typeof e.footer!="boolean"?ro(e.footer):void 0});return(t??uE._context)&&(c.appContext=t??uE._context),Ws(c,n),document.body.appendChild(n),{close:r,update:a}},uE=Object.assign(bb,{open:ND,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+bb.name,bb);const i={open:(o,s=e._context)=>ND(o,s)};e.config.globalProperties.$drawer=i},_context:null});function gV(e){return e===Object(e)&&Object.keys(e).length!==0}function Mfe(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(i){var o=i.el,s=i.top,r=i.left;o.scroll&&n?o.scroll({top:s,left:r,behavior:t}):(o.scrollTop=s,o.scrollLeft=r)})}function Tfe(e){return e===!1?{block:"end",inline:"nearest"}:gV(e)?e:{block:"start",inline:"nearest"}}function yV(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(gV(t)&&typeof t.behavior=="function")return t.behavior(n?eE(e,t):[]);if(n){var i=Tfe(t);return Mfe(eE(e,i),i.behavior)}}const jD=["success","warning","error","validating"],Pfe=e=>{let t="";for(const n of Object.keys(e)){const i=e[n];i&&(!t||jD.indexOf(i)>jD.indexOf(t))&&(t=e[n])}return t},Ofe=e=>{const t=[];for(const n of Object.keys(e)){const i=e[n];i&&t.push(i)}return t},bV=(e,t)=>{const n=t.replace(/[[.]/g,"_").replace(/\]/g,"");return e?`${e}-${n}`:`${n}`};var Lfe=Object.defineProperty,zD=Object.getOwnPropertySymbols,Dfe=Object.prototype.hasOwnProperty,Nfe=Object.prototype.propertyIsEnumerable,RD=(e,t,n)=>t in e?Lfe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jfe=(e,t)=>{for(var n in t||(t={}))Dfe.call(t,n)&&RD(e,n,t[n]);if(zD)for(var n of zD(t))Nfe.call(t,n)&&RD(e,n,t[n]);return e};const zfe=se({name:"Form",props:{model:{type:Object,required:!0},layout:{type:String,default:"horizontal"},size:{type:String},labelColProps:{type:Object,default:()=>({span:5,offset:0})},wrapperColProps:{type:Object,default:()=>({span:19,offset:0})},labelColStyle:Object,wrapperColStyle:Object,labelAlign:{type:String,default:"right"},disabled:{type:Boolean,default:void 0},rules:{type:Object},autoLabelWidth:{type:Boolean,default:!1},id:{type:String},scrollToFirstError:{type:Boolean,default:!1}},emits:{submit:(e,t)=>!0,submitSuccess:(e,t)=>!0,submitFailed:(e,t)=>!0},setup(e,{emit:t}){const n=de("form"),i=he(),{id:o,model:s,layout:r,disabled:a,labelAlign:u,labelColProps:c,wrapperColProps:l,labelColStyle:g,wrapperColStyle:C,size:S,rules:_}=lt(e),{mergedSize:A}=Sr(S),y=P(()=>e.layout==="horizontal"&&e.autoLabelWidth),d=[],v=[],m=it({}),f=P(()=>Math.max(...Object.values(m))),p=U=>{U&&U.field&&d.push(U)},h=U=>{U&&U.field&&d.splice(d.indexOf(U),1)},b=U=>{d.forEach(Q=>{U[Q.field]&&Q.setField(U[Q.field])})},w=(U,Q)=>{Q&&m[Q]!==U&&(m[Q]=U)},k=U=>{U&&delete m[U]},$=U=>{const Q=U?[].concat(U):[];d.forEach(q=>{(Q.length===0||Q.includes(q.field))&&q.resetField()})},E=U=>{const Q=U?[].concat(U):[];d.forEach(q=>{(Q.length===0||Q.includes(q.field))&&q.clearValidate()})},N=(U,Q)=>{const ae=(i.value||document.body).querySelector(`#${bV(e.id,U)}`);ae&&yV(ae,jfe({behavior:"smooth",block:"nearest",scrollMode:"if-needed"},Q))},j=U=>{const Q=Gr(e.scrollToFirstError)?void 0:e.scrollToFirstError;N(U,Q)},z=U=>{const Q=[];return d.forEach(q=>{Q.push(q.validate())}),Promise.all(Q).then(q=>{const ae={};let ne=!1;return q.forEach(be=>{be&&(ne=!0,ae[be.field]=be)}),ne&&e.scrollToFirstError&&j(Object.keys(ae)[0]),Nt(U)&&U(ne?ae:void 0),ne?ae:void 0})},V=(U,Q)=>{const q=[];for(const ae of d)(Kt(U)&&U.includes(ae.field)||U===ae.field)&&q.push(ae.validate());return Promise.all(q).then(ae=>{const ne={};let be=!1;return ae.forEach(te=>{te&&(be=!0,ne[te.field]=te)}),be&&e.scrollToFirstError&&j(Object.keys(ne)[0]),Nt(Q)&&Q(be?ne:void 0),be?ne:void 0})},W=U=>{const Q=[];d.forEach(q=>{Q.push(q.validate())}),Promise.all(Q).then(q=>{const ae={};let ne=!1;q.forEach(be=>{be&&(ne=!0,ae[be.field]=be)}),ne?(e.scrollToFirstError&&j(Object.keys(ae)[0]),t("submitFailed",{values:s.value,errors:ae},U)):t("submitSuccess",s.value,U),t("submit",{values:s.value,errors:ne?ae:void 0},U)})};return cn(tP,it({id:o,layout:r,disabled:a,labelAlign:u,labelColProps:c,wrapperColProps:l,labelColStyle:g,wrapperColStyle:C,model:s,size:A,rules:_,fields:d,touchedFields:v,addField:p,removeField:h,validateField:V,setLabelWidth:w,removeLabelWidth:k,maxLabelWidth:f,autoLabelWidth:y})),{cls:P(()=>[n,`${n}-layout-${e.layout}`,`${n}-size-${A.value}`,{[`${n}-auto-label-width`]:e.autoLabelWidth}]),formRef:i,handleSubmit:W,innerValidate:z,innerValidateField:V,innerResetFields:$,innerClearValidate:E,innerSetFields:b,innerScrollToField:N}},methods:{validate(e){return this.innerValidate(e)},validateField(e,t){return this.innerValidateField(e,t)},resetFields(e){return this.innerResetFields(e)},clearValidate(e){return this.innerClearValidate(e)},setFields(e){return this.innerSetFields(e)},scrollToField(e){return this.innerScrollToField(e)}}});function Rfe(e,t,n,i,o,s){return R(),X("form",{ref:"formRef",class:G(e.cls),onSubmit:t[0]||(t[0]=oo((...r)=>e.handleSubmit&&e.handleSubmit(...r),["prevent"]))},[He(e.$slots,"default")],34)}var S4=ye(zfe,[["render",Rfe]]),em=Object.prototype.toString;function rw(e){return em.call(e)==="[object Array]"}function Tl(e){return em.call(e)==="[object Object]"}function dE(e){return em.call(e)==="[object String]"}function Bfe(e){return em.call(e)==="[object Number]"&&e===e}function Ffe(e){return em.call(e)==="[object Boolean]"}function fE(e){return em.call(e)==="[object Function]"}function Vfe(e){return Tl(e)&&Object.keys(e).length===0}function bu(e){return e==null||e===""}function kV(e){return rw(e)&&!e.length}var CP=function(e,t){if(typeof e!="object"||typeof t!="object")return e===t;if(fE(e)&&fE(t))return e===t||e.toString()===t.toString();if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){var i=CP(e[n],t[n]);if(!i)return!1}return!0},SP=function(e,t){var n=Object.assign({},e);return Object.keys(t||{}).forEach(function(i){var o=n[i],s=t==null?void 0:t[i];n[i]=Tl(o)?Object.assign(Object.assign({},o),s):s||o}),n},Hfe=function(e,t){for(var n=t.split("."),i=e,o=0;o<n.length;o++)if(i=i&&i[n[o]],i===void 0)return i;return i},Ul="#{field} is not a #{type} type",Wfe={required:"#{field} is required",type:{ip:Ul,email:Ul,url:Ul,string:Ul,number:Ul,array:Ul,object:Ul,boolean:Ul},number:{min:"`#{value}` is not greater than `#{min}`",max:"`#{value}` is not less than `#{max}`",equal:"`#{value}` is not equal to `#{equal}`",range:"`#{value}` is not in range `#{min} ~ #{max}`",positive:"`#{value}` is not a positive number",negative:"`#{value}` is not a negative number"},string:{maxLength:"#{field} cannot be longer than #{maxLength} characters",minLength:"#{field} must be at least #{minLength} characters",length:"#{field} must be exactly #{length} characters",match:"`#{value}` does not match pattern #{pattern}",uppercase:"`#{value}` must be all uppercase",lowercase:"`#{value}` must be all lowercased"},array:{length:"#{field} must be exactly #{length} in length",minLength:"#{field} cannot be less than #{minLength} in length",maxLength:"#{field} cannot be greater than #{maxLength} in length",includes:"#{field} is not includes #{includes}",deepEqual:"#{field} is not deep equal with #{deepEqual}",empty:"#{field} is not an empty array"},object:{deepEqual:"#{field} is not deep equal to expected value",hasKeys:"#{field} does not contain required fields",empty:"#{field} is not an empty object"},boolean:{true:"Expect true but got `#{value}`",false:"Expect false but got `#{value}`"}},Xs=function(t,n){var i=this;this.getValidateMsg=function(o,s){s===void 0&&(s={});var r=Object.assign(Object.assign({},s),{value:i.obj,field:i.field,type:i.type}),a=Hfe(i.validateMessages,o);return fE(a)?a(r):dE(a)?a.replace(/\#\{.+?\}/g,function(u){var c=u.slice(2,-1);if(c in r){if(Tl(r[c])||rw(r[c]))try{return JSON.stringify(r[c])}catch{return r[c]}return String(r[c])}return u}):a},Tl(n)&&dE(t)&&n.trim?this.obj=t.trim():Tl(n)&&n.ignoreEmptyString&&t===""?this.obj=void 0:this.obj=t,this.message=n.message,this.type=n.type,this.error=null,this.field=n.field||n.type,this.validateMessages=SP(Wfe,n.validateMessages)},ow={not:{configurable:!0},isRequired:{configurable:!0},end:{configurable:!0}};ow.not.get=function(){return this._not=!this._not,this};ow.isRequired.get=function(){if(bu(this.obj)||kV(this.obj)){var e=this.getValidateMsg("required");this.error={value:this.obj,type:this.type,requiredError:!0,message:this.message||(Tl(e)?e:(this._not?"[NOT MODE]:":"")+e)}}return this};ow.end.get=function(){return this.error};Xs.prototype.addError=function(t){!this.error&&t&&(this.error={value:this.obj,type:this.type,message:this.message||(Tl(t)?t:(this._not?"[NOT MODE]:":"")+t)})};Xs.prototype.validate=function(t,n){var i=this._not?t:!t;return i&&this.addError(n),this};Xs.prototype.collect=function(t){t&&t(this.error)};Object.defineProperties(Xs.prototype,ow);var Ufe=function(e){function t(i,o){e.call(this,i,Object.assign(Object.assign({},o),{type:"string"})),this.validate(o&&o.strict?dE(this.obj):!0,this.getValidateMsg("type.string"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={uppercase:{configurable:!0},lowercase:{configurable:!0}};return t.prototype.maxLength=function(o){return this.obj?this.validate(this.obj.length<=o,this.getValidateMsg("string.maxLength",{maxLength:o})):this},t.prototype.minLength=function(o){return this.obj?this.validate(this.obj.length>=o,this.getValidateMsg("string.minLength",{minLength:o})):this},t.prototype.length=function(o){return this.obj?this.validate(this.obj.length===o,this.getValidateMsg("string.length",{length:o})):this},t.prototype.match=function(o){var s=o instanceof RegExp;return s&&(o.lastIndex=0),this.validate(this.obj===void 0||s&&o.test(this.obj),this.getValidateMsg("string.match",{pattern:o}))},n.uppercase.get=function(){return this.obj?this.validate(this.obj.toUpperCase()===this.obj,this.getValidateMsg("string.uppercase")):this},n.lowercase.get=function(){return this.obj?this.validate(this.obj.toLowerCase()===this.obj,this.getValidateMsg("string.lowercase")):this},Object.defineProperties(t.prototype,n),t}(Xs),Zfe=function(e){function t(i,o){e.call(this,i,Object.assign(Object.assign({},o),{type:"number"})),this.validate(o&&o.strict?Bfe(this.obj):!0,this.getValidateMsg("type.number"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={positive:{configurable:!0},negative:{configurable:!0}};return t.prototype.min=function(o){return bu(this.obj)?this:this.validate(this.obj>=o,this.getValidateMsg("number.min",{min:o}))},t.prototype.max=function(o){return bu(this.obj)?this:this.validate(this.obj<=o,this.getValidateMsg("number.max",{max:o}))},t.prototype.equal=function(o){return bu(this.obj)?this:this.validate(this.obj===o,this.getValidateMsg("number.equal",{equal:o}))},t.prototype.range=function(o,s){return bu(this.obj)?this:this.validate(this.obj>=o&&this.obj<=s,this.getValidateMsg("number.range",{min:o,max:s}))},n.positive.get=function(){return bu(this.obj)?this:this.validate(this.obj>0,this.getValidateMsg("number.positive"))},n.negative.get=function(){return bu(this.obj)?this:this.validate(this.obj<0,this.getValidateMsg("number.negative"))},Object.defineProperties(t.prototype,n),t}(Xs),Gfe=function(e){function t(i,o){e.call(this,i,Object.assign(Object.assign({},o),{type:"array"})),this.validate(o&&o.strict?rw(this.obj):!0,this.getValidateMsg("type.array",{value:this.obj,type:this.type}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={empty:{configurable:!0}};return t.prototype.length=function(o){return this.obj?this.validate(this.obj.length===o,this.getValidateMsg("array.length",{value:this.obj,length:o})):this},t.prototype.minLength=function(o){return this.obj?this.validate(this.obj.length>=o,this.getValidateMsg("array.minLength",{value:this.obj,minLength:o})):this},t.prototype.maxLength=function(o){return this.obj?this.validate(this.obj.length<=o,this.getValidateMsg("array.maxLength",{value:this.obj,maxLength:o})):this},t.prototype.includes=function(o){var s=this;return this.obj?this.validate(o.every(function(r){return s.obj.indexOf(r)!==-1}),this.getValidateMsg("array.includes",{value:this.obj,includes:o})):this},t.prototype.deepEqual=function(o){return this.obj?this.validate(CP(this.obj,o),this.getValidateMsg("array.deepEqual",{value:this.obj,deepEqual:o})):this},n.empty.get=function(){return this.validate(kV(this.obj),this.getValidateMsg("array.empty",{value:this.obj}))},Object.defineProperties(t.prototype,n),t}(Xs),Yfe=function(e){function t(i,o){e.call(this,i,Object.assign(Object.assign({},o),{type:"object"})),this.validate(o&&o.strict?Tl(this.obj):!0,this.getValidateMsg("type.object"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={empty:{configurable:!0}};return t.prototype.deepEqual=function(o){return this.obj?this.validate(CP(this.obj,o),this.getValidateMsg("object.deepEqual",{deepEqual:o})):this},t.prototype.hasKeys=function(o){var s=this;return this.obj?this.validate(o.every(function(r){return s.obj[r]}),this.getValidateMsg("object.hasKeys",{keys:o})):this},n.empty.get=function(){return this.validate(Vfe(this.obj),this.getValidateMsg("object.empty"))},Object.defineProperties(t.prototype,n),t}(Xs),Xfe=function(e){function t(i,o){e.call(this,i,Object.assign(Object.assign({},o),{type:"boolean"})),this.validate(o&&o.strict?Ffe(this.obj):!0,this.getValidateMsg("type.boolean"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={true:{configurable:!0},false:{configurable:!0}};return n.true.get=function(){return this.validate(this.obj===!0,this.getValidateMsg("boolean.true"))},n.false.get=function(){return this.validate(this.obj===!1,this.getValidateMsg("boolean.false"))},Object.defineProperties(t.prototype,n),t}(Xs),Kfe=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Jfe=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),qfe=/^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/,Qfe=function(e){function t(i,o){e.call(this,i,Object.assign(Object.assign({},o),{type:"type"}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={email:{configurable:!0},url:{configurable:!0},ip:{configurable:!0}};return n.email.get=function(){return this.type="email",this.validate(this.obj===void 0||Kfe.test(this.obj),this.getValidateMsg("type.email"))},n.url.get=function(){return this.type="url",this.validate(this.obj===void 0||Jfe.test(this.obj),this.getValidateMsg("type.url"))},n.ip.get=function(){return this.type="ip",this.validate(this.obj===void 0||qfe.test(this.obj),this.getValidateMsg("type.ip"))},Object.defineProperties(t.prototype,n),t}(Xs),ehe=function(e){function t(i,o){e.call(this,i,Object.assign(Object.assign({},o),{type:"custom"}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={validate:{configurable:!0}};return n.validate.get=function(){var i=this;return function(o,s){var r;if(o)return r=o(i.obj,i.addError.bind(i)),r&&r.then?(s&&r.then(function(){s&&s(i.error)},function(a){console.error(a)}),[r,i]):(s&&s(i.error),i.error)}},Object.defineProperties(t.prototype,n),t}(Xs),sC=function(e,t){return new CV(e,Object.assign({field:"value"},t))};sC.globalConfig={};sC.setGlobalConfig=function(e){sC.globalConfig=e||{}};var CV=function(t,n){var i=sC.globalConfig,o=Object.assign(Object.assign(Object.assign({},i),n),{validateMessages:SP(i.validateMessages,n.validateMessages)});this.string=new Ufe(t,o),this.number=new Zfe(t,o),this.array=new Gfe(t,o),this.object=new Yfe(t,o),this.boolean=new Xfe(t,o),this.type=new Qfe(t,o),this.custom=new ehe(t,o)},wP=function(t,n){n===void 0&&(n={}),this.schema=t,this.options=n};wP.prototype.messages=function(t){this.options=Object.assign(Object.assign({},this.options),{validateMessages:SP(this.options.validateMessages,t)})};wP.prototype.validate=function(t,n){var i=this;if(!Tl(t))return;var o=[],s=null;function r(a,u){s||(s={}),(!s[a]||u.requiredError)&&(s[a]=u)}this.schema&&Object.keys(this.schema).forEach(function(a){if(rw(i.schema[a]))for(var u=function(g){var C=i.schema[a][g],S=C.type,_=C.message;if(!S&&!C.validator)throw"You must specify a type to field "+a+"!";var A=Object.assign(Object.assign({},i.options),{message:_,field:a});"ignoreEmptyString"in C&&(A.ignoreEmptyString=C.ignoreEmptyString),"strict"in C&&(A.strict=C.strict);var y=new CV(t[a],A),d=y.type[S]||null;if(!d)if(C.validator){d=y.custom.validate(C.validator),Object.prototype.toString.call(d)==="[object Array]"&&d[0].then?o.push({function:d[0],_this:d[1],key:a}):d&&r(a,d);return}else d=y[S];if(Object.keys(C).forEach(function(v){C.required&&(d=d.isRequired),v!=="message"&&d[v]&&C[v]&&typeof d[v]=="object"&&(d=d[v]),d[v]&&C[v]!==void 0&&typeof d[v]=="function"&&(d=d[v](C[v]))}),d.collect(function(v){v&&r(a,v)}),s)return"break"},c=0;c<i.schema[a].length;c++){var l=u(c);if(l==="break")break}}),o.length>0?Promise.all(o.map(function(a){return a.function})).then(function(){o.forEach(function(a){a._this.error&&r(a.key,a._this.error)}),n&&n(s)}):n&&n(s)};const SV=Symbol("RowContextInjectionKey"),wV=Symbol("GridContextInjectionKey"),_V=Symbol("GridDataCollectorInjectionKey"),the=se({name:"Row",props:{gutter:{type:[Number,Object,Array],default:0},justify:{type:String,default:"start"},align:{type:String,default:"start"},div:{type:Boolean},wrap:{type:Boolean,default:!0}},setup(e){const{gutter:t,align:n,justify:i,div:o,wrap:s}=lt(e),r=de("row"),a=P(()=>({[`${r}`]:!o.value,[`${r}-nowrap`]:!s.value,[`${r}-align-${n.value}`]:n.value,[`${r}-justify-${i.value}`]:i.value})),u=P(()=>Array.isArray(t.value)?t.value[0]:t.value),c=P(()=>Array.isArray(t.value)?t.value[1]:0),l=Ml(u,0),g=Ml(c,0),C=P(()=>{const _={};if((l.value||g.value)&&!o.value){const A=-l.value/2,y=-g.value/2;A&&(_.marginLeft=`${A}px`,_.marginRight=`${A}px`),y&&(_.marginTop=`${y}px`,_.marginBottom=`${y}px`)}return _}),S=P(()=>[l.value,g.value]);return cn(SV,it({gutter:S,div:o})),{classNames:a,styles:C}}});function nhe(e,t,n,i,o,s){return R(),X("div",{class:G(e.classNames),style:Te(e.styles)},[He(e.$slots,"default")],6)}var fv=ye(the,[["render",nhe]]);function ihe(e){return P(()=>{const{val:n,key:i,xs:o,sm:s,md:r,lg:a,xl:u,xxl:c}=e.value;if(!o&&!s&&!r&&!a&&!u&&!c)return n;const l={};return rC.forEach(g=>{const C=e.value[g];Le(C)?l[g]=C:rn(C)&&Le(C[i])&&(l[g]=C[i])}),l})}var rhe=Object.defineProperty,BD=Object.getOwnPropertySymbols,ohe=Object.prototype.hasOwnProperty,she=Object.prototype.propertyIsEnumerable,FD=(e,t,n)=>t in e?rhe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w4=(e,t)=>{for(var n in t||(t={}))ohe.call(t,n)&&FD(e,n,t[n]);if(BD)for(var n of BD(t))she.call(t,n)&&FD(e,n,t[n]);return e};function ahe(e){if(Ai(e)&&(["initial","auto","none"].includes(e)||/^\d+$/.test(e))||Le(e))return e;if(Ai(e)&&/^\d+(px|em|rem|%)$/.test(e))return`0 0 ${e}`}const lhe=se({name:"Col",props:{span:{type:Number,default:24},offset:{type:Number},order:{type:Number},xs:{type:[Number,Object]},sm:{type:[Number,Object]},md:{type:[Number,Object]},lg:{type:[Number,Object]},xl:{type:[Number,Object]},xxl:{type:[Number,Object]},flex:{type:[Number,String]}},setup(e){const t=de("col"),n=Dt(SV,{}),i=P(()=>ahe(e.flex)),o=P(()=>{const{div:g}=n,{span:C,offset:S,order:_,xs:A,sm:y,md:d,lg:v,xl:m,xxl:f}=e,p={[`${t}`]:!g,[`${t}-order-${_}`]:_,[`${t}-${C}`]:!g&&!A&&!y&&!d&&!v&&!m&&!f,[`${t}-offset-${S}`]:S&&S>0},h={xs:A,sm:y,md:d,lg:v,xl:m,xxl:f};return Object.keys(h).forEach(b=>{const w=h[b];w&&Le(w)?p[`${t}-${b}-${w}`]=!0:w&&rn(w)&&(p[`${t}-${b}-${w.span}`]=w.span,p[`${t}-${b}-offset-${w.offset}`]=w.offset,p[`${t}-${b}-order-${w.order}`]=w.order)}),p}),s=P(()=>i.value?t:o.value),r=P(()=>{const{gutter:g,div:C}=n,S={};if(Array.isArray(g)&&!C){const _=g[0]&&g[0]/2||0,A=g[1]&&g[1]/2||0;_&&(S.paddingLeft=`${_}px`,S.paddingRight=`${_}px`),A&&(S.paddingTop=`${A}px`,S.paddingBottom=`${A}px`)}return S}),a=P(()=>i.value?{flex:i.value}:{}),u=P(()=>Ea(e,rC)),c=ihe(P(()=>w4({val:e.span,key:"span"},u.value))),l=Ml(c,24,!0);return{visible:P(()=>!!l.value),classNames:s,styles:P(()=>w4(w4({},r.value),a.value))}}});function che(e,t,n,i,o,s){return e.visible?(R(),X("div",{key:0,class:G(e.classNames),style:Te(e.styles)},[He(e.$slots,"default")],6)):Re("v-if",!0)}var hv=ye(lhe,[["render",che]]);function uhe(e,t){var n,i;const o=(n=t.span)!=null?n:1,s=(i=t.offset)!=null?i:0,r=Math.min(s,e);return{span:Math.min(r>0?o+s:o,e),offset:r,suffix:"suffix"in t?t.suffix!==!1:!1}}function dhe({cols:e,collapsed:t,collapsedRows:n,itemDataList:i}){let o=!1,s=[];function r(a){return Math.ceil(a/e)>n}if(t){let a=0;for(let u=0;u<i.length;u++)i[u].suffix&&(a+=i[u].span,s.push(u));if(!r(a)){let u=0;for(;u<i.length;){const c=i[u];if(!c.suffix){if(a+=c.span,r(a))break;s.push(u)}u++}}o=i.some((u,c)=>!u.suffix&&!s.includes(c))}else s=i.map((a,u)=>u);return{overflow:o,displayIndexList:s}}const fhe=se({name:"Grid",props:{cols:{type:[Number,Object],default:24},rowGap:{type:[Number,Object],default:0},colGap:{type:[Number,Object],default:0},collapsed:{type:Boolean,default:!1},collapsedRows:{type:Number,default:1}},setup(e){const{cols:t,rowGap:n,colGap:i,collapsedRows:o,collapsed:s}=lt(e),r=Ml(t,24),a=Ml(i,0),u=Ml(n,0),c=de("grid"),l=P(()=>[c]),g=P(()=>[{gap:`${u.value}px ${a.value}px`,"grid-template-columns":`repeat(${r.value}, minmax(0px, 1fr))`}]),C=it(new Map),S=P(()=>{const A=[];for(const[y,d]of C.entries())A[y]=d;return A}),_=it({overflow:!1,displayIndexList:[],cols:r.value,colGap:a.value});return Xi(()=>{_.cols=r.value,_.colGap=a.value}),Xi(()=>{const A=dhe({cols:r.value,collapsed:s.value,collapsedRows:o.value,itemDataList:S.value});_.overflow=A.overflow,_.displayIndexList=A.displayIndexList}),cn(wV,_),cn(_V,{collectItemData(A,y){C.set(A,y)},removeItemData(A){C.delete(A)}}),{classNames:l,style:g}}});function hhe(e,t,n,i,o,s){return R(),X("div",{class:G(e.classNames),style:Te(e.style)},[He(e.$slots,"default")],6)}var _4=ye(fhe,[["render",hhe]]),phe=Object.defineProperty,mhe=Object.defineProperties,vhe=Object.getOwnPropertyDescriptors,VD=Object.getOwnPropertySymbols,ghe=Object.prototype.hasOwnProperty,yhe=Object.prototype.propertyIsEnumerable,HD=(e,t,n)=>t in e?phe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bhe=(e,t)=>{for(var n in t||(t={}))ghe.call(t,n)&&HD(e,n,t[n]);if(VD)for(var n of VD(t))yhe.call(t,n)&&HD(e,n,t[n]);return e},khe=(e,t)=>mhe(e,vhe(t));const Che=se({name:"GridItem",props:{span:{type:[Number,Object],default:1},offset:{type:[Number,Object],default:0},suffix:{type:Boolean,default:!1}},setup(e){const t=de("grid-item"),n=he(),{computedIndex:i}=GS({itemRef:n,selector:`.${t}`}),o=Dt(wV,{overflow:!1,displayIndexList:[],cols:24,colGap:0}),s=Dt(_V),r=P(()=>{var y;return(y=o==null?void 0:o.displayIndexList)==null?void 0:y.includes(i.value)}),{span:a,offset:u}=lt(e),c=Ml(a,1),l=Ml(u,0),g=P(()=>uhe(o.cols,khe(bhe({},e),{span:c.value,offset:l.value}))),C=P(()=>[t]),S=P(()=>{const{offset:y,span:d}=g.value,{colGap:v}=o;return y>0?{"margin-left":`calc((${`(100% - ${v*(d-1)}px) / ${d}`} * ${y}) + ${v*y}px)`}:{}}),_=P(()=>{const{suffix:y,span:d}=g.value,{cols:v}=o;return y?`${v-d+1}`:`span ${d}`}),A=P(()=>{const{span:y}=g.value;return n.value?[{"grid-column":`${_.value} / span ${y}`},S.value,!r.value||y===0?{display:"none"}:{}]:[]});return Xi(()=>{i.value!==-1&&(s==null||s.collectItemData(i.value,g.value))}),$i(()=>{i.value!==-1&&(s==null||s.removeItemData(i.value))}),{classNames:C,style:A,domRef:n,overflow:P(()=>o.overflow)}}});function She(e,t,n,i,o,s){return R(),X("div",{ref:"domRef",class:G(e.classNames),style:Te(e.style)},[He(e.$slots,"default",{overflow:e.overflow})],6)}var kb=ye(Che,[["render",She]]);const Nm=Object.assign(_4,{Row:fv,Col:hv,Item:kb,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+fv.name,fv),e.component(n+hv.name,hv),e.component(n+_4.name,_4),e.component(n+kb.name,kb)}});var whe=Object.defineProperty,WD=Object.getOwnPropertySymbols,_he=Object.prototype.hasOwnProperty,Ihe=Object.prototype.propertyIsEnumerable,UD=(e,t,n)=>t in e?whe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ZD=(e,t)=>{for(var n in t||(t={}))_he.call(t,n)&&UD(e,n,t[n]);if(WD)for(var n of WD(t))Ihe.call(t,n)&&UD(e,n,t[n]);return e};const xhe=se({name:"Tooltip",components:{Trigger:ur},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},content:String,position:{type:String,default:"top"},mini:{type:Boolean,default:!1},backgroundColor:{type:String},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const n=de("tooltip"),i=he(e.defaultPopupVisible),o=P(()=>{var l;return(l=e.popupVisible)!=null?l:i.value}),s=l=>{i.value=l,t("update:popupVisible",l),t("popupVisibleChange",l)},r=P(()=>[`${n}-content`,e.contentClass,{[`${n}-mini`]:e.mini}]),a=P(()=>{if(e.backgroundColor||e.contentStyle)return ZD({backgroundColor:e.backgroundColor},e.contentStyle)}),u=P(()=>[`${n}-popup-arrow`,e.arrowClass]),c=P(()=>{if(e.backgroundColor||e.arrowStyle)return ZD({backgroundColor:e.backgroundColor},e.arrowStyle)});return{prefixCls:n,computedPopupVisible:o,contentCls:r,computedContentStyle:a,arrowCls:u,computedArrowStyle:c,handlePopupVisibleChange:s}}});function $he(e,t,n,i,o,s){const r=Pe("Trigger");return R(),We(r,{class:G(e.prefixCls),trigger:"hover",position:e.position,"popup-visible":e.computedPopupVisible,"popup-offset":10,"show-arrow":"","content-class":e.contentCls,"content-style":e.computedContentStyle,"arrow-class":e.arrowCls,"arrow-style":e.computedArrowStyle,"popup-container":e.popupContainer,"animation-name":"zoom-in-fade-out","auto-fit-transform-origin":"",role:"tooltip",onPopupVisibleChange:e.handlePopupVisibleChange},{content:Ve(()=>[He(e.$slots,"content",{},()=>[pt(tt(e.content),1)])]),default:Ve(()=>[He(e.$slots,"default")]),_:3},8,["class","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var I4=ye(xhe,[["render",$he]]);const us=Object.assign(I4,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+I4.name,I4)}}),Ahe=se({name:"IconQuestionCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-question-circle`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Ehe=["stroke-width","stroke-linecap","stroke-linejoin"],Mhe=B("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),The=B("path",{d:"M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465"},null,-1),Phe=[Mhe,The];function Ohe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Phe,14,Ehe)}var x4=ye(Ahe,[["render",Ohe]]);const IV=Object.assign(x4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+x4.name,x4)}}),Lhe=se({name:"FormItemLabel",components:{ResizeObserver:qc,Tooltip:us,IconQuestionCircle:IV},props:{required:{type:Boolean,default:!1},showColon:{type:Boolean,default:!1},component:{type:String,default:"label"},asteriskPosition:{type:String,default:"start"},tooltip:{type:String},attrs:Object},setup(){const e=de("form-item-label"),t=Dt(tP,void 0),n=Vn(),i=he(),o=()=>{i.value&&Le(i.value.offsetWidth)&&(t==null||t.setLabelWidth(i.value.offsetWidth,n==null?void 0:n.uid))};return Yt(()=>{i.value&&Le(i.value.offsetWidth)&&(t==null||t.setLabelWidth(i.value.offsetWidth,n==null?void 0:n.uid))}),ei(()=>{t==null||t.removeLabelWidth(n==null?void 0:n.uid)}),{prefixCls:e,labelRef:i,handleResize:o}}}),Dhe=B("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[B("path",{d:"M583.338667 17.066667c18.773333 0 34.133333 15.36 34.133333 34.133333v349.013333l313.344-101.888a34.133333 34.133333 0 0 1 43.008 22.016l42.154667 129.706667a34.133333 34.133333 0 0 1-21.845334 43.178667l-315.733333 102.4 208.896 287.744a34.133333 34.133333 0 0 1-7.509333 47.786666l-110.421334 80.213334a34.133333 34.133333 0 0 1-47.786666-7.509334L505.685333 706.218667 288.426667 1005.226667a34.133333 34.133333 0 0 1-47.786667 7.509333l-110.421333-80.213333a34.133333 34.133333 0 0 1-7.509334-47.786667l214.186667-295.253333L29.013333 489.813333a34.133333 34.133333 0 0 1-22.016-43.008l42.154667-129.877333a34.133333 34.133333 0 0 1 43.008-22.016l320.512 104.106667L412.672 51.2c0-18.773333 15.36-34.133333 34.133333-34.133333h136.533334z"})],-1),Nhe=[Dhe],jhe=B("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[B("path",{d:"M583.338667 17.066667c18.773333 0 34.133333 15.36 34.133333 34.133333v349.013333l313.344-101.888a34.133333 34.133333 0 0 1 43.008 22.016l42.154667 129.706667a34.133333 34.133333 0 0 1-21.845334 43.178667l-315.733333 102.4 208.896 287.744a34.133333 34.133333 0 0 1-7.509333 47.786666l-110.421334 80.213334a34.133333 34.133333 0 0 1-47.786666-7.509334L505.685333 706.218667 288.426667 1005.226667a34.133333 34.133333 0 0 1-47.786667 7.509333l-110.421333-80.213333a34.133333 34.133333 0 0 1-7.509334-47.786667l214.186667-295.253333L29.013333 489.813333a34.133333 34.133333 0 0 1-22.016-43.008l42.154667-129.877333a34.133333 34.133333 0 0 1 43.008-22.016l320.512 104.106667L412.672 51.2c0-18.773333 15.36-34.133333 34.133333-34.133333h136.533334z"})],-1),zhe=[jhe];function Rhe(e,t,n,i,o,s){const r=Pe("icon-question-circle"),a=Pe("Tooltip"),u=Pe("ResizeObserver");return R(),We(u,{onResize:e.handleResize},{default:Ve(()=>[(R(),We(Zr(e.component),Qe({ref:"labelRef",class:e.prefixCls},e.attrs),{default:Ve(()=>[e.required&&e.asteriskPosition==="start"?(R(),X("strong",{key:0,class:G(`${e.prefixCls}-required-symbol`)},Nhe,2)):Re("v-if",!0),He(e.$slots,"default"),e.tooltip?(R(),We(a,{key:1,content:e.tooltip},{default:Ve(()=>[O(r,{class:G(`${e.prefixCls}-tooltip`)},null,8,["class"])]),_:1},8,["content"])):Re("v-if",!0),e.required&&e.asteriskPosition==="end"?(R(),X("strong",{key:2,class:G(`${e.prefixCls}-required-symbol`)},zhe,2)):Re("v-if",!0),pt(" "+tt(e.showColon?":":""),1)]),_:3},16,["class"]))]),_:3},8,["onResize"])}var Bhe=ye(Lhe,[["render",Rhe]]);const Fhe=se({name:"FormItemMessage",props:{error:{type:Array,default:()=>[]},help:String},setup(){return{prefixCls:de("form-item-message")}}});function Vhe(e,t,n,i,o,s){return e.error.length>0?(R(!0),X(ft,{key:0},dn(e.error,r=>(R(),We(Pr,{key:r,name:"form-blink",appear:""},{default:Ve(()=>[B("div",{role:"alert",class:G([e.prefixCls])},tt(r),3)]),_:2},1024))),128)):e.help||e.$slots.help?(R(),We(Pr,{key:1,name:"form-blink",appear:""},{default:Ve(()=>[B("div",{class:G([e.prefixCls,`${e.prefixCls}-help`])},[He(e.$slots,"help",{},()=>[pt(tt(e.help),1)])],2)]),_:3})):Re("v-if",!0)}var Hhe=ye(Fhe,[["render",Vhe]]),Whe=Object.defineProperty,aC=Object.getOwnPropertySymbols,xV=Object.prototype.hasOwnProperty,$V=Object.prototype.propertyIsEnumerable,GD=(e,t,n)=>t in e?Whe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,YD=(e,t)=>{for(var n in t||(t={}))xV.call(t,n)&&GD(e,n,t[n]);if(aC)for(var n of aC(t))$V.call(t,n)&&GD(e,n,t[n]);return e},Uhe=(e,t)=>{var n={};for(var i in e)xV.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&aC)for(var i of aC(e))t.indexOf(i)<0&&$V.call(e,i)&&(n[i]=e[i]);return n};const Zhe=se({name:"FormItem",components:{ArcoRow:fv,ArcoCol:hv,FormItemLabel:Bhe,FormItemMessage:Hhe},props:{field:{type:String,default:""},label:String,tooltip:{type:String},showColon:{type:Boolean,default:!1},noStyle:{type:Boolean,default:!1},disabled:{type:Boolean,default:void 0},help:String,extra:String,required:{type:Boolean,default:!1},asteriskPosition:{type:String,default:"start"},rules:{type:[Object,Array]},validateStatus:{type:String},validateTrigger:{type:[String,Array],default:"change"},labelColProps:Object,wrapperColProps:Object,hideLabel:{type:Boolean,default:!1},hideAsterisk:{type:Boolean,default:!1},labelColStyle:Object,wrapperColStyle:Object,rowProps:Object,rowClass:[String,Array,Object],contentClass:[String,Array,Object],contentFlex:{type:Boolean,default:!0},mergeProps:{type:[Boolean,Function],default:!0},labelColFlex:{type:[Number,String]},feedback:{type:Boolean,default:!1},labelComponent:{type:String,default:"label"},labelAttrs:Object},setup(e){const t=de("form-item"),{field:n}=lt(e),i=Dt(tP,{}),{autoLabelWidth:o,layout:s}=lt(i),{i18nMessage:r}=fi(),a=P(()=>{var q;const ae=YD({},(q=e.labelColProps)!=null?q:i.labelColProps);return e.labelColFlex?ae.flex=e.labelColFlex:i.autoLabelWidth&&(ae.flex=`${i.maxLabelWidth}px`),ae}),u=P(()=>{var q;const ae=YD({},(q=e.wrapperColProps)!=null?q:i.wrapperColProps);return n.value&&(ae.id=bV(i.id,n.value)),(e.labelColFlex||i.autoLabelWidth)&&(ae.flex="auto"),ae}),c=P(()=>{var q;return(q=e.labelColStyle)!=null?q:i.labelColStyle}),l=P(()=>{var q;return(q=e.wrapperColStyle)!=null?q:i.wrapperColStyle}),g=Hd(i.model,e.field),C=it({}),S=it({}),_=P(()=>Pfe(C)),A=P(()=>Ofe(S)),y=he(!1),d=P(()=>Hd(i.model,e.field)),v=P(()=>{var q;return!!((q=e.disabled)!=null?q:i!=null&&i.disabled)}),m=P(()=>{var q;return(q=e.validateStatus)!=null?q:_.value}),f=P(()=>m.value==="error"),p=P(()=>{var q,ae,ne;const be=[].concat((ne=(ae=e.rules)!=null?ae:(q=i==null?void 0:i.rules)==null?void 0:q[e.field])!=null?ne:[]),te=be.some(Ie=>Ie.required);return e.required&&!te?[{required:!0}].concat(be):be}),h=P(()=>p.value.some(q=>q.required)),b=e.noStyle?Dt(tE,void 0):void 0,w=(q,{status:ae,message:ne})=>{C[q]=ae,S[q]=ne,e.noStyle&&(b==null||b.updateValidateState(q,{status:ae,message:ne}))},k=P(()=>e.feedback&&m.value?m.value:void 0),$=()=>{var q;if(y.value)return Promise.resolve();const ae=p.value;if(!n.value||ae.length===0)return _.value&&j(),Promise.resolve();const ne=n.value,be=d.value;w(ne,{status:"",message:""});const te=new wP({[ne]:ae.map(Ie=>{var $e=Uhe(Ie,[]);return!$e.type&&!$e.validator&&($e.type="string"),$e})},{ignoreEmptyString:!0,validateMessages:(q=r.value.form)==null?void 0:q.validateMessages});return new Promise(Ie=>{te.validate({[ne]:be},$e=>{var Me;const ge=!!($e!=null&&$e[ne]);w(ne,{status:ge?"error":"",message:(Me=$e==null?void 0:$e[ne].message)!=null?Me:""});const Se=ge?{label:e.label,field:n.value,value:$e[ne].value,type:$e[ne].type,isRequiredError:!!$e[ne].requiredError,message:$e[ne].message}:void 0;Ie(Se)})})},E=P(()=>[].concat(e.validateTrigger)),N=P(()=>E.value.reduce((q,ae)=>{switch(ae){case"change":return q.onChange=()=>{$()},q;case"input":return q.onInput=()=>{fn(()=>{$()})},q;case"focus":return q.onFocus=()=>{$()},q;case"blur":return q.onBlur=()=>{$()},q;default:return q}},{}));cn(tE,it({eventHandlers:N,size:i&&lo(i,"size"),disabled:v,error:f,feedback:k,updateValidateState:w}));const j=()=>{n.value&&w(n.value,{status:"",message:""})},W=it({field:n,disabled:v,error:f,validate:$,clearValidate:j,resetField:()=>{j(),y.value=!0,i!=null&&i.model&&n.value&&tC(i.model,n.value,g),fn(()=>{y.value=!1})},setField:q=>{var ae,ne;n.value&&(y.value=!0,"value"in q&&(i!=null&&i.model)&&n.value&&tC(i.model,n.value,q.value),(q.status||q.message)&&w(n.value,{status:(ae=q.status)!=null?ae:"",message:(ne=q.message)!=null?ne:""}),fn(()=>{y.value=!1}))}});Yt(()=>{var q;W.field&&((q=i.addField)==null||q.call(i,W))}),ei(()=>{var q;W.field&&((q=i.removeField)==null||q.call(i,W))});const H=P(()=>[t,`${t}-layout-${i.layout}`,{[`${t}-error`]:f.value,[`${t}-status-${m.value}`]:!!m.value},e.rowClass]),U=P(()=>[`${t}-label-col`,{[`${t}-label-col-left`]:i.labelAlign==="left",[`${t}-label-col-flex`]:i.autoLabelWidth||e.labelColFlex}]),Q=P(()=>[`${t}-wrapper-col`,{[`${t}-wrapper-col-flex`]:!u.value}]);return{prefixCls:t,cls:H,isRequired:h,isError:f,finalMessage:A,mergedLabelCol:a,mergedWrapperCol:u,labelColCls:U,autoLabelWidth:o,layout:s,mergedLabelStyle:c,wrapperColCls:Q,mergedWrapperStyle:l}}});function Ghe(e,t,n,i,o,s){var r;const a=Pe("FormItemLabel"),u=Pe("ArcoCol"),c=Pe("FormItemMessage"),l=Pe("ArcoRow");return e.noStyle?He(e.$slots,"default",{key:0}):(R(),We(l,Qe({key:1,class:[e.cls,{[`${e.prefixCls}-has-help`]:!!((r=e.$slots.help)!=null?r:e.help)}],wrap:!(e.labelColFlex||e.autoLabelWidth),div:e.layout!=="horizontal"||e.hideLabel},e.rowProps),{default:Ve(()=>[e.hideLabel?Re("v-if",!0):(R(),We(u,Qe({key:0,class:e.labelColCls,style:e.mergedLabelStyle},e.mergedLabelCol),{default:Ve(()=>[O(a,{required:e.hideAsterisk?!1:e.isRequired,"show-colon":e.showColon,"asterisk-position":e.asteriskPosition,component:e.labelComponent,attrs:e.labelAttrs,tooltip:e.tooltip},{default:Ve(()=>[e.$slots.label||e.label?He(e.$slots,"label",{key:0},()=>[pt(tt(e.label),1)]):Re("v-if",!0)]),_:3},8,["required","show-colon","asterisk-position","component","attrs","tooltip"])]),_:3},16,["class","style"])),O(u,Qe({class:e.wrapperColCls,style:e.mergedWrapperStyle},e.mergedWrapperCol),{default:Ve(()=>[B("div",{class:G(`${e.prefixCls}-content-wrapper`)},[B("div",{class:G([`${e.prefixCls}-content`,{[`${e.prefixCls}-content-flex`]:e.contentFlex},e.contentClass])},[He(e.$slots,"default")],2)],2),e.isError||e.$slots.help||e.help?(R(),We(c,{key:0,error:e.finalMessage,help:e.help},ti({_:2},[e.$slots.help?{name:"help",fn:Ve(()=>[He(e.$slots,"help")])}:void 0]),1032,["error","help"])):Re("v-if",!0),e.$slots.extra||e.extra?(R(),X("div",{key:1,class:G(`${e.prefixCls}-extra`)},[He(e.$slots,"extra",{},()=>[pt(tt(e.extra),1)])],2)):Re("v-if",!0)]),_:3},16,["class","style"])]),_:3},16,["class","wrap","div"]))}var Cb=ye(Zhe,[["render",Ghe]]);const Yhe=Object.assign(S4,{Item:Cb,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+S4.name,S4),e.component(n+Cb.name,Cb)}}),Xhe=se({name:"Icon",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(e){const t=de("icon"),n=P(()=>{const o={};return e.size&&(o.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(o.transform=`rotate(${e.rotate}deg)`),o});return{cls:P(()=>[t,{[`${t}-loading`]:e.spin},e.type]),innerStyle:n}}});function Khe(e,t,n,i,o,s){return R(),X("svg",{class:G(e.cls),style:Te(e.innerStyle),fill:"currentColor"},[He(e.$slots,"default")],6)}var Sb=ye(Xhe,[["render",Khe]]);function Jhe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}const XD=[],qhe=e=>{const{src:t,extraProps:n={}}=e;if(!f1&&(t!=null&&t.length)&&!XD.includes(t)){const i=document.createElement("script");i.setAttribute("src",t),i.setAttribute("data-namespace",t),XD.push(t),document.body.appendChild(i)}return se({name:"IconFont",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(i,{slots:o}){return()=>{var s;const r=i.type?O("use",{"xlink:href":`#${i.type}`},null):(s=o.default)==null?void 0:s.call(o);return O(Sb,Qe(i,n),Jhe(r)?r:{default:()=>[r]})}}})},Qhe=Object.assign(Sb,{addFromIconFontCn:qhe,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+Sb.name,Sb)}}),epe=se({name:"ImageFooter",props:{title:{type:String},description:{type:String}},setup(){return{prefixCls:de("image-footer")}}}),tpe=["title"],npe=["title"];function ipe(e,t,n,i,o,s){return R(),X("div",{class:G(e.prefixCls)},[e.title||e.description?(R(),X("div",{key:0,class:G(`${e.prefixCls}-caption`)},[e.title?(R(),X("div",{key:0,class:G(`${e.prefixCls}-caption-title`),title:e.title},tt(e.title),11,tpe)):Re("v-if",!0),e.description?(R(),X("div",{key:1,class:G(`${e.prefixCls}-caption-description`),title:e.description},tt(e.description),11,npe)):Re("v-if",!0)],2)):Re("v-if",!0),e.$slots.extra?(R(),X("div",{key:1,class:G(`${e.prefixCls}-extra`)},[He(e.$slots,"extra")],2)):Re("v-if",!0)],2)}var rpe=ye(epe,[["render",ipe]]);const ope=se({name:"ImagePreviewArrow",components:{IconLeft:Pa,IconRight:fs},props:{onPrev:{type:Function},onNext:{type:Function}},setup(){return{prefixCls:de("image-preview-arrow")}}});function spe(e,t,n,i,o,s){const r=Pe("icon-left"),a=Pe("icon-right");return R(),X("div",{class:G(e.prefixCls)},[B("div",{class:G([`${e.prefixCls}-left`,{[`${e.prefixCls}-disabled`]:!e.onPrev}]),onClick:t[0]||(t[0]=u=>{u.preventDefault(),e.onPrev&&e.onPrev()})},[O(r)],2),B("div",{class:G([`${e.prefixCls}-right`,{[`${e.prefixCls}-disabled`]:!e.onNext}]),onClick:t[1]||(t[1]=u=>{u.preventDefault(),e.onNext&&e.onNext()})},[O(a)],2)],2)}var ape=ye(ope,[["render",spe]]);function lpe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var lC=se({name:"ImagePreviewAction",components:{Tooltip:us},inheritAttrs:!1,props:{name:{type:String},disabled:{type:Boolean}},setup(e,{slots:t,attrs:n}){const i=de("image-preview-toolbar-action");return()=>{var o;const{name:s,disabled:r}=e,a=(o=t.default)==null?void 0:o.call(t);if(!a||!a.length)return null;const u=O("div",Qe({class:[`${i}`,{[`${i}-disabled`]:r}],onMousedown:c=>{c.preventDefault()}},n),[O("span",{class:`${i}-content`},[a])]);return s?O(us,{class:`${i}-tooltip`,content:s},lpe(u)?u:{default:()=>[u]}):u}}}),cpe=se({name:"ImagePreviewToolbar",components:{RenderFunction:jl,PreviewAction:lC},props:{actions:{type:Array,default:()=>[]},actionsLayout:{type:Array,default:()=>[]}},setup(e){const{actions:t,actionsLayout:n}=lt(e),i=de("image-preview-toolbar"),o=P(()=>{const s=new Set(n.value),r=u=>s.has(u.key);return t.value.filter(r).sort((u,c)=>{const l=n.value.indexOf(u.key),g=n.value.indexOf(c.key);return l>g?1:-1})});return{prefixCls:i,resultActions:o}}});function upe(e,t,n,i,o,s){const r=Pe("RenderFunction"),a=Pe("PreviewAction");return R(),X("div",{class:G(e.prefixCls)},[(R(!0),X(ft,null,dn(e.resultActions,u=>(R(),We(a,{key:u.key,name:u.name,disabled:u.disabled,onClick:u.onClick},{default:Ve(()=>[O(r,{"render-func":u.content},null,8,["render-func"])]),_:2},1032,["name","disabled","onClick"]))),128)),He(e.$slots,"default")],2)}var dpe=ye(cpe,[["render",upe]]);function AV(e){const t=he(e||"beforeLoad"),n=P(()=>t.value==="beforeLoad"),i=P(()=>t.value==="loading"),o=P(()=>t.value==="error"),s=P(()=>t.value==="loaded");return{status:t,isBeforeLoad:n,isLoading:i,isError:o,isLoaded:s,setLoadStatus:r=>{t.value=r}}}function fpe(e,t,n,i,o){let s=n,r=i;return n&&(e.width>t.width?s=0:(t.left>e.left&&(s-=Math.abs(e.left-t.left)/o),t.right<e.right&&(s+=Math.abs(e.right-t.right)/o))),i&&(e.height>t.height?r=0:(t.top>e.top&&(r-=Math.abs(e.top-t.top)/o),t.bottom<e.bottom&&(r+=Math.abs(e.bottom-t.bottom)/o))),[s,r]}function hpe(e){const{wrapperEl:t,imageEl:n,scale:i}=lt(e),o=he([0,0]),s=he(!1);let r=0,a=0,u=[0,0];const c=()=>{if(!t.value||!n.value)return;const _=t.value.getBoundingClientRect(),A=n.value.getBoundingClientRect(),[y,d]=fpe(_,A,o.value[0],o.value[1],i.value);(y!==o.value[0]||d!==o.value[1])&&(o.value=[y,d])},l=_=>{_.preventDefault&&_.preventDefault();const A=u[0]+(_.pageX-r)/i.value,y=u[1]+(_.pageY-a)/i.value;o.value=[A,y]},g=_=>{_.preventDefault&&_.preventDefault(),s.value=!1,c(),S()},C=_=>{_.target===_.currentTarget&&(_.preventDefault&&_.preventDefault(),s.value=!0,r=_.pageX,a=_.pageY,u=[...o.value],Nn(window,"mousemove",l,!1),Nn(window,"mouseup",g,!1))};function S(){Qn(window,"mousemove",l,!1),Qn(window,"mouseup",g,!1)}return Xi(_=>{n.value&&Nn(n.value,"mousedown",C),_(()=>{n.value&&Qn(n.value,"mousedown",C),S()})}),gt([i],()=>{fn(()=>c())}),{translate:o,moving:s,resetTranslate(){o.value=[0,0]}}}const ppe=se({name:"IconZoomOut",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-zoom-out`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),mpe=["stroke-width","stroke-linecap","stroke-linejoin"],vpe=B("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15"},null,-1),gpe=[vpe];function ype(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},gpe,14,mpe)}var $4=ye(ppe,[["render",ype]]);const EV=Object.assign($4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+$4.name,$4)}}),bpe=se({name:"IconZoomIn",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-zoom-in`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),kpe=["stroke-width","stroke-linecap","stroke-linejoin"],Cpe=B("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15m7 7V15"},null,-1),Spe=[Cpe];function wpe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Spe,14,kpe)}var A4=ye(bpe,[["render",wpe]]);const MV=Object.assign(A4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+A4.name,A4)}}),_pe=se({name:"IconFullscreen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-fullscreen`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Ipe=["stroke-width","stroke-linecap","stroke-linejoin"],xpe=B("path",{d:"M42 17V9a1 1 0 0 0-1-1h-8M6 17V9a1 1 0 0 1 1-1h8m27 23v8a1 1 0 0 1-1 1h-8M6 31v8a1 1 0 0 0 1 1h8"},null,-1),$pe=[xpe];function Ape(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},$pe,14,Ipe)}var E4=ye(_pe,[["render",Ape]]);const TV=Object.assign(E4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+E4.name,E4)}}),Epe=se({name:"IconRotateLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-rotate-left`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Mpe=["stroke-width","stroke-linecap","stroke-linejoin"],Tpe=B("path",{d:"M10 22a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H11a1 1 0 0 1-1-1V22ZM23 11h11a6 6 0 0 1 6 6v6M22.5 12.893 19.587 11 22.5 9.107v3.786Z"},null,-1),Ppe=[Tpe];function Ope(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Ppe,14,Mpe)}var M4=ye(Epe,[["render",Ope]]);const PV=Object.assign(M4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+M4.name,M4)}}),Lpe=se({name:"IconRotateRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-rotate-right`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Dpe=["stroke-width","stroke-linecap","stroke-linejoin"],Npe=B("path",{d:"M38 22a1 1 0 0 0-1-1H17a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V22ZM25 11H14a6 6 0 0 0-6 6v6M25.5 12.893 28.413 11 25.5 9.107v3.786Z"},null,-1),jpe=[Npe];function zpe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},jpe,14,Dpe)}var T4=ye(Lpe,[["render",zpe]]);const OV=Object.assign(T4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+T4.name,T4)}}),Rpe=se({name:"IconOriginalSize",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-original-size`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Bpe=["stroke-width","stroke-linecap","stroke-linejoin"],Fpe=B("path",{d:"m5.5 11.5 5-2.5h1v32M34 11.5 39 9h1v32"},null,-1),Vpe=B("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),Hpe=B("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z"},null,-1),Wpe=[Fpe,Vpe,Hpe];function Upe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Wpe,14,Bpe)}var P4=ye(Rpe,[["render",Upe]]);const LV=Object.assign(P4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+P4.name,P4)}});function Zpe(e){const{container:t,hidden:n}=lt(e);let i=!1,o={};const s=u=>u.tagName==="BODY"?window.innerWidth-(document.body.clientWidth||document.documentElement.clientWidth):u.offsetWidth-u.clientWidth,r=()=>{if(t.value&&t.value.style.overflow!=="hidden"){const u=t.value.style;i=!0;const c=s(t.value);c&&(o.width=u.width,t.value.style.width=`calc(${t.value.style.width||"100%"} - ${c}px)`),o.overflow=u.overflow,t.value.style.overflow="hidden"}},a=()=>{if(t.value&&i){const u=o;Object.keys(u).forEach(c=>{t.value.style[c]=u[c]})}i=!1,o={}};return Xi(u=>{n.value?r():a(),u(()=>{a()})}),[a,r]}function Gpe(e,t){const{popupContainer:n}=lt(t);return P(()=>(Ai(n.value)?ZB(n.value):n.value)||e)}const zs=[25,33,50,67,75,80,90,100,110,125,150,175,200,250,300,400,500].map(e=>+(e/100).toFixed(2)),DV=zs[0],NV=zs[zs.length-1];function Ype(e=1,t="zoomIn"){let n=zs.indexOf(e);return n===-1&&(n=Kpe(e)),t==="zoomIn"?n===zs.length-1?e:zs[n+1]:n===0?e:zs[n-1]}function Xpe(e,t=1.1,n="zoomIn"){const i=n==="zoomIn"?t:1/t,o=Number.parseFloat((e*i).toFixed(3));return Math.min(NV,Math.max(DV,o))}function Kpe(e){let t=zs.length-1;for(let n=0;n<zs.length;n++){const i=zs[n];if(e===i){t=n;break}if(e<i){const o=zs[n-1];t=o===void 0||Math.abs(o-e)<=Math.abs(i-e)?n-1:n;break}}return t}var Jpe=Object.defineProperty,KD=Object.getOwnPropertySymbols,qpe=Object.prototype.hasOwnProperty,Qpe=Object.prototype.propertyIsEnumerable,JD=(e,t,n)=>t in e?Jpe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eme=(e,t)=>{for(var n in t||(t={}))qpe.call(t,n)&&JD(e,n,t[n]);if(KD)for(var n of KD(t))Qpe.call(t,n)&&JD(e,n,t[n]);return e};const O4=90;var tme=se({name:"ImagePreview",components:{PreviewArrow:ape,PreviewToolbar:dpe,IconLoading:Lr,IconClose:Cr},props:{renderToBody:{type:Boolean,default:!0},src:{type:String},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},actionsLayout:{type:Array,default:()=>["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{type:[Object,String]},inGroup:{type:Boolean,default:!1},groupArrowProps:{type:Object,default:()=>({})},escToClose:{type:Boolean,default:!0},wheelZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},defaultScale:{type:Number,default:1},zoomRate:{type:Number,default:1.1}},emits:["close","update:visible"],setup(e,{emit:t}){const{t:n}=fi(),{src:i,popupContainer:o,visible:s,defaultVisible:r,maskClosable:a,actionsLayout:u,defaultScale:c,zoomRate:l}=lt(e),g=he(),C=he(),S=de("image-preview"),[_,A]=cr(r.value,it({value:s})),y=P(()=>[S,{[`${S}-hide`]:!_.value}]),d=Gpe(document.body,it({popupContainer:o})),v=P(()=>d.value===document.body),{zIndex:m}=Jp("dialog",{visible:_}),f=P(()=>{const Se=v.value?{zIndex:m.value,position:"fixed"}:{zIndex:"inherit",position:"absolute"};return eme({},Se)}),{isLoading:p,isLoaded:h,setLoadStatus:b}=AV(),w=he(0),k=he(c.value),{translate:$,moving:E,resetTranslate:N}=hpe(it({wrapperEl:g,imageEl:C,visible:_,scale:k})),j=he(!1);let z=null;const V=()=>{!j.value&&(j.value=!0),z&&clearTimeout(z),z=setTimeout(()=>{j.value=!1},1e3)};Zpe(it({container:d,hidden:_}));function W(){w.value=0,k.value=c.value,N()}const H=Se=>u.value.includes(Se),U=Se=>{switch(Se.stopPropagation(),Se.preventDefault(),Se.key){case mi.ESC:e.escToClose&&be();break;case mi.ARROW_LEFT:e.groupArrowProps.onPrev&&e.groupArrowProps.onPrev();break;case mi.ARROW_RIGHT:e.groupArrowProps.onNext&&e.groupArrowProps.onNext();break;case mi.ARROW_UP:H("zoomIn")&&ge("zoomIn");break;case mi.ARROW_DOWN:H("zoomOut")&&ge("zoomOut");break;case mi.SPACE:H("originalSize")&&Ie(1);break}},Q=Jd(Se=>{if(Se.preventDefault(),Se.stopPropagation(),!e.wheelZoom)return;const pe=(Se.deltaY||Se.deltaX)>0?"zoomOut":"zoomIn",je=Xpe(k.value,l.value,pe);Ie(je)});let q=!1;const ae=()=>{fn(()=>{var Se;(Se=g==null?void 0:g.value)==null||Se.focus()}),e.keyboard&&!q&&(q=!0,Nn(d.value,"keydown",U))},ne=()=>{q&&(q=!1,Qn(d.value,"keydown",U))};gt([i,_],()=>{_.value?(W(),b("loading"),ae()):ne()});function be(){_.value&&(t("close"),t("update:visible",!1),A(!1))}function te(Se){var fe;(fe=g==null?void 0:g.value)==null||fe.focus(),a.value&&Se.target===Se.currentTarget&&be()}function Ie(Se){k.value!==Se&&(k.value=Se,V())}function $e(){const Se=g.value.getBoundingClientRect(),fe=C.value.getBoundingClientRect(),pe=Se.height/(fe.height/k.value),je=Se.width/(fe.width/k.value),Y=Math.max(pe,je);Ie(Y)}function Me(Se){const pe=Se==="clockwise"?(w.value+O4)%360:w.value===0?360-O4:w.value-O4;w.value=pe}function ge(Se){const fe=Ype(k.value,Se);Ie(fe)}return ei(()=>{ne()}),{prefixCls:S,classNames:y,container:d,wrapperStyles:f,scale:k,translate:$,rotate:w,moving:E,mergedVisible:_,isLoading:p,isLoaded:h,scaleValueVisible:j,refWrapper:g,refImage:C,onWheel:Q,onMaskClick:te,onCloseClick:be,onImgLoad(){b("loaded")},onImgError(){b("error")},actions:P(()=>[{key:"fullScreen",name:n("imagePreview.fullScreen"),content:()=>Wn(TV),onClick:()=>$e()},{key:"rotateRight",name:n("imagePreview.rotateRight"),content:()=>Wn(OV),onClick:()=>Me("clockwise")},{key:"rotateLeft",name:n("imagePreview.rotateLeft"),content:()=>Wn(PV),onClick:()=>Me("counterclockwise")},{key:"zoomIn",name:n("imagePreview.zoomIn"),content:()=>Wn(MV),onClick:()=>ge("zoomIn"),disabled:k.value===NV},{key:"zoomOut",name:n("imagePreview.zoomOut"),content:()=>Wn(EV),onClick:()=>ge("zoomOut"),disabled:k.value===DV},{key:"originalSize",name:n("imagePreview.originalSize"),content:()=>Wn(LV),onClick:()=>Ie(1)}])}}});const nme=["src"];function ime(e,t,n,i,o,s){const r=Pe("IconLoading"),a=Pe("PreviewToolbar"),u=Pe("IconClose"),c=Pe("PreviewArrow");return R(),We(Yp,{to:e.container,disabled:!e.renderToBody},[B("div",{class:G(e.classNames),style:Te(e.wrapperStyles)},[O(Pr,{name:"image-fade",onBeforeEnter:t[0]||(t[0]=l=>l.parentElement&&(l.parentElement.style.display="block")),onAfterLeave:t[1]||(t[1]=l=>l.parentElement&&(l.parentElement.style.display=""))},{default:Ve(()=>[gi(B("div",{class:G(`${e.prefixCls}-mask`)},null,2),[[ki,e.mergedVisible]])]),_:1}),e.mergedVisible?(R(),X("div",{key:0,ref:"refWrapper",tabindex:"0",class:G(`${e.prefixCls}-wrapper`),onClick:t[6]||(t[6]=(...l)=>e.onMaskClick&&e.onMaskClick(...l)),onWheel:t[7]||(t[7]=oo((...l)=>e.onWheel&&e.onWheel(...l),["prevent","stop"]))},[Re(" img "),B("div",{class:G(`${e.prefixCls}-img-container`),style:Te({transform:`scale(${e.scale}, ${e.scale})`}),onClick:t[4]||(t[4]=(...l)=>e.onMaskClick&&e.onMaskClick(...l))},[(R(),X("img",{ref:"refImage",key:e.src,src:e.src,class:G([`${e.prefixCls}-img`,{[`${e.prefixCls}-img-moving`]:e.moving}]),style:Te({transform:`translate(${e.translate[0]}px, ${e.translate[1]}px) rotate(${e.rotate}deg)`}),onLoad:t[2]||(t[2]=(...l)=>e.onImgLoad&&e.onImgLoad(...l)),onError:t[3]||(t[3]=(...l)=>e.onImgError&&e.onImgError(...l))},null,46,nme))],6),Re(" loading "),e.isLoading?(R(),X("div",{key:0,class:G(`${e.prefixCls}-loading`)},[O(r)],2)):Re("v-if",!0),Re(" scale value "),O(Pr,{name:"image-fade"},{default:Ve(()=>[e.scaleValueVisible?(R(),X("div",{key:0,class:G(`${e.prefixCls}-scale-value`)},tt((e.scale*100).toFixed(0))+"% ",3)):Re("v-if",!0)]),_:1}),Re(" toolbar "),e.isLoaded&&e.actionsLayout.length?(R(),We(a,{key:1,actions:e.actions,"actions-layout":e.actionsLayout},{default:Ve(()=>[He(e.$slots,"actions")]),_:3},8,["actions","actions-layout"])):Re("v-if",!0),Re(" close btn "),e.closable?(R(),X("div",{key:2,class:G(`${e.prefixCls}-close-btn`),onClick:t[5]||(t[5]=(...l)=>e.onCloseClick&&e.onCloseClick(...l))},[O(u)],2)):Re("v-if",!0),Re(" group arrow "),e.inGroup?(R(),We(c,Bn(Qe({key:3},e.groupArrowProps)),null,16)):Re("v-if",!0)],34)):Re("v-if",!0)],6)],8,["to","disabled"])}var ih=ye(tme,[["render",ime]]);function qD(e){if(jt(e))return;if(!Le(e)&&/^\d+(%)$/.test(e))return e;const t=parseInt(e,10);return Le(t)?`${t}px`:void 0}const jV=Symbol("PreviewGroupInjectionKey");var rme=Object.defineProperty,QD=Object.getOwnPropertySymbols,ome=Object.prototype.hasOwnProperty,sme=Object.prototype.propertyIsEnumerable,eN=(e,t,n)=>t in e?rme(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tN=(e,t)=>{for(var n in t||(t={}))ome.call(t,n)&&eN(e,n,t[n]);if(QD)for(var n of QD(t))sme.call(t,n)&&eN(e,n,t[n]);return e};let ame=0;const lme=se({name:"Image",components:{IconImageClose:YS,IconLoading:Lr,ImageFooter:rpe,ImagePreview:ih},inheritAttrs:!1,props:{renderToBody:{type:Boolean,default:!0},src:{type:String},width:{type:[String,Number]},height:{type:[String,Number]},title:{type:String},description:{type:String},fit:{type:String},alt:{type:String},hideFooter:{type:[Boolean,String],default:!1},footerPosition:{type:String,default:"inner"},showLoader:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},previewVisible:{type:Boolean,default:void 0},defaultPreviewVisible:{type:Boolean,default:!1},previewProps:{type:Object},footerClass:{type:[String,Array,Object]}},emits:["preview-visible-change","update:previewVisible"],setup(e,{attrs:t,slots:n,emit:i}){const{t:o}=fi(),{height:s,width:r,hideFooter:a,title:u,description:c,src:l,footerPosition:g,defaultPreviewVisible:C,previewVisible:S,preview:_,previewProps:A}=lt(e),y=Dt(jV,void 0),d=de("image"),v=he(),{isLoaded:m,isError:f,isLoading:p,setLoadStatus:h}=AV(),b=P(()=>({width:qD(r==null?void 0:r.value),height:qD(s==null?void 0:s.value)})),w=P(()=>e.fit?{objectFit:e.fit}:{}),k=P(()=>[`${d}`,{[`${d}-loading`]:p.value,[`${d}-loading-error`]:f.value,[`${d}-with-footer-inner`]:m&&E&&g.value==="inner",[`${d}-with-footer-outer`]:m&&E&&g.value==="outer"},t.class]),$=P(()=>[b.value,t.style]),E=P(()=>u!=null&&u.value||c!=null&&c.value||n.extra?Gr(a.value)?!a.value&&m.value:a.value==="never":!1),N=P(()=>kr(t,["class","style"])),[j,z]=cr(C.value,it({value:S})),V=P(()=>!(y!=null&&y.preview)&&_.value);Xi(()=>{f1||!v.value||(v.value.src=l==null?void 0:l.value,h("loading"))});const W=ame++;Xi(ae=>{var ne,be,te;const Ie=(te=y==null?void 0:y.registerImageUrl)==null?void 0:te.call(y,W,((be=(ne=A==null?void 0:A.value)==null?void 0:ne.src)!=null?be:l==null?void 0:l.value)||"",_.value);ae(()=>{Ie==null||Ie()})});function H(){h("loaded")}function U(){h("error")}function Q(){_.value&&(y!=null&&y.preview?y.preview(W):(i("preview-visible-change",!0),z(!0)))}function q(){i("preview-visible-change",!1),z(!1)}return{t:o,refImg:v,prefixCls:d,wrapperClassNames:k,wrapperStyles:$,showFooter:E,imgProps:N,imgStyle:b,isLoaded:m,isError:f,isLoading:p,mergedPreviewVisible:j,mergePreview:V,onImgLoaded:H,onImgLoadError:U,onImgClick:Q,onPreviewClose:q,fitStyle:w}}}),cme=["title","alt"];function ume(e,t,n,i,o,s){const r=Pe("IconImageClose"),a=Pe("IconLoading"),u=Pe("ImageFooter"),c=Pe("ImagePreview");return R(),X("div",{class:G(e.wrapperClassNames),style:Te(e.wrapperStyles)},[B("img",Qe({ref:"refImg",class:`${e.prefixCls}-img`},e.imgProps,{style:tN(tN({},e.imgStyle),e.fitStyle),title:e.title,alt:e.alt,onLoad:t[0]||(t[0]=(...l)=>e.onImgLoaded&&e.onImgLoaded(...l)),onError:t[1]||(t[1]=(...l)=>e.onImgLoadError&&e.onImgLoadError(...l)),onClick:t[2]||(t[2]=(...l)=>e.onImgClick&&e.onImgClick(...l))}),null,16,cme),e.isLoaded?Re("v-if",!0):(R(),X("div",{key:0,class:G(`${e.prefixCls}-overlay`)},[e.isError?He(e.$slots,"error",{key:0},()=>[B("div",{class:G(`${e.prefixCls}-error`)},[B("div",{class:G(`${e.prefixCls}-error-icon`)},[He(e.$slots,"error-icon",{},()=>[O(r)])],2),e.alt||e.description?(R(),X("div",{key:0,class:G(`${e.prefixCls}-error-alt`)},tt(e.alt||e.description),3)):Re("v-if",!0)],2)]):Re("v-if",!0),e.isLoading&&(e.showLoader||e.$slots.loader)?He(e.$slots,"loader",{key:1},()=>[B("div",{class:G([`${e.prefixCls}-loader`])},[B("div",{class:G(`${e.prefixCls}-loader-spin`)},[O(a),B("div",{class:G(`${e.prefixCls}-loader-spin-text`)},tt(e.t("image.loading")),3)],2)],2)]):Re("v-if",!0)],2)),e.showFooter?(R(),We(u,{key:1,class:G(e.footerClass),"prefix-cls":e.prefixCls,title:e.title,description:e.description},ti({_:2},[e.$slots.extra?{name:"extra",fn:Ve(()=>[He(e.$slots,"extra")])}:void 0]),1032,["class","prefix-cls","title","description"])):Re("v-if",!0),e.isLoaded&&e.mergePreview?(R(),We(c,Qe({key:2,src:e.src},e.previewProps,{visible:e.mergedPreviewVisible,"render-to-body":e.renderToBody,onClose:e.onPreviewClose}),{actions:Ve(()=>[He(e.$slots,"preview-actions")]),_:3},16,["src","visible","render-to-body","onClose"])):Re("v-if",!0)],6)}var L4=ye(lme,[["render",ume]]),dme=se({name:"ImagePreviewGroup",components:{ImagePreview:ih},inheritAttrs:!1,props:{renderToBody:{type:Boolean,default:!0},srcList:{type:Array},current:{type:Number},defaultCurrent:{type:Number,default:0},infinite:{type:Boolean,default:!1},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},actionsLayout:{type:Array,default:()=>["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{type:[String,Object]}},emits:["change","update:current","visible-change","update:visible"],setup(e,{emit:t}){const{srcList:n,visible:i,defaultVisible:o,current:s,defaultCurrent:r,infinite:a}=lt(e),[u,c]=cr(o.value,it({value:i})),l=$=>{$!==u.value&&(t("visible-change",$),t("update:visible",$),c($))},g=P(()=>new Map(Kt(n==null?void 0:n.value)?n==null?void 0:n.value.map(($,E)=>[E,{url:$,canPreview:!0}]):[])),C=he(new Map(g.value||[])),S=P(()=>Array.from(C.value.keys())),_=P(()=>S.value.length);function A($,E,N){return g.value.has($)||C.value.set($,{url:E,canPreview:N}),function(){g.value.has($)||C.value.delete($)}}gt(g,()=>{C.value=new Map(g.value||[])});const[y,d]=cr(r.value,it({value:s})),v=$=>{$!==y.value&&(t("change",$),t("update:current",$),d($))},m=P(()=>S.value[y.value]),f=$=>{const E=S.value.indexOf($);E!==y.value&&v(E)},p=P(()=>{var $;return($=C.value.get(m.value))==null?void 0:$.url});cn(jV,it({registerImageUrl:A,preview:$=>{l(!0),f($)}}));const h=P(()=>{const $=(N,j)=>{var z;for(let V=N;V<=j;V++){const W=S.value[V];if((z=C.value.get(W))!=null&&z.canPreview)return V}},E=$(y.value+1,_.value-1);return jt(E)&&a.value?$(0,y.value-1):E}),b=P(()=>{const $=(N,j)=>{var z;for(let V=N;V>=j;V--){const W=S.value[V];if((z=C.value.get(W))!=null&&z.canPreview)return V}},E=$(y.value-1,0);return jt(E)&&a.value?$(_.value-1,y.value+1):E}),w=P(()=>jt(b.value)?void 0:()=>{!jt(b.value)&&v(b.value)}),k=P(()=>jt(h.value)?void 0:()=>{!jt(h.value)&&v(h.value)});return{mergedVisible:u,currentUrl:p,prevIndex:b,nextIndex:h,onClose(){l(!1)},groupArrowProps:it({onPrev:w,onNext:k})}}}),fme=Object.defineProperty,hme=Object.defineProperties,pme=Object.getOwnPropertyDescriptors,nN=Object.getOwnPropertySymbols,mme=Object.prototype.hasOwnProperty,vme=Object.prototype.propertyIsEnumerable,iN=(e,t,n)=>t in e?fme(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gme=(e,t)=>{for(var n in t||(t={}))mme.call(t,n)&&iN(e,n,t[n]);if(nN)for(var n of nN(t))vme.call(t,n)&&iN(e,n,t[n]);return e},yme=(e,t)=>hme(e,pme(t));function bme(e,t,n,i,o,s){const r=Pe("ImagePreview");return R(),X(ft,null,[He(e.$slots,"default"),O(r,Qe(yme(gme({},e.$attrs),{groupArrowProps:e.groupArrowProps}),{"in-group":"",src:e.currentUrl,visible:e.mergedVisible,"mask-closable":e.maskClosable,closable:e.closable,"actions-layout":e.actionsLayout,"popup-container":e.popupContainer,"render-to-body":e.renderToBody,onClose:e.onClose}),ti({_:2},[e.$slots.actions?{name:"actions",fn:Ve(()=>[He(e.$slots,"actions",{url:e.currentUrl})])}:void 0]),1040,["src","visible","mask-closable","closable","actions-layout","popup-container","render-to-body","onClose"])],64)}var pv=ye(dme,[["render",bme]]);const kme=Object.assign(L4,{Preview:ih,PreviewGroup:pv,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+L4.name,L4),e.component(n+ih.name,ih),e.component(n+pv.name,pv),e.component(n+lC.name,lC)}}),zV=Symbol("LayoutSiderInjectionKey"),RV=Symbol("SiderInjectionKey");var Cme=se({name:"Layout",props:{hasSider:{type:Boolean}},setup(e){const t=he([]),n=de("layout"),i=P(()=>[n,{[`${n}-has-sider`]:e.hasSider||t.value.length}]);return cn(zV,{onSiderMount:o=>t.value.push(o),onSiderUnMount:o=>{t.value=t.value.filter(s=>s!==o)}}),{classNames:i}}});function Sme(e,t,n,i,o,s){return R(),X("section",{class:G(e.classNames)},[He(e.$slots,"default")],2)}var D4=ye(Cme,[["render",Sme]]);const wme=se({name:"LayoutHeader",setup(){return{classNames:[de("layout-header")]}}});function _me(e,t,n,i,o,s){return R(),X("header",{class:G(e.classNames)},[He(e.$slots,"default")],2)}var wb=ye(wme,[["render",_me]]);const Ime=se({name:"LayoutContent",setup(){return{classNames:[de("layout-content")]}}});function xme(e,t,n,i,o,s){return R(),X("main",{class:G(e.classNames)},[He(e.$slots,"default")],2)}var _b=ye(Ime,[["render",xme]]);const $me=se({name:"LayoutFooter",setup(){return{classNames:[de("layout-footer")]}}});function Ame(e,t,n,i,o,s){return R(),X("footer",{class:G(e.classNames)},[He(e.$slots,"default")],2)}var Ib=ye($me,[["render",Ame]]);const Eme=se({name:"IconDragDot",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-drag-dot`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Mme=["stroke-width","stroke-linecap","stroke-linejoin"],Tme=B("path",{d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z",fill:"currentColor",stroke:"none"},null,-1),Pme=B("path",{d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z"},null,-1),Ome=[Tme,Pme];function Lme(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Ome,14,Mme)}var N4=ye(Eme,[["render",Lme]]);const BV=Object.assign(N4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+N4.name,N4)}}),Dme=se({name:"IconDragDotVertical",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-drag-dot-vertical`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Nme=["stroke-width","stroke-linecap","stroke-linejoin"],jme=B("path",{d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z",fill:"currentColor",stroke:"none"},null,-1),zme=B("path",{d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z"},null,-1),Rme=[jme,zme];function Bme(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Rme,14,Nme)}var j4=ye(Dme,[["render",Bme]]);const sw=Object.assign(j4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+j4.name,j4)}});var Fme=se({name:"ResizeTrigger",components:{ResizeObserver:Us,IconDragDot:BV,IconDragDotVertical:sw},props:{prefixCls:{type:String,required:!0},direction:{type:String,default:"horizontal"}},emits:["resize"],setup(e,{emit:t}){const{direction:n,prefixCls:i}=lt(e),o=P(()=>(n==null?void 0:n.value)==="horizontal");return{classNames:P(()=>[i.value,{[`${i.value}-horizontal`]:o.value,[`${i.value}-vertical`]:!o.value}]),onResize:a=>{t("resize",a)},isHorizontal:o}}});function Vme(e,t,n,i,o,s){const r=Pe("IconDragDot"),a=Pe("IconDragDotVertical"),u=Pe("ResizeObserver");return R(),We(u,{onResize:e.onResize},{default:Ve(()=>[B("div",{class:G(e.classNames)},[Re(" @slot 自定义内容 "),He(e.$slots,"default",{},()=>[B("div",{class:G(`${e.prefixCls}-icon-wrapper`)},[Re(" @slot 自定义 icon "),He(e.$slots,"icon",{},()=>[e.isHorizontal?(R(),We(r,{key:0,class:G(`${e.prefixCls}-icon`)},null,8,["class"])):(R(),We(a,{key:1,class:G(`${e.prefixCls}-icon`)},null,8,["class"]))])],2)])],2)]),_:3},8,["onResize"])}var FV=ye(Fme,[["render",Vme]]),Hme=Object.defineProperty,rN=Object.getOwnPropertySymbols,Wme=Object.prototype.hasOwnProperty,Ume=Object.prototype.propertyIsEnumerable,oN=(e,t,n)=>t in e?Hme(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,z4=(e,t)=>{for(var n in t||(t={}))Wme.call(t,n)&&oN(e,n,t[n]);if(rN)for(var n of rN(t))Ume.call(t,n)&&oN(e,n,t[n]);return e};const VV="left",HV="right",_P="top",IP="bottom",Zme=[VV,HV,_P,IP];function sN(e,t){if(e===0)return 0;const n=e-t;return n<=0?0:n}function R4(e){return[_P,IP].indexOf(e)>-1}const Gme=se({name:"ResizeBox",components:{ResizeTrigger:FV},inheritAttrs:!1,props:{width:{type:Number},height:{type:Number},component:{type:String,default:"div"},directions:{type:Array,default:()=>["right"]}},emits:{"update:width":e=>!0,"update:height":e=>!0,movingStart:e=>!0,moving:(e,t)=>!0,movingEnd:e=>!0},setup(e,{emit:t}){const{height:n,width:i,directions:o}=lt(e),[s,r]=cr(null,it({value:i})),[a,u]=cr(null,it({value:n})),c=he(),l=it({}),g=de("resizebox"),C=P(()=>[g]),S=P(()=>z4(z4(z4({},Le(s.value)?{width:`${s.value}px`}:{}),Le(a.value)?{height:`${a.value}px`}:{}),l)),_=P(()=>o.value.filter(f=>Zme.includes(f))),A={direction:"",startPageX:0,startPageY:0,startWidth:0,startHeight:0,moving:!1,padding:{left:0,right:0,top:0,bottom:0}};function y(f){if(!A.moving)return;const{startPageX:p,startPageY:h,startWidth:b,startHeight:w,direction:k}=A;let $=b,E=w;const N=f.pageX-p,j=f.pageY-h;switch(k){case VV:$=b-N,r($),t("update:width",$);break;case HV:$=b+N,r($),t("update:width",$);break;case _P:E=w-j,u(E),t("update:height",E);break;case IP:E=w+j,u(E),t("update:height",E);break}t("moving",{width:$,height:E},f)}function d(f){A.moving=!1,Qn(window,"mousemove",y),Qn(window,"mouseup",d),Qn(window,"contextmenu",d),document.body.style.cursor="default",t("movingEnd",f)}function v(f,p){var h,b;t("movingStart",p),A.moving=!0,A.startPageX=p.pageX,A.startPageY=p.pageY,A.direction=f;const{top:w,left:k,right:$,bottom:E}=A.padding;A.startWidth=sN(((h=c.value)==null?void 0:h.clientWidth)||0,k+$),A.startHeight=sN(((b=c.value)==null?void 0:b.clientHeight)||0,w+E),Nn(window,"mousemove",y),Nn(window,"mouseup",d),Nn(window,"contextmenu",d),document.body.style.cursor=R4(f)?"row-resize":"col-resize"}function m(f,p){const{width:h,height:b}=p.contentRect,w=R4(f)?b:h;A.padding[f]=w,l[`padding-${f}`]=`${w}px`}return{prefixCls:g,classNames:C,styles:S,wrapperRef:c,onMoveStart:v,isHorizontal:R4,allowDirections:_,onTiggerResize:m}}});function Yme(e,t,n,i,o,s){const r=Pe("ResizeTrigger");return R(),We(Zr(e.component),Qe({ref:"wrapperRef",class:e.classNames},e.$attrs,{style:e.styles}),{default:Ve(()=>[He(e.$slots,"default"),(R(!0),X(ft,null,dn(e.allowDirections,a=>(R(),We(r,{key:a,"prefix-cls":`${e.prefixCls}-trigger`,class:G(`${e.prefixCls}-direction-${a}`),direction:e.isHorizontal(a)?"horizontal":"vertical",onMousedown:u=>{e.onMoveStart(a,u)},onResize:u=>{e.onTiggerResize(a,u)}},ti({default:Ve(()=>[e.$slots["resize-trigger"]?He(e.$slots,"resize-trigger",{key:0,direction:a}):Re("v-if",!0)]),_:2},[e.$slots["resize-trigger-icon"]?{name:"icon",fn:Ve(()=>[He(e.$slots,"resize-trigger-icon",{direction:a})])}:void 0]),1032,["prefix-cls","class","direction","onMousedown","onResize"]))),128))]),_:3},16,["class","style"])}var B4=ye(Gme,[["render",Yme]]);const WV=Object.assign(B4,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+B4.name,B4)}});function UV(e,t){const n=P(()=>oi(e)?e.value:e);let i="";Yt(()=>{i=oC.subscribe((o,s)=>{n.value&&(!s||s===n.value)&&t(!!o[n.value])})}),$i(()=>{i&&oC.unsubscribe(i)})}const Xme=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();var Kme=se({name:"LayoutSider",components:{IconLeft:Pa,IconRight:fs,ResizeBox:WV},props:{theme:{type:String,default:"light"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean},collapsible:{type:Boolean},width:{type:Number,default:200},collapsedWidth:{type:Number,default:48},reverseArrow:{type:Boolean},breakpoint:{type:String},resizeDirections:{type:Array,default:void 0},hideTrigger:{type:Boolean}},emits:["collapse","update:collapsed","breakpoint"],setup(e,{emit:t}){const{theme:n,collapsed:i,defaultCollapsed:o,collapsible:s,hideTrigger:r,breakpoint:a,collapsedWidth:u,resizeDirections:c}=lt(e),[l,g]=cr(o.value,it({value:i})),C=P(()=>c.value?"ResizeBox":"div"),S=P(()=>s.value&&!r.value),_=de("layout-sider"),A=P(()=>[_,{[`${_}-light`]:n.value==="light",[`${_}-has-trigger`]:S.value,[`${_}-collapsed`]:i.value}]),y=P(()=>{const{width:p,collapsedWidth:h}=e,b=l.value?h:p;return Le(b)?`${b}px`:String(b)}),d=P(()=>[`${_}-trigger`,{[`${_}-trigger-light`]:n.value==="light"}]),v=()=>{const p=!l.value;g(p),t("update:collapsed",p),t("collapse",p,"clickTrigger")};UV(a,p=>{const h=!p;h!==l.value&&(g(h),t("update:collapsed",h),t("collapse",h,"responsive"),t("breakpoint",h))});const m=Xme("__arco_layout_sider"),f=Dt(zV,void 0);return Yt(()=>{var p;(p=f==null?void 0:f.onSiderMount)==null||p.call(f,m)}),$i(()=>{var p;(p=f==null?void 0:f.onSiderUnMount)==null||p.call(f,m)}),cn(RV,it({theme:n,collapsed:l,collapsedWidth:u})),{componentTag:C,prefixCls:_,classNames:A,triggerClassNames:d,localCollapsed:l,siderWidth:y,showTrigger:S,toggleTrigger:v}}});const Jme={key:0},qme={key:1};function Qme(e,t,n,i,o,s){const r=Pe("IconLeft"),a=Pe("IconRight");return R(),We(Zr(e.componentTag),Qe({class:e.classNames,style:{width:e.siderWidth}},e.resizeDirections?{directions:e.resizeDirections}:{}),{default:Ve(()=>[B("div",{class:G(`${e.prefixCls}-children`)},[He(e.$slots,"default")],2),e.showTrigger?(R(),X("div",{key:0,class:G(e.triggerClassNames),style:Te({width:e.siderWidth}),onClick:t[0]||(t[0]=(...u)=>e.toggleTrigger&&e.toggleTrigger(...u))},[He(e.$slots,"trigger",{collapsed:e.localCollapsed},()=>[e.reverseArrow?(R(),X("div",qme,[e.localCollapsed?(R(),We(r,{key:0})):(R(),We(a,{key:1}))])):(R(),X("div",Jme,[e.localCollapsed?(R(),We(a,{key:1})):(R(),We(r,{key:0}))]))])],6)):Re("v-if",!0)]),_:3},16,["class","style"])}var xb=ye(Kme,[["render",Qme]]);const eve=Object.assign(D4,{Header:wb,Content:_b,Footer:Ib,Sider:xb,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+D4.name,D4),e.component(n+wb.name,wb),e.component(n+_b.name,_b),e.component(n+Ib.name,Ib),e.component(n+xb.name,xb)}}),tve=se({name:"Pager",props:{pageNumber:{type:Number},current:{type:Number},disabled:{type:Boolean,default:!1},style:{type:Object},activeStyle:{type:Object}},emits:["click"],setup(e,{emit:t}){const n=de("pagination-item"),i=P(()=>e.current===e.pageNumber),o=a=>{e.disabled||t("click",e.pageNumber,a)},s=P(()=>[n,{[`${n}-active`]:i.value}]),r=P(()=>i.value?e.activeStyle:e.style);return{prefixCls:n,cls:s,mergedStyle:r,handleClick:o}}});function nve(e,t,n,i,o,s){return R(),X("li",{class:G(e.cls),style:Te(e.mergedStyle),onClick:t[0]||(t[0]=(...r)=>e.handleClick&&e.handleClick(...r))},[He(e.$slots,"default",{page:e.pageNumber},()=>[pt(tt(e.pageNumber),1)])],6)}var ive=ye(tve,[["render",nve]]);const ZV=(e,{min:t,max:n})=>e<t?t:e>n?n:e,rve=se({name:"StepPager",components:{IconLeft:Pa,IconRight:fs},props:{pages:{type:Number,required:!0},current:{type:Number,required:!0},type:{type:String,required:!0},disabled:{type:Boolean,default:!1},simple:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=de("pagination-item"),i=e.type==="next",o=P(()=>e.disabled?e.disabled:!e.pages||i&&e.current===e.pages?!0:!i&&e.current<=1),s=P(()=>ZV(e.current+(i?1:-1),{min:1,max:e.pages})),r=u=>{o.value||t("click",s.value)},a=P(()=>[n,`${n}-${e.type}`,{[`${n}-disabled`]:o.value}]);return{prefixCls:n,cls:a,isNext:i,handleClick:r}}});function ove(e,t,n,i,o,s){const r=Pe("icon-right"),a=Pe("icon-left");return R(),We(Zr(e.simple?"span":"li"),{class:G(e.cls),onClick:e.handleClick},{default:Ve(()=>[He(e.$slots,"default",{type:e.isNext?"next":"previous"},()=>[e.isNext?(R(),We(r,{key:0})):(R(),We(a,{key:1}))])]),_:3},8,["class","onClick"])}var aN=ye(rve,[["render",ove]]);const sve=se({name:"EllipsisPager",components:{IconMore:XS},props:{current:{type:Number,required:!0},step:{type:Number,default:5},pages:{type:Number,required:!0}},emits:["click"],setup(e,{emit:t}){const n=de("pagination-item"),i=P(()=>ZV(e.current+e.step,{min:1,max:e.pages})),o=r=>{t("click",i.value)},s=P(()=>[n,`${n}-ellipsis`]);return{prefixCls:n,cls:s,handleClick:o}}});function ave(e,t,n,i,o,s){const r=Pe("icon-more");return R(),X("li",{class:G(e.cls),onClick:t[0]||(t[0]=(...a)=>e.handleClick&&e.handleClick(...a))},[He(e.$slots,"default",{},()=>[O(r)])],2)}var lve=ye(sve,[["render",ave]]);const cve=se({name:"PageJumper",components:{InputNumber:g1},props:{current:{type:Number,required:!0},simple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},pages:{type:Number,required:!0},size:{type:String},onChange:{type:Function}},emits:["change"],setup(e,{emit:t}){const n=de("pagination-jumper"),{t:i}=fi(),o=he(e.simple?e.current:void 0),s=u=>{const c=parseInt(u.toString(),10);return Number.isNaN(c)?void 0:String(c)},r=u=>{t("change",o.value),fn(()=>{e.simple||(o.value=void 0)})};gt(()=>e.current,u=>{e.simple&&u!==o.value&&(o.value=u)});const a=P(()=>[n,{[`${n}-simple`]:e.simple}]);return{prefixCls:n,cls:a,t:i,inputValue:o,handleChange:r,handleFormatter:s}}});function uve(e,t,n,i,o,s){const r=Pe("input-number");return R(),X("span",{class:G(e.cls)},[e.simple?Re("v-if",!0):(R(),X("span",{key:0,class:G([`${e.prefixCls}-prepend`,`${e.prefixCls}-text-goto`])},[He(e.$slots,"jumper-prepend",{},()=>[pt(tt(e.t("pagination.goto")),1)])],2)),O(r,{modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=a=>e.inputValue=a),class:G(`${e.prefixCls}-input`),min:1,max:e.pages,size:e.size,disabled:e.disabled,"hide-button":"",formatter:e.handleFormatter,onChange:e.handleChange},null,8,["modelValue","class","max","size","disabled","formatter","onChange"]),e.$slots["jumper-append"]?(R(),X("span",{key:1,class:G(`${e.prefixCls}-append`)},[He(e.$slots,"jumper-append")],2)):Re("v-if",!0),e.simple?(R(),X(ft,{key:2},[B("span",{class:G(`${e.prefixCls}-separator`)},"/",2),B("span",{class:G(`${e.prefixCls}-total-page`)},tt(e.pages),3)],64)):Re("v-if",!0)],2)}var lN=ye(cve,[["render",uve]]);const dve=se({name:"PageOptions",components:{ArcoSelect:Rv},props:{sizeOptions:{type:Array,required:!0},pageSize:Number,disabled:Boolean,size:{type:String},onChange:{type:Function},selectProps:{type:Object}},emits:["change"],setup(e,{emit:t}){const n=de("pagination-options"),{t:i}=fi(),o=P(()=>e.sizeOptions.map(r=>({value:r,label:`${r} ${i("pagination.countPerPage")}`})));return{prefixCls:n,options:o,handleChange:r=>{t("change",r)}}}});function fve(e,t,n,i,o,s){const r=Pe("arco-select");return R(),X("span",{class:G(e.prefixCls)},[O(r,Qe({"model-value":e.pageSize,options:e.options,size:e.size,disabled:e.disabled},e.selectProps,{onChange:e.handleChange}),null,16,["model-value","options","size","disabled","onChange"])],2)}var hve=ye(dve,[["render",fve]]),F4=se({name:"Pagination",props:{total:{type:Number,required:!0},current:Number,defaultCurrent:{type:Number,default:1},pageSize:Number,defaultPageSize:{type:Number,default:10},disabled:{type:Boolean,default:!1},hideOnSinglePage:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!1},showMore:{type:Boolean,default:!1},showJumper:{type:Boolean,default:!1},showPageSize:{type:Boolean,default:!1},pageSizeOptions:{type:Array,default:()=>[10,20,30,40,50]},pageSizeProps:{type:Object},size:{type:String},pageItemStyle:{type:Object},activePageItemStyle:{type:Object},baseSize:{type:Number,default:6},bufferSize:{type:Number,default:2},autoAdjust:{type:Boolean,default:!0}},emits:{"update:current":e=>!0,"update:pageSize":e=>!0,change:e=>!0,pageSizeChange:e=>!0},setup(e,{emit:t,slots:n}){const i=de("pagination"),{t:o}=fi(),{disabled:s,pageItemStyle:r,activePageItemStyle:a,size:u}=lt(e),{mergedSize:c}=Sr(u),l=he(e.defaultCurrent),g=he(e.defaultPageSize),C=P(()=>{var h;return(h=e.current)!=null?h:l.value}),S=P(()=>{var h;return(h=e.pageSize)!=null?h:g.value}),_=P(()=>Math.ceil(e.total/S.value)),A=h=>{h!==C.value&&Le(h)&&!e.disabled&&(l.value=h,t("update:current",h),t("change",h))},y=h=>{g.value=h,t("update:pageSize",h),t("pageSizeChange",h)},d=it({current:C,pages:_,disabled:s,style:r,activeStyle:a,onClick:A}),v=(h,b={})=>h==="more"?O(lve,Qe(b,d),{default:n["page-item-ellipsis"]}):h==="previous"?O(aN,Qe({type:"previous"},b,d),{default:n["page-item-step"]}):h==="next"?O(aN,Qe({type:"next"},b,d),{default:n["page-item-step"]}):O(ive,Qe(b,d),{default:n["page-item"]}),m=P(()=>{const h=[];if(_.value<e.baseSize+e.bufferSize*2)for(let b=1;b<=_.value;b++)h.push(v("page",{key:b,pageNumber:b}));else{let b=1,w=_.value,k=!1,$=!1;C.value>2+e.bufferSize&&(k=!0,b=Math.min(C.value-e.bufferSize,_.value-2*e.bufferSize)),C.value<_.value-(e.bufferSize+1)&&($=!0,w=Math.max(C.value+e.bufferSize,2*e.bufferSize+1)),k&&(h.push(v("page",{key:1,pageNumber:1})),h.push(v("more",{key:"left-ellipsis-pager",step:-(e.bufferSize*2+1)})));for(let E=b;E<=w;E++)h.push(v("page",{key:E,pageNumber:E}));$&&(h.push(v("more",{key:"right-ellipsis-pager",step:e.bufferSize*2+1})),h.push(v("page",{key:_.value,pageNumber:_.value})))}return h}),f=()=>e.simple?O("span",{class:`${i}-simple`},[v("previous",{simple:!0}),O(lN,{disabled:e.disabled,current:C.value,size:c.value,pages:_.value,simple:!0,onChange:A},null),v("next",{simple:!0})]):O("ul",{class:`${i}-list`},[v("previous",{simple:!0}),m.value,e.showMore&&v("more",{key:"more",step:e.bufferSize*2+1}),v("next",{simple:!0})]);gt(S,(h,b)=>{if(e.autoAdjust&&h!==b&&C.value>1){const w=b*(C.value-1)+1,k=Math.ceil(w/h);k!==C.value&&(l.value=k,t("update:current",k),t("change",k))}}),gt(_,(h,b)=>{if(e.autoAdjust&&h!==b&&C.value>1&&C.value>h){const w=Math.max(h,1);l.value=w,t("update:current",w),t("change",w)}});const p=P(()=>[i,`${i}-size-${c.value}`,{[`${i}-simple`]:e.simple,[`${i}-disabled`]:e.disabled}]);return()=>{var h,b;return e.hideOnSinglePage&&_.value<=1?null:O("div",{class:p.value},[e.showTotal&&O("span",{class:`${i}-total`},[(b=(h=n.total)==null?void 0:h.call(n,{total:e.total}))!=null?b:o("pagination.total",e.total)]),f(),e.showPageSize&&O(hve,{disabled:e.disabled,sizeOptions:e.pageSizeOptions,pageSize:S.value,size:c.value,onChange:y,selectProps:e.pageSizeProps},null),!e.simple&&e.showJumper&&O(lN,{disabled:e.disabled,current:C.value,pages:_.value,size:c.value,onChange:A},{"jumper-prepend":n["jumper-prepend"],"jumper-append":n["jumper-append"]})])}}});const xP=Object.assign(F4,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+F4.name,F4)}}),pve=(e,{emit:t})=>{var n,i;const o=he(rn(e.paginationProps)&&(n=e.paginationProps.defaultCurrent)!=null?n:1),s=he(rn(e.paginationProps)&&(i=e.paginationProps.defaultPageSize)!=null?i:10),r=P(()=>{var l;return rn(e.paginationProps)&&(l=e.paginationProps.current)!=null?l:o.value}),a=P(()=>{var l;return rn(e.paginationProps)&&(l=e.paginationProps.pageSize)!=null?l:s.value});return{current:r,pageSize:a,handlePageChange:l=>{o.value=l,t("pageChange",l)},handlePageSizeChange:l=>{s.value=l,t("pageSizeChange",l)}}};function cN(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var V4=se({name:"List",props:{data:{type:Array},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},split:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},paginationProps:{type:Object},gridProps:{type:Object},maxHeight:{type:[String,Number],default:0},bottomOffset:{type:Number,default:0},virtualListProps:{type:Object},scrollbar:{type:[Object,Boolean],default:!0}},emits:{scroll:()=>!0,reachBottom:()=>!0,pageChange:e=>!0,pageSizeChange:e=>!0},setup(e,{emit:t,slots:n}){const{scrollbar:i}=lt(e),o=de("list"),s=Dt(Or,void 0),{componentRef:r,elementRef:a}=Ff("containerRef"),u=P(()=>e.virtualListProps),{displayScrollbar:c,scrollbarProps:l}=WS(i);let g=0;const C=z=>{const{scrollTop:V,scrollHeight:W,offsetHeight:H}=z.target,U=Math.floor(W-(V+H));V>g&&U<=e.bottomOffset&&t("reachBottom"),t("scroll"),g=V};Yt(()=>{if(a.value){const{scrollTop:z,scrollHeight:V,offsetHeight:W}=a.value;V<=z+W&&t("reachBottom")}});const{current:S,pageSize:_,handlePageChange:A,handlePageSizeChange:y}=pve(e,{emit:t}),d=z=>{if(!e.paginationProps)return z;if(e.paginationProps&&z.length>_.value){const V=(S.value-1)*_.value;return z.slice(V,V+_.value)}return z},v=z=>{let V;if(!e.gridProps)return null;const W=d(z);if(e.gridProps.span){const H=[],U=24/e.gridProps.span;for(let Q=0;Q<W.length;Q+=U){let q;const ae=Q+U,ne=Math.floor(Q/U);H.push(O(Nm.Row,{key:ne,class:`${o}-row`,gutter:e.gridProps.gutter},cN(q=W.slice(Q,ae).map((be,te)=>{var Ie;return O(Nm.Col,{key:`${ne}-${te}`,class:`${o}-col`,span:(Ie=e.gridProps)==null?void 0:Ie.span},{default:()=>{var $e;return[On(be)?be:($e=n.item)==null?void 0:$e.call(n,{item:be,index:te})]}})}))?q:{default:()=>[q]}))}return H}return O(Nm.Row,{class:`${o}-row`,gutter:e.gridProps.gutter},cN(V=W.map((H,U)=>O(Nm.Col,Qe({key:U,class:`${o}-col`},kr(e.gridProps,["gutter"])),{default:()=>{var Q;return[On(H)?H:(Q=n.item)==null?void 0:Q.call(n,{item:H,index:U})]}})))?V:{default:()=>[V]})},m=z=>d(z).map((W,H)=>{var U;return On(W)?W:(U=n.item)==null?void 0:U.call(n,{item:W,index:H})}),f=()=>{const z=n.default?$a(n.default()):e.data;return z&&z.length>0?e.gridProps?v(z):m(z):N()},p=()=>{if(!e.paginationProps)return null;const z=kr(e.paginationProps,["current","pageSize","defaultCurrent","defaultPageSize"]);return O(xP,Qe({class:`${o}-pagination`},z,{current:S.value,pageSize:_.value,onChange:A,onPageSizeChange:y}),null)},h=P(()=>[o,`${o}-${e.size}`,{[`${o}-bordered`]:e.bordered,[`${o}-split`]:e.split,[`${o}-hover`]:e.hoverable}]),b=P(()=>{if(e.maxHeight)return{maxHeight:Le(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight,overflowY:"auto"}}),w=P(()=>[`${o}-content`,{[`${o}-virtual`]:u.value}]),k=he(),$=()=>{var z;const V=d((z=e.data)!=null?z:[]);return V.length?O(Qp,Qe({ref:k,class:w.value,data:V},e.virtualListProps,{onScroll:C}),{item:({item:W,index:H})=>{var U;return(U=n.item)==null?void 0:U.call(n,{item:W,index:H})}}):N()},E=()=>n["scroll-loading"]?O("div",{class:[`${o}-item`,`${o}-scroll-loading`]},[n["scroll-loading"]()]):null,N=()=>{var z,V,W,H,U;return n["scroll-loading"]?null:(U=(H=(z=n.empty)==null?void 0:z.call(n))!=null?H:(W=s==null?void 0:(V=s.slots).empty)==null?void 0:W.call(V,{component:"list"}))!=null?U:O(Nl,null,null)};return{virtualListRef:k,render:()=>{const z=c.value?Gs:"div";return O("div",{class:`${o}-wrapper`},[O(Zs,{class:`${o}-spin`,loading:e.loading},{default:()=>[O(z,Qe({ref:r,class:h.value,style:b.value},l.value,{onScroll:C}),{default:()=>[O("div",{class:`${o}-content-wrapper`},[n.header&&O("div",{class:`${o}-header`},[n.header()]),u.value&&!e.gridProps?O(ft,null,[$(),E()]):O("div",{role:"list",class:w.value},[f(),E()]),n.footer&&O("div",{class:`${o}-footer`},[n.footer()])])]}),p()]})])}}},methods:{scrollIntoView(e){this.virtualListRef&&this.virtualListRef.scrollTo(e)}},render(){return this.render()}}),$b=se({name:"ListItem",props:{actionLayout:{type:String,default:"horizontal"}},setup(e,{slots:t}){const n=de("list-item"),i=()=>{var o;const s=(o=t.actions)==null?void 0:o.call(t);return!s||!s.length?null:O("ul",{class:`${n}-action`},[s.map((r,a)=>O("li",{key:`${n}-action-${a}`},[r]))])};return()=>{var o,s;return O("div",{role:"listitem",class:n},[O("div",{class:`${n}-main`},[(o=t.meta)==null?void 0:o.call(t),O("div",{class:`${n}-content`},[(s=t.default)==null?void 0:s.call(t)]),e.actionLayout==="vertical"&&i()]),e.actionLayout==="horizontal"&&i(),t.extra&&O("div",{class:`${n}-extra`},[t.extra()])])}}});const mve=se({name:"ListItemMeta",props:{title:String,description:String},setup(e,{slots:t}){const n=de("list-item-meta"),i=!!(e.title||e.description||t.title||t.description);return{prefixCls:n,hasContent:i}}});function vve(e,t,n,i,o,s){return R(),X("div",{class:G(e.prefixCls)},[e.$slots.avatar?(R(),X("div",{key:0,class:G(`${e.prefixCls}-avatar`)},[He(e.$slots,"avatar")],2)):Re("v-if",!0),e.hasContent?(R(),X("div",{key:1,class:G(`${e.prefixCls}-content`)},[e.$slots.title||e.title?(R(),X("div",{key:0,class:G(`${e.prefixCls}-title`)},[He(e.$slots,"title",{},()=>[pt(tt(e.title),1)])],2)):Re("v-if",!0),e.$slots.description||e.description?(R(),X("div",{key:1,class:G(`${e.prefixCls}-description`)},[He(e.$slots,"description",{},()=>[pt(tt(e.description),1)])],2)):Re("v-if",!0)],2)):Re("v-if",!0)],2)}var Ab=ye(mve,[["render",vve]]);const GV=Object.assign(V4,{Item:Object.assign($b,{Meta:Ab}),install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+V4.name,V4),e.component(n+$b.name,$b),e.component(n+Ab.name,Ab)}}),gve=["border-width","box-sizing","font-family","font-weight","font-size","font-variant","letter-spacing","line-height","padding-top","padding-bottom","padding-left","padding-right","text-indent","text-rendering","text-transform","white-space","overflow-wrap","width"],hE=e=>{const t={};return gve.forEach(n=>{t[n]=e.getPropertyValue(n)}),t};var yve=Object.defineProperty,uN=Object.getOwnPropertySymbols,bve=Object.prototype.hasOwnProperty,kve=Object.prototype.propertyIsEnumerable,dN=(e,t,n)=>t in e?yve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fN=(e,t)=>{for(var n in t||(t={}))bve.call(t,n)&&dN(e,n,t[n]);if(uN)for(var n of uN(t))kve.call(t,n)&&dN(e,n,t[n]);return e};const Cve=se({name:"Textarea",components:{ResizeObserver:Us,IconHover:ai,IconClose:Cr},inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},placeholder:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},maxLength:{type:[Number,Object],default:0},showWordLimit:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},autoSize:{type:[Boolean,Object],default:!1},wordLength:{type:Function},wordSlice:{type:Function},textareaAttrs:{type:Object}},emits:{"update:modelValue":e=>!0,input:(e,t)=>!0,change:(e,t)=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,attrs:n}){const{disabled:i,error:o,modelValue:s}=lt(e),r=de("textarea"),{mergedDisabled:a,mergedError:u,eventHandlers:c}=li({disabled:i,error:o}),l=he(),g=he(),C=he(),S=he(),_=he(e.defaultValue),A=P(()=>{var ee;return(ee=s.value)!=null?ee:_.value}),[y,d]=JB(l);gt(s,ee=>{(jt(ee)||Xr(ee))&&(_.value="")});const v=P(()=>rn(e.maxLength)&&!!e.maxLength.errorOnly),m=P(()=>rn(e.maxLength)?e.maxLength.length:e.maxLength),f=ee=>{var ce;return Nt(e.wordLength)?e.wordLength(ee):(ce=ee.length)!=null?ce:0},p=P(()=>f(A.value)),h=P(()=>u.value||!!(m.value&&v.value&&p.value>m.value)),b=he(!1),w=he(!1),k=P(()=>e.allowClear&&!a.value&&A.value),$=he(!1),E=he(""),N=()=>{y(),fn(()=>{l.value&&A.value!==l.value.value&&(l.value.value=A.value,d())})},j=(ee,ce=!0)=>{var xe,re;m.value&&!v.value&&f(ee)>m.value&&(ee=(re=(xe=e.wordSlice)==null?void 0:xe.call(e,ee,m.value))!=null?re:ee.slice(0,m.value)),_.value=ee,ce&&t("update:modelValue",ee),N()};let z=A.value;const V=(ee,ce)=>{var xe,re;ee!==z&&(z=ee,t("change",ee,ce),(re=(xe=c.value)==null?void 0:xe.onChange)==null||re.call(xe,ce))},W=ee=>{var ce,xe;w.value=!0,z=A.value,t("focus",ee),(xe=(ce=c.value)==null?void 0:ce.onFocus)==null||xe.call(ce,ee)},H=ee=>{var ce,xe;w.value=!1,t("blur",ee),(xe=(ce=c.value)==null?void 0:ce.onBlur)==null||xe.call(ce,ee),V(A.value,ee)},U=ee=>{var ce,xe;const{value:re}=ee.target;if(ee.type==="compositionend"){if($.value=!1,E.value="",m.value&&!v.value&&A.value.length>=m.value&&f(re)>m.value){N();return}t("input",re,ee),j(re),(xe=(ce=c.value)==null?void 0:ce.onInput)==null||xe.call(ce,ee)}else $.value=!0},Q=ee=>{var ce,xe;const{value:re}=ee.target;if($.value)E.value=re;else{if(m.value&&!v.value&&A.value.length>=m.value&&f(re)>m.value&&ee.inputType==="insertText"){N();return}t("input",re,ee),j(re),(xe=(ce=c.value)==null?void 0:ce.onInput)==null||xe.call(ce,ee)}},q=ee=>{j(""),V("",ee),t("clear",ee)};gt(s,ee=>{ee!==A.value&&j(ee??"",!1)});const ae=ee=>kr(n,Jc),ne=ee=>Ea(n,Jc),be=ne(),te=P(()=>{const ee=fN(fN({},be),e.textareaAttrs);return h.value&&(ee["aria-invalid"]=!0),ee}),Ie=P(()=>[`${r}-wrapper`,{[`${r}-focus`]:w.value,[`${r}-disabled`]:a.value,[`${r}-error`]:h.value,[`${r}-scroll`]:b.value}]);let $e;const Me=he(0),ge=he(0),Se=P(()=>!rn(e.autoSize)||!e.autoSize.minRows?0:e.autoSize.minRows*Me.value+ge.value),fe=P(()=>!rn(e.autoSize)||!e.autoSize.maxRows?0:e.autoSize.maxRows*Me.value+ge.value),pe=()=>{const ee=hE($e);Me.value=Number.parseInt(ee["line-height"]||0,10),ge.value=Number.parseInt(ee["border-width"]||0,10)*2+Number.parseInt(ee["padding-top"]||0,10)+Number.parseInt(ee["padding-bottom"]||0,10),S.value=ee,fn(()=>{var ce;const xe=(ce=C.value)==null?void 0:ce.offsetHeight;let re=xe??0,le="hidden";Se.value&&re<Se.value&&(re=Se.value),fe.value&&re>fe.value&&(re=fe.value,le="auto"),g.value={height:`${re}px`,resize:"none",overflow:le}})};Yt(()=>{l.value&&($e=window.getComputedStyle(l.value),e.autoSize&&pe()),Z()});const je=()=>{e.autoSize&&C.value&&pe(),Z()},Y=ee=>{l.value&&ee.target!==l.value&&(ee.preventDefault(),l.value.focus())},Z=()=>{l.value&&(l.value.scrollHeight>l.value.offsetHeight?b.value||(b.value=!0):b.value&&(b.value=!1))};return gt(A,()=>{e.autoSize&&C.value&&pe(),Z()}),{prefixCls:r,wrapperCls:Ie,textareaRef:l,textareaStyle:g,mirrorRef:C,mirrorStyle:S,computedValue:A,showClearBtn:k,valueLength:p,computedMaxLength:m,mergedDisabled:a,mergeTextareaAttrs:te,getWrapperAttrs:ae,getTextareaAttrs:ne,handleInput:Q,handleFocus:W,handleBlur:H,handleComposition:U,handleClear:q,handleResize:je,handleMousedown:Y}},methods:{focus(){var e;(e=this.$refs.textareaRef)==null||e.focus()},blur(){var e;(e=this.$refs.textareaRef)==null||e.blur()}}}),Sve=["disabled","value","placeholder"];function wve(e,t,n,i,o,s){const r=Pe("resize-observer"),a=Pe("icon-close"),u=Pe("icon-hover");return R(),X("div",Qe(e.getWrapperAttrs(e.$attrs),{class:e.wrapperCls,onMousedown:t[7]||(t[7]=(...c)=>e.handleMousedown&&e.handleMousedown(...c))}),[e.autoSize?(R(),X("div",{key:0,ref:"mirrorRef",class:G(`${e.prefixCls}-mirror`),style:Te(e.mirrorStyle)},tt(`${e.computedValue}
  23. `),7)):Re("v-if",!0),O(r,{onResize:e.handleResize},{default:Ve(()=>[B("textarea",Qe({ref:"textareaRef"},e.mergeTextareaAttrs,{disabled:e.mergedDisabled,class:e.prefixCls,style:e.textareaStyle,value:e.computedValue,placeholder:e.placeholder,onInput:t[0]||(t[0]=(...c)=>e.handleInput&&e.handleInput(...c)),onFocus:t[1]||(t[1]=(...c)=>e.handleFocus&&e.handleFocus(...c)),onBlur:t[2]||(t[2]=(...c)=>e.handleBlur&&e.handleBlur(...c)),onCompositionstart:t[3]||(t[3]=(...c)=>e.handleComposition&&e.handleComposition(...c)),onCompositionupdate:t[4]||(t[4]=(...c)=>e.handleComposition&&e.handleComposition(...c)),onCompositionend:t[5]||(t[5]=(...c)=>e.handleComposition&&e.handleComposition(...c))}),null,16,Sve)]),_:1},8,["onResize"]),He(e.$slots,"suffix"),e.computedMaxLength&&e.showWordLimit?(R(),X("div",{key:1,class:G(`${e.prefixCls}-word-limit`)},tt(e.valueLength)+"/"+tt(e.computedMaxLength),3)):Re("v-if",!0),e.showClearBtn?(R(),X("div",{key:2,class:G(`${e.prefixCls}-clear-btn`),onClick:t[6]||(t[6]=(...c)=>e.handleClear&&e.handleClear(...c))},[O(u,null,{default:Ve(()=>[O(a)]),_:1})],2)):Re("v-if",!0)],16)}var H4=ye(Cve,[["render",wve]]);const YV=Object.assign(H4,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+H4.name,H4)}}),_ve=e=>{const{value:t,selectionStart:n}=e;return t.slice(0,n)},Ive=(e,t)=>[].concat(t).reduce((i,o)=>{const s=e.lastIndexOf(o);return s>i.location?{location:s,prefix:o}:i},{location:-1,prefix:""}),xve=(e,t)=>!t||!e.includes(t);var $ve=Object.defineProperty,hN=Object.getOwnPropertySymbols,Ave=Object.prototype.hasOwnProperty,Eve=Object.prototype.propertyIsEnumerable,pN=(e,t,n)=>t in e?$ve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mve=(e,t)=>{for(var n in t||(t={}))Ave.call(t,n)&&pN(e,n,t[n]);if(hN)for(var n of hN(t))Eve.call(t,n)&&pN(e,n,t[n]);return e};function Tve(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var W4=se({name:"Mention",inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},data:{type:Array,default:()=>[]},prefix:{type:[String,Array],default:"@"},split:{type:String,default:" "},type:{type:String,default:"input"},disabled:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,search:(e,t)=>!0,select:e=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,attrs:n,slots:i}){const o=de("mention");let s;const{mergedDisabled:r,eventHandlers:a}=li({disabled:lo(e,"disabled")}),{data:u,modelValue:c}=lt(e),l=he(),g=he({}),C=he(e.defaultValue),S=P(()=>{var be;return(be=e.modelValue)!=null?be:C.value});gt(c,be=>{(jt(be)||Xr(be))&&(C.value="")});const _=P(()=>S.value?[qd(S.value)]:[]),A=he({measuring:!1,location:-1,prefix:"",text:""}),y=()=>{A.value={measuring:!1,location:-1,prefix:"",text:""}},d=he(),v=P(()=>A.value.text),m=he(!0),f=(be,te)=>{var Ie,$e;const Me=_ve(te.target),ge=Ive(Me,e.prefix);if(ge.location>-1){const Se=Me.slice(ge.location+ge.prefix.length);xve(Se,e.split)?(h.value=!0,A.value=Mve({measuring:!0,text:Se},ge),t("search",Se,ge.prefix)):A.value.location>-1&&y()}else A.value.location>-1&&y();C.value=be,t("update:modelValue",be),t("change",be),($e=(Ie=a.value)==null?void 0:Ie.onChange)==null||$e.call(Ie)},p=be=>{var te,Ie;C.value="",t("update:modelValue",""),t("change",""),(Ie=(te=a.value)==null?void 0:te.onChange)==null||Ie.call(te),t("clear",be)},h=he(!1),b=P(()=>h.value&&A.value.measuring&&j.value.length>0),w=()=>{V.value=hE(s)},k=be=>{h.value=be},$=(be,te)=>{var Ie,$e,Me;const{value:ge}=(Ie=N.get(be))!=null?Ie:{},Se=A.value.location,fe=A.value.location+A.value.text.length;let pe=C.value.slice(0,Se),je=C.value.slice(fe+1);pe+=!pe||pe.endsWith(e.split)||pe.endsWith(`
  24. `)?"":e.split,je=(!je||je.startsWith(e.split)||je.startsWith(`
  25. `)?"":e.split)+je;const Y=`${A.value.prefix}${ge}`,Z=`${pe}${Y}${je}`;C.value=Z,t("select",ge),t("update:modelValue",Z),t("change",Z),y(),(Me=($e=a.value)==null?void 0:$e.onChange)==null||Me.call($e)},{validOptions:E,optionInfoMap:N,validOptionInfos:j,handleKeyDown:z}=aP({options:u,inputValue:v,filterOption:m,popupVisible:b,valueKeys:_,dropdownRef:l,optionRefs:g,onSelect:$,onPopupVisibleChange:k,enterToOpen:!1}),V=he();Yt(()=>{var be;e.type==="textarea"&&((be=d.value)!=null&&be.textareaRef)&&(s=window.getComputedStyle(d.value.textareaRef),V.value=hE(s))});const W=be=>{if(Nt(i.option)&&be.value){const te=N.get(be.key),Ie=i.option;return()=>Ie({data:te})}return()=>be.label},H=be=>O(Fd,{ref:te=>{te!=null&&te.$el&&(g.value[be.key]=te.$el)},key:be.key,value:be.value,disabled:be.disabled,internal:!0},{default:W(be)}),U=()=>{let be;return O(oP,{ref:l},Tve(be=E.value.map(te=>H(te)))?be:{default:()=>[be]})},Q=he();gt(b,be=>{e.type==="textarea"&&be&&fn(()=>{var te,Ie;(te=d.value)!=null&&te.textareaRef&&d.value.textareaRef.scrollTop>0&&((Ie=Q.value)==null||Ie.scrollTo(0,d.value.textareaRef.scrollTop))})});const q=be=>{t("focus",be)},ae=be=>{t("blur",be)};return{inputRef:d,render:()=>{var be;return e.type==="textarea"?O("div",{class:o},[O(Us,{onResize:w},{default:()=>[O(YV,Qe(n,{ref:d,allowClear:e.allowClear,modelValue:S.value,disabled:r.value,onInput:f,onClear:p,onFocus:q,onBlur:ae,onKeydown:z}),null)]}),A.value.measuring&&j.value.length>0&&O("div",{ref:Q,style:V.value,class:`${o}-measure`},[(be=S.value)==null?void 0:be.slice(0,A.value.location),O(ur,{trigger:"focus",position:"bl",popupOffset:4,preventFocus:!0,popupVisible:b.value,clickToClose:!1,onPopupVisibleChange:k},{default:()=>[O("span",null,[pt("@")])],content:U})])]):O(ur,{trigger:"focus",position:"bl",animationName:"slide-dynamic-origin",popupOffset:4,preventFocus:!0,popupVisible:b.value,clickToClose:!1,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:r.value,onPopupVisibleChange:k},{default:()=>[O(ou,Qe(n,{ref:d,allowClear:e.allowClear,modelValue:S.value,disabled:r.value,onInput:f,onClear:p,onFocus:q,onBlur:ae,onKeydown:z}),i)],content:U})}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const Pve=Object.assign(W4,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+W4.name,W4)}}),$P=Symbol("MenuInjectionKey"),AP=Symbol("LevelInjectionKey"),XV=Symbol("DataCollectorInjectionKey"),Ove=se({name:"IconMenuFold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-menu-fold`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Lve=["stroke-width","stroke-linecap","stroke-linejoin"],Dve=B("path",{d:"M42 11H6M42 24H22M42 37H6M13.66 26.912l-4.82-3.118 4.82-3.118v6.236Z"},null,-1),Nve=[Dve];function jve(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Nve,14,Lve)}var U4=ye(Ove,[["render",jve]]);const KV=Object.assign(U4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+U4.name,U4)}}),zve=se({name:"IconMenuUnfold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-menu-unfold`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Rve=["stroke-width","stroke-linecap","stroke-linejoin"],Bve=B("path",{d:"M6 11h36M22 24h20M6 37h36M8 20.882 12.819 24 8 27.118v-6.236Z"},null,-1),Fve=[Bve];function Vve(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Fve,14,Rve)}var Z4=ye(zve,[["render",Vve]]);const JV=Object.assign(Z4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Z4.name,Z4)}});function EP(e){const t=P(()=>oi(e)?e.value:e);cn(AP,it({level:t}))}function k1(e){const{provideNextLevel:t}=e||{},n=Dt(AP),i=P(()=>(n==null?void 0:n.level)||1);if(t){const o=P(()=>i.value+1);EP(o)}return{level:i}}function mN(e,t){const n=[],i=o=>{o.forEach(s=>{t(s)&&n.push(s.key),s.children&&i(s.children)})};return i(e),n}function qV(e=!1){return e?void 0:Dt(XV)}function QV(e){const{key:t,type:n}=e,i=he([]),o=qV(n==="menu");return cn(XV,{collectSubMenu(r,a,u=!1){const c={key:r,children:a};if(u){const l=i.value.find(g=>g.key===r);l?l.children=a:i.value.push(c)}else i.value=[...i.value,c];u&&(n==="popupMenu"?o==null||o.reportMenuData(i.value):n==="subMenu"&&!jt(r)&&(o==null||o.collectSubMenu(r,i.value,!0)))},removeSubMenu(r){i.value=i.value.filter(a=>a.key!==r)},collectMenuItem(r){i.value.push({key:r})},removeMenuItem(r){i.value=i.value.filter(a=>a.key!==r)},reportMenuData(r){i.value=r,n==="subMenu"&&!jt(t)&&(o==null||o.collectSubMenu(t,i.value,!0))}}),n==="subMenu"&&!jt(t)?(Yt(()=>{o==null||o.collectSubMenu(t,i.value)}),$i(()=>{o==null||o.removeSubMenu(t)})):n==="popupMenu"&&Yt(()=>{o==null||o.reportMenuData(i.value)}),{menuData:i,subMenuKeys:P(()=>mN(i.value,r=>!!r.children)),menuItemKeys:P(()=>mN(i.value,r=>!r.children))}}function Hve(e,t){const n=[],i=o=>{for(let s=0;s<o.length;s++){const r=o[s];if(r.key===t)return!0;if(r.children){if(n.push(r.key),i(r.children))return!0;n.pop()}}return!1};return i(e),n}function Wve(e,t){return e.length!==t.length?!1:e.toString()===t.toString()}function Uve(e){const{modelValue:t,defaultValue:n,autoOpen:i,autoOpenSelected:o,subMenuKeys:s,selectedKeys:r,menuData:a,accordion:u}=lt(e),c=he(jt(t.value)?jt(n.value)?[]:n.value:t.value),l=_=>{c.value=_};gt(t,()=>{jt(t.value)&&l([])});let g=[];Yt(()=>{g=[...s.value];let _=[];if(i.value&&(_=u.value?s.value.slice(0,1):[...s.value]),o.value){const A=r.value.map(y=>Hve(a.value,y));A.length&&(!i.value||u.value)&&(_=u.value?A[0]:[...new Set([].concat(...A))])}_.length&&l(_)});let C=!1;gt(s,(_,A=[])=>{if(C||!Wve(_,g)){const y=S.value.filter(d=>_.includes(d));if(i.value){const d=_.filter(v=>!A.includes(v));y.push(...d)}l(u.value?y.slice(0,1):y)}C=!0});const S=P(()=>t.value||c.value);return{openKeys:S,localOpenKeys:c,setOpenKeys:l,open(_,A){let y=[];return S.value.indexOf(_)>-1?u.value&&A===1?y=[]:y=S.value.filter(d=>d!==_):u.value&&A===1?y=[_]:y=S.value.concat([_]),l(y),y}}}const Zve=se({name:"BaseMenu",components:{IconMenuFold:KV,IconMenuUnfold:JV},inheritAttrs:!1,props:{style:{type:Object},theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},levelIndent:{type:Number},autoOpen:{type:Boolean},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean},collapsedWidth:{type:Number},accordion:{type:Boolean},autoScrollIntoView:{type:Boolean},showCollapseButton:{type:Boolean},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array,default:()=>[]},openKeys:{type:Array},defaultOpenKeys:{type:Array,default:()=>[]},scrollConfig:{type:Object},triggerProps:{type:Object},tooltipProps:{type:Object},autoOpenSelected:{type:Boolean},breakpoint:{type:String},popupMaxHeight:{type:[Boolean,Number],default:!0},prefixCls:{type:String},inTrigger:{type:Boolean},siderCollapsed:{type:Boolean},isRoot:{type:Boolean}},emits:["update:collapsed","update:selectedKeys","update:openKeys","collapse","menu-item-click","sub-menu-click"],setup(e,{emit:t,slots:n}){const{style:i,mode:o,theme:s,levelIndent:r,accordion:a,showCollapseButton:u,scrollConfig:c,autoScrollIntoView:l,collapsedWidth:g,autoOpen:C,collapsed:S,defaultCollapsed:_,selectedKeys:A,defaultSelectedKeys:y,openKeys:d,defaultOpenKeys:v,triggerProps:m,tooltipProps:f,autoOpenSelected:p,breakpoint:h,popupMaxHeight:b,prefixCls:w,inTrigger:k,siderCollapsed:$,isRoot:E}=lt(e),{subMenuKeys:N,menuData:j}=QV({type:E.value?"menu":"popupMenu"}),[z,V]=cr(y.value,it({value:A})),{openKeys:W,setOpenKeys:H,open:U}=Uve(it({modelValue:d,defaultValue:v,autoOpen:C,autoOpenSelected:p,selectedKeys:z,subMenuKeys:N,menuData:j,accordion:a})),[Q,q]=cr(_.value,it({value:S})),ae=P(()=>$.value||Q.value||o.value==="popButton"),ne=P(()=>["horizontal","popButton"].indexOf(o.value)<0&&!k.value&&u.value),be=(pe,je)=>{pe!==Q.value&&(q(pe),t("update:collapsed",pe),t("collapse",pe,je))},te=()=>{be(!Q.value,"clickTrigger")};UV(h,pe=>{be(!pe,"responsive")});const Ie=P(()=>(w==null?void 0:w.value)||de("menu")),$e=P(()=>[Ie.value,`${Ie.value}-${s==null?void 0:s.value}`,{[`${Ie.value}-horizontal`]:o.value==="horizontal",[`${Ie.value}-vertical`]:o.value!=="horizontal",[`${Ie.value}-collapsed`]:ae.value,[`${Ie.value}-pop`]:o.value==="pop"||ae.value,[`${Ie.value}-pop-button`]:o.value==="popButton"}]),Me=P(()=>{const pe=Le(g.value)?`${g.value}px`:void 0,je=rn(i.value)?i.value:void 0,Y=ae.value?pe:je==null?void 0:je.width;return[je?kr(je,["width"]):i.value,{width:Y}]}),ge=Ds(n,"expand-icon-down"),Se=Ds(n,"expand-icon-right"),fe=it({theme:s,mode:o,levelIndent:r,autoScrollIntoView:l,selectedKeys:z,openKeys:W,prefixCls:Ie,scrollConfig:c,inTrigger:k,collapsed:ae,triggerProps:m,tooltipProps:f,popupMaxHeight:b,expandIconDown:ge,expandIconRight:Se,onMenuItemClick:pe=>{V([pe]),t("update:selectedKeys",[pe]),t("menu-item-click",pe)},onSubMenuClick:(pe,je)=>{const Y=U(pe,je);H(Y),t("update:openKeys",Y),t("sub-menu-click",pe,Y)}});return cn($P,fe),EP(1),{computedPrefixCls:Ie,classNames:$e,computedStyle:Me,computedCollapsed:ae,computedHasCollapseButton:ne,onCollapseBtnClick:te}}});function Gve(e,t,n,i,o,s){const r=Pe("IconMenuUnfold"),a=Pe("IconMenuFold");return R(),X("div",Qe({class:e.classNames},e.$attrs,{style:e.computedStyle}),[B("div",{class:G(`${e.computedPrefixCls}-inner`)},[He(e.$slots,"default")],2),e.computedHasCollapseButton?(R(),X("div",{key:0,class:G(`${e.computedPrefixCls}-collapse-button`),onClick:t[0]||(t[0]=(...u)=>e.onCollapseBtnClick&&e.onCollapseBtnClick(...u))},[He(e.$slots,"collapse-icon",{collapsed:e.computedCollapsed},()=>[e.computedCollapsed?(R(),We(r,{key:0})):(R(),We(a,{key:1}))])],2)):Re("v-if",!0)],16)}var pE=ye(Zve,[["render",Gve]]);function vN(e,t){if(!e||!t)return null;let n=t;n==="float"&&(n="cssFloat");try{if(document.defaultView){const i=document.defaultView.getComputedStyle(e,"");return e.style[n]||i?i[n]:""}}catch{return e.style[n]}return null}function hf(){return Dt($P)||{}}const Yve=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();function aw(){const e=Vn();return{key:P(()=>(e==null?void 0:e.vnode.key)||Yve("__arco_menu"))}}const Xve=se({name:"MenuIndent",props:{level:{type:Number,default:1}},setup(){const e=de("menu"),t=hf();return{prefixCls:e,levelIndent:lo(t,"levelIndent")}}});function Kve(e,t,n,i,o,s){return e.level>1?(R(),X("span",{key:0,class:G(`${e.prefixCls}-indent-list`)},[(R(!0),X(ft,null,dn(e.level-1,r=>(R(),X("span",{key:r,class:G(`${e.prefixCls}-indent`),style:Te(`width: ${e.levelIndent}px`)},null,6))),128))],2)):Re("v-if",!0)}var lw=ye(Xve,[["render",Kve]]);const Jve=se({name:"ExpandTransition",setup(){return{onBeforeEnter(e){e.style.height="0"},onEnter(e){e.style.height=`${e.scrollHeight}px`},onAfterEnter(e){e.style.height=""},onBeforeLeave(e){e.style.height=`${e.scrollHeight}px`},onLeave(e){e.style.height="0"},onAfterLeave(e){e.style.height=""}}}});function qve(e,t,n,i,o,s){return R(),We(Pr,{onBeforeEnter:e.onBeforeEnter,onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave,onLeave:e.onLeave,onAfterLeave:e.onAfterLeave},{default:Ve(()=>[He(e.$slots,"default")]),_:3},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}var Qve=ye(Jve,[["render",qve]]);const ege=se({name:"SubMenuInline",components:{MenuIndent:lw,ExpandTransition:Qve},props:{title:{type:String},isChildrenSelected:{type:Boolean}},setup(e){const{key:t}=aw(),{level:n}=k1({provideNextLevel:!0}),i=hf(),o=P(()=>i.prefixCls),s=P(()=>`${o.value}-inline`),r=P(()=>[s.value]),a=P(()=>e.isChildrenSelected),u=P(()=>(i.openKeys||[]).indexOf(t.value)>-1);return{prefixCls:s,menuPrefixCls:o,classNames:r,level:n,isSelected:a,isOpen:u,onHeaderClick:()=>{i.onSubMenuClick&&i.onSubMenuClick(t.value,n.value)}}}});function tge(e,t,n,i,o,s){const r=Pe("MenuIndent"),a=Pe("ExpandTransition");return R(),X("div",{class:G(e.classNames)},[B("div",{class:G([`${e.prefixCls}-header`,{[`${e.menuPrefixCls}-selected`]:e.isSelected,[`${e.menuPrefixCls}-has-icon`]:e.$slots.icon}]),onClick:t[0]||(t[0]=(...u)=>e.onHeaderClick&&e.onHeaderClick(...u))},[O(r,{level:e.level},null,8,["level"]),e.$slots.icon?(R(),X(ft,{key:0},[B("span",{class:G(`${e.menuPrefixCls}-icon`)},[He(e.$slots,"icon")],2),B("span",{class:G(`${e.menuPrefixCls}-title`)},[He(e.$slots,"title",{},()=>[pt(tt(e.title),1)])],2)],64)):He(e.$slots,"title",{key:1},()=>[pt(tt(e.title),1)]),B("span",{class:G([`${e.menuPrefixCls}-icon-suffix`,{["is-open"]:e.isOpen}])},[He(e.$slots,"expand-icon-down")],2)],2),O(a,null,{default:Ve(()=>[gi(B("div",{class:G(`${e.prefixCls}-content`)},[He(e.$slots,"default")],2),[[ki,e.isOpen]])]),_:3})],2)}var nge=ye(ege,[["render",tge]]);const ige=se({name:"SubMenuPop",components:{Menu:pE,Trigger:ur,MenuIndent:lw,RenderFunction:jl},inheritAttrs:!1,props:{title:{type:String},selectable:{type:Boolean},isChildrenSelected:{type:Boolean},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(e){const{key:t}=aw(),{level:n}=k1(),{selectable:i,isChildrenSelected:o,popupMaxHeight:s}=lt(e),r=hf(),{onSubMenuClick:a,onMenuItemClick:u}=r,c=P(()=>r.prefixCls),l=P(()=>r.mode),g=P(()=>r.selectedKeys||[]),C=P(()=>`${c.value}-pop`),S=P(()=>i.value&&g.value.includes(t.value)||o.value),_=P(()=>[`${C.value}`,`${C.value}-header`,{[`${c.value}-selected`]:S.value}]),A=P(()=>l.value==="horizontal"&&!r.inTrigger),y=he(!1),d=p=>{y.value=p},v=de("trigger"),m=P(()=>{var p;return[`${C.value}-trigger`,{[`${C.value}-trigger-dark`]:r.theme==="dark"},(p=r.triggerProps)==null?void 0:p.class]}),f=P(()=>kr(r.triggerProps||{},["class"]));return{menuPrefixCls:c,mode:l,level:n,classNames:_,isSelected:S,selectedKeys:g,needPopOnBottom:A,popVisible:y,triggerPrefixCls:v,triggerClassNames:m,triggerProps:f,menuContext:r,popupMenuStyles:P(()=>{var p;const h=(p=s.value)!=null?p:r.popupMaxHeight;return Le(h)?{maxHeight:`${h}px`}:h?{}:{maxHeight:"unset"}}),onClick:()=>{a&&a(t.value,n.value),i.value&&u&&u(t.value)},onMenuItemClick:p=>{u&&u(p),d(!1)},onVisibleChange:p=>{d(p)}}}});function rge(e,t,n,i,o,s){const r=Pe("MenuIndent"),a=Pe("RenderFunction"),u=Pe("Menu"),c=Pe("Trigger");return R(),We(c,Qe({trigger:"hover",class:e.triggerClassNames,position:e.needPopOnBottom?"bl":"rt","show-arrow":"","animation-class":"fade-in","mouse-enter-delay":50,"mouse-leave-delay":50,"popup-offset":4,"auto-fit-popup-min-width":!0,duration:100},e.triggerProps,{"unmount-on-close":!1,"popup-visible":e.popVisible,onPopupVisibleChange:e.onVisibleChange}),{content:Ve(()=>[O(u,{"in-trigger":"","prefix-cls":`${e.triggerPrefixCls}-menu`,"selected-keys":e.selectedKeys,theme:e.menuContext.theme,"trigger-props":e.menuContext.triggerProps,style:Te(e.popupMenuStyles),onMenuItemClick:e.onMenuItemClick},ti({default:Ve(()=>[He(e.$slots,"default")]),_:2},[e.menuContext.expandIconDown?{name:"expand-icon-down",fn:Ve(()=>[O(a,{"render-func":e.menuContext.expandIconDown},null,8,["render-func"])])}:void 0,e.menuContext.expandIconRight?{name:"expand-icon-right",fn:Ve(()=>[O(a,{"render-func":e.menuContext.expandIconRight},null,8,["render-func"])])}:void 0]),1032,["prefix-cls","selected-keys","theme","trigger-props","style","onMenuItemClick"])]),default:Ve(()=>[B("div",Qe({class:[e.classNames,{[`${e.menuPrefixCls}-has-icon`]:e.$slots.icon}],"aria-haspopup":"true"},e.$attrs,{onClick:t[0]||(t[0]=(...l)=>e.onClick&&e.onClick(...l))}),[Re(" header "),O(r,{level:e.level},null,8,["level"]),e.$slots.icon?(R(),X(ft,{key:0},[B("span",{class:G(`${e.menuPrefixCls}-icon`)},[He(e.$slots,"icon")],2),B("span",{class:G(`${e.menuPrefixCls}-title`)},[He(e.$slots,"title",{},()=>[pt(tt(e.title),1)])],2)],64)):He(e.$slots,"title",{key:1},()=>[pt(tt(e.title),1)]),Re(" suffix "),B("span",{class:G(`${e.menuPrefixCls}-icon-suffix`)},[e.needPopOnBottom?He(e.$slots,"expand-icon-down",{key:0}):He(e.$slots,"expand-icon-right",{key:1})],2),e.isSelected&&e.mode==="horizontal"?(R(),X("div",{key:2,class:G(`${e.menuPrefixCls}-selected-label`)},null,2)):Re("v-if",!0)],16)]),_:3},16,["class","position","popup-visible","onPopupVisibleChange"])}var oge=ye(ige,[["render",rge]]),sge=Object.defineProperty,age=Object.defineProperties,lge=Object.getOwnPropertyDescriptors,gN=Object.getOwnPropertySymbols,cge=Object.prototype.hasOwnProperty,uge=Object.prototype.propertyIsEnumerable,yN=(e,t,n)=>t in e?sge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dge=(e,t)=>{for(var n in t||(t={}))cge.call(t,n)&&yN(e,n,t[n]);if(gN)for(var n of gN(t))uge.call(t,n)&&yN(e,n,t[n]);return e},fge=(e,t)=>age(e,lge(t)),mv=se({name:"SubMenu",props:{title:{type:String},selectable:{type:Boolean},popup:{type:[Boolean,Function],default:!1},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(e,{attrs:t}){const{key:n}=aw(),{level:i}=k1(),{popup:o}=lt(e),s=hf(),r=P(()=>{const{mode:l,collapsed:g,inTrigger:C}=s;return!!(typeof o.value=="function"?o.value(i.value):o.value)||g||C||l!=="vertical"}),{subMenuKeys:a,menuItemKeys:u}=QV({key:n.value,type:"subMenu"}),c=P(()=>{const l=s.selectedKeys||[],g=C=>{for(let S=0;S<l.length;S++){const _=l[S];if(C.includes(_))return!0}return!1};return g(a.value)||g(u.value)});return{subMenuKeys:a,menuItemKeys:u,isChildrenSelected:c,props:e,attrs:t,computedKey:n,computedPopup:r,expandIconDown:lo(s,"expandIconDown"),expandIconRight:lo(s,"expandIconRight")}},render(){const{props:e,attrs:t,computedKey:n,computedPopup:i,expandIconDown:o,expandIconRight:s,isChildrenSelected:r}=this,a=fge(dge({},this.$slots),{"expand-icon-down":this.$slots["expand-icon-down"]||o||(()=>[O(ff,null,null)]),"expand-icon-right":this.$slots["expand-icon-right"]||s||(()=>[O(fs,null,null)])});return i?O(oge,Qe({key:n,title:e.title,selectable:e.selectable,isChildrenSelected:r,popupMaxHeight:e.popupMaxHeight},t),a):O(nge,Qe({key:n,title:e.title,isChildrenSelected:r},t),a)}});const hge=10;function bN(e){return e&&+e.getBoundingClientRect().width.toFixed(2)}function kN(e){const t=Number(e.replace("px",""));return Number.isNaN(t)?0:t}var pge=se({name:"MenuOverflowWrap",setup(e,{slots:t}){const i=`${hf().prefixCls}-overflow`,o=`${i}-sub-menu`,s=`${i}-hidden-menu-item`,r=`${i}-sub-menu-mirror`,a=he(),u=he(null),c=he();function l(){const g=a.value,C=bN(g),S=[].slice.call(g.children);let _=0,A=0,y=0;for(let d=0;d<S.length;d++){const v=S[d],m=v.className.split(" "),f=m.indexOf(o)>-1,p=m.indexOf(r)>-1;if(f)continue;const h=bN(v)+kN(vN(v,"marginLeft"))+kN(vN(v,"marginRight"));if(p){y=h;continue}if(A+=h,A+y+hge>C){u.value=_-1;return}_++}u.value=null}return Yt(()=>{l(),c.value=new jS(g=>{g.forEach(l)}),a.value&&c.value.observe(a.value)}),$i(()=>{c.value&&c.value.disconnect()}),()=>{const g=(S,_)=>{const{isMirror:A=!1,props:y={}}=_||{};return O(mv,Qe({key:`__arco-menu-overflow-sub-menu${A?"-mirror":""}`,class:A?r:o},y),{title:()=>O("span",null,[pt("...")]),default:()=>S})},C=()=>{var S;const _=((S=t.default)==null?void 0:S.call(t))||[],A=jte(_);let y=null;const d=g(null,{isMirror:!0}),v=A.map((m,f)=>{const p=Tr(m,u.value!==null&&f>u.value?{class:s}:{class:""});if(u.value!==null&&f===u.value+1){const h=A.slice(f).map(b=>Tr(b));y=g(h)}return p});return[d,...v,y]};return O("div",{class:`${i}-wrap`,ref:a},[C()])}}}),mge=Object.defineProperty,vge=Object.defineProperties,gge=Object.getOwnPropertyDescriptors,CN=Object.getOwnPropertySymbols,yge=Object.prototype.hasOwnProperty,bge=Object.prototype.propertyIsEnumerable,SN=(e,t,n)=>t in e?mge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kge=(e,t)=>{for(var n in t||(t={}))yge.call(t,n)&&SN(e,n,t[n]);if(CN)for(var n of CN(t))bge.call(t,n)&&SN(e,n,t[n]);return e},Cge=(e,t)=>vge(e,gge(t)),G4=se({name:"Menu",components:{BaseMenu:pE},inheritAttrs:!1,props:{theme:{type:String},mode:{type:String,default:"vertical"}},setup(e,{attrs:t,slots:n}){const{theme:i,mode:o}=lt(e),s=Dt(RV,void 0),r=P(()=>(s==null?void 0:s.collapsed)||!1),a=P(()=>(i==null?void 0:i.value)||(s==null?void 0:s.theme)||"light");return cn($P,void 0),cn(AP,void 0),()=>O(pE,Qe(e,t,{theme:a.value,inTrigger:!1,siderCollapsed:r.value,isRoot:!0}),Cge(kge({},n),{default:o.value==="horizontal"&&n.default?()=>O(pge,null,{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n)]}}):n.default}))}}),Sge=Object.defineProperty,wN=Object.getOwnPropertySymbols,wge=Object.prototype.hasOwnProperty,_ge=Object.prototype.propertyIsEnumerable,_N=(e,t,n)=>t in e?Sge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ige=(e,t)=>{for(var n in t||(t={}))wge.call(t,n)&&_N(e,n,t[n]);if(wN)for(var n of wN(t))_ge.call(t,n)&&_N(e,n,t[n]);return e},Eb=se({name:"MenuItem",inheritAttrs:!1,props:{disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const{key:n}=aw(),{level:i}=k1(),o=hf(),s=he(),r=P(()=>(o.selectedKeys||[]).indexOf(n.value)>-1),a=qV();Yt(()=>{a==null||a.collectMenuItem(n.value)}),$i(()=>{a==null||a.removeMenuItem(n.value)});function u(){o.autoScrollIntoView&&s.value&&r.value&&yV(s.value,Ige({behavior:"smooth",block:"nearest",scrollMode:"if-needed",boundary:document.documentElement},o.scrollConfig||{}))}let c;return Yt(()=>{c=setTimeout(()=>{u()},500)}),$i(()=>{clearTimeout(c)}),gt([r],()=>{u()}),{menuContext:o,level:i,isSelected:r,refItemElement:s,onClick(l){e.disabled||(o.onMenuItemClick&&o.onMenuItemClick(n.value),t("click",l))}}},render(){var e,t;const{level:n,menuContext:i,disabled:o,isSelected:s,onClick:r}=this,{prefixCls:a,collapsed:u,inTrigger:c,mode:l,tooltipProps:g}=i,C=u&&!c&&n===1,S=l==="vertical"&&n>1,_=((t=(e=this.$slots).default)==null?void 0:t.call(e))||[],A=S&&!c&&!u,y=this.$slots.icon&&this.$slots.icon(),d=[A&&O(lw,{level:n},null),y&&O("span",{class:`${a}-icon`},[y]),A||y?O("span",{class:[`${a}-item-inner`,{[`${a}-title`]:y}]},[_]):_].filter(Boolean),v=O("div",Qe({ref:"refItemElement",class:[`${a}-item`,{[`${a}-disabled`]:o,[`${a}-selected`]:s,[`${a}-has-icon`]:y}]},this.$attrs,{onClick:r}),[d,s&&l==="horizontal"&&O("div",{class:`${a}-selected-label`},null)]);if(C){const m=[`${a}-item-tooltip`,g==null?void 0:g.class];return O(us,Qe({trigger:"hover",position:"right",class:m},kr(g||{},["class"])),{default:()=>v,content:()=>_})}return v}});const xge=se({name:"MenuItemGroup",components:{MenuIndent:lw},props:{title:{type:String}},setup(){const{level:e}=k1(),t=P(()=>e.value===1?e.value+1:e.value);EP(t);const n=hf(),i=P(()=>n.prefixCls),o=P(()=>[`${i.value}-group`]);return{prefixCls:i,classNames:o,level:e}}});function $ge(e,t,n,i,o,s){const r=Pe("MenuIndent");return R(),X("div",{class:G(e.classNames)},[B("div",{class:G(`${e.prefixCls}-group-title`)},[O(r,{level:e.level},null,8,["level"]),He(e.$slots,"title",{},()=>[pt(tt(e.title),1)])],2),He(e.$slots,"default")],2)}var Mb=ye(xge,[["render",$ge]]);const Age=Object.assign(G4,{Item:Eb,ItemGroup:Mb,SubMenu:mv,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+G4.name,G4),e.component(n+Eb.name,Eb),e.component(n+Mb.name,Mb),e.component(n+mv.name,mv)}}),Ege=se({name:"Message",components:{AIconHover:ai,IconInfoCircleFill:Kp,IconCheckCircleFill:ru,IconExclamationCircleFill:Ta,IconCloseCircleFill:uf,IconClose:Cr,IconLoading:Lr},props:{type:{type:String,default:"info"},closable:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!0},duration:{type:Number,default:3e3},resetOnUpdate:{type:Boolean,default:!1},resetOnHover:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=de("message");let i=0;const o=()=>{t("close")},s=()=>{e.duration>0&&(i=window.setTimeout(o,e.duration))},r=()=>{i&&(window.clearTimeout(i),i=0)};return Yt(()=>{s()}),Bi(()=>{e.resetOnUpdate&&(r(),s())}),$i(()=>{r()}),{handleMouseEnter:()=>{e.resetOnHover&&r()},handleMouseLeave:()=>{e.resetOnHover&&s()},prefixCls:n,handleClose:o}}});function Mge(e,t,n,i,o,s){const r=Pe("icon-info-circle-fill"),a=Pe("icon-check-circle-fill"),u=Pe("icon-exclamation-circle-fill"),c=Pe("icon-close-circle-fill"),l=Pe("icon-loading"),g=Pe("icon-close"),C=Pe("a-icon-hover");return R(),X("li",{role:"alert",class:G([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}]),onMouseenter:t[1]||(t[1]=(...S)=>e.handleMouseEnter&&e.handleMouseEnter(...S)),onMouseleave:t[2]||(t[2]=(...S)=>e.handleMouseLeave&&e.handleMouseLeave(...S))},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(R(),X("span",{key:0,class:G(`${e.prefixCls}-icon`)},[He(e.$slots,"icon",{},()=>[e.type==="info"?(R(),We(r,{key:0})):e.type==="success"?(R(),We(a,{key:1})):e.type==="warning"?(R(),We(u,{key:2})):e.type==="error"?(R(),We(c,{key:3})):e.type==="loading"?(R(),We(l,{key:4})):Re("v-if",!0)])],2)):Re("v-if",!0),B("span",{class:G(`${e.prefixCls}-content`)},[He(e.$slots,"default")],2),e.closable?(R(),X("span",{key:1,class:G(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...S)=>e.handleClose&&e.handleClose(...S))},[O(C,null,{default:Ve(()=>[O(g)]),_:1})],2)):Re("v-if",!0)],34)}var Tge=ye(Ege,[["render",Mge]]);function Pge(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var Oge=se({name:"MessageList",props:{messages:{type:Array,default:()=>[]},position:{type:String,default:"top"}},emits:["close","afterClose"],setup(e,t){const n=de("message-list"),{zIndex:i}=Jp("message",{runOnMounted:!0});return()=>{let o;return O(lf,{class:[n,`${n}-${e.position}`],name:"fade-message",tag:"ul",style:{zIndex:i.value},onAfterLeave:()=>t.emit("afterClose")},Pge(o=e.messages.map(s=>{const r={default:ro(s.content),icon:ro(s.icon)};return O(Tge,{key:s.id,type:s.type,duration:s.duration,closable:s.closable,resetOnUpdate:s.resetOnUpdate,resetOnHover:s.resetOnHover,onClose:()=>t.emit("close",s.id)},r)}))?o:{default:()=>[o]})}}}),Lge=Object.defineProperty,Dge=Object.defineProperties,Nge=Object.getOwnPropertyDescriptors,IN=Object.getOwnPropertySymbols,jge=Object.prototype.hasOwnProperty,zge=Object.prototype.propertyIsEnumerable,xN=(e,t,n)=>t in e?Lge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cC=(e,t)=>{for(var n in t||(t={}))jge.call(t,n)&&xN(e,n,t[n]);if(IN)for(var n of IN(t))zge.call(t,n)&&xN(e,n,t[n]);return e},eH=(e,t)=>Dge(e,Nge(t));class Rge{constructor(t,n){this.messageCount=0,this.add=s=>{var r;this.messageCount++;const a=(r=s.id)!=null?r:`__arco_message_${this.messageCount}`;if(this.messageIds.has(a))return this.update(a,s);const u=it(cC({id:a},s));return this.messages.value.push(u),this.messageIds.add(a),{close:()=>this.remove(a)}},this.update=(s,r)=>{for(let a=0;a<this.messages.value.length;a++)if(this.messages.value[a].id===s){const u=!jt(r.duration);Object.assign(this.messages.value[a],eH(cC({},r),{id:s,resetOnUpdate:u}));break}return{close:()=>this.remove(s)}},this.remove=s=>{for(let r=0;r<this.messages.value.length;r++){const a=this.messages.value[r];if(a.id===s){Nt(a.onClose)&&a.onClose(s),this.messages.value.splice(r,1),this.messageIds.delete(s);break}}},this.clear=()=>{this.messages.value.splice(0)},this.destroy=()=>{this.messages.value.length===0&&this.container&&(Ws(null,this.container),document.body.removeChild(this.container),this.container=null,rh[this.position]=void 0)};const{position:i="top"}=t;this.container=FS("message"),this.messageIds=new Set,this.messages=he([]),this.position=i;const o=O(Oge,{messages:this.messages.value,position:i,onClose:this.remove,onAfterClose:this.destroy});(n??mE._context)&&(o.appContext=n??mE._context),Ws(o,this.container),document.body.appendChild(this.container)}}const rh={},tH=[...HS,"loading","normal"],Tb=tH.reduce((e,t)=>(e[t]=(n,i)=>{Ai(n)&&(n={content:n});const o=cC({type:t},n),{position:s="top"}=o;return rh[s]||(rh[s]=new Rge(o,i)),rh[s].add(o)},e),{});Tb.clear=e=>{var t;e?(t=rh[e])==null||t.clear():Object.values(rh).forEach(n=>n==null?void 0:n.clear())};const mE=eH(cC({},Tb),{install:e=>{const t={clear:Tb.clear};for(const n of tH)t[n]=(i,o=e._context)=>Tb[n](i,o);e.config.globalProperties.$message=t},_context:null}),Bge=({modalRef:e,wrapperRef:t,draggable:n,alignCenter:i})=>{const o=he(!1),s=he([0,0]),r=he([0,0]),a=he(),u=he([0,0]),c=he([0,0]),l=()=>{var _,A,y;if(t.value&&e.value){const{top:d,left:v}=t.value.getBoundingClientRect(),{clientWidth:m,clientHeight:f}=t.value,{top:p,left:h,width:b,height:w}=e.value.getBoundingClientRect(),k=i.value?0:(_=e.value)==null?void 0:_.offsetTop,$=h-v,E=p-d-k;($!==((A=r.value)==null?void 0:A[0])||E!==((y=r.value)==null?void 0:y[1]))&&(r.value=[$,E]);const N=m>b?m-b:0,j=f>w?f-w-k:0;(N!==c.value[0]||j!==c.value[1])&&(c.value=[N,j]),k&&(u.value=[0,0-k])}},g=_=>{n.value&&(_.preventDefault(),o.value=!0,l(),s.value=[_.x,_.y],Nn(window,"mousemove",C),Nn(window,"mouseup",S),Nn(window,"contextmenu",S))},C=_=>{if(o.value){const A=_.x-s.value[0],y=_.y-s.value[1];let d=r.value[0]+A,v=r.value[1]+y;d<u.value[0]&&(d=u.value[0]),d>c.value[0]&&(d=c.value[0]),v<u.value[1]&&(v=u.value[1]),v>c.value[1]&&(v=c.value[1]),a.value=[d,v]}},S=()=>{o.value=!1,Qn(window,"mousemove",C),Qn(window,"mouseup",S)};return{position:a,handleMoveDown:g}};var Fge=Object.defineProperty,$N=Object.getOwnPropertySymbols,Vge=Object.prototype.hasOwnProperty,Hge=Object.prototype.propertyIsEnumerable,AN=(e,t,n)=>t in e?Fge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wge=(e,t)=>{for(var n in t||(t={}))Vge.call(t,n)&&AN(e,n,t[n]);if($N)for(var n of $N(t))Hge.call(t,n)&&AN(e,n,t[n]);return e},Uge=se({name:"Modal",components:{ClientOnly:iP,ArcoButton:Yr,IconHover:ai,IconClose:Cr,IconInfoCircleFill:Kp,IconCheckCircleFill:ru,IconExclamationCircleFill:Ta,IconCloseCircleFill:uf},inheritAttrs:!1,props:{visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},width:{type:[Number,String]},top:{type:[Number,String]},mask:{type:Boolean,default:!0},title:{type:String},titleAlign:{type:String,default:"center"},alignCenter:{type:Boolean,default:!0},unmountOnClose:Boolean,maskClosable:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},simple:{type:Boolean,default:e=>e.notice},closable:{type:Boolean,default:!0},okText:String,cancelText:String,okLoading:{type:Boolean,default:!1},okButtonProps:{type:Object},cancelButtonProps:{type:Object},footer:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},popupContainer:{type:[String,Object],default:"body"},maskStyle:{type:Object},modalClass:{type:[String,Array]},modalStyle:{type:Object},onBeforeOk:{type:Function},onBeforeCancel:{type:Function},escToClose:{type:Boolean,default:!0},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},maskAnimationName:{type:String,default:e=>e.fullscreen?"fade-in-standard":"fade-modal"},modalAnimationName:{type:String,default:e=>e.fullscreen?"zoom-in":"zoom-modal"},bodyClass:{type:[String,Array]},bodyStyle:{type:[String,Object,Array]},messageType:{type:String},hideTitle:{type:Boolean,default:!1}},emits:{"update:visible":e=>!0,ok:e=>!0,cancel:e=>!0,open:()=>!0,close:()=>!0,beforeOpen:()=>!0,beforeClose:()=>!0},setup(e,{emit:t}){const{fullscreen:n,popupContainer:i,alignCenter:o}=lt(e),s=de("modal"),{t:r}=fi(),a=he(),u=he(),c=he(e.defaultVisible),l=P(()=>{var Ie;return(Ie=e.visible)!=null?Ie:c.value}),g=he(!1),C=P(()=>e.okLoading||g.value),S=P(()=>e.draggable&&!e.fullscreen),{teleportContainer:_,containerRef:A}=rP({popupContainer:i,visible:l}),y=he(l.value),d=P(()=>e.okText||r("modal.okText")),v=P(()=>e.cancelText||r("modal.cancelText")),{zIndex:m,isLastDialog:f}=Jp("dialog",{visible:l});let p=!1;const h=Ie=>{e.escToClose&&Ie.key===mi.ESC&&f()&&z(Ie)},b=()=>{e.escToClose&&!p&&(p=!0,Nn(document.documentElement,"keydown",h))},w=()=>{p=!1,Qn(document.documentElement,"keydown",h)};let k=0;const{position:$,handleMoveDown:E}=Bge({wrapperRef:a,modalRef:u,draggable:S,alignCenter:o}),N=()=>{k++,g.value&&(g.value=!1),c.value=!1,t("update:visible",!1)},j=async Ie=>{const $e=k,Me=await new Promise(async ge=>{var Se;if(Nt(e.onBeforeOk)){let fe=e.onBeforeOk((pe=!0)=>ge(pe));if((Kd(fe)||!Gr(fe))&&(g.value=!0),Kd(fe))try{fe=(Se=await fe)!=null?Se:!0}catch{fe=!1}Gr(fe)&&ge(fe)}else ge(!0)});$e===k&&(Me?(t("ok",Ie),N()):g.value&&(g.value=!1))},z=Ie=>{var $e;let Me=!0;Nt(e.onBeforeCancel)&&(Me=($e=e.onBeforeCancel())!=null?$e:!1),Me&&(t("cancel",Ie),N())},V=he(!1),W=Ie=>{Ie.target===a.value&&(V.value=!0)},H=Ie=>{e.mask&&e.maskClosable&&V.value&&z(Ie)},U=()=>{l.value&&(!zte(a.value,document.activeElement)&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),t("open"))},Q=()=>{l.value||(S.value&&($.value=void 0),y.value=!1,ae(),t("close"))},{setOverflowHidden:q,resetOverflow:ae}=vV(A);Yt(()=>{A.value=wa(e.popupContainer),l.value&&(q(),e.escToClose&&b())}),ei(()=>{ae(),w()}),gt(l,Ie=>{c.value!==Ie&&(c.value=Ie),Ie?(t("beforeOpen"),y.value=!0,V.value=!1,q(),b()):(t("beforeClose"),w())}),gt(n,()=>{$.value&&($.value=void 0)});const ne=P(()=>[`${s}-wrapper`,{[`${s}-wrapper-align-center`]:e.alignCenter&&!e.fullscreen,[`${s}-wrapper-moved`]:!!$.value}]),be=P(()=>[`${s}`,e.modalClass,{[`${s}-simple`]:e.simple,[`${s}-draggable`]:S.value,[`${s}-fullscreen`]:e.fullscreen}]),te=P(()=>{var Ie;const $e=Wge({},(Ie=e.modalStyle)!=null?Ie:{});return e.width&&!e.fullscreen&&($e.width=Le(e.width)?`${e.width}px`:e.width),!e.alignCenter&&e.top&&($e.top=Le(e.top)?`${e.top}px`:e.top),$.value&&($e.transform=`translate(${$.value[0]}px, ${$.value[1]}px)`),$e});return{prefixCls:s,mounted:y,computedVisible:l,containerRef:A,wrapperRef:a,mergedModalStyle:te,okDisplayText:d,cancelDisplayText:v,zIndex:m,handleOk:j,handleCancel:z,handleMaskClick:H,handleMaskMouseDown:W,handleOpen:U,handleClose:Q,mergedOkLoading:C,modalRef:u,wrapperCls:ne,modalCls:be,teleportContainer:_,handleMoveDown:E}}});function Zge(e,t,n,i,o,s){const r=Pe("icon-info-circle-fill"),a=Pe("icon-check-circle-fill"),u=Pe("icon-exclamation-circle-fill"),c=Pe("icon-close-circle-fill"),l=Pe("icon-close"),g=Pe("icon-hover"),C=Pe("arco-button"),S=Pe("client-only");return R(),We(S,null,{default:Ve(()=>[(R(),We(Yp,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?gi((R(),X("div",Qe({key:0,class:`${e.prefixCls}-container`,style:{zIndex:e.zIndex}},e.$attrs),[O(Pr,{name:e.maskAnimationName,appear:""},{default:Ve(()=>[e.mask?gi((R(),X("div",{key:0,ref:"maskRef",class:G(`${e.prefixCls}-mask`),style:Te(e.maskStyle)},null,6)),[[ki,e.computedVisible]]):Re("v-if",!0)]),_:1},8,["name"]),B("div",{ref:"wrapperRef",class:G(e.wrapperCls),onClick:t[2]||(t[2]=oo((..._)=>e.handleMaskClick&&e.handleMaskClick(..._),["self"])),onMousedown:t[3]||(t[3]=oo((..._)=>e.handleMaskMouseDown&&e.handleMaskMouseDown(..._),["self"]))},[O(Pr,{name:e.modalAnimationName,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose},{default:Ve(()=>[gi(B("div",{ref:"modalRef",class:G(e.modalCls),style:Te(e.mergedModalStyle)},[!e.hideTitle&&(e.$slots.title||e.title||e.closable)?(R(),X("div",{key:0,class:G(`${e.prefixCls}-header`),onMousedown:t[1]||(t[1]=(..._)=>e.handleMoveDown&&e.handleMoveDown(..._))},[e.$slots.title||e.title?(R(),X("div",{key:0,class:G([`${e.prefixCls}-title`,`${e.prefixCls}-title-align-${e.titleAlign}`])},[e.messageType?(R(),X("div",{key:0,class:G(`${e.prefixCls}-title-icon`)},[e.messageType==="info"?(R(),We(r,{key:0})):Re("v-if",!0),e.messageType==="success"?(R(),We(a,{key:1})):Re("v-if",!0),e.messageType==="warning"?(R(),We(u,{key:2})):Re("v-if",!0),e.messageType==="error"?(R(),We(c,{key:3})):Re("v-if",!0)],2)):Re("v-if",!0),He(e.$slots,"title",{},()=>[pt(tt(e.title),1)])],2)):Re("v-if",!0),!e.simple&&e.closable?(R(),X("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:G(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(..._)=>e.handleCancel&&e.handleCancel(..._))},[O(g,null,{default:Ve(()=>[O(l)]),_:1})],2)):Re("v-if",!0)],34)):Re("v-if",!0),B("div",{class:G([`${e.prefixCls}-body`,e.bodyClass]),style:Te(e.bodyStyle)},[He(e.$slots,"default")],6),e.footer?(R(),X("div",{key:1,class:G(`${e.prefixCls}-footer`)},[He(e.$slots,"footer",{},()=>[e.hideCancel?Re("v-if",!0):(R(),We(C,Qe({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:Ve(()=>[pt(tt(e.cancelDisplayText),1)]),_:1},16,["onClick"])),O(C,Qe({type:"primary"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:Ve(()=>[pt(tt(e.okDisplayText),1)]),_:1},16,["loading","onClick"])])],2)):Re("v-if",!0)],6),[[ki,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],34)],16)),[[ki,e.computedVisible||e.mounted]]):Re("v-if",!0)],8,["to","disabled"]))]),_:3})}var Pb=ye(Uge,[["render",Zge]]),Gge=Object.defineProperty,Yge=Object.defineProperties,Xge=Object.getOwnPropertyDescriptors,EN=Object.getOwnPropertySymbols,Kge=Object.prototype.hasOwnProperty,Jge=Object.prototype.propertyIsEnumerable,MN=(e,t,n)=>t in e?Gge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wd=(e,t)=>{for(var n in t||(t={}))Kge.call(t,n)&&MN(e,n,t[n]);if(EN)for(var n of EN(t))Jge.call(t,n)&&MN(e,n,t[n]);return e},qge=(e,t)=>Yge(e,Xge(t));const Y4=(e,t)=>{let n=FS("modal");const i=()=>{c.component&&(c.component.props.visible=!1),Nt(e.onOk)&&e.onOk()},o=()=>{c.component&&(c.component.props.visible=!1),Nt(e.onCancel)&&e.onCancel()},s=async()=>{await fn(),n&&(Ws(null,n),document.body.removeChild(n)),n=null,Nt(e.onClose)&&e.onClose()},r=()=>{c.component&&(c.component.props.visible=!1)},a=l=>{c.component&&Object.entries(l).forEach(([g,C])=>{c.component.props[g]=C})},c=O(Pb,Wd(Wd(Wd({},{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:i,onCancel:o,onClose:s}),kr(e,["content","title","footer","visible","unmountOnClose","onOk","onCancel","onClose"])),{footer:typeof e.footer=="boolean"?e.footer:void 0}),{default:ro(e.content),title:ro(e.title),footer:typeof e.footer!="boolean"?ro(e.footer):void 0});return(t??vE._context)&&(c.appContext=t??vE._context),Ws(c,n),document.body.appendChild(n),{close:r,update:a}},X4=Wd({open:Y4,confirm:(e,t)=>{const n=Wd({simple:!0,messageType:"warning"},e);return Y4(n,t)}},HS.reduce((e,t)=>(e[t]=(n,i)=>{const o=Wd({simple:!0,hideCancel:!0,messageType:t},n);return Y4(o,i)},e),{})),vE=Object.assign(Pb,qge(Wd({},X4),{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+Pb.name,Pb);const i={};for(const o of Object.keys(X4))i[o]=(s,r=e._context)=>X4[o](s,r);e.config.globalProperties.$modal=i},_context:null})),Qge=e=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase(),e0e=se({name:"Notification",components:{AIconHover:ai,IconInfoCircleFill:Kp,IconCheckCircleFill:ru,IconExclamationCircleFill:Ta,IconCloseCircleFill:uf,IconClose:Cr},props:{type:{type:String,default:"info"},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},duration:{type:Number,default:3e3},resetOnUpdate:{type:Boolean,default:!1}},emits:["close"],setup(e,t){const n=de("notification");let i=0;const o=()=>{t.emit("close")};return Yt(()=>{e.duration>0&&(i=window.setTimeout(o,e.duration))}),Bi(()=>{e.resetOnUpdate&&(i&&(window.clearTimeout(i),i=0),e.duration>0&&(i=window.setTimeout(o,e.duration)))}),$i(()=>{i&&window.clearTimeout(i)}),{prefixCls:n,handleClose:o}}});function t0e(e,t,n,i,o,s){const r=Pe("icon-info-circle-fill"),a=Pe("icon-check-circle-fill"),u=Pe("icon-exclamation-circle-fill"),c=Pe("icon-close-circle-fill"),l=Pe("icon-close"),g=Pe("a-icon-hover");return R(),X("li",{role:"alert",class:G([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}])},[e.showIcon?(R(),X("div",{key:0,class:G(`${e.prefixCls}-left`)},[B("div",{class:G(`${e.prefixCls}-icon`)},[He(e.$slots,"icon",{},()=>[e.type==="info"?(R(),We(r,{key:0})):e.type==="success"?(R(),We(a,{key:1})):e.type==="warning"?(R(),We(u,{key:2})):e.type==="error"?(R(),We(c,{key:3})):Re("v-if",!0)])],2)],2)):Re("v-if",!0),B("div",{class:G(`${e.prefixCls}-right`)},[e.$slots.default?(R(),X("div",{key:0,class:G(`${e.prefixCls}-title`)},[He(e.$slots,"default")],2)):Re("v-if",!0),e.$slots.content?(R(),X("div",{key:1,class:G(`${e.prefixCls}-content`)},[He(e.$slots,"content")],2)):Re("v-if",!0),e.$slots.footer?(R(),X("div",{key:2,class:G(`${e.prefixCls}-footer`)},[He(e.$slots,"footer")],2)):Re("v-if",!0)],2),e.closable?(R(),X("div",{key:1,class:G(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...C)=>e.handleClose&&e.handleClose(...C))},[He(e.$slots,"closeIconElement",{},()=>[O(g,null,{default:Ve(()=>[He(e.$slots,"closeIcon",{},()=>[O(l)])]),_:3})])],2)):Re("v-if",!0)],2)}var n0e=ye(e0e,[["render",t0e]]);const i0e=["topLeft","topRight","bottomLeft","bottomRight"];function r0e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var o0e=se({name:"NotificationList",props:{notifications:{type:Array,default:()=>[]},position:{type:String,default:"topRight",validator:e=>i0e.includes(e)}},emits:["close","afterClose"],setup(e,t){const n=de("notification-list"),i=Qge(e.position),{zIndex:o}=Jp("message",{runOnMounted:!0}),s=e.position.includes("Right");return()=>{let r;return O(lf,{class:[n,`${n}-${i}`],style:{zIndex:o.value},name:`slide-${s?"right":"left"}-notification`,onAfterLeave:()=>t.emit("afterClose"),tag:"ul"},r0e(r=e.notifications.map(a=>{const u={default:ro(a.title),content:ro(a.content),icon:ro(a.icon),footer:ro(a.footer),closeIcon:ro(a.closeIcon),closeIconElement:ro(a.closeIconElement)};return O(n0e,{key:a.id,type:a.type,style:a.style,class:a.class,duration:a.duration,closable:a.closable,showIcon:a.showIcon,resetOnUpdate:a.resetOnUpdate,onClose:()=>t.emit("close",a.id)},u)}))?r:{default:()=>[r]})}}}),s0e=Object.defineProperty,a0e=Object.defineProperties,l0e=Object.getOwnPropertyDescriptors,TN=Object.getOwnPropertySymbols,c0e=Object.prototype.hasOwnProperty,u0e=Object.prototype.propertyIsEnumerable,PN=(e,t,n)=>t in e?s0e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uC=(e,t)=>{for(var n in t||(t={}))c0e.call(t,n)&&PN(e,n,t[n]);if(TN)for(var n of TN(t))u0e.call(t,n)&&PN(e,n,t[n]);return e},nH=(e,t)=>a0e(e,l0e(t));class d0e{constructor(t,n){this.notificationCount=0,this.add=s=>{var r;this.notificationCount++;const a=(r=s.id)!=null?r:`__arco_notification_${this.notificationCount}`;if(this.notificationIds.has(a))return this.update(a,s);const u=it(uC({id:a},s));return this.notifications.value.push(u),this.notificationIds.add(a),{close:()=>this.remove(a)}},this.update=(s,r)=>{for(let a=0;a<this.notifications.value.length;a++)if(this.notifications.value[a].id===s){const u=!jt(r.duration);Object.assign(this.notifications.value[a],nH(uC({},r),{id:s,resetOnUpdate:u}));break}return{close:()=>this.remove(s)}},this.remove=s=>{for(let r=0;r<this.notifications.value.length;r++){const a=this.notifications.value[r];if(a.id===s){Nt(a.onClose)&&a.onClose(s),this.notifications.value.splice(r,1),this.notificationIds.delete(s);break}}},this.clear=()=>{this.notifications.value.splice(0)},this.destroy=()=>{this.notifications.value.length===0&&this.container&&(Ws(null,this.container),document.body.removeChild(this.container),this.container=null,Ud[this.position]=void 0)};const{position:i="topRight"}=t;this.container=FS("notification"),this.notificationIds=new Set,this.notifications=he([]),this.position=i;const o=O(o0e,{notifications:this.notifications.value,position:i,onClose:this.remove,onAfterClose:this.destroy});(n??gE._context)&&(o.appContext=n??gE._context),Ws(o,this.container),document.body.appendChild(this.container)}}const Ud={},vv=HS.reduce((e,t)=>(e[t]=(n,i)=>{Ai(n)&&(n={content:n});const o=uC({type:t},n),{position:s="topRight"}=o;return Ud[s]||(Ud[s]=new d0e(o,i)),Ud[s].add(o)},e),{});vv.remove=e=>{e&&Object.values(Ud).forEach(t=>t==null?void 0:t.remove(e))};vv.clear=e=>{var t;e?(t=Ud[e])==null||t.clear():Object.values(Ud).forEach(n=>n==null?void 0:n.clear())};const gE=nH(uC({},vv),{install:e=>{const t={clear:vv.clear};for(const n of HS)t[n]=(i,o=e._context)=>vv[n](i,o);e.config.globalProperties.$notification=t},_context:null}),f0e=se({name:"PageHeader",components:{AIconHover:ai,IconLeft:Pa},props:{title:String,subtitle:String,showBack:{type:Boolean,default:!0}},emits:["back"],setup(e,{emit:t,slots:n}){const i=de("page-header"),o=r=>{t("back",r)},s=P(()=>[i,{[`${i}-with-breadcrumb`]:!!n.breadcrumb,[`${i}-with-content`]:!!n.default}]);return{prefixCls:i,cls:s,handleBack:o}}});function h0e(e,t,n,i,o,s){const r=Pe("icon-left"),a=Pe("a-icon-hover");return R(),X("div",{class:G(e.cls)},[B("div",{class:G(`${e.prefixCls}-wrapper`)},[e.$slots.breadcrumb?(R(),X("div",{key:0,class:G(`${e.prefixCls}-breadcrumb`)},[He(e.$slots,"breadcrumb")],2)):Re("v-if",!0),B("div",{class:G(`${e.prefixCls}-header`)},[B("span",{class:G(`${e.prefixCls}-main`)},[e.showBack?(R(),We(a,{key:0,class:G(`${e.prefixCls}-back-btn`),prefix:e.prefixCls,onClick:e.handleBack},{default:Ve(()=>[He(e.$slots,"back-icon",{},()=>[O(r)])]),_:3},8,["class","prefix","onClick"])):Re("v-if",!0),B("span",{class:G(`${e.prefixCls}-title`)},[He(e.$slots,"title",{},()=>[pt(tt(e.title),1)])],2),e.$slots.subtitle||e.subtitle?(R(),X("span",{key:1,class:G(`${e.prefixCls}-divider`)},null,2)):Re("v-if",!0),e.$slots.subtitle||e.subtitle?(R(),X("span",{key:2,class:G(`${e.prefixCls}-subtitle`)},[He(e.$slots,"subtitle",{},()=>[pt(tt(e.subtitle),1)])],2)):Re("v-if",!0)],2),e.$slots.extra?(R(),X("span",{key:0,class:G(`${e.prefixCls}-extra`)},[He(e.$slots,"extra")],2)):Re("v-if",!0)],2)],2),e.$slots.default?(R(),X("div",{key:0,class:G(`${e.prefixCls}-content`)},[He(e.$slots,"default")],2)):Re("v-if",!0)],2)}var K4=ye(f0e,[["render",h0e]]);const p0e=Object.assign(K4,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+K4.name,K4)}}),m0e=se({name:"Popconfirm",components:{ArcoButton:Yr,Trigger:ur,IconInfoCircleFill:Kp,IconCheckCircleFill:ru,IconExclamationCircleFill:Ta,IconCloseCircleFill:uf},props:{content:String,position:{type:String,default:"top"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},type:{type:String,default:"info"},okText:String,cancelText:String,okLoading:{type:Boolean,default:!1},okButtonProps:{type:Object},cancelButtonProps:{type:Object},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]},onBeforeOk:{type:Function},onBeforeCancel:{type:Function}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,ok:()=>!0,cancel:()=>!0},setup(e,{emit:t}){const n=de("popconfirm"),{t:i}=fi(),o=he(e.defaultPopupVisible),s=P(()=>{var A;return(A=e.popupVisible)!=null?A:o.value}),r=he(!1),a=P(()=>e.okLoading||r.value);let u=0;const c=()=>{u++,r.value&&(r.value=!1),o.value=!1,t("update:popupVisible",!1),t("popupVisibleChange",!1)},l=A=>{A?(o.value=A,t("update:popupVisible",A),t("popupVisibleChange",A)):c()},g=async()=>{const A=u,y=await new Promise(async d=>{var v;if(Nt(e.onBeforeOk)){let m=e.onBeforeOk((f=!0)=>d(f));if((Kd(m)||!Gr(m))&&(r.value=!0),Kd(m))try{m=(v=await m)!=null?v:!0}catch{m=!1}Gr(m)&&d(m)}else d(!0)});A===u&&(y?(t("ok"),c()):r.value&&(r.value=!1))},C=()=>{var A;let y=!0;Nt(e.onBeforeCancel)&&(y=(A=e.onBeforeCancel())!=null?A:!1),y&&(t("cancel"),c())},S=P(()=>[`${n}-popup-content`,e.contentClass]),_=P(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,contentCls:S,arrowCls:_,computedPopupVisible:s,mergedOkLoading:a,handlePopupVisibleChange:l,handleOk:g,handleCancel:C,t:i}}});function v0e(e,t,n,i,o,s){const r=Pe("icon-info-circle-fill"),a=Pe("icon-check-circle-fill"),u=Pe("icon-exclamation-circle-fill"),c=Pe("icon-close-circle-fill"),l=Pe("arco-button"),g=Pe("trigger");return R(),We(g,{class:G(e.prefixCls),trigger:"click",position:e.position,"show-arrow":"","popup-visible":e.computedPopupVisible,"popup-offset":10,"popup-container":e.popupContainer,"content-class":e.contentCls,"content-style":e.contentStyle,"arrow-class":e.arrowCls,"arrow-style":e.arrowStyle,"animation-name":"zoom-in-fade-out","auto-fit-transform-origin":"",onPopupVisibleChange:e.handlePopupVisibleChange},{content:Ve(()=>[B("div",{class:G(`${e.prefixCls}-body`)},[B("span",{class:G(`${e.prefixCls}-icon`)},[He(e.$slots,"icon",{},()=>[e.type==="info"?(R(),We(r,{key:0})):e.type==="success"?(R(),We(a,{key:1})):e.type==="warning"?(R(),We(u,{key:2})):e.type==="error"?(R(),We(c,{key:3})):Re("v-if",!0)])],2),B("span",{class:G(`${e.prefixCls}-content`)},[He(e.$slots,"content",{},()=>[pt(tt(e.content),1)])],2)],2),B("div",{class:G(`${e.prefixCls}-footer`)},[O(l,Qe({size:"mini"},e.cancelButtonProps,{onClick:e.handleCancel}),{default:Ve(()=>[pt(tt(e.cancelText||e.t("popconfirm.cancelText")),1)]),_:1},16,["onClick"]),O(l,Qe({type:"primary",size:"mini"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:Ve(()=>[pt(tt(e.okText||e.t("popconfirm.okText")),1)]),_:1},16,["loading","onClick"])],2)]),default:Ve(()=>[He(e.$slots,"default")]),_:3},8,["class","position","popup-visible","popup-container","content-class","content-style","arrow-class","arrow-style","onPopupVisibleChange"])}var J4=ye(m0e,[["render",v0e]]);const g0e=Object.assign(J4,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+J4.name,J4)}});var y0e=Object.defineProperty,ON=Object.getOwnPropertySymbols,b0e=Object.prototype.hasOwnProperty,k0e=Object.prototype.propertyIsEnumerable,LN=(e,t,n)=>t in e?y0e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C0e=(e,t)=>{for(var n in t||(t={}))b0e.call(t,n)&&LN(e,n,t[n]);if(ON)for(var n of ON(t))k0e.call(t,n)&&LN(e,n,t[n]);return e};const S0e={small:3,medium:4,large:8},w0e=e=>{if(e)return rn(e)?{backgroundImage:`linear-gradient(to right, ${Object.keys(e).map(n=>`${e[n]} ${n}`).join(",")})`}:{backgroundColor:e}},_0e=se({name:"ProgressLine",components:{IconExclamationCircleFill:Ta},props:{percent:{type:Number,default:0},animation:{type:Boolean,default:!1},size:{type:String,default:"medium"},strokeWidth:{type:Number,default:4},width:{type:[Number,String],default:"100%"},color:{type:[String,Object],default:void 0},trackColor:String,formatText:{type:Function,default:void 0},status:{type:String},showText:Boolean},setup(e){const t=de("progress-line"),n=P(()=>e.strokeWidth!==4?e.strokeWidth:S0e[e.size]),i=P(()=>`${so.times(e.percent,100)}%`),o=P(()=>({width:e.width,height:`${n.value}px`,backgroundColor:e.trackColor})),s=P(()=>C0e({width:`${e.percent*100}%`},w0e(e.color)));return{prefixCls:t,style:o,barStyle:s,text:i}}}),I0e=["aria-valuenow"];function x0e(e,t,n,i,o,s){const r=Pe("icon-exclamation-circle-fill");return R(),X("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:G(`${e.prefixCls}-wrapper`)},[B("div",{class:G(e.prefixCls),style:Te(e.style)},[B("div",{class:G(`${e.prefixCls}-bar-buffer`)},null,2),B("div",{class:G([`${e.prefixCls}-bar`]),style:Te(e.barStyle)},null,6)],6),e.showText?(R(),X("div",{key:0,class:G(`${e.prefixCls}-text`)},[He(e.$slots,"text",{percent:e.percent},()=>[pt(tt(e.text)+" ",1),e.status==="danger"?(R(),We(r,{key:0})):Re("v-if",!0)])],2)):Re("v-if",!0)],10,I0e)}var $0e=ye(_0e,[["render",x0e]]);const A0e=se({name:"IconExclamation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-exclamation`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),E0e=["stroke-width","stroke-linecap","stroke-linejoin"],M0e=B("path",{d:"M23 9h2v21h-2z"},null,-1),T0e=B("path",{fill:"currentColor",stroke:"none",d:"M23 9h2v21h-2z"},null,-1),P0e=B("path",{d:"M23 37h2v2h-2z"},null,-1),O0e=B("path",{fill:"currentColor",stroke:"none",d:"M23 37h2v2h-2z"},null,-1),L0e=[M0e,T0e,P0e,O0e];function D0e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},L0e,14,E0e)}var q4=ye(A0e,[["render",D0e]]);const MP=Object.assign(q4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+q4.name,q4)}}),N0e=se({name:"IconCheck",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-check`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),j0e=["stroke-width","stroke-linecap","stroke-linejoin"],z0e=B("path",{d:"M41.678 11.05 19.05 33.678 6.322 20.95"},null,-1),R0e=[z0e];function B0e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},R0e,14,j0e)}var Q4=ye(N0e,[["render",B0e]]);const C1=Object.assign(Q4,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Q4.name,Q4)}});let DN=0;const F0e={mini:16,small:48,medium:64,large:80},V0e={mini:4,small:3,medium:4,large:4},H0e=se({name:"ProgressCircle",components:{IconExclamation:MP,IconCheck:C1},props:{percent:{type:Number,default:0},type:{type:String},size:{type:String,default:"medium"},strokeWidth:{type:Number},width:{type:Number,default:void 0},color:{type:[String,Object],default:void 0},trackColor:String,status:{type:String,default:void 0},showText:{type:Boolean,default:!0},pathStrokeWidth:{type:Number}},setup(e){const t=de("progress-circle"),n=rn(e.color),i=P(()=>{var g;return(g=e.width)!=null?g:F0e[e.size]}),o=P(()=>{var g;return(g=e.strokeWidth)!=null?g:e.size==="mini"?i.value/2:V0e[e.size]}),s=P(()=>{var g;return(g=e.pathStrokeWidth)!=null?g:e.size==="mini"?o.value:Math.max(2,o.value-2)}),r=P(()=>(i.value-o.value)/2),a=P(()=>Math.PI*2*r.value),u=P(()=>i.value/2),c=P(()=>(DN+=1,`${t}-linear-gradient-${DN}`)),l=P(()=>`${so.times(e.percent,100)}%`);return{prefixCls:t,isLinearGradient:n,radius:r,text:l,perimeter:a,center:u,mergedWidth:i,mergedStrokeWidth:o,mergedPathStrokeWidth:s,linearGradientId:c}}}),W0e=["aria-valuenow"],U0e=["viewBox"],Z0e={key:0},G0e=["id"],Y0e=["offset","stop-color"],X0e=["cx","cy","r","stroke-width"],K0e=["cx","cy","r","stroke-width"];function J0e(e,t,n,i,o,s){const r=Pe("icon-check"),a=Pe("icon-exclamation");return R(),X("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:G(`${e.prefixCls}-wrapper`),style:Te({width:`${e.mergedWidth}px`,height:`${e.mergedWidth}px`})},[e.type==="circle"&&e.size==="mini"&&e.status==="success"?(R(),We(r,{key:0,style:Te({fontSize:e.mergedWidth-2,color:e.color})},null,8,["style"])):(R(),X("svg",{key:1,viewBox:`0 0 ${e.mergedWidth} ${e.mergedWidth}`,class:G(`${e.prefixCls}-svg`)},[e.isLinearGradient?(R(),X("defs",Z0e,[B("linearGradient",{id:e.linearGradientId,x1:"0",y1:"1",x2:"0",y2:"0"},[(R(!0),X(ft,null,dn(Object.keys(e.color),u=>(R(),X("stop",{key:u,offset:u,"stop-color":e.color[u]},null,8,Y0e))),128))],8,G0e)])):Re("v-if",!0),B("circle",{class:G(`${e.prefixCls}-bg`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedPathStrokeWidth,style:Te({stroke:e.trackColor})},null,14,X0e),B("circle",{class:G(`${e.prefixCls}-bar`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedStrokeWidth,style:Te({stroke:e.isLinearGradient?`url(#${e.linearGradientId})`:e.color,strokeDasharray:e.perimeter,strokeDashoffset:(e.percent>=1?0:1-e.percent)*e.perimeter})},null,14,K0e)],10,U0e)),e.showText&&e.size!=="mini"?(R(),X("div",{key:2,class:G(`${e.prefixCls}-text`)},[He(e.$slots,"text",{percent:e.percent},()=>[e.status==="danger"?(R(),We(a,{key:0})):e.status==="success"?(R(),We(r,{key:1})):(R(),X(ft,{key:2},[pt(tt(e.text),1)],2112))])],2)):Re("v-if",!0)],14,W0e)}var q0e=ye(H0e,[["render",J0e]]);const Q0e=se({name:"ProgressSteps",components:{IconExclamationCircleFill:Ta},props:{steps:{type:Number,default:0},percent:{type:Number,default:0},size:{type:String},color:{type:[String,Object],default:void 0},trackColor:String,strokeWidth:{type:Number},status:{type:String,default:void 0},showText:{type:Boolean,default:!0}},setup(e){const t=de("progress-steps"),n=P(()=>{var s;return((s=e.strokeWidth)!=null?s:e.size==="small")?8:4}),i=P(()=>[...Array(e.steps)].map((s,r)=>e.percent>0&&e.percent>1/e.steps*r)),o=P(()=>`${so.times(e.percent,100)}%`);return{prefixCls:t,stepList:i,mergedStrokeWidth:n,text:o}}}),e1e=["aria-valuenow"];function t1e(e,t,n,i,o,s){const r=Pe("icon-exclamation-circle-fill");return R(),X("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:G(`${e.prefixCls}-wrapper`)},[B("div",{class:G(e.prefixCls),style:Te({height:`${e.mergedStrokeWidth}px`})},[(R(!0),X(ft,null,dn(e.stepList,(a,u)=>(R(),X("div",{key:u,class:G([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:a}]),style:Te({backgroundColor:a?e.color:e.trackColor})},null,6))),128))],6),e.showText?(R(),X("div",{key:0,class:G(`${e.prefixCls}-text`)},[He(e.$slots,"text",{percent:e.percent},()=>[pt(tt(e.text)+" ",1),e.status==="danger"?(R(),We(r,{key:0})):Re("v-if",!0)])],2)):Re("v-if",!0)],10,e1e)}var n1e=ye(Q0e,[["render",t1e]]);const i1e=se({name:"Progress",components:{ProgressLine:$0e,ProgressCircle:q0e,ProgressSteps:n1e},props:{type:{type:String,default:"line"},size:{type:String},percent:{type:Number,default:0},steps:{type:Number,default:0},animation:{type:Boolean,default:!1},strokeWidth:{type:Number},width:{type:[Number,String]},color:{type:[String,Object]},trackColor:String,bufferColor:{type:[String,Object]},showText:{type:Boolean,default:!0},status:{type:String}},setup(e){const t=de("progress"),{size:n}=lt(e),i=P(()=>e.steps>0?"steps":e.type),o=P(()=>e.status||(e.percent>=1?"success":"normal")),{mergedSize:s}=Sr(n);return{cls:P(()=>[t,`${t}-type-${i.value}`,`${t}-size-${s.value}`,`${t}-status-${o.value}`]),computedStatus:o,mergedSize:s}}});function r1e(e,t,n,i,o,s){const r=Pe("progress-steps"),a=Pe("progress-line"),u=Pe("progress-circle");return R(),X("div",{class:G(e.cls)},[e.steps>0?(R(),We(r,{key:0,"stroke-width":e.strokeWidth,percent:e.percent,color:e.color,"track-color":e.trackColor,width:e.width,steps:e.steps,size:e.mergedSize,"show-text":e.showText},ti({_:2},[e.$slots.text?{name:"text",fn:Ve(c=>[He(e.$slots,"text",Bn(ir(c)))])}:void 0]),1032,["stroke-width","percent","color","track-color","width","steps","size","show-text"])):e.type==="line"&&e.mergedSize!=="mini"?(R(),We(a,{key:1,"stroke-width":e.strokeWidth,animation:e.animation,percent:e.percent,color:e.color,"track-color":e.trackColor,size:e.mergedSize,"buffer-color":e.bufferColor,width:e.width,"show-text":e.showText,status:e.computedStatus},ti({_:2},[e.$slots.text?{name:"text",fn:Ve(c=>[He(e.$slots,"text",Bn(ir(c)))])}:void 0]),1032,["stroke-width","animation","percent","color","track-color","size","buffer-color","width","show-text","status"])):(R(),We(u,{key:2,type:e.type,"stroke-width":e.type==="line"?e.strokeWidth||4:e.strokeWidth,"path-stroke-width":e.type==="line"?e.strokeWidth||4:e.strokeWidth,width:e.width,percent:e.percent,color:e.color,"track-color":e.trackColor,size:e.mergedSize,"show-text":e.showText,status:e.computedStatus},ti({_:2},[e.$slots.text?{name:"text",fn:Ve(c=>[He(e.$slots,"text",Bn(ir(c)))])}:void 0]),1032,["type","stroke-width","path-stroke-width","width","percent","color","track-color","size","show-text","status"]))],2)}var e3=ye(i1e,[["render",r1e]]);const iH=Object.assign(e3,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+e3.name,e3)}}),o1e=se({name:"IconStarFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-star-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),s1e=["stroke-width","stroke-linecap","stroke-linejoin"],a1e=B("path",{d:"M22.683 5.415c.568-1.043 2.065-1.043 2.634 0l5.507 10.098a1.5 1.5 0 0 0 1.04.756l11.306 2.117c1.168.219 1.63 1.642.814 2.505l-7.902 8.359a1.5 1.5 0 0 0-.397 1.223l1.48 11.407c.153 1.177-1.058 2.057-2.131 1.548l-10.391-4.933a1.5 1.5 0 0 0-1.287 0l-10.39 4.933c-1.073.51-2.284-.37-2.131-1.548l1.48-11.407a1.5 1.5 0 0 0-.398-1.223L4.015 20.89c-.816-.863-.353-2.286.814-2.505l11.306-2.117a1.5 1.5 0 0 0 1.04-.756l5.508-10.098Z",fill:"currentColor",stroke:"none"},null,-1),l1e=[a1e];function c1e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},l1e,14,s1e)}var t3=ye(o1e,[["render",c1e]]);const rH=Object.assign(t3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+t3.name,t3)}}),u1e=se({name:"IconFaceMehFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-face-meh-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),d1e=["stroke-width","stroke-linecap","stroke-linejoin"],f1e=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.321-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25ZM15.999 30a2 2 0 0 1 2-2h12a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2Z",fill:"currentColor",stroke:"none"},null,-1),h1e=[f1e];function p1e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},h1e,14,d1e)}var n3=ye(u1e,[["render",p1e]]);const yE=Object.assign(n3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+n3.name,n3)}}),m1e=se({name:"IconFaceSmileFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-face-smile-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),v1e=["stroke-width","stroke-linecap","stroke-linejoin"],g1e=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.321-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-.355 9.953a1.91 1.91 0 0 1 2.694.177 6.66 6.66 0 0 0 5.026 2.279c1.918 0 3.7-.81 4.961-2.206a1.91 1.91 0 0 1 2.834 2.558 10.476 10.476 0 0 1-7.795 3.466 10.477 10.477 0 0 1-7.897-3.58 1.91 1.91 0 0 1 .177-2.694Z",fill:"currentColor",stroke:"none"},null,-1),y1e=[g1e];function b1e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},y1e,14,v1e)}var i3=ye(m1e,[["render",b1e]]);const oH=Object.assign(i3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+i3.name,i3)}}),k1e=se({name:"IconFaceFrownFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-face-frown-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),C1e=["stroke-width","stroke-linecap","stroke-linejoin"],S1e=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.322-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25ZM31.68 32.88a1.91 1.91 0 0 1-2.694-.176 6.66 6.66 0 0 0-5.026-2.28c-1.918 0-3.701.81-4.962 2.207a1.91 1.91 0 0 1-2.834-2.559 10.476 10.476 0 0 1 7.796-3.465c3.063 0 5.916 1.321 7.896 3.58a1.909 1.909 0 0 1-.176 2.693Z",fill:"currentColor",stroke:"none"},null,-1),w1e=[S1e];function _1e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},w1e,14,C1e)}var r3=ye(k1e,[["render",_1e]]);const sH=Object.assign(r3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+r3.name,r3)}});var o3=se({name:"Rate",props:{count:{type:Number,default:5},modelValue:{type:Number,default:void 0},defaultValue:{type:Number,default:0},allowHalf:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},grading:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{type:[String,Object]}},emits:{"update:modelValue":e=>!0,change:e=>!0,hoverChange:e=>!0},setup(e,{emit:t,slots:n}){const{modelValue:i}=lt(e),o=de("rate"),{mergedDisabled:s,eventHandlers:r}=li({disabled:lo(e,"disabled")}),a=he(e.defaultValue),u=he(!1);gt(i,w=>{(jt(w)||Xr(w))&&(a.value=0)});const c=he(0),l=P(()=>{var w;return(w=e.modelValue)!=null?w:a.value}),g=P(()=>{const w=e.allowHalf?so.times(so.round(so.divide(l.value,.5),0),.5):Math.round(l.value);return c.value||w}),C=P(()=>s.value||e.readonly),S=P(()=>[...Array(e.grading?5:e.count)]),_=P(()=>{var w;if(Ai(e.color))return S.value.map(()=>e.color);if(rn(e.color)){const k=Object.keys(e.color).map(E=>Number(E)).sort((E,N)=>N-E);let $=(w=k.pop())!=null?w:S.value.length;return S.value.map((E,N)=>{var j;return N+1>$&&($=(j=k.pop())!=null?j:$),e.color[String($)]})}}),A=()=>{c.value&&(c.value=0,t("hoverChange",0))},y=(w,k)=>{const $=k&&e.allowHalf?w+.5:w+1;$!==c.value&&(c.value=$,t("hoverChange",$))},d=(w,k)=>{var $,E,N,j;const z=k&&e.allowHalf?w+.5:w+1;u.value=!0,z!==l.value?(a.value=z,t("update:modelValue",z),t("change",z),(E=($=r.value)==null?void 0:$.onChange)==null||E.call($)):e.allowClear&&(a.value=0,t("update:modelValue",0),t("change",0),(j=(N=r.value)==null?void 0:N.onChange)==null||j.call(N))},v=w=>{u.value&&w+1>=l.value-1&&(u.value=!1)},m=(w,k)=>w>k?O(yE,null,null):k<=2?O(sH,null,null):k<=3?O(yE,null,null):O(oH,null,null),f=(w,k=!1)=>({role:"radio","aria-checked":w+(k?.5:1)<=l.value,"aria-setsize":S.value.length,"aria-posinset":w+(k?.5:1)}),p=w=>e.grading?m(w,g.value):n.character?n.character({index:w}):O(rH,null,null),h=w=>{const k=C.value?{}:{onMouseenter:()=>y(w,!0),onClick:()=>d(w,!0)},$=C.value?{}:{onMouseenter:()=>y(w,!1),onClick:()=>d(w,!1)},E=u.value?{animationDelay:`${50*w}ms`}:void 0,N=Math.ceil(g.value)-1,j=_.value&&e.allowHalf&&w+.5===g.value?{color:_.value[N]}:void 0,z=_.value&&w+1<=g.value?{color:_.value[N]}:void 0,V=[`${o}-character`,{[`${o}-character-half`]:e.allowHalf&&w+.5===g.value,[`${o}-character-full`]:w+1<=g.value,[`${o}-character-scale`]:u.value&&w+1<l.value}];return O("div",Qe({class:V,style:E},e.allowHalf?void 0:f(w),{onAnimationend:()=>v(w)}),[O("div",Qe({class:`${o}-character-left`,style:j},k,e.allowHalf?f(w,!0):void 0),[p(w)]),O("div",Qe({class:`${o}-character-right`,style:z},$,e.allowHalf?f(w):void 0),[p(w)])])},b=P(()=>[o,{[`${o}-readonly`]:e.readonly,[`${o}-disabled`]:s.value}]);return()=>O("div",{class:b.value,onMouseleave:A},[S.value.map((w,k)=>h(k))])}});const I1e=Object.assign(o3,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+o3.name,o3)}}),x1e=se({name:"IconInfo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-info`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),$1e=["stroke-width","stroke-linecap","stroke-linejoin"],A1e=B("path",{d:"M25 39h-2V18h2z"},null,-1),E1e=B("path",{fill:"currentColor",stroke:"none",d:"M25 39h-2V18h2z"},null,-1),M1e=B("path",{d:"M25 11h-2V9h2z"},null,-1),T1e=B("path",{fill:"currentColor",stroke:"none",d:"M25 11h-2V9h2z"},null,-1),P1e=[A1e,E1e,M1e,T1e];function O1e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},P1e,14,$1e)}var s3=ye(x1e,[["render",O1e]]);const aH=Object.assign(s3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+s3.name,s3)}});var L1e=se({name:"ResultForbidden",render(){return O("svg",{viewBox:"0 0 213 213",height:"100%",width:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},[O("g",{transform:"matrix(1,0,0,1,-871.485,-445.62)"},[O("g",null,[O("g",{transform:"matrix(1,0,0,1,-75.2684,-87.3801)"},[O("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:{fill:"rgb(235, 238, 246)"}},null)]),O("g",{transform:"matrix(1,0,0,1,246.523,295.575)"},[O("g",{transform:"matrix(0.316667,0,0,0.316667,277.545,71.0298)"},[O("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),O("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[O("g",{transform:"matrix(1,0,0,1,-6,-6)"},[O("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[O("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])]),O("g",{transform:"matrix(0.182997,0.105653,-0.494902,0.285732,814.161,66.3087)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(0.316667,0,0,0.316667,237.301,94.2647)"},[O("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),O("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[O("g",{transform:"matrix(1,0,0,1,-6,-6)"},[O("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[O("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])]),O("g",{transform:"matrix(0.474953,0,0,0.474953,538.938,8.95289)"},[O("g",{transform:"matrix(0.180615,0.104278,-0.973879,0.562269,790.347,286.159)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(0.473356,0,0,0.473356,294.481,129.741)"},[O("g",null,[O("g",{transform:"matrix(0.1761,-0.101671,1.73518e-16,1.22207,442.564,7.31508)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0922781,0.0532768,2.03964e-16,2.20569,405.236,-248.842)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.147541,-0.0851831,1.52371e-16,1.23446,454.294,-3.8127)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0921286,0.0531905,-0.126106,0.0728076,474.688,603.724)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)])])]),O("g",{transform:"matrix(0.473356,0,0,0.473356,192.621,188.549)"},[O("g",null,[O("g",{transform:"matrix(0.1761,-0.101671,1.73518e-16,1.22207,442.564,7.31508)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0922781,0.0532768,2.03964e-16,2.20569,405.236,-248.842)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.147541,-0.0851831,1.52371e-16,1.23446,454.294,-3.8127)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0921286,0.0531905,-0.126106,0.0728076,474.688,603.724)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)])])]),O("g",{transform:"matrix(0.668111,0,0,0.668111,-123.979,-49.2109)"},[O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,974.758,729.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,42.5091,1294.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,-1.52814,0.882275,1593.11,461.746)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,49.4442,1298.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,753.056,857.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,898.874,529.479)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,930.12,511.44)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,961.365,493.4)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,992.61,475.361)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1023.86,457.321)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1056.25,438.617)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1085.74,421.589)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(0.668111,0,0,0.668111,-123.979,-91.97)"},[O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,974.758,729.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,42.5091,1294.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,-1.52814,0.882275,1593.11,461.746)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,49.4442,1298.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,753.056,857.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,898.874,529.479)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,930.12,511.44)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,961.365,493.4)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,992.61,475.361)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1023.86,457.321)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1056.25,438.617)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1085.74,421.589)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(0.701585,5.16096e-35,-5.16096e-35,0.701585,-546.219,-21.3487)"},[O("g",{transform:"matrix(0.558202,-0.322278,0,0.882275,1033.27,615.815)"},[O("path",{d:"M855.598,410.446C855.598,407.244 852.515,404.643 848.718,404.643L663.891,404.643C660.094,404.643 657.012,407.244 657.012,410.446L657.012,543.92C657.012,547.123 660.094,549.723 663.891,549.723L848.718,549.723C852.515,549.723 855.598,547.123 855.598,543.92L855.598,410.446Z",style:{fill:"white"}},null)]),O("g",{transform:"matrix(0.558202,-0.322278,0,0.882275,1035.25,616.977)"},[O("path",{d:"M855.598,410.446C855.598,407.244 852.515,404.643 848.718,404.643L663.891,404.643C660.094,404.643 657.012,407.244 657.012,410.446L657.012,543.92C657.012,547.123 660.094,549.723 663.891,549.723L848.718,549.723C852.515,549.723 855.598,547.123 855.598,543.92L855.598,410.446Z",style:{fill:"white"}},null)]),O("g",{transform:"matrix(1,0,0,1,418.673,507.243)"},[O("path",{d:"M1088.34,192.063C1089.79,191.209 1090.78,191.821 1090.78,191.821L1092.71,192.944C1092.71,192.944 1092.29,192.721 1091.7,192.763C1090.99,192.813 1090.34,193.215 1090.34,193.215C1090.34,193.215 1088.85,192.362 1088.34,192.063Z",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(1,0,0,1,235.984,-39.1315)"},[O("path",{d:"M1164.02,805.247C1164.05,802.517 1165.64,799.379 1167.67,798.118L1169.67,799.272C1167.58,800.648 1166.09,803.702 1166.02,806.402L1164.02,805.247Z",style:{fill:"url(#_Linear1)"}},null)]),O("g",{transform:"matrix(0.396683,0,0,0.396683,1000.22,516.921)"},[O("path",{d:"M1011.2,933.14C1009.31,932.075 1008.05,929.696 1007.83,926.324L1012.87,929.235C1012.87,929.235 1012.96,930.191 1013.04,930.698C1013.16,931.427 1013.42,932.344 1013.62,932.845C1013.79,933.255 1014.59,935.155 1016.22,936.046C1015.83,935.781 1011.19,933.139 1011.19,933.139L1011.2,933.14Z",style:{fill:"rgb(238, 238, 238)"}},null)]),O("g",{transform:"matrix(0.253614,-0.146424,4.87691e-17,0.338152,1209.98,830.02)"},[O("circle",{cx:"975.681",cy:"316.681",r:"113.681",style:{fill:"rgb(245, 63, 63)"}},null),O("g",{transform:"matrix(1.08844,0,0,0.61677,-99.9184,125.436)"},[O("path",{d:"M1062,297.556C1062,296.697 1061.61,296 1061.12,296L915.882,296C915.395,296 915,296.697 915,297.556L915,333.356C915,334.215 915.395,334.912 915.882,334.912L1061.12,334.912C1061.61,334.912 1062,334.215 1062,333.356L1062,297.556Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(5.57947,-3.22131,0.306277,0.176829,-6260.71,4938.32)"},[O("rect",{x:"1335.54",y:"694.688",width:"18.525",height:"6.511",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.10726,0.0619268,-1.83335e-14,18.1609,1256.76,-11932.8)"},[O("rect",{x:"1335.54",y:"694.688",width:"18.525",height:"6.511",style:{fill:"rgb(238, 238, 238)"}},null)])])]),O("g",{transform:"matrix(0.316667,0,0,0.316667,269.139,37.8829)"},[O("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),O("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[O("g",{transform:"matrix(1,0,0,1,-6,-6)"},[O("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[O("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])])])])]),O("defs",null,[O("linearGradient",{id:"_Linear1",x1:"0",y1:"0",x2:"1",y2:"0",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(-2.64571,4.04098,-4.04098,-2.64571,1167.67,799.269)"},[O("stop",{offset:"0",style:{stopColor:"rgb(248, 248, 248)",stopOpacity:1}},null),O("stop",{offset:"1",style:{stopColor:"rgb(248, 248, 248)",stopOpacity:1}},null)])])])}}),D1e=se({name:"ResultNotFound",render(){return O("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},[O("g",{transform:"matrix(1,0,0,1,-1241.95,-445.62)"},[O("g",null,[O("g",{transform:"matrix(1,0,0,1,295.2,-87.3801)"},[O("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:{fill:"rgb(235, 238, 246)"}},null)]),O("g",{transform:"matrix(0.38223,0,0,0.38223,1126.12,238.549)"},[O("g",{transform:"matrix(0.566536,0.327089,-1.28774,0.74348,763.4,317.171)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(0.29595,0.170867,-0.91077,0.525833,873.797,588.624)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(1,0,0,1,275,-15)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,183.952,-67.5665)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,414,-95.2517)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,322.952,-147.818)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",null,[O("g",{transform:"matrix(1.42334,-0.821763,1.11271,0.642426,-1439.64,459.621)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(1.40786,-0.812831,6.60237e-16,1.99081,-2052.17,-84.7286)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(1.26159,-0.728382,5.91642e-16,1.78397,-1774.67,11.2303)"},[O("path",{d:"M1950.29,1194.38C1950.29,1193.37 1949.41,1192.54 1948.34,1192.54L1846.01,1192.54C1844.93,1192.54 1844.06,1193.37 1844.06,1194.38L1844.06,1282.7C1844.06,1283.72 1844.93,1284.54 1846.01,1284.54L1948.34,1284.54C1949.41,1284.54 1950.29,1283.72 1950.29,1282.7L1950.29,1194.38Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(1.2198,-0.704254,5.72043e-16,1.72488,-1697.6,37.2103)"},[O("path",{d:"M1950.29,1194.38C1950.29,1193.37 1949.41,1192.54 1948.34,1192.54L1846.01,1192.54C1844.93,1192.54 1844.06,1193.37 1844.06,1194.38L1844.06,1282.7C1844.06,1283.72 1844.93,1284.54 1846.01,1284.54L1948.34,1284.54C1949.41,1284.54 1950.29,1283.72 1950.29,1282.7L1950.29,1194.38Z",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.707187,0.408295,9.06119e-17,1.54833,-733.949,683.612)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.74666,0.431085,2.3583e-17,0.135259,-816.63,57.1397)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,354.191)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,309.191)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,263.931)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("path",{d:"M555.753,832.474L555.753,921.408L630.693,878.141L630.693,789.207L555.753,832.474Z",style:{fillOpacity:.1}},null),O("g",{transform:"matrix(0.750082,0,0,0.750082,236.431,272.852)"},[O("g",{transform:"matrix(1.64553,-0.950049,1.14552,0.661368,-1606.78,467.933)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(1.54477,-0.891873,1.05847,0.611108,-1456.84,490.734)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(1.27607,-0.736739,0.751435,0.433841,-970.952,617.519)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.728038,0.420333,3.52595e-17,0.377589,-790.978,151.274)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2726.83,1873.38)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",null,[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])])]),O("g",{transform:"matrix(1.62765,-0.939723,4.80984e-17,0.173913,-2468.81,2307.87)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)])]),O("g",null,[O("g",{transform:"matrix(0.479077,0.276595,-0.564376,0.325843,598.357,-129.986)"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.15,1317.28 1767.24,1317.28L1684.37,1317.28C1679.46,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.46,1404.46 1684.37,1404.46L1767.24,1404.46C1772.15,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z",style:{fill:"white"}},null)]),O("g",{transform:"matrix(2.61622,0,0,2.61622,-2305.73,162.161)"},[O("g",{transform:"matrix(1.09915,-0.634597,1.26919,0.73277,-299.167,-62.4615)"},[O("ellipse",{cx:"412.719",cy:"770.575",rx:"6.303",ry:"5.459",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.238212,-0.137532,0.178659,0.103149,875.064,207.93)"},[O("text",{x:"413.474px",y:"892.067px",style:{fontFamily:"NunitoSans-Bold, Nunito Sans",fontWeight:700,fontSize:41.569,fill:"white"}},[pt("?")])])])])])])])])}}),N1e=se({name:"ResultServerError",render(){return O("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:"fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2;"},[O("g",{transform:"matrix(1,0,0,1,-483.054,-445.448)"},[O("g",null,[O("g",{transform:"matrix(1,0,0,1,-463.699,-87.5516)"},[O("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:"fill: rgb(235, 238, 246);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,260.021)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill-opacity: 0.1;"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,218.845)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,238.807)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,257.804)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,329.956)"},[O("clipPath",{id:"_clip1"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip1)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,269.266)"},[O("use",{href:"#_Image2",x:"50.54",y:"112.301",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,265.448)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,268.45)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,271.452)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,124.262)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,420.796)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,419.062)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,417.329)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,415.595)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,413.862)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,196.542)"},[O("clipPath",{id:"_clip3"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip3)"},[O("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,68.2716,1030.07)"},[O("use",{href:"#_Image4",x:"50.54",y:"56.312",width:"112.406px",height:"64.897px",transform:"matrix(0.99474,0,0,0.998422,0,0)"},null)])])]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,216.764)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,235.762)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,307.652)"},[O("clipPath",{id:"_clip5"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip5)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,321.266)"},[O("use",{href:"#_Image2",x:"50.54",y:"89.692",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,243.144)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,246.146)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,249.149)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,101.958)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,398.492)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,396.759)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,395.025)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,393.292)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,391.558)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,171.832)"},[O("clipPath",{id:"_clip6"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip6)"},[O("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,12.6215,1078.27)"},[O("use",{href:"#_Image7",x:"50.54",y:"31.563",width:"112.406px",height:"64.897px",transform:"matrix(0.99474,0,0,0.998422,0,0)"},null)])])]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,192.055)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,211.052)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,282.943)"},[O("clipPath",{id:"_clip8"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip8)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,378.876)"},[O("use",{href:"#_Image2",x:"50.54",y:"64.644",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,218.434)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,221.437)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,224.439)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,77.2484)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,373.782)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,372.049)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,370.316)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,368.582)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,366.849)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,185.45)"},[O("clipPath",{id:"_clip9"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip9)"},[O("g",{transform:"matrix(1.36821,1.1849,-2.36981,2.05231,5.46929,1071.93)"},[O("use",{href:"#_Image10",x:"53.151",y:"30.14",width:"106.825px",height:"61.676px",transform:"matrix(0.998367,0,0,0.994768,0,0)"},null)])])]),O("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,183.729)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:'fill: url("#_Linear11");'},null)]),O("g",{transform:"matrix(0.407622,0,0,0.407622,47.38,278)"},[O("clipPath",{id:"_clip12"},[O("path",{d:"M1461.07,554.317C1461.07,556.747 1459.6,559.067 1456.6,560.8L1342.04,626.943C1335.41,630.767 1323.83,630.287 1316.18,625.871L1205.33,561.871C1201.14,559.456 1199,556.361 1199,553.426L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,554.317Z"},null)]),O("g",{"clip-path":"url(#_clip12)"},[O("g",{transform:"matrix(2.45325,-0,-0,2.45325,1068.82,410.793)"},[O("use",{href:"#_Image13",x:"53.151",y:"58.978",width:"106.825px",height:"33.517px",transform:"matrix(0.998367,0,0,0.985808,0,0)"},null)])])]),O("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-19.3677,248.256)"},[O("clipPath",{id:"_clip14"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.23,1317.28 1767.42,1317.28L1684.19,1317.28C1679.38,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.38,1404.46 1684.19,1404.46L1767.42,1404.46C1772.23,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z"},null)]),O("g",{"clip-path":"url(#_clip14)"},[O("g",{transform:"matrix(2.69214,1.16573,-1.29422e-16,2.0191,1352.59,983.841)"},[O("use",{href:"#_Image15",x:"121.882",y:"76.034",width:"37.393px",height:"61.803px",transform:"matrix(0.984021,0,0,0.996825,0,0)"},null)])])]),O("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-15.0786,249.972)"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.23,1317.28 1767.42,1317.28L1684.19,1317.28C1679.38,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.38,1404.46 1684.19,1404.46L1767.42,1404.46C1772.23,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z",style:"fill: white; stop-opacity: 0.9;"},null)]),O("g",{transform:"matrix(0.220199,-0.127132,1.41145e-17,0.293599,339.708,327.53)"},[O("path",{d:"M1306.5,1286.73C1307.09,1285.72 1308.6,1285.48 1310.36,1286.12C1312.13,1286.76 1313.84,1288.16 1314.73,1289.7C1326.44,1309.98 1355.4,1360.15 1363.73,1374.57C1364.33,1375.61 1364.49,1376.61 1364.18,1377.35C1363.87,1378.09 1363.11,1378.5 1362.07,1378.5C1346.41,1378.5 1288.17,1378.5 1264.07,1378.5C1262.42,1378.5 1260.37,1377.48 1258.9,1375.94C1257.44,1374.41 1256.88,1372.67 1257.5,1371.6C1268.1,1353.25 1296.8,1303.53 1306.5,1286.73Z"},null)]),O("g",{transform:"matrix(0.254264,-0.1468,1.22235e-17,0.254264,329.57,364.144)"},[O("text",{x:"1170.88px",y:"1451.42px",style:'font-family: NunitoSans-Bold, "Nunito Sans"; font-weight: 700; font-size: 41.569px; fill: white; fill-opacity: 0.9;'},[pt("!")])])])]),O("defs",null,[O("image",{id:"_Image2",width:"113px",height:"47px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAAAvCAYAAADU+iVXAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABVUlEQVR4nO2aQRKCMAxFxUN4O+9/DNw4CoiTliZN8vPfQlm00ykvP3aQ5fFc11sjy/L+/nx8r3ffm7Fn845jz+aJa23XOJvfs9Zh7NBawv3YrSGtdbj+x10egkFzpRrNt+SSxMgbqkiZJCJDiQDoSmSfdYFJ3JD18GMmcXhDTHUzNZIIXhA1JIJDib0MptqiKbhKzHqQiAaT6IlSFVIiAJQIACUGpLfLhpfIw49Ml8T2v4/JTPySyIJQI3w7JTIYEp2fong3FXWJ3huqCEYSNUlYhZRoyaSCoEQAKHESlqF0kZj9NBgNJhEASgSAEgNx9WfCTmLxpygzYRIBmCORsTIlXxJZED/kk0h+KC1x9E2FKG86qEkMsh8/HG9A6SSGYqAIKDEinUIpUSDDYXiqxAw3JCNMIgDXJTIWYdBJIvukK2ynARit4XASUZ6izCScRFWKCH0BfLM84oTw1Z8AAAAASUVORK5CYII="},null),O("image",{id:"_Image4",width:"113px",height:"65px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABBCAYAAADmBEt9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAASeElEQVR4nN2d6ZbcNpKFL5cs9UN1W5bntWxr6XmsWTzLQ7mSJDA/gh/iApWyLalUy+AcnypVJkEAsd24EaQn/T8Yb9+XKknrOuk4pOM4tCyLpkkqpWpZJu170TzPKqVoWWZJUq3Sbx+m6VkX/wjjVW/gH7/sdZ5nTacc5lkqJT6rtWqaJtVaVUrRNE26XGbd3+9alkW1Vi3LrFKq/uvj/KrP4dUu/t3HWkupmuepWVspIcjrddc8z1qWWcdRTusLwc3z3Cz1OA5dLouOo+o4Dv3vv15e5Xm8ukX//eetTtOkdV20bWFVkrQsk+ZZOo74Xq3SNMVPqXextYal1lq1rrNqlfb90LrGXP/5/nW52Fez2B8/1FpPiSxLLLsUaV2lfZdKiZiHkHCtuFWPj/73cvpfLDQseNJxvB43++IX+cOvR5WkZQkBbdsh4uCySNtWWkxEuLVKx1HOuLecFjdp3/NnWiYKUbSuAXiOIwR8HIf+55/riz+jF73Anz7VWkq4RSkEI+m0Fun+ftflsra/r+usfY/fATVY3DzP2ratCe3Nm7UhWawv3KzO69PtllJetDBf5MJ++hRHWWu4QCkOm1h4HH2agJuVpHme2ufHUXS5zLpeQ1B8Ns9zu2ZdU3gAJdwxFh3zxjUv0cW+qAX9+KFWhMV/Urg6kCUWcxzpRvlsmno3ehwBVhDKcWRMZQ6uQ4D7HsgI1MrcDIT/koT5IhaC28T17fuudV0bWAmhTJ0QpN56ti1cq4MXSR1wiWv6+ChJ12ukGpJaunG5rJpnad9rm+NyWVRKgqiXQhQ8+yI87pEicDQIRApAg3US60gvPPYhbBceqYTH17DEo8VLSVqWTFGmKdKOZVm0LDKlqIaEQ+GeO798tpu/fV/qPE+nCwwLiwNVi1FhCaUJIFxbury7uxAiwrled0k6Dz6F78J2FgcBk2qs66J9T/QrpRt2MoH7RX6ZXuO/Py3Pcp5PftMffj0qdBeHF4AlXJwU4ETSGavUMSsAD1AlqYDHvut1P61y6QRPMg/g2bbSudnJvCNCgmsFQKEE8Z2p+1x6Hi72SW/47mPk6/u+txwNa4vfpw4hYi3Lok7AHBiHCfjArTr6ZE4Sfr+W+aVAqQgVpUCJJBQq1kas7FFxAqTLZdK//fx0wnySG/3LP2sl1uEKU4uX9r1Siu7uliYwhHwctR0y1zmz4gwO80gp3OM4dHe3NqIAy3R36kjX4yvVj31P4OR0HYJluPVOk/Qfv35/YX7XG/z4IVSVQ8d11lp1ucydsNxlLsukbQth4zLnWQ8sA85zWZYm7LCiiFEp7J6O477rOul6TU5VUpdHjgJmL4QDKiGxzmSP3OqJ8d+Tj/0uE//w61EBI57jSWldUk+hxWc9OR1Wk+4WYWNNaD2jlNKsxdMOEnZJ7dC3bTcFmZpQSimNzXHl81ok7tndvAOlW8KXvl9u+eiTAlyoIozuB4DhrAt/w6qkdL3kb1Jymli0xzSH/Vi153QcLqmJX0t6c70erTqyrusfKhPEggOjmGvqANAIxNZ10r//8rhW+WiTkTI4iCDuOGAZ+U8osXWddH+/twMn5iEIeFEswasRkroir49l4cDVhM/Bcshc44LwCkcKZD6tfW75JHN6jRJlQnld+NzzOB4vJfnmSd59rHWMTwEkFh3HeDBxDVaIwB1JjlxofhZCj0pG7bQ9508rIH+bJq6JU/eaYsybaczd3dJVRXCZpajVLhEMua2j5VueIeZxAqNXnlrrNwvzqy/+6VP1s+6Sdnpd/LAYxJ1lWbTv+2mpc8ekeOz5XJINkPEknbSABN/dIfFrniddr9uZm65tPudsGS4gLyqzX9ZTSgIq9iipoWfQKyGm1qyDxn2+DcV+1YU/faqVxbEZL8Iy3AURV0Z2Bgjv8aPW2iyJgbDcejk4YiCQnwEH6gpGuuHxknV5GAApe+rhjBIM0Zs362dJAwTM2uNzNWAnPQRtX1Py+qILEJ4kXS6Tfv89ER6D2ITLjEPpSWjiCL8DXvhezrO0eIhuJILNQ6IqUUqS2lJAfikQKWi01tq5enJBXKQn/SiK57LO3XrvDvdxZgfSAC+xbXvjat3K2a+fyZe42L/0RfI94sO+H11S7ptzwDFCbQcKHuTTitVZhR+g/x13u+/HGaPWJtBucwZOGNQXmddjl9cYr9fjjIlzQ6EolO9vjIHM4Yo65o6+L1CuK76j2b+SlvzhF959rBWEySY9r/IWBxeapJsxgs9gP9y6cHlj99q+9zwow8tRzIFr4l4jqHJkPOaAzOFzOnjy3z3ZZw73HJwRQM/PZZzLz5bwdH+/6e7ucirDnxeiP/shqPN63U1rMo5J6nI/YgiaD9IbUahX19mwI1dHp+6SRvDgBzIWbaHvIu7VB4dIHCwly09es8TF46JZH6AJl4i18H2KyMuS83tbpSvXuk4nKs70ybGBnwWe4XPx8sEf//7zVtd17YAKNJgjPrSNSjqCy5bBjBmx+FyUC5IxghyPM1w75nMIxF0v6yVmjqzQmJT7YaKYYdUJtCQ1ZaKjwNMPZ4ig+dwlxv6mdi2CJm0ZvYafnYcg1jNWSto/3r4v9ZZms/HRlTjKQ0ggMQcCXhPctiwZObr0+7iC8D0npEHCgBuGu0f+/ebN2oTh1ZFQjhAUwvBiMMriB+kpTwi1z1P9++wF0OSAB4HggpkDz+WKFF6uV2z3fljm5IgTM0ZjRqQ2ukKPDSzO3aa7orHhyGONI8FsR8wD8Prfus5dh/donX4PDjYtZ+q8ixecHUl6l/jIf8LYcOC33Dnu2lOQEEAqsKPymPchNnDBj/2yDnwmmnK9h2WEzLhWhifcnvDimm5B5xH0eFwZEah/lw2wMdryuX6sMKTVBnrl87E7oFZ1uagDHPZIDuzC2/eoF+57368z5pPUTDGMUaHhjdnPSNXhacbvO4BrBoNWQEthUQ7NXSNCcHHQYSnxtzjgZFxG7eU+6S5n0856WmJfaOXacKHTef/ZWJ4ERB4BYv0xN4IJ96fu4CC5Y/299W7b3pRx33cdx9GUwKszpFnpVQL8ZQpTT4XILvTLJWuRtVZdLuvpcY4GchAg3wnsQdf7fLJiZ7nucoleTvpViEfRbLurlKJ9P0R9zjcQ2l5PTcxDpIgaLjc/QFvRqlLKqWW90gSY6asBbNoJ5/QYcd3lMneQnYNIIAQhjkLoTAVK21+eQWrF5bI2yO9rZB8BpNxT8GwITExt3kuKpmcPJft+nCEj8QHnOU2TLpelU7JQdhR60gzHSWCPw4kvRNse6Cpb58NNhN/3+MXNp4lmpfk8uIxzjiyzWiCt63JuPONcBPjpVCSaoJhrOQ+otPgUrj3dZ+ynnGWp0lkTQMsbo6KaklYFmYBFuXsOoKS2/rT+uSl74Ae8SQhynjPnDYusZwpVTmFmTJXCC4T7zHXFd0u754zv9aQ6hJDawE1i0nrGtNHNzp3Gx3dDMwJKT6ebqJ2WpSstLb5SPkLYcbhrs66Ma7W7p1sdG5+mqeV2d3f5eFsp0UcKp5nxWuf9lnbYXjCutbbQwz7dK3C4t/7tqBdwlLhj7lgkUheUi/RlXRMLtNDkQuDQ2EwejE6Txh0Gyrpe9xYj0MrrdWtaFDeSKcbcDrBPvp2P7BXBlQPrgtlY16nrYNu2ox22K1Ek7rV5m5hD5uZAxulmM16lN7hcLlpXd9mJavEarBe37fGbGOasUn/mx2mpkPJHM6DoWCgNaHEPSZoxSQIrpr8sKcTQjocVgiAFKPMEyPnb3y7NbXiciU7qkTlJITT/PmM5STaQNzn4Oo6qbStdyoOg2XgSErWzOD+MzHOnM/bXbn2wOl4uC1DUK7S7PI/5/MTL8W/iIvdGwblH/7SXt3hSgMjcc/7twzQFsKhnHOu7zxws3mIWvM/kONRATghy7jbM4XBAaDNaz+/ExQQ2vav0DjMs7+5ubRZfStWbN+tpFRmTwhVu56GGJUfYANpHQTs9TD1jYW3MET2trCNqolCEEXe3bX8Q23wsy3KS9tNZ2chqTICsuB8MkbNEefY6UfCUjA09oeR+TjPBRDhMJj/yZHesQLjvHvnDyHcOcz+525HKg3DgQBB23BNSvafFXPHCivdWe/T0BCKBkEDO5wfrMZ690k7iBLfv2+/Nnih3ZZqVzV6eQ2ca1VOfyAVlpYPuAXf6w69HRTDOSUJ1OUODK4VJyUCftUQqERRnnTz3p47CctON4Ipo9/BnIjzPQ3mc2+WQ6d9hH5DiHJz37XDIsf5UNhTTFQY35uuE4QqFedgoxVhX6f4+FS7z2KPjSsdaLGSF9Afc6Tho+B0tKm6Q7A6jTzN6rXRqzVGVL9gZDRTBm4wkDe0cbm09COO7zsZwyM6lIhj3QOMenT1yxiisI1MtUD50JHO612B/sz04RGbg/UCu3G6lnytJfVaIDIhxKUtPvmkHFH6QuLVbLfmOEhGCF0bd/2MJY/u+Wyqbj8/yIFAsn+9WYXp0b27NiQbVXR/INSx726L+xx5w3azLH/Rx78Y8biBO03nnwB/VFP9UiFI+N4/b+1wNzA8AV0Tux8K8y8sJdCeV4T1HlwPmwn07F+oCxI17DB3LQAyvdXa51/A01Gjld3fe/9P3lUaumUqO1/E+G+ZBuM6fEo+lv9Zw/JeEyHj7vtSE6KW5tlhYDwhwB+5SvGDsKYs3XAVK7J+7cMDi7i0P0d9Tk4/Lcf3Y+uCIGqGS81FZGEEE8SnnDJxwf7+1RN2TeI+3faGgXzfM0RiyvqRb/IuEyPAne/0gvGbn8XAM0qNFjMjSEaWDFag7Ns3fYo5wYR5fODzosh6mZ58se0iXP3VKABd8qyls7FCgQoM38aIwrvXubhXPjYT1hiAvl+WrWhe/SoiMdx9r3ba9FYcdsPATq0MLSV04SEeCoE93yxyAIzxHjMsy6XpNAQaAWdr3cYNYqb/ACEXyZzWSe+1flcKAfPBWjFt9SCPwGoGUdyIg/K99Q8c3CVFK4DPmiuNz8xRzqbGND7k4MMFyvJHJEWBel+4JZcLaoarI/WLusWUkrdJDgIMdVybAjyNp0iLQqgvM+2K5npqkM1ff+qDNNwuRwZNQkiO51OQR+IyFUM+r+mfk+2Ymb5kYXVm3MQMitxDo+HQVa/Jiredmjh79+35fqvUoknce4GkgSEopj/as/6MJkfH2faluhYAF75qT+ke66TDzxByXOLpD4qbnpWPq4vkWvUDjsxOOHhGw9w8FNTbdtGLefeO4AKtjnW6hxHvW+tiPhD+6EBkgWafi0NxMqLMxV1JzO/nSvRDMSGUx3NW5sBwZ8293Y2Mvq6PbsbKQCHlurNDIEI05rOefTliU8n3eTPXdhCipPXQDqPEOs/FgsB7i3mGMgLfCe46aaDIZfY9rntLwaJv0UHnGFAIheC+QP3rnDE78VKsNEoOdTqz1+76Q4bsKkfHjh3z8jYP2eIF78u4zb8N482bV/X0++CllY7ET0t7z6k1bWA6oOL4TPz2mpkt/yBG7O7/VsXeLbXqqF/w9iRAZvCk4qyL9YUk9HUZMcsAwHhYgyHNCrMU5Tql3dQjM06Jb77FhjZ97xM4JArzIND3tO1OfVIgM3tntVsWIikc0JXkJa3y2A+33vM+tydkbKd359Rrm+rlccryPs0kjIxPr7b2HpCd/KdGzCFGKlCRLTA9fTuSVhs/1nYIo/ZAdaY6v9fL6IDVLYh41O3JcrIoOB2I3aQgx1K99ited3BrPJkSGv0k/QU1SXaBIJwPGOOYpRyLTqfs+sdObgD1l8WqL1yoldUwQXgHhS8//xsVnFyLjxw+13mJn/O1Okk5O9eGrouuNup2/+MgRqZeaHAzxXQTtL2tAOUh7njru/dG40QHyPOO3D9ME6EGAPUUWLvH337cmJBJorwyEi0xrTlaIZuVDNCtfr4fot6EXKB9Xyw6+7FxLxXopApRekCX6ePexVtzc+MZhSc1KnEgAzUpZb/SHVp3IdvLZLXPsOhgrM4/Bc36P8eIW5IP/9wWW5+S354hSz6z4+25IJ2BzmCuuiZ+AFn9x4EiKv5QX1N4aL3ZhPqDwvN/H63vENqe6kgbrCXAHObcq+k504w1eovX5eNGL8/GPX4KJBpXi4oh/lLrGd7tRdIUsx7L89SjEv/EFuS9deIxXsUgf8LF9p3a+o3TsO3UOk1eQSLQY5iulqXpIz58yfOl4VYv14awPeZ0XpEnE+Y7Hwuw4ry33k16f8BivctE+/H8/5IBkfLmfv2Wf3NIF/ZKBy5+NV7twH2OVRPJH1fp3vsG0IMTnevn6Y47/AxX1K5XSf237AAAAAElFTkSuQmCC"},null),O("image",{id:"_Image7",width:"113px",height:"65px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABBCAYAAADmBEt9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAMrklEQVR4nOVdW2LbNhAcUD5Xkl4scXqxpr0XiX7AQwwGu7Rj2RLV7o8lknjtc3YBygX/Afr2XOu2bQCAZVkAALVWlFJQClAr9mvLUrBt7R4A/Hp++fDA9NAL+PpjqwBQSkF9kVQkOBIFx2vLUlDr4wvyYSf/7blJghanglFLc9q2DZfLgnXddqvl9X/+vDwkPx5u0l9/bFWtTf+q8Hidwt22DaWUXYCtj3H5bPNolvkwk2Xc05hHcjep1yk8Fy4tksSmfH5ZCv768RjCPP0k3W3ysxKFtSwLaq0vAGYZXC2vtefHmKn9Lkv7TKt+BKs89QT/+FnrtnVECYwghuRukfcpOL1N4fgzrZ/umgHsbvfsVnnKiX35vlYFHUpMJQAMwMQtqpSCdV3x9HTBujbXSUUAZmVQa876A84ZL081oS/f1+qAQwGLusx+vz/rSNUtbk5FZvccpSuOdmut+PvnchrenWIidJvAKJRIaPpZY6B+Z/6nAlBrisjjp4KezKWfRZB3n8QfP2tlKuBWAHS0SMZqOFSAwu+R1QA9sVdhupA5riNapUjY946Xdxv823OtHnfIFGp+lv+pZSiaZH/e1gVIlmseCXRBk1SBFO26i6fA7xUvbz4oS2UABoaua699ZjFK25CJ/NzajukBgMmNerzUNuyD1Rw2U6XR/ihAzhu4D/C56YDM+QAMDMqScrUiYMzjiDjVmjT2aTLvlhtZLeOvI9RufWWyRCUt9906Xt5kIFpf5uaUKarlR0jUy2p+X2Nh62+2bi3faaxz1JoBInf1nr/WWm9Sj/3UAb7+2KrHo6hC4gJ0kAOMwMSf0RwwSgu8isNrDpSU1KIVBY9zX+Rz9xAaP3n/My3zUzrWOqdbhLpGPqMuFMhjkGu8pxZRKuE5H0ljYFaC0z60b8ZNutllAbatC1PdcxurPftZgvzwTnWDFuhJdSlzHFOozudGsHBsxeMYc5xiHxm6jdyx11mVojHVkt2zaJ/6+aOF+WGdffm+7hu0zrB9sCC2ULiRNUUF6fa5l9H0GjCX4nRsF9BRPsj2kVC8fyofx88KC5/lYq/uhPt7zni6FFoetZaCjQU2okPgWBBqtXrfXbczmP2qmz7a5oqAVwR6Mkv1Zz3eXpuWvLux7jBwog7bIyKTNaboEjQ+7ZMUl+RQnvdVYTKE6S48AiD6LOepwMmVTfs6Qsw+P1/XNVb5roaa7wFjzIqAgloHidaoRyUiVOruz9MOIE4ZpoVapcfben9ODpAyC9M+dc1UWmCuDGnb9wjztxqo65wXNqcNUVDXeBmdc4kWqsKLQBL78zIcx6U71aMZfa6xW86uOeKOarU6R3fZ6n2y3Bj4vcrPmx789lyrx7QsH9OFXC4F6xqnGBHo0aqJCihzpa+hV33OEWpk/ZGFkJWeh0YVI953ZSU+UIGyzeVSQDDvHgF4m2UePsAiNRmoNUXX9NcOIDkTyJhs0R782/PxZzLAtZ3XNYXxeKhMzRivfbW1XlKX/1oakn3XsVyxXtslSW+q61QNjayv1oqnp+VlMnGVxRnnwEKFQAaocFQx9BkHPWSIV1OyfUUfb2KQeRnPL13wJHWrkedyZY3auSfKrHK6mIEW7YyTd2txbVbw0vuL9/1GxvXPtG510W3xs6X4wtXyiJo9Trml6jo1vqqCaHvOVcd1AWdgz/FFBu6cTx4v9y9R3BsZO2uPCkM1Xl1vhvwi16j967PKKP0cxTMFFC4k9umxl8r2lvlmTPa4TXIBet+RG414wvbqrVhcL9xZ10Hcuo6OO0QD8/MoiNnqdIKZ4pB8AY4ql4VKNQ0zzU3XGrlgjdk6F80ds3VxHd6vto3G8fyTc4x2ftimlLYRXfx9Bg/+RxoRAYMIYUX3IxfdJz6fOHPGt+8Yis9jSjDHnAzRcj56cDg686NziEALKQNdLhQKg89oKVHvR25+2BPVCXECOvkuVGWyl7fmZF7jUCljfNB2nem8P277aIzhuG0BdJ0ag0bm6PEKlQX7dNR6uSwTCGLb7gEU0I0xMFJQzoHt13Xb16BEdE8Z1NpPOyiPW1/kbVOUJy6+MaUMGuaW1jvE3hlJNYptIhfZJ6CId0aL/XhEmdqy7yjuRrlnmz+ZU3amKVCJ5sO+lZlRESFCvbyuSuHgiXzkGN3tLnt7kuIN9zBPFIpqfktkL4NAI4TlVRXVDk6ScYBMIXEBbMt9RUd8ruVdaGXoT4Wsa1ENZ36nCkjk7IwZ4/Wcv+l1pVHZ66R4kZtuAtKxxudU4I7qSylYdHK8p9pNBvRFjh3rgtpkutvRwTtYKnJPraYrQ3OF82I5R3V1zlB3b02Rln1MjtUtYi4ucA0zSi7Wd//chD4K0EOClyL7sx2YqWA7Nhnz4a7kbdyFDSh9jxMx7MYuMHdZFAQnNrYru4A4MQBD+SqD8XroieMrc3Ujms9qfFXLJwP6urcpduv8KVi9766xucMYuLkSjC61DoqrMX/Mr0fF7Ir24k5ZBxy1I/bxbn1uGRHkBub9ui60Lnx+VjfJ/hXWKyR3N6fITZmpcZ9/+wszfc9ThcM41ePQnMwreFJBUYk0DXIBdtc5sGxYp7r+plTtu26PLb+eS9Fis1pes6hZc2gFZEhHq8s+GLWTWtMtaazAaL9kJEmhvgZ7R6M9PleJf8uLhVe48ilq1O+cqwqBHqqHmrIrjzJdleNy6crl6+acPZy4B+S6xnl2DzEAOH7gyywKWrzyoaiwI7h8OyY6/qBWM2rtnJvRerLjGGOs7Qm0H0T2Z9RiIytRiqzHrU7bRWiXbfnXT+dpH17A8KOd6g32io1PmoVvAFjX1VxbXAgYAUpvq2hQ6WhfLXc5M9DxcSOXFjGabfW6CjUqcGTz8XU3IY3u1wERkKc4vn72rWN6IXxWvRfSQngWrFWjfTG+aPZ2lFtFWsrJ6zjqLbQUxTFG1DimGmq97hK1LRALVj2HMz1atyuok3o8XU+0qZ5tFKdCJOm7EzqZyGqUGdGiIgaxjbpMzS3VYltfnEd3tRq7FOFqnOHzylivZWZzzcKB3su8hc5TQ4saQOQu3WCOdvpfFSLQD0VlKCsThPrvvtjxJRqPmd6nMydihraL4mAkkGynnVbrrjD6q3OLGD8x+6AvnyObv+W1uTcJkcSd/sjslZFR3Iqq+srQ6Liiotr2fY4vc/yMT75pm+hsaCk9pXDhZ3E5U+bIUx3FPi+8v2U3X+m3hEji9pW6uKOJRxpHxmg88A1gXfDR+ZouiDnuaLw8iu0TY4LrPjb78L5UOTxsRHxQPr3nDOq7hEjyHwaKDjpFsTJzJZGL3Cdaeo7Fw1fRM1FKQWUBxkIC73Hu0Y8zeExrfcRbVUcuNVN4Heu9h4ivEiLQUawDhkAOALRgsEzxTZ9xrScz94kbkFGA47sb6g5Lab+q0Sw9Pi7ZxxjzP68kqTVyHvxOPmTHULgPClz/YurVQiTpu/fDAAkQcMa6Fkcbq15XVQFGxwd53wGIx0udBxAXFzxdorJkz+kcVMBt7e3vR73r/2FCJPm7GRkgIJGpwJhAq9D8tJ3qicdHLbpHqNaF6CAt3hQe88kIWPn61KXrXwAf/uLphwuR5O/mAzEIUe1u17XwO8Y1t1rdQPb+dQwlzw0jhJmVHCNAlYGkTMCf8U7/pwkRGH+XDRhztAhgROhTBaUC8SqNWjzHygBTlgY4ZejV+1aX6aiT1x7uTWGn6PW3iMmkjBEeWzLk6y7TyWObu9YobrZ2CEt3fN7jfa23+TWNmwiRpL9dE0HwaOdbGeIC6e44P2LpVSG3IHePfiSQlBUAVNDX5nvvpZsKkURhZpYF5AXpKN3gcx6TFDkeKU0Elvg3eukGiBWOz9/6t2zuIkRgfFknQoJRhUaL4wo6nDKAEVWAvBzom9aRq492VIDrXhS9hu4mRJL+LKaDE1IE+9vz84azu9hIgBHAigCOWqgKj6+j8dr/9rfdnHzLi+Qul9eAectHD3rpfbf43maOi442gX5kg5vcFOZZfmUx/mXYO5AyRC3MXWP0mbLUE3BKUWrCds1ix+OPHLe3WXC5XNL53ptOMxElLaz7ybUsufadBY9/fu4mugZgf7vZx6SQz/hvF043ISX/Mdsoz9QYmCX8fMYL0hEqzXLWM1me02knpuRbXsC8tdM+x7vmWmrrQh/P7mgMVGU4A3B5jU49OaXX/i8Gy3N+iizKEbPKkVvsma1P6SEmqeRVH2U8CwGa/wHjXqG++KPWrHniGePeET3UZJX05VhgLouR/H526uxWdc7PoIectBJ/a8B3872yoxvHwHxu51EFCPwHhAjMv/gBzNUYIP5duEeJe0f0L+D749HrhKeLAAAAAElFTkSuQmCC"},null),O("image",{id:"_Image10",width:"107px",height:"62px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAA+CAYAAAAs/OVIAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4nN2dWa8saXaWn5jnzMjMPZ5T1V3tsrGR+TNIvjAgC+y2uw22bIONzB/gBgkEAowZJbiBCyR+CzdIIHDX0Gfvs4fMjHmO+LhYEbGrrabdQw2nCKl0ztlDROQ3rPWu933XVxpf0+vn/0CpplEAeJ7G83MBQByHmCaczzVx7GEYMI7QtjAMA/f/1tK+yvf+Wa6v5Yt/4+8olWU5YRgCYJoawyATZxgargtVBZoGZVlhWRamaeJ5Gl0HRVFx/I/B1+6zf61e+Ju/o1TXDTw/P3N7e4NhQN8rbFujaUY0TSMMdU6nhjh2GUfoezBN+a/rIM9LLi8DHh8LNpuQj/+l9rUZg6/Fi17+eq00TaNpGjabDZ6noesyEY4jk2BZUBQKTdPQNIgiyHMYx4lpmnh+fiaKIq6vAz799MxmsyEMDboOlOJrMWnv9Au++s6gLMvgeDxzc7Pj+Tnn4iICIElqLMvCMAxcV2MYoOtGdF0HoOs6NhuH47HAMAw8z0PXIQyhruHx8cwHH+zo+2Wi4aN/8W5P2Dv7cq+/OyrL0jFNAQhl2RIEDtMEwzDRNA2GYWCaJrZtcDwm7PcxVdXQdR37/Ya2HTFNg7bt6LqOi4uQpoEggGGQnFYUA45jzvcdiWOD//GP3s1Je+de6uf/QKkkqXFdlzDUyLKR/d7g+bmfJ0Yjy+T7fd8DEAQ2AIYhIbGqGkzTpCxLttstcSwTrhSk6YjrGuS5THZZllxcxOg6uK6EzjiWifzv//DdmrR35mVuf6tXlmUyTYqqqthuAwxDBm0YBCBoGjw9CURXSrHbRUyT/P4wTLiujq5DWY4YhsHbt2/58MMbHh4KXr8OOZ8nlFJM04TnWVRVh67r6LqO7+u8fZsQxzGGAUVREwTeO5XL3okX+cU/VCpNe7quw3VdbNtgmmQnBAGkqYSq5+czV1e7dVeM40gQuOuEdV2P61r0vXzBsnSaRnZkVVVomkbXdWiaxmazwTDk44+jQinFOI64rkXXCbLUdZ0ggKendwPqf6Uv8Oo7gxrHkf3eJk0FHBiGhmVJ2Hp6EmBR1xPavMCTJMGyLDRNIwgC6rpmHEeUUmy3EXXdst87VBV4HhTFhOPo1PVAFJn0Pei63B9kxyoFeS45sW1Hmqbh/fcD2lZ28+Njxe2tT5Iovv+n+lc2Zl/Jg3e/lisAwzC4ufFmiK0wTY2qahnHEd/3sSxBba7rMk0Tr14FVJUMcF0LPO86uWffy78fH1s8z1mfVVWyC+PYommgrjtc10bXwbbh+bnC932qqsLzPDRNI0kSwjDEtk0sS+6tafJf3yt8X+N//ZMvPzx+qQ/8xt9RCgR1WZZBVTW4rouuQ123dF3H9XXE+dxydeXQdTIxaTphWfoKApJEQMfpNLLdSsh8fq4YxxHLstjvXepaQmieK6JIo65hGGRBLGiwaWQyHcdhGAa2W4tpetl1SVLiui5ZlrHb7VBKYRgamw0cjyN3/8b8UsdP/7IedPG3KrXdwjQp2ralLGvC0GW3g+0WqqqawxlomsbxOFCWE30vNVPT9HSdoq5hszE4HgeCwJjBwIRpmrx+HXFx4ZIkHY4jfGDXdYyj1FKGIbTU+TzO7MbIxYVLHGsMw0Cej+i6TFLfw/vvB2y3Bo7jEEl5R5YVvH3bSH77lUe1/Rup+rLG8AtfGX/p7yk1jpAkFWHoM00CsR1HcsfjY0UQ+KRpNoceHcOQHVUUijjWqCqYJil6o8jANOGTTxLeey+maaDrJrquw/Nc2rbDcWyKouT6OkDTIMvkPkmi2Gw0jsduDXv7vUNZQlEUbLchj49HXr8+rCVA27YEQYBpmozjOIdUeHrqmaYJy7IA2G71L7w++8Ju/kt/pFTfQ12P9H2PruvEsY1SMlF3dxWvXvlkGWw28uGVUvi+jWHA8SiDl+cVjiM5KAyNleuzrIVOGpkmgeS2bWOazPBdBvPyUn738VFyl6ZpuK5J3yssS8P3hfRdCuhpUniexjRBUXQz+2GsTMeSv2ybmd3vsW2ZsGGQ+PlFhcfPPQxef7tVv/zHStU1pGlNFBlEkQtInkjTjrKE/d7n/r7G8+D+vp4LXpthgKoaiaKQYVDouo6maWy3BgB13VPXik8+OdO2LUmSsNtZTJNwgAtpOwwDYejQNHA6DTPMt+j7nr5XpGmK5wlQUUrAjiwkYebbVhFFNk3ToJSE7+MxZxwnum7g/v5MVUEUWXRdTxDAdmuQ5znv/231hYTGz3WyXn93VI5j07ZwOiV4nkdZKrKsZr+3CUPwfZtxhDzvKYqC47HB9z0MQxJ/FMlAx7Hcs65r+r7n8bECIAyteSJCuk6K2rKUwfZ9naIYaBrwfY++l/DbdR1RFOA4cH3tsdlInfX01OD7EpYNQ547DLKDhmGgaRS+73M+SyE+DAOapnE4mDNDUtP3cHtr0XWQJAPvvy9F9eavJ+qD3/18J+1z2a7X324VgOMI7XM6nQHQdZ3NZoNlCYL63vdSXr3aUlUSMmzboGl6qqpis9lgmhpJkq/E636vkabQdVIUN00/k7fQNBJa27YlDP0VtpumCcjAWpZFGOqkac9mYzEMzEVuz25nUZbQNO2aj2zbRinZdZeX8VqTLXVf0wwYhuxw09RwHAmhris5tW0VYaiRJBLSlVJ4nkPTdDz8e+dnHuuf6Qa7X8vV9XWIZcFHHyVzYbrFdfWVfTif1YzIRnY7n7aVAQCJ/a4Lb9/mRFFEXdd4nkdVCejoup793sKy4HhU6LrIH6dTwqtXMVk24Lom4whFUc7PD9E0Zgguz7ZtG8PQqKqGvu85HCK6DsqyxDRNHMdZ0eMCfJoG+n7g6srk6UlykYANH5CclSQ1tm0TBAZv30qxHscBXSclwgI3TFNy3c/K6v/Uv3z567WKY3fl4ZqmIQhc6rrjcLDpe3h4SLm93a4F7MIqZJmiLEssS0Ka7/szoRry9JQTx4KTpwnqull3y7ID0jTl9es9b9+m2LaNZVl0XUcY+tR1y/W1gIqylHukqYSxzSZkHBXDMNC27TyJBpZlcDolXF7GaJrsEAmJA77vEYbyzn3fs9lImJ8m+bfr2uu7Sn6THRVFPmEoIGgYhIGxLA3DgP/9T3+6SfuJc1b0187qm7+j1OWly/lcs9sJlHYchywrVz2p72G/3zIM8nt5Ln+ezwNxrKGUwjRN4jjgcNB4770Qz4M4juYBG5gmNSNEk67r6Pue3c7A9/05pAXYto1tm/PPQRg6HI8jeS7vUNcdnucRxyF9/8L5tW3LdmvTdR2GARcXMVXVUxQdti1j+eqVx/Pzcf3sSikeHzMA0jRlu7Vpmo7n5xOmCRcXLlHkYZomeV5xOo0YhnCURVHg+/JOr74zqJvf7H7ifPZjz/B7vz0ppdScrF2Uku3dNPIhNE2jqiouLnzGUVZaWUrN07YdFxf2al4ZRzgeG4Zh4OYm5OGhJAwDxlF4vDR9get5nrPbCdooipKLi4Dz+QWGT9PEdmtTlhNBoK9C4kIPCZID3xdC+HAwub+v5h1lEQQ6SdLOSHSYw6KEsK57uUfbdrNtwMJx5BllKWHQ9405Cgzouo5t63TdRBjKwjVNuL8v8TyPpmnWksVxZPw++ZMfb6f9hTvrw99X6hf+rlJZlqFpGp7nkqYVVdXx9JSTpikguSeKfE6nBtuWiYoim74fmKaJuoaHh448Z4buAufrGrbbYKaREspSapv9XuqbwyGmKEpME3zfp2nkd7MsI45Ntlt7DrM6x2PFOC6c4Uhd9+i6TPLjY8luZ/LxxwkAlmWRpum8++p5UGWH6jo8PCSM40RZ1ozjRBjKLpSwquj7kcPBmxeMLEDPM2fKC8JQ5/4+pSwVaarYbAKqShbhQoVlWU/X9T821P+Rk/X6u6MaR6mPvvWtLbouRSSI4HdzExGGIaapMY4yQI7j8OmnCZqmEUWsVX8Uwc2NvSZw4flcum6kbUf6njnW27RtS9+/cHSO49A0I0GgMU2KcYT9fr8O0jAMdB3Ytk3XQZoKEnVdi6YZub2VcFmWsNvFXF0Jcbvb7ajrnutr2bmbjYZl6bQt3N7GGIbOxYXH4aBTliK1TJP8XF3XGIY8p+tk8ppmxLYtzueGuoY43hIEkqvO52z+2W7O5xVKKW5vLTQNfu73lFpQ9f/r+qHbz/qr9+rDD28YBkE8mqZxdeVyd1dwcRFi27K6hmHAcSzOZwESDw9iD3McDaUkPrvuwihIQnYcG8+TuibLFK6rkeeyC7tOVNokEUjteQ6nk8j1SskOCYIAXRdEeDjEKyNSVeJyenqS+s5xnJmyknDrui5RZFJVijzP2W43lGU112cOeV6x3/v0vYTMtoXHxwTf99ls7DXcPzw88OrVDUVRYds24zhS1zWHQzwvnhc5x/MEUCyFN8i96/olvC6k8v19MpcvOn3/w0niH/hC+KsntdvtZugrDPM4KrZbjTyXAZYQJ1SNhBjxN3zwQcgwvEB1WTUuZSmUU1EU7HbbFY3VdU0cb6iqBt93KQqB63kuyO2zxpcoivB9g2GQiX96+qym5dP3gmIOB5OyhCQRm5llQV1PxLHO42OzcodRZK8KdJIUKKUIw5BhGFZRU9O0dZJlMQitFcfCzJ9O9fw9bd79gnYXrWwcX+ist28rdjt//nvLdisLqSwlFwpQkXquqiRvRpF8/7NKtQbwwe8q5TiQpsJzaZo8XOCo1AwgyEoEQgPL0lY+7XxOuLqKSdMa3xcXkePA8VgzTRPX18G6A85ncRgdjx2bjXCFCwgYBlkMS6gcR7i/zzFNk7Zt8TyP16+FQioKIV89z8OyjHWVlqXcbwm/4ziuueLy0uajj8SGJpKIQ12rVb8KQ4u2lR0kphsHTRP+b7+3yHN5pmVZc8h2sW1517Zd0GdDXYvzStd1HMdhuzXWiWzbkTA0SFPR1dq2xzAM0jTl1asdZTlhmjrjqKjrGsdx1l2m/ZV/oFSWsdq08lyI1ft7QTq6rs+eBYHowj4M+L6JbcPp1BEENlUlrECWTUSRzt1dShxvGQZRgPu+ZxxHwtADpPa5vAxnmkaK4jiGLBPpQrg84Qo9j3kXy4TI7pYdGwQGeS6DWZby/U8/TbBtmzj2ybKGsizZ7/fzhLtkmTwvyzJev96QptOsWcV0nZhwltJCPBpwPqdcX285nSo2G5++V+tOdBydthXH1cWFT1lKydE0DTc3AooELcoY6LrOMAwcDj739xJql5C6eBkXt1YQyOe2bdAXo6Ss4oq6btcJCQKDYRjYbAzGcVFoayzLpK7HWSey6Hvh7N68STEMna4Tri7LcnRdRylFENhEkYemycDHcbjunu02IgzhdJrWWmgphA1DVm2ajmgavHmT8NFHKboutU6evyT+/V5W99VVjO/7KAW+73I4HCjLcg1pcRyhlMJxnBnF6ViWhW0LMXt5abHbCdAR24Di8nJLnvdcXvqcz1I0TtOEbctkmqbObuevoXu71TkcfO7uCqZJFGZRqxtcVxaSbcN778WM40iWZRiGweOj3PvqKp69IRIeTRP0slQUxTCHPmf2IahVCGya5geS7n7vMU0KxzE4nxsBJJaEy/1+S98PZFm91jGyKwUxDQNkWUWeN2voEGGx43zu15eWUKtTlt2cv8A0DYZhJIoibm+3WBYcDvsZTWmczx2nk8T2cZQoIQ0JPZoGFxfhCsuXLOB5Ds/PFedzRRAEPD1l1LWi70VLMwyDIBB4Lova4ulJgIXjaBwODsMgu2ah0IZBFnRdy9d3u5CybHFdjdOp5fXreJVXJMf3OI6DrutEkcyBUswLRyPLJpSSn9Vlpk08T1ZKkkiCD8OQtpU/01TY5b6XxBqGGk0zcHUl3ogXWM3skHWpqgrXdbm8NGYxUQrNqyufw8FlGCR+L+Kd48ifu91uDpkTrmtTVR1ZVmNZsNsJrVUUE3kOux3c3QmYsSwLz5OFs4Tn8znFdS2mSdgNIWtllSdJQt+PRJE/85Adt7cbgkCjKCRP931P2/Zst3A+J2ga3Nz4aJpGWfZzflQURTtrW6IMbLfbWcHuOR4z4tjh8VGose9//8zpVJGm/ZyrRYv7xjdC7u8lH55OCXUNd3fZLP0IwNEOf7NUC+sgtY7krDRlVVOXLg2ZWBddXxjnabV3Lbxd3/c0TUMcx0SRwfEoqElW3UCWZWw2G+LY4nwWVsC2rRni9mRZNsvoIUEgFb5hvDAiS/ja7eDP/uzFmqaU4vra4/m5m8OnQd/3DMMw+wJ9np6eME0TTdP45jdjigKyTJiFKNLpe1nBS+gRH7wiy7LZpxjT98PMZBjc3yfz38MZlhtomoyLMBmSb9++fSF8FyI7z8Woo2lSpvR9z8VFyPlcz5KRLOZpmnAcWYjaYlNumn71zJ1OJ25uLgHW9plFUZWXkUnbbGQwxxEeH4/s93tsW3ZQmopJMgjg7dty5vVi6loMKotnT9fh+VlI1CU0+v4LU11VkqzP5zOO43A4hOS5wF0pxGVAl8vztJmz9DidxEL25k1BEAT4vsbxWBFF/uqL3++1Wf4QdTkIRErx/UUsbZmmadbHBmzbZBgkVzXNsOZWXWeWbsY53ztUVTfbDTxc18B1hRsVf6KzSi+uK97EIPDRdXn2w0M1q+sueT4DE8PQGQaF686zp2lcXFzQNBLrP/nkiK7LRNV1MwuELuM4znWCmgFDPPsbsjlceLRtP/Nr2oy+cm5uXA4Hjb4fqev2MywFc64oSJKONFWzu0m6R0zTxHVdDEPYk9Oppm3VHIYbDEPD8zSSRMwsAqV7qkpCeRRpFMU452XZBV3XkSSyQNpWEQQWx2NOlhXzTh7nWs6b84hJ28rAdd1EURQ4juSoMISuU+vC6bppLTeapqHrFEky4jgmwzBg26xCZ9PA7a1ocraQ+Fxe+nPBrdjvLbZbV+imzUabfd6KoijQdY3NxqIoGl6/PpDn1Sp9C3qCKDJ4fj6jaRrPz+lniladp6eMqoI4lrpFaKBOaoa7isfHgSgy2G4lmb56FVOWzDkkpKoqTFOjrru5PnN49WqLpmmzaRMuLz0cR4jc3c7j6em4vuP1tWha2+2WPJe6pyjAsowZaUqxfH3tEMfw+Jiy2Whz2PJo23ZGlwKSzueUNE1xXbBtsQbYtr7SW+M48sknCXGsURTFHLrElp1l2Spquq4xRzB3DrkTRTFwPCYkiXCIadpxPIr14fY2mEsIyX9rdfxLf6RUUYjOdHkZkiQtUeTMiGrAssw11CxajoQRk/N5XF9sAQy7nb+WBOKulXadZcX7vkWaVtzc+PNASjhI08U2JtJ/HFsoBff36YzCHJqmYZomwjCc2fF+VYa3W5MkEfV5yVXDMHBxIS7d+fVoGoH+oiZL7ghDef5CChyPJZtNQBiymkvzfFhFUssyOZ3OxHFMWZa8ehXy8CAOYc/z8H2Dh4eE29uYtoWm6fA8e65XpUYUEfOFohJ0LX+vKvn5PBf79g/QTe/99qQ8TyPP+1WgE1len7sw1JwIhR5ZFFnPg48/lmTfdWrt/kiShIuLA1mWc3sbUVXC6d3cxNS18ILCM76Ic54nAzkMwp6/fSsTKsWyTHKSlPK+7wWzfCE5482bZGYWIjYbE8OA+/uCOA5n4CBq89L8YNs2fd/jeR5ZlnF1teV0KmeNzJpRsZhKNxuDspR8soAe8XgkXFzEFIV0W3adjIfY7xr2e5eqkp/b72NcVxbMxx9L4f76tc+bNxXTNHE4hLMFrub62qMsf1Bd/qFE7vW3W3VxYfPxx0LNyPaVVhmxNBe4rsswDFxfuzw8CL8nu47ZFqZxPhc4joPrWivddDxWbLc+VSXU1uKB2O8NkkTNZpiXnxeXVMnNTUCWiXVZdkU2W6xNsixnv49WC/WnnyazsBnSNOJxf3jIuLraoGmQJC23tw53d/Le0/RS4I6jLELDWDzwNZuNmG+macIw9BURGoZBXQuYEZpKJsX3fS4v7bWrsusk5IHoc9/85pb7e6lFw9CmbcX+JjRagW3bP9Sz8SNFL/dXHtXFxcUqyi3EbpIk3N7ueHrKORwimuZlGxuGwPrvfe8tH3xwQ1VJK87iim0aOJ/Pcy2i43mQJB2WZeE4Ur9EkbUW0GHoE8fw/Cwf1vd1hmGRRl6oLN+3aZqBvu8JAo9xlETvuhpFIQtjATFSZE6z1yOY/YUG9/fC9KephOyFXpP7QFGM+L6B5wlhLbltWkGI9IcpLi+liBZ7tlBISdICzKDE4fY2pCggzwt0Xef2VqLHjxIif6Se1fzXK+37f6prCyEq6rA228BEjxKI3X8GlS3o5oY8l0Q8lyFzp2GBaZr0fc/5nJDnQrhO08T5XHJxYVHXiq6bCAIfzxOzzOEgWlBRDKRpObMZxsyE27guM1vt0TQdbdtSVRVVNVKW5QyH09nvLjWk7/trC1CaCqMxjmr2lKjZONNiGHB3dyYM5et3dxVBoLHdujiOQxx7zAgeXdf45JNqNd90XUdVKaLImZVpcfem6UTX9VxdhbP/Uf2FivGPLevf/lavxnEkihzqesRxDLpOGOKlvgBmuf1Fspa6TAq9um6wLIu2bbm99TmdFh5Q53xOef16uxLBDw/CpARBgKaJ1CCrmzVESn0npGwQQJL0lGXJbhdTltXqbNrv/dVSIMy/7Ib9XuPTTyWnWZaE8PNZdvMwCPQW86m1cppZJnJHUfT0fc9+768O3cfHdmbahWfsOmZILwtFhFoBFVnWcnHhkKYTb/618WPNw0/ssvm531OqqiRUSfErjMF2a/P0VHB9HfL8XHN15VFVUFXtHJqCub5Y6jl4eCjm5jkhYpcicRzVGtocB56f61lM1ElTETiXGL+gvsUDcn29o20FvLx9K/1dWSbhCiCOPaZJNDEhdh1cV6Np1ErcfvjhjtNJ7h2GPlXVEIYuWVZxOPgUxThbD2TXAytRvKgLi3NqYdilTpTnOI5GXf/kXSg/tRXt6jcatds5ZNlAGJorKmuaht3OpW2XLvh+RjpCej495VxeRiRJQxRJu8/xWLDbhZzPBVEkMdOy4HyWMytAEr4UlQZl2a4OJSmUDYpCWArD0EnTjJubzbxYRNJYitRhGNjtIvJcdjvIbhP/vRhy7u7On+EoRzzPJQzh6amZuU/xMmZZtxpbF5/7QjjbtsEwCHBoW1G5bdvm+tr6qXuVf2aX6F/++0rJJEnyrSoRJIXYlGTq+xZdJ6v9fK7mVWYTRfDmjfzMxYXFRx+d125GOadCm3WrmosLj/NZtLOuU7MPQpiCpTkhihzKsl9lGYA4Nueww9pDLMYWKcLD0FgprbaVRSCuX52yrFYuse97osinqgRJns/LCTYiNEoXypY0TWeUKnLI5aXH83OzaoOf/quf3uj5udinf/mPpWPk6Unif5IUvP9+SJqKRLEgSduWvJAkFXHs0zQCl/v+Bbm1LatAB5Kg5XvCNhgGPD2p2e+3AB9h3S3LWOX052epa8TTCHd3+SxDBKv7Vu4riK8opEl8IV2X0LrbidD58HAmiiK6ruPmxl89KEFgzfodlKUYXZUS/tTz3PUZn0en5OfamvLeb09KQp5BnktCXpqzP2tpLsuSzSbkdEpm352P677UJGUpk1nXUowuRPLiUxgGGYAsm6jrmv0+4HgsOBzEzHN/L+1Ci1IQRUIoPz8LUfvmzRO6rnN9fZhbTyXnSDuQuy6WIDBWqJ9lEqIti1VvWkJ9WU6cz2cuLw+AfEbZ6Qb/8x9/fj1bX0gf0TJpfd8Thu6aH3xfEJthGGuN9fwsSXwcpZAWL4bi+fmZ/X6PruszMdtyOATkeT9bzPrZhLOjLKVoXgjZaRKJ4nQ68fr1AcuSfKfrOufzmffe2895pCaKPBwH8nyakZzk0JubkDwXXUuUXmHcXfflqIdPPz3yC79w4O5OdpGgYvHfT9Pnf8TQF9ZMd/UbjdpuRQZ4eKhm+O3N/cPdipSyLOP997eMI5zP3bqq+75fm+kuLvx1hy6QuG1lwNp2YrvV5w5IxX4vH0kpePtWlOzt1uXhQSxqfd/zjW9IiO77ic1G5/m54fLS5XTqubiw1ibyYZAdE8/9R8LMmPT9uDq0ttvt6nHf7Xy67sd32P6k1xfepvr6u6NaTCdNs8j0+io3RJGF6wqt1PfM9ZI0iKdpznYrTQrL15cmiO3W5XgsaNuWq6vDLOP0q74kjXVyFBC85MHbW4ePP5b7iggou35RbTVNI4417u7KuRbzSVOZvLIUoFOWi7G0WwXEsvziz8r40rrNlxNklILj8cirV4f1WATTlB2T5xO+r5PnPYeDWL/O5wTDMNhsIoZhXLs0tltr3lmsNdrzsyjbck9Rt4W81Wcm5AWJ1nWL4zgrk7H0MS8uX8mfPZ5n0bbjeqCKlCbe7NUQ0+oXtZP+/PWln+Xw4e8rlSQyQHVdz40A1mxFlhDXdf0s95ukqdRlZSmtPldX+zUkLpY1zxPTpijHclLNe+8Fs2AquXMxhcqgO6sBaJFFhkHAzCITXV+Hs/dBmPoFVb55I7LK0qZ0+k/hlzaGX8mhJT//B0qlabNyi0tH4vEo0FfafWRGgsBeqaCyHFe/uFILdA6wLI00FWu1uGuFSLVtGVzf9/E8a0Wjcp6FPnNzFlUFed4xTRP7vYvrwsODyDHLwsiyksMhIE2lFnv77+z/vw8t+fNX+Ksntd/vVmtY2/azVGHjujLgi4zuOA6bjRTJYfiieS1HNeS5eBjKUsBM0zR861s7zmcpxstSjKnzQWozky8F/HYr/vqlt3ix4rVtSxQFNE1HGNqUZf+VTNJyfWmHlvywq/gve+2TP9E0yQ8DRVGsO0aI4A7ft9ak//QkHpCPPz7PTW/Mztd+1paa+SxcjziOOZ/FmZTn3Xw24dLoPc4yy4jvC7sh8jucTvIOeZ6vB0q6rs3/+Wea9lVOFLwjp6It1y/+oTzw8moAAAHYSURBVFJl+cJOLBrZZmOQ52IWTVOxQ4vxJVhdUkqJoadtWyzL4nDw1zZWOWjEnk+gfhH6kkSOrNM0+V3fd9fifQE9bQvf++df/jlNP+x6J17is9f1t1slsNtc/eJRFK2+jEWUXPyMy0Eii31rYfhBmtsk1y07zqTr5J6CEB36fmS3M+beXykZyrKmbVvy/7x7p8bnnXqZz17f/B2lmqabpXRhuhf6yLZt8jxns9ng+8I6LKzC6TSujLznuSuh7Hketm3MLMo4d+2LMzjPO4ZhmPWp7Tt7Vu47+VKfvV59Z1B1Xa/Iz/etGVio9biE5aihpVuy7wWG17XkvcPB5u4un21rW5qmY7ezubtL567MkGmSXPlV56Ufdb2zL/bZ6+Y3O+W6FmXZrAJfFFkUxbDmryhyZxVYWAyhgnyaZlxNKLe3Huezms0uL4eN/CRN2F/l9c6/4GevX/ojpapKitMX1gPyXDjA5WyLxUMoNmWXzcbg8bFkuw3WBkA5zvXLPzPwZ7m+Ni/62Wv5/5Asx4W7rs3pJK2rV1fB3GB9nifKo22Fxlr8hVXV8vgf3K/dZ//avfBnr8tfr9UC1a+u/PXM9udnYc+zbPH+vfx/Sx4eHuj/2+3X8nP/X8+jjAy2QdiEAAAAAElFTkSuQmCC"},null),O("linearGradient",{id:"_Linear11",x1:"0",y1:"0",x2:"1",y2:"0",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(-118.47,-106.79,210.785,-180.125,69.2121,1372.7)"},[O("stop",{offset:"0",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null),O("stop",{offset:"1",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null)]),O("image",{id:"_Image13",width:"107px",height:"34px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAAiCAYAAABY6CeoAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABFElEQVRoge2aQRKDMAhFmx6it/P+x7Ab64xOmaAG8vnwFnWhiOGFOG3TPsu6vpS0djpuH61zXoz5F3s6r4rRxipiftddeUbp3t18QozEu3/JfdSzgCy5VWpTWcVYSlaPqcvDEUpZQPUdCqUsSAbMoJIViJIVCBNZrO+MHtbjrs4KRMkKBJUs9uXXTxZ7JR2g6ix27sly6BIxReIOHdpZWevoNe68y2DAmTVXFmDBAB9pJ29nBYRCln5jgkVyv1QUsrIAJyvtvg1F7iGykF/KlniPG66zKDCyWLI2IqwOJSsQz2URbqZEpTorEDCypn6xnciVYT+SlbS+08Zt01lJfv7xBmYZLPpgy6p/pA9gyxIArKMLXxexLNiBCThLAAAAAElFTkSuQmCC"},null),O("image",{id:"_Image15",width:"38px",height:"62px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAA+CAYAAABHuGlYAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGaElEQVRogcVZSWLjOAwsblIu+oD+/zZ/YC4di8sc7IKLsJzJdCdpXGxLXIACUADpgL8oIYR9jKG/wd/hL+m080uMEb33pwHpR9UBkFLaU7ptW0rBGAOKGgAsy/KjiO3Aw105Z4wx0FpDSgmtNVPqer0if7c2Oee91oqUEsYY5rZaK5ZlQYwRx3HY+J+IsSmOQghPqKhwTO8dIYRvU8yU0kzzEmPEGGNSiGO/Ovh3ABtwQ4UI5ZxRSjEFKBprYwyUUtB7v6H3hQqhlGIb1loRY0RKCcdxIKWE3rshUkqZYsvLHykWQthjjJZZGtwqpRS01ia3MaZCCKi1cj2MMZBS+n1XhhB2brKuK2qtj/hIyeJHkVEypft678g5I+c8uf53FNsBbLoJF6RwU800kirjinM18HXcpxULIewANi5KyDWT1nWd3KquXZbF5tGVmq2qXO/9UzG2f/SSyK3rivf395e1T5/TmBAClmXB+/u7AnBD+7NK5fwoEiE822OM7d7lnBFjtIwlmkSMga97hBBelqRdraTf1SIvnsm1/gEwVBgCfMfPpwQ6UWgj0XGQxgrfeUWJFIO7tYacs20WYzRDPbqkDcZs790U25dl2ai9xoKK+V+oQFEhspzvWZ4kC2DKTK6tCRBjjDtd4RVZlgVvb2/T4lqMj+Ow9yRaRU/Xi/E5nIkUjWLMpZSQxhibn8C6dhyHlRZa6Ru73jtKKbYgDeBmWor8PN2LLmf8JdyLrsKrlV7hp+XeRa01G+/jjaj4hGE49N6ngm/vVakQgqU1N9c2uPc+pTdLjyqpn7qOFz6PMU48RjBsVcaHr/hqPZVZ13XKMn3v+U4zmiWKhur6mpm994diDDwN2BDCxD80wD9TZWqttimfE1lPQYyndV2n32OMW4xp6jI7vGi80CqSr48PRZGGkttSShO/sV9b19XHcjSkmEWKmP5mcKsiipaXs/hjCFCUO1ncASDFGLdXmxJBjRFFk4VbfxNVpRi6h/F2tgfBoRdiaw3LshifeCGPsW3hQsCj/lER5T1SCN3nWd76rhehk0IIGxVQC7iAh3xZlmksUVQC1eMaS5gqRve/OoXXWm/Br0jwANFas3aFStFNuomlt7iZ2aeErUox8Espxp9U1GomgJ0WTec6l23+HcvIWWPIHoytkM7lfYWi7ue21hBZ/9TiUsqUPWcMT746U6rWOvVnOvdVJaAYjeScNwYorSeFeDL0LO838W5WQ/S7ZZ4klc/4eL1eLViZsrVW8z39f9a2eKR8u8Mg93NpZGsNx3FMBxTzEoDt7KCqCcFNtTNVK1+dK1trljxKEWyVfDfLLM05I7Fz1c191tVarbPwLlXOMjecKKWbMtEo/s6s945IjWutBq1apxbpUR94JAkX00Kv8aSuZDZynWVZTCltNs2VHikN/DP+okvOEsCHA68BPFLa3XoujZqFKlqctRx5BfQsSI7iHACWeeoySmvt6eDDsmaIeSF18PbPu5ZjtCroe7+mP01pS+T3tZM4G7uzWGCvpNZpdhExZqx2ptpRKPX47oJoszMG7j2/xoIqx8DU1oYLcxwTxbfkPl5jjFN4MAP53p8nIsmV15G+9yICXIyKcNHjOKY5KjqXY6kc6yzXbK0ZkjFGhFLKzoH2UG75xIIP6xzT3X8HHg3B2TGOzabe+/PiblOfn8UEn3MToqnI6R0GjfOJoOXNcx7r552CLmmMsem1NjdX7uGiSqa6IUWPa2eZzoOtntBVeu8XAP8AuF1D5ZytmKoVFH/0OpNX79St/lMo5uLnJdzvUzXwpk5SiFTpwlv9qnfXYm8F+jHPEPJiaUR21gzTf8fUytba1E2Qw/TcSdECzaS6U8sTShPS/MKOk27T9FXxqKirSBetNby9veHXr182XrL0Q4UokVdInnO0vj1Zc+ciJUV2HloVXON4+axSAJDJ2F4Bn+p6tD9rhbkGkZee//JR0rySlHPelLfOWhUqqH966gFFKYRz7p+fRuhJsRDCaWtNJf1JiJvqkf6E4y6999Ns+6xkbVtIE2enZ0XKX4VzPP5HDP2XGI8B81W5lhTlOZYiV3YuY4w/QshLVJeR/TVOBA0TF49fhpJKptXaT/mSoZlLRa/X67coRAkAdt+OnP2ZLvKtClEy8Bz4L5T6EYUoU2utqGm9+2mlAMz/vunfxHda+HGFKP8C6wW6ett+DK8AAAAASUVORK5CYII="},null)])])}});const j1e=["info","success","warning","error","403","404","500",null],z1e=se({name:"Result",components:{IconInfo:aH,IconCheck:C1,IconExclamation:MP,IconClose:Cr,ResultForbidden:L1e,ResultNotFound:D1e,ResultServerError:N1e},props:{status:{type:String,default:"info",validator:e=>j1e.includes(e)},title:String,subtitle:String},setup(){return{prefixCls:de("result")}}});function R1e(e,t,n,i,o,s){const r=Pe("icon-info"),a=Pe("icon-check"),u=Pe("icon-exclamation"),c=Pe("icon-close"),l=Pe("result-forbidden"),g=Pe("result-not-found"),C=Pe("result-server-error");return R(),X("div",{class:G(e.prefixCls)},[B("div",{class:G([`${e.prefixCls}-icon`,{[`${e.prefixCls}-icon-${e.status}`]:e.status,[`${e.prefixCls}-icon-custom`]:e.status===null}])},[B("div",{class:G(`${e.prefixCls}-icon-tip`)},[He(e.$slots,"icon",{},()=>[e.status==="info"?(R(),We(r,{key:0})):e.status==="success"?(R(),We(a,{key:1})):e.status==="warning"?(R(),We(u,{key:2})):e.status==="error"?(R(),We(c,{key:3})):e.status==="403"?(R(),We(l,{key:4})):e.status==="404"?(R(),We(g,{key:5})):e.status==="500"?(R(),We(C,{key:6})):Re("v-if",!0)])],2)],2),e.title||e.$slots.title?(R(),X("div",{key:0,class:G(`${e.prefixCls}-title`)},[He(e.$slots,"title",{},()=>[pt(tt(e.title),1)])],2)):Re("v-if",!0),e.subtitle||e.$slots.subtitle?(R(),X("div",{key:1,class:G(`${e.prefixCls}-subtitle`)},[He(e.$slots,"subtitle",{},()=>[pt(tt(e.subtitle),1)])],2)):Re("v-if",!0),e.$slots.extra?(R(),X("div",{key:2,class:G(`${e.prefixCls}-extra`)},[He(e.$slots,"extra")],2)):Re("v-if",!0),e.$slots.default?(R(),X("div",{key:3,class:G(`${e.prefixCls}-content`)},[He(e.$slots,"default")],2)):Re("v-if",!0)],2)}var a3=ye(z1e,[["render",R1e]]);const B1e=Object.assign(a3,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+a3.name,a3)}}),F1e=se({name:"Skeleton",props:{loading:{type:Boolean,default:!0},animation:{type:Boolean,default:!1}},setup(e){const t=de("skeleton"),n=P(()=>[t,{[`${t}-animation`]:e.animation}]);return{prefixCls:t,cls:n}}});function V1e(e,t,n,i,o,s){return R(),X("div",{class:G(e.cls)},[e.loading?He(e.$slots,"default",{key:0}):He(e.$slots,"content",{key:1})],2)}var l3=ye(F1e,[["render",V1e]]);const H1e=se({name:"SkeletonLine",props:{rows:{type:Number,default:1},widths:{type:Array,default:()=>[]},lineHeight:{type:Number,default:20},lineSpacing:{type:Number,default:15}},setup(e){const t=de("skeleton-line"),n=[];for(let i=0;i<e.rows;i++){const o={};Le(e.widths[i])?o.width=`${e.widths[i]}px`:Ai(e.widths[i])&&(o.width=String(e.widths[i])),o.height=`${e.lineHeight}px`,i>0&&(o.marginTop=`${e.lineSpacing}px`),n.push(o)}return{prefixCls:t,lines:n}}});function W1e(e,t,n,i,o,s){return R(!0),X(ft,null,dn(e.lines,(r,a)=>(R(),X("ul",{key:a,class:G(e.prefixCls)},[B("li",{class:G(`${e.prefixCls}-row`),style:Te(r)},null,6)],2))),128)}var Ob=ye(H1e,[["render",W1e]]);const U1e=se({name:"SkeletonShape",props:{shape:{type:String,default:"square"},size:{type:String,default:"medium"}},setup(e){const t=de("skeleton-shape"),n=P(()=>[t,`${t}-${e.shape}`,`${t}-${e.size}`]);return{prefixCls:t,cls:n}}});function Z1e(e,t,n,i,o,s){return R(),X("div",{class:G(e.cls)},null,2)}var Lb=ye(U1e,[["render",Z1e]]);const G1e=Object.assign(l3,{Line:Ob,Shape:Lb,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+l3.name,l3),e.component(n+Ob.name,Ob),e.component(n+Lb.name,Lb)}}),Y1e=se({name:"SliderButton",components:{Tooltip:us},inheritAttrs:!1,props:{direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},min:{type:Number,required:!0},max:{type:Number,required:!0},formatTooltip:{type:Function},value:[String,Number],tooltipPosition:{type:String},showTooltip:{type:Boolean,default:!0}},emits:["movestart","moving","moveend"],setup(e,{emit:t}){const n=de("slider-btn"),i=he(!1),o=g=>{e.disabled||(g.preventDefault(),i.value=!0,Nn(window,"mousemove",s),Nn(window,"mouseup",r),Nn(window,"contextmenu",r),t("movestart"))},s=g=>{t("moving",g.clientX,g.clientY)},r=()=>{i.value=!1,Qn(window,"mousemove",s),Qn(window,"mouseup",r),t("moveend")},a=P(()=>[n]),u=P(()=>{var g;return((g=e.tooltipPosition)!=null?g:e.direction==="vertical")?"right":"top"}),c=P(()=>{var g,C;return(C=(g=e.formatTooltip)==null?void 0:g.call(e,e.value))!=null?C:`${e.value}`}),l=P(()=>e.showTooltip?i.value?!0:void 0:!1);return{prefixCls:n,cls:a,tooltipContent:c,mergedTooltipPosition:u,popupVisible:l,handleMouseDown:o}}}),X1e=["aria-disabled","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"];function K1e(e,t,n,i,o,s){const r=Pe("tooltip");return R(),We(r,{"popup-visible":e.popupVisible,position:e.mergedTooltipPosition,content:e.tooltipContent},{default:Ve(()=>[B("div",Qe(e.$attrs,{tabindex:"0",role:"slider","aria-disabled":e.disabled,"aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":e.value,"aria-valuetext":e.tooltipContent,class:e.cls,onMousedown:t[0]||(t[0]=(...a)=>e.handleMouseDown&&e.handleMouseDown(...a)),onClick:t[1]||(t[1]=oo(()=>{},["stop"]))}),null,16,X1e)]),_:1},8,["popup-visible","position","content"])}var J1e=ye(Y1e,[["render",K1e]]);const lc=(e,[t,n])=>{const i=Math.max((e-t)/(n-t),0);return`${so.round(i*100,2)}%`},cw=(e,t)=>t==="vertical"?{bottom:e}:{left:e},q1e=se({name:"SliderDots",props:{data:{type:Array,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){return{prefixCls:de("slider"),getStyle:i=>cw(lc(i,[e.min,e.max]),e.direction)}}});function Q1e(e,t,n,i,o,s){return R(),X("div",{class:G(`${e.prefixCls}-dots`)},[(R(!0),X(ft,null,dn(e.data,(r,a)=>(R(),X("div",{key:a,class:G(`${e.prefixCls}-dot-wrapper`),style:Te(e.getStyle(r.key))},[B("div",{class:G([`${e.prefixCls}-dot`,{[`${e.prefixCls}-dot-active`]:r.isActive}])},null,2)],6))),128))],2)}var eye=ye(q1e,[["render",Q1e]]);const tye=se({name:"SliderMarks",props:{data:{type:Array,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){return{prefixCls:de("slider"),getStyle:i=>cw(lc(i,[e.min,e.max]),e.direction)}}});function nye(e,t,n,i,o,s){return R(),X("div",{class:G(`${e.prefixCls}-marks`)},[(R(!0),X(ft,null,dn(e.data,(r,a)=>(R(),X("div",{key:a,"aria-hidden":"true",class:G(`${e.prefixCls}-mark`),style:Te(e.getStyle(r.key))},tt(r.content),7))),128))],2)}var iye=ye(tye,[["render",nye]]);const rye=se({name:"SliderTicks",props:{value:{type:Array,required:!0},step:{type:Number,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){const t=de("slider"),n=P(()=>{const o=[],s=Math.floor((e.max-e.min)/e.step);for(let r=0;r<=s;r++){const a=so.plus(r*e.step,e.min);a<=e.min||a>=e.max||o.push({key:a,isActive:a>=e.value[0]&&a<=e.value[1]})}return o});return{prefixCls:t,steps:n,getStyle:o=>cw(lc(o,[e.min,e.max]),e.direction)}}});function oye(e,t,n,i,o,s){return R(),X("div",{class:G(`${e.prefixCls}-ticks`)},[(R(!0),X(ft,null,dn(e.steps,(r,a)=>(R(),X("div",{key:a,class:G([`${e.prefixCls}-tick`,{[`${e.prefixCls}-tick-active`]:r.isActive}]),style:Te(e.getStyle(r.key))},null,6))),128))],2)}var sye=ye(rye,[["render",oye]]);const aye=se({name:"SliderInput",components:{InputNumber:g1},props:{modelValue:{type:Array,required:!0},min:{type:Number},max:{type:Number},step:{type:Number},disabled:{type:Boolean},range:{type:Boolean}},emits:["startChange","endChange"],setup(e,{emit:t}){return{prefixCls:de("slider")}}});function lye(e,t,n,i,o,s){const r=Pe("input-number");return R(),X("div",{class:G(`${e.prefixCls}-input`)},[e.range?(R(),X(ft,{key:0},[O(r,{min:e.min,max:e.max,step:e.step,disabled:e.disabled,"model-value":e.modelValue[0],"hide-button":"",onChange:t[0]||(t[0]=a=>e.$emit("startChange",a))},null,8,["min","max","step","disabled","model-value"]),B("div",{class:G(`${e.prefixCls}-input-hyphens`)},null,2)],64)):Re("v-if",!0),O(r,{min:e.min,max:e.max,step:e.step,disabled:e.disabled,"model-value":e.modelValue[1],"hide-button":"",onChange:t[1]||(t[1]=a=>e.$emit("endChange",a))},null,8,["min","max","step","disabled","model-value"])],2)}var cye=ye(aye,[["render",lye]]);const uye=se({name:"Slider",components:{SliderButton:J1e,SliderDots:eye,SliderMarks:iye,SliderTicks:sye,SliderInput:cye},props:{modelValue:{type:[Number,Array],default:void 0},defaultValue:{type:[Number,Array],default:0},step:{type:Number,default:1},min:{type:Number,default:0},marks:{type:Object},max:{type:Number,default:100},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},showTicks:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},range:{type:Boolean,default:!1},formatTooltip:{type:Function},showTooltip:{type:Boolean,default:!0}},emits:{"update:modelValue":e=>!0,change:e=>!0},setup(e,{emit:t}){const{modelValue:n}=lt(e),i=de("slider"),{mergedDisabled:o,eventHandlers:s}=li({disabled:lo(e,"disabled")}),r=he(null),a=he(),u=e.modelValue?e.modelValue:e.defaultValue,c=he(Kt(u)?u[0]:0),l=he(Kt(u)?u[1]:u);gt(n,E=>{var N,j,z,V,W;Kt(E)?(c.value=(j=(N=E[0])!=null?N:e.min)!=null?j:0,l.value=(V=(z=E[1])!=null?z:e.min)!=null?V:0):l.value=(W=E??e.min)!=null?W:0});const g=()=>{var E,N;e.range?(t("update:modelValue",[c.value,l.value]),t("change",[c.value,l.value])):(t("update:modelValue",l.value),t("change",l.value)),(N=(E=s.value)==null?void 0:E.onChange)==null||N.call(E)},C=E=>{E=E??e.min,c.value=E,g()},S=E=>{E=E??e.min,l.value=E,g()},_=P(()=>{var E,N,j;return e.range?Kt(e.modelValue)?e.modelValue:[c.value,(E=e.modelValue)!=null?E:l.value]:jt(e.modelValue)?[c.value,l.value]:Kt(e.modelValue)?[(N=e.min)!=null?N:0,e.modelValue[1]]:[(j=e.min)!=null?j:0,e.modelValue]}),A=P(()=>Object.keys(e.marks||{}).map(E=>{var N;const j=Number(E);return{key:j,content:(N=e.marks)==null?void 0:N[j],isActive:j>=_.value[0]&&j<=_.value[1]}})),y=E=>cw(lc(E,[e.min,e.max]),e.direction),d=he(!1),v=()=>{d.value=!0,r.value&&(a.value=r.value.getBoundingClientRect())};function m(E,N){if(!a.value)return 0;const{left:j,top:z,width:V,height:W}=a.value,H=e.direction==="horizontal"?V:W,U=H*e.step/(e.max-e.min);let Q=e.direction==="horizontal"?E-j:z+W-N;Q<0&&(Q=0),Q>H&&(Q=H);const q=Math.round(Q/U);return so.plus(e.min,so.times(q,e.step))}const f=(E,N)=>{l.value=m(E,N),g()},p=E=>{if(o.value)return;const{clientX:N,clientY:j}=E;r.value&&(a.value=r.value.getBoundingClientRect()),l.value=m(N,j),g()};function h([E,N]){return E>N&&([E,N]=[N,E]),e.direction==="vertical"?{bottom:lc(E,[e.min,e.max]),top:lc(e.max+e.min-N,[e.min,e.max])}:{left:lc(E,[e.min,e.max]),right:lc(e.max+e.min-N,[e.min,e.max])}}const b=(E,N)=>{c.value=m(E,N),g()},w=()=>{d.value=!1},k=P(()=>[i,{[`${i}-vertical`]:e.direction==="vertical",[`${i}-with-marks`]:!!e.marks}]),$=P(()=>[`${i}-track`,{[`${i}-track-disabled`]:o.value,[`${i}-track-vertical`]:e.direction==="vertical"}]);return{prefixCls:i,cls:k,trackCls:$,trackRef:r,computedValue:_,mergedDisabled:o,markList:A,getBtnStyle:y,getBarStyle:h,handleClick:p,handleMoveStart:v,handleEndMoving:f,handleMoveEnd:w,handleStartMoving:b,handleStartChange:C,handleEndChange:S}}});function dye(e,t,n,i,o,s){const r=Pe("slider-ticks"),a=Pe("slider-dots"),u=Pe("slider-marks"),c=Pe("slider-button"),l=Pe("slider-input");return R(),X("div",{class:G(e.cls)},[B("div",{ref:"trackRef",class:G(e.trackCls),onClick:t[0]||(t[0]=(...g)=>e.handleClick&&e.handleClick(...g))},[B("div",{class:G(`${e.prefixCls}-bar`),style:Te(e.getBarStyle(e.computedValue))},null,6),e.showTicks?(R(),We(r,{key:0,value:e.computedValue,step:e.step,min:e.min,max:e.max,direction:e.direction},null,8,["value","step","min","max","direction"])):Re("v-if",!0),e.marks?(R(),We(a,{key:1,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Re("v-if",!0),e.marks?(R(),We(u,{key:2,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Re("v-if",!0),e.range?(R(),We(c,{key:3,style:Te(e.getBtnStyle(e.computedValue[0])),value:e.computedValue[0],direction:e.direction,disabled:e.mergedDisabled,min:e.min,max:e.max,"format-tooltip":e.formatTooltip,"show-tooltip":e.showTooltip,onMovestart:e.handleMoveStart,onMoving:e.handleStartMoving,onMoveend:e.handleMoveEnd},null,8,["style","value","direction","disabled","min","max","format-tooltip","show-tooltip","onMovestart","onMoving","onMoveend"])):Re("v-if",!0),O(c,{style:Te(e.getBtnStyle(e.computedValue[1])),value:e.computedValue[1],direction:e.direction,disabled:e.mergedDisabled,min:e.min,max:e.max,"format-tooltip":e.formatTooltip,"show-tooltip":e.showTooltip,onMovestart:e.handleMoveStart,onMoving:e.handleEndMoving,onMoveend:e.handleMoveEnd},null,8,["style","value","direction","disabled","min","max","format-tooltip","show-tooltip","onMovestart","onMoving","onMoveend"])],2),e.showInput?(R(),We(l,{key:0,"model-value":e.computedValue,min:e.min,max:e.max,step:e.step,range:e.range,disabled:e.disabled,onStartChange:e.handleStartChange,onEndChange:e.handleEndChange},null,8,["model-value","min","max","step","range","disabled","onStartChange","onEndChange"])):Re("v-if",!0)],2)}var c3=ye(uye,[["render",dye]]);const fye=Object.assign(c3,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+c3.name,c3)}});var u3=se({name:"Space",props:{align:{type:String},direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:"small"},wrap:{type:Boolean},fill:{type:Boolean}},setup(e,{slots:t}){const n=de("space"),i=P(()=>{var a;return(a=e.align)!=null?a:e.direction==="horizontal"?"center":""}),o=P(()=>[n,{[`${n}-${e.direction}`]:e.direction,[`${n}-align-${i.value}`]:i.value,[`${n}-wrap`]:e.wrap,[`${n}-fill`]:e.fill}]);function s(a){if(Le(a))return a;switch(a){case"mini":return 4;case"small":return 8;case"medium":return 16;case"large":return 24;default:return 8}}const r=a=>{const u={},c=`${s(Kt(e.size)?e.size[0]:e.size)}px`,l=`${s(Kt(e.size)?e.size[1]:e.size)}px`;return a?e.wrap?{marginBottom:l}:{}:(e.direction==="horizontal"&&(u.marginRight=c),(e.direction==="vertical"||e.wrap)&&(u.marginBottom=l),u)};return()=>{var a;const u=$a((a=t.default)==null?void 0:a.call(t),!0).filter(c=>c.type!==Pi);return O("div",{class:o.value},[u.map((c,l)=>{var g,C;const S=t.split&&l>0;return O(ft,{key:(g=c.key)!=null?g:`item-${l}`},[S&&O("div",{class:`${n}-item-split`,style:r(!1)},[(C=t.split)==null?void 0:C.call(t)]),O("div",{class:`${n}-item`,style:r(l===u.length-1)},[c])])})])}}});const hye=Object.assign(u3,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+u3.name,u3)}});function lH(e){const t=Ai(e)?parseFloat(e):e;let n="";return Le(e)||String(t)===e?n=t>1?"px":"%":n="px",{size:t,unit:n,isPx:n==="px"}}function Ay({size:e,defaultSize:t,containerSize:n}){const i=lH(e??t);return i.isPx?i.size:i.size*n}function pye(e,t){return parseFloat(e)/parseFloat(t)}const mye=se({name:"Split",components:{ResizeTrigger:FV},props:{component:{type:String,default:"div"},direction:{type:String,default:"horizontal"},size:{type:[Number,String],default:void 0},defaultSize:{type:[Number,String],default:.5},min:{type:[Number,String]},max:{type:[Number,String]},disabled:{type:Boolean,default:!1}},emits:{moveStart:e=>!0,moving:e=>!0,moveEnd:e=>!0,"update:size":e=>!0},setup(e,{emit:t}){const{direction:n,size:i,defaultSize:o,min:s,max:r}=lt(e),a=he(0),u=he(),c=de("split"),[l,g]=cr(o.value,it({value:i})),C=P(()=>lH(l.value)),S=P(()=>n.value==="horizontal"),_=P(()=>[c,{[`${c}-horizontal`]:S.value,[`${c}-vertical`]:!S.value}]),A=P(()=>{const{size:k,unit:$,isPx:E}=C.value;return{flex:`0 0 calc(${E?k:k*100}${$} - ${a.value/2}px)`}}),y={startPageX:0,startPageY:0,startContainerSize:0,startSize:0};async function d(){const k=()=>{var $,E;return S.value?($=u.value)==null?void 0:$.clientWidth:((E=u.value)==null?void 0:E.clientHeight)||0};return(!u.value||k())&&await fn(),k()}function v(k,$){if(!$)return;const E=C.value.isPx?`${k}px`:pye(k,$);l.value!==E&&(g(E),t("update:size",E))}function m(k,$){const E=Ay({size:k,containerSize:$}),N=Ay({size:s.value,defaultSize:"0px",containerSize:$}),j=Ay({size:r.value,defaultSize:`${$}px`,containerSize:$});let z=E;return z=Math.max(z,N),z=Math.min(z,j),z}function f({startContainerSize:k,startSize:$,startPosition:E,endPosition:N}){const j=Ay({size:$,containerSize:k});return m(`${j+(N-E)}px`,k)}function p(k){t("moving",k);const $=S.value?f({startContainerSize:y.startContainerSize,startSize:y.startSize,startPosition:y.startPageX,endPosition:k.pageX}):f({startContainerSize:y.startContainerSize,startSize:y.startSize,startPosition:y.startPageY,endPosition:k.pageY});v($,y.startContainerSize)}function h(k){Qn(window,"mousemove",p),Qn(window,"mouseup",h),Qn(window,"contextmenu",h),document.body.style.cursor="default",t("moveEnd",k)}async function b(k){t("moveStart",k),y.startPageX=k.pageX,y.startPageY=k.pageY,y.startContainerSize=await d(),y.startSize=l.value,Nn(window,"mousemove",p),Nn(window,"mouseup",h),Nn(window,"contextmenu",h),document.body.style.cursor=S.value?"col-resize":"row-resize"}function w(k){const{width:$,height:E}=k.contentRect;a.value=S.value?$:E}return Yt(async()=>{const k=await d(),$=m(l.value,k);v($,k)}),{prefixCls:c,classNames:_,isHorizontal:S,wrapperRef:u,onMoveStart:b,onTriggerResize:w,firstPaneStyles:A}}});function vye(e,t,n,i,o,s){const r=Pe("ResizeTrigger");return R(),We(Zr(e.component),{ref:"wrapperRef",class:G(e.classNames)},{default:Ve(()=>[B("div",{class:G([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-first`]),style:Te(e.firstPaneStyles)},[He(e.$slots,"first")],6),e.disabled?Re("v-if",!0):(R(),We(r,{key:0,"prefix-cls":`${e.prefixCls}-trigger`,direction:e.isHorizontal?"vertical":"horizontal",onMousedown:e.onMoveStart,onResize:e.onTriggerResize},{default:Ve(()=>[He(e.$slots,"resize-trigger")]),icon:Ve(()=>[He(e.$slots,"resize-trigger-icon")]),_:3},8,["prefix-cls","direction","onMousedown","onResize"])),B("div",{class:G([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-second`])},[He(e.$slots,"second")],2)]),_:3},8,["class"])}var d3=ye(mye,[["render",vye]]);const gye=Object.assign(d3,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+d3.name,d3)}}),yye=se({name:"Statistic",props:{title:String,value:{type:[Number,Object]},format:{type:String,default:"HH:mm:ss"},extra:String,start:{type:Boolean,default:!0},precision:{type:Number,default:0},separator:String,showGroupSeparator:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},animationDuration:{type:Number,default:2e3},valueFrom:{type:Number,default:void 0},placeholder:{type:String},valueStyle:{type:Object}},setup(e){var t;const n=de("statistic"),i=P(()=>Le(e.value)?e.value:0),o=he((t=e.valueFrom)!=null?t:e.value),s=he(null),{value:r}=lt(e),a=P(()=>jt(e.value)),u=(l=(C=>(C=e.valueFrom)!=null?C:0)(),g=i.value)=>{var C;l!==g&&(s.value=new df({from:{value:l},to:{value:g},duration:e.animationDuration,easing:"quartOut",onUpdate:S=>{o.value=S.value},onFinish:()=>{o.value=g}}),(C=s.value)==null||C.start())},c=P(()=>{let l=o.value;if(Le(l)){Le(e.precision)&&(l=so.round(l,e.precision).toFixed(e.precision));const g=String(l).split("."),C=e.showGroupSeparator?Number(g[0]).toLocaleString("en-US"):g[0],S=g[1];return{isNumber:!0,integer:C,decimal:S}}return e.format&&(l=yr(l).format(e.format)),{isNumber:!1,value:l}});return Yt(()=>{e.animation&&e.start&&u()}),gt(()=>e.start,l=>{l&&e.animation&&!s.value&&u()}),gt(r,l=>{var g;s.value&&((g=s.value)==null||g.stop(),s.value=null),o.value=l,e.animation&&e.start&&u()}),{prefixCls:n,showPlaceholder:a,formatValue:c}}}),bye={key:0};function kye(e,t,n,i,o,s){return R(),X("div",{class:G(e.prefixCls)},[e.title||e.$slots.title?(R(),X("div",{key:0,class:G(`${e.prefixCls}-title`)},[He(e.$slots,"title",{},()=>[pt(tt(e.title),1)])],2)):Re("v-if",!0),B("div",{class:G(`${e.prefixCls}-content`)},[B("div",{class:G(`${e.prefixCls}-value`),style:Te(e.valueStyle)},[e.showPlaceholder?(R(),X("span",bye,tt(e.placeholder),1)):(R(),X(ft,{key:1},[e.$slots.prefix?(R(),X("span",{key:0,class:G(`${e.prefixCls}-prefix`)},[He(e.$slots,"prefix")],2)):Re("v-if",!0),e.formatValue.isNumber?(R(),X(ft,{key:1},[B("span",{class:G(`${e.prefixCls}-value-integer`)},tt(e.formatValue.integer),3),e.formatValue.decimal?(R(),X("span",{key:0,class:G(`${e.prefixCls}-value-decimal`)}," ."+tt(e.formatValue.decimal),3)):Re("v-if",!0)],64)):(R(),X(ft,{key:2},[pt(tt(e.formatValue.value),1)],2112)),e.$slots.suffix?(R(),X("span",{key:3,class:G(`${e.prefixCls}-suffix`)},[He(e.$slots,"suffix")],2)):Re("v-if",!0)],64))],6),e.extra||e.$slots.extra?(R(),X("div",{key:0,class:G(`${e.prefixCls}-extra`)},[He(e.$slots,"extra",{},()=>[pt(tt(e.extra),1)])],2)):Re("v-if",!0)],2)],2)}var f3=ye(yye,[["render",kye]]);const Cye=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function h3(e,t){let n=e;return Cye.reduce((i,[o,s])=>{if(i.indexOf(o)!==-1){const r=Math.floor(n/s);return n-=r*s,i.replace(new RegExp(`${o}+`,"g"),a=>{const u=a.length;return String(r).padStart(u,"0")})}return i},t)}const Sye=se({name:"Countdown",props:{title:String,value:{type:Number,default:()=>Date.now()+3e5},now:{type:Number,default:()=>Date.now()},format:{type:String,default:"HH:mm:ss"},start:{type:Boolean,default:!0},valueStyle:{type:Object}},emits:{finish:()=>!0},setup(e,{emit:t}){const n=de("statistic"),{start:i,value:o,now:s,format:r}=lt(e),a=he(h3(Math.max(yr(e.value).diff(yr(e.now),"millisecond"),0),e.format));gt([o,s,r],()=>{const g=h3(Math.max(yr(e.value).diff(yr(e.now),"millisecond"),0),e.format);g!==a.value&&(a.value=g)});const u=he(0),c=()=>{u.value&&(window.clearInterval(u.value),u.value=0)},l=()=>{yr(e.value).valueOf()<Date.now()||(u.value=window.setInterval(()=>{const g=yr(e.value).diff(yr(),"millisecond");g<=0&&(c(),t("finish")),a.value=h3(Math.max(g,0),e.format)},1e3/30))};return Yt(()=>{e.start&&l()}),ei(()=>{c()}),gt(i,g=>{g&&!u.value&&l()}),{prefixCls:n,displayValue:a}}});function wye(e,t,n,i,o,s){return R(),X("div",{class:G([`${e.prefixCls}`,`${e.prefixCls}-countdown`])},[e.title||e.$slots.title?(R(),X("div",{key:0,class:G(`${e.prefixCls}-title`)},[He(e.$slots,"title",{},()=>[pt(tt(e.title),1)])],2)):Re("v-if",!0),B("div",{class:G(`${e.prefixCls}-content`)},[B("div",{class:G(`${e.prefixCls}-value`),style:Te(e.valueStyle)},tt(e.displayValue),7)],2)],2)}var Db=ye(Sye,[["render",wye]]);const _ye=Object.assign(f3,{Countdown:Db,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+f3.name,f3),e.component(n+Db.name,Db)}}),cH=Symbol("ArcoSteps"),Iye=se({name:"Steps",props:{type:{type:String,default:"default"},direction:{type:String,default:"horizontal"},labelPlacement:{type:String,default:"horizontal"},current:{type:Number,default:void 0},defaultCurrent:{type:Number,default:1},status:{type:String,default:"process"},lineLess:{type:Boolean,default:!1},small:{type:Boolean,default:!1},changeable:{type:Boolean,default:!1}},emits:{"update:current":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{type:i,lineLess:o}=lt(e),s=de("steps"),r=he(e.defaultCurrent),a=P(()=>{var d;return(d=e.current)!=null?d:r.value}),u=P(()=>["navigation","arrow"].includes(e.type)?"horizontal":e.direction),c=P(()=>e.type==="dot"?u.value==="vertical"?"horizontal":"vertical":e.type==="navigation"?"horizontal":e.labelPlacement),l=d=>d<a.value?"finish":d>a.value?"wait":e.status,g=(d,v)=>{e.changeable&&(r.value=d,t("update:current",d),t("change",d,v))},C=it(new Map),S=P(()=>Array.from(C.values()).filter(d=>d.status==="error").map(d=>d.step)),_=(d,v)=>{C.set(d,v)},A=d=>{C.delete(d)},y=P(()=>[s,`${s}-${u.value}`,`${s}-label-${c.value}`,`${s}-mode-${i.value}`,{[`${s}-changeable`]:e.changeable,[`${s}-size-small`]:e.small&&e.type!=="dot",[`${s}-line-less`]:o.value}]);return cn(cH,it({type:i,direction:u,labelPlacement:c,lineLess:o,current:a,errorSteps:S,getStatus:l,addItem:_,removeItem:A,onClick:g,parentCls:s})),{cls:y}}});function xye(e,t,n,i,o,s){return R(),X("div",{class:G(e.cls)},[He(e.$slots,"default")],2)}var p3=ye(Iye,[["render",xye]]);const $ye=se({name:"Step",components:{IconCheck:C1,IconClose:Cr},props:{title:String,description:String,status:{type:String},disabled:{type:Boolean,default:!1}},setup(e){const t=de("steps-item"),n=Vn(),i=de("steps-icon"),o=Dt(cH,void 0),s=P(()=>{var _;return(_=o==null?void 0:o.type)!=null?_:"default"}),r=he(),{computedIndex:a}=GS({itemRef:r,selector:`.${t}`,parentClassName:o==null?void 0:o.parentCls}),u=P(()=>a.value+1),c=P(()=>{var _,A;return(A=(_=e.status)!=null?_:o==null?void 0:o.getStatus(u.value))!=null?A:"process"}),l=P(()=>{var _;return(_=o==null?void 0:o.errorSteps.includes(u.value+1))!=null?_:!1});n&&(o==null||o.addItem(n.uid,it({step:u,status:c}))),ei(()=>{n&&(o==null||o.removeItem(n.uid))});const g=P(()=>!(o!=null&&o.lineLess)&&((o==null?void 0:o.labelPlacement)==="vertical"||(o==null?void 0:o.direction)==="vertical")),C=_=>{e.disabled||o==null||o.onClick(u.value,_)},S=P(()=>[t,`${t}-${c.value}`,{[`${t}-active`]:u.value===(o==null?void 0:o.current),[`${t}-next-error`]:l.value,[`${t}-disabled`]:e.disabled}]);return{prefixCls:t,iconCls:i,cls:S,itemRef:r,showTail:g,stepNumber:u,computedStatus:c,type:s,handleClick:C}}});function Aye(e,t,n,i,o,s){const r=Pe("icon-check"),a=Pe("icon-close");return R(),X("div",{ref:"itemRef",class:G(e.cls),onClick:t[0]||(t[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[e.showTail?(R(),X("div",{key:0,class:G(`${e.prefixCls}-tail`)},null,2)):Re("v-if",!0),e.type!=="arrow"?(R(),X("div",{key:1,class:G(`${e.prefixCls}-node`)},[He(e.$slots,"node",{step:e.stepNumber,status:e.computedStatus},()=>[e.type!=="dot"?(R(),X("div",{key:0,class:G(e.iconCls)},[He(e.$slots,"icon",{step:e.stepNumber,status:e.computedStatus},()=>[e.computedStatus==="finish"?(R(),We(r,{key:0})):e.computedStatus==="error"?(R(),We(a,{key:1})):(R(),X(ft,{key:2},[pt(tt(e.stepNumber),1)],2112))])],2)):Re("v-if",!0)])],2)):Re("v-if",!0),B("div",{class:G(`${e.prefixCls}-content`)},[B("div",{class:G(`${e.prefixCls}-title`)},[He(e.$slots,"default",{},()=>[pt(tt(e.title),1)])],2),e.description||e.$slots.description?(R(),X("div",{key:0,class:G(`${e.prefixCls}-description`)},[He(e.$slots,"description",{},()=>[pt(tt(e.description),1)])],2)):Re("v-if",!0)],2)],2)}var Nb=ye($ye,[["render",Aye]]);const Eye=Object.assign(p3,{Step:Nb,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+p3.name,p3),e.component(n+Nb.name,Nb)}}),Mye=se({name:"Switch",components:{IconLoading:Lr},props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultChecked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{type:String,default:"circle"},size:{type:String},checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},checkedColor:{type:String},uncheckedColor:{type:String},beforeChange:{type:Function},checkedText:{type:String},uncheckedText:{type:String}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t}){const{disabled:n,size:i,modelValue:o}=lt(e),s=de("switch"),{mergedSize:r}=Sr(i),{mergedDisabled:a,mergedSize:u,eventHandlers:c}=li({disabled:n,size:r}),l=he(e.defaultChecked?e.checkedValue:e.uncheckedValue),g=P(()=>{var f;return((f=e.modelValue)!=null?f:l.value)===e.checkedValue}),C=he(!1),S=P(()=>C.value||e.loading),_=(f,p)=>{var h,b;l.value=f?e.checkedValue:e.uncheckedValue,t("update:modelValue",l.value),t("change",l.value,p),(b=(h=c.value)==null?void 0:h.onChange)==null||b.call(h,p)},A=async f=>{if(S.value||a.value)return;const p=!g.value,h=p?e.checkedValue:e.uncheckedValue,b=e.beforeChange;if(Nt(b)){C.value=!0;try{const w=await b(h);(w??!0)&&_(p,f)}finally{C.value=!1}}else _(p,f)},y=f=>{var p,h;t("focus",f),(h=(p=c.value)==null?void 0:p.onFocus)==null||h.call(p,f)},d=f=>{var p,h;t("blur",f),(h=(p=c.value)==null?void 0:p.onBlur)==null||h.call(p,f)};gt(o,f=>{(jt(f)||Xr(f))&&(l.value=e.uncheckedValue)});const v=P(()=>[s,`${s}-type-${e.type}`,{[`${s}-small`]:u.value==="small"||u.value==="mini",[`${s}-checked`]:g.value,[`${s}-disabled`]:a.value,[`${s}-loading`]:S.value,[`${s}-custom-color`]:e.type==="line"&&(e.checkedColor||e.uncheckedColor)}]),m=P(()=>{if(g.value&&e.checkedColor)return e.type==="line"?{"--custom-color":e.checkedColor}:{backgroundColor:e.checkedColor};if(!g.value&&e.uncheckedColor)return e.type==="line"?{"--custom-color":e.uncheckedColor}:{backgroundColor:e.uncheckedColor}});return{prefixCls:s,cls:v,mergedDisabled:a,buttonStyle:m,computedCheck:g,computedLoading:S,handleClick:A,handleFocus:y,handleBlur:d}}}),Tye=["aria-checked","disabled"];function Pye(e,t,n,i,o,s){const r=Pe("icon-loading");return R(),X("button",{type:"button",role:"switch","aria-checked":e.computedCheck,class:G(e.cls),style:Te(e.buttonStyle),disabled:e.mergedDisabled,onClick:t[0]||(t[0]=(...a)=>e.handleClick&&e.handleClick(...a)),onFocus:t[1]||(t[1]=(...a)=>e.handleFocus&&e.handleFocus(...a)),onBlur:t[2]||(t[2]=(...a)=>e.handleBlur&&e.handleBlur(...a))},[B("span",{class:G(`${e.prefixCls}-handle`)},[B("span",{class:G(`${e.prefixCls}-handle-icon`)},[e.computedLoading?(R(),We(r,{key:0})):(R(),X(ft,{key:1},[e.computedCheck?He(e.$slots,"checked-icon",{key:0}):He(e.$slots,"unchecked-icon",{key:1})],2112))],2)],2),Re(" prettier-ignore "),e.type!=="line"&&e.size!=="small"&&(e.$slots.checked||e.checkedText||e.$slots.unchecked||e.uncheckedText)?(R(),X(ft,{key:0},[B("span",{class:G(`${e.prefixCls}-text-holder`)},[e.computedCheck?He(e.$slots,"checked",{key:0},()=>[pt(tt(e.checkedText),1)]):He(e.$slots,"unchecked",{key:1},()=>[pt(tt(e.uncheckedText),1)])],2),B("span",{class:G(`${e.prefixCls}-text`)},[e.computedCheck?He(e.$slots,"checked",{key:0},()=>[pt(tt(e.checkedText),1)]):He(e.$slots,"unchecked",{key:1},()=>[pt(tt(e.uncheckedText),1)])],2)],64)):Re("v-if",!0)],46,Tye)}var m3=ye(Mye,[["render",Pye]]);const Oye=Object.assign(m3,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+m3.name,m3)}});var Lye=Object.defineProperty,Dye=Object.defineProperties,Nye=Object.getOwnPropertyDescriptors,NN=Object.getOwnPropertySymbols,jye=Object.prototype.hasOwnProperty,zye=Object.prototype.propertyIsEnumerable,jN=(e,t,n)=>t in e?Lye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uH=(e,t)=>{for(var n in t||(t={}))jye.call(t,n)&&jN(e,n,t[n]);if(NN)for(var n of NN(t))zye.call(t,n)&&jN(e,n,t[n]);return e},Rye=(e,t)=>Dye(e,Nye(t));const Bye=e=>{let t=0;const n=i=>{if(Kt(i)&&i.length>0)for(const o of i)o.children?n(o.children):t+=1};return n(e),t},dH=e=>{let t=0;if(Kt(e)&&e.length>0){t=1;for(const n of e)if(n.children){const i=dH(n.children);i>0&&(t=Math.max(t,i+1))}}return t},zN=(e,t)=>{let{parent:n}=e;for(;n;)n.fixed===t&&(t==="left"?n.isLastLeftFixed=!0:n.isFirstRightFixed=!0),n=n.parent},Fye=(e,t,n)=>{const i=dH(e);t.clear();const o=[],s=[...Array(i)].map(()=>[]);let r,a;const u=(c,{level:l=0,parent:g,fixed:C}={})=>{var S;for(const _ of c){const A=Rye(uH({},_),{parent:g});if(Kt(A.children)){const y=Bye(A.children);y>1&&(A.colSpan=y),s[l].push(A),u(A.children,{level:l+1,parent:A,fixed:A.fixed})}else{const y=i-l;y>1&&(A.rowSpan=y),(C||A.fixed)&&(A.fixed=(S=A.fixed)!=null?S:C,A.fixed==="left"?r=o.length:jt(a)&&(a=o.length)),(jt(A.dataIndex)||Xr(A.dataIndex))&&(A.dataIndex=`__arco_data_index_${o.length}`),n[A.dataIndex]&&(A._resizeWidth=n[A.dataIndex]),t.set(A.dataIndex,A),o.push(A),s[l].push(A)}}};return u(e),jt(r)||(o[r].isLastLeftFixed=!0,zN(o[r],"left")),jt(a)||(o[a].isFirstRightFixed=!0,zN(o[a],"right")),{dataColumns:o,groupColumns:s}},Vye=(e,t)=>{for(let n=0;n<e.length;n++)if(e[n].name===t)return n;return-1},Hye=(e,t)=>{var n;const i=Vye(t,e.name);if(i<=0)return 0;let o=0;const s=t.slice(0,i);for(const r of s)o+=(n=r.width)!=null?n:0;return o},TP=e=>e.children&&e.children.length>0?TP(e.children[0]):e,Wye=e=>e.children&&e.children.length>0?TP(e.children[e.children.length-1]):e,Uye=(e,{dataColumns:t,operations:n})=>{var i,o,s;let r=0;if(e.fixed==="left"){for(const c of n)r+=(i=c.width)!=null?i:40;const u=TP(e);for(const c of t){if(u.dataIndex===c.dataIndex)break;r+=(s=(o=c._resizeWidth)!=null?o:c.width)!=null?s:0}return r}const a=Wye(e);for(let u=t.length-1;u>0;u--){const c=t[u];if(a.dataIndex===c.dataIndex)break;c.fixed==="right"&&(r+=c.width)}return r},fH=(e,t)=>t.fixed?[`${e}-col-fixed-left`,{[`${e}-col-fixed-left-last`]:t.isLastLeftFixed}]:[],hH=(e,t)=>t.fixed==="left"?[`${e}-col-fixed-left`,{[`${e}-col-fixed-left-last`]:t.isLastLeftFixed}]:t.fixed==="right"?[`${e}-col-fixed-right`,{[`${e}-col-fixed-right-first`]:t.isFirstRightFixed}]:[],pH=(e,{dataColumns:t,operations:n})=>{if(e.fixed){const i=`${Uye(e,{dataColumns:t,operations:n})}px`;return e.fixed==="left"?{left:i}:{right:i}}return{}},mH=(e,t)=>e.fixed?{left:`${Hye(e,t)}px`}:{};function vH(e){return e.map(t=>{const n=uH({},t);return n.children&&(n.children=vH(n.children)),n})}function gH(e){return e.map(t=>{const n=t.raw;return t.children&&n.children&&(n.children=gH(t.children)),t.raw})}const PP=e=>{const t=[];if(e.children)for(const n of e.children)n.isLeaf?t.push(n.key):t.push(...PP(n));return t},Zye=(e,t)=>{let n=!1,i=!1;const o=t.filter(s=>e.includes(s));return o.length>0&&(o.length>=t.length?n=!0:i=!0),{checked:n,indeterminate:i}},Sm=(e,t,n=!1)=>n?e.filter(i=>!t.includes(i)):Array.from(new Set(e.concat(t))),Gye=e=>{const t=[];for(let n=0;n<e.length;n++)t[n]=e[e.length-1-n];return t},Yye=({selectedKeys:e,defaultSelectedKeys:t,rowSelection:n,currentAllRowKeys:i,currentAllEnabledRowKeys:o,emit:s})=>{var r,a,u;const c=P(()=>{var m;return((m=n.value)==null?void 0:m.type)==="radio"}),l=he((u=(a=t.value)!=null?a:(r=n.value)==null?void 0:r.defaultSelectedRowKeys)!=null?u:[]),g=P(()=>{var m,f,p;return(p=(f=e.value)!=null?f:(m=n.value)==null?void 0:m.selectedRowKeys)!=null?p:l.value}),C=P(()=>g.value.filter(m=>i.value.includes(m)));return{isRadio:c,selectedRowKeys:g,currentSelectedRowKeys:C,handleSelectAll:m=>{const f=Sm(g.value,o.value,!m);l.value=f,s("selectAll",m),s("selectionChange",f),s("update:selectedKeys",f)},handleSelect:(m,f)=>{const p=c.value?[f.key]:Sm(g.value,[f.key],!m);l.value=p,s("select",p,f.key,f.raw),s("selectionChange",p),s("update:selectedKeys",p)},handleSelectAllLeafs:(m,f)=>{const p=Sm(g.value,PP(m),!f);l.value=p,s("select",p,m.key,m.raw),s("selectionChange",p),s("update:selectedKeys",p)},select:(m,f=!0)=>{const p=[].concat(m),h=c.value?p:Sm(g.value,p,!f);l.value=h,s("selectionChange",h),s("update:selectedKeys",h)},selectAll:(m=!0)=>{const f=Sm(g.value,o.value,!m);l.value=f,s("selectionChange",f),s("update:selectedKeys",f)},clearSelected:()=>{l.value=[],s("selectionChange",[]),s("update:selectedKeys",[])}}},Xye=({expandedKeys:e,defaultExpandedKeys:t,defaultExpandAllRows:n,expandable:i,allRowKeys:o,emit:s})=>{const a=he((()=>{var C,S;return t.value?t.value:(C=i.value)!=null&&C.defaultExpandedRowKeys?i.value.defaultExpandedRowKeys:n.value||(S=i.value)!=null&&S.defaultExpandAllRows?[...o.value]:[]})()),u=P(()=>{var C,S,_;return(_=(S=e.value)!=null?S:(C=i.value)==null?void 0:C.expandedRowKeys)!=null?_:a.value});return{expandedRowKeys:u,handleExpand:(C,S)=>{const A=u.value.includes(C)?u.value.filter(y=>C!==y):u.value.concat(C);a.value=A,s("expand",C,S),s("expandedChange",A),s("update:expandedKeys",A)},expand:(C,S=!0)=>{const _=[].concat(C),A=S?u.value.concat(_):u.value.filter(y=>!_.includes(y));a.value=A,s("expandedChange",A),s("update:expandedKeys",A)},expandAll:(C=!0)=>{const S=C?[...o.value]:[];a.value=S,s("expandedChange",S),s("update:expandedKeys",S)}}},Kye=(e,t)=>{var n,i;const o=he(rn(e.pagination)&&(n=e.pagination.defaultCurrent)!=null?n:1),s=he(rn(e.pagination)&&(i=e.pagination.defaultPageSize)!=null?i:10),r=P(()=>{var l;return rn(e.pagination)&&(l=e.pagination.pageSize)!=null?l:s.value});return{page:P(()=>{var l;return rn(e.pagination)&&(l=e.pagination.current)!=null?l:o.value}),pageSize:r,handlePageChange:l=>{o.value=l,t("pageChange",l)},handlePageSizeChange:l=>{s.value=l,t("pageSizeChange",l)}}},Jye=se({name:"ColGroup",props:{dataColumns:{type:Array,required:!0},operations:{type:Array,required:!0},columnWidth:{type:Object}},setup(){return{fixedWidth:(t,n)=>{if(t){const i=Math.max(t,n||0);return{width:`${t}px`,minWidth:`${i}px`,maxWidth:`${t}px`}}if(n)return{minWidth:`${n}px`}}}}});function qye(e,t,n,i,o,s){return R(),X("colgroup",null,[(R(!0),X(ft,null,dn(e.operations,r=>(R(),X("col",{key:`arco-col-${r.name}`,class:G(`arco-table-${r.name}-col`),style:Te(e.fixedWidth(r.width))},null,6))),128)),(R(!0),X(ft,null,dn(e.dataColumns,r=>(R(),X("col",{key:`arco-col-${r.dataIndex}`,style:Te(e.fixedWidth(e.columnWidth&&r.dataIndex&&e.columnWidth[r.dataIndex]||r.width,r.minWidth))},null,4))),128))])}var Ey=ye(Jye,[["render",qye]]),gv=se({name:"Thead",setup(e,{slots:t}){return()=>{var n,i;return O((i=(n=t.thead)==null?void 0:n.call(t)[0])!=null?i:"thead",null,{default:t.default})}}}),yv=se({name:"Tbody",setup(e,{slots:t}){return()=>{var n,i;return O((i=(n=t.tbody)==null?void 0:n.call(t)[0])!=null?i:"tbody",null,{default:t.default})}}}),_l=se({name:"Tr",props:{expand:{type:Boolean},empty:{type:Boolean},checked:{type:Boolean},rowIndex:Number,record:{type:Object,default:()=>({})}},setup(e,{slots:t}){const n=de("table"),i=P(()=>[`${n}-tr`,{[`${n}-tr-expand`]:e.expand,[`${n}-tr-empty`]:e.empty,[`${n}-tr-checked`]:e.checked}]);return()=>{var o,s,r;return O((r=(s=t.tr)==null?void 0:s.call(t,{rowIndex:e.rowIndex,record:(o=e.record)==null?void 0:o.raw})[0])!=null?r:"tr",{class:i.value},{default:t.default})}}});const Qye=se({name:"IconCaretDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-caret-down`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),ebe=["stroke-width","stroke-linecap","stroke-linejoin"],tbe=B("path",{d:"M24.938 34.829a1.2 1.2 0 0 1-1.875 0L9.56 17.949c-.628-.785-.069-1.949.937-1.949h27.007c1.006 0 1.565 1.164.937 1.95L24.937 34.829Z",fill:"currentColor",stroke:"none"},null,-1),nbe=[tbe];function ibe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},nbe,14,ebe)}var v3=ye(Qye,[["render",ibe]]);const OP=Object.assign(v3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+v3.name,v3)}}),rbe=se({name:"IconCaretUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-caret-up`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),obe=["stroke-width","stroke-linecap","stroke-linejoin"],sbe=B("path",{d:"M23.063 13.171a1.2 1.2 0 0 1 1.875 0l13.503 16.88c.628.785.069 1.949-.937 1.949H10.497c-1.006 0-1.565-1.164-.937-1.95l13.503-16.879Z",fill:"currentColor",stroke:"none"},null,-1),abe=[sbe];function lbe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},abe,14,obe)}var g3=ye(rbe,[["render",lbe]]);const yH=Object.assign(g3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+g3.name,g3)}}),cbe=se({name:"IconFilter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-filter`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),ube=["stroke-width","stroke-linecap","stroke-linejoin"],dbe=B("path",{d:"M30 42V22.549a1 1 0 0 1 .463-.844l10.074-6.41A1 1 0 0 0 41 14.45V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v6.451a1 1 0 0 0 .463.844l10.074 6.41a1 1 0 0 1 .463.844V37"},null,-1),fbe=[dbe];function hbe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},fbe,14,ube)}var y3=ye(cbe,[["render",hbe]]);const bH=Object.assign(y3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+y3.name,y3)}}),pbe=({column:e,tableCtx:t})=>{const n=P(()=>{var c;if(e.value.dataIndex&&e.value.dataIndex===((c=t.sorter)==null?void 0:c.field))return t.sorter.direction}),i=P(()=>{var c,l,g;return(g=(l=(c=e.value)==null?void 0:c.sortable)==null?void 0:l.sortDirections)!=null?g:[]}),o=P(()=>i.value.length>0),s=P(()=>i.value.includes("ascend")),r=P(()=>i.value.includes("descend")),a=P(()=>{var c,l;return n.value?n.value===i.value[0]&&(l=i.value[1])!=null?l:"":(c=i.value[0])!=null?c:""});return{sortOrder:n,hasSorter:o,hasAscendBtn:s,hasDescendBtn:r,nextSortOrder:a,handleClickSorter:c=>{var l;e.value.dataIndex&&((l=t.onSorterChange)==null||l.call(t,e.value.dataIndex,a.value,c))}}},mbe=({column:e,tableCtx:t})=>{const n=P(()=>{var S;return e.value.dataIndex&&((S=t.filters)!=null&&S[e.value.dataIndex])?t.filters[e.value.dataIndex]:[]}),i=he(!1),o=P(()=>n.value.length>0),s=P(()=>{var S;return!!((S=e.value.filterable)!=null&&S.multiple)}),r=he(n.value);gt(n,S=>{Kt(S)&&String(S)!==String(r.value)&&(r.value=S)});const a=S=>{i.value=S},u=S=>{r.value=S};return{filterPopupVisible:i,isFilterActive:o,isMultipleFilter:s,columnFilterValue:r,handleFilterPopupVisibleChange:a,setFilterValue:u,handleCheckboxFilterChange:S=>{u(S)},handleRadioFilterChange:S=>{u([S])},handleFilterConfirm:S=>{var _;e.value.dataIndex&&((_=t.onFilterChange)==null||_.call(t,e.value.dataIndex,r.value,S)),a(!1)},handleFilterReset:S=>{var _;u([]),e.value.dataIndex&&((_=t.onFilterChange)==null||_.call(t,e.value.dataIndex,r.value,S)),a(!1)}}},tm=Symbol("ArcoTable"),RN=Symbol("ArcoTableColumn");function BN(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var kH=se({name:"AutoTooltip",inheritAttrs:!1,props:{tooltipProps:{type:Object}},setup(e,{attrs:t,slots:n}){const i=de("auto-tooltip"),o=he(),s=he(),r=he(""),a=he(!1),u=()=>{if(o.value&&s.value){const C=s.value.offsetWidth>o.value.offsetWidth;C!==a.value&&(a.value=C)}},c=()=>{var C;(C=s.value)!=null&&C.textContent&&s.value.textContent!==r.value&&(r.value=s.value.textContent)},l=()=>{c(),u()};Yt(()=>{c(),u()}),Bi(()=>{c(),u()});const g=()=>O("span",Qe({ref:o,class:i},t),[O(qc,{onResize:l},{default:()=>{var C;return[O("span",{ref:s,class:`${i}-content`},[(C=n.default)==null?void 0:C.call(n)])]}})]);return()=>{let C;if(a.value){let S;return O(us,Qe({content:r.value,onResize:l},e.tooltipProps),BN(S=g())?S:{default:()=>[S]})}return O(qc,{onResize:l},BN(C=g())?C:{default:()=>[C]})}}}),vbe=Object.defineProperty,FN=Object.getOwnPropertySymbols,gbe=Object.prototype.hasOwnProperty,ybe=Object.prototype.propertyIsEnumerable,VN=(e,t,n)=>t in e?vbe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b3=(e,t)=>{for(var n in t||(t={}))gbe.call(t,n)&&VN(e,n,t[n]);if(FN)for(var n of FN(t))ybe.call(t,n)&&VN(e,n,t[n]);return e};function k3(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var bv=se({name:"Th",props:{column:{type:Object,default:()=>({})},operations:{type:Array,default:()=>[]},dataColumns:{type:Array,default:()=>[]},resizable:Boolean},setup(e,{slots:t}){const{column:n}=lt(e),i=de("table"),{t:o}=fi(),s=Dt(tm,{}),r=P(()=>{var H;return((H=e.column)==null?void 0:H.dataIndex)&&s.resizingColumn===e.column.dataIndex}),a=P(()=>{var H;if(rn((H=e.column)==null?void 0:H.tooltip))return e.column.tooltip}),u=P(()=>{var H;return(H=e.column)!=null&&H.filterable&&Gr(e.column.filterable.alignLeft)?e.column.filterable.alignLeft:s.filterIconAlignLeft}),{sortOrder:c,hasSorter:l,hasAscendBtn:g,hasDescendBtn:C,nextSortOrder:S,handleClickSorter:_}=pbe({column:n,tableCtx:s}),{filterPopupVisible:A,isFilterActive:y,isMultipleFilter:d,columnFilterValue:v,handleFilterPopupVisibleChange:m,setFilterValue:f,handleCheckboxFilterChange:p,handleRadioFilterChange:h,handleFilterConfirm:b,handleFilterReset:w}=mbe({column:n,tableCtx:s}),k=()=>{var H,U,Q,q,ae;let ne,be;const{filterable:te}=e.column;return(H=e.column.slots)!=null&&H["filter-content"]?(U=e.column.slots)==null?void 0:U["filter-content"]({filterValue:v.value,setFilterValue:f,handleFilterConfirm:b,handleFilterReset:w}):te!=null&&te.slotName?(q=(Q=s==null?void 0:s.slots)==null?void 0:Q[te==null?void 0:te.slotName])==null?void 0:q.call(Q,{filterValue:v.value,setFilterValue:f,handleFilterConfirm:b,handleFilterReset:w}):te!=null&&te.renderContent?te.renderContent({filterValue:v.value,setFilterValue:f,handleFilterConfirm:b,handleFilterReset:w}):O("div",{class:`${i}-filters-content`},[O("ul",{class:`${i}-filters-list`},[(ae=te==null?void 0:te.filters)==null?void 0:ae.map((Ie,$e)=>{var Me;return O("li",{class:`${i}-filters-item`,key:$e},[d.value?O(Fs,{value:Ie.value,modelValue:v.value,uninjectGroupContext:!0,onChange:p},{default:()=>[Ie.text]}):O(jp,{value:Ie.value,modelValue:(Me=v.value[0])!=null?Me:"",uninjectGroupContext:!0,onChange:h},{default:()=>[Ie.text]})])})]),O("div",{class:`${i}-filters-bottom`},[O(Yr,{size:"mini",onClick:w},k3(ne=o("table.resetText"))?ne:{default:()=>[ne]}),O(Yr,{type:"primary",size:"mini",onClick:b},k3(be=o("table.okText"))?be:{default:()=>[be]})])])},$=()=>{const{filterable:H}=e.column;return H?O(ur,Qe({popupVisible:A.value,trigger:"click",autoFitPosition:!0,popupOffset:u.value?4:0,onPopupVisibleChange:m},H.triggerProps),{default:()=>[O(ai,{class:[`${i}-filters`,{[`${i}-filters-active`]:y.value,[`${i}-filters-open`]:A.value,[`${i}-filters-align-left`]:u.value}],disabled:!u.value,onClick:U=>U.stopPropagation()},{default:()=>{var U,Q,q,ae,ne;return[(ne=(ae=(Q=(U=e.column.slots)==null?void 0:U["filter-icon"])==null?void 0:Q.call(U))!=null?ae:(q=H.icon)==null?void 0:q.call(H))!=null?ne:O(bH,null,null)]}})],content:k}):null},E=P(()=>{var H,U;const Q=[`${i}-cell`,`${i}-cell-align-${(U=(H=e.column)==null?void 0:H.align)!=null?U:e.column.children?"center":"left"}`];return l.value&&Q.push(`${i}-cell-with-sorter`,{[`${i}-cell-next-ascend`]:S.value==="ascend",[`${i}-cell-next-descend`]:S.value==="descend"}),u.value&&Q.push(`${i}-cell-with-filter`),Q}),N=()=>{var H,U,Q,q,ae,ne;return t.default?t.default():(H=e.column)!=null&&H.titleSlotName&&((U=s.slots)!=null&&U[e.column.titleSlotName])?(q=(Q=s.slots)[e.column.titleSlotName])==null?void 0:q.call(Q,{column:e.column}):(ne=(ae=e.column)==null?void 0:ae.slots)!=null&&ne.title?e.column.slots.title():Nt(e.column.title)?e.column.title():e.column.title},j=()=>{var H,U,Q;let q;return O("span",{class:E.value,onClick:l.value?_:void 0},[(H=e.column)!=null&&H.ellipsis&&((U=e.column)!=null&&U.tooltip)?O(kH,{class:`${i}-th-title`,tooltipProps:a.value},k3(q=N())?q:{default:()=>[q]}):O("span",{class:[`${i}-th-title`,{[`${i}-text-ellipsis`]:(Q=e.column)==null?void 0:Q.ellipsis}]},[N()]),l.value&&O("span",{class:`${i}-sorter`},[g.value&&O("div",{class:[`${i}-sorter-icon`,{[`${i}-sorter-icon-active`]:c.value==="ascend"}]},[O(yH,null,null)]),C.value&&O("div",{class:[`${i}-sorter-icon`,{[`${i}-sorter-icon-active`]:c.value==="descend"}]},[O(OP,null,null)])]),u.value&&$()])},z=P(()=>{var H,U;return b3(b3(b3({},pH(e.column,{dataColumns:e.dataColumns,operations:e.operations})),(H=e.column)==null?void 0:H.cellStyle),(U=e.column)==null?void 0:U.headerCellStyle)}),V=P(()=>{var H,U;return[`${i}-th`,{[`${i}-col-sorted`]:!!c.value,[`${i}-th-resizing`]:r.value},...hH(i,e.column),(H=e.column)==null?void 0:H.cellClass,(U=e.column)==null?void 0:U.headerCellClass]}),W=H=>{var U,Q,q;(U=e.column)!=null&&U.dataIndex&&((q=s.onThMouseDown)==null||q.call(s,(Q=e.column)==null?void 0:Q.dataIndex,H))};return()=>{var H,U,Q,q;const ae=(H=e.column.colSpan)!=null?H:1,ne=(U=e.column.rowSpan)!=null?U:1;return O((q=(Q=t.th)==null?void 0:Q.call(t,{column:e.column})[0])!=null?q:"th",{class:V.value,style:z.value,colspan:ae>1?ae:void 0,rowspan:ne>1?ne:void 0},{default:()=>[j(),!u.value&&$(),e.resizable&&O("span",{class:`${i}-column-handle`,onMousedown:W},null)]})}}}),bbe=Object.defineProperty,HN=Object.getOwnPropertySymbols,kbe=Object.prototype.hasOwnProperty,Cbe=Object.prototype.propertyIsEnumerable,WN=(e,t,n)=>t in e?bbe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C3=(e,t)=>{for(var n in t||(t={}))kbe.call(t,n)&&WN(e,n,t[n]);if(HN)for(var n of HN(t))Cbe.call(t,n)&&WN(e,n,t[n]);return e};function Sbe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var Wc=se({name:"Td",props:{rowIndex:Number,record:{type:Object,default:()=>({})},column:{type:Object,default:()=>({})},type:{type:String,default:"normal"},operations:{type:Array,default:()=>[]},dataColumns:{type:Array,default:()=>[]},colSpan:{type:Number,default:1},rowSpan:{type:Number,default:1},isFixedExpand:{type:Boolean,default:!1},containerWidth:{type:Number},showExpandBtn:{type:Boolean,default:!1},indentSize:{type:Number,default:0},renderExpandBtn:{type:Function},summary:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=de("table"),i=P(()=>{var y;if(rn((y=e.column)==null?void 0:y.tooltip))return e.column.tooltip}),o=P(()=>{var y,d;return((y=e.column)==null?void 0:y.dataIndex)&&((d=g.sorter)==null?void 0:d.field)===e.column.dataIndex}),s=P(()=>{var y;return((y=e.column)==null?void 0:y.dataIndex)&&g.resizingColumn===e.column.dataIndex}),r=()=>{var y,d,v,m,f,p;return e.summary?Nt((y=e.column)==null?void 0:y.summaryCellClass)?e.column.summaryCellClass((d=e.record)==null?void 0:d.raw):(v=e.column)==null?void 0:v.summaryCellClass:Nt((m=e.column)==null?void 0:m.bodyCellClass)?e.column.bodyCellClass((f=e.record)==null?void 0:f.raw):(p=e.column)==null?void 0:p.bodyCellClass},a=P(()=>{var y;return[`${n}-td`,{[`${n}-col-sorted`]:o.value,[`${n}-td-resizing`]:s.value},...hH(n,e.column),(y=e.column)==null?void 0:y.cellClass,r()]}),u=()=>{var y,d,v,m,f,p;return e.summary?Nt((y=e.column)==null?void 0:y.summaryCellStyle)?e.column.summaryCellStyle((d=e.record)==null?void 0:d.raw):(v=e.column)==null?void 0:v.summaryCellStyle:Nt((m=e.column)==null?void 0:m.bodyCellStyle)?e.column.bodyCellStyle((f=e.record)==null?void 0:f.raw):(p=e.column)==null?void 0:p.bodyCellStyle},c=P(()=>{var y;const d=pH(e.column,{dataColumns:e.dataColumns,operations:e.operations}),v=u();return C3(C3(C3({},d),(y=e.column)==null?void 0:y.cellStyle),v)}),l=P(()=>{if(e.isFixedExpand&&e.containerWidth)return{width:`${e.containerWidth}px`}}),g=Dt(tm,{}),C=()=>{var y,d,v,m,f,p,h,b;if(t.default)return t.default();const w={record:(y=e.record)==null?void 0:y.raw,column:e.column,rowIndex:(d=e.rowIndex)!=null?d:-1};return t.cell?t.cell(w):(v=e.column.slots)!=null&&v.cell?e.column.slots.cell(w):e.column.render?e.column.render(w):e.column.slotName&&((m=g.slots)!=null&&m[e.column.slotName])?(p=(f=g.slots)[e.column.slotName])==null?void 0:p.call(f,w):String((b=Hd((h=e.record)==null?void 0:h.raw,e.column.dataIndex))!=null?b:"")},S=he(!1),_=y=>{var d,v;Nt(g.loadMore)&&!((d=e.record)!=null&&d.isLeaf)&&!((v=e.record)!=null&&v.children)&&(S.value=!0,new Promise(m=>{var f;(f=g.loadMore)==null||f.call(g,e.record.raw,m)}).then(m=>{var f;(f=g.addLazyLoadData)==null||f.call(g,m,e.record),S.value=!1})),y.stopPropagation()},A=()=>{var y,d,v,m,f,p;let h;return O("span",{class:[`${n}-cell`,`${n}-cell-align-${(d=(y=e.column)==null?void 0:y.align)!=null?d:"left"}`,{[`${n}-cell-fixed-expand`]:e.isFixedExpand,[`${n}-cell-expand-icon`]:e.showExpandBtn}],style:l.value},[e.indentSize>0&&O("span",{style:{paddingLeft:`${e.indentSize}px`}},null),e.showExpandBtn&&O("span",{class:`${n}-cell-inline-icon`,onClick:_},[S.value?O(Lr,null,null):(v=e.renderExpandBtn)==null?void 0:v.call(e,e.record,!1)]),(m=e.column)!=null&&m.ellipsis&&((f=e.column)!=null&&f.tooltip)?O(kH,{class:`${n}-td-content`,tooltipProps:i.value},Sbe(h=C())?h:{default:()=>[h]}):O("span",{class:[`${n}-td-content`,{[`${n}-text-ellipsis`]:(p=e.column)==null?void 0:p.ellipsis}]},[C()])])};return()=>{var y,d,v,m;return O((m=(v=t.td)==null?void 0:v.call(t,{record:(y=e.record)==null?void 0:y.raw,column:e.column,rowIndex:(d=e.rowIndex)!=null?d:-1})[0])!=null?m:"td",{class:a.value,style:c.value,rowspan:e.rowSpan>1?e.rowSpan:void 0,colspan:e.colSpan>1?e.colSpan:void 0},{default:()=>[A()]})}}}),wbe=se({name:"OperationTh",props:{operationColumn:{type:Object,required:!0},operations:{type:Array,required:!0},rowSpan:{type:Number,default:1},selectAll:{type:Boolean,default:!1}},setup(e){const t=de("table"),n=Dt(tm,{}),i=P(()=>{var a,u,c,l;let g=!1,C=!1;const _=((u=(a=n.currentSelectedRowKeys)==null?void 0:a.filter(y=>{var d,v;return(v=(d=n.currentAllEnabledRowKeys)==null?void 0:d.includes(y))!=null?v:!0}))!=null?u:[]).length,A=(l=(c=n.currentAllEnabledRowKeys)==null?void 0:c.length)!=null?l:0;return _>0&&(_>=A?g=!0:C=!0),{checked:g,indeterminate:C}}),o=()=>e.selectAll?O(Fs,{modelValue:i.value.checked,indeterminate:i.value.indeterminate,uninjectGroupContext:!0,onChange:a=>{var u;(u=n.onSelectAll)==null||u.call(n,a)}},{default:Nt(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title}):e.operationColumn.title?Nt(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title:null,s=P(()=>mH(e.operationColumn,e.operations)),r=P(()=>[`${t}-th`,`${t}-operation`,{[`${t}-checkbox`]:e.selectAll},...fH(t,e.operationColumn)]);return()=>O("th",{class:r.value,style:s.value,rowspan:e.rowSpan>1?e.rowSpan:void 0},[O("span",{class:`${t}-cell`},[o()])])}}),UN=se({name:"OperationTd",components:{Checkbox:Fs,Radio:jp,IconPlus:Qd,IconMinus:ew},props:{operationColumn:{type:Object,required:!0},operations:{type:Array,required:!0},record:{type:Object,required:!0},hasExpand:{type:Boolean,default:!1},selectedRowKeys:{type:Array},renderExpandBtn:{type:Function},colSpan:{type:Number,default:1},rowSpan:{type:Number,default:1},summary:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:t,slots:n}){const i=de("table"),o=Dt(tm,{}),s=P(()=>mH(e.operationColumn,e.operations)),r=P(()=>[`${i}-td`,`${i}-operation`,{[`${i}-checkbox`]:e.operationColumn.name==="selection-checkbox",[`${i}-radio`]:e.operationColumn.name==="selection-radio",[`${i}-expand`]:e.operationColumn.name==="expand",[`${i}-drag-handle`]:e.operationColumn.name==="drag-handle"},...fH(i,e.operationColumn)]),a=P(()=>PP(e.record)),u=P(()=>{var l;return Zye((l=o.currentSelectedRowKeys)!=null?l:[],a.value)}),c=()=>{var l,g,C,S,_,A;if(e.summary)return null;if(e.operationColumn.render)return e.operationColumn.render(e.record.raw);if(e.operationColumn.name==="selection-checkbox"){const y=e.record.key;return!o.checkStrictly&&!e.record.isLeaf?O(Fs,{modelValue:u.value.checked,indeterminate:u.value.indeterminate,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:d=>{var v;return(v=o.onSelectAllLeafs)==null?void 0:v.call(o,e.record,d)},onClick:d=>d.stopPropagation()},null):O(Fs,{modelValue:(g=(l=e.selectedRowKeys)==null?void 0:l.includes(y))!=null?g:!1,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:d=>{var v;return(v=o.onSelect)==null?void 0:v.call(o,d,e.record)},onClick:d=>d.stopPropagation()},null)}if(e.operationColumn.name==="selection-radio"){const y=e.record.key;return O(jp,{modelValue:(S=(C=e.selectedRowKeys)==null?void 0:C.includes(y))!=null?S:!1,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:d=>{var v;return(v=o.onSelect)==null?void 0:v.call(o,d,e.record)},onClick:d=>d.stopPropagation()},null)}return e.operationColumn.name==="expand"?e.hasExpand&&e.renderExpandBtn?e.renderExpandBtn(e.record):null:e.operationColumn.name==="drag-handle"?(A=(_=n["drag-handle-icon"])==null?void 0:_.call(n))!=null?A:O(sw,null,null):null};return()=>O("td",{class:r.value,style:s.value,rowspan:e.rowSpan>1?e.rowSpan:void 0,colspan:e.colSpan>1?e.colSpan:void 0},[O("span",{class:`${i}-cell`},[c()])])}});const _be=e=>{const t=P(()=>{if(e.value)return e.value.type==="handle"?"handle":"row"}),n=it({dragging:!1,sourceKey:"",sourcePath:[],targetPath:[],data:{}}),i=()=>{n.dragging=!1,n.sourceKey="",n.sourcePath=[],n.targetPath=[],n.data={}};return{dragType:t,dragState:n,handleDragStart:(l,g,C,S)=>{if(l.dataTransfer&&(l.dataTransfer.effectAllowed="move",l.target&&l.target.tagName==="TD")){const{parentElement:_}=l.target;_&&_.tagName==="TR"&&l.dataTransfer.setDragImage(_,0,0)}n.dragging=!0,n.sourceKey=g,n.sourcePath=C,n.targetPath=[...C],n.data=S},handleDragEnter:(l,g)=>{l.dataTransfer&&(l.dataTransfer.dropEffect="move"),n.targetPath.toString()!==g.toString()&&(n.targetPath=g),l.preventDefault()},handleDragLeave:l=>{},handleDragover:l=>{l.dataTransfer&&(l.dataTransfer.dropEffect="move"),l.preventDefault()},handleDragEnd:l=>{var g;((g=l.dataTransfer)==null?void 0:g.dropEffect)==="none"&&i()},handleDrop:l=>{i(),l.preventDefault()}}},Ibe=(e,t)=>{const n=he(""),i=it({}),o=(a,u)=>{u.preventDefault(),n.value=a,Nn(window,"mousemove",r),Nn(window,"mouseup",s),Nn(window,"contextmenu",s)},s=()=>{n.value="",Qn(window,"mousemove",r),Qn(window,"mouseup",s),Qn(window,"contextmenu",s)},r=a=>{const u=e.value[n.value];if(u){const{clientX:c}=a,{x:l}=u.getBoundingClientRect();let g=Math.ceil(c-l);g<40&&(g=40),i[n.value]=g,t("columnResize",n.value,g)}};return{resizingColumn:n,columnWidth:i,handleThMouseDown:o,handleThMouseUp:s}},xbe=({columns:e,onFilterChange:t})=>{const n=he(ZN(e.value));gt(e,r=>{const a=ZN(r);qp(a,n.value)||(n.value=a)});const i=P(()=>{var r,a;const u={};for(const c of e.value)if(c.dataIndex){const l=(a=(r=c.filterable)==null?void 0:r.filteredValue)!=null?a:n.value[c.dataIndex];l&&(u[c.dataIndex]=l)}return u});return{_filters:n,computedFilters:i,resetFilters:r=>{var a;const u=r?[].concat(r):[],c={};for(const l of e.value)if(l.dataIndex&&l.filterable&&(u.length===0||u.includes(l.dataIndex))){const g=(a=l.filterable.defaultFilteredValue)!=null?a:[];c[l.dataIndex]=g,t(l.dataIndex,g)}n.value=c},clearFilters:r=>{const a=r?[].concat(r):[],u={};for(const c of e.value)if(c.dataIndex&&c.filterable&&(a.length===0||a.includes(c.dataIndex))){const l=[];u[c.dataIndex]=l,t(c.dataIndex,l)}n.value=u}}},ZN=e=>{var t;const n={};for(const i of e)i.dataIndex&&((t=i.filterable)!=null&&t.defaultFilteredValue)&&(n[i.dataIndex]=i.filterable.defaultFilteredValue);return n},$be=({columns:e,onSorterChange:t})=>{const n=he(GN(e.value));gt(e,r=>{const a=GN(r);qp(a,n.value)||(n.value=a)});const i=P(()=>{var r;for(const a of e.value)if(a.dataIndex&&a.sortable){const u=Ai(a.sortable.sortOrder)?a.sortable.sortOrder:((r=n.value)==null?void 0:r.field)===a.dataIndex?n.value.direction:"";if(u)return{field:a.dataIndex,direction:u}}});return{_sorter:n,computedSorter:i,resetSorters:()=>{var r;let a;for(const u of e.value)u.dataIndex&&u.sortable&&(!a&&u.sortable.defaultSortOrder&&(a={field:u.dataIndex,direction:u.sortable.defaultSortOrder}),t(u.dataIndex,(r=u.sortable.defaultSortOrder)!=null?r:""));n.value=a},clearSorters:()=>{for(const r of e.value)r.dataIndex&&r.sortable&&t(r.dataIndex,"")}}},GN=e=>{var t;for(const n of e)if(n.dataIndex&&((t=n.sortable)!=null&&t.defaultSortOrder))return{field:n.dataIndex,direction:n.sortable.defaultSortOrder}},YN=({spanMethod:e,data:t,columns:n})=>{const i=(a,u)=>{a==null||a.forEach((c,l)=>{var g;c.hasSubtree&&((g=c.children)!=null&&g.length)&&i(c.children||[],u),n.value.forEach((C,S)=>{var _,A;const{rowspan:y=1,colspan:d=1}=(A=(_=e.value)==null?void 0:_.call(e,{record:c.raw,column:C,rowIndex:l,columnIndex:S}))!=null?A:{};(y>1||d>1)&&(u[`${l}-${S}-${c.key}`]=[y,d],Array.from({length:y}).forEach((v,m)=>{var f;if(l+m<a.length){const{key:p}=(f=a[l+m])!=null?f:{};Array.from({length:d}).forEach((h,b)=>{S+b<n.value.length&&`${l}-${S}-${c.key}`!=`${l+m}-${S+b}-${p}`&&(o.value[`${l+m}-${S+b}-${p}`]=[0,0])})}}))})})};let o=he({});const s=P(()=>{const a={};return o.value={},e.value&&i(t.value,a),a}),r=P(()=>{const a=[];for(const u of Object.keys(o.value))a.push(u);return a});return{tableSpan:s,removedCells:r}};var Abe=Object.defineProperty,Ebe=Object.defineProperties,Mbe=Object.getOwnPropertyDescriptors,XN=Object.getOwnPropertySymbols,Tbe=Object.prototype.hasOwnProperty,Pbe=Object.prototype.propertyIsEnumerable,KN=(e,t,n)=>t in e?Abe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zl=(e,t)=>{for(var n in t||(t={}))Tbe.call(t,n)&&KN(e,n,t[n]);if(XN)for(var n of XN(t))Pbe.call(t,n)&&KN(e,n,t[n]);return e},S3=(e,t)=>Ebe(e,Mbe(t));function Obe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}const JN={wrapper:!0,cell:!1,headerCell:!1,bodyCell:!1};var w3=se({name:"Table",props:{columns:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},bordered:{type:[Boolean,Object],default:!0},hoverable:{type:Boolean,default:!0},stripe:{type:Boolean,default:!1},size:{type:String,default:()=>{var e,t;return(t=(e=Dt(Or,void 0))==null?void 0:e.size)!=null?t:"large"}},tableLayoutFixed:{type:Boolean,default:!1},loading:{type:[Boolean,Object],default:!1},rowSelection:{type:Object},expandable:{type:Object},scroll:{type:Object},pagination:{type:[Boolean,Object],default:!0},pagePosition:{type:String,default:"br"},indentSize:{type:Number,default:16},rowKey:{type:String,default:"key"},showHeader:{type:Boolean,default:!0},virtualListProps:{type:Object},spanMethod:{type:Function},spanAll:{type:Boolean,default:!1},components:{type:Object},loadMore:{type:Function},filterIconAlignLeft:{type:Boolean,default:!1},hideExpandButtonOnEmpty:{type:Boolean,default:!1},rowClass:{type:[String,Array,Object,Function]},draggable:{type:Object},rowNumber:{type:[Boolean,Object]},columnResizable:{type:Boolean},summary:{type:[Boolean,Function]},summaryText:{type:String,default:"Summary"},summarySpanMethod:{type:Function},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array},expandedKeys:{type:Array},defaultExpandedKeys:{type:Array},defaultExpandAllRows:{type:Boolean,default:!1},stickyHeader:{type:[Boolean,Number],default:!1},scrollbar:{type:[Object,Boolean],default:!0},showEmptyTree:{type:Boolean,default:!1}},emits:{"update:selectedKeys":e=>!0,"update:expandedKeys":e=>!0,expand:(e,t)=>!0,expandedChange:e=>!0,select:(e,t,n)=>!0,selectAll:e=>!0,selectionChange:e=>!0,sorterChange:(e,t)=>!0,filterChange:(e,t)=>!0,pageChange:e=>!0,pageSizeChange:e=>!0,change:(e,t,n)=>!0,cellMouseEnter:(e,t,n)=>!0,cellMouseLeave:(e,t,n)=>!0,cellClick:(e,t,n)=>!0,rowClick:(e,t)=>!0,headerClick:(e,t)=>!0,columnResize:(e,t)=>!0,rowDblclick:(e,t)=>!0,cellDblclick:(e,t,n)=>!0,rowContextmenu:(e,t)=>!0,cellContextmenu:(e,t,n)=>!0},setup(e,{emit:t,slots:n}){const{columns:i,rowKey:o,rowSelection:s,expandable:r,loadMore:a,filterIconAlignLeft:u,selectedKeys:c,defaultSelectedKeys:l,expandedKeys:g,defaultExpandedKeys:C,defaultExpandAllRows:S,spanMethod:_,draggable:A,summarySpanMethod:y,scrollbar:d,showEmptyTree:v}=lt(e),m=de("table"),f=Dt(Or,void 0),p=P(()=>rn(e.bordered)?Zl(Zl({},JN),e.bordered):S3(Zl({},JN),{wrapper:e.bordered})),{children:h,components:b}=v1("TableColumn"),w=P(()=>{var Ye,ot;return(ot=(Ye=s.value)==null?void 0:Ye.checkStrictly)!=null?ot:!0}),{displayScrollbar:k,scrollbarProps:$}=WS(d),E=P(()=>{var Ye,ot,Ct,Ot;const Bt=!!((Ye=e.scroll)!=null&&Ye.x||(ot=e.scroll)!=null&&ot.minWidth),Jt=!!((Ct=e.scroll)!=null&&Ct.y||(Ot=e.scroll)!=null&&Ot.maxHeight);return{x:Bt,y:Jt}}),N=he(),j=he({}),{componentRef:z,elementRef:V}=Ff("containerRef"),{componentRef:W,elementRef:H}=Ff("containerRef"),{componentRef:U,elementRef:Q}=Ff("viewportRef"),{componentRef:q,elementRef:ae}=Ff("containerRef"),ne=P(()=>be.value?bf.value?Q.value:H.value:V.value),be=P(()=>E.value.y||e.stickyHeader||bf.value||E.value.x&&bi.value.length===0),te=it(new Map),Ie=he();gt([b,te],([Ye,ot])=>{if(Ye.length>0){const Ct=[];Ye.forEach(Ot=>{const Bt=ot.get(Ot);Bt&&Ct.push(Bt)}),Ie.value=Ct}else Ie.value=void 0});const $e=new Map,Me=he([]),ge=he([]),{resizingColumn:Se,columnWidth:fe,handleThMouseDown:pe}=Ibe(j,t);gt([i,Ie,fe],([Ye,ot])=>{var Ct;const Ot=Fye((Ct=ot??Ye)!=null?Ct:[],$e,fe);Me.value=Ot.dataColumns,ge.value=Ot.groupColumns},{immediate:!0,deep:!0});const je=P(()=>["tl","top","tr"].includes(e.pagePosition)),Y=he(!1),Z=he(!1),ee=he(!1);Xi(()=>{var Ye,ot,Ct;let Ot=!1,Bt=!1,Jt=!1;((Ye=e.rowSelection)!=null&&Ye.fixed||(ot=e.expandable)!=null&&ot.fixed||(Ct=e.draggable)!=null&&Ct.fixed)&&(Ot=!0);for(const ln of Me.value)ln.fixed==="left"?(Ot=!0,Jt=!0):ln.fixed==="right"&&(Bt=!0);Ot!==Y.value&&(Y.value=Ot),Bt!==Z.value&&(Z.value=Bt),Jt!==ee.value&&(ee.value=Jt)});const ce=P(()=>{for(const Ye of Me.value)if(Ye.ellipsis)return!0;return!1}),xe=Ye=>{const ot={type:Ye,page:kn.value,pageSize:Go.value,sorter:Ae.value,filters:De.value,dragTarget:Ye==="drag"?Gt.data:void 0};t("change",Dr.value,ot,Vi.value)},re=(Ye,ot)=>{ve.value=S3(Zl({},De.value),{[Ye]:ot}),t("filterChange",Ye,ot),xe("filter")},le=(Ye,ot)=>{me.value=ot?{field:Ye,direction:ot}:void 0,t("sorterChange",Ye,ot),xe("sorter")},{_filters:ve,computedFilters:De,resetFilters:Ee,clearFilters:we}=xbe({columns:Me,onFilterChange:re}),{_sorter:me,computedSorter:Ae,resetSorters:Fe,clearSorters:Ne}=$be({columns:Me,onSorterChange:le}),ze=new Set,Ue=P(()=>{const Ye=[];ze.clear();const ot=Ct=>{if(Kt(Ct)&&Ct.length>0)for(const Ot of Ct)Ye.push(Ot[o.value]),Ot.disabled&&ze.add(Ot[o.value]),Ot.children&&ot(Ot.children)};return ot(e.data),Ye}),et=P(()=>{const Ye=[],ot=Ct=>{for(const Ot of Ct)Ye.push(Ot.key),Ot.children&&ot(Ot.children)};return ot(bi.value),Ye}),Xe=P(()=>{const Ye=[],ot=Ct=>{for(const Ot of Ct)Ot.disabled||Ye.push(Ot.key),Ot.children&&ot(Ot.children)};return ot(bi.value),Ye}),{isRadio:yt,selectedRowKeys:Et,currentSelectedRowKeys:nt,handleSelect:St,handleSelectAllLeafs:bt,handleSelectAll:It,select:Mt,selectAll:Rt,clearSelected:mn}=Yye({selectedKeys:c,defaultSelectedKeys:l,rowSelection:s,currentAllRowKeys:et,currentAllEnabledRowKeys:Xe,emit:t}),{expandedRowKeys:xn,handleExpand:dt,expand:ht,expandAll:$t}=Xye({expandedKeys:g,defaultExpandedKeys:C,defaultExpandAllRows:S,expandable:r,allRowKeys:Ue,emit:t}),Pt=it({}),zt=(Ye,ot)=>{Ye&&(Pt[ot.key]=Ye)},kt=Ye=>{var ot,Ct;for(const Ot of Object.keys(De.value)){const Bt=De.value[Ot],Jt=$e.get(Ot);if(Jt&&((ot=Jt.filterable)!=null&&ot.filter)&&Bt.length>0){const ln=(Ct=Jt.filterable)==null?void 0:Ct.filter(Bt,Ye.raw);if(!ln)return ln}}return!0},{dragType:At,dragState:Gt,handleDragStart:Tt,handleDragEnter:st,handleDragLeave:wn,handleDragover:pn,handleDragEnd:bn,handleDrop:Ji}=_be(A),yi=P(()=>{var Ye;const ot=Ct=>{const Ot=[];for(const Bt of Ct){const Jt={raw:Bt,key:Bt[e.rowKey],disabled:Bt.disabled,expand:Bt.expand,isLeaf:Bt.isLeaf};Bt.children?(Jt.isLeaf=!1,Jt.children=ot(Bt.children)):e.loadMore&&!Bt.isLeaf?(Jt.isLeaf=!1,Pt[Jt.key]&&(Jt.children=ot(Pt[Jt.key]))):Jt.isLeaf=!0,Jt.hasSubtree=!!(Jt.children?!e.hideExpandButtonOnEmpty||Jt.children.length>0:e.loadMore&&!Jt.isLeaf),Ot.push(Jt)}return Ot};return ot((Ye=e.data)!=null?Ye:[])}),Zn=P(()=>{const Ye=ot=>ot.filter(Ct=>kt(Ct)?(Ct.children&&(Ct.children=Ye(Ct.children)),!0):!1);return Object.keys(De.value).length>0?Ye(yi.value):yi.value}),Vi=P(()=>{var Ye,ot,Ct;const Ot=vH(Zn.value);if(Ot.length>0){if((Ye=Ae.value)!=null&&Ye.field){const ln=$e.get(Ae.value.field);if(ln&&((ot=ln.sortable)==null?void 0:ot.sorter)!==!0){const{field:Dn,direction:Gn}=Ae.value;Ot.sort((Di,ct)=>{var ps;const Cf=Hd(Di.raw,Dn),zn=Hd(ct.raw,Dn);if((ps=ln.sortable)!=null&&ps.sorter&&Nt(ln.sortable.sorter))return ln.sortable.sorter(Di.raw,ct.raw,{dataIndex:Dn,direction:Gn});const vn=Cf>zn?1:-1;return Gn==="descend"?-vn:vn})}}const{sourcePath:Bt,targetPath:Jt}=Gt;if(Gt.dragging&&Jt.length&&Jt.toString()!==Bt.toString()&&Bt.length===Jt.length&&Bt.slice(0,-1).toString()===Jt.slice(0,-1).toString()){let ln=Ot;for(let Dn=0;Dn<Bt.length;Dn++){const Gn=Bt[Dn];if(Dn>=Bt.length-1){const ct=ln[Gn],ps=Jt[Dn];ps>Gn?(ln.splice(ps+1,0,ct),ln.splice(Gn,1)):(ln.splice(ps,0,ct),ln.splice(Gn+1,1))}else ln=(Ct=ln[Gn].children)!=null?Ct:[]}}}return Ot}),{page:kn,pageSize:Go,handlePageChange:zl,handlePageSizeChange:Rl}=Kye(e,t),Oa=P(()=>{var Ye,ot;return(ot=(Ye=s.value)==null?void 0:Ye.onlyCurrent)!=null?ot:!1});gt(kn,(Ye,ot)=>{Ye!==ot&&Oa.value&&mn()});const bi=P(()=>e.pagination&&Vi.value.length>Go.value?Vi.value.slice((kn.value-1)*Go.value,kn.value*Go.value):Vi.value),Dr=P(()=>gH(bi.value)),hs=()=>Me.value.reduce((Ye,ot,Ct)=>{if(ot.dataIndex)if(Ct===0)tC(Ye,ot.dataIndex,e.summaryText,{addPath:!0});else{let Ot=0,Bt=!1;bi.value.forEach(Jt=>{if(ot.dataIndex){const ln=Hd(Jt.raw,ot.dataIndex);Le(ln)?Ot+=ln:!jt(ln)&&!Xr(ln)&&(Bt=!0)}}),tC(Ye,ot.dataIndex,Bt?"":Ot,{addPath:!0})}return Ye},{}),uo=Ye=>Ye&&Ye.length>0?Ye.map(ot=>({raw:ot,key:ot[e.rowKey]})):[],hi=P(()=>e.summary?Nt(e.summary)?uo(e.summary({columns:Me.value,data:Dr.value})):uo([hs()]):[]),xt=he(0),Ht=he(!0),Be=he(!0),rt=()=>{let Ye=!0,ot=!0;const Ct=ne.value;Ct&&(Ye=xt.value===0,ot=Math.ceil(xt.value+Ct.offsetWidth)>=Ct.scrollWidth),Ye!==Ht.value&&(Ht.value=Ye),ot!==Be.value&&(Be.value=ot)},at=()=>Ht.value&&Be.value?`${m}-scroll-position-both`:Ht.value?`${m}-scroll-position-left`:Be.value?`${m}-scroll-position-right`:`${m}-scroll-position-middle`,mt=()=>{const Ye=[];return Y.value&&Ye.push(`${m}-has-fixed-col-left`),Z.value&&Ye.push(`${m}-has-fixed-col-right`),Ye},wt=Ye=>{Ye.target.scrollLeft!==xt.value&&(xt.value=Ye.target.scrollLeft),rt()},Qt=Ye=>{wt(Ye);const{scrollLeft:ot}=Ye.target;ae.value&&(ae.value.scrollLeft=ot),N.value&&(N.value.scrollLeft=ot)},Zt=(Ye,ot)=>{t("rowClick",Ye.raw,ot)},Ln=(Ye,ot)=>{t("rowDblclick",Ye.raw,ot)},$n=(Ye,ot)=>{t("rowContextmenu",Ye.raw,ot)},ci=(Ye,ot,Ct)=>{t("cellClick",Ye.raw,ot,Ct)},Hi=zv((Ye,ot,Ct)=>{t("cellMouseEnter",Ye.raw,ot,Ct)},30),_t=zv((Ye,ot,Ct)=>{t("cellMouseLeave",Ye.raw,ot,Ct)},30),Ci=(Ye,ot,Ct)=>{t("cellDblclick",Ye.raw,ot,Ct)},fo=(Ye,ot,Ct)=>{t("cellContextmenu",Ye.raw,ot,Ct)},fu=(Ye,ot)=>{t("headerClick",Ye,ot)},Si=P(()=>{var Ye,ot;const Ct=[],Ot=Y.value||Z.value;let Bt,Jt,ln;((Ye=e.draggable)==null?void 0:Ye.type)==="handle"&&(Bt={name:"drag-handle",title:e.draggable.title,width:e.draggable.width,fixed:e.draggable.fixed||Ot},Ct.push(Bt)),e.expandable&&(Jt={name:"expand",title:e.expandable.title,width:e.expandable.width,fixed:e.expandable.fixed||Ot},Ct.push(Jt)),e.rowSelection&&(ln={name:e.rowSelection.type==="radio"?"selection-radio":"selection-checkbox",title:e.rowSelection.title,width:e.rowSelection.width,fixed:e.rowSelection.fixed||Ot},Ct.push(ln)),!ee.value&&Ct.length>0&&Ct[Ct.length-1].fixed&&(Ct[Ct.length-1].isLastLeftFixed=!0);const Dn=(ot=e.components)==null?void 0:ot.operations;return Nt(Dn)?Dn({dragHandle:Bt,expand:Jt,selection:ln}):Ct}),yf=P(()=>{var Ye,ot,Ct,Ot;if(E.value.x){const Bt={width:Le((Ye=e.scroll)==null?void 0:Ye.x)?`${(ot=e.scroll)==null?void 0:ot.x}px`:(Ct=e.scroll)==null?void 0:Ct.x};return(Ot=e.scroll)!=null&&Ot.minWidth&&(Bt.minWidth=Le(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),Bt}}),Li=P(()=>{var Ye,ot,Ct,Ot;if(E.value.x&&bi.value.length>0){const Bt={width:Le((Ye=e.scroll)==null?void 0:Ye.x)?`${(ot=e.scroll)==null?void 0:ot.x}px`:(Ct=e.scroll)==null?void 0:Ct.x};return(Ot=e.scroll)!=null&&Ot.minWidth&&(Bt.minWidth=Le(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),Bt}});cn(tm,it({loadMore:a,addLazyLoadData:zt,slots:n,sorter:Ae,filters:De,filterIconAlignLeft:u,resizingColumn:Se,checkStrictly:w,currentAllEnabledRowKeys:Xe,currentSelectedRowKeys:nt,addColumn:(Ye,ot)=>{te.set(Ye,ot)},removeColumn:Ye=>{te.delete(Ye)},onSelectAll:It,onSelect:St,onSelectAllLeafs:bt,onSorterChange:le,onFilterChange:re,onThMouseDown:pe}));const A1=P(()=>[m,`${m}-size-${e.size}`,{[`${m}-border`]:p.value.wrapper,[`${m}-border-cell`]:p.value.cell,[`${m}-border-header-cell`]:!p.value.cell&&p.value.headerCell,[`${m}-border-body-cell`]:!p.value.cell&&p.value.bodyCell,[`${m}-stripe`]:e.stripe,[`${m}-hover`]:e.hoverable,[`${m}-dragging`]:Gt.dragging,[`${m}-type-selection`]:!!e.rowSelection,[`${m}-empty`]:e.data&&bi.value.length===0,[`${m}-layout-fixed`]:e.tableLayoutFixed||E.value.x||be.value||ce.value}]),sm=P(()=>[`${m}-pagination`,{[`${m}-pagination-left`]:e.pagePosition==="tl"||e.pagePosition==="bl",[`${m}-pagination-center`]:e.pagePosition==="top"||e.pagePosition==="bottom",[`${m}-pagination-right`]:e.pagePosition==="tr"||e.pagePosition==="br",[`${m}-pagination-top`]:je.value}]),hu=P(()=>{const Ye=mt();return E.value.x&&Ye.push(at()),be.value&&Ye.push(`${m}-scroll-y`),Ye}),bf=P(()=>!!e.virtualListProps),Bl=he({}),am=()=>{const Ye={};for(const ot of Object.keys(j.value))Ye[ot]=j.value[ot].offsetWidth;Bl.value=Ye},La=he(!1),lm=()=>H.value?H.value.offsetWidth>H.value.clientWidth:!1,cm=()=>{const Ye=lm();La.value!==Ye&&(La.value=Ye),rt(),am()};Yt(()=>{La.value=lm(),am()});const jw=P(()=>rn(e.loading)?e.loading:{loading:e.loading}),E1=()=>O(_l,{empty:!0},{default:()=>[O(Wc,{colSpan:Me.value.length+Si.value.length},{default:()=>{var Ye,ot,Ct,Ot,Bt;return[(Bt=(Ot=(Ye=n.empty)==null?void 0:Ye.call(n))!=null?Ot:(Ct=f==null?void 0:(ot=f.slots).empty)==null?void 0:Ct.call(ot,{component:"table"}))!=null?Bt:O(Nl,null,null)]}})]}),zw=Ye=>{var ot;if(Ye.expand)return Nt(Ye.expand)?Ye.expand():Ye.expand;if(n["expand-row"])return n["expand-row"]({record:Ye.raw});if((ot=e.expandable)!=null&&ot.expandedRowRender)return e.expandable.expandedRowRender(Ye.raw)},M1=P(()=>[].concat(Si.value,Me.value)),T1=P(()=>e.spanAll?M1.value:Me.value),{tableSpan:P1,removedCells:O1}=YN({spanMethod:_,data:bi,columns:T1}),{tableSpan:um,removedCells:L1}=YN({spanMethod:y,data:hi,columns:M1}),Da=Ye=>{if(!(!bf.value||!Ye||!Bl.value[Ye]))return{width:`${Bl.value[Ye]}px`}},D1=(Ye,ot)=>O(_l,{key:`table-summary-${ot}`,class:[`${m}-tr-summary`,Nt(e.rowClass)?e.rowClass(Ye.raw,ot):e.rowClass],onClick:Ct=>Zt(Ye,Ct)},{default:()=>[Si.value.map((Ct,Ot)=>{var Bt;const Jt=`${ot}-${Ot}-${Ye.key}`,[ln,Dn]=(Bt=um.value[Jt])!=null?Bt:[1,1];if(L1.value.includes(Jt))return null;const Gn=Da(Ct.name);return O(UN,{style:Gn,operationColumn:Ct,operations:Si.value,record:Ye,rowSpan:ln,colSpan:Dn,summary:!0},null)}),Me.value.map((Ct,Ot)=>{var Bt;const Jt=`${ot}-${Si.value.length+Ot}-${Ye.key}`,[ln,Dn]=(Bt=um.value[Jt])!=null?Bt:[1,1];if(L1.value.includes(Jt))return null;const Gn=Da(Ct.dataIndex);return O(Wc,{key:`td-${Jt}`,style:Gn,rowIndex:ot,record:Ye,column:Ct,operations:Si.value,dataColumns:Me.value,rowSpan:ln,colSpan:Dn,summary:!0,onClick:Di=>ci(Ye,Ct,Di),onDblclick:Di=>Ci(Ye,Ct,Di),onMouseenter:Di=>Hi(Ye,Ct,Di),onMouseleave:Di=>_t(Ye,Ct,Di),onContextmenu:Di=>fo(Ye,Ct,Di)},{td:n.td,cell:n["summary-cell"]})})],tr:n.tr}),dm=()=>hi.value&&hi.value.length>0?O("tfoot",null,[hi.value.map((Ye,ot)=>D1(Ye,ot))]):null,N1=(Ye,ot=!0)=>{var Ct,Ot,Bt,Jt,ln;const Dn=Ye.key,Gn=xn.value.includes(Dn);return O("button",{type:"button",class:`${m}-expand-btn`,onClick:Di=>{dt(Dn,Ye.raw),ot&&Di.stopPropagation()}},[(ln=(Jt=(Ct=n["expand-icon"])==null?void 0:Ct.call(n,{expanded:Gn,record:Ye.raw}))!=null?Jt:(Bt=(Ot=e.expandable)==null?void 0:Ot.icon)==null?void 0:Bt.call(Ot,Gn,Ye.raw))!=null?ln:O(Gn?ew:Qd,null,null)])},Rw=(Ye,{indentSize:ot,indexPath:Ct,allowDrag:Ot,expandContent:Bt})=>{var Jt,ln;if(Ye.hasSubtree)return((Jt=Ye.children)==null?void 0:Jt.length)===0&&v.value?E1():(ln=Ye.children)==null?void 0:ln.map((Dn,Gn)=>kf(Dn,Gn,{indentSize:ot,indexPath:Ct,allowDrag:Ot}));if(Bt){const Dn=ne.value;return O(_l,{key:`${Ye.key}-expand`,expand:!0},{default:()=>[O(Wc,{isFixedExpand:Y.value||Z.value,containerWidth:Dn==null?void 0:Dn.clientWidth,colSpan:Me.value.length+Si.value.length},Obe(Bt)?Bt:{default:()=>[Bt]})]})}return null},kf=(Ye,ot,{indentSize:Ct=0,indexPath:Ot,allowDrag:Bt=!0}={})=>{var Jt;const ln=Ye.key,Dn=(Ot??[]).concat(ot),Gn=zw(Ye),Di=xn.value.includes(ln),ct=Gt.sourceKey===Ye.key,ps=At.value?{draggable:Bt,onDragstart:zn=>{Bt&&Tt(zn,Ye.key,Dn,Ye.raw)},onDragend:zn=>{Bt&&bn(zn)}}:{},Cf=At.value?{onDragenter:zn=>{Bt&&st(zn,Dn)},onDragover:zn=>{Bt&&pn(zn)},onDrop:zn=>{Bt&&(xe("drag"),Ji(zn))}}:{};return O(ft,null,[O(_l,Qe({key:ln,class:[{[`${m}-tr-draggable`]:At.value==="row",[`${m}-tr-drag`]:ct},Nt(e.rowClass)?e.rowClass(Ye.raw,ot):e.rowClass],rowIndex:ot,record:Ye,checked:e.rowSelection&&((Jt=Et.value)==null?void 0:Jt.includes(ln)),onClick:zn=>Zt(Ye,zn),onDblclick:zn=>Ln(Ye,zn),onContextmenu:zn=>$n(Ye,zn)},At.value==="row"?ps:{},Cf),{default:()=>[Si.value.map((zn,vn)=>{var pu;const Js=`${ot}-${vn}-${Ye.key}`,[_n,Mn]=e.spanAll?(pu=P1.value[Js])!=null?pu:[1,1]:[1,1];if(e.spanAll&&O1.value.includes(Js))return null;const Sf=Da(zn.name);return O(UN,Qe({key:`operation-td-${vn}`,style:Sf,operationColumn:zn,operations:Si.value,record:Ye,hasExpand:!!Gn,selectedRowKeys:nt.value,rowSpan:_n,colSpan:Mn,renderExpandBtn:N1},At.value==="handle"?ps:{}),{"drag-handle-icon":n["drag-handle-icon"]})}),Me.value.map((zn,vn)=>{var pu;const Js=`${ot}-${e.spanAll?Si.value.length+vn:vn}-${Ye.key}`,[_n,Mn]=(pu=P1.value[Js])!=null?pu:[1,1];if(O1.value.includes(Js))return null;const Sf=vn===0?{showExpandBtn:Ye.hasSubtree,indentSize:Ye.hasSubtree?Ct-20:Ct}:{},Xt=Da(zn.dataIndex);return O(Wc,Qe({key:`td-${vn}`,style:Xt,rowIndex:ot,record:Ye,column:zn,operations:Si.value,dataColumns:Me.value,rowSpan:_n,renderExpandBtn:N1,colSpan:Mn},Sf,{onClick:ms=>ci(Ye,zn,ms),onDblclick:ms=>Ci(Ye,zn,ms),onMouseenter:ms=>Hi(Ye,zn,ms),onMouseleave:ms=>_t(Ye,zn,ms),onContextmenu:ms=>fo(Ye,zn,ms)}),{td:n.td})})],tr:n.tr}),Di&&Rw(Ye,{indentSize:Ct+e.indentSize,indexPath:Dn,allowDrag:Bt&&!ct,expandContent:Gn})])},j1=()=>{const Ye=bi.value.some(ot=>!!ot.hasSubtree);return O(yv,null,{default:()=>[bi.value.length>0?bi.value.map((ot,Ct)=>kf(ot,Ct,{indentSize:Ye?20:0})):E1()],tbody:n.tbody})},z1=()=>O(gv,null,{default:()=>[ge.value.map((Ye,ot)=>O(_l,{key:`header-row-${ot}`},{default:()=>[ot===0&&Si.value.map((Ct,Ot)=>{var Bt;return O(wbe,{key:`operation-th-${Ot}`,ref:Jt=>{Jt!=null&&Jt.$el&&Ct.name&&(j.value[Ct.name]=Jt.$el)},operationColumn:Ct,operations:Si.value,selectAll:!!(Ct.name==="selection-checkbox"&&((Bt=e.rowSelection)!=null&&Bt.showCheckedAll)),rowSpan:ge.value.length},null)}),Ye.map((Ct,Ot)=>{const Bt=e.columnResizable&&!!Ct.dataIndex&&Ot<Ye.length-1;return O(bv,{key:`th-${Ot}`,ref:Jt=>{Jt!=null&&Jt.$el&&Ct.dataIndex&&(j.value[Ct.dataIndex]=Jt.$el)},column:Ct,operations:Si.value,dataColumns:Me.value,resizable:Bt,onClick:Jt=>fu(Ct,Jt)},{th:n.th})})]}))],thead:n.thead}),ri=()=>{var Ye,ot;if(be.value){const Ct=Le(e.stickyHeader)?`${e.stickyHeader}px`:void 0,Ot=[(Ye=$.value)==null?void 0:Ye.outerClass];e.stickyHeader&&Ot.push(`${m}-header-sticky`);const Bt=Zl({top:Ct},(ot=$.value)==null?void 0:ot.outerStyle),Jt=k.value?Gs:"div";return O(ft,null,[e.showHeader&&O(Jt,Qe({ref:q,class:[`${m}-header`,{[`${m}-header-sticky`]:e.stickyHeader&&!k.value}],style:{overflowY:La.value?"scroll":void 0,top:k.value?void 0:Ct}},d.value?S3(Zl({hide:bi.value.length!==0,disableVertical:!0},$.value),{outerClass:Ot,outerStyle:Bt}):void 0),{default:()=>[O("table",{class:`${m}-element`,style:yf.value,cellpadding:0,cellspacing:0},[O(Ey,{dataColumns:Me.value,operations:Si.value,columnWidth:fe},null),z1()])]}),O(Us,{onResize:cm},{default:()=>{var ln,Dn;return[bf.value&&bi.value.length?O(Qp,Qe({ref:Gn=>{Gn!=null&&Gn.$el&&(H.value=Gn.$el)},class:`${m}-body`,data:bi.value,itemKey:"_key",component:{list:"table",content:"tbody"},listAttrs:{class:`${m}-element`,style:Li.value},paddingPosition:"list",height:"auto"},e.virtualListProps,{onScroll:Qt}),{item:({item:Gn,index:Di})=>kf(Gn,Di)}):O(Jt,Qe({ref:W,class:`${m}-body`,style:{maxHeight:Le((ln=e.scroll)==null?void 0:ln.y)?`${(Dn=e.scroll)==null?void 0:Dn.y}px`:"100%"}},d.value?Zl({outerStyle:{display:"flex",minHeight:"0"}},$.value):void 0,{onScroll:Qt}),{default:()=>[O("table",{class:`${m}-element`,style:Li.value,cellpadding:0,cellspacing:0},[bi.value.length!==0&&O(Ey,{dataColumns:Me.value,operations:Si.value,columnWidth:fe},null),j1()])]})]}}),hi.value&&hi.value.length>0&&O("div",{ref:N,class:`${m}-tfoot`,style:{overflowY:La.value?"scroll":"hidden"}},[O("table",{class:`${m}-element`,style:Li.value,cellpadding:0,cellspacing:0},[O(Ey,{dataColumns:Me.value,operations:Si.value,columnWidth:fe},null),dm()])])])}return O(Us,{onResize:()=>rt()},{default:()=>[O("table",{class:`${m}-element`,cellpadding:0,cellspacing:0,style:Li.value},[O(Ey,{dataColumns:Me.value,operations:Si.value,columnWidth:fe},null),e.showHeader&&z1(),j1(),hi.value&&hi.value.length>0&&dm()])]})},fm=Ye=>{var ot;const Ct=(ot=e.scroll)!=null&&ot.maxHeight?{maxHeight:e.scroll.maxHeight}:void 0,Ot=k.value?Gs:"div";return O(ft,null,[O("div",{class:[`${m}-container`,hu.value]},[O(Ot,Qe({ref:z,class:[`${m}-content`,{[`${m}-content-scroll-x`]:!be.value}],style:Ct},d.value?Zl({outerStyle:{height:"100%"}},$.value):void 0,{onScroll:wt}),{default:()=>[Ye?O("table",{class:`${m}-element`,cellpadding:0,cellspacing:0},[Ye()]):ri()]})]),n.footer&&O("div",{class:`${m}-footer`},[n.footer()])])},R1=()=>{var Ye,ot;const Ct=rn(e.pagination)?kr(e.pagination,["current","pageSize","defaultCurrent","defaultPageSize"]):{};return O("div",{class:sm.value},[(Ye=n["pagination-left"])==null?void 0:Ye.call(n),O(xP,Qe({total:Zn.value.length,current:kn.value,pageSize:Go.value,onChange:Ot=>{zl(Ot),xe("pagination")},onPageSizeChange:Ot=>{Rl(Ot),xe("pagination")}},Ct),null),(ot=n["pagination-right"])==null?void 0:ot.call(n)])},Bw=P(()=>{var Ye,ot;if(Ai((Ye=e.scroll)==null?void 0:Ye.y))return{height:(ot=e.scroll)==null?void 0:ot.y}});return{render:()=>{var Ye;return n.default?O("div",{class:A1.value},[fm(n.default)]):(h.value=(Ye=n.columns)==null?void 0:Ye.call(n),O("div",{class:A1.value,style:Bw.value},[h.value,O(Zs,jw.value,{default:()=>[e.pagination!==!1&&(bi.value.length>0||Vi.value.length>0)&&je.value&&R1(),fm(),e.pagination!==!1&&(bi.value.length>0||Vi.value.length>0)&&!je.value&&R1()]})]))},selfExpand:ht,selfExpandAll:$t,selfSelect:Mt,selfSelectAll:Rt,selfResetFilters:Ee,selfClearFilters:we,selfResetSorters:Fe,selfClearSorters:Ne}},methods:{selectAll(e){return this.selfSelectAll(e)},select(e,t){return this.selfSelect(e,t)},expandAll(e){return this.selfExpandAll(e)},expand(e,t){return this.selfExpand(e,t)},resetFilters(e){return this.selfResetFilters(e)},clearFilters(e){return this.selfClearFilters(e)},resetSorters(){return this.selfResetSorters()},clearSorters(){return this.selfClearSorters()}},render(){return this.render()}});const ys=(e,t)=>{const n=lo(e,t),i=he(n.value);return gt(n,(o,s)=>{qp(o,s)||(i.value=o)}),i};var jb=se({name:"TableColumn",props:{dataIndex:String,title:String,width:Number,minWidth:Number,align:{type:String},fixed:{type:String},ellipsis:{type:Boolean,default:!1},sortable:{type:Object,default:void 0},filterable:{type:Object,default:void 0},cellClass:{type:[String,Array,Object]},headerCellClass:{type:[String,Array,Object]},bodyCellClass:{type:[String,Array,Object,Function]},summaryCellClass:{type:[String,Array,Object,Function]},cellStyle:{type:Object},headerCellStyle:{type:Object},bodyCellStyle:{type:[Object,Function]},summaryCellStyle:{type:[Object,Function]},index:{type:Number},tooltip:{type:[Boolean,Object],default:!1}},setup(e,{slots:t}){var n;const{dataIndex:i,title:o,width:s,align:r,fixed:a,ellipsis:u,index:c,minWidth:l}=lt(e),g=ys(e,"sortable"),C=ys(e,"filterable"),S=ys(e,"cellClass"),_=ys(e,"headerCellClass"),A=ys(e,"bodyCellClass"),y=ys(e,"summaryCellClass"),d=ys(e,"cellStyle"),v=ys(e,"headerCellStyle"),m=ys(e,"bodyCellStyle"),f=ys(e,"summaryCellStyle"),p=ys(e,"tooltip"),h=Vn(),b=Dt(tm,{}),w=Dt(RN,void 0),{children:k,components:$}=v1("TableColumn"),E=it(new Map);cn(RN,{addChild:(W,H)=>{E.set(W,H)},removeChild:W=>{E.delete(W)}});const z=he();gt([$,E],([W,H])=>{if(W.length>0){const U=[];W.forEach(Q=>{const q=H.get(Q);q&&U.push(q)}),z.value=U}else z.value=void 0});const V=it({dataIndex:i,title:o,width:s,minWidth:l,align:r,fixed:a,ellipsis:u,sortable:g,filterable:C,cellClass:S,headerCellClass:_,bodyCellClass:A,summaryCellClass:y,cellStyle:d,headerCellStyle:v,bodyCellStyle:m,summaryCellStyle:f,index:c,tooltip:p,children:z,slots:t});return h&&(w?w.addChild(h.uid,V):(n=b.addColumn)==null||n.call(b,h.uid,V)),ei(()=>{var W;h&&(w?w.removeChild(h.uid):(W=b.removeColumn)==null||W.call(b,h.uid))}),()=>{var W;return k.value=(W=t.default)==null?void 0:W.call(t),k.value}}});const Lbe=Object.assign(w3,{Thead:gv,Tbody:yv,Tr:_l,Th:bv,Td:Wc,Column:jb,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+w3.name,w3),e.component(n+gv.name,gv),e.component(n+yv.name,yv),e.component(n+_l.name,_l),e.component(n+bv.name,bv),e.component(n+Wc.name,Wc),e.component(n+jb.name,jb)}}),Dbe=({direction:e,type:t,offset:n})=>e==="vertical"?{transform:`translateY(${-n}px)`}:{transform:`translateX(${-n}px)`},Nbe=(e,t)=>{const{scrollTop:n,scrollLeft:i}=e;t==="horizontal"&&i&&e.scrollTo({left:-1*i}),t==="vertical"&&n&&e.scrollTo({top:-1*n})},LP=Symbol("ArcoTabs"),jbe=se({name:"TabsTab",components:{IconHover:ai,IconClose:Cr},props:{tab:{type:Object,required:!0},active:Boolean,editable:Boolean},emits:["click","delete"],setup(e,{emit:t}){const n=de("tabs-tab"),i=Dt(LP,{}),o=c=>{e.tab.disabled||t("click",e.tab.key,c)},s=c=>{c.key==="Enter"&&o(c)},r=P(()=>Object.assign(i.trigger==="click"?{onClick:o}:{onMouseover:o},{onKeydown:s})),a=c=>{e.tab.disabled||t("delete",e.tab.key,c)},u=P(()=>[n,{[`${n}-active`]:e.active,[`${n}-closable`]:e.editable&&e.tab.closable,[`${n}-disabled`]:e.tab.disabled}]);return{prefixCls:n,cls:u,eventHandlers:r,handleDelete:a}}});function zbe(e,t,n,i,o,s){const r=Pe("icon-close"),a=Pe("icon-hover");return R(),X("div",Qe({tabindex:"0",class:e.cls},e.eventHandlers),[B("span",{class:G(`${e.prefixCls}-title`)},[He(e.$slots,"default")],2),e.editable&&e.tab.closable?(R(),We(a,{key:0,class:G(`${e.prefixCls}-close-btn`),onClick:oo(e.handleDelete,["stop"])},{default:Ve(()=>[O(r)]),_:1},8,["class","onClick"])):Re("v-if",!0)],16)}var Rbe=ye(jbe,[["render",zbe]]);function Bbe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var qN=se({name:"TabsButton",props:{type:{type:String,default:"next"},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},onClick:{type:Function}},emits:["click"],setup(e,{emit:t}){const n=de("tabs-nav-button"),i=r=>{e.disabled||t("click",e.type,r)},o=()=>e.direction==="horizontal"?e.type==="next"?O(fs,null,null):O(Pa,null,null):e.type==="next"?O(ff,null,null):O(JS,null,null),s=P(()=>[n,{[`${n}-disabled`]:e.disabled,[`${n}-left`]:e.direction==="horizontal"&&e.type==="previous",[`${n}-right`]:e.direction==="horizontal"&&e.type==="next",[`${n}-up`]:e.direction==="vertical"&&e.type==="previous",[`${n}-down`]:e.direction==="vertical"&&e.type==="next"}]);return()=>{let r;return O("div",{class:s.value,onClick:i},[O(ai,{disabled:e.disabled},Bbe(r=o())?r:{default:()=>[r]})])}}});const Fbe=se({name:"TabsNavInk",props:{activeTabRef:{type:Object},direction:{type:String},disabled:Boolean,animation:Boolean},setup(e){const{activeTabRef:t}=lt(e),n=de("tabs-nav-ink"),i=he(0),o=he(0),s=P(()=>e.direction==="vertical"?{top:`${i.value}px`,height:`${o.value}px`}:{left:`${i.value}px`,width:`${o.value}px`}),r=()=>{if(t.value){const u=e.direction==="vertical"?t.value.offsetTop:t.value.offsetLeft,c=e.direction==="vertical"?t.value.offsetHeight:t.value.offsetWidth;(u!==i.value||c!==o.value)&&(i.value=u,o.value=c)}};Yt(()=>{fn(()=>r())}),Bi(()=>{r()});const a=P(()=>[n,{[`${n}-animation`]:e.animation,[`${n}-disabled`]:e.disabled}]);return{prefixCls:n,cls:a,style:s}}});function Vbe(e,t,n,i,o,s){return R(),X("div",{class:G(e.cls),style:Te(e.style)},null,6)}var Hbe=ye(Fbe,[["render",Vbe]]),Wbe=se({name:"TabsNav",props:{tabs:{type:Array,required:!0},direction:{type:String,required:!0},type:{type:String,required:!0},activeKey:{type:[String,Number]},activeIndex:{type:Number,required:!0},position:{type:String,required:!0},size:{type:String,required:!0},showAddButton:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},animation:{type:Boolean,required:!0},headerPadding:{type:Boolean,default:!0},scrollPosition:{type:String,default:"auto"}},emits:["click","add","delete"],setup(e,{emit:t,slots:n}){const{tabs:i,activeKey:o,activeIndex:s,direction:r,scrollPosition:a}=lt(e),u=de("tabs-nav"),c=he(),l=he(),g=he({}),C=P(()=>{if(!jt(o.value))return g.value[o.value]}),S=he(),_=P(()=>e.editable&&["line","card","card-gutter"].includes(e.type)),A=he(!1),y=he(0),d=he(0),v=he(0),m=()=>{var Q,q,ae;return(ae=r.value==="vertical"?(Q=c.value)==null?void 0:Q.offsetHeight:(q=c.value)==null?void 0:q.offsetWidth)!=null?ae:0},f=()=>!l.value||!c.value?0:r.value==="vertical"?l.value.offsetHeight-c.value.offsetHeight:l.value.offsetWidth-c.value.offsetWidth,p=()=>{A.value=h(),A.value?(y.value=m(),d.value=f(),v.value>d.value&&(v.value=d.value)):v.value=0},h=()=>c.value&&l.value?e.direction==="vertical"?l.value.offsetHeight>c.value.offsetHeight:l.value.offsetWidth>c.value.offsetWidth:!1,b=Q=>{(!c.value||!l.value||Q<0)&&(Q=0),v.value=Math.min(Q,d.value)},w=()=>{if(!C.value||!c.value||!A.value)return;Nbe(c.value,r.value);const Q=r.value==="horizontal",q=Q?"offsetLeft":"offsetTop",ae=Q?"offsetWidth":"offsetHeight",ne=C.value[q],be=C.value[ae],te=c.value[ae],Ie=window.getComputedStyle(C.value),$e=Q?a.value==="end"?"marginRight":"marginLeft":a.value==="end"?"marginBottom":"marginTop",Me=parseFloat(Ie[$e])||0;a.value==="auto"?ne<v.value?b(ne-Me):ne+be>v.value+te&&b(ne+be-te+Me):a.value==="center"?b(ne+(be-te+Me)/2):a.value==="start"?b(ne-Me):a.value==="end"?b(ne+be-te+Me):Le(a.value)&&b(ne-a.value)},k=Q=>{if(!A.value)return;Q.preventDefault();const{deltaX:q,deltaY:ae}=Q;Math.abs(q)>Math.abs(ae)?b(v.value+q):b(v.value+ae)},$=(Q,q)=>{t("click",Q,q)},E=(Q,q)=>{t("delete",Q,q)},N=Q=>{const q=Q==="previous"?v.value-y.value:v.value+y.value;b(q)},j=()=>{p(),S.value&&S.value.$forceUpdate()};gt(i,()=>{fn(()=>{p()})}),gt([s,a],()=>{setTimeout(()=>{w()},0)}),Yt(()=>{p()});const z=()=>!_.value||!e.showAddButton?null:O("div",{class:`${u}-add-btn`,onClick:Q=>t("add",Q)},[O(ai,null,{default:()=>[O(Qd,null,null)]})]),V=P(()=>[u,`${u}-${e.direction}`,`${u}-${e.position}`,`${u}-size-${e.size}`,`${u}-type-${e.type}`]),W=P(()=>[`${u}-tab-list`,{[`${u}-tab-list-no-padding`]:!e.headerPadding&&["line","text"].includes(e.type)&&e.direction==="horizontal"}]),H=P(()=>Dbe({direction:e.direction,type:e.type,offset:v.value})),U=P(()=>[`${u}-tab`,{[`${u}-tab-scroll`]:A.value}]);return()=>{var Q;return O("div",{class:V.value},[A.value&&O(qN,{type:"previous",direction:e.direction,disabled:v.value<=0,onClick:N},null),O(Us,{onResize:()=>p()},{default:()=>[O("div",{class:U.value,ref:c,onWheel:k},[O(Us,{onResize:j},{default:()=>[O("div",{ref:l,class:W.value,style:H.value},[e.tabs.map((q,ae)=>O(Rbe,{key:q.key,ref:ne=>{ne!=null&&ne.$el&&(g.value[q.key]=ne.$el)},active:q.key===o.value,tab:q,editable:e.editable,onClick:$,onDelete:E},{default:()=>{var ne,be,te;return[(te=(be=(ne=q.slots).title)==null?void 0:be.call(ne))!=null?te:q.title]}})),e.type==="line"&&C.value&&O(Hbe,{ref:S,activeTabRef:C.value,direction:e.direction,disabled:!1,animation:e.animation},null)])]}),!A.value&&z()])]}),A.value&&O(qN,{type:"next",direction:e.direction,disabled:v.value>=d.value,onClick:N},null),O("div",{class:`${u}-extra`},[A.value&&z(),(Q=n.extra)==null?void 0:Q.call(n)])])}}}),_3=se({name:"Tabs",props:{activeKey:{type:[String,Number],default:void 0},defaultActiveKey:{type:[String,Number],default:void 0},position:{type:String,default:"top"},size:{type:String},type:{type:String,default:"line"},direction:{type:String,default:"horizontal"},editable:{type:Boolean,default:!1},showAddButton:{type:Boolean,default:!1},destroyOnHide:{type:Boolean,default:!1},lazyLoad:{type:Boolean,default:!1},justify:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},headerPadding:{type:Boolean,default:!0},autoSwitch:{type:Boolean,default:!1},hideContent:{type:Boolean,default:!1},trigger:{type:String,default:"click"},scrollPosition:{type:[String,Number],default:"auto"}},emits:{"update:activeKey":e=>!0,change:e=>!0,tabClick:(e,t)=>!0,add:e=>!0,delete:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{size:i,lazyLoad:o,destroyOnHide:s,trigger:r}=lt(e),a=de("tabs"),{mergedSize:u}=Sr(i),c=P(()=>e.direction==="vertical"?"left":e.position),l=P(()=>["left","right"].includes(c.value)?"vertical":"horizontal"),{children:g,components:C}=v1("TabPane"),S=it(new Map),_=P(()=>{const E=[];return C.value.forEach(N=>{const j=S.get(N);j&&E.push(j)}),E}),A=P(()=>_.value.map(E=>E.key)),y=(E,N)=>{S.set(E,N)},d=E=>{S.delete(E)},v=he(e.defaultActiveKey),m=P(()=>{var E;const N=(E=e.activeKey)!=null?E:v.value;return jt(N)?A.value[0]:N}),f=P(()=>{const E=A.value.indexOf(m.value);return E===-1?0:E});cn(LP,it({lazyLoad:o,destroyOnHide:s,activeKey:m,addItem:y,removeItem:d,trigger:r}));const p=E=>{E!==m.value&&(v.value=E,t("update:activeKey",E),t("change",E))},h=(E,N)=>{p(E),t("tabClick",E,N)},b=E=>{t("add",E),e.autoSwitch&&fn(()=>{const N=A.value[A.value.length-1];p(N)})},w=(E,N)=>{t("delete",E,N)},k=()=>O("div",{class:[`${a}-content`,{[`${a}-content-hide`]:e.hideContent}]},[O("div",{class:[`${a}-content-list`,{[`${a}-content-animation`]:e.animation}],style:{marginLeft:`-${f.value*100}%`}},[g.value])]),$=P(()=>[a,`${a}-${l.value}`,`${a}-${c.value}`,`${a}-type-${e.type}`,`${a}-size-${u.value}`,{[`${a}-justify`]:e.justify}]);return()=>{var E;return g.value=(E=n.default)==null?void 0:E.call(n),O("div",{class:$.value},[c.value==="bottom"&&k(),O(Wbe,{tabs:_.value,activeKey:m.value,activeIndex:f.value,direction:l.value,position:c.value,editable:e.editable,animation:e.animation,showAddButton:e.showAddButton,headerPadding:e.headerPadding,scrollPosition:e.scrollPosition,size:u.value,type:e.type,onClick:h,onAdd:b,onDelete:w},{extra:n.extra}),c.value!=="bottom"&&k()])}}}),Ube=Object.defineProperty,QN=Object.getOwnPropertySymbols,Zbe=Object.prototype.hasOwnProperty,Gbe=Object.prototype.propertyIsEnumerable,e9=(e,t,n)=>t in e?Ube(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ybe=(e,t)=>{for(var n in t||(t={}))Zbe.call(t,n)&&e9(e,n,t[n]);if(QN)for(var n of QN(t))Gbe.call(t,n)&&e9(e,n,t[n]);return e};const Xbe=se({name:"TabPane",props:{title:String,disabled:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},setup(e,{slots:t}){var n;const{title:i,disabled:o,closable:s}=lt(e),r=Vn(),a=de("tabs"),u=Dt(LP,{}),c=he(),l=P(()=>r==null?void 0:r.vnode.key),g=P(()=>l.value===u.activeKey),C=he(u.lazyLoad?g.value:!0),S=it({key:l,title:i,disabled:o,closable:s,slots:t});return r!=null&&r.uid&&((n=u.addItem)==null||n.call(u,r.uid,S)),ei(()=>{var _;r!=null&&r.uid&&((_=u.removeItem)==null||_.call(u,r.uid))}),gt(g,_=>{_?C.value||(C.value=!0):(e.destroyOnHide||u.destroyOnHide)&&(C.value=!1)}),Bi(()=>{S.slots=Ybe({},t)}),{prefixCls:a,active:g,itemRef:c,mounted:C}}});function Kbe(e,t,n,i,o,s){return R(),X("div",{ref:"itemRef",class:G([`${e.prefixCls}-content-item`,{[`${e.prefixCls}-content-item-active`]:e.active}])},[e.mounted?(R(),X("div",{key:0,class:G(`${e.prefixCls}-pane`)},[He(e.$slots,"default")],2)):Re("v-if",!0)],2)}var zb=ye(Xbe,[["render",Kbe]]);const Jbe=Object.assign(_3,{TabPane:zb,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+_3.name,_3),e.component(n+zb.name,zb)}});function qbe(e){const{modelValue:t,defaultValue:n,format:i,isRange:o}=lt(e);function s(){return o.value?[]:void 0}function r(y){if(!jt(y))return o.value?Kt(y)?y:[y,void 0]:y}const a=P(()=>{const y=r(t.value);return Wo(y,i.value)}),u=P(()=>{const y=r(n.value);return Wo(y,i.value)}),[c,l]=Er(jt(a.value)?jt(u.value)?s():u.value:a.value);gt(a,()=>{jt(a.value)&&l(s())});const g=P(()=>a.value||c.value),[C,S]=Er(g.value);gt([g],()=>{S(g.value)});const[_,A]=Er();return gt([C],()=>{A(void 0)}),{computedValue:g,panelValue:C,inputValue:_,setValue:l,setPanelValue:S,setInputValue:A}}var Qbe=Object.defineProperty,eke=Object.defineProperties,tke=Object.getOwnPropertyDescriptors,t9=Object.getOwnPropertySymbols,nke=Object.prototype.hasOwnProperty,ike=Object.prototype.propertyIsEnumerable,n9=(e,t,n)=>t in e?Qbe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rke=(e,t)=>{for(var n in t||(t={}))nke.call(t,n)&&n9(e,n,t[n]);if(t9)for(var n of t9(t))ike.call(t,n)&&n9(e,n,t[n]);return e},oke=(e,t)=>eke(e,tke(t)),ske=se({name:"TimePickerRangePanel",components:{Panel:Qk},props:{value:{type:Array},displayIndex:{type:Number,default:0}},emits:["select","confirm","update:displayIndex","display-index-change"],setup(e,{emit:t}){const{value:n,displayIndex:i}=lt(e),o=he(i.value);gt(i,()=>{o.value=i.value});const s=P(()=>n!=null&&n.value?n.value[o.value]:void 0);function r(u){const c=jt(n)||jt(n==null?void 0:n.value)?[]:[...n.value];c[o.value]=u,t("select",c)}function a(){if(Dm(n==null?void 0:n.value))t("confirm",n==null?void 0:n.value);else{const u=(o.value+1)%2;o.value=u,t("display-index-change",u),t("update:displayIndex",u)}}return{displayValue:s,onSelect:r,onConfirm:a}},render(){const e=oke(rke({},this.$attrs),{isRange:!0,value:this.displayValue,onSelect:this.onSelect,onConfirm:this.onConfirm});return O(Qk,e,this.$slots)}}),ake=Object.defineProperty,i9=Object.getOwnPropertySymbols,lke=Object.prototype.hasOwnProperty,cke=Object.prototype.propertyIsEnumerable,r9=(e,t,n)=>t in e?ake(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I3=(e,t)=>{for(var n in t||(t={}))lke.call(t,n)&&r9(e,n,t[n]);if(i9)for(var n of i9(t))cke.call(t,n)&&r9(e,n,t[n]);return e};const uke=se({name:"TimePicker",components:{Trigger:ur,DateInput:GF,DateRangeInput:pV,Panel:Qk,RangePanel:ske,IconClockCircle:bP},inheritAttrs:!1,props:{type:{type:String,default:"time"},modelValue:{type:[String,Number,Date,Array]},defaultValue:{type:[String,Number,Date,Array]},disabled:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},format:{type:String,default:"HH:mm:ss"},placeholder:{type:[String,Array]},size:{type:String},popupContainer:{type:[String,Object]},use12Hours:{type:Boolean},step:{type:Object},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function},hideDisabledOptions:{type:Boolean},disableConfirm:{type:Boolean},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{type:Object},unmountOnClose:{type:Boolean}},emits:{change:(e,t)=>!0,"update:modelValue":e=>!0,select:(e,t)=>!0,clear:()=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0},setup(e,{emit:t}){const{type:n,format:i,use12Hours:o,modelValue:s,defaultValue:r,popupVisible:a,defaultPopupVisible:u,disabled:c,placeholder:l,disableConfirm:g,disabledHours:C,disabledMinutes:S,disabledSeconds:_}=lt(e),{mergedDisabled:A,eventHandlers:y}=li({disabled:c}),d=P(()=>n.value==="time-range"),v=de("timepicker"),m=he(),{format:f,use12Hours:p}=yP(it({format:i,use12Hours:o})),{computedValue:h,panelValue:b,inputValue:w,setValue:k,setPanelValue:$,setInputValue:E}=qbe(it({modelValue:s,defaultValue:r,isRange:d,format:f})),[N,j]=cr(u.value,it({value:a})),z=Z=>{Z!==N.value&&(j(Z),t("popup-visible-change",Z),t("update:popupVisible",Z))},{t:V}=fi(),[W,H]=Er(0),U=P(()=>{const Z=l==null?void 0:l.value;return d.value?jt(Z)?V("datePicker.rangePlaceholder.time"):Kt(Z)?Z:[Z,Z]:jt(Z)?V("datePicker.placeholder.time"):Z}),Q=QF(it({disabledHours:C,disabledMinutes:S,disabledSeconds:_}));function q(Z){var ee,ce;if(uP(Z,h.value)){const xe=Ia(Z,f.value),re=_o(Z);t("update:modelValue",xe),t("change",xe,re),(ce=(ee=y.value)==null?void 0:ee.onChange)==null||ce.call(ee)}}function ae(Z,ee){if(Q(Z))return;let ce=Z;if(Kt(Z)){const xe=zi();ce=Z.map(re=>(re&&(re=re.year(xe.year()),re=re.month(xe.month()),re=re.date(xe.date())),re)),Dm(ce)&&(ce=jv(ce)),(ce==null?void 0:ce.length)===0&&(ce=void 0)}q(ce),k(ce),ee!==N.value&&z(ee)}function ne(Z,ee){$(Z),ee!==N.value&&z(ee)}function be(Z){m.value&&m.value.focus&&m.value.focus(Z)}function te(Z){A.value||(z(Z),Z&&fn(()=>{be(W.value)}))}function Ie(Z){const ee=Ia(Z,f.value),ce=_o(Z);t("select",ee,ce),g.value&&(!d.value||Dm(Z))?ae(Z,!0):(ne(Z,!0),E(void 0))}function $e(Z){ae(Z,!1)}function Me(){ae(b.value||h.value,!1)}function ge(){if(Dm(b.value))ae(b.value,!1);else{const Z=(W.value+1)%2;H(Z),be(Z)}}function Se(Z){z(!0);const ee=Z.target.value;if(E(ee),!qk(ee,f.value))return;const ce=zi(ee,f.value);Q(ce)||(g.value?ae(ce,!0):ne(ce,!0))}function fe(Z){z(!0);const ee=Z.target.value,ce=Kt(w.value)?[...w.value]:Kt(b.value)&&Ia(b.value,f.value)||[];if(ce[W.value]=ee,E(ce),!qk(ee,f.value))return;const xe=zi(ee,f.value);if(Q(xe))return;const re=Kt(b.value)?[...b.value]:[];re[W.value]=xe,g.value&&Dm(re)?ae(re,!0):ne(re,!0)}function pe(Z){Z.stopPropagation(),$(void 0),ae(void 0,d.value)}gt(N,(Z,ee)=>{Z!==ee&&$(h.value),Z||E(void 0)});const je=P(()=>d.value?{focusedIndex:W.value,onFocusedIndexChange:Z=>{H(Z)},onChange:fe,onPressEnter:ge}:{onChange:Se,onPressEnter:Me}),Y=P(()=>d.value?{displayIndex:W.value,onDisplayIndexChange:Z=>{H(Z),be(Z)}}:{});return{refInput:m,isRange:d,prefixCls:v,panelVisible:N,focusedInputIndex:W,computedPlaceholder:U,panelValue:b,inputValue:w,computedFormat:f,computedUse12Hours:p,inputProps:je,panelProps:Y,mergedDisabled:A,onPanelVisibleChange:te,onInputClear:pe,onPanelSelect:Ie,onPanelConfirm:$e,onPanelClick:()=>{be(W.value)}}}});function dke(e,t,n,i,o,s){const r=Pe("IconClockCircle"),a=Pe("Trigger");return R(),We(a,Qe({trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,position:e.position,disabled:e.mergedDisabled||e.readonly,"popup-offset":4,"popup-visible":e.panelVisible,"prevent-focus":!0,"unmount-on-close":e.unmountOnClose,"popup-container":e.popupContainer},I3({},e.triggerProps),{onPopupVisibleChange:e.onPanelVisibleChange}),{content:Ve(()=>[B("div",{class:G(`${e.prefixCls}-container`),onClick:t[0]||(t[0]=(...u)=>e.onPanelClick&&e.onPanelClick(...u))},[(R(),We(Zr(e.isRange?"RangePanel":"Panel"),Qe(e.panelProps,{value:e.panelValue,visible:e.panelVisible,format:e.computedFormat,"use12-hours":e.computedUse12Hours,step:e.step,"disabled-hours":e.disabledHours,"disabled-minutes":e.disabledMinutes,"disabled-seconds":e.disabledSeconds,"hide-disabled-options":e.hideDisabledOptions,"hide-footer":e.disableConfirm,onSelect:e.onPanelSelect,onConfirm:e.onPanelConfirm}),ti({_:2},[e.$slots.extra?{name:"extra-footer",fn:Ve(()=>[He(e.$slots,"extra")])}:void 0]),1040,["value","visible","format","use12-hours","step","disabled-hours","disabled-minutes","disabled-seconds","hide-disabled-options","hide-footer","onSelect","onConfirm"]))],2)]),default:Ve(()=>[(R(),We(Zr(e.isRange?"DateRangeInput":"DateInput"),Qe(I3(I3({},e.$attrs),e.inputProps),{ref:"refInput","input-value":e.inputValue,value:e.panelValue,size:e.size,focused:e.panelVisible,format:e.computedFormat,visible:e.panelVisible,disabled:e.mergedDisabled,error:e.error,readonly:e.readonly,editable:!e.readonly,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,onClear:e.onInputClear}),ti({"suffix-icon":Ve(()=>[He(e.$slots,"suffix-icon",{},()=>[O(r)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:Ve(()=>[He(e.$slots,"prefix")])}:void 0]),1040,["input-value","value","size","focused","format","visible","disabled","error","readonly","editable","allow-clear","placeholder","onClear"]))]),_:3},16,["position","disabled","popup-visible","unmount-on-close","popup-container","onPopupVisibleChange"])}var x3=ye(uke,[["render",dke]]);const fke=Object.assign(x3,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+x3.name,x3)}}),CH=Symbol("ArcoTimeline");var hke=Object.defineProperty,o9=Object.getOwnPropertySymbols,pke=Object.prototype.hasOwnProperty,mke=Object.prototype.propertyIsEnumerable,s9=(e,t,n)=>t in e?hke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vke=(e,t)=>{for(var n in t||(t={}))pke.call(t,n)&&s9(e,n,t[n]);if(o9)for(var n of o9(t))mke.call(t,n)&&s9(e,n,t[n]);return e};const gke=(e,t,n,i)=>{let o=["left","right"];n==="horizontal"&&(o=["top","bottom"]);const s=t==="alternate"?i||o[e%2]:t;return o.indexOf(s)>-1?s:o[0]},yke=se({name:"TimelineItem",props:{dotColor:{type:String},dotType:{type:String,default:"solid"},lineType:{type:String,default:"solid"},lineColor:{type:String},label:{type:String},position:{type:String}},setup(e){const t=de("timeline-item"),n=Vn(),i=Dt(CH,{}),o=P(()=>{var C,S,_;return(_=(S=i.items)==null?void 0:S.indexOf((C=n==null?void 0:n.uid)!=null?C:-1))!=null?_:-1}),s=P(()=>{var C;return(C=i==null?void 0:i.direction)!=null?C:"vertical"}),r=P(()=>{var C;return(C=i==null?void 0:i.labelPosition)!=null?C:"same"}),a=P(()=>{const{items:C=[],reverse:S,labelPosition:_,mode:A="left"}=i,y=s.value,d=gke(o.value,A,y,e.position);return[t,{[`${t}-${y}-${d}`]:y,[`${t}-label-${_}`]:_,[`${t}-last`]:o.value===(S===!0?0:C.length-1)}]}),u=P(()=>[`${t}-dot-line`,`${t}-dot-line-is-${s.value}`]),c=P(()=>{const{direction:C}=i||{};return vke({[C==="horizontal"?"borderTopStyle":"borderLeftStyle"]:e.lineType},e.lineColor?{borderColor:e.lineColor}:{})}),l=P(()=>[`${t}-dot`,`${t}-dot-${e.dotType}`]),g=P(()=>({[e.dotType==="solid"?"backgroundColor":"borderColor"]:e.dotColor}));return{cls:a,dotLineCls:u,dotTypeCls:l,prefixCls:t,computedDotLineStyle:c,computedDotStyle:g,labelPosition:r}}});function bke(e,t,n,i,o,s){return R(),X("div",{role:"listitem",class:G(e.cls)},[B("div",{class:G(`${e.prefixCls}-dot-wrapper`)},[B("div",{class:G(e.dotLineCls),style:Te(e.computedDotLineStyle)},null,6),B("div",{class:G(`${e.prefixCls}-dot-content`)},[e.$slots.dot?(R(),X("div",{key:0,class:G(`${e.prefixCls}-dot-custom`)},[He(e.$slots,"dot")],2)):(R(),X("div",{key:1,class:G(e.dotTypeCls),style:Te(e.computedDotStyle)},null,6))],2)],2),B("div",{class:G(`${e.prefixCls}-content-wrapper`)},[e.$slots.default?(R(),X("div",{key:0,class:G(`${e.prefixCls}-content`)},[He(e.$slots,"default")],2)):Re("v-if",!0),e.labelPosition!=="relative"?(R(),X("div",{key:1,class:G(`${e.prefixCls}-label`)},[e.$slots.label?He(e.$slots,"label",{key:0}):(R(),X(ft,{key:1},[pt(tt(e.label),1)],2112))],2)):Re("v-if",!0)],2),e.labelPosition==="relative"?(R(),X("div",{key:0,class:G(`${e.prefixCls}-label`)},[e.$slots.label?He(e.$slots,"label",{key:0}):(R(),X(ft,{key:1},[pt(tt(e.label),1)],2112))],2)):Re("v-if",!0)],2)}var oh=ye(yke,[["render",bke]]),$3=se({name:"Timeline",components:{Item:oh,Spin:Zs},props:{reverse:{type:Boolean},direction:{type:String,default:"vertical"},mode:{type:String,default:"left"},pending:{type:[Boolean,String]},labelPosition:{type:String,default:"same"}},setup(e,{slots:t}){const n=de("timeline"),i=P(()=>e.pending||t.pending),{children:o,components:s}=v1("TimelineItem"),{reverse:r,direction:a,labelPosition:u,mode:c}=lt(e),l=it({items:s,direction:a,reverse:r,labelPosition:u,mode:c});cn(CH,l);const g=P(()=>[n,`${n}-${e.mode}`,`${n}-direction-${e.direction}`,{[`${n}-is-reverse`]:e.reverse}]);return()=>{var C,S;return i.value?o.value=(C=t.default)==null?void 0:C.call(t).concat(O(oh,{lineType:"dashed"},{default:()=>[e.pending!==!0&&O("div",null,[e.pending])],dot:()=>{var _,A;return(A=(_=t.dot)==null?void 0:_.call(t))!=null?A:O(Zs,{size:12},null)}})):o.value=(S=t.default)==null?void 0:S.call(t),O("div",{role:"list",class:g.value},[o.value])}}});const kke=Object.assign($3,{Item:oh,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+$3.name,$3),e.component(n+oh.name,oh)}}),Cke=se({name:"IconDelete",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-delete`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Ske=["stroke-width","stroke-linecap","stroke-linejoin"],wke=B("path",{d:"M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15"},null,-1),_ke=[wke];function Ike(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},_ke,14,Ske)}var A3=ye(Cke,[["render",Ike]]);const uw=Object.assign(A3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+A3.name,A3)}}),DP=Symbol("ArcoTransfer");var xke=se({name:"TransferListItem",props:{type:{type:String},data:{type:Object,required:!0},allowClear:{type:Boolean},disabled:{type:Boolean},draggable:{type:Boolean},simple:Boolean},setup(e){const t=de("transfer-list-item"),n=Dt(DP,void 0),i=()=>{e.simple&&!e.disabled&&(n==null||n.moveTo([e.data.value],e.type==="target"?"source":"target"))},o=P(()=>[t,{[`${t}-disabled`]:e.disabled,[`${t}-draggable`]:e.draggable}]),s=()=>{n==null||n.moveTo([e.data.value],"source")};return()=>{var r,a,u;return O("div",{class:o.value,onClick:i},[e.allowClear||e.simple?O("span",{class:`${t}-content`},[(u=(a=n==null?void 0:(r=n.slots).item)==null?void 0:a.call(r,{label:e.data.label,value:e.data.value}))!=null?u:e.data.label]):O(Fs,{class:[`${t}-content`,`${t}-checkbox`],modelValue:n==null?void 0:n.selected,value:e.data.value,onChange:c=>n==null?void 0:n.onSelect(c),uninjectGroupContext:!0,disabled:e.disabled},{default:()=>{var c,l,g;return[(g=(l=n==null?void 0:(c=n.slots).item)==null?void 0:l.call(c,{label:e.data.label,value:e.data.value}))!=null?g:e.data.label]}}),e.allowClear&&!e.disabled&&O(ai,{class:`${t}-remove-btn`,onClick:s},{default:()=>[O(Cr,null,null)]})])}}});const $ke=se({name:"TransferView",components:{Empty:Xy,Checkbox:Fs,IconHover:ai,IconDelete:uw,InputSearch:ou.Search,List:GV,TransferListItem:xke,Scrollbar:Gs},props:{type:{type:String},dataInfo:{type:Object,required:!0},title:String,data:{type:Array,required:!0},disabled:Boolean,allowClear:Boolean,selected:{type:Array,required:!0},showSearch:Boolean,showSelectAll:Boolean,simple:Boolean,inputSearchProps:{type:Object}},emits:["search"],setup(e,{emit:t}){const n=de("transfer-view"),i=he(""),o=Dt(DP,void 0),s=P(()=>e.dataInfo.selected.length),r=P(()=>e.dataInfo.data.length),a=P(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length===e.dataInfo.allValidValues.length),u=P(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length<e.dataInfo.allValidValues.length),c=S=>{S?o==null||o.onSelect([...e.selected,...e.dataInfo.allValidValues]):o==null||o.onSelect(e.selected.filter(_=>!e.dataInfo.allValidValues.includes(_)))},l=P(()=>e.dataInfo.data.filter(S=>i.value?S.label.includes(i.value):!0));return{prefixCls:n,filteredData:l,filter:i,checked:a,indeterminate:u,countSelected:s,countRendered:r,handleSelectAllChange:c,handleSearch:S=>{t("search",S,e.type)},handleClear:()=>{o==null||o.moveTo(e.dataInfo.allValidValues,"source")},transferCtx:o}}});function Ake(e,t,n,i,o,s){const r=Pe("checkbox"),a=Pe("icon-delete"),u=Pe("icon-hover"),c=Pe("input-search"),l=Pe("transfer-list-item"),g=Pe("list"),C=Pe("Scrollbar"),S=Pe("Empty");return R(),X("div",{class:G(e.prefixCls)},[B("div",{class:G(`${e.prefixCls}-header`)},[He(e.$slots,"title",{countTotal:e.dataInfo.data.length,countSelected:e.dataInfo.selected.length,searchValue:e.filter,checked:e.checked,indeterminate:e.indeterminate,onSelectAllChange:e.handleSelectAllChange,onClear:e.handleClear},()=>[B("span",{class:G(`${e.prefixCls}-header-title`)},[e.allowClear||e.simple||!e.showSelectAll?(R(),X("span",{key:0,class:G(`${e.prefixCls}-header-title-simple`)},tt(e.title),3)):(R(),We(r,{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,"uninject-group-context":"",onChange:e.handleSelectAllChange},{default:Ve(()=>[pt(tt(e.title),1)]),_:1},8,["model-value","indeterminate","disabled","onChange"]))],2),e.allowClear?(R(),We(u,{key:0,disabled:e.disabled,class:G(`${e.prefixCls}-header-clear-btn`),onClick:e.handleClear},{default:Ve(()=>[O(a)]),_:1},8,["disabled","class","onClick"])):e.simple?Re("v-if",!0):(R(),X("span",{key:1,class:G(`${e.prefixCls}-header-count`)},tt(e.dataInfo.selected.length)+" / "+tt(e.dataInfo.data.length),3))])],2),e.showSearch?(R(),X("div",{key:0,class:G(`${e.prefixCls}-search`)},[O(c,Qe({modelValue:e.filter,"onUpdate:modelValue":t[0]||(t[0]=_=>e.filter=_),disabled:e.disabled},e.inputSearchProps,{onChange:e.handleSearch}),null,16,["modelValue","disabled","onChange"])],2)):Re("v-if",!0),B("div",{class:G(`${e.prefixCls}-body`)},[e.filteredData.length>0?(R(),We(C,{key:0},{default:Ve(()=>{var _,A;return[He(e.$slots,"default",{data:e.filteredData,selectedKeys:(_=e.transferCtx)==null?void 0:_.selected,onSelect:(A=e.transferCtx)==null?void 0:A.onSelect},()=>[O(g,{class:G(`${e.prefixCls}-list`),bordered:!1,scrollbar:!1},{default:Ve(()=>[(R(!0),X(ft,null,dn(e.filteredData,y=>(R(),We(l,{key:y.value,type:e.type,data:y,simple:e.simple,"allow-clear":e.allowClear,disabled:e.disabled||y.disabled},null,8,["type","data","simple","allow-clear","disabled"]))),128))]),_:1},8,["class"])])]}),_:3})):(R(),We(S,{key:1,class:G(`${e.prefixCls}-empty`)},null,8,["class"]))],2)],2)}var Eke=ye($ke,[["render",Ake]]);const Mke=se({name:"Transfer",components:{ArcoButton:Yr,TransferView:Eke,IconLeft:Pa,IconRight:fs},props:{data:{type:Array,default:()=>[]},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:()=>[]},selected:{type:Array,default:void 0},defaultSelected:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},oneWay:{type:Boolean,default:!1},showSearch:{type:Boolean,default:!1},showSelectAll:{type:Boolean,default:!0},title:{type:Array,default:()=>["Source","Target"]},sourceInputSearchProps:{type:Object},targetInputSearchProps:{type:Object}},emits:{"update:modelValue":e=>!0,"update:selected":e=>!0,change:e=>!0,select:e=>!0,search:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{mergedDisabled:i,eventHandlers:o}=li({disabled:lo(e,"disabled")}),s=de("transfer"),r=he(e.defaultValue),a=P(()=>{var v;return(v=e.modelValue)!=null?v:r.value}),u=he(e.defaultSelected),c=P(()=>{var v;return(v=e.selected)!=null?v:u.value}),l=P(()=>{var v;return(v=e.title)==null?void 0:v[0]}),g=P(()=>{var v;return(v=e.title)==null?void 0:v[1]}),C=P(()=>{const v={data:[],allValidValues:[],selected:[],validSelected:[]},m={data:[],allValidValues:[],selected:[],validSelected:[]};for(const f of e.data)a.value.includes(f.value)?(m.data.push(f),f.disabled||m.allValidValues.push(f.value),c.value.includes(f.value)&&(m.selected.push(f.value),f.disabled||m.validSelected.push(f.value))):(v.data.push(f),f.disabled||v.allValidValues.push(f.value),c.value.includes(f.value)&&(v.selected.push(f.value),f.disabled||v.validSelected.push(f.value)));return{sourceInfo:v,targetInfo:m}}),S=(v,m)=>{t("search",v,m)},_=(v,m)=>{var f,p;const h=m==="target"?[...a.value,...v]:a.value.filter(b=>!v.includes(b));y(C.value[m==="target"?"targetInfo":"sourceInfo"].selected),r.value=h,t("update:modelValue",h),t("change",h),(p=(f=o.value)==null?void 0:f.onChange)==null||p.call(f)},A=v=>{const m=v==="target"?C.value.sourceInfo.validSelected:C.value.targetInfo.validSelected;_(m,v)},y=v=>{u.value=v,t("update:selected",v),t("select",v)};cn(DP,it({selected:c,slots:n,moveTo:_,onSelect:y}));const d=P(()=>[s,{[`${s}-simple`]:e.simple,[`${s}-disabled`]:i.value}]);return{prefixCls:s,cls:d,dataInfo:C,computedSelected:c,mergedDisabled:i,sourceTitle:l,targetTitle:g,handleClick:A,handleSearch:S}}});function Tke(e,t,n,i,o,s){const r=Pe("transfer-view"),a=Pe("icon-right"),u=Pe("arco-button"),c=Pe("icon-left");return R(),X("div",{class:G(e.cls)},[O(r,{type:"source",class:G(`${e.prefixCls}-view-source`),title:e.sourceTitle,"data-info":e.dataInfo.sourceInfo,data:e.dataInfo.sourceInfo.data,disabled:e.mergedDisabled,selected:e.computedSelected,"show-search":e.showSearch,"show-select-all":e.showSelectAll,simple:e.simple,"input-search-props":e.sourceInputSearchProps,onSearch:e.handleSearch},ti({_:2},[e.$slots.source?{name:"default",fn:Ve(l=>[He(e.$slots,"source",Bn(ir(l)))])}:void 0,e.$slots["source-title"]?{name:"title",fn:Ve(l=>[He(e.$slots,"source-title",Bn(ir(l)))])}:void 0]),1032,["class","title","data-info","data","disabled","selected","show-search","show-select-all","simple","input-search-props","onSearch"]),e.simple?Re("v-if",!0):(R(),X("div",{key:0,class:G([`${e.prefixCls}-operations`])},[O(u,{tabindex:"-1","aria-label":"Move selected right",size:"small",shape:"round",disabled:e.dataInfo.sourceInfo.validSelected.length===0,onClick:t[0]||(t[0]=l=>e.handleClick("target"))},{icon:Ve(()=>[He(e.$slots,"to-target-icon",{},()=>[O(a)])]),_:3},8,["disabled"]),e.oneWay?Re("v-if",!0):(R(),We(u,{key:0,tabindex:"-1","aria-label":"Move selected left",size:"small",shape:"round",disabled:e.dataInfo.targetInfo.validSelected.length===0,onClick:t[1]||(t[1]=l=>e.handleClick("source"))},{icon:Ve(()=>[He(e.$slots,"to-source-icon",{},()=>[O(c)])]),_:3},8,["disabled"]))],2)),O(r,{type:"target",class:G(`${e.prefixCls}-view-target`),title:e.targetTitle,"data-info":e.dataInfo.targetInfo,data:e.dataInfo.targetInfo.data,disabled:e.mergedDisabled,selected:e.computedSelected,"allow-clear":e.oneWay,"show-search":e.showSearch,"show-select-all":e.showSelectAll,simple:e.simple,"input-search-props":e.targetInputSearchProps,onSearch:e.handleSearch},ti({_:2},[e.$slots.target?{name:"default",fn:Ve(l=>[He(e.$slots,"target",Bn(ir(l)))])}:void 0,e.$slots["target-title"]?{name:"title",fn:Ve(l=>[He(e.$slots,"target-title",Bn(ir(l)))])}:void 0]),1032,["class","title","data-info","data","disabled","selected","allow-clear","show-search","show-select-all","simple","input-search-props","onSearch"])],2)}var E3=ye(Mke,[["render",Tke]]);const Pke=Object.assign(E3,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+E3.name,E3)}}),SH=Symbol("TreeInjectionKey");function Oke(e){const t=[];function n(i){i&&i.forEach(o=>{t.push(o),n(o.children)})}return n(e),t}function Lke(e){const t=new Map;return e.forEach(n=>{t.set(n.key,n)}),t}function bE(e){return e.selectable&&!e.disabled}function a9(e){return!e.isLeaf&&e.children}function Dke(e){return Gr(e.isLeaf)?e.isLeaf:!e.children}function kE(e){return Set.prototype.add.bind(e)}function CE(e){return Set.prototype.delete.bind(e)}function Zd(e){return e.disabled||e.disableCheckbox?!1:!!e.checkable}function NP(e){var t;const n=[];return(t=e.children)==null||t.forEach(i=>{Zd(i)&&n.push(i.key,...NP(i))}),n}function wH(e){var t;const{node:n,checkedKeySet:i,indeterminateKeySet:o}=e;let s=n.parent;for(;s;){if(Zd(s)){const r=s.key,a=((t=s.children)==null?void 0:t.filter(Zd))||[];let u=0;const c=a.length;a.some(({key:l})=>{if(i.has(l))u+=1;else if(o.has(l))return u+=.5,!0;return!1}),u&&u!==c?o.add(r):o.delete(r),u&&u===c?i.add(r):i.delete(r)}s=s.parent}}function SE(e){const{node:t,checked:n,checkedKeys:i,indeterminateKeys:o,checkStrictly:s=!1}=e,{key:r}=t,a=new Set(i),u=new Set(o);if(n?a.add(r):a.delete(r),u.delete(r),!s){const c=NP(t);n?c.forEach(kE(a)):c.forEach(CE(a)),c.forEach(CE(u)),wH({node:t,checkedKeySet:a,indeterminateKeySet:u})}return[[...a],[...u]]}function Nke(e){const{initCheckedKeys:t,key2TreeNode:n,checkStrictly:i,onlyCheckLeaf:o}=e,s=new Set,r=new Set,a=new Set;return i?t.forEach(kE(s)):t.forEach(u=>{var c;const l=n.get(u);if(!l||r.has(u)||o&&((c=l.children)!=null&&c.length))return;const g=NP(l);g.forEach(kE(r)),g.forEach(CE(a)),s.add(u),a.delete(u),wH({node:l,checkedKeySet:s,indeterminateKeySet:a})}),[[...s,...r],[...a]]}function dw(){return Dt(SH)||{}}const jke=se({name:"IconFile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-file`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),zke=["stroke-width","stroke-linecap","stroke-linejoin"],Rke=B("path",{d:"M16 21h16m-16 8h10m11 13H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1),Bke=[Rke];function Fke(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Bke,14,zke)}var M3=ye(jke,[["render",Fke]]);const jP=Object.assign(M3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+M3.name,M3)}});var Vke=se({name:"TreeNodeSwitcher",components:{IconLoading:Lr,RenderFunction:jl},props:{prefixCls:String,loading:Boolean,showLine:Boolean,treeNodeData:{type:Object},icons:{type:Object},nodeStatus:{type:Object}},emits:["click"],setup(e,{slots:t,emit:n}){const{icons:i,nodeStatus:o,treeNodeData:s}=lt(e),r=dw(),a=Ds(t,"switcher-icon"),u=Ds(t,"loading-icon");return{getSwitcherIcon:()=>{var c,l,g;const C=(l=(c=i==null?void 0:i.value)==null?void 0:c.switcherIcon)!=null?l:a.value;return C?C(o.value):(g=r.switcherIcon)==null?void 0:g.call(r,s.value,o.value)},getLoadingIcon:()=>{var c,l,g;const C=(l=(c=i==null?void 0:i.value)==null?void 0:c.loadingIcon)!=null?l:u.value;return C?C(o.value):(g=r.loadingIcon)==null?void 0:g.call(r,s.value,o.value)},onClick(c){n("click",c)}}},render(){var e,t,n;const{prefixCls:i,getSwitcherIcon:o,getLoadingIcon:s,onClick:r,nodeStatus:a={},loading:u,showLine:c}=this,{expanded:l,isLeaf:g}=a;if(u)return(e=s())!=null?e:Wn(Lr);let C=null,S=!1;if(g)c&&(C=(n=o())!=null?n:Wn(jP));else{const A=c?Wn("span",{class:`${i}-${l?"minus":"plus"}-icon`}):Wn(OP);C=(t=o())!=null?t:A,S=!c}if(!C)return null;const _=Wn("span",{class:`${i}-switcher-icon`,onClick:r},C);return S?Wn(ai,{class:`${i}-icon-hover`},()=>_):_}}),Hke=Object.defineProperty,Wke=Object.defineProperties,Uke=Object.getOwnPropertyDescriptors,l9=Object.getOwnPropertySymbols,Zke=Object.prototype.hasOwnProperty,Gke=Object.prototype.propertyIsEnumerable,c9=(e,t,n)=>t in e?Hke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wE=(e,t)=>{for(var n in t||(t={}))Zke.call(t,n)&&c9(e,n,t[n]);if(l9)for(var n of l9(t))Gke.call(t,n)&&c9(e,n,t[n]);return e},u9=(e,t)=>Wke(e,Uke(t));const _H=(()=>{let e=0;return()=>(e+=1,`__arco_tree${e}`)})();function Yke(e,t){return!!(jt(e)?t:e)}function Xke(e,t){const n=wE({},e);return t&&Object.keys(t).forEach(o=>{const s=t[o];s!==o&&(n[o]=e[s],delete n[s])}),n}function d9({subEnable:e,superEnable:t,isLeaf:n,treeNodeData:i,level:o}){return jt(e)?Nt(t)?t(i,{isLeaf:n,level:o}):t??!1:e}function Kke(e){var t,n;const{treeNodeData:i,parentNode:o,isTail:s=!0,treeProps:r}=e,{fieldNames:a}=r||{},u=Xke(i,a),c=r.loadMore?!!u.isLeaf:!((t=u.children)!=null&&t.length),l=o?o.level+1:0,g=u9(wE({},kr(u,["children"])),{key:(n=u.key)!=null?n:_H(),selectable:d9({subEnable:u.selectable,superEnable:r==null?void 0:r.selectable,isLeaf:c,level:l,treeNodeData:i}),disabled:!!u.disabled,disableCheckbox:!!u.disableCheckbox,checkable:d9({subEnable:u.checkable,superEnable:r==null?void 0:r.checkable,isLeaf:c,level:l,treeNodeData:i}),isLeaf:c,isTail:s,blockNode:!!(r!=null&&r.blockNode),showLine:!!(r!=null&&r.showLine),level:l,lineless:o?[...o.lineless,o.isTail]:[],draggable:Yke(u.draggable,r==null?void 0:r.draggable)});return u9(wE({},g),{treeNodeProps:g,treeNodeData:i,parent:o,parentKey:o==null?void 0:o.key,pathParentKeys:o?[...o.pathParentKeys,o.key]:[]})}function Jke(e,t){function n(i,o){if(!i)return;const{fieldNames:s}=t,r=[];return i.forEach((a,u)=>{const c=Kke({treeNodeData:a,treeProps:t,parentNode:o,isTail:u===i.length-1});c.children=n(a[(s==null?void 0:s.children)||"children"],c),r.push(c)}),r}return n(e)}function IH(){const e=Vn(),t=()=>{var i;return(i=e==null?void 0:e.vnode.key)!=null?i:_H()},n=he(t());return Bi(()=>{n.value=t()}),n}function qke(e){const{key:t,refTitle:n}=lt(e),i=dw(),o=he(!1),s=he(!1),r=he(!1),a=he(0),u=Jd(c=>{if(!n.value)return;const l=n.value.getBoundingClientRect(),g=window.pageYOffset+l.top,{pageY:C}=c,S=l.height/4,_=C-g;a.value=_<S?-1:_<l.height-S?0:1,r.value=i.allowDrop?i.allowDrop(t.value,a.value):!0});return{isDragOver:o,isDragging:s,isAllowDrop:r,dropPosition:a,setDragStatus(c,l){switch(c){case"dragStart":s.value=!0,a.value=0,i.onDragStart&&i.onDragStart(t.value,l);break;case"dragEnd":s.value=!1,o.value=!1,a.value=0,u.cancel(),i.onDragEnd&&i.onDragEnd(t.value,l);break;case"dragOver":o.value=!0,u(l),i.onDragOver&&i.onDragOver(t.value,l);break;case"dragLeave":o.value=!1,a.value=0,u.cancel(),i.onDragLeave&&i.onDragLeave(t.value,l);break;case"drop":i.onDrop&&i.onDrop(t.value,a.value,l),o.value=!1,a.value=0,u.cancel();break}}}}function Qke(e){return Kt(e)?e:[e]}const eCe=se({name:"BaseTreeNode",components:{NodeSwitcher:Vke,Checkbox:Fs,RenderFunction:jl,IconDragDotVertical:sw},props:{title:{type:String},selectable:{type:Boolean},disabled:{type:Boolean},disableCheckbox:{type:Boolean},checkable:{type:Boolean},draggable:{type:Boolean},isLeaf:{type:Boolean},icon:{type:Function},switcherIcon:{type:Function},loadingIcon:{type:Function},dragIcon:{type:Function},isTail:{type:Boolean},blockNode:{type:Boolean},showLine:{type:Boolean},level:{type:Number,default:0},lineless:{type:Array,default:()=>[]}},setup(e){const t=IH(),n=de("tree-node"),i=dw(),o=P(()=>{var H;return(H=i.key2TreeNode)==null?void 0:H.get(t.value)}),s=P(()=>o.value.treeNodeData),r=P(()=>o.value.children),a=P(()=>{var H;const U=(H=i.treeProps)==null?void 0:H.actionOnNodeClick;return U?Qke(U):[]}),{isLeaf:u,isTail:c,selectable:l,disabled:g,disableCheckbox:C,draggable:S}=lt(e),_=P(()=>{var H;return[`${n}`,{[`${n}-selected`]:w.value,[`${n}-is-leaf`]:u.value,[`${n}-is-tail`]:c.value,[`${n}-expanded`]:k.value,[`${n}-disabled-selectable`]:!l.value&&!((H=i.treeProps)!=null&&H.disableSelectActionOnly),[`${n}-disabled`]:g.value}]}),A=he(),{isDragOver:y,isDragging:d,isAllowDrop:v,dropPosition:m,setDragStatus:f}=qke(it({key:t,refTitle:A})),p=P(()=>[`${n}-title`,{[`${n}-title-draggable`]:S.value,[`${n}-title-gap-top`]:y.value&&v.value&&m.value<0,[`${n}-title-gap-bottom`]:y.value&&v.value&&m.value>0,[`${n}-title-highlight`]:!d.value&&y.value&&v.value&&m.value===0,[`${n}-title-dragging`]:d.value,[`${n}-title-block`]:o.value.blockNode}]),h=P(()=>{var H,U;return(U=(H=i.checkedKeys)==null?void 0:H.includes)==null?void 0:U.call(H,t.value)}),b=P(()=>{var H,U;return(U=(H=i.indeterminateKeys)==null?void 0:H.includes)==null?void 0:U.call(H,t.value)}),w=P(()=>{var H,U;return(U=(H=i.selectedKeys)==null?void 0:H.includes)==null?void 0:U.call(H,t.value)}),k=P(()=>{var H,U;return(U=(H=i.expandedKeys)==null?void 0:H.includes)==null?void 0:U.call(H,t.value)}),$=P(()=>{var H,U;return(U=(H=i.loadingKeys)==null?void 0:H.includes)==null?void 0:U.call(H,t.value)}),E=P(()=>i.dragIcon),N=P(()=>i.nodeIcon);function j(H){var U,Q;u.value||(!((U=r.value)!=null&&U.length)&&Nt(i.onLoadMore)?i.onLoadMore(t.value):(Q=i==null?void 0:i.onExpand)==null||Q.call(i,!k.value,t.value,H))}const z=it({loading:$,checked:h,selected:w,indeterminate:b,expanded:k,isLeaf:u}),V=P(()=>i.nodeTitle?()=>{var H;return(H=i.nodeTitle)==null?void 0:H.call(i,s.value,z)}:void 0),W=P(()=>i.nodeExtra?()=>{var H;return(H=i.nodeExtra)==null?void 0:H.call(i,s.value,z)}:void 0);return{nodekey:t,refTitle:A,prefixCls:n,classNames:_,titleClassNames:p,indeterminate:b,checked:h,expanded:k,selected:w,treeTitle:V,treeNodeData:s,loading:$,treeDragIcon:E,treeNodeIcon:N,extra:W,nodeStatus:z,onCheckboxChange(H,U){var Q;C.value||g.value||(Q=i.onCheck)==null||Q.call(i,H,t.value,U)},onTitleClick(H){var U;a.value.includes("expand")&&j(H),!(!l.value||g.value)&&((U=i.onSelect)==null||U.call(i,t.value,H))},onSwitcherClick:j,onDragStart(H){var U;if(S.value){H.stopPropagation(),f("dragStart",H);try{(U=H.dataTransfer)==null||U.setData("text/plain","")}catch{}}},onDragEnd(H){S.value&&(H.stopPropagation(),f("dragEnd",H))},onDragOver(H){S&&(H.stopPropagation(),H.preventDefault(),f("dragOver",H))},onDragLeave(H){S.value&&(H.stopPropagation(),f("dragLeave",H))},onDrop(H){!S.value||!v.value||(H.stopPropagation(),H.preventDefault(),f("drop",H))}}}}),tCe=["data-level","data-key"],nCe=["draggable"];function iCe(e,t,n,i,o,s){const r=Pe("NodeSwitcher"),a=Pe("Checkbox"),u=Pe("RenderFunction"),c=Pe("IconDragDotVertical");return R(),X("div",{class:G(e.classNames),"data-level":e.level,"data-key":e.nodekey},[Re(" 缩进 "),B("span",{class:G(`${e.prefixCls}-indent`)},[(R(!0),X(ft,null,dn(e.level,l=>(R(),X("span",{key:l,class:G([`${e.prefixCls}-indent-block`,{[`${e.prefixCls}-indent-block-lineless`]:e.lineless[l-1]}])},null,2))),128))],2),Re(" switcher "),B("span",{class:G([`${e.prefixCls}-switcher`,{[`${e.prefixCls}-switcher-expanded`]:e.expanded}])},[O(r,{"prefix-cls":e.prefixCls,loading:e.loading,"show-line":e.showLine,"tree-node-data":e.treeNodeData,icons:{switcherIcon:e.switcherIcon,loadingIcon:e.loadingIcon},"node-status":e.nodeStatus,onClick:e.onSwitcherClick},ti({_:2},[e.$slots["switcher-icon"]?{name:"switcher-icon",fn:Ve(()=>[Re(" @slot 定制 switcher 图标,会覆盖 Tree 的配置 "),He(e.$slots,"switcher-icon")])}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:Ve(()=>[Re(" @slot 定制 loading 图标,会覆盖 Tree 的配置 "),He(e.$slots,"loading-icon")])}:void 0]),1032,["prefix-cls","loading","show-line","tree-node-data","icons","node-status","onClick"])],2),Re(" checkbox "),e.checkable?(R(),We(a,{key:0,disabled:e.disableCheckbox||e.disabled,"model-value":e.checked,indeterminate:e.indeterminate,"uninject-group-context":"",onChange:e.onCheckboxChange},null,8,["disabled","model-value","indeterminate","onChange"])):Re("v-if",!0),Re(" 内容 "),B("span",{ref:"refTitle",class:G(e.titleClassNames),draggable:e.draggable,onDragstart:t[0]||(t[0]=(...l)=>e.onDragStart&&e.onDragStart(...l)),onDragend:t[1]||(t[1]=(...l)=>e.onDragEnd&&e.onDragEnd(...l)),onDragover:t[2]||(t[2]=(...l)=>e.onDragOver&&e.onDragOver(...l)),onDragleave:t[3]||(t[3]=(...l)=>e.onDragLeave&&e.onDragLeave(...l)),onDrop:t[4]||(t[4]=(...l)=>e.onDrop&&e.onDrop(...l)),onClick:t[5]||(t[5]=(...l)=>e.onTitleClick&&e.onTitleClick(...l))},[e.$slots.icon||e.icon||e.treeNodeIcon?(R(),X("span",{key:0,class:G([`${e.prefixCls}-icon`,`${e.prefixCls}-custom-icon`])},[Re(" 节点图标 "),e.$slots.icon?He(e.$slots,"icon",Bn(Qe({key:0},e.nodeStatus))):e.icon?(R(),We(u,Qe({key:1,"render-func":e.icon},e.nodeStatus),null,16,["render-func"])):e.treeNodeIcon?(R(),We(u,Qe({key:2,"render-func":e.treeNodeIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):Re("v-if",!0)],2)):Re("v-if",!0),B("span",{class:G(`${e.prefixCls}-title-text`)},[e.treeTitle?(R(),We(u,{key:0,"render-func":e.treeTitle},null,8,["render-func"])):(R(),X(ft,{key:1},[Re(" 标题,treeTitle 优先级高于节点的 title "),He(e.$slots,"title",{title:e.title},()=>[pt(tt(e.title),1)])],2112)),e.draggable?(R(),X("span",{key:2,class:G([`${e.prefixCls}-icon`,`${e.prefixCls}-drag-icon`])},[Re(" 拖拽图标 "),e.$slots["drag-icon"]?He(e.$slots,"drag-icon",Bn(Qe({key:0},e.nodeStatus))):e.dragIcon?(R(),We(u,Qe({key:1,"render-func":e.dragIcon},e.nodeStatus),null,16,["render-func"])):e.treeDragIcon?(R(),We(u,Qe({key:2,"render-func":e.treeDragIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):(R(),We(c,{key:3}))],2)):Re("v-if",!0)],2)],42,nCe),Re(" 额外 "),e.extra?(R(),We(u,{key:1,"render-func":e.extra},null,8,["render-func"])):Re("v-if",!0)],10,tCe)}var _E=ye(eCe,[["render",iCe]]);const rCe=se({name:"ExpandTransition",props:{expanded:Boolean},emits:["end"],setup(e,{emit:t}){return{onEnter(n){const i=`${n.scrollHeight}px`;n.style.height=e.expanded?"0":i,n.offsetHeight,n.style.height=e.expanded?i:"0"},onAfterEnter(n){n.style.height=e.expanded?"":"0",t("end")},onBeforeLeave(n){n.style.display="none"}}}});function oCe(e,t,n,i,o,s){return R(),We(Pr,{onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave},{default:Ve(()=>[He(e.$slots,"default")]),_:3},8,["onEnter","onAfterEnter","onBeforeLeave"])}var sCe=ye(rCe,[["render",oCe]]);const aCe=se({name:"TransitionNodeList",components:{ExpandTransition:sCe,BaseTreeNode:_E},props:{nodeKey:{type:[String,Number],required:!0}},setup(e){const n=[`${de("tree")}-node-list`],i=dw(),{nodeKey:o}=lt(e),s=P(()=>{var u,c;return(c=(u=i.expandedKeys)==null?void 0:u.includes)==null?void 0:c.call(u,o.value)}),r=P(()=>{var u;const c=new Set(i.expandedKeys||[]),l=(u=i.flattenTreeData)==null?void 0:u.filter(g=>{var C,S;return(C=g.pathParentKeys)!=null&&C.includes(o.value)?!i.filterTreeNode||((S=i.filterTreeNode)==null?void 0:S.call(i,g.treeNodeData)):!1});return l==null?void 0:l.filter(g=>{var C;if(s.value)return(C=g.pathParentKeys)==null?void 0:C.every(_=>c.has(_));const S=g.pathParentKeys.indexOf(o.value);return g.pathParentKeys.slice(S+1).every(_=>c.has(_))})}),a=P(()=>{var u,c;return((u=i.currentExpandKeys)==null?void 0:u.includes(o.value))&&((c=r.value)==null?void 0:c.length)});return{classNames:n,visibleNodeList:r,show:a,expanded:s,onTransitionEnd(){var u;(u=i.onExpandEnd)==null||u.call(i,o.value)}}}});function lCe(e,t,n,i,o,s){const r=Pe("BaseTreeNode"),a=Pe("ExpandTransition");return R(),We(a,{expanded:e.expanded,onEnd:e.onTransitionEnd},{default:Ve(()=>[e.show?(R(),X("div",{key:0,class:G(e.classNames)},[(R(!0),X(ft,null,dn(e.visibleNodeList,u=>(R(),We(r,Qe({key:u.key},u.treeNodeProps),null,16))),128))],2)):Re("v-if",!0)]),_:1},8,["expanded","onEnd"])}var cCe=ye(aCe,[["render",lCe]]),uCe=Object.defineProperty,f9=Object.getOwnPropertySymbols,dCe=Object.prototype.hasOwnProperty,fCe=Object.prototype.propertyIsEnumerable,h9=(e,t,n)=>t in e?uCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hCe=(e,t)=>{for(var n in t||(t={}))dCe.call(t,n)&&h9(e,n,t[n]);if(f9)for(var n of f9(t))fCe.call(t,n)&&h9(e,n,t[n]);return e},pCe=se({name:"TreeNode",inheritAttrs:!1,props:hCe({},_E.props),setup(e,{slots:t,attrs:n}){const i=IH();return()=>O(ft,null,[O(_E,Qe(e,n,{key:i.value}),t),O(cCe,{key:i.value,nodeKey:i.value},null)])}});function mCe(e){const{defaultCheckedKeys:t,checkedKeys:n,key2TreeNode:i,checkStrictly:o,halfCheckedKeys:s,onlyCheckLeaf:r}=lt(e),a=he(!1),u=he([]),c=he([]),l=he(),g=he(),C=_=>Nke({initCheckedKeys:_,key2TreeNode:i.value,checkStrictly:o.value,onlyCheckLeaf:r.value}),S=_=>{const A=C(_);[u.value,c.value]=A};return S(n.value||(t==null?void 0:t.value)||[]),Xi(()=>{n.value?[l.value,g.value]=C(n.value):a.value&&(l.value=void 0,g.value=void 0,u.value=[],c.value=[]),a.value||(a.value=!0)}),{checkedKeys:P(()=>l.value||u.value),indeterminateKeys:P(()=>o.value&&s.value?s.value:g.value||c.value),setCheckedState(_,A,y=!1){return y?S(_):(u.value=_,c.value=A),[u.value,c.value]}}}function xH(e){const{treeData:t,fieldNames:n,selectable:i,showLine:o,blockNode:s,checkable:r,loadMore:a,draggable:u}=lt(e),c=he([]);Xi(()=>{var C,S;c.value=Jke(t.value||[],{selectable:(C=i==null?void 0:i.value)!=null?C:!1,showLine:!!(o!=null&&o.value),blockNode:!!(s!=null&&s.value),checkable:(S=r==null?void 0:r.value)!=null?S:!1,fieldNames:n==null?void 0:n.value,loadMore:!!(a!=null&&a.value),draggable:!!(u!=null&&u.value)})});const l=P(()=>Oke(c.value)),g=P(()=>Lke(l.value));return{treeData:c,flattenTreeData:l,key2TreeNode:g}}const vCe=se({name:"Tree",components:{VirtualList:Qp,TreeNode:pCe},props:{size:{type:String,default:"medium"},blockNode:{type:Boolean},defaultExpandAll:{type:Boolean,default:!0},multiple:{type:Boolean},checkable:{type:[Boolean,String,Function],default:!1},selectable:{type:[Boolean,Function],default:!0},checkStrictly:{type:Boolean},checkedStrategy:{type:String,default:"all"},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:Array},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},data:{type:Array,default:()=>[]},fieldNames:{type:Object},showLine:{type:Boolean},loadMore:{type:Function},draggable:{type:Boolean},allowDrop:{type:Function},filterTreeNode:{type:Function},searchValue:{type:String,default:""},virtualListProps:{type:Object},defaultExpandSelected:{type:Boolean},defaultExpandChecked:{type:Boolean},autoExpandParent:{type:Boolean,default:!0},halfCheckedKeys:{type:Array},onlyCheckLeaf:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},actionOnNodeClick:{type:String},disableSelectActionOnly:{type:Boolean,default:!1}},emits:{select:(e,t)=>!0,"update:selectedKeys":e=>!0,check:(e,t)=>!0,"update:checkedKeys":e=>!0,"update:halfCheckedKeys":e=>!0,expand:(e,t)=>!0,"update:expandedKeys":e=>!0,dragStart:(e,t)=>!0,dragEnd:(e,t)=>!0,dragOver:(e,t)=>!0,dragLeave:(e,t)=>!0,drop:e=>!0},setup(e,{emit:t,slots:n}){const{data:i,showLine:o,multiple:s,loadMore:r,checkStrictly:a,checkedKeys:u,defaultCheckedKeys:c,selectedKeys:l,defaultSelectedKeys:g,expandedKeys:C,defaultExpandedKeys:S,checkedStrategy:_,selectable:A,checkable:y,blockNode:d,fieldNames:v,size:m,defaultExpandAll:f,filterTreeNode:p,draggable:h,allowDrop:b,defaultExpandSelected:w,defaultExpandChecked:k,autoExpandParent:$,halfCheckedKeys:E,onlyCheckLeaf:N,animation:j}=lt(e),z=de("tree"),V=P(()=>[`${z}`,{[`${z}-checkable`]:y.value,[`${z}-show-line`]:o.value},`${z}-size-${m.value}`]),W=Ds(n,"switcher-icon"),H=Ds(n,"loading-icon"),U=Ds(n,"drag-icon"),Q=Ds(n,"icon"),q=Ds(n,"title"),ae=Ds(n,"extra"),{treeData:ne,flattenTreeData:be,key2TreeNode:te}=xH(it({treeData:i,selectable:A,showLine:o,blockNode:d,checkable:y,fieldNames:v,loadMore:r,draggable:h})),{checkedKeys:Ie,indeterminateKeys:$e,setCheckedState:Me}=mCe(it({defaultCheckedKeys:c,checkedKeys:u,checkStrictly:a,key2TreeNode:te,halfCheckedKeys:E,onlyCheckLeaf:N})),[ge,Se]=cr((g==null?void 0:g.value)||[],it({value:l})),fe=he([]),pe=he();function je(){if(S!=null&&S.value){const nt=new Set([]);return S.value.forEach(St=>{if(nt.has(St))return;const bt=te.value.get(St);bt&&[...$.value?bt.pathParentKeys:[],St].forEach(It=>nt.add(It))}),[...nt]}if(f.value)return be.value.filter(nt=>nt.children&&nt.children.length).map(nt=>nt.key);if(w.value||k.value){const nt=new Set([]),St=bt=>{bt.forEach(It=>{const Mt=te.value.get(It);Mt&&(Mt.pathParentKeys||[]).forEach(Rt=>nt.add(Rt))})};return w.value&&St(ge.value),k.value&&St(Ie.value),[...nt]}return[]}const[Y,Z]=cr(je(),it({value:C})),ee=he([]),ce=P(()=>{const nt=new Set(Y.value),St=new Set(ee.value);return be.value.filter(bt=>{var It;if(!(!p||!p.value||(p==null?void 0:p.value(bt.treeNodeData))))return!1;const Rt=jt(bt.parentKey),mn=(It=bt.pathParentKeys)==null?void 0:It.every(xn=>nt.has(xn)&&!St.has(xn));return Rt||mn})});function xe(nt,St=_.value){let bt=[...nt];return St==="parent"?bt=nt.filter(It=>{const Mt=te.value.get(It);return Mt&&!(!jt(Mt.parentKey)&&nt.includes(Mt.parentKey))}):St==="child"&&(bt=nt.filter(It=>{var Mt,Rt;return!((Rt=(Mt=te.value.get(It))==null?void 0:Mt.children)!=null&&Rt.length)})),bt}function re(nt){return nt.map(St=>{var bt;return((bt=te.value.get(St))==null?void 0:bt.treeNodeData)||void 0}).filter(Boolean)}function le(nt){const{targetKey:St,targetChecked:bt,newCheckedKeys:It,newIndeterminateKeys:Mt,event:Rt}=nt,mn=St?te.value.get(St):void 0,xn=xe(It);t("update:checkedKeys",xn),t("update:halfCheckedKeys",Mt),t("check",xn,{checked:bt,node:mn==null?void 0:mn.treeNodeData,checkedNodes:re(xn),halfCheckedKeys:Mt,halfCheckedNodes:re(Mt),e:Rt})}function ve(nt){const{targetKey:St,targetSelected:bt,newSelectedKeys:It,event:Mt}=nt,Rt=St?te.value.get(St):void 0;t("update:selectedKeys",It),t("select",It,{selected:bt,node:Rt==null?void 0:Rt.treeNodeData,selectedNodes:re(It),e:Mt})}function De(nt){const{targetKey:St,targetExpanded:bt,newExpandedKeys:It,event:Mt}=nt,Rt=St?te.value.get(St):void 0;t("expand",It,{expanded:bt,node:Rt==null?void 0:Rt.treeNodeData,expandedNodes:re(It),e:Mt}),t("update:expandedKeys",It)}function Ee(nt){const[St,bt]=Me(nt,[],!0);le({newCheckedKeys:St,newIndeterminateKeys:bt})}function we(nt){let St=nt;!s.value&&nt.length>1&&(St=[nt[0]]),Se(St),ve({newSelectedKeys:St})}function me(nt){ee.value=[],Z(nt),De({newExpandedKeys:nt})}function Ae(nt,St,bt){if(!nt.length)return;let It=[...Ie.value],Mt=[...$e.value];nt.forEach(Rt=>{const mn=te.value.get(Rt);mn&&([It,Mt]=SE({node:mn,checked:St,checkedKeys:[...It],indeterminateKeys:[...Mt],checkStrictly:a.value}))}),Me(It,Mt),le({targetKey:bt,targetChecked:jt(bt)?void 0:St,newCheckedKeys:It,newIndeterminateKeys:Mt})}function Fe(nt,St,bt){if(!nt.length)return;let It;if(s.value){const Mt=new Set(ge.value);nt.forEach(Rt=>{St?Mt.add(Rt):Mt.delete(Rt)}),It=[...Mt]}else It=St?[nt[0]]:[];Se(It),ve({targetKey:bt,targetSelected:jt(bt)?void 0:St,newSelectedKeys:It})}function Ne(nt,St,bt){const It=new Set(Y.value);nt.forEach(Rt=>{St?It.add(Rt):It.delete(Rt),Xe(Rt)});const Mt=[...It];Z(Mt),De({targetKey:bt,targetExpanded:jt(bt)?void 0:St,newExpandedKeys:Mt})}function ze(nt,St,bt){const It=te.value.get(St);if(!It)return;const[Mt,Rt]=SE({node:It,checked:nt,checkedKeys:Ie.value,indeterminateKeys:$e.value,checkStrictly:a.value});Me(Mt,Rt),le({targetKey:St,targetChecked:nt,newCheckedKeys:Mt,newIndeterminateKeys:Rt,event:bt})}function Ue(nt,St){if(!te.value.get(nt))return;let It,Mt;if(s.value){const Rt=new Set(ge.value);Mt=!Rt.has(nt),Mt?Rt.add(nt):Rt.delete(nt),It=[...Rt]}else Mt=!0,It=[nt];Se(It),ve({targetKey:nt,targetSelected:Mt,newSelectedKeys:It,event:St})}function et(nt,St,bt){if(ee.value.includes(St)||!te.value.get(St))return;const Mt=new Set(Y.value);nt?Mt.add(St):Mt.delete(St);const Rt=[...Mt];Z(Rt),j.value&&ee.value.push(St),De({targetKey:St,targetExpanded:nt,newExpandedKeys:Rt,event:bt})}function Xe(nt){const St=ee.value.indexOf(nt);ee.value.splice(St,1)}const yt=P(()=>r!=null&&r.value?async nt=>{if(!Nt(r.value))return;const St=te.value.get(nt);if(!St)return;const{treeNodeData:bt}=St;fe.value=[...new Set([...fe.value,nt])];try{await r.value(bt),fe.value=fe.value.filter(It=>It!==nt),et(!0,nt),Ie.value.includes(nt)&&ze(!0,nt)}catch(It){fe.value=fe.value.filter(Mt=>Mt!==nt),console.error("[tree]load data error: ",It)}}:void 0),Et=it({treeProps:e,switcherIcon:W,loadingIcon:H,dragIcon:U,nodeIcon:Q,nodeTitle:q,nodeExtra:ae,treeData:ne,flattenTreeData:be,key2TreeNode:te,checkedKeys:Ie,indeterminateKeys:$e,selectedKeys:ge,expandedKeys:Y,loadingKeys:fe,currentExpandKeys:ee,onLoadMore:yt,filterTreeNode:p,onCheck:ze,onSelect:Ue,onExpand:et,onExpandEnd:Xe,allowDrop(nt,St){const bt=te.value.get(nt);return bt&&Nt(b.value)?!!b.value({dropNode:bt.treeNodeData,dropPosition:St}):!0},onDragStart(nt,St){const bt=te.value.get(nt);pe.value=bt,bt&&t("dragStart",St,bt.treeNodeData)},onDragEnd(nt,St){const bt=te.value.get(nt);pe.value=void 0,bt&&t("dragEnd",St,bt.treeNodeData)},onDragOver(nt,St){const bt=te.value.get(nt);bt&&t("dragOver",St,bt.treeNodeData)},onDragLeave(nt,St){const bt=te.value.get(nt);bt&&t("dragLeave",St,bt.treeNodeData)},onDrop(nt,St,bt){const It=te.value.get(nt);pe.value&&It&&!(It.key===pe.value.key||It.pathParentKeys.includes(pe.value.key||""))&&t("drop",{e:bt,dragNode:pe.value.treeNodeData,dropNode:It.treeNodeData,dropPosition:St})}});return cn(SH,Et),{classNames:V,visibleTreeNodeList:ce,treeContext:Et,virtualListRef:he(),computedSelectedKeys:ge,computedExpandedKeys:Y,computedCheckedKeys:Ie,computedIndeterminateKeys:$e,getPublicCheckedKeys:xe,getNodes:re,internalCheckNodes:Ae,internalSetCheckedKeys:Ee,internalSelectNodes:Fe,internalSetSelectedKeys:we,internalExpandNodes:Ne,internalSetExpandedKeys:me}},methods:{toggleCheck(e,t){const{key2TreeNode:n,onCheck:i,checkedKeys:o}=this.treeContext,s=!o.includes(e),r=n.get(e);r&&Zd(r)&&i(s,e,t)},scrollIntoView(e){this.virtualListRef&&this.virtualListRef.scrollTo(e)},getSelectedNodes(){return this.getNodes(this.computedSelectedKeys)},getCheckedNodes(e={}){const{checkedStrategy:t,includeHalfChecked:n}=e,i=this.getPublicCheckedKeys(this.computedCheckedKeys,t);return[...this.getNodes(i),...n?this.getHalfCheckedNodes():[]]},getHalfCheckedNodes(){return this.getNodes(this.computedIndeterminateKeys)},getExpandedNodes(){return this.getNodes(this.computedExpandedKeys)},checkAll(e=!0){const{key2TreeNode:t}=this.treeContext,n=e?[...t.keys()].filter(i=>{const o=t.get(i);return o&&Zd(o)}):[];this.internalSetCheckedKeys(n)},checkNode(e,t=!0,n=!1){const{checkStrictly:i,treeContext:o}=this,{key2TreeNode:s}=o,r=Kt(e),a=(r?e:[e]).filter(u=>{const c=s.get(u);return c&&Zd(c)&&(i||!n||Dke(c))});this.internalCheckNodes(a,t,r?void 0:e)},selectAll(e=!0){const{key2TreeNode:t}=this.treeContext,n=e?[...t.keys()].filter(i=>{const o=t.get(i);return o&&bE(o)}):[];this.internalSetSelectedKeys(n)},selectNode(e,t=!0){const{key2TreeNode:n}=this.treeContext,i=Kt(e),o=(i?e:[e]).filter(s=>{const r=n.get(s);return r&&bE(r)});this.internalSelectNodes(o,t,i?void 0:e)},expandAll(e=!0){const{key2TreeNode:t}=this.treeContext,n=e?[...t.keys()].filter(i=>{const o=t.get(i);return o&&a9(o)}):[];this.internalSetExpandedKeys(n)},expandNode(e,t=!0){const{key2TreeNode:n}=this.treeContext,i=Kt(e),o=(i?e:[e]).filter(s=>{const r=n.get(s);return r&&a9(r)});this.internalExpandNodes(o,t,i?void 0:e)}}});function gCe(e,t,n,i,o,s){const r=Pe("TreeNode"),a=Pe("VirtualList");return R(),X("div",{class:G(e.classNames)},[e.virtualListProps?(R(),We(a,Qe({key:0,ref:"virtualListRef"},e.virtualListProps,{data:e.visibleTreeNodeList}),{item:Ve(({item:u})=>[O(r,Qe({key:`${e.searchValue}-${u.key}`},u.treeNodeProps),null,16)]),_:1},16,["data"])):(R(!0),X(ft,{key:1},dn(e.visibleTreeNodeList,u=>(R(),We(r,Qe({key:u.key},u.treeNodeProps),null,16))),128))],2)}var T3=ye(vCe,[["render",gCe]]);const IE=Object.assign(T3,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+T3.name,T3)}}),yCe=se({name:"Typography",setup(){return{classNames:[de("typography")]}}});function bCe(e,t,n,i,o,s){return R(),X("article",{class:G(e.classNames)},[He(e.$slots,"default")],2)}var P3=ye(yCe,[["render",bCe]]);const kCe=se({name:"TypographyEditContent",components:{Input:ou},props:{text:{type:String,required:!0}},emits:["change","end","update:text"],setup(e,{emit:t}){const i=[`${de("typography")}-edit-content`],o=he();function s(a){t("update:text",a),t("change",a)}function r(){t("end")}return Yt(()=>{if(!o.value||!o.value.$el)return;const a=o.value.$el.querySelector("input");if(!a)return;a.focus&&a.focus();const{length:u}=a.value;a.setSelectionRange(u,u)}),{classNames:i,inputRef:o,onBlur:r,onChange:s,onEnd:r}}});function CCe(e,t,n,i,o,s){const r=Pe("Input");return R(),X("div",{class:G(e.classNames)},[O(r,{ref:"inputRef","auto-size":"","model-value":e.text,onBlur:e.onBlur,onInput:e.onChange,onKeydown:_a(e.onEnd,["enter"])},null,8,["model-value","onBlur","onInput","onKeydown"])],2)}var SCe=ye(kCe,[["render",CCe]]);const wCe=se({name:"IconCopy",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-copy`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),_Ce=["stroke-width","stroke-linecap","stroke-linejoin"],ICe=B("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"},null,-1),xCe=[ICe];function $Ce(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},xCe,14,_Ce)}var O3=ye(wCe,[["render",$Ce]]);const $H=Object.assign(O3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+O3.name,O3)}}),ACe=se({name:"IconEdit",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-edit`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),ECe=["stroke-width","stroke-linecap","stroke-linejoin"],MCe=B("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"},null,-1),TCe=[MCe];function PCe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},TCe,14,ECe)}var L3=ye(ACe,[["render",PCe]]);const AH=Object.assign(L3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+L3.name,L3)}}),OCe=se({name:"TypographyOperations",components:{Tooltip:us,IconCheckCircleFill:ru,IconCopy:$H,IconEdit:AH},props:{editable:Boolean,copyable:Boolean,expandable:Boolean,isCopied:Boolean,isEllipsis:Boolean,expanded:Boolean,forceRenderExpand:Boolean,editTooltipProps:Object,copyTooltipProps:Object},emits:{edit:()=>!0,copy:()=>!0,expand:()=>!0},setup(e,{emit:t}){const n=de("typography"),i=P(()=>e.forceRenderExpand||e.expandable&&e.isEllipsis),{t:o}=fi();return{prefixCls:n,showExpand:i,t:o,onEditClick(){t("edit")},onCopyClick(){t("copy")},onExpandClick(){t("expand")}}}});function LCe(e,t,n,i,o,s){const r=Pe("IconEdit"),a=Pe("Tooltip"),u=Pe("IconCheckCircleFill"),c=Pe("IconCopy");return R(),X(ft,null,[e.editable?(R(),We(a,Qe({key:0,content:e.t("typography.edit")},e.editTooltipProps),{default:Ve(()=>[B("span",{class:G(`${e.prefixCls}-operation-edit`),onClick:t[0]||(t[0]=oo((...l)=>e.onEditClick&&e.onEditClick(...l),["stop"]))},[O(r)],2)]),_:1},16,["content"])):Re("v-if",!0),e.copyable?(R(),We(a,Bn(Qe({key:1},e.copyTooltipProps)),{content:Ve(()=>[He(e.$slots,"copy-tooltip",{copied:e.isCopied},()=>[pt(tt(e.isCopied?e.t("typography.copied"):e.t("typography.copy")),1)])]),default:Ve(()=>[B("span",{class:G({[`${e.prefixCls}-operation-copied`]:e.isCopied,[`${e.prefixCls}-operation-copy`]:!e.isCopied}),onClick:t[1]||(t[1]=oo((...l)=>e.onCopyClick&&e.onCopyClick(...l),["stop"]))},[He(e.$slots,"copy-icon",{copied:e.isCopied},()=>[e.isCopied?(R(),We(u,{key:0})):(R(),We(c,{key:1}))])],2)]),_:3},16)):Re("v-if",!0),e.showExpand?(R(),X("a",{key:2,class:G(`${e.prefixCls}-operation-expand`),onClick:t[2]||(t[2]=oo((...l)=>e.onExpandClick&&e.onExpandClick(...l),["stop"]))},[He(e.$slots,"expand-node",{expanded:e.expanded},()=>[pt(tt(e.expanded?e.t("typography.collapse"):e.t("typography.expand")),1)])],2)):Re("v-if",!0)],64)}var p9=ye(OCe,[["render",LCe]]);let Wi;function DCe(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function D3(e){if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}var NCe=(e,t,n,i)=>{Wi||(Wi=document.createElement("div"),document.body.appendChild(Wi));const{rows:o,suffix:s,ellipsisStr:r}=t,a=window.getComputedStyle(e),u=DCe(a),c=D3(a.lineHeight),l=Math.round(c*o+D3(a.paddingTop)+D3(a.paddingBottom));Wi.setAttribute("style",u),Wi.setAttribute("aria-hidden","true"),Wi.style.height="auto",Wi.style.minHeight="auto",Wi.style.maxHeight="auto",Wi.style.position="fixed",Wi.style.left="0",Wi.style.top="-99999999px",Wi.style.zIndex="-200",Wi.style.whiteSpace="normal";const g=Kc({render(){return O("span",null,[n])}});g.mount(Wi);const C=Array.prototype.slice.apply(Wi.childNodes[0].cloneNode(!0).childNodes);g.unmount(),Wi.innerHTML="";const S=document.createTextNode(`${r}${s}`);Wi.appendChild(S),C.forEach(d=>{Wi.appendChild(d)});const _=document.createTextNode(i);Wi.insertBefore(_,S);function A(){return Wi.offsetHeight<=l}if(A())return{ellipsis:!1,text:i};function y(d,v=0,m=i.length,f=0){const p=Math.floor((v+m)/2),h=i.slice(0,p);if(d.textContent=h,v>=m-1)for(let b=m;b>=v;b-=1){const w=i.slice(0,b);if(d.textContent=w,A()||!w)return}A()?y(d,p,m,p):y(d,v,p,f)}return y(_),{text:_.textContent,ellipsis:!0}};const jCe=async e=>{var t;if((t=navigator.clipboard)!=null&&t.writeText)try{await navigator.clipboard.writeText(e);return}catch(s){console.error(s??new DOMException("The request is not allowed","NotAllowedError"))}const n=document.createElement("span");n.textContent=e,n.style.whiteSpace="pre",document.body.appendChild(n);const i=window.getSelection(),o=window.document.createRange();i==null||i.removeAllRanges(),o.selectNode(n),i==null||i.addRange(o);try{window.document.execCommand("copy")}catch(s){console.error(`execCommand Error: ${s}`)}i==null||i.removeAllRanges(),window.document.body.removeChild(n)};let xf;function zCe(e){if(!e)return"";xf||(xf=document.createElement("div"),xf.setAttribute("aria-hidden","true"),document.body.appendChild(xf));const t=Kc({render(){return O("div",null,[e])}});t.mount(xf);const n=xf.innerText;return t.unmount(),n}var RCe=Object.defineProperty,BCe=Object.defineProperties,FCe=Object.getOwnPropertyDescriptors,m9=Object.getOwnPropertySymbols,VCe=Object.prototype.hasOwnProperty,HCe=Object.prototype.propertyIsEnumerable,v9=(e,t,n)=>t in e?RCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,WCe=(e,t)=>{for(var n in t||(t={}))VCe.call(t,n)&&v9(e,n,t[n]);if(m9)for(var n of m9(t))HCe.call(t,n)&&v9(e,n,t[n]);return e},UCe=(e,t)=>BCe(e,FCe(t));function EH(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}function ZCe(e){const{bold:t,mark:n,underline:i,delete:o,code:s}=e,r=[];return t&&r.push("b"),i&&r.push("u"),o&&r.push("del"),s&&r.push("code"),n&&r.push("mark"),r}function g9(e,t){const{mark:n}=e,i=ZCe(e),o=rn(n)&&n.color?{backgroundColor:n.color}:{};return i.reduce((s,r)=>O(r,r==="mark"?{style:o}:{},EH(s)?s:{default:()=>[s]}),t)}function GCe(e){const t=!!e.showTooltip,n=rn(e.showTooltip)&&e.showTooltip.type==="popover"?lP:us,i=rn(e.showTooltip)&&e.showTooltip.props||{};return UCe(WCe({rows:1,suffix:"",ellipsisStr:"...",expandable:!1,css:!1},kr(e,["showTooltip"])),{showTooltip:t,TooltipComponent:n,tooltipProps:i})}var zP=se({name:"TypographyBase",inheritAttrs:!1,props:{component:{type:String,required:!0},type:{type:String},bold:{type:Boolean},mark:{type:[Boolean,Object],default:!1},underline:{type:Boolean},delete:{type:Boolean},code:{type:Boolean},disabled:{type:Boolean},editable:{type:Boolean},editing:{type:Boolean,default:void 0},defaultEditing:{type:Boolean},editText:{type:String},copyable:{type:Boolean},copyText:{type:String},copyDelay:{type:Number,default:3e3},ellipsis:{type:[Boolean,Object],default:!1},editTooltipProps:{type:Object},copyTooltipProps:{type:Object}},emits:{editStart:()=>!0,change:e=>!0,"update:editText":e=>!0,editEnd:()=>!0,"update:editing":e=>!0,copy:e=>!0,ellipsis:e=>!0,expand:e=>!0},setup(e,{slots:t,emit:n,attrs:i}){const{editing:o,defaultEditing:s,ellipsis:r,copyable:a,editable:u,copyText:c,editText:l,copyDelay:g,component:C}=lt(e),S=de("typography"),_=P(()=>[S,{[`${S}-${e.type}`]:e.type,[`${S}-disabled`]:e.disabled}]),A=he(),y=he(""),[d,v]=cr(s.value,it({value:o})),m=P(()=>u.value&&d.value);function f(){n("update:editing",!0),n("editStart"),v(!0)}function p(Ie){n("update:editText",Ie),n("change",Ie)}function h(){d.value&&(n("update:editing",!1),n("editEnd"),v(!1))}const b=he(!1);let w=null;function k(){var Ie;const $e=(Ie=c.value)!=null?Ie:y.value;jCe($e||""),b.value=!0,n("copy",$e),w=setTimeout(()=>{b.value=!1},g.value)}$i(()=>{w&&clearTimeout(w),w=null});const $=he(!1),E=he(!1),N=he(""),j=P(()=>GCe(rn(r.value)&&r.value||{}));let z=null;function V(){const Ie=!E.value;E.value=Ie,n("expand",Ie)}function W(Ie=!1){return j.value.css?O(p9,{editable:u.value,copyable:a.value,expandable:j.value.expandable,isCopied:b.value,isEllipsis:ne.value,expanded:E.value,forceRenderExpand:Ie||E.value,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:f,onCopy:k,onExpand:V},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]}):O(p9,{editable:u.value,copyable:a.value,expandable:j.value.expandable,isCopied:b.value,isEllipsis:$.value,expanded:E.value,forceRenderExpand:Ie,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:f,onCopy:k,onExpand:V},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]})}function H(){if(!A.value)return;const{ellipsis:Ie,text:$e}=NCe(A.value,j.value,W(!!j.value.expandable),y.value);$.value!==Ie&&($.value=Ie,j.value.css||n("ellipsis",Ie)),N.value!==$e&&(N.value=$e||"")}function U(){r.value&&!E.value&&(Yk(z),z=WB(()=>{H()}))}$i(()=>{Yk(z)}),gt(()=>j.value.rows,()=>{U()}),gt(r,Ie=>{Ie?U():$.value=!1});let Q=[];const q=()=>{if(r.value||a.value||u.value){const Ie=zCe(Q);Ie!==y.value&&(y.value=Ie,U())}};Yt(q),Bi(q);const ae=he(),ne=he(!1),be=()=>{if(A.value&&ae.value){const Ie=ae.value.offsetHeight>A.value.offsetHeight;Ie!==ne.value&&(ne.value=Ie,n("ellipsis",Ie))}},te=P(()=>E.value?{}:{overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-line-clamp":j.value.rows,"-webkit-box-orient":"vertical"});return()=>{var Ie,$e;if(Q=((Ie=t.default)==null?void 0:Ie.call(t))||[],m.value){const ce=($e=l.value)!=null?$e:y.value;return O(SCe,{text:ce,onChange:xe=>{xe!==ce&&p(xe)},onEnd:h},null)}const{suffix:Me,ellipsisStr:ge,showTooltip:Se,tooltipProps:fe,TooltipComponent:pe}=j.value,je=$.value&&!E.value,Y=je&&!Se?{title:y.value}:{},Z=C.value;if(j.value.css){const ce=g9(e,Q),xe=O(Z,Qe({class:_.value,ref:A,style:te.value},Y,i),{default:()=>[O("span",{ref:ae},[ce])]});return ne.value?O(pe,Qe(fe,{onResize:()=>be()}),{default:()=>[xe],content:()=>y.value}):O(Us,{onResize:()=>{be()}},EH(xe)?xe:{default:()=>[xe]})}const ee=g9(e,je?N.value:Q);return O(Us,{onResize:()=>U()},{default:()=>[O(Z,Qe({class:_.value,ref:A},Y,i),{default:()=>[je&&Se?O(pe,fe,{default:()=>[O("span",null,[ee])],content:()=>y.value}):ee,je?ge:null,Me,W()]})]})}}}),Rb=se({name:"TypographyParagraph",inheritAttrs:!1,props:{blockquote:{type:Boolean},spacing:{type:String,default:"default"}},setup(e){const{blockquote:t,spacing:n}=lt(e),i=de("typography"),o=P(()=>t!=null&&t.value?"blockquote":"div"),s=P(()=>[{[`${i}-spacing-close`]:(n==null?void 0:n.value)==="close"}]);return{component:o,classNames:s}},render(){const{component:e,classNames:t}=this;return O(zP,Qe({class:t},this.$attrs,{component:e}),this.$slots)}}),Bb=se({name:"TypographyTitle",inheritAttrs:!1,props:{heading:{type:Number,default:1}},setup(e){const{heading:t}=lt(e);return{component:P(()=>`h${t==null?void 0:t.value}`)}},render(){const{component:e}=this;return O(zP,Qe(this.$attrs,{component:e}),this.$slots)}}),Fb=se({name:"TypographyText",inheritAttrs:!1,props:{ellipsis:{type:[Boolean,Object],default:!1}},setup(e){const{ellipsis:t}=lt(e);return{component:P(()=>t!=null&&t.value?"div":"span")}},render(){const{ellipsis:e,component:t}=this;return O(zP,Qe(this.$attrs,{ellipsis:e,component:t}),this.$slots)}});const YCe=Object.assign(P3,{Paragraph:Rb,Title:Bb,Text:Fb,install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+P3.name,P3),e.component(n+Rb.name,Rb),e.component(n+Bb.name,Bb),e.component(n+Fb.name,Fb)}}),y9=e=>{const t=e.responseText||e.response;if(!t)return;const n=e.getResponseHeader("Content-Type");if(n&&n.includes("json"))try{return JSON.parse(t)}catch{return t}return t},XCe=e=>{switch(e){case"done":return"success";case"error":return"danger";default:return"normal"}},b9=(e,t)=>Nt(e)?e(t):e,KCe=({fileItem:e,action:t,name:n,data:i,headers:o={},withCredentials:s=!1,onProgress:r=eh,onSuccess:a=eh,onError:u=eh})=>{const c=b9(n,e)||"file",l=b9(i,e),g=new XMLHttpRequest;s&&(g.withCredentials=!0),g.upload.onprogress=S=>{const _=S.total>0?so.round(S.loaded/S.total,2):0;r(_,S)},g.onerror=function(_){u(_)},g.onload=()=>{if(g.status<200||g.status>=300){u(y9(g));return}a(y9(g))};const C=new FormData;if(l)for(const S of Object.keys(l))C.append(S,l[S]);e.file&&C.append(c,e.file),g.open("post",t??"",!0);for(const S of Object.keys(o))g.setRequestHeader(S,o[S]);return g.send(C),{abort(){g.abort()}}},MH=(e,t)=>{if(t&&e){const n=Kt(t)?t:t.split(",").map(o=>o.trim()).filter(o=>o),i=(e.name.indexOf(".")>-1?`.${e.name.split(".").pop()}`:"").toLowerCase();return n.some(o=>{const s=o&&o.toLowerCase(),r=(e.type||"").toLowerCase(),a=r.split("/")[0];if(s===r||`${a}${i.replace(".","/")}`===s||/^\*(\/\*)?$/.test(s))return!0;if(/\/\*/.test(s))return r.replace(/\/.*$/,"")===s.replace(/\/.*$/,"");if(/\..*/.test(s)){let u=[s];return(s===".jpg"||s===".jpeg")&&(u=[".jpg",".jpeg"]),u.indexOf(i)>-1}return!1})}return!!e},JCe=(e,t,n)=>{const i=[];let o=0;const s=()=>{!o&&n(i)},r=a=>{if(o+=1,a!=null&&a.isFile){a.file(u=>{o-=1,MH(u,t)&&(Object.defineProperty(u,"webkitRelativePath",{value:a.fullPath.replace(/^\//,"")}),i.push(u)),s()});return}if(a!=null&&a.isDirectory){const u=a.createReader();let c=!1;const l=()=>{u.readEntries(g=>{c||(o-=1,c=!0),g.length===0?s():(l(),g.forEach(r))})};l();return}o-=1,s()};[].slice.call(e).forEach(a=>a.webkitGetAsEntry&&r(a.webkitGetAsEntry()))},qCe=e=>{var t;return(t=e.type)==null?void 0:t.includes("image")},N3=(e,t)=>{if(!e)return[];const n=Array.from(e);return t?n.filter(i=>MH(i,t)):n},QCe=se({name:"IconUpload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-upload`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),e2e=["stroke-width","stroke-linecap","stroke-linejoin"],t2e=B("path",{d:"M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"},null,-1),n2e=[t2e];function i2e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},n2e,14,e2e)}var j3=ye(QCe,[["render",i2e]]);const fw=Object.assign(j3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+j3.name,j3)}});var r2e=se({name:"UploadButton",props:{disabled:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},accept:String,listType:{type:String},tip:String,draggable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},uploadFiles:{type:Function,required:!0},hide:Boolean,onButtonClick:{type:Function}},setup(e,{slots:t}){const n=de("upload"),{t:i}=fi(),o=he(!1),s=he(null),r=he(null),a=he(0),u=y=>{y==="subtract"?a.value-=1:y==="add"?a.value+=1:y==="reset"&&(a.value=0)},c=y=>{if(!e.disabled){if(Nt(e.onButtonClick)){const d=e.onButtonClick(y);if(Kd(d)){d.then(v=>{e.uploadFiles(N3(v))});return}}s.value&&s.value.click()}},l=y=>{const d=y.target;d.files&&e.uploadFiles(N3(d.files)),d.value=""},g=y=>{var d,v;if(y.preventDefault(),o.value=!1,u("reset"),!e.disabled)if(e.directory&&((d=y.dataTransfer)!=null&&d.items))JCe(y.dataTransfer.items,e.accept,m=>{e.uploadFiles(m)});else{const m=N3((v=y.dataTransfer)==null?void 0:v.files,e.accept);e.uploadFiles(e.multiple?m:m.slice(0,1))}},C=y=>{y.preventDefault(),u("subtract"),a.value===0&&(o.value=!1,u("reset"))},S=y=>{y.preventDefault(),!e.disabled&&!o.value&&(o.value=!0)},_=()=>t.default?O("span",null,[t.default()]):e.listType==="picture-card"?O("div",{class:`${n}-picture-card`},[O("div",{class:`${n}-picture-card-text`},[O(Qd,null,null)]),e.tip&&O("div",{class:`${n}-tip`},[e.tip])]):e.draggable?O("div",{class:[`${n}-drag`,{[`${n}-drag-active`]:o.value}]},[O("div",null,[O(Qd,null,null)]),O("div",{class:`${n}-drag-text`},[o.value?i("upload.dragHover"):i("upload.drag")]),e.tip&&O("div",{class:`${n}-tip`},[e.tip])]):O(Yr,{type:"primary",disabled:e.disabled},{default:()=>[i("upload.buttonText")],icon:()=>O(fw,null,null)}),A=P(()=>[n,{[`${n}-type-picture-card`]:e.listType==="picture-card",[`${n}-draggable`]:e.draggable,[`${n}-disabled`]:e.disabled,[`${n}-hide`]:e.hide}]);return()=>O("span",{ref:r,class:A.value,onClick:c,onDragenter:()=>{u("add")},onDrop:g,onDragover:S,onDragleave:C},[O("input",Qe({ref:s,type:"file",style:{display:"none"},disabled:e.disabled,accept:e.accept,multiple:e.multiple},e.directory?{webkitdirectory:"webkitdirectory"}:{},{onChange:l}),null),_()])}});const o2e=se({name:"IconPause",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-pause`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),s2e=["stroke-width","stroke-linecap","stroke-linejoin"],a2e=B("path",{d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1),l2e=B("path",{fill:"currentColor",stroke:"none",d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1),c2e=[a2e,l2e];function u2e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},c2e,14,s2e)}var z3=ye(o2e,[["render",u2e]]);const TH=Object.assign(z3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+z3.name,z3)}}),d2e=se({name:"IconPlayArrowFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-play-arrow-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),f2e=["stroke-width","stroke-linecap","stroke-linejoin"],h2e=B("path",{d:"M17.533 10.974a1 1 0 0 0-1.537.844v24.356a1 1 0 0 0 1.537.844L36.67 24.84a1 1 0 0 0 0-1.688L17.533 10.974Z",fill:"currentColor",stroke:"none"},null,-1),p2e=[h2e];function m2e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},p2e,14,f2e)}var R3=ye(d2e,[["render",m2e]]);const PH=Object.assign(R3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+R3.name,R3)}}),hw=Symbol("ArcoUpload");var OH=se({name:"UploadProgress",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=de("upload-progress"),{t:n}=fi(),i=Dt(hw,void 0),o=()=>{var r,a,u,c,l,g,C,S,_,A,y;return e.file.status==="error"?O("span",{class:[i==null?void 0:i.iconCls,`${i==null?void 0:i.iconCls}-upload`],onClick:()=>i==null?void 0:i.onUpload(e.file)},[i!=null&&i.showRetryButton&&((l=(a=i==null?void 0:(r=i.slots)["retry-icon"])==null?void 0:a.call(r))!=null?l:(c=(u=i==null?void 0:i.customIcon)==null?void 0:u.retryIcon)!=null&&c.call(u))||e.listType==="picture-card"?O(fw,null,null):n("upload.retry")]):e.file.status==="done"?O("span",{class:[i==null?void 0:i.iconCls,`${i==null?void 0:i.iconCls}-success`]},[(y=(A=(C=i==null?void 0:(g=i.slots)["success-icon"])==null?void 0:C.call(g))!=null?A:(_=(S=i==null?void 0:i.customIcon)==null?void 0:S.successIcon)==null?void 0:_.call(S))!=null?y:O(C1,null,null)]):e.file.status==="init"?O(us,{content:n("upload.start")},{default:()=>{var d,v,m,f,p,h;return[O("span",{class:[i==null?void 0:i.iconCls,`${i==null?void 0:i.iconCls}-start`],onClick:()=>i==null?void 0:i.onUpload(e.file)},[(h=(p=(v=i==null?void 0:(d=i.slots)["start-icon"])==null?void 0:v.call(d))!=null?p:(f=(m=i==null?void 0:i.customIcon)==null?void 0:m.startIcon)==null?void 0:f.call(m))!=null?h:O(PH,null,null)])]}}):(i==null?void 0:i.showCancelButton)&&O(us,{content:n("upload.cancel")},{default:()=>{var d,v,m,f,p,h;return[O("span",{class:[i==null?void 0:i.iconCls,`${i==null?void 0:i.iconCls}-cancel`],onClick:()=>i==null?void 0:i.onAbort(e.file)},[(h=(p=(v=i==null?void 0:(d=i.slots)["cancel-icon"])==null?void 0:v.call(d))!=null?p:(f=(m=i==null?void 0:i.customIcon)==null?void 0:m.cancelIcon)==null?void 0:f.call(m))!=null?h:O(TH,null,null)])]}})},s=()=>{var r;if(["init","uploading"].includes((r=e.file.status)!=null?r:"")){const a=XCe(e.file.status);return O(iH,{type:"circle",size:"mini",showText:!1,status:a,percent:e.file.percent},null)}return null};return()=>O("span",{class:t},[s(),o()])}});const v2e=se({name:"IconFilePdf",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-file-pdf`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),g2e=["stroke-width","stroke-linecap","stroke-linejoin"],y2e=B("path",{d:"M11 42h26a2 2 0 0 0 2-2V13.828a2 2 0 0 0-.586-1.414l-5.828-5.828A2 2 0 0 0 31.172 6H11a2 2 0 0 0-2 2v32a2 2 0 0 0 2 2Z"},null,-1),b2e=B("path",{d:"M22.305 21.028c.874 1.939 3.506 6.265 4.903 8.055 1.747 2.237 3.494 2.685 4.368 2.237.873-.447 1.21-4.548-7.425-2.685-7.523 1.623-7.424 3.58-6.988 4.476.728 1.193 2.522 2.627 5.678-6.266C25.699 18.79 24.489 17 23.277 17c-1.409 0-2.538.805-.972 4.028Z"},null,-1),k2e=[y2e,b2e];function C2e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},k2e,14,g2e)}var B3=ye(v2e,[["render",C2e]]);const LH=Object.assign(B3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+B3.name,B3)}}),S2e=se({name:"IconFileImage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-file-image`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),w2e=["stroke-width","stroke-linecap","stroke-linejoin"],_2e=B("path",{d:"m26 33 5-6v6h-5Zm0 0-3-4-4 4h7Zm11 9H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2ZM17 19h1v1h-1v-1Z"},null,-1),I2e=[_2e];function x2e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},I2e,14,w2e)}var F3=ye(S2e,[["render",x2e]]);const DH=Object.assign(F3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+F3.name,F3)}}),$2e=se({name:"IconFileVideo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-file-video`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),A2e=["stroke-width","stroke-linecap","stroke-linejoin"],E2e=B("path",{d:"M37 42H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1),M2e=B("path",{d:"M22 27.796v-6l5 3-5 3Z"},null,-1),T2e=[E2e,M2e];function P2e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},T2e,14,A2e)}var V3=ye($2e,[["render",P2e]]);const NH=Object.assign(V3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+V3.name,V3)}}),O2e=se({name:"IconFileAudio",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-file-audio`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),L2e=["stroke-width","stroke-linecap","stroke-linejoin"],D2e=B("path",{d:"M37 42H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1),N2e=B("path",{d:"M25 30a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",fill:"currentColor",stroke:"none"},null,-1),j2e=B("path",{d:"M25 30a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm0 0-.951-12.363a.5.5 0 0 1 .58-.532L30 18"},null,-1),z2e=[D2e,N2e,j2e];function R2e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},z2e,14,L2e)}var H3=ye(O2e,[["render",R2e]]);const jH=Object.assign(H3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+H3.name,H3)}});var k9=se({name:"UploadListItem",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const n=`${de("upload-list")}-item`,{t:i}=fi(),o=Dt(hw,void 0),s=()=>{var r,a;let u="";if(e.file.file&&e.file.file.type)u=e.file.file.type;else{const c=(a=(r=e.file.name)==null?void 0:r.split(".")[1])!=null?a:"";["png","jpg","jpeg","bmp","gif","webp"].includes(c)?u="image":["mp4","m2v","mkv","m4v","mov"].includes(c)?u="video":["mp3","wav","wmv","m4a","acc","flac"].includes(c)&&(u="audio")}return u.includes("image")?O(DH,null,null):u.includes("pdf")?O(LH,null,null):u.includes("audio")?O(jH,null,null):u.includes("video")?O(NH,null,null):O(jP,null,null)};return()=>{var r,a,u,c,l,g,C,S,_,A,y,d,v,m,f,p,h,b,w,k,$,E,N;return O("div",{class:[n,`${n}-${e.file.status}`]},[O("div",{class:`${n}-content`},[(o==null?void 0:o.listType)==="picture"&&O("span",{class:`${n}-thumbnail`},[(u=(a=o==null?void 0:(r=o.slots).image)==null?void 0:a.call(r,{fileItem:e.file}))!=null?u:O("img",Qe({src:e.file.url,alt:e.file.name},o!=null&&o.imageLoading?{loading:o.imageLoading}:void 0),null)]),O("div",{class:`${n}-name`},[(o==null?void 0:o.listType)==="text"&&O("span",{class:`${n}-file-icon`},[(_=(S=(l=o==null?void 0:(c=o.slots)["file-icon"])==null?void 0:l.call(c,{fileItem:e.file}))!=null?S:(C=(g=o==null?void 0:o.customIcon)==null?void 0:g.fileIcon)==null?void 0:C.call(g,e.file))!=null?_:s()]),o!=null&&o.showLink&&e.file.url?O("a",Qe({class:`${n}-name-link`,target:"_blank",href:e.file.url},o!=null&&o.download?{download:e.file.name}:void 0),[(f=(m=(y=o==null?void 0:(A=o.slots)["file-name"])==null?void 0:y.call(A,{fileItem:e.file}))!=null?m:(v=(d=o==null?void 0:o.customIcon)==null?void 0:d.fileName)==null?void 0:v.call(d,e.file))!=null?f:e.file.name]):O("span",{class:`${n}-name-text`,onClick:()=>o==null?void 0:o.onPreview(e.file)},[($=(k=(h=o==null?void 0:(p=o.slots)["file-name"])==null?void 0:h.call(p,{fileItem:e.file}))!=null?k:(w=(b=o==null?void 0:o.customIcon)==null?void 0:b.fileName)==null?void 0:w.call(b,e.file))!=null?$:e.file.name]),e.file.status==="error"&&O(us,{content:i("upload.error")},{default:()=>{var j,z,V,W,H,U;return[O("span",{class:[o==null?void 0:o.iconCls,`${o==null?void 0:o.iconCls}-error`]},[(U=(H=(z=o==null?void 0:(j=o.slots)["error-icon"])==null?void 0:z.call(j))!=null?H:(W=(V=o==null?void 0:o.customIcon)==null?void 0:V.errorIcon)==null?void 0:W.call(V))!=null?U:O(Ta,null,null)])]}})]),O(OH,{file:e.file,listType:e.listType},null)]),(o==null?void 0:o.showRemoveButton)&&O("span",{class:`${n}-operation`},[O(ai,{onClick:()=>{var j;return(j=o==null?void 0:o.onRemove)==null?void 0:j.call(o,e.file)}},{default:()=>{var j,z,V,W,H,U;return[O("span",{class:[o==null?void 0:o.iconCls,`${o==null?void 0:o.iconCls}-remove`]},[(U=(H=(z=o==null?void 0:(j=o.slots)["remove-icon"])==null?void 0:z.call(j))!=null?H:(W=(V=o==null?void 0:o.customIcon)==null?void 0:V.removeIcon)==null?void 0:W.call(V))!=null?U:O(uw,null,null)])]}})]),(N=o==null?void 0:(E=o.slots)["extra-button"])==null?void 0:N.call(E,{fileItem:e.file})])}}}),C9=se({name:"UploadPictureItem",props:{file:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(e){const n=`${de("upload-list")}-picture`,i=P(()=>[n,{[`${n}-status-error`]:e.file.status==="error"}]),o=Dt(hw,void 0),s=()=>{var r,a,u,c,l,g,C,S,_,A,y,d,v,m,f,p,h,b,w,k,$,E,N,j,z,V,W,H,U;return e.file.status==="uploading"?O(OH,{file:e.file,listType:"picture-card"},null):O(ft,null,[(u=(a=o==null?void 0:(r=o.slots).image)==null?void 0:a.call(r,{fileItem:e.file}))!=null?u:O("img",Qe({src:e.file.url,alt:e.file.name},o!=null&&o.imageLoading?{loading:o.imageLoading}:void 0),null),O("div",{class:`${n}-mask`},[e.file.status==="error"&&(o==null?void 0:o.showCancelButton)&&O("div",{class:`${n}-error-tip`},[O("span",{class:[o==null?void 0:o.iconCls,`${o==null?void 0:o.iconCls}-error`]},[(_=(S=(l=o==null?void 0:(c=o.slots)["error-icon"])==null?void 0:l.call(c))!=null?S:(C=(g=o==null?void 0:o.customIcon)==null?void 0:g.errorIcon)==null?void 0:C.call(g))!=null?_:O(YS,null,null)])]),O("div",{class:`${n}-operation`},[e.file.status!=="error"&&(o==null?void 0:o.showPreviewButton)&&O("span",{class:[o==null?void 0:o.iconCls,`${o==null?void 0:o.iconCls}-preview`],onClick:()=>o==null?void 0:o.onPreview(e.file)},[(f=(m=(y=o==null?void 0:(A=o.slots)["preview-icon"])==null?void 0:y.call(A))!=null?m:(v=(d=o==null?void 0:o.customIcon)==null?void 0:d.previewIcon)==null?void 0:v.call(d))!=null?f:O(nP,null,null)]),["init","error"].includes(e.file.status)&&(o==null?void 0:o.showRetryButton)&&O("span",{class:[o==null?void 0:o.iconCls,`${o==null?void 0:o.iconCls}-upload`],onClick:()=>o==null?void 0:o.onUpload(e.file)},[($=(k=(h=o==null?void 0:(p=o.slots)["retry-icon"])==null?void 0:h.call(p))!=null?k:(w=(b=o==null?void 0:o.customIcon)==null?void 0:b.retryIcon)==null?void 0:w.call(b))!=null?$:O(fw,null,null)]),!(o!=null&&o.disabled)&&(o==null?void 0:o.showRemoveButton)&&O("span",{class:[o==null?void 0:o.iconCls,`${o==null?void 0:o.iconCls}-remove`],onClick:()=>o==null?void 0:o.onRemove(e.file)},[(W=(V=(N=o==null?void 0:(E=o.slots)["remove-icon"])==null?void 0:N.call(E))!=null?V:(z=(j=o==null?void 0:o.customIcon)==null?void 0:j.removeIcon)==null?void 0:z.call(j))!=null?W:O(uw,null,null)]),(U=o==null?void 0:(H=o.slots)["extra-button"])==null?void 0:U.call(H,e.file)])])])};return()=>O("span",{class:i.value},[s()])}}),B2e=se({name:"UploadList",components:{UploadListItem:k9,UploadPictureItem:C9},props:{fileList:{type:Array,required:!0},listType:{type:String,required:!0}},setup(e,{slots:t}){const n=de("upload"),i=P(()=>[`${n}-list`,`${n}-list-type-${e.listType}`]),o=(s,r)=>Nt(t["upload-item"])?t["upload-item"]({fileItem:s,index:r}):e.listType==="picture-card"?O(C9,{file:s,key:`item-${r}`},null):O(k9,{file:s,listType:e.listType,key:`item-${r}`},null);return()=>O(lf,{tag:"div",class:i.value},{default:()=>{var s;return[...e.fileList.map((r,a)=>o(r,a)),e.listType==="picture-card"&&((s=t["upload-button"])==null?void 0:s.call(t))]}})}}),F2e=Object.defineProperty,V2e=Object.defineProperties,H2e=Object.getOwnPropertyDescriptors,S9=Object.getOwnPropertySymbols,W2e=Object.prototype.hasOwnProperty,U2e=Object.prototype.propertyIsEnumerable,w9=(e,t,n)=>t in e?F2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z2e=(e,t)=>{for(var n in t||(t={}))W2e.call(t,n)&&w9(e,n,t[n]);if(S9)for(var n of S9(t))U2e.call(t,n)&&w9(e,n,t[n]);return e},G2e=(e,t)=>V2e(e,H2e(t)),W3=se({name:"Upload",props:{fileList:{type:Array,default:void 0},defaultFileList:{type:Array,default:()=>[]},accept:String,action:String,disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},tip:String,headers:{type:Object},data:{type:[Object,Function]},name:{type:[String,Function]},withCredentials:{type:Boolean,default:!1},customRequest:{type:Function},limit:{type:Number,default:0},autoUpload:{type:Boolean,default:!0},showFileList:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showRetryButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},showUploadButton:{type:[Boolean,Object],default:!0},showPreviewButton:{type:Boolean,default:!0},download:{type:Boolean,default:!1},showLink:{type:Boolean,default:!0},imageLoading:{type:String},listType:{type:String,default:"text"},responseUrlKey:{type:[String,Function]},customIcon:{type:Object},imagePreview:{type:Boolean,default:!1},onBeforeUpload:{type:Function},onBeforeRemove:{type:Function},onButtonClick:{type:Function}},emits:{"update:fileList":e=>!0,exceedLimit:(e,t)=>!0,change:(e,t)=>!0,progress:(e,t)=>!0,preview:e=>!0,success:e=>!0,error:e=>!0},setup(e,{emit:t,slots:n}){const{fileList:i,disabled:o,listType:s,customIcon:r,showRetryButton:a,showCancelButton:u,showRemoveButton:c,showPreviewButton:l,imageLoading:g,download:C,showLink:S}=lt(e),_=de("upload"),{mergedDisabled:A,eventHandlers:y}=li({disabled:o}),d=he([]),v=new Map,m=new Map,f=P(()=>e.limit>0&&d.value.length>=e.limit),p=te=>{v.clear();const Ie=te==null?void 0:te.map(($e,Me)=>{var ge,Se,fe;const pe=(ge=$e.status)!=null?ge:"done",je=it(G2e(Z2e({},$e),{uid:(Se=$e.uid)!=null?Se:`${Date.now()}${Me}`,status:pe,percent:(fe=$e.percent)!=null?fe:["error","init"].indexOf(pe)>-1?0:1}));return v.set(je.uid,je),je});d.value=Ie??[]};p(e.defaultFileList),gt(i,te=>{te&&p(te)},{immediate:!0,deep:!0});const h=te=>{var Ie,$e;t("update:fileList",d.value),t("change",d.value,te),($e=(Ie=y.value)==null?void 0:Ie.onChange)==null||$e.call(Ie)},b=(te,Ie)=>{for(const $e of d.value)if($e.uid===te){$e.file=Ie,h($e);break}},w=te=>{const Ie=(fe,pe)=>{const je=v.get(te.uid);je&&(je.status="uploading",je.percent=fe,t("progress",je,pe),h(je))},$e=fe=>{const pe=v.get(te.uid);pe&&(pe.status="done",pe.percent=1,pe.response=fe,e.responseUrlKey&&(Nt(e.responseUrlKey)?pe.url=e.responseUrlKey(pe):fe[e.responseUrlKey]&&(pe.url=fe[e.responseUrlKey])),m.delete(pe.uid),t("success",pe),h(pe))},Me=fe=>{const pe=v.get(te.uid);pe&&(pe.status="error",pe.percent=0,pe.response=fe,m.delete(pe.uid),t("error",pe),h(pe))},ge={fileItem:te,action:e.action,name:e.name,data:e.data,headers:e.headers,withCredentials:e.withCredentials,onProgress:Ie,onSuccess:$e,onError:Me};te.status="uploading",te.percent=0;const Se=Nt(e.customRequest)?e.customRequest(ge):KCe(ge);m.set(te.uid,Se),h(te)},k=te=>{var Ie;const $e=m.get(te.uid);if($e){(Ie=$e.abort)==null||Ie.call($e),m.delete(te.uid);const Me=v.get(te.uid);Me&&(Me.status="error",Me.percent=0,h(Me))}},$=te=>{if(te){const Ie=v.get(te.uid);Ie&&w(Ie)}else for(const Ie of d.value)Ie.status==="init"&&w(Ie)},E=async(te,Ie)=>{const $e=`${Date.now()}-${Ie}`,Me=qCe(te)?URL.createObjectURL(te):void 0,ge=it({uid:$e,file:te,url:Me,name:te.name,status:"init",percent:0});v.set($e,ge),d.value=[...d.value,ge],h(ge),e.autoUpload&&w(ge)},N=te=>{if(e.limit>0&&d.value.length+te.length>e.limit){t("exceedLimit",d.value,te);return}for(let Ie=0;Ie<te.length;Ie++){const $e=te[Ie];Nt(e.onBeforeUpload)?Promise.resolve(e.onBeforeUpload($e)).then(Me=>{Me&&E(Gr(Me)?$e:Me,Ie)}).catch(Me=>{console.error(Me)}):E($e,Ie)}},j=te=>{d.value=d.value.filter(Ie=>Ie.uid!==te.uid),h(te)},z=te=>{Nt(e.onBeforeRemove)?Promise.resolve(e.onBeforeRemove(te)).then(Ie=>{Ie&&j(te)}).catch(Ie=>{console.error(Ie)}):j(te)},V=te=>{if(e.imagePreview&&te.url){const Ie=ne.value.indexOf(te.url);Ie>-1&&(Q.value=Ie,U.value=!0)}t("preview",te)};cn(hw,it({disabled:A,listType:s,iconCls:`${_}-icon`,showRemoveButton:c,showRetryButton:a,showCancelButton:u,showPreviewButton:l,showLink:S,imageLoading:g,download:C,customIcon:r,slots:n,onUpload:w,onAbort:k,onRemove:z,onPreview:V}));const W=P(()=>{if(e.accept)return e.accept;if(e.listType==="picture"||e.listType==="picture-card")return"image/*"}),H=()=>{const te=O(r2e,{key:"arco-upload-button",disabled:A.value,draggable:e.draggable,listType:e.listType,uploadFiles:N,multiple:e.multiple,directory:e.directory,tip:e.tip,hide:!e.showUploadButton||f.value&&!(rn(e.showUploadButton)&&e.showUploadButton.showOnExceedLimit),accept:W.value,onButtonClick:e.onButtonClick},{default:n["upload-button"]});return e.tip&&e.listType!=="picture-card"&&!e.draggable?O("span",null,[te,O("div",{class:`${_}-tip`},[e.tip])]):te},U=he(!1),Q=he(0),q=te=>{Q.value=te},ae=te=>{U.value=te},ne=P(()=>d.value.filter(te=>!!te.url).map(te=>te.url));return{prefixCls:_,render:()=>e.showFileList?O("div",{class:[`${_}-wrapper`,`${_}-wrapper-type-${e.listType}`]},[e.imagePreview&&ne.value.length>0&&O(pv,{srcList:ne.value,visible:U.value,current:Q.value,onChange:q,onVisibleChange:ae},null),e.listType!=="picture-card"&&e.showUploadButton&&H(),O(B2e,{fileList:d.value,listType:e.listType},{"upload-button":H,"upload-item":n["upload-item"]})]):e.showUploadButton&&H(),innerSubmit:$,innerAbort:k,innerUpdateFile:b,innerUpload:N}},methods:{submit(e){return this.innerSubmit(e)},abort(e){return this.innerAbort(e)},updateFile(e,t){return this.innerUpdateFile(e,t)},upload(e){return this.innerUpload(e)}},render(){return this.render()}});const Y2e=Object.assign(W3,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+W3.name,W3)}});var U3=se({name:"OverflowList",props:{min:{type:Number,default:0},margin:{type:Number,default:8},from:{type:String,default:"end"}},emits:{change:e=>!0},setup(e,{emit:t,slots:n}){const i=de("overflow-list"),o=he(),s=he(),r=he(),a={},u=[],c=he(0),l=he(0),g=P(()=>l.value>0),C=he(0),S=P(()=>e.from==="start");gt(c,(y,d)=>{l.value>0&&(l.value+=y-d,l.value<0&&(l.value=0))}),gt(l,y=>{t("change",y)});const _=()=>{var y,d,v;if(o.value&&a.value&&r.value){const m=r.value.offsetWidth;if(m>1&&(l.value===0||m<C.value))return;for(let b=0;b<a.value.length;b++){const w=a.value[b].el;w&&w.offsetWidth&&(u[b]=w.offsetWidth+e.margin)}let f=o.value.clientWidth-((d=(y=s.value)==null?void 0:y.offsetWidth)!=null?d:0)-(S.value?e.margin:0);const p=S.value?Gye(u):u;let h=0;for(let b=0;b<p.length;b++){const w=(v=p[b])!=null?v:0;if(w<f-1)f-=w,h+=1;else{C.value=w;break}}h<e.min&&e.min<c.value&&(h=e.min),l.value!==c.value-h&&(l.value=c.value-h)}};gt(g,()=>_(),{flush:"post"}),Yt(()=>{r.value&&r.value.offsetWidth<1&&_()});const A=()=>{var y,d;const v=S.value?{marginRight:`${e.margin}px`}:void 0;return O("div",{ref:s,class:`${i}-overflow`,style:v},[(d=(y=n.overflow)==null?void 0:y.call(n,{number:l.value}))!=null?d:O(dP,null,{default:()=>[pt("+"),l.value]})])};return()=>{var y,d;a.value=$a((y=n.default)==null?void 0:y.call(n)),c.value!==a.value.length&&(c.value=a.value.length,u.length=c.value);let v=a.value;l.value>0&&(v=S.value?a.value.slice(l.value):a.value.slice(0,-l.value));const m=l.value===0||S.value?v.length-1:v.length;for(let f=0;f<m;f++)v[f].props=Qe((d=v[f].props)!=null?d:{},{style:{marginRight:`${e.margin}px`}});return O("div",{ref:o,class:i},[S.value&&l.value>0&&A(),v,!S.value&&l.value>0&&A(),O(qc,{onResize:_},{default:()=>[O("div",{ref:r,class:`${i}-spacer`},null)]})])}}});const X2e=Object.assign(U3,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+U3.name,U3)}});var Z3=se({name:"VerificationCode",props:{modelValue:String,defaultValue:{type:String,default:""},length:{type:Number,default:6},size:{type:String},disabled:Boolean,masked:Boolean,readonly:Boolean,error:{type:Boolean,default:!1},separator:{type:Function},formatter:{type:Function}},emits:{"update:modelValue":e=>!0,change:e=>!0,finish:e=>!0,input:(e,t,n)=>!0},setup(e,{emit:t}){const n=de("verification-code"),i=de("input"),o=he([]),s=P(()=>{var y;return(y=e.modelValue)!=null?y:e.defaultValue}),r=P(()=>e.masked?"password":"text"),a=P(()=>[i,{[`${i}-size-${e.size}`]:e.size}]),u=P(()=>{const y=String(s.value).split("");return new Array(e.length).fill("").map((d,v)=>O6(y[v])?String(y[v]):"")}),c=he(u.value);gt(s,()=>{c.value=u.value});const l=()=>{const y=c.value.join("").trim();t("update:modelValue",y),t("change",y),y.length===e.length&&t("finish",y),C()},g=y=>o==null?void 0:o.value[y].focus(),C=y=>{if(!(O6(y)&&c.value[y])){for(let d=0;d<c.value.length;d++)if(!c.value[d]){g(d);break}}},S=(y,d)=>{y.preventDefault();const{clipboardData:v}=y,m=v==null?void 0:v.getData("text");m&&(m.split("").forEach((f,p)=>{if(!(d+p>=e.length)){if(Nt(e.formatter)){const h=e.formatter(f,d+p,c.value.join(""));if(h===!1){d-=1;return}Ai(h)&&(f=h.charAt(0))}c.value[d+p]=f}}),l())},_=(y,d)=>{const v=d.code||d.key;v===KB.code&&!c.value[y]?(d.preventDefault(),c.value[Math.max(y-1,0)]="",l()):v===rie.code&&y>0?(d.preventDefault(),g(y-1)):v===oie.code&&c.value[y]&&y<e.length-1&&(d.preventDefault(),g(y+1))},A=(y,d,v)=>{let m=(d||"").trim().charAt(d.length-1);if(t("input",m,y,v),Nt(e.formatter)){const f=e.formatter(m,y,c.value.join(""));if(f===!1)return;Ai(f)&&(m=f.charAt(0))}c.value[y]=m,l()};return()=>O("div",{class:n},[c.value.map((y,d)=>{var v;return O(ft,null,[O(ou,{key:d,ref:m=>o.value[d]=m,type:r.value,class:a.value,modelValue:y,size:e.size,error:e.error,disabled:e.disabled,readonly:e.readonly,onFocus:()=>C(d),onInput:(m,f)=>A(d,m,f),onKeydown:m=>_(d,m),onPaste:m=>S(m,d)},null),(v=e.separator)==null?void 0:v.call(e,d,y)])})])}});const K2e=Object.assign(Z3,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+Z3.name,Z3)}});var _9=Object.getOwnPropertySymbols,J2e=Object.prototype.hasOwnProperty,q2e=Object.prototype.propertyIsEnumerable,Q2e=(e,t)=>{var n={};for(var i in e)J2e.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&_9)for(var i of _9(e))t.indexOf(i)<0&&q2e.call(e,i)&&(n[i]=e[i]);return n};const eSe=typeof window<"u"?window:void 0;function tSe(e){var t;const n=ji(e);return(t=n==null?void 0:n.$el)!=null?t:n}function nSe(e){return n1()?(gS(e),!0):!1}function zH(e,t,n={}){const i=n,{window:o=eSe}=i,s=Q2e(i,["window"]),r=o&&"MutationObserver"in o;let a;const u=()=>{a&&(a.disconnect(),a=void 0)},c=gt(()=>tSe(e),g=>{u(),r&&o&&g&&(a=new MutationObserver(t),a.observe(g,s))},{immediate:!0}),l=()=>{u(),c()};return nSe(l),{isSupported:r,stop:l}}const G3="arco-theme",My={Dark:"dark",Light:"light"},iSe=e=>{const t=he(My.Light),n=o=>{t.value=o},i=o=>o.getAttribute(G3)===My.Dark?My.Dark:My.Light;return zH(document.body,o=>{for(const s of o)if(s.type==="attributes"&&s.attributeName===G3){n(i(s.target)),e==null||e();break}},{attributes:!0,attributeFilter:[G3],subtree:!1,childList:!1,characterData:!1}),n(i(document.body)),{theme:t,setTheme:n}};function rSe(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function oSe(e){return Object.entries(e).map(([t,n])=>`${rSe(t)}:${n}`).join(";")}function sSe(e){const t=e.getContext("2d");if(!t)return;const n=t.getImageData(0,0,e.width,e.height),{data:i}=n;for(let o=0;o<i.length;o+=4){const s=(i[o]+i[o+1]+i[o+2])/3;i[o]=s,i[o+1]=s,i[o+2]=s}t.putImageData(n,0,0)}var aSe=Object.defineProperty,lSe=Object.defineProperties,cSe=Object.getOwnPropertyDescriptors,I9=Object.getOwnPropertySymbols,uSe=Object.prototype.hasOwnProperty,dSe=Object.prototype.propertyIsEnumerable,x9=(e,t,n)=>t in e?aSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fSe=(e,t)=>{for(var n in t||(t={}))uSe.call(t,n)&&x9(e,n,t[n]);if(I9)for(var n of I9(t))dSe.call(t,n)&&x9(e,n,t[n]);return e},hSe=(e,t)=>lSe(e,cSe(t)),Y3=se({name:"Watermark",props:{content:{type:[String,Array]},image:{type:String},width:{type:Number},height:{type:Number},gap:{type:Array,default:()=>[90,90]},offset:{type:Array},rotate:{type:Number,default:-22},font:{type:Object},zIndex:{type:Number,default:6},alpha:{type:Number,default:1},antiTamper:{type:Boolean,default:!0},grayscale:{type:Boolean,default:!1},repeat:{type:Boolean,default:!0},staggered:{type:Boolean,default:!0}},setup(e,{slots:t,attrs:n}){const{width:i,height:o,image:s,rotate:r,alpha:a,repeat:u,grayscale:c}=lt(e),l=de("watermark"),g=window.devicePixelRatio||1,C=Gp(),S=he(new Map),_=P(()=>{var Q,q;return(q=(Q=e.font)==null?void 0:Q.fontSize)!=null?q:16}),A=P(()=>{var Q,q;return(q=(Q=e.font)==null?void 0:Q.fontWeight)!=null?q:"normal"}),y=P(()=>{var Q,q;return(q=(Q=e.font)==null?void 0:Q.fontStyle)!=null?q:"normal"}),d=P(()=>{var Q,q;return(q=(Q=e.font)==null?void 0:Q.fontFamily)!=null?q:"sans-serif"}),v=P(()=>{var Q,q;return(q=(Q=e.font)==null?void 0:Q.textAlign)!=null?q:"center"}),m=P(()=>Kt(e.content)?e.content:[e.content]),f=P(()=>{var Q,q;return(q=(Q=e.font)==null?void 0:Q.color)!=null?q:U.value==="dark"?"rgba(255, 255, 255, 0.15)":"rgba(0, 0, 0, 0.15)"}),p=P(()=>{var Q,q;return(q=(Q=e.gap)==null?void 0:Q[0])!=null?q:90}),h=P(()=>{var Q,q;return(q=(Q=e.gap)==null?void 0:Q[1])!=null?q:90}),b=P(()=>p.value/2),w=P(()=>h.value/2),k=P(()=>{var Q,q;return(q=(Q=e.offset)==null?void 0:Q[0])!=null?q:b.value}),$=P(()=>{var Q,q;return(q=(Q=e.offset)==null?void 0:Q[1])!=null?q:w.value}),E=P(()=>{var Q;const q=k.value-b.value,ae=$.value-w.value;return{position:"absolute",left:q>0?`${q}px`:0,top:ae>0?`${ae}px`:0,width:q>0?`calc(100% - ${q}px)`:"100%",height:ae>0?`calc(100% - ${ae}px)`:"100%",pointerEvents:"none",backgroundRepeat:e.repeat?"repeat":"no-repeat",backgroundPosition:`${q>0?0:q}px ${ae>0?0:ae}px`,zIndex:(Q=e.zIndex)!=null?Q:6}}),N=P(()=>e.repeat&&e.staggered),j=(Q,q)=>{var ae;if(C.value){const ne=S.value.get(C.value);ne&&(C.value.contains(ne)&&C.value.removeChild(ne),S.value.delete(C.value));const be=document.createElement("div");be.setAttribute("style",oSe(hSe(fSe({},E.value),{backgroundImage:`url('${Q}')`,backgroundSize:`${q}px`}))),(ae=C.value)==null||ae.append(be),S.value.set(C.value,be)}},z=Q=>{var q,ae;let ne=120,be=28;if(!s.value&&Q.measureText){Q.font=`${_.value}px ${d.value}`;const te=m.value.map(Ie=>Q.measureText(Ie).width);ne=Math.ceil(Math.max(...te)),be=_.value*m.value.length+(m.value.length-1)*3}return[(q=i.value)!=null?q:ne,(ae=o.value)!=null?ae:be]},V=()=>{var Q;const q=document.createElement("canvas"),ae=q.getContext("2d");if(!ae)return;const[ne,be]=z(ae),te=ne*g,Ie=be*g,$e=(p.value+ne)*g,Me=(h.value+be)*g,ge=p.value/2*g,Se=h.value/2*g,fe=$e/2,pe=Me/2,je=N.value?2:1,Y=(p.value+ne)*je;q.width=$e*je,q.height=Me*je,ae.globalAlpha=a.value,ae.save(),ae.translate(fe,pe),ae.rotate(Math.PI/180*r.value),ae.translate(-fe,-pe);const Z=()=>{ae.restore(),N.value&&ae.drawImage(q,0,0,$e,Me,$e,Me,$e,Me),c.value&&sSe(q),j(q.toDataURL(),Y)};if(s.value){const ee=new Image;ee.onload=()=>{ae.drawImage(ee,ge,Se,te,Ie),Z()},ee.crossOrigin="anonymous",ee.referrerPolicy="no-referrer",ee.src=s.value}else{const ee=Number(_.value)*g;ae.font=`${y.value} normal ${A.value} ${ee}px/${be}px ${d.value}`,ae.fillStyle=f.value,ae.textAlign=v.value,ae.textBaseline="top",ae.translate(te/2,0),(Q=m.value)==null||Q.forEach((ce,xe)=>{ae.fillText(ce??"",ge,Se+xe*(ee+3*g))}),Z()}},W=Q=>Array.from(S.value.values()).includes(Q),H=Q=>{if(e.antiTamper)for(const q of Q){const ae=Array.from(q.removedNodes).some(be=>W(be)),ne=q.type==="attributes"&&W(q.target);if(ae||ne){V();break}}},{theme:U}=iSe(V);return Yt(()=>{V(),zH(C.value,H,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}),gt(e,V,{deep:!0,flush:"post"}),()=>{var Q;return O("div",Qe({ref:C,class:l,style:{position:"relative",overflow:"hidden"}},n),[(Q=t.default)==null?void 0:Q.call(t)])}}});const pSe=Object.assign(Y3,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+Y3.name,Y3)}});var mSe=Object.defineProperty,vSe=Object.defineProperties,gSe=Object.getOwnPropertyDescriptors,$9=Object.getOwnPropertySymbols,ySe=Object.prototype.hasOwnProperty,bSe=Object.prototype.propertyIsEnumerable,A9=(e,t,n)=>t in e?mSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kSe=(e,t)=>{for(var n in t||(t={}))ySe.call(t,n)&&A9(e,n,t[n]);if($9)for(var n of $9(t))bSe.call(t,n)&&A9(e,n,t[n]);return e},CSe=(e,t)=>vSe(e,gSe(t));function SSe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var wSe=se({name:"TreeSelectPanel",components:{Tree:IE},props:{treeProps:{type:Object,default:()=>({})},selectedKeys:{type:Array},showCheckable:{type:Boolean},treeSlots:{type:Object,default:()=>({})},scrollbar:{type:[Boolean,Object],default:!0}},emits:["change"],setup(e,{emit:t}){const{showCheckable:n,selectedKeys:i,treeProps:o,scrollbar:s}=lt(e),{displayScrollbar:r,scrollbarProps:a}=WS(s),u=de("tree-select"),c=he(),l=P(()=>CSe(kSe({},o.value),{disableSelectActionOnly:!0,checkedKeys:n.value?i.value:[],selectedKeys:n.value?[]:i.value})),g=(_,A)=>{var y,d;n.value?(d=(y=c.value)==null?void 0:y.toggleCheck)==null||d.call(y,_[0],A):t("change",_)},C=_=>{t("change",_)},S=()=>O(IE,Qe({ref:c},l.value,{onSelect:g,onCheck:C}),e.treeSlots);return()=>{if(r.value){let _;return O(Gs,Qe({class:`${u}-tree-wrapper`},a.value),SSe(_=S())?_:{default:()=>[_]})}return O("div",{class:`${u}-tree-wrapper`},[S()])}}}),_Se=Object.defineProperty,ISe=Object.defineProperties,xSe=Object.getOwnPropertyDescriptors,E9=Object.getOwnPropertySymbols,$Se=Object.prototype.hasOwnProperty,ASe=Object.prototype.propertyIsEnumerable,M9=(e,t,n)=>t in e?_Se(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T9=(e,t)=>{for(var n in t||(t={}))$Se.call(t,n)&&M9(e,n,t[n]);if(E9)for(var n of E9(t))ASe.call(t,n)&&M9(e,n,t[n]);return e},ESe=(e,t)=>ISe(e,xSe(t));function RP(e){return rn(e)}function RH(e){return e!=null&&e!==""}function BP(e){return RP(e)?e.value:e}function MSe(e){return RP(e)?e.label:void 0}function P9(e){const t=BP(e);return RH(t)}function O9(e){return e.map(BP).filter(RH)}function TSe(e){var t;const{defaultValue:n,modelValue:i,key2TreeNode:o,multiple:s,treeCheckable:r,fallbackOption:a,fieldNames:u}=lt(e);function c(f){const p=(Kt(f)?f:[f]).filter(P9);return s!=null&&s.value||r!=null&&r.value?p:p.slice(0,1)}function l(f,p){const h=[],b=f?f.filter(P9):[];if(b.length){const w=new Map;p==null||p.forEach(k=>{w.set(k.value,k)}),b.forEach(k=>{var $,E,N,j,z;const V=BP(k),W=w.get(V),H=o.value.get(V);let U=null;const Q=(($=u==null?void 0:u.value)==null?void 0:$.title)||"title";if(!H){const q=Nt(a==null?void 0:a.value)?a==null?void 0:a.value(V):a==null?void 0:a.value;if(q===!1)return;rn(q)&&(U=q)}h.push(ESe(T9(T9({},RP(k)?k:{}),W||{}),{value:V,label:(z=(j=(N=(E=MSe(k))!=null?E:H==null?void 0:H.title)!=null?N:W==null?void 0:W.label)!=null?j:U==null?void 0:U[Q])!=null?z:V}))})}return h}const g=he(),C=he();Xi(()=>{var f;const p=(i==null?void 0:i.value)!==void 0,h=c((f=i==null?void 0:i.value)!=null?f:[]),b=O9(h);C.value=p?l(b,l(h)):void 0,g.value=p?b:void 0});const S=c((t=n==null?void 0:n.value)!=null?t:[]),_=O9(S),A=l(_,l(S)),y=he(_||[]),d=he(A);gt(y,()=>{d.value=l(y.value,A)}),gt([g,C],([f,p])=>{y.value=f||[],d.value=p||[]});const v=P(()=>{var f;return(f=g.value)!=null?f:y.value}),m=P(()=>{var f;return(f=C.value)!=null?f:d.value});return{selectedKeys:v,selectedValue:m,setLocalSelectedKeys(f){y.value=f},localSelectedKeys:y,localSelectedValue:d}}function PSe(e){const{searchValue:t,flattenTreeData:n,filterMethod:i,disableFilter:o,fieldNames:s}=lt(e),r=P(()=>{var _;return((_=s.value)==null?void 0:_.key)||"key"}),a=(_,A)=>{const y=A[r.value];return!jt(y)&&String(y).indexOf(_)>-1},u=P(()=>(i==null?void 0:i.value)||a),c=he(),l=P(()=>!!t.value),g=P(()=>!(o!=null&&o.value)&&l.value&&c.value&&c.value.size===0),C=P(()=>o!=null&&o.value?void 0:_=>{var A,y;if(!l.value)return!0;const d=_[r.value];return(y=(A=c.value)==null?void 0:A.has(d||""))!=null?y:!1}),S=zv((_,A)=>{const y=_.filter(v=>u.value(A,v.treeNodeData)),d=new Set;y.forEach(v=>{d.add(v.key),v.pathParentKeys.forEach(m=>{d.add(m)})}),c.value=d},100);return Xi(()=>{o!=null&&o.value?c.value=void 0:S(n.value,t.value)}),{isEmptyFilterResult:g,filterTreeNode:C}}function OSe(e,t){const n=`${t}-slot-`;return Object.keys(e).reduce((o,s)=>{if(s.startsWith(n)){const r=s.slice(n.length);r&&(o[r]=e[s])}return o},{})}var LSe=Object.defineProperty,DSe=Object.defineProperties,NSe=Object.getOwnPropertyDescriptors,L9=Object.getOwnPropertySymbols,jSe=Object.prototype.hasOwnProperty,zSe=Object.prototype.propertyIsEnumerable,D9=(e,t,n)=>t in e?LSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,BH=(e,t)=>{for(var n in t||(t={}))jSe.call(t,n)&&D9(e,n,t[n]);if(L9)for(var n of L9(t))zSe.call(t,n)&&D9(e,n,t[n]);return e},FH=(e,t)=>DSe(e,NSe(t));const RSe=se({name:"TreeSelect",components:{Trigger:ur,SelectView:Jk,Panel:wSe,Empty:Nl,Spin:Zs},inheritAttrs:!1,props:{disabled:{type:Boolean},loading:{type:Boolean},error:{type:Boolean},size:{type:String},border:{type:Boolean,default:!0},allowSearch:{type:[Boolean,Object],default:e=>!!e.multiple},allowClear:{type:Boolean},placeholder:{type:String},maxTagCount:{type:Number},multiple:{type:Boolean},defaultValue:{type:[String,Number,Array,Object]},modelValue:{type:[String,Number,Array,Object]},fieldNames:{type:Object},data:{type:Array,default:()=>[]},labelInValue:{type:Boolean},treeCheckable:{type:Boolean},treeCheckStrictly:{type:Boolean},treeCheckedStrategy:{type:String,default:"all"},treeProps:{type:Object},triggerProps:{type:Object},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean},dropdownStyle:{type:Object},dropdownClassName:{type:[String,Array]},filterTreeNode:{type:Function},loadMore:{type:Function},disableFilter:{type:Boolean},popupContainer:{type:[String,Object]},fallbackOption:{type:[Boolean,Function],default:!0},selectable:{type:[Boolean,String,Function],default:!0},scrollbar:{type:[Boolean,Object],default:!0},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1},inputValue:{type:String},defaultInputValue:{type:String,default:""}},emits:{change:e=>!0,"update:modelValue":e=>!0,"update:inputValue":e=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0,search:e=>!0,clear:()=>!0,inputValueChange:e=>!0},setup(e,{emit:t,slots:n}){var i,o,s;const{defaultValue:r,modelValue:a,multiple:u,popupVisible:c,defaultPopupVisible:l,treeCheckable:g,treeCheckStrictly:C,data:S,fieldNames:_,disabled:A,labelInValue:y,filterTreeNode:d,disableFilter:v,dropdownStyle:m,treeProps:f,fallbackOption:p,selectable:h,dropdownClassName:b}=lt(e),{mergedDisabled:w,eventHandlers:k}=li({disabled:A}),$=de("tree-select"),E=Dt(Or,void 0),N=(s=(o=E==null?void 0:(i=E.slots).empty)==null?void 0:o.call(i,{component:"tree-select"}))==null?void 0:s[0],j=P(()=>u.value||g.value),z=(ve,De)=>{var Ee;return h.value==="leaf"?De.isLeaf:Nt(h.value)?h.value(ve,De):(Ee=h.value)!=null?Ee:!1},V=P(()=>g.value?z:!1),W=P(()=>rn(e.allowSearch)&&!!e.allowSearch.retainInputValue),{flattenTreeData:H,key2TreeNode:U}=xH(it({treeData:S,fieldNames:_,selectable:z,checkable:V})),{selectedKeys:Q,selectedValue:q,setLocalSelectedKeys:ae,localSelectedKeys:ne,localSelectedValue:be}=TSe(it({defaultValue:r,modelValue:a,key2TreeNode:U,multiple:u,treeCheckable:g,treeCheckStrictly:C,fallbackOption:p,fieldNames:_}));function te(ve){return g.value?Zd(ve):bE(ve)}const Ie=P(()=>jt(q.value)?[]:j.value&&!w.value?q.value.map(ve=>{const De=U.value.get(ve.value);return FH(BH({},ve),{closable:!De||te(De)})}):q.value),$e=ve=>{ae(ve),fn(()=>{var De,Ee;const we=(y.value?be.value:ne.value)||[],me=j.value?we:we[0];t("update:modelValue",me),t("change",me),(Ee=(De=k.value)==null?void 0:De.onChange)==null||Ee.call(De)})},Me=he(e.defaultInputValue),ge=P(()=>{var ve;return(ve=e.inputValue)!=null?ve:Me.value}),Se=ve=>{Me.value=ve,t("update:inputValue",ve),t("inputValueChange",ve)},fe=ve=>{ve!==ge.value&&(Y(!0),Se(ve),e.allowSearch&&t("search",ve))},[pe,je]=cr(l.value,it({value:c})),Y=ve=>{ve!==pe.value&&(je(ve),t("popup-visible-change",ve),t("update:popupVisible",ve)),ve||xe.value&&xe.value.blur&&xe.value.blur()},{isEmptyFilterResult:Z,filterTreeNode:ee}=PSe(it({searchValue:ge,flattenTreeData:H,filterMethod:d,disableFilter:v,fieldNames:_})),ce=P(()=>!H.value.length||Z.value),xe=he(),re=P(()=>{var ve;return[(m==null?void 0:m.value)||{},(ve=f==null?void 0:f.value)!=null&&ve.virtualListProps?{"max-height":"unset"}:{}]});return{refSelectView:xe,prefixCls:$,TreeSelectEmpty:N,selectedValue:q,selectedKeys:Q,mergedDisabled:w,searchValue:ge,panelVisible:pe,isEmpty:ce,computedFilterTreeNode:ee,isMultiple:j,selectViewValue:Ie,computedDropdownStyle:re,onSearchValueChange:fe,onSelectChange(ve){$e(ve),!W.value&&ge.value&&Se(""),j.value||Y(!1)},onVisibleChange:Y,onInnerClear(){$e([]),t("clear")},pickSubCompSlots:OSe,isSelectable:z,isCheckable:V,onBlur:()=>{!W.value&&ge.value&&Se("")},onItemRemove(ve){if(w.value)return;const De=U.value.get(ve);if(g.value&&De){if(te(De)){const[Ee]=SE({node:De,checked:!1,checkedKeys:Q.value,indeterminateKeys:[],checkStrictly:C.value});$e(Ee)}}else{const Ee=Q.value.filter(we=>we!==ve);$e(Ee)}}}}});function BSe(e,t,n,i,o,s){const r=Pe("SelectView"),a=Pe("Spin"),u=Pe("Panel"),c=Pe("Trigger");return R(),We(c,Qe({class:`${e.prefixCls}-trigger`,"auto-fit-popup-min-width":"",trigger:"click",position:"bl","popup-offset":4,"animation-name":"slide-dynamic-origin","prevent-focus":!0},e.triggerProps,{disabled:e.mergedDisabled,"popup-visible":e.panelVisible,"popup-container":e.popupContainer,"click-to-close":!e.allowSearch,"auto-fit-transform-origin":"",onPopupVisibleChange:e.onVisibleChange}),{content:Ve(()=>[B("div",{class:G([`${e.prefixCls}-popup`,{[`${e.prefixCls}-has-header`]:!!e.$slots.header,[`${e.prefixCls}-has-footer`]:!!e.$slots.footer},e.dropdownClassName]),style:Te(e.computedDropdownStyle)},[e.$slots.header&&(!e.isEmpty||e.showHeaderOnEmpty)?(R(),X("div",{key:0,class:G(`${e.prefixCls}-header`)},[He(e.$slots,"header")],2)):Re("v-if",!0),e.loading?He(e.$slots,"loader",{key:1},()=>[O(a)]):e.isEmpty?He(e.$slots,"empty",{key:2},()=>[(R(),We(Zr(e.TreeSelectEmpty?e.TreeSelectEmpty:"Empty")))]):(R(),We(u,{key:3,"selected-keys":e.selectedKeys,"show-checkable":e.treeCheckable,scrollbar:e.scrollbar,"tree-props":FH(BH({actionOnNodeClick:e.selectable==="leaf"?"expand":void 0,blockNode:!0},e.treeProps),{data:e.data,checkStrictly:e.treeCheckStrictly,checkedStrategy:e.treeCheckedStrategy,fieldNames:e.fieldNames,multiple:e.multiple,loadMore:e.loadMore,filterTreeNode:e.computedFilterTreeNode,size:e.size,checkable:e.isCheckable,selectable:e.isSelectable,searchValue:e.searchValue}),"tree-slots":e.pickSubCompSlots(e.$slots,"tree"),onChange:e.onSelectChange},null,8,["selected-keys","show-checkable","scrollbar","tree-props","tree-slots","onChange"])),e.$slots.footer&&(!e.isEmpty||e.showFooterOnEmpty)?(R(),X("div",{key:4,class:G(`${e.prefixCls}-footer`)},[He(e.$slots,"footer")],2)):Re("v-if",!0)],6)]),default:Ve(()=>[He(e.$slots,"trigger",{},()=>[O(r,Qe({ref:"refSelectView","model-value":e.selectViewValue,"input-value":e.searchValue,"allow-search":!!e.allowSearch,"allow-clear":e.allowClear,loading:e.loading,size:e.size,"max-tag-count":e.maxTagCount,disabled:e.mergedDisabled,opened:e.panelVisible,error:e.error,bordered:e.border,placeholder:e.placeholder,multiple:e.isMultiple},e.$attrs,{onInputValueChange:e.onSearchValueChange,onClear:e.onInnerClear,onRemove:e.onItemRemove,onBlur:e.onBlur}),ti({_:2},[e.$slots.prefix?{name:"prefix",fn:Ve(()=>[He(e.$slots,"prefix")])}:void 0,e.$slots.label?{name:"label",fn:Ve(l=>[He(e.$slots,"label",Bn(ir(l)))])}:void 0]),1040,["model-value","input-value","allow-search","allow-clear","loading","size","max-tag-count","disabled","opened","error","bordered","placeholder","multiple","onInputValueChange","onClear","onRemove","onBlur"])])]),_:3},16,["class","disabled","popup-visible","popup-container","click-to-close","onPopupVisibleChange"])}var X3=ye(RSe,[["render",BSe]]);const FSe=Object.assign(X3,{install:(e,t)=>{Vt(e,t);const n=Ft(t);e.component(n+X3.name,X3)}});var VSe=Object.defineProperty,HSe=Object.defineProperties,WSe=Object.getOwnPropertyDescriptors,N9=Object.getOwnPropertySymbols,USe=Object.prototype.hasOwnProperty,ZSe=Object.prototype.propertyIsEnumerable,j9=(e,t,n)=>t in e?VSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,GSe=(e,t)=>{for(var n in t||(t={}))USe.call(t,n)&&j9(e,n,t[n]);if(N9)for(var n of N9(t))ZSe.call(t,n)&&j9(e,n,t[n]);return e},YSe=(e,t)=>HSe(e,WSe(t));const xE={Button:Yr,Link:aV,Typography:YCe,Divider:bfe,Grid:Nm,Layout:eve,Space:hye,Avatar:goe,Badge:Ooe,Calendar:EF,Card:Mae,Carousel:Xae,Collapse:wle,Comment:wce,ColorPicker:fce,Descriptions:yfe,Empty:Nl,Image:kme,Scrollbar:Gs,List:GV,Popover:lP,Statistic:_ye,Table:Lbe,Tabs:Jbe,Tag:dP,Timeline:kke,Tooltip:us,AutoComplete:noe,Cascader:ule,Checkbox:Fs,DatePicker:rfe,Form:Yhe,Input:ou,InputNumber:g1,InputTag:$F,Mention:Pve,Radio:jp,Rate:I1e,Select:Rv,Slider:fye,Switch:Oye,Textarea:YV,TimePicker:fke,Transfer:Pke,Tree:IE,Upload:Y2e,TreeSelect:FSe,Alert:GB,Drawer:uE,Message:mE,Modal:vE,Notification:gE,Popconfirm:g0e,Progress:iH,Result:B1e,Spin:Zs,Skeleton:G1e,Breadcrumb:hse,Dropdown:dF,Menu:Age,PageHeader:p0e,Pagination:xP,Steps:Eye,Affix:Xte,Anchor:Kne,BackTop:xoe,ConfigProvider:xce,ResizeBox:WV,Trigger:ur,Split:gye,Icon:Qhe,OverflowList:X2e,Watermark:pSe,VerificationCode:K2e},XSe=(e,t)=>{for(const n of Object.keys(xE))e.use(xE[n],t)},Rp=YSe(GSe({},xE),{Alter:GB,AnchorLink:Zy,AvatarGroup:Qy,BreadcrumbItem:uv,ButtonGroup:cv,Calendar:EF,CardMeta:sb,CardGrid:ab,CarouselItem:lb,CascaderPanel:cb,CheckboxGroup:Jy,CollapseItem:ub,DescriptionsItem:yb,WeekPicker:hb,MonthPicker:pb,YearPicker:mb,QuarterPicker:vb,RangePicker:gb,Doption:nh,Dgroup:tb,Dsubmenu:nb,DropdownButton:ib,FormItem:Cb,Row:fv,Col:hv,GridItem:kb,ImagePreview:ih,ImagePreviewAction:lC,ImagePreviewGroup:pv,InputGroup:th,InputSearch:Gy,InputPassword:Yy,LayoutHeader:wb,LayoutContent:_b,LayoutFooter:Ib,LayoutSider:xb,ListItem:$b,ListItemMeta:Ab,MenuItem:Eb,MenuItemGroup:Mb,SubMenu:mv,RadioGroup:ob,Option:Fd,Optgroup:dv,SkeletonLine:Ob,SkeletonShape:Lb,Countdown:Db,Step:Nb,Thead:gv,Td:Wc,Th:bv,Tr:_l,Tbody:yv,TableColumn:jb,TabPane:zb,TimelineItem:oh,TypographyParagraph:Rb,TypographyTitle:Bb,TypographyText:Fb,install:XSe,addI18nMessages:ste,useLocale:ate,getLocale:lte,useFormItem:li}),KSe=se({name:"IconArrowDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-arrow-down`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),JSe=["stroke-width","stroke-linecap","stroke-linejoin"],qSe=B("path",{d:"m11.27 27.728 12.727 12.728 12.728-12.728M24 5v34.295"},null,-1),QSe=[qSe];function ewe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},QSe,14,JSe)}var K3=ye(KSe,[["render",ewe]]);const twe=Object.assign(K3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+K3.name,K3)}}),nwe=se({name:"IconArrowFall",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-arrow-fall`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),iwe=["stroke-width","stroke-linecap","stroke-linejoin"],rwe=B("path",{d:"M24.008 41.99a.01.01 0 0 1-.016 0l-9.978-11.974A.01.01 0 0 1 14.02 30H33.98a.01.01 0 0 1 .007.016l-9.978 11.975Z"},null,-1),owe=B("path",{d:"M24 42 14 30h20L24 42Z",fill:"currentColor",stroke:"none"},null,-1),swe=B("path",{d:"M22 6h4v26h-4z"},null,-1),awe=B("path",{fill:"currentColor",stroke:"none",d:"M22 6h4v26h-4z"},null,-1),lwe=[rwe,owe,swe,awe];function cwe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},lwe,14,iwe)}var J3=ye(nwe,[["render",cwe]]);const uwe=Object.assign(J3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+J3.name,J3)}}),dwe=se({name:"IconArrowLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-arrow-left`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),fwe=["stroke-width","stroke-linecap","stroke-linejoin"],hwe=B("path",{d:"M20.272 11.27 7.544 23.998l12.728 12.728M43 24H8.705"},null,-1),pwe=[hwe];function mwe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},pwe,14,fwe)}var q3=ye(dwe,[["render",mwe]]);const vwe=Object.assign(q3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+q3.name,q3)}}),gwe=se({name:"IconArrowRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-arrow-right`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),ywe=["stroke-width","stroke-linecap","stroke-linejoin"],bwe=B("path",{d:"m27.728 11.27 12.728 12.728-12.728 12.728M5 24h34.295"},null,-1),kwe=[bwe];function Cwe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},kwe,14,ywe)}var Q3=ye(gwe,[["render",Cwe]]);const Swe=Object.assign(Q3,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Q3.name,Q3)}}),wwe=se({name:"IconArrowRise",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-arrow-rise`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),_we=["stroke-width","stroke-linecap","stroke-linejoin"],Iwe=B("path",{d:"M23.992 6.01a.01.01 0 0 1 .016 0l9.978 11.974a.01.01 0 0 1-.007.016H14.02a.01.01 0 0 1-.007-.016l9.978-11.975Z"},null,-1),xwe=B("path",{d:"m24 6 10 12H14L24 6Z",fill:"currentColor",stroke:"none"},null,-1),$we=B("path",{d:"M26 42h-4V16h4z"},null,-1),Awe=B("path",{fill:"currentColor",stroke:"none",d:"M26 42h-4V16h4z"},null,-1),Ewe=[Iwe,xwe,$we,Awe];function Mwe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Ewe,14,_we)}var eI=ye(wwe,[["render",Mwe]]);const Twe=Object.assign(eI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+eI.name,eI)}}),Pwe=se({name:"IconArrowUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-arrow-up`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Owe=["stroke-width","stroke-linecap","stroke-linejoin"],Lwe=B("path",{d:"M11.27 20.272 23.997 7.544l12.728 12.728M24 43V8.705"},null,-1),Dwe=[Lwe];function Nwe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Dwe,14,Owe)}var tI=ye(Pwe,[["render",Nwe]]);const jwe=Object.assign(tI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+tI.name,tI)}}),zwe=se({name:"IconDoubleDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-double-down`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Rwe=["stroke-width","stroke-linecap","stroke-linejoin"],Bwe=B("path",{d:"m9.9 11.142 14.143 14.142 14.142-14.142M9.9 22.456l14.143 14.142 14.142-14.142"},null,-1),Fwe=[Bwe];function Vwe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Fwe,14,Rwe)}var nI=ye(zwe,[["render",Vwe]]);const Hwe=Object.assign(nI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+nI.name,nI)}}),Wwe=se({name:"IconDoubleUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-double-up`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Uwe=["stroke-width","stroke-linecap","stroke-linejoin"],Zwe=B("path",{d:"M38.1 36.858 23.957 22.716 9.816 36.858M38.1 25.544 23.957 11.402 9.816 25.544"},null,-1),Gwe=[Zwe];function Ywe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Gwe,14,Uwe)}var iI=ye(Wwe,[["render",Ywe]]);const Xwe=Object.assign(iI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+iI.name,iI)}}),Kwe=se({name:"IconDownCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-down-circle`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Jwe=["stroke-width","stroke-linecap","stroke-linejoin"],qwe=B("circle",{cx:"24",cy:"24",r:"18",transform:"rotate(-180 24 24)"},null,-1),Qwe=B("path",{d:"M32.484 20.515 24 29l-8.485-8.485"},null,-1),e_e=[qwe,Qwe];function t_e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},e_e,14,Jwe)}var rI=ye(Kwe,[["render",t_e]]);const n_e=Object.assign(rI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+rI.name,rI)}}),i_e=se({name:"IconDragArrow",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-drag-arrow`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),r_e=["stroke-width","stroke-linecap","stroke-linejoin"],o_e=B("path",{d:"M7 24h34M24 7v34M30 12l-6-6-6 6M36 30l6-6-6-6M12 30l-6-6 6-6M18 36l6 6 6-6"},null,-1),s_e=[o_e];function a_e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},s_e,14,r_e)}var oI=ye(i_e,[["render",a_e]]);const l_e=Object.assign(oI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+oI.name,oI)}}),c_e=se({name:"IconExpand",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-expand`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),u_e=["stroke-width","stroke-linecap","stroke-linejoin"],d_e=B("path",{d:"M7 26v14c0 .552.444 1 .996 1H22m19-19V8c0-.552-.444-1-.996-1H26"},null,-1),f_e=[d_e];function h_e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},f_e,14,u_e)}var sI=ye(c_e,[["render",h_e]]);const p_e=Object.assign(sI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+sI.name,sI)}}),m_e=se({name:"IconLeftCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-left-circle`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),v_e=["stroke-width","stroke-linecap","stroke-linejoin"],g_e=B("circle",{cx:"24",cy:"24",r:"18"},null,-1),y_e=B("path",{d:"M28.485 32.485 20 24l8.485-8.485"},null,-1),b_e=[g_e,y_e];function k_e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},b_e,14,v_e)}var aI=ye(m_e,[["render",k_e]]);const C_e=Object.assign(aI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+aI.name,aI)}}),S_e=se({name:"IconRightCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-right-circle`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),w_e=["stroke-width","stroke-linecap","stroke-linejoin"],__e=B("circle",{cx:"24",cy:"24",r:"18"},null,-1),I_e=B("path",{d:"M19.485 15.515 27.971 24l-8.486 8.485"},null,-1),x_e=[__e,I_e];function $_e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},x_e,14,w_e)}var lI=ye(S_e,[["render",$_e]]);const A_e=Object.assign(lI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+lI.name,lI)}}),E_e=se({name:"IconShrink",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-shrink`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),M_e=["stroke-width","stroke-linecap","stroke-linejoin"],T_e=B("path",{d:"M20 44V29c0-.552-.444-1-.996-1H4M28 4v15c0 .552.444 1 .996 1H44"},null,-1),P_e=[T_e];function O_e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},P_e,14,M_e)}var cI=ye(E_e,[["render",O_e]]);const L_e=Object.assign(cI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+cI.name,cI)}}),D_e=se({name:"IconSwap",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-swap`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),N_e=["stroke-width","stroke-linecap","stroke-linejoin"],j_e=B("path",{d:"M5 17h35.586c.89 0 1.337-1.077.707-1.707L33 7M43 31H7.414c-.89 0-1.337 1.077-.707 1.707L15 41"},null,-1),z_e=[j_e];function R_e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},z_e,14,N_e)}var uI=ye(D_e,[["render",R_e]]);const B_e=Object.assign(uI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+uI.name,uI)}}),F_e=se({name:"IconToBottom",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-to-bottom`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),V_e=["stroke-width","stroke-linecap","stroke-linejoin"],H_e=B("path",{d:"M5 41h38M24 28V5M24 34.04 17.547 27h12.907L24 34.04Zm-.736.803v.001Z"},null,-1),W_e=B("path",{d:"m24 34 6-7H18l6 7Z",fill:"currentColor",stroke:"none"},null,-1),U_e=[H_e,W_e];function Z_e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},U_e,14,V_e)}var dI=ye(F_e,[["render",Z_e]]);const G_e=Object.assign(dI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+dI.name,dI)}}),Y_e=se({name:"IconToLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-to-left`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),X_e=["stroke-width","stroke-linecap","stroke-linejoin"],K_e=B("path",{d:"M7 5v38M20 24h23M20.999 17.547v12.907L13.959 24l7.04-6.453Z"},null,-1),J_e=B("path",{d:"m14 24 7 6V18l-7 6Z",fill:"currentColor",stroke:"none"},null,-1),q_e=[K_e,J_e];function Q_e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},q_e,14,X_e)}var fI=ye(Y_e,[["render",Q_e]]);const e4e=Object.assign(fI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+fI.name,fI)}}),t4e=se({name:"IconToRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-to-right`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),n4e=["stroke-width","stroke-linecap","stroke-linejoin"],i4e=B("path",{d:"M41 43V5M28 24H5M34.04 24 27 30.453V17.546L34.04 24Zm.803.736h.001Z"},null,-1),r4e=B("path",{d:"m34 24-7-6v12l7-6Z",fill:"currentColor",stroke:"none"},null,-1),o4e=[i4e,r4e];function s4e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},o4e,14,n4e)}var hI=ye(t4e,[["render",s4e]]);const a4e=Object.assign(hI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+hI.name,hI)}}),l4e=se({name:"IconUpCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-up-circle`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),c4e=["stroke-width","stroke-linecap","stroke-linejoin"],u4e=B("circle",{cx:"24",cy:"24",r:"18"},null,-1),d4e=B("path",{d:"M15.516 28.485 24 20l8.485 8.485"},null,-1),f4e=[u4e,d4e];function h4e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},f4e,14,c4e)}var pI=ye(l4e,[["render",h4e]]);const p4e=Object.assign(pI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+pI.name,pI)}}),m4e=se({name:"IconExclamationPolygonFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-exclamation-polygon-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),v4e=["stroke-width","stroke-linecap","stroke-linejoin"],g4e=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.553 4a1 1 0 0 0-.74.327L4.26 15.937a1 1 0 0 0-.26.672V31.39a1 1 0 0 0 .26.673l10.553 11.609a1 1 0 0 0 .74.327h16.893a1 1 0 0 0 .74-.327l10.554-11.61a1 1 0 0 0 .26-.672V16.61a1 1 0 0 0-.26-.673L33.187 4.327a1 1 0 0 0-.74-.327H15.553ZM22 33a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",fill:"currentColor",stroke:"none"},null,-1),y4e=[g4e];function b4e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},y4e,14,v4e)}var mI=ye(m4e,[["render",b4e]]);const k4e=Object.assign(mI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+mI.name,mI)}}),C4e=se({name:"IconMinusCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-minus-circle-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),S4e=["stroke-width","stroke-linecap","stroke-linejoin"],w4e=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-7-22a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1H17Z",fill:"currentColor",stroke:"none"},null,-1),_4e=[w4e];function I4e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},_4e,14,S4e)}var vI=ye(C4e,[["render",I4e]]);const x4e=Object.assign(vI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+vI.name,vI)}}),$4e=se({name:"IconPlusCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-plus-circle-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),A4e=["stroke-width","stroke-linecap","stroke-linejoin"],E4e=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-28v6h6a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-6h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h6v-6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1Z",fill:"currentColor",stroke:"none"},null,-1),M4e=[E4e];function T4e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},M4e,14,A4e)}var gI=ye($4e,[["render",T4e]]);const P4e=Object.assign(gI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+gI.name,gI)}}),O4e=se({name:"IconQuestionCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-question-circle-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),L4e=["stroke-width","stroke-linecap","stroke-linejoin"],D4e=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-3.862-24.021a.461.461 0 0 0 .462-.462 2.37 2.37 0 0 1 .636-1.615C21.64 17.48 22.43 17 23.988 17c1.465 0 2.483.7 3.002 1.493.555.848.446 1.559.182 1.914-.328.444-.736.853-1.228 1.296-.15.135-.335.296-.533.468-.354.308-.75.654-1.067.955C23.22 24.195 22 25.686 22 28v.013a1 1 0 0 0 1.006.993l2.008-.012a.993.993 0 0 0 .986-1c.002-.683.282-1.19 1.101-1.97.276-.262.523-.477.806-.722.21-.18.439-.379.713-.626.57-.513 1.205-1.13 1.767-1.888 1.516-2.047 1.161-4.634-.05-6.485C29.092 14.398 26.825 13 23.988 13c-2.454 0-4.357.794-5.642 2.137-1.25 1.307-1.742 2.954-1.746 4.37 0 .26.21.472.47.472h3.068Zm1.868 14.029a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V32a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2.008Z",fill:"currentColor",stroke:"none"},null,-1),N4e=[D4e];function j4e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},N4e,14,L4e)}var yI=ye(O4e,[["render",j4e]]);const z4e=Object.assign(yI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+yI.name,yI)}}),R4e=se({name:"IconCheckCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-check-circle`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),B4e=["stroke-width","stroke-linecap","stroke-linejoin"],F4e=B("path",{d:"m15 22 7 7 11.5-11.5M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),V4e=[F4e];function H4e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},V4e,14,B4e)}var bI=ye(R4e,[["render",H4e]]);const W4e=Object.assign(bI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+bI.name,bI)}}),U4e=se({name:"IconCheckSquare",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-check-square`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Z4e=["stroke-width","stroke-linecap","stroke-linejoin"],G4e=B("path",{d:"M34.603 16.672 21.168 30.107l-7.778-7.779M8 41h32a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v32a1 1 0 0 0 1 1Z"},null,-1),Y4e=[G4e];function X4e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Y4e,14,Z4e)}var kI=ye(U4e,[["render",X4e]]);const K4e=Object.assign(kI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+kI.name,kI)}}),J4e=se({name:"IconCloseCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-close-circle`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),q4e=["stroke-width","stroke-linecap","stroke-linejoin"],Q4e=B("path",{d:"m17.643 17.643 6.364 6.364m0 0 6.364 6.364m-6.364-6.364 6.364-6.364m-6.364 6.364-6.364 6.364M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),e3e=[Q4e];function t3e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},e3e,14,q4e)}var CI=ye(J4e,[["render",t3e]]);const n3e=Object.assign(CI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+CI.name,CI)}}),i3e=se({name:"IconExclamationCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-exclamation-circle`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),r3e=["stroke-width","stroke-linecap","stroke-linejoin"],o3e=B("path",{d:"M24 28V14m0 16v4M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18S6 33.941 6 24Z"},null,-1),s3e=[o3e];function a3e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},s3e,14,r3e)}var SI=ye(i3e,[["render",a3e]]);const l3e=Object.assign(SI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+SI.name,SI)}}),c3e=se({name:"IconInfoCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-info-circle`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),u3e=["stroke-width","stroke-linecap","stroke-linejoin"],d3e=B("path",{d:"M24 20v14m0-16v-4m18 10c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),f3e=[d3e];function h3e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},f3e,14,u3e)}var wI=ye(c3e,[["render",h3e]]);const p3e=Object.assign(wI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+wI.name,wI)}}),m3e=se({name:"IconMinusCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-minus-circle`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),v3e=["stroke-width","stroke-linecap","stroke-linejoin"],g3e=B("path",{d:"M32 24H16m26 0c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),y3e=[g3e];function b3e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},y3e,14,v3e)}var _I=ye(m3e,[["render",b3e]]);const k3e=Object.assign(_I,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+_I.name,_I)}}),C3e=se({name:"IconPlusCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-plus-circle`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),S3e=["stroke-width","stroke-linecap","stroke-linejoin"],w3e=B("path",{d:"M32 24h-8m-8 0h8m0 0v8m0-8v-8m18 8c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),_3e=[w3e];function I3e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},_3e,14,S3e)}var II=ye(C3e,[["render",I3e]]);const x3e=Object.assign(II,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+II.name,II)}}),$3e=se({name:"IconQuestion",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-question`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),A3e=["stroke-width","stroke-linecap","stroke-linejoin"],E3e=B("path",{d:"M13 17c0-5.523 4.925-10 11-10s11 4.477 11 10c0 3.607-2.1 6.767-5.25 8.526C26.857 27.142 24 29.686 24 33v3m0 5h.02v.02H24V41Z"},null,-1),M3e=[E3e];function T3e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},M3e,14,A3e)}var xI=ye($3e,[["render",T3e]]);const P3e=Object.assign(xI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+xI.name,xI)}}),O3e=se({name:"IconStop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-stop`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),L3e=["stroke-width","stroke-linecap","stroke-linejoin"],D3e=B("path",{d:"M36.728 36.728c7.03-7.03 7.03-18.427 0-25.456-7.03-7.03-18.427-7.03-25.456 0m25.456 25.456c-7.03 7.03-18.427 7.03-25.456 0-7.03-7.03-7.03-18.427 0-25.456m25.456 25.456L11.272 11.272"},null,-1),N3e=[D3e];function j3e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},N3e,14,L3e)}var $I=ye(O3e,[["render",j3e]]);const z3e=Object.assign($I,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+$I.name,$I)}}),R3e=se({name:"IconHeartFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-heart-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),B3e=["stroke-width","stroke-linecap","stroke-linejoin"],F3e=B("path",{d:"M24 10.541c4.35-4.522 11.405-4.814 15.756-.292 4.35 4.522 4.15 11.365.448 17.135C36.153 33.7 28 41.5 24 42c-4-.5-12.152-8.3-16.204-14.616-3.702-5.77-3.902-12.613.448-17.135C12.595 5.727 19.65 6.019 24 10.54Z",fill:"currentColor",stroke:"none"},null,-1),V3e=[F3e];function H3e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},V3e,14,B3e)}var AI=ye(R3e,[["render",H3e]]);const W3e=Object.assign(AI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+AI.name,AI)}}),U3e=se({name:"IconThumbDownFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-thumb-down-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Z3e=["stroke-width","stroke-linecap","stroke-linejoin"],G3e=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M43 5v26h-4V5h4Z",fill:"currentColor",stroke:"none"},null,-1),Y3e=B("path",{d:"M20.9 43.537a2 2 0 0 0 2.83-.364L32.964 31H36V5H12.424a2 2 0 0 0-1.89 1.346L4.838 25.692C3.938 28.29 5.868 31 8.618 31h10.568l-2.421 5.448a4 4 0 0 0 1.184 4.77l2.951 2.32Z",fill:"currentColor",stroke:"none"},null,-1),X3e=[G3e,Y3e];function K3e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},X3e,14,Z3e)}var EI=ye(U3e,[["render",K3e]]);const J3e=Object.assign(EI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+EI.name,EI)}}),q3e=se({name:"IconThumbUpFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-thumb-up-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Q3e=["stroke-width","stroke-linecap","stroke-linejoin"],eIe=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 43V17h4v26H5Z",fill:"currentColor",stroke:"none"},null,-1),tIe=B("path",{d:"M27.1 4.463a2 2 0 0 0-2.83.364L15.036 17H12v26h23.576a2 2 0 0 0 1.89-1.346l5.697-19.346c.899-2.598-1.03-5.308-3.78-5.308h-10.57l2.422-5.448a4 4 0 0 0-1.184-4.77L27.1 4.462Z",fill:"currentColor",stroke:"none"},null,-1),nIe=[eIe,tIe];function iIe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},nIe,14,Q3e)}var MI=ye(q3e,[["render",iIe]]);const rIe=Object.assign(MI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+MI.name,MI)}}),oIe=se({name:"IconAt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-at`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),sIe=["stroke-width","stroke-linecap","stroke-linejoin"],aIe=B("path",{d:"M31 23a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm0 0c0 3.038 2.462 6.5 5.5 6.5A5.5 5.5 0 0 0 42 24c0-9.941-8.059-18-18-18S6 14.059 6 24s8.059 18 18 18c4.244 0 8.145-1.469 11.222-3.925"},null,-1),lIe=[aIe];function cIe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},lIe,14,sIe)}var TI=ye(oIe,[["render",cIe]]);const uIe=Object.assign(TI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+TI.name,TI)}}),dIe=se({name:"IconCloudDownload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-cloud-download`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),fIe=["stroke-width","stroke-linecap","stroke-linejoin"],hIe=B("path",{d:"M43 22c0-7.732-6.492-14-14.5-14S14 14.268 14 22v.055A9.001 9.001 0 0 0 15 40h13m16.142-5.929-7.07 7.071L30 34.072M37.07 26v15"},null,-1),pIe=[hIe];function mIe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},pIe,14,fIe)}var PI=ye(dIe,[["render",mIe]]);const vIe=Object.assign(PI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+PI.name,PI)}}),gIe=se({name:"IconCodeBlock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-code-block`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),yIe=["stroke-width","stroke-linecap","stroke-linejoin"],bIe=B("path",{d:"M19 6h-4a3 3 0 0 0-3 3v10c0 3-4.343 5-6 5 1.657 0 6 2 6 5v10a3 3 0 0 0 3 3h4M29 6h4a3 3 0 0 1 3 3v10c0 3 4.343 5 6 5-1.657 0-6 2-6 5v10a3 3 0 0 1-3 3h-4"},null,-1),kIe=[bIe];function CIe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},kIe,14,yIe)}var OI=ye(gIe,[["render",CIe]]);const SIe=Object.assign(OI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+OI.name,OI)}}),wIe=se({name:"IconCodeSquare",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-code-square`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),_Ie=["stroke-width","stroke-linecap","stroke-linejoin"],IIe=B("path",{d:"M23.071 17 16 24.071l7.071 7.071m9.001-14.624-4.14 15.454M9 42h30a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v34a1 1 0 0 0 1 1Z"},null,-1),xIe=[IIe];function $Ie(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},xIe,14,_Ie)}var LI=ye(wIe,[["render",$Ie]]);const AIe=Object.assign(LI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+LI.name,LI)}}),EIe=se({name:"IconCode",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-code`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),MIe=["stroke-width","stroke-linecap","stroke-linejoin"],TIe=B("path",{d:"M16.734 12.686 5.42 24l11.314 11.314m14.521-22.628L42.57 24 31.255 35.314M27.2 6.28l-6.251 35.453"},null,-1),PIe=[TIe];function OIe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},PIe,14,MIe)}var DI=ye(EIe,[["render",OIe]]);const LIe=Object.assign(DI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+DI.name,DI)}}),DIe=se({name:"IconCustomerService",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-customer-service`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),NIe=["stroke-width","stroke-linecap","stroke-linejoin"],jIe=B("path",{d:"M11 31V20c0-7.18 5.82-13 13-13s13 5.82 13 13v8c0 5.784-3.778 10.686-9 12.373m0 0A12.99 12.99 0 0 1 24 41h-3a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2.373Zm0 0V41m9-20h3a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-3v-8Zm-26 0H8a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h3v-8Z"},null,-1),zIe=[jIe];function RIe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},zIe,14,NIe)}var NI=ye(DIe,[["render",RIe]]);const BIe=Object.assign(NI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+NI.name,NI)}}),FIe=se({name:"IconDownload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-download`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),VIe=["stroke-width","stroke-linecap","stroke-linejoin"],HIe=B("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"},null,-1),WIe=[HIe];function UIe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},WIe,14,VIe)}var jI=ye(FIe,[["render",UIe]]);const ZIe=Object.assign(jI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+jI.name,jI)}}),GIe=se({name:"IconExport",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-export`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),YIe=["stroke-width","stroke-linecap","stroke-linejoin"],XIe=B("path",{d:"M31.928 33.072 41 24.002l-9.072-9.072M16.858 24h24M31 41H7V7h24"},null,-1),KIe=[XIe];function JIe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},KIe,14,YIe)}var zI=ye(GIe,[["render",JIe]]);const qIe=Object.assign(zI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+zI.name,zI)}}),QIe=se({name:"IconHeart",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-heart`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),exe=["stroke-width","stroke-linecap","stroke-linejoin"],txe=B("path",{d:"M38.083 12.912a9.929 9.929 0 0 1 .177 13.878l-.177.18L25.76 39.273c-.972.97-2.548.97-3.52 0L9.917 26.971l-.177-.181a9.929 9.929 0 0 1 .177-13.878c3.889-3.883 10.194-3.883 14.083 0 3.889-3.883 10.194-3.883 14.083 0Z"},null,-1),nxe=[txe];function ixe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},nxe,14,exe)}var RI=ye(QIe,[["render",ixe]]);const rxe=Object.assign(RI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+RI.name,RI)}}),oxe=se({name:"IconHistory",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-history`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),sxe=["stroke-width","stroke-linecap","stroke-linejoin"],axe=B("path",{d:"M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18c-6.26 0-11.775-3.197-15-8.047M6 24l-.5-.757h1L6 24Zm26 2h-9v-9"},null,-1),lxe=[axe];function cxe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},lxe,14,sxe)}var BI=ye(oxe,[["render",cxe]]);const uxe=Object.assign(BI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+BI.name,BI)}}),dxe=se({name:"IconHome",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-home`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),fxe=["stroke-width","stroke-linecap","stroke-linejoin"],hxe=B("path",{d:"M7 17 24 7l17 10v24H7V17Z"},null,-1),pxe=B("path",{d:"M20 28h8v13h-8V28Z"},null,-1),mxe=[hxe,pxe];function vxe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},mxe,14,fxe)}var FI=ye(dxe,[["render",vxe]]);const gxe=Object.assign(FI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+FI.name,FI)}}),yxe=se({name:"IconImport",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-import`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),bxe=["stroke-width","stroke-linecap","stroke-linejoin"],kxe=B("path",{d:"m27.929 33.072-9.071-9.07 9.07-9.072M43 24H19m12 17H7V7h24"},null,-1),Cxe=[kxe];function Sxe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Cxe,14,bxe)}var VI=ye(yxe,[["render",Sxe]]);const wxe=Object.assign(VI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+VI.name,VI)}}),_xe=se({name:"IconLaunch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-launch`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Ixe=["stroke-width","stroke-linecap","stroke-linejoin"],xxe=B("path",{d:"M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"},null,-1),$xe=[xxe];function Axe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},$xe,14,Ixe)}var HI=ye(_xe,[["render",Axe]]);const Exe=Object.assign(HI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+HI.name,HI)}}),Mxe=se({name:"IconList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-list`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Txe=["stroke-width","stroke-linecap","stroke-linejoin"],Pxe=B("path",{d:"M13 24h30M5 12h4m4 24h30M13 12h30M5 24h4M5 36h4"},null,-1),Oxe=[Pxe];function Lxe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Oxe,14,Txe)}var WI=ye(Mxe,[["render",Lxe]]);const Dxe=Object.assign(WI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+WI.name,WI)}}),Nxe=se({name:"IconMessageBanned",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-message-banned`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),jxe=["stroke-width","stroke-linecap","stroke-linejoin"],zxe=B("path",{d:"M40.527 20C38.727 12.541 32.01 7 24 7 14.611 7 7 14.611 7 24v17h14m19.364-.636a9 9 0 0 0-12.728-12.728m12.728 12.728a9 9 0 0 1-12.728-12.728m12.728 12.728L27.636 27.636M13 20h12m-12 9h6"},null,-1),Rxe=[zxe];function Bxe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Rxe,14,jxe)}var UI=ye(Nxe,[["render",Bxe]]);const Fxe=Object.assign(UI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+UI.name,UI)}}),Vxe=se({name:"IconMessage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-message`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Hxe=["stroke-width","stroke-linecap","stroke-linejoin"],Wxe=B("path",{d:"M15 20h18m-18 9h9M7 41h17.63C33.67 41 41 33.67 41 24.63V24c0-9.389-7.611-17-17-17S7 14.611 7 24v17Z"},null,-1),Uxe=[Wxe];function Zxe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Uxe,14,Hxe)}var ZI=ye(Vxe,[["render",Zxe]]);const Gxe=Object.assign(ZI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+ZI.name,ZI)}}),Yxe=se({name:"IconMoreVertical",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-more-vertical`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Xxe=["stroke-width","stroke-linecap","stroke-linejoin"],Kxe=B("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z",fill:"currentColor",stroke:"none"},null,-1),Jxe=B("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z"},null,-1),qxe=[Kxe,Jxe];function Qxe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},qxe,14,Xxe)}var GI=ye(Yxe,[["render",Qxe]]);const e$e=Object.assign(GI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+GI.name,GI)}}),t$e=se({name:"IconPoweroff",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-poweroff`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),n$e=["stroke-width","stroke-linecap","stroke-linejoin"],i$e=B("path",{d:"M15.5 9.274C10.419 12.214 7 17.708 7 24c0 9.389 7.611 17 17 17s17-7.611 17-17c0-6.292-3.419-11.786-8.5-14.726M24 5v22"},null,-1),r$e=[i$e];function o$e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},r$e,14,n$e)}var YI=ye(t$e,[["render",o$e]]);const s$e=Object.assign(YI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+YI.name,YI)}}),a$e=se({name:"IconRefresh",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-refresh`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),l$e=["stroke-width","stroke-linecap","stroke-linejoin"],c$e=B("path",{d:"M38.837 18C36.463 12.136 30.715 8 24 8 15.163 8 8 15.163 8 24s7.163 16 16 16c7.455 0 13.72-5.1 15.496-12M40 8v10H30"},null,-1),u$e=[c$e];function d$e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},u$e,14,l$e)}var XI=ye(a$e,[["render",d$e]]);const f$e=Object.assign(XI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+XI.name,XI)}}),h$e=se({name:"IconReply",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-reply`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),p$e=["stroke-width","stroke-linecap","stroke-linejoin"],m$e=B("path",{d:"m6.642 24.684 14.012 14.947a.2.2 0 0 0 .346-.137v-8.949A23.077 23.077 0 0 1 26 30c6.208 0 11.84 2.459 15.978 6.456a.01.01 0 0 0 .017-.007C42 36.299 42 36.15 42 36c0-10.493-8.506-19-19-19-.675 0-1.342.035-2 .104V8.506a.2.2 0 0 0-.346-.137L6.642 23.316a1 1 0 0 0 0 1.368Z"},null,-1),v$e=[m$e];function g$e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},v$e,14,p$e)}var KI=ye(h$e,[["render",g$e]]);const y$e=Object.assign(KI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+KI.name,KI)}}),b$e=se({name:"IconSave",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-save`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),k$e=["stroke-width","stroke-linecap","stroke-linejoin"],C$e=B("path",{d:"M21 13v9m18 20H9a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h22.55a1 1 0 0 1 .748.336l7.45 8.38a1 1 0 0 1 .252.664V41a1 1 0 0 1-1 1ZM14 6h14v15a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1V6Z"},null,-1),S$e=[C$e];function w$e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},S$e,14,k$e)}var JI=ye(b$e,[["render",w$e]]);const _$e=Object.assign(JI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+JI.name,JI)}}),I$e=se({name:"IconScan",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-scan`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),x$e=["stroke-width","stroke-linecap","stroke-linejoin"],$$e=B("path",{d:"M7 17V7h10m24 10V7H31m10 24v10H31M7 31v10h10M5 24h38"},null,-1),A$e=[$$e];function E$e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},A$e,14,x$e)}var qI=ye(I$e,[["render",E$e]]);const M$e=Object.assign(qI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+qI.name,qI)}}),T$e=se({name:"IconSelectAll",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-select-all`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),P$e=["stroke-width","stroke-linecap","stroke-linejoin"],O$e=B("path",{d:"m17.314 7.243-7.071 7.07L6 10.072m11.314 10.172-7.071 7.07L6 23.072m11.314 10.172-7.071 7.07L6 36.072M21 11h22M21 25h22M21 39h22"},null,-1),L$e=[O$e];function D$e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},L$e,14,P$e)}var QI=ye(T$e,[["render",D$e]]);const N$e=Object.assign(QI,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+QI.name,QI)}}),j$e=se({name:"IconSend",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-send`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),z$e=["stroke-width","stroke-linecap","stroke-linejoin"],R$e=B("path",{d:"m14 24-7-5V7l34 17L7 41V29l7-5Zm0 0h25","stroke-miterlimit":"3.864"},null,-1),B$e=[R$e];function F$e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},B$e,14,z$e)}var ex=ye(j$e,[["render",F$e]]);const V$e=Object.assign(ex,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+ex.name,ex)}}),H$e=se({name:"IconSettings",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-settings`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),W$e=["stroke-width","stroke-linecap","stroke-linejoin"],U$e=B("path",{d:"M18.797 6.732A1 1 0 0 1 19.76 6h8.48a1 1 0 0 1 .964.732l1.285 4.628a1 1 0 0 0 1.213.7l4.651-1.2a1 1 0 0 1 1.116.468l4.24 7.344a1 1 0 0 1-.153 1.2L38.193 23.3a1 1 0 0 0 0 1.402l3.364 3.427a1 1 0 0 1 .153 1.2l-4.24 7.344a1 1 0 0 1-1.116.468l-4.65-1.2a1 1 0 0 0-1.214.7l-1.285 4.628a1 1 0 0 1-.964.732h-8.48a1 1 0 0 1-.963-.732L17.51 36.64a1 1 0 0 0-1.213-.7l-4.65 1.2a1 1 0 0 1-1.116-.468l-4.24-7.344a1 1 0 0 1 .153-1.2L9.809 24.7a1 1 0 0 0 0-1.402l-3.364-3.427a1 1 0 0 1-.153-1.2l4.24-7.344a1 1 0 0 1 1.116-.468l4.65 1.2a1 1 0 0 0 1.213-.7l1.286-4.628Z"},null,-1),Z$e=B("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1),G$e=[U$e,Z$e];function Y$e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},G$e,14,W$e)}var tx=ye(H$e,[["render",Y$e]]);const X$e=Object.assign(tx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+tx.name,tx)}}),K$e=se({name:"IconShareAlt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-share-alt`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),J$e=["stroke-width","stroke-linecap","stroke-linejoin"],q$e=B("path",{d:"M32.442 21.552a4.5 4.5 0 1 1 .065 4.025m-.065-4.025-16.884-8.104m16.884 8.104A4.483 4.483 0 0 0 32 23.5c0 .75.183 1.455.507 2.077m-16.95-12.13a4.5 4.5 0 1 1-8.113-3.895 4.5 4.5 0 0 1 8.114 3.896Zm-.064 20.977A4.5 4.5 0 1 0 11.5 41c3.334-.001 5.503-3.68 3.993-6.578Zm0 0 17.014-8.847"},null,-1),Q$e=[q$e];function e5e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Q$e,14,J$e)}var nx=ye(K$e,[["render",e5e]]);const t5e=Object.assign(nx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+nx.name,nx)}}),n5e=se({name:"IconShareExternal",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-share-external`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),i5e=["stroke-width","stroke-linecap","stroke-linejoin"],r5e=B("path",{d:"M18 20h-7a1 1 0 0 0-1 1v20a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1V21a1 1 0 0 0-1-1h-7m2.368-5.636L24.004 6l-8.364 8.364M24.003 28V6.604","stroke-miterlimit":"16"},null,-1),o5e=[r5e];function s5e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},o5e,14,i5e)}var ix=ye(n5e,[["render",s5e]]);const a5e=Object.assign(ix,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+ix.name,ix)}}),l5e=se({name:"IconShareInternal",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-share-internal`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),c5e=["stroke-width","stroke-linecap","stroke-linejoin"],u5e=B("path",{d:"M40 35v6H8v-6m1.108-4c1.29-8.868 13.917-15.85 29.392-15.998M30 6l9 9-9 9"},null,-1),d5e=[u5e];function f5e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},d5e,14,c5e)}var rx=ye(l5e,[["render",f5e]]);const h5e=Object.assign(rx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+rx.name,rx)}}),p5e=se({name:"IconStar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-star`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),m5e=["stroke-width","stroke-linecap","stroke-linejoin"],v5e=B("path",{d:"M22.552 6.908a.5.5 0 0 1 .896 0l5.02 10.17a.5.5 0 0 0 .376.274l11.224 1.631a.5.5 0 0 1 .277.853l-8.122 7.916a.5.5 0 0 0-.143.443l1.917 11.178a.5.5 0 0 1-.726.527l-10.038-5.278a.5.5 0 0 0-.466 0L12.73 39.9a.5.5 0 0 1-.726-.527l1.918-11.178a.5.5 0 0 0-.144-.443l-8.122-7.916a.5.5 0 0 1 .278-.853l11.223-1.63a.5.5 0 0 0 .376-.274l5.02-10.17Z"},null,-1),g5e=[v5e];function y5e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},g5e,14,m5e)}var ox=ye(p5e,[["render",y5e]]);const b5e=Object.assign(ox,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+ox.name,ox)}}),k5e=se({name:"IconSync",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-sync`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),C5e=["stroke-width","stroke-linecap","stroke-linejoin"],S5e=B("path",{d:"M11.98 11.703c-6.64 6.64-6.64 17.403 0 24.042a16.922 16.922 0 0 0 8.942 4.7M34.603 37.156l1.414-1.415c6.64-6.639 6.64-17.402 0-24.041A16.922 16.922 0 0 0 27.075 7M14.81 11.982l-1.414-1.414-1.414-1.414h2.829v2.828ZM33.192 36.02l1.414 1.414 1.414 1.415h-2.828V36.02Z"},null,-1),w5e=[S5e];function _5e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},w5e,14,C5e)}var sx=ye(k5e,[["render",_5e]]);const I5e=Object.assign(sx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+sx.name,sx)}}),x5e=se({name:"IconThumbDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-thumb-down`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),$5e=["stroke-width","stroke-linecap","stroke-linejoin"],A5e=B("path",{d:"M41 31V5M5.83 26.394l5.949-18.697A1 1 0 0 1 12.732 7H34v22h-3l-9.403 12.223a1 1 0 0 1-1.386.196l-2.536-1.87a6 6 0 0 1-2.043-6.974L17 29H7.736a2 2 0 0 1-1.906-2.606Z"},null,-1),E5e=[A5e];function M5e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},E5e,14,$5e)}var ax=ye(x5e,[["render",M5e]]);const T5e=Object.assign(ax,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+ax.name,ax)}}),P5e=se({name:"IconThumbUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-thumb-up`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),O5e=["stroke-width","stroke-linecap","stroke-linejoin"],L5e=B("path",{d:"M7 17v26m35.17-21.394-5.948 18.697a1 1 0 0 1-.953.697H14V19h3l9.403-12.223a1 1 0 0 1 1.386-.196l2.535 1.87a6 6 0 0 1 2.044 6.974L31 19h9.265a2 2 0 0 1 1.906 2.606Z"},null,-1),D5e=[L5e];function N5e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},D5e,14,O5e)}var lx=ye(P5e,[["render",N5e]]);const j5e=Object.assign(lx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+lx.name,lx)}}),z5e=se({name:"IconTranslate",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-translate`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),R5e=["stroke-width","stroke-linecap","stroke-linejoin"],B5e=B("path",{d:"M42 25c0 9.941-8.059 18-18 18-6.867 0-12.836-3.845-15.87-9.5M28.374 27 25 18h-2l-3.375 9m8.75 0L31 34m-2.625-7h-8.75m0 0L17 34M6 25c0-9.941 8.059-18 18-18 6.867 0 12.836 3.845 15.87 9.5M43 25h-2l1-1 1 1ZM5 25h2l-1 1-1-1Z"},null,-1),F5e=[B5e];function V5e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},F5e,14,R5e)}var cx=ye(z5e,[["render",V5e]]);const H5e=Object.assign(cx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+cx.name,cx)}}),W5e=se({name:"IconVoice",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-voice`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),U5e=["stroke-width","stroke-linecap","stroke-linejoin"],Z5e=B("path",{d:"M41 21v1c0 8.837-7.163 16-16 16h-2c-8.837 0-16-7.163-16-16v-1m17 17v6m0-14a9 9 0 0 1-9-9v-6a9 9 0 1 1 18 0v6a9 9 0 0 1-9 9Z"},null,-1),G5e=[Z5e];function Y5e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},G5e,14,U5e)}var ux=ye(W5e,[["render",Y5e]]);const X5e=Object.assign(ux,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+ux.name,ux)}}),K5e=se({name:"IconAlignCenter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-align-center`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),J5e=["stroke-width","stroke-linecap","stroke-linejoin"],q5e=B("path",{d:"M44 9H4m38 20H6m28-10H14m20 20H14"},null,-1),Q5e=[q5e];function eAe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Q5e,14,J5e)}var dx=ye(K5e,[["render",eAe]]);const tAe=Object.assign(dx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+dx.name,dx)}}),nAe=se({name:"IconAlignLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-align-left`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),iAe=["stroke-width","stroke-linecap","stroke-linejoin"],rAe=B("path",{d:"M44 9H4m36 20H4m21-10H4m21 20H4"},null,-1),oAe=[rAe];function sAe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},oAe,14,iAe)}var fx=ye(nAe,[["render",sAe]]);const aAe=Object.assign(fx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+fx.name,fx)}}),lAe=se({name:"IconAlignRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-align-right`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),cAe=["stroke-width","stroke-linecap","stroke-linejoin"],uAe=B("path",{d:"M4 9h40M8 29h36M23 19h21M23 39h21"},null,-1),dAe=[uAe];function fAe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},dAe,14,cAe)}var hx=ye(lAe,[["render",fAe]]);const hAe=Object.assign(hx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+hx.name,hx)}}),pAe=se({name:"IconAttachment",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-attachment`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),mAe=["stroke-width","stroke-linecap","stroke-linejoin"],vAe=B("path",{d:"M29.037 15.236s-9.174 9.267-11.48 11.594c-2.305 2.327-1.646 4.987-.329 6.316 1.317 1.33 3.994 1.953 6.258-.332L37.32 18.851c3.623-3.657 2.092-8.492 0-10.639-2.093-2.147-6.916-3.657-10.54 0L11.3 23.838c-3.623 3.657-3.953 10.638.329 14.96 4.282 4.322 11.115 4.105 14.821.333 3.706-3.773 8.74-8.822 11.224-11.33"},null,-1),gAe=[vAe];function yAe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},gAe,14,mAe)}var px=ye(pAe,[["render",yAe]]);const bAe=Object.assign(px,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+px.name,px)}}),kAe=se({name:"IconBgColors",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-bg-colors`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),CAe=["stroke-width","stroke-linecap","stroke-linejoin"],SAe=B("path",{d:"m9.442 25.25 10.351 10.765a1 1 0 0 0 1.428.014L32 25.25H9.442Z",fill:"currentColor",stroke:"none"},null,-1),wAe=B("path",{d:"M19 5.25 22.75 9m0 0 12.043 12.043a1 1 0 0 1 0 1.414L32 25.25M22.75 9 8.693 23.057a1 1 0 0 0-.013 1.4l.762.793m0 0 10.351 10.765a1 1 0 0 0 1.428.014L32 25.25m-22.558 0H32M6 42h36"},null,-1),_Ae=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M40.013 29.812 37.201 27l-2.812 2.812a4 4 0 1 0 5.624 0Z",fill:"currentColor",stroke:"none"},null,-1),IAe=[SAe,wAe,_Ae];function xAe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},IAe,14,CAe)}var mx=ye(kAe,[["render",xAe]]);const $Ae=Object.assign(mx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+mx.name,mx)}}),AAe=se({name:"IconBold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-bold`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),EAe=["stroke-width","stroke-linecap","stroke-linejoin"],MAe=B("path",{d:"M13 24h12a8 8 0 1 0 0-16H13.2a.2.2 0 0 0-.2.2V24Zm0 0h16a8 8 0 1 1 0 16H13.2a.2.2 0 0 1-.2-.2V24Z"},null,-1),TAe=[MAe];function PAe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},TAe,14,EAe)}var vx=ye(AAe,[["render",PAe]]);const OAe=Object.assign(vx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+vx.name,vx)}}),LAe=se({name:"IconBrush",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-brush`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),DAe=["stroke-width","stroke-linecap","stroke-linejoin"],NAe=B("path",{d:"M33 13h7a1 1 0 0 1 1 1v12.14a1 1 0 0 1-.85.99l-21.3 3.24a1 1 0 0 0-.85.99V43M33 8v10.002A.998.998 0 0 1 32 19H8a1 1 0 0 1-1-1V8c0-.552.444-1 .997-1H32.01c.552 0 .99.447.99 1Z"},null,-1),jAe=[NAe];function zAe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},jAe,14,DAe)}var gx=ye(LAe,[["render",zAe]]);const RAe=Object.assign(gx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+gx.name,gx)}}),BAe=se({name:"IconEraser",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-eraser`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),FAe=["stroke-width","stroke-linecap","stroke-linejoin"],VAe=B("path",{d:"M25.5 40.503 14.914 40.5a1 1 0 0 1-.707-.293l-9-9a1 1 0 0 1 0-1.414L13.5 21.5m12 19.003L44 40.5m-18.5.003L29 37M13.5 21.5 26.793 8.207a1 1 0 0 1 1.414 0l14.086 14.086a1 1 0 0 1 0 1.414L29 37M13.5 21.5 29 37"},null,-1),HAe=[VAe];function WAe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},HAe,14,FAe)}var yx=ye(BAe,[["render",WAe]]);const UAe=Object.assign(yx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+yx.name,yx)}}),ZAe=se({name:"IconFindReplace",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-find-replace`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),GAe=["stroke-width","stroke-linecap","stroke-linejoin"],YAe=B("path",{d:"M42.353 40.854 36.01 34.51m0 0a9 9 0 0 1-15.364-6.364c0-5 4-9 9-9s9 4 9 9a8.972 8.972 0 0 1-2.636 6.364Zm5.636-26.365h-36m10 16h-10m10 16h-10"},null,-1),XAe=[YAe];function KAe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},XAe,14,GAe)}var bx=ye(ZAe,[["render",KAe]]);const JAe=Object.assign(bx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+bx.name,bx)}}),qAe=se({name:"IconFontColors",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-font-colors`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),QAe=["stroke-width","stroke-linecap","stroke-linejoin"],eEe=B("path",{d:"M9 41h30M16.467 22 11.5 34m20.032-12L24.998 7h-2l-6.532 15h15.065Zm0 0H16.467h15.065Zm0 0L36.5 34l-4.968-12Z"},null,-1),tEe=[eEe];function nEe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},tEe,14,QAe)}var kx=ye(qAe,[["render",nEe]]);const iEe=Object.assign(kx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+kx.name,kx)}}),rEe=se({name:"IconFormula",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-formula`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),oEe=["stroke-width","stroke-linecap","stroke-linejoin"],sEe=B("path",{d:"M40 8H10a1 1 0 0 0-1 1v.546a1 1 0 0 0 .341.753L24.17 23.273a1 1 0 0 1 .026 1.482l-.195.183L9.343 37.7a1 1 0 0 0-.343.754V39a1 1 0 0 0 1 1h30"},null,-1),aEe=[sEe];function lEe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},aEe,14,oEe)}var Cx=ye(rEe,[["render",lEe]]);const cEe=Object.assign(Cx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Cx.name,Cx)}}),uEe=se({name:"IconH1",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-h1`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),dEe=["stroke-width","stroke-linecap","stroke-linejoin"],fEe=B("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M40 42V21h-1l-6 3"},null,-1),hEe=[fEe];function pEe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},hEe,14,dEe)}var Sx=ye(uEe,[["render",pEe]]);const mEe=Object.assign(Sx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Sx.name,Sx)}}),vEe=se({name:"IconH2",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-h2`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),gEe=["stroke-width","stroke-linecap","stroke-linejoin"],yEe=B("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M44 40H32v-.5l7.5-9c.914-1.117 2.5-3 2.5-5 0-2.485-2.239-4.5-5-4.5s-5 2.515-5 5"},null,-1),bEe=[yEe];function kEe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},bEe,14,gEe)}var wx=ye(vEe,[["render",kEe]]);const CEe=Object.assign(wx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+wx.name,wx)}}),SEe=se({name:"IconH3",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-h3`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),wEe=["stroke-width","stroke-linecap","stroke-linejoin"],_Ee=B("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M37.001 30h-2m2 0a5 5 0 0 0 0-10h-.556a4.444 4.444 0 0 0-4.444 4.444m5 5.556a5 5 0 0 1 0 10h-.556a4.444 4.444 0 0 1-4.444-4.444"},null,-1),IEe=[_Ee];function xEe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},IEe,14,wEe)}var _x=ye(SEe,[["render",xEe]]);const $Ee=Object.assign(_x,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+_x.name,_x)}}),AEe=se({name:"IconH4",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-h4`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),EEe=["stroke-width","stroke-linecap","stroke-linejoin"],MEe=B("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m14.5-6H31v-1l8-15h1.5v16Zm0 0H44m-3.5 0v6"},null,-1),TEe=[MEe];function PEe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},TEe,14,EEe)}var Ix=ye(AEe,[["render",PEe]]);const OEe=Object.assign(Ix,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Ix.name,Ix)}}),LEe=se({name:"IconH5",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-h5`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),DEe=["stroke-width","stroke-linecap","stroke-linejoin"],NEe=B("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M43 21H32.5v9h.5s1.5-1 4-1a5 5 0 0 1 5 5v1a5 5 0 0 1-5 5c-2.05 0-4.728-1.234-5.5-3"},null,-1),jEe=[NEe];function zEe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},jEe,14,DEe)}var xx=ye(LEe,[["render",zEe]]);const REe=Object.assign(xx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+xx.name,xx)}}),BEe=se({name:"IconH6",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-h6`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),FEe=["stroke-width","stroke-linecap","stroke-linejoin"],VEe=B("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M32 34.5c0 3.038 2.239 5.5 5 5.5s5-2.462 5-5.5-2.239-5.5-5-5.5-5 2.462-5 5.5Zm0 0v-5.73c0-4.444 3.867-7.677 8-7.263.437.044.736.08.952.115"},null,-1),HEe=[VEe];function WEe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},HEe,14,FEe)}var $x=ye(BEe,[["render",WEe]]);const UEe=Object.assign($x,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+$x.name,$x)}}),ZEe=se({name:"IconH7",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-h7`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),GEe=["stroke-width","stroke-linecap","stroke-linejoin"],YEe=B("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m4-21h12v1l-4.4 16-1.1 3.5"},null,-1),XEe=[YEe];function KEe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},XEe,14,GEe)}var Ax=ye(ZEe,[["render",KEe]]);const JEe=Object.assign(Ax,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Ax.name,Ax)}}),qEe=se({name:"IconHighlight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-highlight`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),QEe=["stroke-width","stroke-linecap","stroke-linejoin"],eMe=B("path",{d:"M19 18V9.28a1 1 0 0 1 .758-.97l8-2A1 1 0 0 1 29 7.28V18m-10 0h-4a1 1 0 0 0-1 1v8h-4a1 1 0 0 0-1 1v15m10-25h10m0 0h4a1 1 0 0 1 1 1v8h4a1 1 0 0 1 1 1v15"},null,-1),tMe=[eMe];function nMe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},tMe,14,QEe)}var Ex=ye(qEe,[["render",nMe]]);const iMe=Object.assign(Ex,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Ex.name,Ex)}}),rMe=se({name:"IconItalic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-italic`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),oMe=["stroke-width","stroke-linecap","stroke-linejoin"],sMe=B("path",{d:"M18 8h9m8 0h-8m0 0-6 32m0 0h-8m8 0h9"},null,-1),aMe=[sMe];function lMe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},aMe,14,oMe)}var Mx=ye(rMe,[["render",lMe]]);const cMe=Object.assign(Mx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Mx.name,Mx)}}),uMe=se({name:"IconLineHeight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-line-height`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),dMe=["stroke-width","stroke-linecap","stroke-linejoin"],fMe=B("path",{d:"M4 8h14.5M33 8H18.5m0 0v34"},null,-1),hMe=B("path",{d:"M39 9.5 37 13h4l-2-3.5ZM39 38.5 37 35h4l-2 3.5Z",fill:"currentColor",stroke:"none"},null,-1),pMe=B("path",{d:"M39 13h2l-2-3.5-2 3.5h2Zm0 0v22m0 0h2l-2 3.5-2-3.5h2Z"},null,-1),mMe=[fMe,hMe,pMe];function vMe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},mMe,14,dMe)}var Tx=ye(uMe,[["render",vMe]]);const gMe=Object.assign(Tx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Tx.name,Tx)}}),yMe=se({name:"IconOrderedList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-ordered-list`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),bMe=["stroke-width","stroke-linecap","stroke-linejoin"],kMe=B("path",{d:"M13 24h30M13 37h30M13 11h30"},null,-1),CMe=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.578 13.06v1.695h5.041V13.06H9.164V7.555H7.748L5.255 8.968l.763 1.513 1.114-.636v3.215H5.578ZM5.37 26.205v1.49h5.07V26H7.964l.94-.94c.454-.44.783-.86.982-1.258.199-.404.298-.826.298-1.266 0-.686-.224-1.225-.683-1.6-.45-.372-1.093-.55-1.912-.55-.473 0-.933.072-1.38.214a3.63 3.63 0 0 0-1.133.582l-.066.053.652 1.533.113-.085c.263-.199.524-.345.783-.44.266-.094.524-.141.774-.141.309 0 .52.06.652.165.128.1.198.252.198.477 0 .177-.05.356-.154.54l-.001.002c-.099.186-.274.416-.528.69L5.37 26.205ZM10.381 38.344c0-.443-.118-.826-.358-1.145a1.702 1.702 0 0 0-.713-.56 1.652 1.652 0 0 0 .586-.52 1.73 1.73 0 0 0 .307-1.022c0-.404-.108-.763-.327-1.074a2.076 2.076 0 0 0-.918-.71c-.386-.166-.833-.247-1.34-.247-.48 0-.952.071-1.417.213-.459.134-.836.318-1.127.554l-.065.053.652 1.486.11-.076c.275-.193.563-.34.863-.442h.002c.3-.109.581-.162.844-.162.266 0 .454.065.579.18l.004.002c.128.107.198.262.198.48 0 .201-.07.33-.197.412-.138.089-.376.141-.733.141h-1.01v1.626h1.188c.371 0 .614.056.75.15.127.085.2.23.2.463 0 .254-.078.412-.21.503l-.002.002c-.136.097-.386.157-.777.157-.595 0-1.194-.199-1.8-.605l-.11-.073-.65 1.483.064.053c.285.236.662.424 1.127.565h.002c.465.136.95.203 1.456.203.852 0 1.538-.178 2.045-.546.517-.377.777-.896.777-1.544Z",fill:"currentColor",stroke:"none"},null,-1),SMe=[kMe,CMe];function wMe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},SMe,14,bMe)}var Px=ye(yMe,[["render",wMe]]);const _Me=Object.assign(Px,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Px.name,Px)}}),IMe=se({name:"IconPaste",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-paste`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),xMe=["stroke-width","stroke-linecap","stroke-linejoin"],$Me=B("rect",{x:"8",y:"14",width:"24",height:"28",rx:"1"},null,-1),AMe=B("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z",fill:"currentColor",stroke:"none"},null,-1),EMe=B("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z"},null,-1),MMe=[$Me,AMe,EMe];function TMe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},MMe,14,xMe)}var Ox=ye(IMe,[["render",TMe]]);const PMe=Object.assign(Ox,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Ox.name,Ox)}}),OMe=se({name:"IconQuote",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-quote`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),LMe=["stroke-width","stroke-linecap","stroke-linejoin"],DMe=B("path",{d:"M18.08 33.093a6 6 0 0 1-12 0c-.212-3.593 2.686-6 6-6a6 6 0 0 1 6 6ZM39.08 33.093a6 6 0 0 1-12 0c-.212-3.593 2.686-6 6-6a6 6 0 0 1 6 6Z",fill:"currentColor",stroke:"none"},null,-1),NMe=B("path",{d:"M6.08 33.093a6 6 0 1 0 6-6c-3.314 0-6.212 2.407-6 6Zm0 0c-.5-8.5 1-25.5 15-24m6 24a6 6 0 1 0 6-6c-3.314 0-6.212 2.407-6 6Zm0 0c-.5-8.5 1-25.5 15-24"},null,-1),jMe=[DMe,NMe];function zMe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},jMe,14,LMe)}var Lx=ye(OMe,[["render",zMe]]);const RMe=Object.assign(Lx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Lx.name,Lx)}}),BMe=se({name:"IconRedo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-redo`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),FMe=["stroke-width","stroke-linecap","stroke-linejoin"],VMe=B("path",{d:"m32.678 23.78 7.778-7.778-7.778-7.778M39.19 16H18.5C12.149 16 7 21.15 7 27.5 7 33.852 12.149 39 18.5 39H31"},null,-1),HMe=[VMe];function WMe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},HMe,14,FMe)}var Dx=ye(BMe,[["render",WMe]]);const UMe=Object.assign(Dx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Dx.name,Dx)}}),ZMe=se({name:"IconScissor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-scissor`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),GMe=["stroke-width","stroke-linecap","stroke-linejoin"],YMe=B("path",{d:"m40.293 7.707-23.05 23.05m0 0a6 6 0 1 0-8.485 8.485 6 6 0 0 0 8.485-8.485Zm13.514 0a6 6 0 1 0 8.485 8.485 6 6 0 0 0-8.485-8.485Zm0 0L7.707 7.707"},null,-1),XMe=[YMe];function KMe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},XMe,14,GMe)}var Nx=ye(ZMe,[["render",KMe]]);const JMe=Object.assign(Nx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Nx.name,Nx)}}),qMe=se({name:"IconSortAscending",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-sort-ascending`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),QMe=["stroke-width","stroke-linecap","stroke-linejoin"],eTe=B("path",{d:"M15 6v33.759a.1.1 0 0 1-.17.07L8 33m17-6h10.4v.65L27 39.35V40h11m-1-19L31.4 8h-.8L25 21"},null,-1),tTe=[eTe];function nTe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},tTe,14,QMe)}var jx=ye(qMe,[["render",nTe]]);const iTe=Object.assign(jx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+jx.name,jx)}}),rTe=se({name:"IconSortDescending",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-sort-descending`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),oTe=["stroke-width","stroke-linecap","stroke-linejoin"],sTe=B("path",{d:"M25 27h10.4v.65L27 39.35V40h11m-21.999 2V7.24a.1.1 0 0 0-.17-.07L9 14m28 7L31.4 8h-.8L25 21"},null,-1),aTe=[sTe];function lTe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},aTe,14,oTe)}var zx=ye(rTe,[["render",lTe]]);const cTe=Object.assign(zx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+zx.name,zx)}}),uTe=se({name:"IconSort",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-sort`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),dTe=["stroke-width","stroke-linecap","stroke-linejoin"],fTe=B("path",{d:"M43 9H5m0 30h14m15.5-15H5"},null,-1),hTe=[fTe];function pTe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},hTe,14,dTe)}var Rx=ye(uTe,[["render",pTe]]);const mTe=Object.assign(Rx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Rx.name,Rx)}}),vTe=se({name:"IconStrikethrough",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-strikethrough`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),gTe=["stroke-width","stroke-linecap","stroke-linejoin"],yTe=B("path",{d:"M13 32c0 5.246 5.149 9 11.5 9S36 36.746 36 31.5c0-1.708-.5-4.5-3.5-5.695m0 0H43m-10.5 0H5M34 14.5C34 10.358 29.523 7 24 7s-10 3.358-10 7.5c0 1.794 1.6 4.21 3 5.5"},null,-1),bTe=[yTe];function kTe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},bTe,14,gTe)}var Bx=ye(vTe,[["render",kTe]]);const CTe=Object.assign(Bx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Bx.name,Bx)}}),STe=se({name:"IconUnderline",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-underline`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),wTe=["stroke-width","stroke-linecap","stroke-linejoin"],_Te=B("path",{d:"M13 5v17.5C13 27 15.5 33 24 33s11-5 11-10.5V5M9 41h30"},null,-1),ITe=[_Te];function xTe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},ITe,14,wTe)}var Fx=ye(STe,[["render",xTe]]);const $Te=Object.assign(Fx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Fx.name,Fx)}}),ATe=se({name:"IconUndo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-undo`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),ETe=["stroke-width","stroke-linecap","stroke-linejoin"],MTe=B("path",{d:"m15.322 23.78-7.778-7.778 7.778-7.778M8.81 16H29.5C35.851 16 41 21.15 41 27.5 41 33.852 35.851 39 29.5 39H17"},null,-1),TTe=[MTe];function PTe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},TTe,14,ETe)}var Vx=ye(ATe,[["render",PTe]]);const OTe=Object.assign(Vx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Vx.name,Vx)}}),LTe=se({name:"IconUnorderedList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-unordered-list`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),DTe=["stroke-width","stroke-linecap","stroke-linejoin"],NTe=B("path",{d:"M13 24h30M5 11h4m4 26h30M13 11h30M5 24h4M5 37h4"},null,-1),jTe=[NTe];function zTe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},jTe,14,DTe)}var Hx=ye(LTe,[["render",zTe]]);const RTe=Object.assign(Hx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Hx.name,Hx)}}),BTe=se({name:"IconMuteFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-mute-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),FTe=["stroke-width","stroke-linecap","stroke-linejoin"],VTe=B("path",{d:"M5.931 13.001A2 2 0 0 0 4 15v18a2 2 0 0 0 2 2h7.37l9.483 6.639A2 2 0 0 0 26 40v-6.93L5.931 13.001ZM35.27 28.199l-3.311-3.313a7.985 7.985 0 0 0-1.96-6.107.525.525 0 0 1 .011-.718l2.122-2.122a.485.485 0 0 1 .7.008c3.125 3.393 3.938 8.15 2.439 12.252ZM41.13 34.059l-2.936-2.937c3.07-5.89 2.226-13.288-2.531-18.348a.513.513 0 0 1 .004-.713l2.122-2.122a.492.492 0 0 1 .703.006c6.322 6.64 7.202 16.56 2.639 24.114ZM26 18.928l-8.688-8.688 5.541-3.878A2 2 0 0 1 26 8v10.928Z",fill:"currentColor",stroke:"none"},null,-1),HTe=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m7.012 4.184 35.272 35.272-2.828 2.828L4.184 7.012l2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1),WTe=[VTe,HTe];function UTe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},WTe,14,FTe)}var Wx=ye(BTe,[["render",UTe]]);const ZTe=Object.assign(Wx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Wx.name,Wx)}}),GTe=se({name:"IconPauseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-pause-circle-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),YTe=["stroke-width","stroke-linecap","stroke-linejoin"],XTe=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-6-27a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Zm9 0a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Z",fill:"currentColor",stroke:"none"},null,-1),KTe=[XTe];function JTe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},KTe,14,YTe)}var Ux=ye(GTe,[["render",JTe]]);const qTe=Object.assign(Ux,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Ux.name,Ux)}}),QTe=se({name:"IconPlayCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-play-circle-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),ePe=["stroke-width","stroke-linecap","stroke-linejoin"],tPe=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M44 24c0 11.046-8.954 20-20 20S4 35.046 4 24 12.954 4 24 4s20 8.954 20 20Zm-23.662-7.783C19.302 15.605 18 16.36 18 17.575v12.85c0 1.214 1.302 1.97 2.338 1.358l10.89-6.425c1.03-.607 1.03-2.11 0-2.716l-10.89-6.425Z",fill:"currentColor",stroke:"none"},null,-1),nPe=[tPe];function iPe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},nPe,14,ePe)}var Zx=ye(QTe,[["render",iPe]]);const rPe=Object.assign(Zx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Zx.name,Zx)}}),oPe=se({name:"IconSkipNextFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-skip-next-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),sPe=["stroke-width","stroke-linecap","stroke-linejoin"],aPe=B("path",{d:"M13.585 12.145a1 1 0 0 0-1.585.81v22.09a1 1 0 0 0 1.585.81L28.878 24.81a1 1 0 0 0 0-1.622L13.585 12.145Z",fill:"currentColor",stroke:"none"},null,-1),lPe=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33 36a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-2Z",fill:"currentColor",stroke:"none"},null,-1),cPe=[aPe,lPe];function uPe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},cPe,14,sPe)}var Gx=ye(oPe,[["render",uPe]]);const dPe=Object.assign(Gx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Gx.name,Gx)}}),fPe=se({name:"IconSkipPreviousFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-skip-previous-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),hPe=["stroke-width","stroke-linecap","stroke-linejoin"],pPe=B("path",{d:"M34.414 35.855a1 1 0 0 0 1.586-.81v-22.09a1 1 0 0 0-1.586-.81L19.122 23.19a1 1 0 0 0 0 1.622l15.292 11.044Z",fill:"currentColor",stroke:"none"},null,-1),mPe=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 12a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1h2Z",fill:"currentColor",stroke:"none"},null,-1),vPe=[pPe,mPe];function gPe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},vPe,14,hPe)}var Yx=ye(fPe,[["render",gPe]]);const yPe=Object.assign(Yx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Yx.name,Yx)}}),bPe=se({name:"IconSoundFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-sound-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),kPe=["stroke-width","stroke-linecap","stroke-linejoin"],CPe=B("path",{d:"m14 15 10-7v32l-10-7H6V15h8Z",fill:"currentColor",stroke:"none"},null,-1),SPe=B("path",{d:"M24.924 6.226A2 2 0 0 1 26 8v32a2 2 0 0 1-3.147 1.639L13.37 35H6a2 2 0 0 1-2-2V15a2 2 0 0 1 2-2h7.37l9.483-6.638a2 2 0 0 1 2.07-.136ZM35.314 35.042c6.248-6.249 6.248-16.38 0-22.628l2.828-2.828c7.81 7.81 7.81 20.474 0 28.284l-2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1),wPe=B("path",{d:"M29.657 29.728a8 8 0 0 0 0-11.314l2.828-2.828c4.687 4.686 4.687 12.284 0 16.97l-2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1),_Pe=[CPe,SPe,wPe];function IPe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},_Pe,14,kPe)}var Xx=ye(bPe,[["render",IPe]]);const xPe=Object.assign(Xx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Xx.name,Xx)}}),$Pe=se({name:"IconBackward",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-backward`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),APe=["stroke-width","stroke-linecap","stroke-linejoin"],EPe=B("path",{d:"M38.293 36.293 26.707 24.707a1 1 0 0 1 0-1.414l11.586-11.586c.63-.63 1.707-.184 1.707.707v23.172c0 .89-1.077 1.337-1.707.707ZM21 12.414v23.172c0 .89-1.077 1.337-1.707.707L7.707 24.707a1 1 0 0 1 0-1.414l11.586-11.586c.63-.63 1.707-.184 1.707.707Z"},null,-1),MPe=[EPe];function TPe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},MPe,14,APe)}var Kx=ye($Pe,[["render",TPe]]);const PPe=Object.assign(Kx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Kx.name,Kx)}}),OPe=se({name:"IconForward",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-forward`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),LPe=["stroke-width","stroke-linecap","stroke-linejoin"],DPe=B("path",{d:"m9.707 11.707 11.586 11.586a1 1 0 0 1 0 1.414L9.707 36.293c-.63.63-1.707.184-1.707-.707V12.414c0-.89 1.077-1.337 1.707-.707ZM27 35.586V12.414c0-.89 1.077-1.337 1.707-.707l11.586 11.586a1 1 0 0 1 0 1.414L28.707 36.293c-.63.63-1.707.184-1.707-.707Z"},null,-1),NPe=[DPe];function jPe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},NPe,14,LPe)}var Jx=ye(OPe,[["render",jPe]]);const zPe=Object.assign(Jx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Jx.name,Jx)}}),RPe=se({name:"IconFullscreenExit",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-fullscreen-exit`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),BPe=["stroke-width","stroke-linecap","stroke-linejoin"],FPe=B("path",{d:"M35 6v8a1 1 0 0 0 1 1h8M13 6v8a1 1 0 0 1-1 1H4m31 27v-8a1 1 0 0 1 1-1h8m-31 9v-8a1 1 0 0 0-1-1H4"},null,-1),VPe=[FPe];function HPe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},VPe,14,BPe)}var qx=ye(RPe,[["render",HPe]]);const WPe=Object.assign(qx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+qx.name,qx)}}),UPe=se({name:"IconLiveBroadcast",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-live-broadcast`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),ZPe=["stroke-width","stroke-linecap","stroke-linejoin"],GPe=B("path",{d:"M29 16h12a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V17a1 1 0 0 1 1-1h12m10 0 8-9m-8 9H19m0 0-8-9m17.281 21.88-6.195 4.475a1 1 0 0 1-1.586-.81v-8.262a1 1 0 0 1 1.521-.853l6.196 3.786a1 1 0 0 1 .064 1.664Z"},null,-1),YPe=[GPe];function XPe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},YPe,14,ZPe)}var Qx=ye(UPe,[["render",XPe]]);const KPe=Object.assign(Qx,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Qx.name,Qx)}}),JPe=se({name:"IconMusic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-music`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),qPe=["stroke-width","stroke-linecap","stroke-linejoin"],QPe=B("path",{d:"M15 37a4 4 0 1 0-8 0 4 4 0 0 0 8 0Zm0 0V18.5M41 37a4 4 0 1 0-8 0 4 4 0 0 0 8 0Zm0 0V16.5m-26 2V9.926a1 1 0 0 1 .923-.997l24-1.846A1 1 0 0 1 41 8.08v8.42m-26 2 26-2"},null,-1),eOe=[QPe];function tOe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},eOe,14,qPe)}var e$=ye(JPe,[["render",tOe]]);const nOe=Object.assign(e$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+e$.name,e$)}}),iOe=se({name:"IconMute",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-mute`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),rOe=["stroke-width","stroke-linecap","stroke-linejoin"],oOe=B("path",{d:"m19 11.5 4.833-4.35a.1.1 0 0 1 .167.075V17m-14-1H7.1a.1.1 0 0 0-.1.1v15.8a.1.1 0 0 0 .1.1H14l9.833 8.85a.1.1 0 0 0 .167-.075V31m6.071-14.071C32.535 19.393 34 23 32.799 26m2.929-14.728C41.508 17.052 42.5 25 39.123 32M6.5 6.5l35 35"},null,-1),sOe=[oOe];function aOe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},sOe,14,rOe)}var t$=ye(iOe,[["render",aOe]]);const lOe=Object.assign(t$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+t$.name,t$)}}),cOe=se({name:"IconPauseCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-pause-circle`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),uOe=["stroke-width","stroke-linecap","stroke-linejoin"],dOe=B("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),fOe=B("path",{d:"M19 19v10h1V19h-1ZM28 19v10h1V19h-1Z"},null,-1),hOe=[dOe,fOe];function pOe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},hOe,14,uOe)}var n$=ye(cOe,[["render",pOe]]);const mOe=Object.assign(n$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+n$.name,n$)}}),vOe=se({name:"IconPlayArrow",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-play-arrow`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),gOe=["stroke-width","stroke-linecap","stroke-linejoin"],yOe=B("path",{d:"M12.533 7.965A1 1 0 0 0 11 8.81v30.377a1 1 0 0 0 1.533.846L36.656 24.84a1 1 0 0 0 0-1.692L12.533 7.965Z"},null,-1),bOe=[yOe];function kOe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},bOe,14,gOe)}var i$=ye(vOe,[["render",kOe]]);const COe=Object.assign(i$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+i$.name,i$)}}),SOe=se({name:"IconPlayCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-play-circle`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),wOe=["stroke-width","stroke-linecap","stroke-linejoin"],_Oe=B("path",{d:"M24 42c9.941 0 18-8.059 18-18S33.941 6 24 6 6 14.059 6 24s8.059 18 18 18Z"},null,-1),IOe=B("path",{d:"M19 17v14l12-7-12-7Z"},null,-1),xOe=[_Oe,IOe];function $Oe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},xOe,14,wOe)}var r$=ye(SOe,[["render",$Oe]]);const AOe=Object.assign(r$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+r$.name,r$)}}),EOe=se({name:"IconRecordStop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-record-stop`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),MOe=["stroke-width","stroke-linecap","stroke-linejoin"],TOe=B("path",{"clip-rule":"evenodd",d:"M24 6c9.941 0 18 8.059 18 18s-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6Z"},null,-1),POe=B("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z",fill:"currentColor",stroke:"none"},null,-1),OOe=B("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z"},null,-1),LOe=[TOe,POe,OOe];function DOe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},LOe,14,MOe)}var o$=ye(EOe,[["render",DOe]]);const NOe=Object.assign(o$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+o$.name,o$)}}),jOe=se({name:"IconRecord",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-record`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),zOe=["stroke-width","stroke-linecap","stroke-linejoin"],ROe=B("path",{"clip-rule":"evenodd",d:"M24 6c9.941 0 18 8.059 18 18s-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6Z"},null,-1),BOe=B("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z",fill:"currentColor",stroke:"none"},null,-1),FOe=B("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1),VOe=[ROe,BOe,FOe];function HOe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},VOe,14,zOe)}var s$=ye(jOe,[["render",HOe]]);const WOe=Object.assign(s$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+s$.name,s$)}}),UOe=se({name:"IconSkipNext",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-skip-next`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),ZOe=["stroke-width","stroke-linecap","stroke-linejoin"],GOe=B("path",{d:"M34 24 10 40V8l24 16Z"},null,-1),YOe=B("path",{d:"M38 6v36"},null,-1),XOe=[GOe,YOe];function KOe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},XOe,14,ZOe)}var a$=ye(UOe,[["render",KOe]]);const JOe=Object.assign(a$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+a$.name,a$)}}),qOe=se({name:"IconSkipPrevious",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-skip-previous`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),QOe=["stroke-width","stroke-linecap","stroke-linejoin"],e8e=B("path",{d:"m14 24 24 16V8L14 24Z"},null,-1),t8e=B("path",{d:"M10 6v36"},null,-1),n8e=[e8e,t8e];function i8e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},n8e,14,QOe)}var l$=ye(qOe,[["render",i8e]]);const r8e=Object.assign(l$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+l$.name,l$)}}),o8e=se({name:"IconSound",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-sound`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),s8e=["stroke-width","stroke-linecap","stroke-linejoin"],a8e=B("path",{d:"m14 16 10-9v34l-10-9H6V16h8Z"},null,-1),l8e=B("path",{d:"M31.071 16.929c3.905 3.905 3.905 10.237 0 14.142M36.727 11.272c7.03 7.03 7.03 18.426 0 25.456"},null,-1),c8e=[a8e,l8e];function u8e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},c8e,14,s8e)}var c$=ye(o8e,[["render",u8e]]);const d8e=Object.assign(c$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+c$.name,c$)}}),f8e=se({name:"IconBytedanceColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-bytedance-color`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),h8e=["stroke-width","stroke-linecap","stroke-linejoin"],p8e=B("path",{d:"M280.416 794.112 128 829.952v-636.32l152.416 35.84z",fill:"#325AB4"},null,-1),m8e=B("path",{d:"M928 828.48 800 864V160l128 35.52z",fill:"#78E6DC"},null,-1),v8e=B("path",{d:"M480 798.304 352 832V480l128 33.696z",fill:"#3C8CFF"},null,-1),g8e=B("path",{d:"M576 449.696 704 416v352l-128-33.696z",fill:"#00C8D2"},null,-1),y8e=[p8e,m8e,v8e,g8e];function b8e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},y8e,14,h8e)}var u$=ye(f8e,[["render",b8e]]);const k8e=Object.assign(u$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+u$.name,u$)}}),C8e=se({name:"IconLarkColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-lark-color`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),S8e=["stroke-width","stroke-linecap","stroke-linejoin"],w8e=B("path",{fill:"#00d6b9",d:"m273.46 264.31 1.01-1.01c.65-.65 1.36-1.36 2.06-2.01l1.41-1.36 4.17-4.12 5.73-5.58 4.88-4.83 4.57-4.52 4.78-4.73 4.37-4.32 6.13-6.03c1.16-1.16 2.36-2.26 3.57-3.37 2.21-2.01 4.52-3.97 6.84-5.88 2.16-1.71 4.37-3.37 6.64-4.98 3.17-2.26 6.43-4.32 9.75-6.33 3.27-1.91 6.64-3.72 10.05-5.43 3.22-1.56 6.54-3.02 9.9-4.32 1.86-.75 3.77-1.41 5.68-2.06.96-.3 1.91-.65 2.92-.96a241.19 241.19 0 0 0-45.6-91.5c-4.17-5.18-10.51-8.19-17.14-8.19H128.97c-1.81 0-3.32 1.46-3.32 3.32 0 1.06.5 2.01 1.36 2.66 60.13 44.09 110 100.75 146.04 166l.4-.45Z"},null,-1),_8e=B("path",{fill:"#133c9a",d:"M203.43 419.4c90.99 0 170.27-50.22 211.6-124.43 1.46-2.61 2.87-5.23 4.22-7.89a96.374 96.374 0 0 1-6.94 11.41c-.9 1.26-1.81 2.51-2.77 3.77-1.21 1.56-2.41 3.02-3.67 4.47a98.086 98.086 0 0 1-3.07 3.37 85.486 85.486 0 0 1-6.64 6.28c-1.31 1.11-2.56 2.16-3.92 3.17a76.24 76.24 0 0 1-4.78 3.42c-1.01.7-2.06 1.36-3.12 2.01-1.06.65-2.16 1.31-3.32 1.96a91.35 91.35 0 0 1-6.99 3.52c-2.06.9-4.17 1.76-6.28 2.56a82.5 82.5 0 0 1-7.04 2.26 86.613 86.613 0 0 1-10.81 2.31c-2.61.4-5.33.7-7.99.9-2.82.2-5.68.25-8.55.25-3.17-.05-6.33-.25-9.55-.6-2.36-.25-4.73-.6-7.09-1.01-2.06-.35-4.12-.8-6.18-1.31-1.11-.25-2.16-.55-3.27-.85-3.02-.8-6.03-1.66-9.05-2.51-1.51-.45-3.02-.85-4.47-1.31-2.26-.65-4.47-1.36-6.69-2.06-1.81-.55-3.62-1.16-5.43-1.76-1.71-.55-3.47-1.11-5.18-1.71l-3.52-1.21c-1.41-.5-2.87-1.01-4.27-1.51l-3.02-1.11c-2.01-.7-4.02-1.46-5.98-2.21-1.16-.45-2.31-.85-3.47-1.31-1.56-.6-3.07-1.21-4.63-1.81-1.61-.65-3.27-1.31-4.88-1.96l-3.17-1.31-3.92-1.61-3.02-1.26-3.12-1.36-2.71-1.21-2.46-1.11-2.51-1.16-2.56-1.21-3.27-1.51-3.42-1.61c-1.21-.6-2.41-1.16-3.62-1.76l-3.07-1.51A508.746 508.746 0 0 1 65.6 190.35c-1.26-1.31-3.32-1.41-4.68-.15-.65.6-1.06 1.51-1.06 2.41l.1 155.49v12.62c0 7.34 3.62 14.18 9.7 18.25 39.56 26.44 86.12 40.47 133.73 40.37"},null,-1),I8e=B("path",{fill:"#3370ff",d:"M470.83 200.21c-30.72-15.03-65.86-18.25-98.79-9-1.41.4-2.77.8-4.12 1.21-.96.3-1.91.6-2.92.96-1.91.65-3.82 1.36-5.68 2.06-3.37 1.31-6.64 2.77-9.9 4.32-3.42 1.66-6.79 3.47-10.05 5.38-3.37 1.96-6.59 4.07-9.75 6.33-2.26 1.61-4.47 3.27-6.64 4.98-2.36 1.91-4.63 3.82-6.84 5.88-1.21 1.11-2.36 2.21-3.57 3.37l-6.13 6.03-4.37 4.32-4.78 4.73-4.57 4.52-4.88 4.83-5.68 5.63-4.17 4.12-1.41 1.36c-.65.65-1.36 1.36-2.06 2.01l-1.01 1.01-1.56 1.46-1.76 1.61c-15.13 13.93-32.02 25.84-50.17 35.54l3.27 1.51 2.56 1.21 2.51 1.16 2.46 1.11 2.71 1.21 3.12 1.36 3.02 1.26 3.92 1.61 3.17 1.31c1.61.65 3.27 1.31 4.88 1.96 1.51.6 3.07 1.21 4.63 1.81 1.16.45 2.31.85 3.47 1.31 2.01.75 4.02 1.46 5.98 2.21l3.02 1.11c1.41.5 2.82 1.01 4.27 1.51l3.52 1.21c1.71.55 3.42 1.16 5.18 1.71 1.81.6 3.62 1.16 5.43 1.76 2.21.7 4.47 1.36 6.69 2.06 1.51.45 3.02.9 4.47 1.31 3.02.85 6.03 1.71 9.05 2.51 1.11.3 2.16.55 3.27.85 2.06.5 4.12.9 6.18 1.31 2.36.4 4.73.75 7.09 1.01 3.22.35 6.38.55 9.55.6 2.87.05 5.73-.05 8.55-.25 2.71-.2 5.38-.5 7.99-.9 3.62-.55 7.24-1.36 10.81-2.31 2.36-.65 4.73-1.41 7.04-2.26a75.16 75.16 0 0 0 6.28-2.56 91.35 91.35 0 0 0 6.99-3.52c1.11-.6 2.21-1.26 3.32-1.96 1.11-.65 2.11-1.36 3.12-2.01 1.61-1.11 3.22-2.21 4.78-3.42 1.36-1.01 2.66-2.06 3.92-3.17 2.26-1.96 4.47-4.07 6.59-6.28 1.06-1.11 2.06-2.21 3.07-3.37 1.26-1.46 2.51-2.97 3.67-4.47a73.33 73.33 0 0 0 2.77-3.77c2.51-3.62 4.83-7.39 6.89-11.31l2.36-4.68 21.01-41.88.25-.5c6.94-14.98 16.39-28.45 28-39.97Z"},null,-1),x8e=[w8e,_8e,I8e];function $8e(e,t,n,i,o,s){return R(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},x8e,14,S8e)}var d$=ye(C8e,[["render",$8e]]);const A8e=Object.assign(d$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+d$.name,d$)}}),E8e=se({name:"IconTiktokColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-tiktok-color`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),M8e=["stroke-width","stroke-linecap","stroke-linejoin"],T8e=Xp('<path d="M928 310.4v148.8c-8 0-17.6 1.6-27.2 1.6-72 0-139.2-27.2-190.4-70.4v316.8c0 64-20.8 124.8-57.6 172.8-51.2 68.8-134.4 115.2-228.8 115.2-102.4 0-192-54.4-241.6-134.4 51.2 48 120 78.4 195.2 78.4 92.8 0 176-44.8 227.2-115.2 35.2-48 57.6-107.2 57.6-172.8V332.8c51.2 44.8 116.8 70.4 190.4 70.4 9.6 0 17.6 0 27.2-1.6v-96c14.4 3.2 27.2 4.8 41.6 4.8h6.4z" fill="#FF004F"></path><path d="M464 420.8v164.8c-11.2-3.2-24-4.8-35.2-4.8-70.4 0-128 59.2-128 131.2 0 16 3.2 30.4 8 44.8-32-24-54.4-62.4-54.4-105.6 0-72 57.6-131.2 128-131.2 12.8 0 24 1.6 35.2 4.8V419.2h9.6c12.8 0 25.6 0 36.8 1.6zM734.4 192c-28.8-25.6-49.6-60.8-60.8-97.6H712v22.4c3.2 25.6 11.2 51.2 22.4 75.2z" fill="#FF004F"></path><path d="M881.6 307.2v96c-8 1.6-17.6 1.6-27.2 1.6-72 0-139.2-27.2-190.4-70.4v316.8c0 64-20.8 124.8-57.6 172.8-52.8 70.4-134.4 115.2-227.2 115.2-75.2 0-144-30.4-195.2-78.4-27.2-44.8-43.2-96-43.2-152 0-155.2 123.2-281.6 276.8-286.4V528c-11.2-3.2-24-4.8-35.2-4.8-70.4 0-128 59.2-128 131.2 0 43.2 20.8 83.2 54.4 105.6 17.6 49.6 65.6 86.4 120 86.4 70.4 0 128-59.2 128-131.2V94.4h116.8c11.2 38.4 32 72 60.8 97.6 28.8 57.6 83.2 100.8 147.2 115.2z"></path><path d="M417.6 364.8v54.4C264 424 140.8 550.4 140.8 705.6c0 56 16 107.2 43.2 152-54.4-52.8-88-126.4-88-209.6 0-158.4 128-286.4 284.8-286.4 12.8 0 25.6 1.6 36.8 3.2z" fill="#00F7EF"></path><path d="M673.6 94.4H556.8V712c0 72-57.6 131.2-128 131.2-56 0-102.4-35.2-120-86.4 20.8 14.4 46.4 24 73.6 24 70.4 0 128-57.6 128-129.6V32h155.2v3.2c0 6.4 0 12.8 1.6 19.2 0 12.8 3.2 27.2 6.4 40zm208 153.6v57.6c-64-12.8-118.4-56-148.8-113.6 40 36.8 91.2 57.6 148.8 56z" fill="#00F7EF"></path>',5),P8e=[T8e];function O8e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},P8e,14,M8e)}var f$=ye(E8e,[["render",O8e]]);const L8e=Object.assign(f$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+f$.name,f$)}}),D8e=se({name:"IconXiguaColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-xigua-color`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),N8e=["stroke-width","stroke-linecap","stroke-linejoin"],j8e=B("path",{d:"M381.968 38.684c-202.85 54.614-351.085 232.757-371.89 446.01C-.326 590.018 28.281 630.328 140.108 668.037c104.026 33.808 176.843 101.425 209.351 189.846 40.31 115.729 44.211 122.23 91.023 144.336 40.31 19.504 58.514 19.504 131.332 7.802 211.951-36.41 362.788-171.642 416.101-374.492C1059.434 368.965 882.59 90.697 605.623 32.183 517.2 13.978 470.39 15.279 381.968 38.684zm176.843 322.48c158.64 74.117 201.55 158.638 119.63 237.957-102.725 97.524-240.56 136.534-291.271 80.62-20.806-23.406-24.707-48.112-24.707-161.24s3.901-137.833 24.707-161.239c32.507-36.409 88.421-35.108 171.641 3.901z",fill:"#FE163E"},null,-1),z8e=[j8e];function R8e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},z8e,14,N8e)}var h$=ye(D8e,[["render",R8e]]);const B8e=Object.assign(h$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+h$.name,h$)}}),F8e=se({name:"IconFaceBookCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-faceBook-circle-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),V8e=["stroke-width","stroke-linecap","stroke-linejoin"],H8e=B("path",{d:"M24 1C11.29 1 1 11.29 1 24s10.29 23 23 23 23-10.29 23-23S36.71 1 24 1Zm6.172 22.88H26.18v14.404h-5.931V23.88H17.22v-4.962h3.027V15.89c0-3.993 1.695-6.414 6.414-6.414h3.993v4.962h-2.421c-1.815 0-1.936.727-1.936 1.936v2.421h4.478l-.605 5.084h.001Z",fill:"currentColor",stroke:"none"},null,-1),W8e=[H8e];function U8e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},W8e,14,V8e)}var p$=ye(F8e,[["render",U8e]]);const Z8e=Object.assign(p$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+p$.name,p$)}}),G8e=se({name:"IconFacebookSquareFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-facebook-square-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Y8e=["stroke-width","stroke-linecap","stroke-linejoin"],X8e=B("path",{d:"M43.125 2.475c.6 0 1.2.225 1.688.713.524.487.75 1.012.75 1.612v38.363c0 .6-.263 1.2-.75 1.612-.526.488-1.088.713-1.688.713H32.138V28.913h5.625l.825-6.563h-6.45v-4.275c0-2.137 1.087-3.225 3.3-3.225h3.374V9.263c-1.2-.225-2.85-.338-5.024-.338-2.513 0-4.5.75-6.038 2.25-1.538 1.5-2.288 3.675-2.288 6.375v4.8h-5.625v6.563h5.625v16.575h-20.7c-.6 0-1.2-.225-1.612-.713-.487-.487-.712-1.012-.712-1.612V4.8c0-.6.224-1.2.712-1.612.488-.488 1.012-.713 1.613-.713h38.362Z",fill:"currentColor",stroke:"none"},null,-1),K8e=[X8e];function J8e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},K8e,14,Y8e)}var m$=ye(G8e,[["render",J8e]]);const q8e=Object.assign(m$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+m$.name,m$)}}),Q8e=se({name:"IconGoogleCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-google-circle-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),e6e=["stroke-width","stroke-linecap","stroke-linejoin"],t6e=B("path",{d:"M32.571 33.526c-2.084 1.92-4.927 3.05-8.322 3.05a12.568 12.568 0 0 1-12.572-12.577A12.58 12.58 0 0 1 24.25 11.416a12.103 12.103 0 0 1 8.414 3.277L29.061 18.3a6.787 6.787 0 0 0-4.807-1.88c-3.277 0-6.045 2.213-7.037 5.186a7.567 7.567 0 0 0-.394 2.392c0 .833.144 1.638.394 2.391.992 2.973 3.763 5.187 7.032 5.187 1.696 0 3.133-.449 4.254-1.202a5.778 5.778 0 0 0 2.513-3.8h-6.767V21.71h11.844c.15.825.227 1.682.227 2.57 0 3.835-1.371 7.055-3.749 9.246ZM24 1A23 23 0 1 0 24 47 23 23 0 0 0 24 1Z",fill:"currentColor",stroke:"none"},null,-1),n6e=[t6e];function i6e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},n6e,14,e6e)}var v$=ye(Q8e,[["render",i6e]]);const r6e=Object.assign(v$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+v$.name,v$)}}),o6e=se({name:"IconQqCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-qq-circle-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),s6e=["stroke-width","stroke-linecap","stroke-linejoin"],a6e=B("path",{d:"M24.007 1C11.281 1 1 11.281 1 24.007c0 13.23 11.216 23.87 24.733 22.936 11.288-.791 20.49-9.994 21.21-21.354C47.877 12.144 37.237 1 24.007 1Zm11.36 29.262s-.79 2.23-2.3 4.242c0 0 2.66.935 2.444 3.236 0 0 .072 2.66-5.68 2.444 0 0-4.026-.287-5.248-2.013h-1.079c-1.222 1.726-5.248 2.013-5.248 2.013-5.752.216-5.68-2.444-5.68-2.444-.216-2.373 2.444-3.236 2.444-3.236-1.51-2.013-2.3-4.241-2.3-4.241-3.596 5.895-3.236-.791-3.236-.791.647-3.955 3.523-6.543 3.523-6.543-.431-3.595 1.078-4.242 1.078-4.242.216-11.072 9.707-10.929 9.922-10.929.216 0 9.707-.215 9.994 10.929 0 0 1.51.647 1.079 4.242 0 0 2.876 2.588 3.523 6.543 0 0 .36 6.686-3.236.79Z",fill:"currentColor",stroke:"none"},null,-1),l6e=[a6e];function c6e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},l6e,14,s6e)}var g$=ye(o6e,[["render",c6e]]);const u6e=Object.assign(g$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+g$.name,g$)}}),d6e=se({name:"IconTwitterCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-twitter-circle-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),f6e=["stroke-width","stroke-linecap","stroke-linejoin"],h6e=B("path",{d:"M24 1C11.296 1 1 11.297 1 24s10.296 23 23 23c12.703 0 23-10.297 23-23S36.703 1 24 1Zm11.698 18.592c-.13 9.818-6.408 16.542-15.78 16.965-3.864.176-6.664-1.072-9.1-2.62 2.855.456 6.397-.686 8.292-2.307-2.8-.273-4.458-1.698-5.233-3.991.808.14 1.66.103 2.43-.06-2.527-.846-4.331-2.407-4.424-5.68.709.323 1.448.626 2.43.686-1.891-1.075-3.29-5.007-1.688-7.607 2.806 3.076 6.182 5.586 11.724 5.926-1.391-5.949 6.492-9.175 9.791-5.177 1.395-.27 2.53-.799 3.622-1.374-.45 1.381-1.315 2.347-2.37 3.119 1.158-.157 2.184-.44 3.06-.872-.544 1.128-1.732 2.14-2.754 2.992Z",fill:"currentColor",stroke:"none"},null,-1),p6e=[h6e];function m6e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},p6e,14,f6e)}var y$=ye(d6e,[["render",m6e]]);const v6e=Object.assign(y$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+y$.name,y$)}}),g6e=se({name:"IconWeiboCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-weibo-circle-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),y6e=["stroke-width","stroke-linecap","stroke-linejoin"],b6e=B("path",{d:"M24 47a23 23 0 1 1 23-23 22.988 22.988 0 0 1-23 23Zm1.276-26.994c-.544.063-2.259 1.171-1.297-1.108C25 15 20.235 15.293 17.874 16.16A23.776 23.776 0 0 0 7.649 27.283c-2.007 6.419 5.018 10.329 10.246 11.123 5.227.795 13.068-.502 16.622-4.85 2.635-3.179 3.137-7.507-1.84-8.761-1.651-.398-.69-1.088-.271-2.259a2.775 2.775 0 0 0-2.175-3.24 2.092 2.092 0 0 0-.335-.042 12.468 12.468 0 0 0-4.62.752Zm7.004-3.889a2.326 2.326 0 0 0-1.903.544c-.377.339-.418 1.338.962 1.652.458.021.913.084 1.36.188a1.836 1.836 0 0 1 1.233 2.07c-.21 1.924.878 2.237 1.652 1.714a1.647 1.647 0 0 0 .627-1.338 4.117 4.117 0 0 0-3.325-4.767c-.042-.008-.61-.063-.606-.063Zm7.423.084a8.408 8.408 0 0 0-6.838-4.6c-1.129-.126-3.512-.397-3.784 1.15a1.17 1.17 0 0 0 .857 1.4c.042 0 .084.022.126.022.523.02 1.048 0 1.568-.063a6.481 6.481 0 0 1 6.524 6.44c0 .3-.02.601-.063.9-.063.355-.105.71-.147 1.066A1.277 1.277 0 0 0 38.93 24a1.255 1.255 0 0 0 1.338-.648c.71-2.373.501-4.926-.585-7.151h.02ZM21.616 36.44c-5.457.69-10.245-1.673-10.684-5.27-.44-3.595 3.575-7.066 9.033-7.756 5.457-.69 10.245 1.672 10.705 5.269.46 3.596-3.617 7.088-9.075 7.757h.021Zm-1.484-10.266a5.181 5.181 0 0 0-5.353 4.913 4.662 4.662 0 0 0 4.935 4.391c.14-.004.28-.017.418-.042a5.503 5.503 0 0 0 5.185-5.143 4.472 4.472 0 0 0-4.746-4.182l-.44.063Zm1.003 4.244a.669.669 0 0 1-.773-.544v-.083a.76.76 0 0 1 .774-.711.642.642 0 0 1 .731.544.076.076 0 0 1 .021.062.807.807 0 0 1-.753.732Zm-2.78 2.781a1.65 1.65 0 0 1-1.861-1.422.266.266 0 0 1-.021-.125 1.844 1.844 0 0 1 1.882-1.736 1.562 1.562 0 0 1 1.819 1.297.46.46 0 0 1 .02.167 1.96 1.96 0 0 1-1.84 1.819Z",fill:"currentColor",stroke:"none"},null,-1),k6e=[b6e];function C6e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},k6e,14,y6e)}var b$=ye(g6e,[["render",C6e]]);const S6e=Object.assign(b$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+b$.name,b$)}}),w6e=se({name:"IconAlipayCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-alipay-circle`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),_6e=["stroke-width","stroke-linecap","stroke-linejoin"],I6e=B("path",{d:"M10.8 27.025c-.566.456-1.174 1.122-1.35 1.968-.24 1.156-.05 2.604 1.065 3.739 1.352 1.376 3.405 1.753 4.292 1.818 2.41.174 4.978-1.02 6.913-2.384.759-.535 2.058-1.61 3.3-3.268-2.783-1.437-6.257-3.026-9.97-2.87-1.898.079-3.256.472-4.25.997Zm35.29 6.354A23.872 23.872 0 0 0 48 24C48 10.767 37.234 0 24 0S0 10.767 0 24c0 13.234 10.766 24 24 24 7.987 0 15.07-3.925 19.436-9.943a2688.801 2688.801 0 0 0-15.11-7.467c-1.999 2.277-4.953 4.56-8.29 5.554-2.097.623-3.986.86-5.963.457-1.956-.4-3.397-1.317-4.237-2.235-.428-.469-.92-1.064-1.275-1.773.033.09.056.143.056.143s-.204-.353-.361-.914a4.03 4.03 0 0 1-.157-.85 4.383 4.383 0 0 1-.009-.612 4.409 4.409 0 0 1 .078-1.128c.197-.948.601-2.054 1.649-3.08 2.3-2.251 5.38-2.372 6.976-2.363 2.363.014 6.47 1.048 9.928 2.27.958-2.04 1.573-4.221 1.97-5.676H14.31v-1.555h7.384V15.72h-8.938v-1.555h8.938v-3.108c0-.427.084-.778.777-.778h3.498v3.886h9.717v1.555H25.97v3.11h7.773s-.78 4.35-3.221 8.64c5.416 1.934 13.037 4.914 15.568 5.91Z",fill:"currentColor",stroke:"none"},null,-1),x6e=[I6e];function $6e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},x6e,14,_6e)}var k$=ye(w6e,[["render",$6e]]);const A6e=Object.assign(k$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+k$.name,k$)}}),E6e=se({name:"IconCodeSandbox",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-code-sandbox`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),M6e=["stroke-width","stroke-linecap","stroke-linejoin"],T6e=B("path",{d:"m25.002 1.6 17.9 10.3c.6.4 1 1 1 1.7v20.7c0 .7-.4 1.4-1 1.7l-17.9 10.4c-.6.4-1.4.4-2 0l-17.9-10.3c-.6-.4-1-1-1-1.7V13.7c0-.7.4-1.4 1-1.7l17.9-10.4c.6-.4 1.4-.4 2 0Zm13.5 12.4-7.9-4.5-6.6 4.5-6.5-4-7.3 4.3 13.8 8.7 14.5-9Zm-16.5 26.4V26.3l-14-8.9v7.9l8 5.5V37l6 3.4Zm4 0 6-3.5v-5.2l8-5.5v-8.9l-14 8.9v14.2Z",fill:"currentColor",stroke:"none"},null,-1),P6e=[T6e];function O6e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},P6e,14,M6e)}var C$=ye(E6e,[["render",O6e]]);const L6e=Object.assign(C$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+C$.name,C$)}}),D6e=se({name:"IconCodepen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-codepen`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),N6e=["stroke-width","stroke-linecap","stroke-linejoin"],j6e=B("path",{d:"M45 15.7v17.1L24.5 44.7c-.3.2-.7.2-1 0l-20-11.5c-.3-.2-.5-.5-.5-.9V15.7c0-.4.2-.7.5-.9l20-11.6c.3-.2.7-.2 1 0l20 11.6c.3.2.5.5.5.9ZM26 9v9.8l5.5 3.2 8.5-4.9L26 9Zm-4 0L8 17.1l8.4 4.9 5.6-3.2V9Zm0 21.2L16.5 27 9 31.4 22 39v-8.8Zm17 1.2L31.4 27 26 30.2V39l13-7.6Zm2-3.4v-6l-5 3 5 3Zm-29-3-5-3v6l5-3Zm8 0 4 2 4-2-4-2-4 2Z",fill:"currentColor",stroke:"none"},null,-1),z6e=[j6e];function R6e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},z6e,14,N6e)}var S$=ye(D6e,[["render",R6e]]);const B6e=Object.assign(S$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+S$.name,S$)}}),F6e=se({name:"IconFacebook",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-facebook`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),V6e=["stroke-width","stroke-linecap","stroke-linejoin"],H6e=B("path",{d:"M35.184 15.727 34.312 24h-6.613v24h-9.933V24h-4.95v-8.273h4.95v-4.98C17.766 4.016 20.564 0 28.518 0h6.61v8.273H30.99c-3.086 0-3.292 1.166-3.292 3.32v4.134h7.485Z",fill:"currentColor",stroke:"none"},null,-1),W6e=[H6e];function U6e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},W6e,14,V6e)}var w$=ye(F6e,[["render",U6e]]);const Z6e=Object.assign(w$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+w$.name,w$)}}),G6e=se({name:"IconGithub",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-github`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Y6e=["stroke-width","stroke-linecap","stroke-linejoin"],X6e=B("path",{d:"M.056 24.618c0 10.454 6.7 19.344 16.038 22.608 1.259.32 1.067-.582 1.067-1.19v-4.148c-7.265.853-7.553-3.957-8.043-4.758-.987-1.686-3.312-2.112-2.62-2.912 1.654-.853 3.34.213 5.291 3.1 1.413 2.09 4.166 1.738 5.562 1.385a6.777 6.777 0 0 1 1.856-3.253C11.687 34.112 8.55 29.519 8.55 24.057c0-2.646.874-5.082 2.586-7.045-1.088-3.243.102-6.01.26-6.422 3.11-.282 6.337 2.225 6.587 2.421 1.766-.474 3.782-.73 6.038-.73 2.266 0 4.293.26 6.069.74.603-.458 3.6-2.608 6.49-2.345.155.41 1.317 3.12.294 6.315 1.734 1.968 2.62 4.422 2.62 7.077 0 5.472-3.158 10.07-10.699 11.397a6.82 6.82 0 0 1 2.037 4.875v6.02c.042.48 0 .96.806.96 9.477-3.194 16.299-12.15 16.299-22.697C47.938 11.396 37.218.68 23.996.68 10.77.675.055 11.391.055 24.617l.001.001Z",fill:"currentColor",stroke:"none"},null,-1),K6e=[X6e];function J6e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},K6e,14,Y6e)}var _$=ye(G6e,[["render",J6e]]);const q6e=Object.assign(_$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+_$.name,_$)}}),Q6e=se({name:"IconGitlab",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-gitlab`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),eLe=["stroke-width","stroke-linecap","stroke-linejoin"],tLe=B("path",{d:"M45.53 26.154 39.694 6.289v-.005c-.407-1.227-1.377-1.955-2.587-1.955-1.254 0-2.277.723-2.663 1.885L30.62 17.625H17.4l-3.825-11.41c-.386-1.163-1.41-1.886-2.663-1.886-1.237 0-2.276.792-2.592 1.96l-5.83 19.865a2.047 2.047 0 0 0 .724 2.18l19.741 14.807c.14.193.332.338.557.418l.461.343.455-.343c.263-.091.483-.252.638-.477L44.8 28.33a2.03 2.03 0 0 0 .728-2.175ZM36.84 6.932c.053-.096.155-.102.187-.102.06 0 .134.016.182.161l3.183 10.704H33.24l3.6-10.763Zm-26.11.054c.047-.14.122-.156.181-.156.145 0 .156.006.183.091L14.699 17.7H7.633l3.096-10.714ZM5.076 26.502l1.511-5.213 10.843 14.475-12.354-9.262Zm3.96-6.236h6.54l4.865 15.23-11.406-15.23Zm15.01 17.877-5.743-17.877h11.48l-5.737 17.877Zm8.459-17.877h6.402L27.642 35.31l4.864-15.043Zm-2.18 15.745L41.43 21.187l1.58 5.315-12.685 9.509Z",fill:"currentColor",stroke:"none"},null,-1),nLe=[tLe];function iLe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},nLe,14,eLe)}var I$=ye(Q6e,[["render",iLe]]);const rLe=Object.assign(I$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+I$.name,I$)}}),oLe=se({name:"IconGoogle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-google`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),sLe=["stroke-width","stroke-linecap","stroke-linejoin"],aLe=B("path",{d:"M23.997 21.054h19.42a19.46 19.46 0 0 1 .321 3.428c0 3.875-.812 7.335-2.437 10.38-1.625 3.044-3.942 5.424-6.951 7.138-3.01 1.714-6.46 2.572-10.353 2.572-2.803 0-5.473-.54-8.009-1.621-2.535-1.08-4.723-2.54-6.562-4.38-1.84-1.839-3.3-4.026-4.38-6.562A20.223 20.223 0 0 1 3.426 24c0-2.803.54-5.473 1.62-8.009 1.08-2.535 2.54-4.723 4.38-6.562 1.84-1.84 4.027-3.3 6.562-4.38a20.223 20.223 0 0 1 8.01-1.62c5.356 0 9.955 1.794 13.794 5.384l-5.598 5.384c-2.197-2.125-4.929-3.188-8.197-3.188-2.303 0-4.433.58-6.388 1.741a12.83 12.83 0 0 0-4.648 4.728c-1.142 1.99-1.714 4.165-1.714 6.522s.572 4.531 1.714 6.523a12.83 12.83 0 0 0 4.648 4.727c1.955 1.16 4.085 1.741 6.388 1.741 1.554 0 2.982-.214 4.286-.643 1.303-.428 2.375-.964 3.214-1.607a11.63 11.63 0 0 0 2.197-2.196c.625-.822 1.084-1.598 1.38-2.33a9.84 9.84 0 0 0 .602-2.09H23.997v-7.071Z",fill:"currentColor",stroke:"none"},null,-1),lLe=[aLe];function cLe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},lLe,14,sLe)}var x$=ye(oLe,[["render",cLe]]);const uLe=Object.assign(x$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+x$.name,x$)}}),dLe=se({name:"IconQqZone",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-qq-zone`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),fLe=["stroke-width","stroke-linecap","stroke-linejoin"],hLe=B("path",{d:"M25.1 3.9c.2.1.4.3.5.5l6.8 10L44 17.8c1.1.3 1.7 1.4 1.4 2.5-.1.2-.2.5-.3.7l-7.4 9.5.4 12c0 1.1-.8 2-1.9 2.1-.2 0-.5 0-.7-.1L24 40.4l-11.3 4.1c-1 .4-2.2-.2-2.6-1.2-.1-.3-.1-.6-.1-.8l.4-12L3 20.9c-.7-.9-.5-2.1.4-2.8.2-.2.4-.3.7-.3l11.6-3.4 6.8-10c.5-.9 1.7-1.1 2.6-.5ZM24 9.1l-5.9 8.7-10.1 3 6.5 8.3-.3 10.5 9.9-3.6 9.9 3.6-.3-10.5 6.5-8.3-10.1-3L24 9.1Zm5 11.5c.8 0 1.5.5 1.8 1.2.3.7.1 1.6-.5 2.1L24 29.6h5c1 0 1.9.9 1.9 1.9 0 1-.9 1.9-1.9 1.9H19c-.8 0-1.5-.5-1.8-1.2-.3-.7-.1-1.6.5-2.1l6.3-5.7h-5c-1 0-1.9-.9-1.9-1.9 0-1 .9-1.9 1.9-1.9h10Z",fill:"currentColor",stroke:"none"},null,-1),pLe=[hLe];function mLe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},pLe,14,fLe)}var $$=ye(dLe,[["render",mLe]]);const vLe=Object.assign($$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+$$.name,$$)}}),gLe=se({name:"IconQq",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-qq`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),yLe=["stroke-width","stroke-linecap","stroke-linejoin"],bLe=B("path",{d:"M7.85 32.825s1.153 3.136 3.264 5.955c0 0-3.779 1.281-3.458 4.61 0 0-.128 3.714 8.069 3.458 0 0 5.764-.45 7.494-2.88h1.52c1.73 2.432 7.494 2.88 7.494 2.88 8.193.256 8.068-3.457 8.068-3.457.318-3.33-3.458-4.611-3.458-4.611 2.11-2.82 3.264-5.955 3.264-5.955 5.122 8.259 4.611-1.154 4.611-1.154-.96-5.57-4.995-9.221-4.995-9.221.576-5.058-1.537-5.955-1.537-5.955C37.742.844 24.26 1.12 23.978 1.126 23.694 1.12 10.21.846 9.767 16.495c0 0-2.113.897-1.537 5.955 0 0-4.034 3.65-4.995 9.221.005 0-.51 9.413 4.615 1.154Z",fill:"currentColor",stroke:"none"},null,-1),kLe=[bLe];function CLe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},kLe,14,yLe)}var A$=ye(gLe,[["render",CLe]]);const SLe=Object.assign(A$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+A$.name,A$)}}),wLe=se({name:"IconTwitter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-twitter`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),_Le=["stroke-width","stroke-linecap","stroke-linejoin"],ILe=B("path",{d:"M43.277 13.575c0 16.613-10.912 28.575-26.962 29.1-6.788.525-11.438-1.537-15.6-4.65 4.65.525 10.912-1.012 13.987-4.163-4.65 0-7.275-2.625-8.812-6.187h4.162C5.89 26.1 2.74 22.987 2.74 17.812c1.012.525 2.062 1.013 4.162 1.013-3.637-2.063-5.7-8.813-3.112-12.975 4.65 5.175 10.35 9.863 19.762 10.35C20.927 5.85 34.465.6 40.165 7.388c2.625-.525 4.162-1.538 6.187-2.625-.525 2.625-2.062 4.162-4.162 5.175 2.062 0 3.637-.525 5.175-1.538-.488 2.063-2.55 4.162-4.088 5.175Z",fill:"currentColor",stroke:"none"},null,-1),xLe=[ILe];function $Le(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},xLe,14,_Le)}var E$=ye(wLe,[["render",$Le]]);const ALe=Object.assign(E$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+E$.name,E$)}}),ELe=se({name:"IconWechat",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-wechat`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),MLe=["stroke-width","stroke-linecap","stroke-linejoin"],TLe=B("path",{d:"M32.09 16.362a14.39 14.39 0 0 0-6.927 1.716 13.087 13.087 0 0 0-5.008 4.676 11.936 11.936 0 0 0-1.856 6.473c.01 1.137.185 2.273.517 3.36h-1.505a26.653 26.653 0 0 1-4.766-.593l-.925-.166-5.665 2.93 1.55-4.848C3.179 26.783 1.018 23.077 1 18.792a11.951 11.951 0 0 1 2.188-6.927 14.943 14.943 0 0 1 5.938-5.027 18.579 18.579 0 0 1 8.248-1.837A18.82 18.82 0 0 1 24.8 6.506a16.863 16.863 0 0 1 5.893 4.128 11.963 11.963 0 0 1 2.992 5.817 17.922 17.922 0 0 0-1.595-.09Zm-20.152-.414a2.167 2.167 0 0 0 1.505-.471c.405-.378.62-.908.593-1.46a1.881 1.881 0 0 0-.592-1.46 2.025 2.025 0 0 0-1.506-.535 2.778 2.778 0 0 0-1.67.535c-.454.323-.728.849-.728 1.401a1.708 1.708 0 0 0 .727 1.523 2.925 2.925 0 0 0 1.671.467ZM47 28.99a9.573 9.573 0 0 1-1.59 5.193c-1.128 1.6-2.52 3-4.129 4.128l1.258 4.129-4.51-2.413h-.243a20.758 20.758 0 0 1-4.6.76 15.538 15.538 0 0 1-7.03-1.59 13.089 13.089 0 0 1-5.008-4.313 10.501 10.501 0 0 1-1.838-5.939 10.29 10.29 0 0 1 1.838-5.92c1.266-1.847 3-3.334 5.008-4.313a15.579 15.579 0 0 1 7.03-1.59 14.919 14.919 0 0 1 6.761 1.59 13.286 13.286 0 0 1 5.09 4.312 10.004 10.004 0 0 1 1.94 5.966H47ZM23.407 11.955a2.77 2.77 0 0 0-1.747.534 1.65 1.65 0 0 0-.76 1.46c-.017.584.27 1.146.76 1.46.498.36 1.1.544 1.716.535a2.083 2.083 0 0 0 1.505-.472c.368-.404.561-.925.534-1.46a1.834 1.834 0 0 0-.534-1.532 1.887 1.887 0 0 0-1.532-.534h.063v.009h-.005Zm5.256 15.03a2.016 2.016 0 0 0 1.46-.498c.332-.288.525-.7.534-1.137a1.612 1.612 0 0 0-.534-1.136 2.062 2.062 0 0 0-1.46-.499 1.58 1.58 0 0 0-1.092.499c-.305.296-.49.71-.498 1.136.009.427.184.84.498 1.137.288.305.679.48 1.092.499Zm8.953 0a2.016 2.016 0 0 0 1.46-.498c.332-.288.525-.7.534-1.137a1.558 1.558 0 0 0-.593-1.136 2.12 2.12 0 0 0-1.401-.499 1.493 1.493 0 0 0-1.092.499c-.305.296-.49.71-.498 1.136.009.427.184.84.498 1.137.279.305.674.49 1.092.499Z",fill:"currentColor",stroke:"none"},null,-1),PLe=[TLe];function OLe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},PLe,14,MLe)}var M$=ye(ELe,[["render",OLe]]);const LLe=Object.assign(M$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+M$.name,M$)}}),DLe=se({name:"IconWechatpay",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-wechatpay`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),NLe=["stroke-width","stroke-linecap","stroke-linejoin"],jLe=B("path",{d:"M17.514 29.52a1.502 1.502 0 0 1-.715.165c-.608 0-1.104-.33-1.38-.826l-.113-.219-4.357-9.493c-.054-.112-.054-.219-.054-.33 0-.444.331-.774.774-.774.165 0 .33.053.496.165l5.13 3.643c.384.218.827.384 1.323.384.277 0 .55-.054.827-.166l24.058-10.704C39.2 6.288 32.085 2.976 24.026 2.976 10.896 2.976.191 11.861.191 22.837c0 5.958 3.2 11.366 8.22 15.008.383.278.66.774.66 1.27 0 .165-.053.33-.112.496-.384 1.488-1.05 3.92-1.05 4.026a2.025 2.025 0 0 0-.112.608c0 .443.33.774.773.774.165 0 .33-.054.443-.166l5.184-3.034c.384-.219.826-.384 1.27-.384.218 0 .495.053.714.112a27.712 27.712 0 0 0 7.781 1.104c13.13 0 23.835-8.886 23.835-19.862 0-3.312-.992-6.453-2.704-9.216L17.679 29.408l-.165.112Z",fill:"currentColor",stroke:"none"},null,-1),zLe=[jLe];function RLe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},zLe,14,NLe)}var T$=ye(DLe,[["render",RLe]]);const BLe=Object.assign(T$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+T$.name,T$)}}),FLe=se({name:"IconWeibo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-weibo`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),VLe=["stroke-width","stroke-linecap","stroke-linejoin"],HLe=B("path",{d:"M31.82 5.6c-1.445.635-1.776 2.144-.727 3.192.515.516.993.608 3.11.608 2.952 0 4.94.781 6.448 2.53 1.84 2.079 2.052 2.714 2.052 6.513 0 3.377 0 3.441.782 3.892 1.812 1.021 3.017-.24 3.44-3.616.544-4.397-2.078-9.531-6.025-11.877-2.595-1.509-7.029-2.116-9.08-1.242Zm-14.831 5.612c-3.376 1.205-6.633 3.524-10.13 7.268-8.288 8.804-7.746 17.186 1.39 21.648 9.494 4.636 22.282 3.1 29.247-3.533 5.216-4.94 4.581-11.16-1.353-13.267-1.058-.358-1.389-.634-1.232-.966.542-1.324.726-2.86.423-3.772-.939-2.86-4.343-3.523-9.403-1.812l-2.024.69.184-2.024c.212-2.383-.303-3.68-1.72-4.398-1.187-.588-3.45-.524-5.382.166Zm8.381 11.666c4.49 1.232 7.231 3.946 7.231 7.176 0 3.588-3.192 6.817-8.38 8.528-2.77.902-7.931 1.086-10.461.396-4.793-1.353-7.507-4.012-7.507-7.416 0-1.867.81-3.496 2.594-5.152 1.656-1.564 2.926-2.318 5.364-3.137 3.689-1.242 7.636-1.389 11.16-.395Zm-9.494 2.925c-3.045 1.417-4.674 3.588-4.674 6.302 0 2.475 1.086 4.159 3.469 5.428 1.84.994 5.216.902 7.268-.147 2.622-1.39 4.342-3.947 4.342-6.45-.028-2.05-1.84-4.489-3.984-5.363-1.72-.736-4.609-.616-6.421.23Zm2.199 5.667c.211.212.358.727.358 1.178 0 1.509-2.53 2.742-3.56 1.72-.57-.57-.423-1.987.24-2.65.662-.662 2.391-.818 2.962-.248Zm14.26-19.688c-1.39 1.39-.451 3.046 1.748 3.046 1.895 0 2.741.966 2.741 3.137 0 1.352.12 1.748.663 2.107 1.628 1.15 2.953-.12 2.953-2.806 0-3.285-2.355-5.76-5.695-5.999-1.509-.12-1.868-.027-2.41.515Z",fill:"currentColor",stroke:"none"},null,-1),WLe=[HLe];function ULe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},WLe,14,VLe)}var P$=ye(FLe,[["render",ULe]]);const ZLe=Object.assign(P$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+P$.name,P$)}}),GLe=se({name:"IconChineseFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-chinese-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),YLe=["stroke-width","stroke-linecap","stroke-linejoin"],XLe=B("path",{d:"M22 21h-5v4.094h5V21ZM26 25.094V21h5v4.094h-5Z",fill:"currentColor",stroke:"none"},null,-1),KLe=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 4C12.954 4 4 12.954 4 24s8.954 20 20 20 20-8.954 20-20S35.046 4 24 4Zm2 13v-5h-4v5h-6.5a2.5 2.5 0 0 0-2.5 2.5v7.094a2.5 2.5 0 0 0 2.5 2.5H22V36h4v-6.906h6.5a2.5 2.5 0 0 0 2.5-2.5V19.5a2.5 2.5 0 0 0-2.5-2.5H26Z",fill:"currentColor",stroke:"none"},null,-1),JLe=[XLe,KLe];function qLe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},JLe,14,YLe)}var O$=ye(GLe,[["render",qLe]]);const QLe=Object.assign(O$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+O$.name,O$)}}),eDe=se({name:"IconEnglishFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-english-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),tDe=["stroke-width","stroke-linecap","stroke-linejoin"],nDe=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23.2 4C12.596 4 4 12.596 4 23.2v1.6C4 35.404 12.596 44 23.2 44h1.6C35.404 44 44 35.404 44 24.8v-1.6C44 12.596 35.404 4 24.8 4h-1.6Zm-9.086 10A2.114 2.114 0 0 0 12 16.114v15.772c0 1.167.947 2.114 2.114 2.114H25v-4h-9v-4h7.778v-4H16v-4h9v-4H14.114ZM32.4 22a5.4 5.4 0 0 0-5.4 5.4V34h4v-6.6a1.4 1.4 0 0 1 2.801 0V34h4v-6.6a5.4 5.4 0 0 0-5.4-5.4Z",fill:"currentColor",stroke:"none"},null,-1),iDe=[nDe];function rDe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},iDe,14,tDe)}var L$=ye(eDe,[["render",rDe]]);const oDe=Object.assign(L$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+L$.name,L$)}}),sDe=se({name:"IconMoonFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-moon-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),aDe=["stroke-width","stroke-linecap","stroke-linejoin"],lDe=B("path",{d:"M42.108 29.769c.124-.387-.258-.736-.645-.613A17.99 17.99 0 0 1 36 30c-9.941 0-18-8.059-18-18 0-1.904.296-3.74.844-5.463.123-.387-.226-.768-.613-.645C10.558 8.334 5 15.518 5 24c0 10.493 8.507 19 19 19 8.482 0 15.666-5.558 18.108-13.231Z",fill:"currentColor",stroke:"none"},null,-1),cDe=[lDe];function uDe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},cDe,14,aDe)}var D$=ye(sDe,[["render",uDe]]);const dDe=Object.assign(D$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+D$.name,D$)}}),fDe=se({name:"IconPenFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-pen-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),hDe=["stroke-width","stroke-linecap","stroke-linejoin"],pDe=B("path",{fill:"currentColor",stroke:"none",d:"m31.07 8.444 8.485 8.485L19.05 37.435l-8.485-8.485zM33.9 5.615a2 2 0 0 1 2.829 0l5.657 5.657a2 2 0 0 1 0 2.829l-1.415 1.414-8.485-8.486L33.9 5.615ZM17.636 38.85 9.15 30.363l-3.61 10.83a1 1 0 0 0 1.265 1.265l10.83-3.61Z"},null,-1),mDe=[pDe];function vDe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},mDe,14,hDe)}var N$=ye(fDe,[["render",vDe]]);const gDe=Object.assign(N$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+N$.name,N$)}}),yDe=se({name:"IconSunFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-sun-fill`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),bDe=["stroke-width","stroke-linecap","stroke-linejoin"],kDe=B("circle",{cx:"24",cy:"24",r:"9",fill:"currentColor",stroke:"none"},null,-1),CDe=B("path",{d:"M21 5.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5ZM21 37.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5ZM42.5 21a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5h5ZM10.5 21a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5h5ZM39.203 34.96a.5.5 0 0 1 0 .707l-3.536 3.536a.5.5 0 0 1-.707 0l-3.535-3.536a.5.5 0 0 1 0-.707l3.535-3.535a.5.5 0 0 1 .707 0l3.536 3.535ZM16.575 12.333a.5.5 0 0 1 0 .707l-3.535 3.535a.5.5 0 0 1-.707 0L8.797 13.04a.5.5 0 0 1 0-.707l3.536-3.536a.5.5 0 0 1 .707 0l3.535 3.536ZM13.04 39.203a.5.5 0 0 1-.707 0l-3.536-3.536a.5.5 0 0 1 0-.707l3.536-3.535a.5.5 0 0 1 .707 0l3.536 3.535a.5.5 0 0 1 0 .707l-3.536 3.536ZM35.668 16.575a.5.5 0 0 1-.708 0l-3.535-3.535a.5.5 0 0 1 0-.707l3.535-3.536a.5.5 0 0 1 .708 0l3.535 3.536a.5.5 0 0 1 0 .707l-3.535 3.535Z",fill:"currentColor",stroke:"none"},null,-1),SDe=[kDe,CDe];function wDe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},SDe,14,bDe)}var j$=ye(yDe,[["render",wDe]]);const _De=Object.assign(j$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+j$.name,j$)}}),IDe=se({name:"IconApps",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-apps`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),xDe=["stroke-width","stroke-linecap","stroke-linejoin"],$De=B("path",{d:"M7 7h13v13H7zM28 7h13v13H28zM7 28h13v13H7zM28 28h13v13H28z"},null,-1),ADe=[$De];function EDe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},ADe,14,xDe)}var z$=ye(IDe,[["render",EDe]]);const MDe=Object.assign(z$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+z$.name,z$)}}),TDe=se({name:"IconArchive",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-archive`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),PDe=["stroke-width","stroke-linecap","stroke-linejoin"],ODe=B("rect",{x:"9",y:"18",width:"30",height:"22",rx:"1"},null,-1),LDe=B("path",{d:"M6 9a1 1 0 0 1 1-1h34a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V9ZM19 27h10"},null,-1),DDe=[ODe,LDe];function NDe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},DDe,14,PDe)}var R$=ye(TDe,[["render",NDe]]);const jDe=Object.assign(R$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+R$.name,R$)}}),zDe=se({name:"IconBarChart",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-bar-chart`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),RDe=["stroke-width","stroke-linecap","stroke-linejoin"],BDe=B("path",{d:"M41 7H29v34h12V7ZM29 18H18v23h11V18ZM18 29H7v12h11V29Z"},null,-1),FDe=[BDe];function VDe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},FDe,14,RDe)}var B$=ye(zDe,[["render",VDe]]);const HDe=Object.assign(B$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+B$.name,B$)}}),WDe=se({name:"IconBook",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-book`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),UDe=["stroke-width","stroke-linecap","stroke-linejoin"],ZDe=B("path",{d:"M24 13 7 7v28l17 6 17-6V7l-17 6Zm0 0v27.5M29 18l7-2.5M29 25l7-2.5M29 32l7-2.5M19 18l-7-2.5m7 9.5-7-2.5m7 9.5-7-2.5"},null,-1),GDe=[ZDe];function YDe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},GDe,14,UDe)}var F$=ye(WDe,[["render",YDe]]);const XDe=Object.assign(F$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+F$.name,F$)}}),KDe=se({name:"IconBookmark",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-bookmark`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),JDe=["stroke-width","stroke-linecap","stroke-linejoin"],qDe=B("path",{d:"M16 16h16M16 24h8"},null,-1),QDe=B("path",{d:"M24 41H8V6h32v17"},null,-1),eNe=B("path",{d:"M30 29h11v13l-5.5-3.5L30 42V29Z"},null,-1),tNe=[qDe,QDe,eNe];function nNe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},tNe,14,JDe)}var V$=ye(KDe,[["render",nNe]]);const iNe=Object.assign(V$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+V$.name,V$)}}),rNe=se({name:"IconBranch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-branch`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),oNe=["stroke-width","stroke-linecap","stroke-linejoin"],sNe=B("path",{d:"M19 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM38 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM19 38a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM15 15v15m0 3.5V30m0 0c0-5 19-7 19-15"},null,-1),aNe=[sNe];function lNe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},aNe,14,oNe)}var H$=ye(rNe,[["render",lNe]]);const cNe=Object.assign(H$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+H$.name,H$)}}),uNe=se({name:"IconBug",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-bug`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),dNe=["stroke-width","stroke-linecap","stroke-linejoin"],fNe=B("path",{d:"M24 42c-6.075 0-11-4.925-11-11V18h22v13c0 6.075-4.925 11-11 11Zm0 0V23m11 4h8M5 27h8M7 14a4 4 0 0 0 4 4h26a4 4 0 0 0 4-4m0 28v-.5a6.5 6.5 0 0 0-6.5-6.5M7 42v-.5a6.5 6.5 0 0 1 6.5-6.5M17 14a7 7 0 1 1 14 0"},null,-1),hNe=[fNe];function pNe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},hNe,14,dNe)}var W$=ye(uNe,[["render",pNe]]);const mNe=Object.assign(W$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+W$.name,W$)}}),vNe=se({name:"IconBulb",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-bulb`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),gNe=["stroke-width","stroke-linecap","stroke-linejoin"],yNe=B("path",{d:"M17 42h14m6-24c0 2.823-.9 5.437-2.43 7.568-1.539 2.147-3.185 4.32-3.77 6.897l-.623 2.756A1 1 0 0 1 29.2 36H18.8a1 1 0 0 1-.976-.779l-.624-2.756c-.584-2.576-2.23-4.75-3.77-6.897A12.94 12.94 0 0 1 11 18c0-7.18 5.82-13 13-13s13 5.82 13 13Z"},null,-1),bNe=[yNe];function kNe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},bNe,14,gNe)}var U$=ye(vNe,[["render",kNe]]);const CNe=Object.assign(U$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+U$.name,U$)}}),SNe=se({name:"IconCalendarClock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-calendar-clock`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),wNe=["stroke-width","stroke-linecap","stroke-linejoin"],_Ne=B("path",{d:"M7 22h34V10a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1h18M34 5v8M14 5v8"},null,-1),INe=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M36 44a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm1.5-9.75V29h-3v8.25H42v-3h-4.5Z",fill:"currentColor",stroke:"none"},null,-1),xNe=[_Ne,INe];function $Ne(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},xNe,14,wNe)}var Z$=ye(SNe,[["render",$Ne]]);const ANe=Object.assign(Z$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Z$.name,Z$)}}),ENe=se({name:"IconCamera",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-camera`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),MNe=["stroke-width","stroke-linecap","stroke-linejoin"],TNe=B("path",{d:"m33 12-1.862-3.724A.5.5 0 0 0 30.691 8H17.309a.5.5 0 0 0-.447.276L15 12m16 14a7 7 0 1 1-14 0 7 7 0 0 1 14 0ZM7 40h34a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1Z"},null,-1),PNe=[TNe];function ONe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},PNe,14,MNe)}var G$=ye(ENe,[["render",ONe]]);const LNe=Object.assign(G$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+G$.name,G$)}}),DNe=se({name:"IconCloud",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-cloud`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),NNe=["stroke-width","stroke-linecap","stroke-linejoin"],jNe=B("path",{d:"M5 29a9 9 0 0 0 9 9h19c5.523 0 10-4.477 10-10 0-5.312-4.142-9.657-9.373-9.98C32.3 12.833 27.598 9 22 9c-6.606 0-11.965 5.338-12 11.935A9 9 0 0 0 5 29Z"},null,-1),zNe=[jNe];function RNe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},zNe,14,NNe)}var Y$=ye(DNe,[["render",RNe]]);const BNe=Object.assign(Y$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Y$.name,Y$)}}),FNe=se({name:"IconCommand",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-command`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),VNe=["stroke-width","stroke-linecap","stroke-linejoin"],HNe=B("path",{d:"M29 19v-6a6 6 0 1 1 6 6h-6Zm0 0v10m0-10H19m10 10v6a6 6 0 1 0 6-6h-6Zm0 0H19m0-10v10m0-10v-6a6 6 0 1 0-6 6h6Zm0 10v6a6 6 0 1 1-6-6h6Z"},null,-1),WNe=[HNe];function UNe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},WNe,14,VNe)}var X$=ye(FNe,[["render",UNe]]);const ZNe=Object.assign(X$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+X$.name,X$)}}),GNe=se({name:"IconCommon",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-common`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),YNe=["stroke-width","stroke-linecap","stroke-linejoin"],XNe=B("path",{d:"M24 23 7.652 14.345M24 23l16.366-8.664M24 23v19.438M7 14v20l17 9 17-9V14L24 5 7 14Z"},null,-1),KNe=[XNe];function JNe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},KNe,14,YNe)}var K$=ye(GNe,[["render",JNe]]);const qNe=Object.assign(K$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+K$.name,K$)}}),QNe=se({name:"IconCompass",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-compass`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),e9e=["stroke-width","stroke-linecap","stroke-linejoin"],t9e=B("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),n9e=B("path",{d:"m21.177 21.183 10.108-4.717a.2.2 0 0 1 .266.265L26.834 26.84l-10.109 4.717a.2.2 0 0 1-.266-.266l4.718-10.108Z"},null,-1),i9e=[t9e,n9e];function r9e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},i9e,14,e9e)}var J$=ye(QNe,[["render",r9e]]);const o9e=Object.assign(J$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+J$.name,J$)}}),s9e=se({name:"IconComputer",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-computer`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),a9e=["stroke-width","stroke-linecap","stroke-linejoin"],l9e=B("path",{d:"M41 7H7v22h34V7Z"},null,-1),c9e=B("path",{d:"M23.778 29v10"},null,-1),u9e=B("path",{d:"M16 39h16"},null,-1),d9e=B("path",{d:"m20.243 14.657 5.657 5.657M15.414 22.314l7.071-7.071M24.485 21.728l7.071-7.071"},null,-1),f9e=[l9e,c9e,u9e,d9e];function h9e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},f9e,14,a9e)}var q$=ye(s9e,[["render",h9e]]);const p9e=Object.assign(q$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+q$.name,q$)}}),m9e=se({name:"IconCopyright",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-copyright`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),v9e=["stroke-width","stroke-linecap","stroke-linejoin"],g9e=B("path",{d:"M29.292 18a8 8 0 1 0 0 12M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),y9e=[g9e];function b9e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},y9e,14,v9e)}var Q$=ye(m9e,[["render",b9e]]);const k9e=Object.assign(Q$,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Q$.name,Q$)}}),C9e=se({name:"IconDashboard",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-dashboard`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),S9e=["stroke-width","stroke-linecap","stroke-linejoin"],w9e=B("path",{d:"M41.808 24c.118 4.63-1.486 9.333-5.21 13m5.21-13h-8.309m8.309 0c-.112-4.38-1.767-8.694-4.627-12M24 6c5.531 0 10.07 2.404 13.18 6M24 6c-5.724 0-10.384 2.574-13.5 6.38M24 6v7.5M37.18 12 31 17.5m-20.5-5.12L17 17.5m-6.5-5.12C6.99 16.662 5.44 22.508 6.53 28m4.872 9c-2.65-2.609-4.226-5.742-4.873-9m0 0 8.97-3.5"},null,-1),_9e=B("path",{d:"M24 32a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm0 0V19"},null,-1),I9e=[w9e,_9e];function x9e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},I9e,14,S9e)}var e5=ye(C9e,[["render",x9e]]);const $9e=Object.assign(e5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+e5.name,e5)}}),A9e=se({name:"IconDesktop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-desktop`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),E9e=["stroke-width","stroke-linecap","stroke-linejoin"],M9e=B("path",{d:"M24 32v8m0 0h-9m9 0h9M7 32h34a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1Z"},null,-1),T9e=[M9e];function P9e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},T9e,14,E9e)}var t5=ye(A9e,[["render",P9e]]);const O9e=Object.assign(t5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+t5.name,t5)}}),L9e=se({name:"IconDice",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-dice`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),D9e=["stroke-width","stroke-linecap","stroke-linejoin"],N9e=Xp('<rect x="6.998" y="7" width="34" height="34" rx="1.5"></rect><circle cx="16" cy="16" r="2"></circle><circle cx="24" cy="24" r="2"></circle><circle cx="16" cy="32" r="2"></circle><circle cx="32" cy="16" r="2"></circle><circle cx="32" cy="32" r="2"></circle><circle cx="16" cy="16" r="2" fill="currentColor" stroke="none"></circle><circle cx="24" cy="24" r="2" fill="currentColor" stroke="none"></circle><circle cx="16" cy="32" r="2" fill="currentColor" stroke="none"></circle><circle cx="32" cy="16" r="2" fill="currentColor" stroke="none"></circle><circle cx="32" cy="32" r="2" fill="currentColor" stroke="none"></circle>',11),j9e=[N9e];function z9e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},j9e,14,D9e)}var n5=ye(L9e,[["render",z9e]]);const R9e=Object.assign(n5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+n5.name,n5)}}),B9e=se({name:"IconDriveFile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-drive-file`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),F9e=["stroke-width","stroke-linecap","stroke-linejoin"],V9e=B("path",{d:"M38.5 17H29a1 1 0 0 1-1-1V6.5m0-.5H10a1 1 0 0 0-1 1v34a1 1 0 0 0 1 1h28a1 1 0 0 0 1-1V17L28 6Z"},null,-1),H9e=[V9e];function W9e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},H9e,14,F9e)}var i5=ye(B9e,[["render",W9e]]);const U9e=Object.assign(i5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+i5.name,i5)}}),Z9e=se({name:"IconEar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-ear`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),G9e=["stroke-width","stroke-linecap","stroke-linejoin"],Y9e=B("path",{d:"M13 15.528C14.32 12.386 18.403 6.977 23.556 7c7.944.036 14.514 8.528 10.116 15.71-4.399 7.181-5.718 10.323-6.598 14.363-.82 3.766-9.288 7.143-11.498-1.515M20 18.5c1-3.083 4.5-4.5 6.5-2 2.85 3.562-3.503 8.312-5.5 12.5"},null,-1),X9e=[Y9e];function K9e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},X9e,14,G9e)}var r5=ye(Z9e,[["render",K9e]]);const J9e=Object.assign(r5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+r5.name,r5)}}),q9e=se({name:"IconEmail",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-email`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Q9e=["stroke-width","stroke-linecap","stroke-linejoin"],e7e=B("rect",{x:"6",y:"8",width:"36",height:"32",rx:"1"},null,-1),t7e=B("path",{d:"m37 17-12.43 8.606a1 1 0 0 1-1.14 0L11 17"},null,-1),n7e=[e7e,t7e];function i7e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},n7e,14,Q9e)}var o5=ye(q9e,[["render",i7e]]);const r7e=Object.assign(o5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+o5.name,o5)}}),o7e=se({name:"IconExperiment",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-experiment`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),s7e=["stroke-width","stroke-linecap","stroke-linejoin"],a7e=B("path",{d:"M10.5 7h6m0 0v10.5l-5.25 14M16.5 7h15m0 0h6m-6 0v10.5L37 32.167M11.25 31.5l-2.344 6.853A2 2 0 0 0 10.8 41h26.758a2 2 0 0 0 1.86-2.737L37 32.167M11.25 31.5c1.916 1.833 7.05 4.4 12.25 0s11.166-1.389 13.5.667M26 22.5v.01"},null,-1),l7e=[a7e];function c7e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},l7e,14,s7e)}var s5=ye(o7e,[["render",c7e]]);const u7e=Object.assign(s5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+s5.name,s5)}}),d7e=se({name:"IconFire",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-fire`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),f7e=["stroke-width","stroke-linecap","stroke-linejoin"],h7e=B("path",{d:"M17.577 27.477C20.022 22.579 17.041 12.98 24.546 6c0 0-1.156 15.55 5.36 17.181 2.145.537 2.68-5.369 4.289-8.59 0 0 .536 4.832 2.68 8.59 3.217 7.517-1 14.117-5.896 17.182-4.289 2.684-14.587 2.807-19.835-5.37-4.824-7.516 0-15.57 0-15.57s4.289 12.35 6.433 8.054Z"},null,-1),p7e=[h7e];function m7e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},p7e,14,f7e)}var a5=ye(d7e,[["render",m7e]]);const v7e=Object.assign(a5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+a5.name,a5)}}),g7e=se({name:"IconFolderAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-folder-add`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),y7e=["stroke-width","stroke-linecap","stroke-linejoin"],b7e=B("path",{d:"M24 19v14m-7-7h14M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1),k7e=[b7e];function C7e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},k7e,14,y7e)}var l5=ye(g7e,[["render",C7e]]);const S7e=Object.assign(l5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+l5.name,l5)}}),w7e=se({name:"IconFolderDelete",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-folder-delete`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),_7e=["stroke-width","stroke-linecap","stroke-linejoin"],I7e=B("path",{d:"M17 26h14M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1),x7e=[I7e];function $7e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},x7e,14,_7e)}var c5=ye(w7e,[["render",$7e]]);const A7e=Object.assign(c5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+c5.name,c5)}}),E7e=se({name:"IconFolder",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-folder`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),M7e=["stroke-width","stroke-linecap","stroke-linejoin"],T7e=B("path",{d:"M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1),P7e=[T7e];function O7e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},P7e,14,M7e)}var u5=ye(E7e,[["render",O7e]]);const L7e=Object.assign(u5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+u5.name,u5)}}),D7e=se({name:"IconGift",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-gift`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),N7e=["stroke-width","stroke-linecap","stroke-linejoin"],j7e=B("path",{d:"M13.45 14.043H8a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h32a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-4.893m-21.657 0c-1.036-2.833-.615-5.6 1.182-6.637 2.152-1.243 5.464.464 7.397 3.812.539.933.914 1.896 1.127 2.825m-9.706 0h9.706m0 0H25.4m0 0a10.31 10.31 0 0 1 1.128-2.825c1.933-3.348 5.244-5.055 7.397-3.812 1.797 1.037 2.217 3.804 1.182 6.637m-9.707 0h9.707M10 26.043a2 2 0 0 1 2-2h24a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H12a2 2 0 0 1-2-2v-13Z"},null,-1),z7e=[j7e];function R7e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},z7e,14,N7e)}var d5=ye(D7e,[["render",R7e]]);const B7e=Object.assign(d5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+d5.name,d5)}}),F7e=se({name:"IconIdcard",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-idcard`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),V7e=["stroke-width","stroke-linecap","stroke-linejoin"],H7e=B("path",{d:"M11 17h9m-9 7h9m-9 7h5m-8 9h32a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v28a2 2 0 0 0 2 2Z"},null,-1),W7e=B("path",{d:"M36 33a7 7 0 1 0-14 0"},null,-1),U7e=B("circle",{cx:"29",cy:"20",r:"4"},null,-1),Z7e=[H7e,W7e,U7e];function G7e(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Z7e,14,V7e)}var f5=ye(F7e,[["render",G7e]]);const Y7e=Object.assign(f5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+f5.name,f5)}}),X7e=se({name:"IconImage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-image`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),K7e=["stroke-width","stroke-linecap","stroke-linejoin"],J7e=B("path",{d:"m24 33 9-9v9h-9Zm0 0-3.5-4.5L17 33h7Zm15 8H9a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h30a2 2 0 0 1 2 2v30a2 2 0 0 1-2 2ZM15 15h2v2h-2v-2Z"},null,-1),q7e=B("path",{d:"M33 33v-9l-9 9h9ZM23.5 33l-3-4-3 4h6ZM15 15h2v2h-2z",fill:"currentColor",stroke:"none"},null,-1),Q7e=[J7e,q7e];function eje(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Q7e,14,K7e)}var h5=ye(X7e,[["render",eje]]);const tje=Object.assign(h5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+h5.name,h5)}}),nje=se({name:"IconInteraction",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-interaction`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),ije=["stroke-width","stroke-linecap","stroke-linejoin"],rje=B("path",{d:"M8 19h16m16 0H24m0 0v23m14 0H10a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h28a2 2 0 0 1 2 2v32a2 2 0 0 1-2 2Z"},null,-1),oje=[rje];function sje(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},oje,14,ije)}var p5=ye(nje,[["render",sje]]);const aje=Object.assign(p5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+p5.name,p5)}}),lje=se({name:"IconLanguage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-language`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),cje=["stroke-width","stroke-linecap","stroke-linejoin"],uje=B("path",{d:"m42 43-2.385-6M26 43l2.384-6m11.231 0-.795-2-4.18-10h-1.28l-4.181 10-.795 2m11.231 0h-11.23M17 5l1 5M5 11h26M11 11s1.889 7.826 6.611 12.174C22.333 27.522 30 31 30 31"},null,-1),dje=B("path",{d:"M25 11s-1.889 7.826-6.611 12.174C13.667 27.522 6 31 6 31"},null,-1),fje=[uje,dje];function hje(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},fje,14,cje)}var m5=ye(lje,[["render",hje]]);const pje=Object.assign(m5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+m5.name,m5)}}),mje=se({name:"IconLayers",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-layers`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),vje=["stroke-width","stroke-linecap","stroke-linejoin"],gje=B("path",{d:"M24.015 7.017 41 14.62l-16.985 7.605L7.03 14.62l16.985-7.604Z"},null,-1),yje=B("path",{d:"m41 23.255-16.985 7.604L7.03 23.255M40.97 33.412l-16.985 7.605L7 33.412"},null,-1),bje=[gje,yje];function kje(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},bje,14,vje)}var v5=ye(mje,[["render",kje]]);const Cje=Object.assign(v5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+v5.name,v5)}}),Sje=se({name:"IconLayout",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-layout`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),wje=["stroke-width","stroke-linecap","stroke-linejoin"],_je=B("path",{d:"M19 40V8m23 2a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v28a2 2 0 0 0 2 2h32a2 2 0 0 0 2-2V10Z"},null,-1),Ije=[_je];function xje(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Ije,14,wje)}var g5=ye(Sje,[["render",xje]]);const $je=Object.assign(g5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+g5.name,g5)}}),Aje=se({name:"IconLocation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-location`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Eje=["stroke-width","stroke-linecap","stroke-linejoin"],Mje=B("circle",{cx:"24",cy:"19",r:"5"},null,-1),Tje=B("path",{d:"M39 20.405C39 28.914 24 43 24 43S9 28.914 9 20.405C9 11.897 15.716 5 24 5c8.284 0 15 6.897 15 15.405Z"},null,-1),Pje=[Mje,Tje];function Oje(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Pje,14,Eje)}var y5=ye(Aje,[["render",Oje]]);const Lje=Object.assign(y5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+y5.name,y5)}}),Dje=se({name:"IconLock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-lock`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Nje=["stroke-width","stroke-linecap","stroke-linejoin"],jje=B("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),zje=B("path",{d:"M15 21v-6a9 9 0 1 1 18 0v6M24 35v-8"},null,-1),Rje=[jje,zje];function Bje(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Rje,14,Nje)}var b5=ye(Dje,[["render",Bje]]);const Fje=Object.assign(b5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+b5.name,b5)}}),Vje=se({name:"IconLoop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-loop`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Hje=["stroke-width","stroke-linecap","stroke-linejoin"],Wje=B("path",{d:"M24 38c-7.732 0-14-6.268-14-14 0-3.815 1.526-7.273 4-9.798M24 10c7.732 0 14 6.268 14 14 0 3.815-1.526 7.273-4 9.798M24 7v6l-4-3 4-3Zm0 33v-6l4 3-4 3Z"},null,-1),Uje=[Wje];function Zje(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Uje,14,Hje)}var k5=ye(Vje,[["render",Zje]]);const Gje=Object.assign(k5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+k5.name,k5)}}),Yje=se({name:"IconMan",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-man`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Xje=["stroke-width","stroke-linecap","stroke-linejoin"],Kje=B("path",{d:"M40 8 29.68 18.321M31 8h9v9m-7 10c0 7.18-5.82 13-13 13S7 34.18 7 27s5.82-13 13-13 13 5.82 13 13Z"},null,-1),Jje=[Kje];function qje(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Jje,14,Xje)}var C5=ye(Yje,[["render",qje]]);const Qje=Object.assign(C5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+C5.name,C5)}}),eze=se({name:"IconMenu",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-menu`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),tze=["stroke-width","stroke-linecap","stroke-linejoin"],nze=B("path",{d:"M5 10h38M5 24h38M5 38h38"},null,-1),ize=[nze];function rze(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},ize,14,tze)}var S5=ye(eze,[["render",rze]]);const oze=Object.assign(S5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+S5.name,S5)}}),sze=se({name:"IconMindMapping",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-mind-mapping`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),aze=["stroke-width","stroke-linecap","stroke-linejoin"],lze=B("path",{d:"M20 10h23M20 24h23M20 38h23M9 12v28m0-28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 26h7M9 24h7"},null,-1),cze=[lze];function uze(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},cze,14,aze)}var w5=ye(sze,[["render",uze]]);const dze=Object.assign(w5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+w5.name,w5)}}),fze=se({name:"IconMobile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-mobile`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),hze=["stroke-width","stroke-linecap","stroke-linejoin"],pze=B("path",{d:"M17 14h14m6.125 28h-26.25C9.839 42 9 41.105 9 40V8c0-1.105.84-2 1.875-2h26.25C38.16 6 39 6.895 39 8v32c0 1.105-.84 2-1.875 2ZM22 33a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"},null,-1),mze=B("circle",{cx:"24",cy:"33",r:"2",fill:"currentColor",stroke:"none"},null,-1),vze=[pze,mze];function gze(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},vze,14,hze)}var _5=ye(fze,[["render",gze]]);const yze=Object.assign(_5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+_5.name,_5)}}),bze=se({name:"IconMoon",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-moon`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),kze=["stroke-width","stroke-linecap","stroke-linejoin"],Cze=B("path",{d:"M39.979 29.241c.11-.344-.23-.654-.574-.544-1.53.487-3.162.75-4.855.75-8.834 0-15.997-7.163-15.997-15.997 0-1.693.263-3.324.75-4.855.11-.344-.2-.684-.544-.574C11.939 10.19 7 16.576 7 24.114 7 33.44 14.56 41 23.886 41c7.538 0 13.923-4.94 16.093-11.759Z"},null,-1),Sze=[Cze];function wze(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Sze,14,kze)}var I5=ye(bze,[["render",wze]]);const _ze=Object.assign(I5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+I5.name,I5)}}),Ize=se({name:"IconMosaic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-mosaic`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),xze=["stroke-width","stroke-linecap","stroke-linejoin"],$ze=B("path",{d:"M6 7h4v4H6V7ZM6 23h4v4H6v-4ZM6 38h4v4H6v-4ZM14 15h4v4h-4v-4ZM14 31h4v4h-4v-4ZM22 7h4v4h-4V7ZM22 23h4v4h-4v-4ZM22 38h4v4h-4v-4ZM30 15h4v4h-4v-4ZM30 31h4v4h-4v-4ZM38 7h4v4h-4V7ZM38 23h4v4h-4v-4ZM38 38h4v4h-4v-4Z",fill:"currentColor",stroke:"none"},null,-1),Aze=B("path",{d:"M6 7h4v4H6V7ZM6 23h4v4H6v-4ZM6 38h4v4H6v-4ZM14 15h4v4h-4v-4ZM14 31h4v4h-4v-4ZM22 7h4v4h-4V7ZM22 23h4v4h-4v-4ZM22 38h4v4h-4v-4ZM30 15h4v4h-4v-4ZM30 31h4v4h-4v-4ZM38 7h4v4h-4V7ZM38 23h4v4h-4v-4ZM38 38h4v4h-4v-4Z"},null,-1),Eze=[$ze,Aze];function Mze(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Eze,14,xze)}var x5=ye(Ize,[["render",Mze]]);const Tze=Object.assign(x5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+x5.name,x5)}}),Pze=se({name:"IconNav",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-nav`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Oze=["stroke-width","stroke-linecap","stroke-linejoin"],Lze=B("path",{d:"M6 19h10m0 0h26m-26 0V9m0 10v10m0 0v10m0-10H6m10 0h26M6 9h36v30H6V9Z"},null,-1),Dze=[Lze];function Nze(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Dze,14,Oze)}var $5=ye(Pze,[["render",Nze]]);const jze=Object.assign($5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+$5.name,$5)}}),zze=se({name:"IconNotificationClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-notification-close`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Rze=["stroke-width","stroke-linecap","stroke-linejoin"],Bze=B("path",{d:"M11 35V22c0-1.835.38-3.58 1.066-5.163M11 35H6m5 0h15.5M24 9c7.18 0 13 5.82 13 13v7.5M24 9V4m0 5a12.94 12.94 0 0 0-6.5 1.74M17 42h14M6 4l36 40"},null,-1),Fze=[Bze];function Vze(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Fze,14,Rze)}var A5=ye(zze,[["render",Vze]]);const Hze=Object.assign(A5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+A5.name,A5)}}),Wze=se({name:"IconNotification",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-notification`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Uze=["stroke-width","stroke-linecap","stroke-linejoin"],Zze=B("path",{d:"M24 9c7.18 0 13 5.82 13 13v13H11V22c0-7.18 5.82-13 13-13Zm0 0V4M6 35h36m-25 7h14"},null,-1),Gze=[Zze];function Yze(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Gze,14,Uze)}var E5=ye(Wze,[["render",Yze]]);const Xze=Object.assign(E5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+E5.name,E5)}}),Kze=se({name:"IconPalette",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-palette`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),Jze=["stroke-width","stroke-linecap","stroke-linejoin"],qze=Xp('<path d="M31.813 12.02C29.73 10.459 27.013 10 24 10c-9.78 0-17.708 6.987-17.708 15.042 0 8.054 8.97 14.583 18.75 14.583 5.277 0 2.485-5.318 5.73-8.333 2.767-2.574 10.937-1.563 10.937-6.25 0-2.792-.521-5.209-2.605-7.617"></path><path d="M25.042 25.563 42.23 8.375"></path><circle cx="22.5" cy="17.5" r="2.5" fill="currentColor" stroke="none"></circle><circle cx="15.5" cy="20.5" r="2.5" fill="currentColor" stroke="none"></circle><circle cx="14.5" cy="28.5" r="2.5" fill="currentColor" stroke="none"></circle>',5),Qze=[qze];function eRe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},Qze,14,Jze)}var M5=ye(Kze,[["render",eRe]]);const tRe=Object.assign(M5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+M5.name,M5)}}),nRe=se({name:"IconPen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-pen`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),iRe=["stroke-width","stroke-linecap","stroke-linejoin"],rRe=B("path",{d:"m28.364 11.565 7.07 7.071M7.15 32.778 33.313 6.615l7.071 7.071L14.221 39.85h-7.07v-7.07Z"},null,-1),oRe=[rRe];function sRe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},oRe,14,iRe)}var T5=ye(nRe,[["render",sRe]]);const aRe=Object.assign(T5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+T5.name,T5)}}),lRe=se({name:"IconPhone",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-phone`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),cRe=["stroke-width","stroke-linecap","stroke-linejoin"],uRe=B("path",{d:"M6.707 34.284a1 1 0 0 1 0-1.414l5.657-5.657a1 1 0 0 1 1.414 0l4.95 4.95s3.535-1.414 7.778-5.657c4.243-4.243 5.657-7.778 5.657-7.778l-4.95-4.95a1 1 0 0 1 0-1.414l5.657-5.657a1 1 0 0 1 1.414 0l6.01 6.01s3.183 7.425-8.485 19.092c-11.667 11.668-19.092 8.485-19.092 8.485l-6.01-6.01Z"},null,-1),dRe=[uRe];function fRe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},dRe,14,cRe)}var P5=ye(lRe,[["render",fRe]]);const hRe=Object.assign(P5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+P5.name,P5)}}),pRe=se({name:"IconPrinter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-printer`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),mRe=["stroke-width","stroke-linecap","stroke-linejoin"],vRe=B("path",{d:"M14 15V8a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v7m-20 0H7a1 1 0 0 0-1 1v17a1 1 0 0 0 1 1h6m1-19h20m0 0h7a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1h-6m-22 0v6a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1v-6m-22 0v-5a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v5"},null,-1),gRe=[vRe];function yRe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},gRe,14,mRe)}var O5=ye(pRe,[["render",yRe]]);const bRe=Object.assign(O5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+O5.name,O5)}}),kRe=se({name:"IconPublic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-public`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),CRe=["stroke-width","stroke-linecap","stroke-linejoin"],SRe=B("path",{d:"M15 21.5 6.704 19M15 21.5l4.683 5.152a1 1 0 0 1 .25.814L18 40.976l10.918-16.117a1 1 0 0 0-.298-1.409L21.5 19 15 21.5Zm0 0 6.062-6.995a1 1 0 0 0 .138-1.103L18 7.024M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),wRe=[SRe];function _Re(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},wRe,14,CRe)}var L5=ye(kRe,[["render",_Re]]);const IRe=Object.assign(L5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+L5.name,L5)}}),xRe=se({name:"IconPushpin",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-pushpin`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),$Re=["stroke-width","stroke-linecap","stroke-linejoin"],ARe=B("path",{d:"M19.921 28.163 7.193 40.89m12.728-12.728 8.884 8.883c.17.17.447.17.617 0l5.12-5.12a7.862 7.862 0 0 0 1.667-8.655.093.093 0 0 1 .02-.102l4.906-4.906a2 2 0 0 0 0-2.828L32.648 6.95a2 2 0 0 0-2.828 0l-4.89 4.889a.126.126 0 0 1-.139.027 7.828 7.828 0 0 0-8.618 1.66l-5.027 5.026a.591.591 0 0 0 0 .836l8.774 8.775Z"},null,-1),ERe=[ARe];function MRe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},ERe,14,$Re)}var D5=ye(xRe,[["render",MRe]]);const TRe=Object.assign(D5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+D5.name,D5)}}),PRe=se({name:"IconQrcode",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-qrcode`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),ORe=["stroke-width","stroke-linecap","stroke-linejoin"],LRe=B("path",{d:"M24 30v4m0 3v6m19-19h-6m-3 0h-4M7 7h17v17H7V7Zm0 25h9v9H7v-9Zm25 0h9v9h-9v-9Zm0-25h9v9h-9V7Zm-18 7h3v3h-3v-3Z"},null,-1),DRe=[LRe];function NRe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},DRe,14,ORe)}var N5=ye(PRe,[["render",NRe]]);const jRe=Object.assign(N5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+N5.name,N5)}}),zRe=se({name:"IconRelation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-relation`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),RRe=["stroke-width","stroke-linecap","stroke-linejoin"],BRe=B("path",{d:"M19.714 14C15.204 15.784 12 20.302 12 25.593c0 1.142.15 2.247.429 3.298m16.285-14.712C32.998 16.073 36 20.471 36 25.593c0 1.07-.131 2.11-.378 3.102m-18.32 7.194a11.676 11.676 0 0 0 13.556-.112"},null,-1),FRe=B("path",{d:"M24 19a6 6 0 1 0 0-12 6 6 0 0 0 0 12ZM36 40a6 6 0 1 0 0-12 6 6 0 0 0 0 12ZM12 40a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z"},null,-1),VRe=[BRe,FRe];function HRe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},VRe,14,RRe)}var j5=ye(zRe,[["render",HRe]]);const WRe=Object.assign(j5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+j5.name,j5)}}),URe=se({name:"IconRobotAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-robot-add`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),ZRe=["stroke-width","stroke-linecap","stroke-linejoin"],GRe=B("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m25 8H9V13h30v11m-7 11h14m-7-7v14M18 26h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1),YRe=[GRe];function XRe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},YRe,14,ZRe)}var z5=ye(URe,[["render",XRe]]);const KRe=Object.assign(z5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+z5.name,z5)}}),JRe=se({name:"IconRobot",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-robot`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),qRe=["stroke-width","stroke-linecap","stroke-linejoin"],QRe=B("path",{d:"M18 26h1v1h-1v-1ZM29 26h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),eBe=B("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m36 8H9V13h30v29m6-21v11m-27-6h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1),tBe=[QRe,eBe];function nBe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},tBe,14,qRe)}var R5=ye(JRe,[["render",nBe]]);const iBe=Object.assign(R5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+R5.name,R5)}}),rBe=se({name:"IconSafe",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-safe`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),oBe=["stroke-width","stroke-linecap","stroke-linejoin"],sBe=B("path",{d:"m16.825 22.165 6 6 10-10M24 6c7 4 16 5 16 5v15s-2 12-16 16.027C10 38 8 26 8 26V11s9-1 16-5Z"},null,-1),aBe=[sBe];function lBe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},aBe,14,oBe)}var B5=ye(rBe,[["render",lBe]]);const cBe=Object.assign(B5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+B5.name,B5)}}),uBe=se({name:"IconSchedule",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-schedule`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),dBe=["stroke-width","stroke-linecap","stroke-linejoin"],fBe=B("circle",{cx:"24",cy:"24",r:"18"},null,-1),hBe=B("path",{d:"M24 13v10l6.5 7"},null,-1),pBe=[fBe,hBe];function mBe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},pBe,14,dBe)}var F5=ye(uBe,[["render",mBe]]);const vBe=Object.assign(F5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+F5.name,F5)}}),gBe=se({name:"IconShake",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-shake`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),yBe=["stroke-width","stroke-linecap","stroke-linejoin"],bBe=B("path",{d:"M43.092 27.536 31.778 38.849M20.465 4.91 9.15 16.221m9.192 14.85a1 1 0 1 1-1.414-1.415 1 1 0 0 1 1.414 1.414ZM6.323 28.95 19.05 41.678a1 1 0 0 0 1.415 0l21.213-21.213a1 1 0 0 0 0-1.415L28.95 6.322a1 1 0 0 0-1.415 0L6.322 27.536a1 1 0 0 0 0 1.414Z"},null,-1),kBe=B("circle",{cx:"17.637",cy:"30.364",r:"1",transform:"rotate(45 17.637 30.364)",fill:"currentColor",stroke:"none"},null,-1),CBe=[bBe,kBe];function SBe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},CBe,14,yBe)}var V5=ye(gBe,[["render",SBe]]);const wBe=Object.assign(V5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+V5.name,V5)}}),_Be=se({name:"IconSkin",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-skin`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),IBe=["stroke-width","stroke-linecap","stroke-linejoin"],xBe=B("path",{d:"M17.936 6H7a1 1 0 0 0-1 1v17.559a1 1 0 0 0 1 1h4V40a1 1 0 0 0 1 1h24a1 1 0 0 0 1-1V25.559h4a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H30.064C28.854 7.23 26.59 9.059 24 9.059S19.147 7.23 17.936 6Z"},null,-1),$Be=[xBe];function ABe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},$Be,14,IBe)}var H5=ye(_Be,[["render",ABe]]);const EBe=Object.assign(H5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+H5.name,H5)}}),MBe=se({name:"IconStamp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-stamp`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),TBe=["stroke-width","stroke-linecap","stroke-linejoin"],PBe=B("path",{d:"M7 33a1 1 0 0 1 1-1h32a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-7ZM29.081 21.18a8 8 0 1 0-10.163 0L14 32h20l-4.919-10.82Z"},null,-1),OBe=[PBe];function LBe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},OBe,14,TBe)}var W5=ye(MBe,[["render",LBe]]);const DBe=Object.assign(W5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+W5.name,W5)}}),NBe=se({name:"IconStorage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-storage`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),jBe=["stroke-width","stroke-linecap","stroke-linejoin"],zBe=B("path",{d:"M7 18h34v12H7V18ZM40 6H8a1 1 0 0 0-1 1v11h34V7a1 1 0 0 0-1-1ZM7 30h34v11a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V30Z"},null,-1),RBe=B("path",{d:"M13.02 36H13v.02h.02V36Z"},null,-1),BBe=B("path",{d:"M13 12v-2h-2v2h2Zm.02 0h2v-2h-2v2Zm0 .02v2h2v-2h-2Zm-.02 0h-2v2h2v-2ZM13 14h.02v-4H13v4Zm-1.98-2v.02h4V12h-4Zm2-1.98H13v4h.02v-4Zm1.98 2V12h-4v.02h4Z",fill:"currentColor",stroke:"none"},null,-1),FBe=B("path",{d:"M13.02 24H13v.02h.02V24Z"},null,-1),VBe=[zBe,RBe,BBe,FBe];function HBe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},VBe,14,jBe)}var U5=ye(NBe,[["render",HBe]]);const WBe=Object.assign(U5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+U5.name,U5)}}),UBe=se({name:"IconSubscribeAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-subscribe-add`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),ZBe=["stroke-width","stroke-linecap","stroke-linejoin"],GBe=B("path",{d:"M24.53 6.007H9.97c-.535 0-.97.449-.97 1.003V41.8c0 .148.152.245.28.179l15.25-7.881 14.248 7.88c.129.067.28-.03.28-.179V22.06M27.413 11.023h6.794m0 0H41m-6.794 0V4m0 7.023v7.023"},null,-1),YBe=[GBe];function XBe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},YBe,14,ZBe)}var Z5=ye(UBe,[["render",XBe]]);const KBe=Object.assign(Z5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Z5.name,Z5)}}),JBe=se({name:"IconSubscribe",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-subscribe`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),qBe=["stroke-width","stroke-linecap","stroke-linejoin"],QBe=B("path",{d:"M9 7v34.667a.2.2 0 0 0 .294.176L24 34l14.706 7.843a.2.2 0 0 0 .294-.176V7a1 1 0 0 0-1-1H10a1 1 0 0 0-1 1Z"},null,-1),eFe=[QBe];function tFe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},eFe,14,qBe)}var G5=ye(JBe,[["render",tFe]]);const nFe=Object.assign(G5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+G5.name,G5)}}),iFe=se({name:"IconSubscribed",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-subscribed`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),rFe=["stroke-width","stroke-linecap","stroke-linejoin"],oFe=B("path",{d:"m31.289 15.596-9.193 9.193-4.95-4.95M24 34l14.706 7.843a.2.2 0 0 0 .294-.176V7a1 1 0 0 0-1-1H10a1 1 0 0 0-1 1v34.667a.2.2 0 0 0 .294.176L24 34Z"},null,-1),sFe=[oFe];function aFe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},sFe,14,rFe)}var Y5=ye(iFe,[["render",aFe]]);const lFe=Object.assign(Y5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Y5.name,Y5)}}),cFe=se({name:"IconSun",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-sun`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),uFe=["stroke-width","stroke-linecap","stroke-linejoin"],dFe=B("circle",{cx:"24",cy:"24",r:"7"},null,-1),fFe=B("path",{d:"M23 7h2v2h-2zM23 39h2v2h-2zM41 23v2h-2v-2zM9 23v2H7v-2zM36.73 35.313l-1.415 1.415-1.414-1.415 1.414-1.414zM14.099 12.686l-1.414 1.415-1.414-1.415 1.414-1.414zM12.687 36.728l-1.414-1.415 1.414-1.414 1.414 1.414zM35.314 14.1 33.9 12.686l1.414-1.414 1.415 1.414z"},null,-1),hFe=B("path",{fill:"currentColor",stroke:"none",d:"M23 7h2v2h-2zM23 39h2v2h-2zM41 23v2h-2v-2zM9 23v2H7v-2zM36.73 35.313l-1.415 1.415-1.414-1.415 1.414-1.414zM14.099 12.686l-1.414 1.415-1.414-1.415 1.414-1.414zM12.687 36.728l-1.414-1.415 1.414-1.414 1.414 1.414zM35.314 14.1 33.9 12.686l1.414-1.414 1.415 1.414z"},null,-1),pFe=[dFe,fFe,hFe];function mFe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},pFe,14,uFe)}var X5=ye(cFe,[["render",mFe]]);const vFe=Object.assign(X5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+X5.name,X5)}}),gFe=se({name:"IconTag",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-tag`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),yFe=["stroke-width","stroke-linecap","stroke-linejoin"],bFe=B("path",{d:"M24.835 6.035a1 1 0 0 1 .903-.273l12.964 2.592a1 1 0 0 1 .784.785l2.593 12.963a1 1 0 0 1-.274.904L21.678 43.133a1 1 0 0 1-1.415 0L4.708 27.577a1 1 0 0 1 0-1.414L24.835 6.035Z"},null,-1),kFe=B("path",{d:"M31.577 17.346a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"},null,-1),CFe=B("path",{d:"M31.582 17.349a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",fill:"currentColor",stroke:"none"},null,-1),SFe=[bFe,kFe,CFe];function wFe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},SFe,14,yFe)}var K5=ye(gFe,[["render",wFe]]);const _Fe=Object.assign(K5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+K5.name,K5)}}),IFe=se({name:"IconTags",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-tags`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),xFe=["stroke-width","stroke-linecap","stroke-linejoin"],$Fe=B("path",{d:"m37.581 28.123-14.849 14.85a1 1 0 0 1-1.414 0L8.59 30.243m25.982-22.68-10.685-.628a1 1 0 0 0-.766.291L9.297 21.052a1 1 0 0 0 0 1.414L20.61 33.78a1 1 0 0 0 1.415 0l13.824-13.825a1 1 0 0 0 .291-.765l-.628-10.686a1 1 0 0 0-.94-.94Zm-6.874 7.729a1 1 0 1 1 1.414-1.414 1 1 0 0 1-1.414 1.414Z"},null,-1),AFe=B("path",{d:"M27.697 15.292a1 1 0 1 1 1.414-1.414 1 1 0 0 1-1.414 1.414Z",fill:"currentColor",stroke:"none"},null,-1),EFe=[$Fe,AFe];function MFe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},EFe,14,xFe)}var J5=ye(IFe,[["render",MFe]]);const TFe=Object.assign(J5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+J5.name,J5)}}),PFe=se({name:"IconThunderbolt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-thunderbolt`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),OFe=["stroke-width","stroke-linecap","stroke-linejoin"],LFe=B("path",{d:"M27.824 5.203A.1.1 0 0 1 28 5.27V21h10.782a.1.1 0 0 1 .075.165L20.176 42.797A.1.1 0 0 1 20 42.73V27H9.219a.1.1 0 0 1-.076-.165L27.824 5.203Z"},null,-1),DFe=[LFe];function NFe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},DFe,14,OFe)}var q5=ye(PFe,[["render",NFe]]);const jFe=Object.assign(q5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+q5.name,q5)}}),zFe=se({name:"IconTool",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-tool`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),RFe=["stroke-width","stroke-linecap","stroke-linejoin"],BFe=B("path",{d:"M19.994 11.035c3.66-3.659 9.094-4.46 13.531-2.405a.1.1 0 0 1 .028.16l-6.488 6.488a1 1 0 0 0 0 1.414l4.243 4.243a1 1 0 0 0 1.414 0l6.488-6.488a.1.1 0 0 1 .16.028c2.056 4.437 1.254 9.872-2.405 13.53-3.695 3.696-9.2 4.477-13.66 2.347L12.923 40.733a1 1 0 0 1-1.414 0L7.266 36.49a1 1 0 0 1 0-1.414l10.382-10.382c-2.13-4.46-1.349-9.965 2.346-13.66Z"},null,-1),FFe=[BFe];function VFe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},FFe,14,RFe)}var Q5=ye(zFe,[["render",VFe]]);const HFe=Object.assign(Q5,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+Q5.name,Q5)}}),WFe=se({name:"IconTrophy",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-trophy`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),UFe=["stroke-width","stroke-linecap","stroke-linejoin"],ZFe=B("path",{d:"M24 33c-6.075 0-11-4.925-11-11m11 11c6.075 0 11-4.925 11-11M24 33v8M13 22V7h22v15m-22 0V9H7v7a6 6 0 0 0 6 6Zm22 0V9h6v7a6 6 0 0 1-6 6ZM12 41h24"},null,-1),GFe=[ZFe];function YFe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},GFe,14,UFe)}var eA=ye(WFe,[["render",YFe]]);const XFe=Object.assign(eA,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+eA.name,eA)}}),KFe=se({name:"IconUnlock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-unlock`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),JFe=["stroke-width","stroke-linecap","stroke-linejoin"],qFe=B("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),QFe=B("path",{d:"M44 15a9 9 0 1 0-18 0v6M24 35v-8"},null,-1),eVe=[qFe,QFe];function tVe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},eVe,14,JFe)}var tA=ye(KFe,[["render",tVe]]);const nVe=Object.assign(tA,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+tA.name,tA)}}),iVe=se({name:"IconUserAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-user-add`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),rVe=["stroke-width","stroke-linecap","stroke-linejoin"],oVe=B("path",{d:"M25 27h-8c-5.523 0-10 4.477-10 10v4h18m11-14v8m0 0v8m0-8h8m-8 0h-8m3-21a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"},null,-1),sVe=[oVe];function aVe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},sVe,14,rVe)}var nA=ye(iVe,[["render",aVe]]);const lVe=Object.assign(nA,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+nA.name,nA)}}),cVe=se({name:"IconUserGroup",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-user-group`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),uVe=["stroke-width","stroke-linecap","stroke-linejoin"],dVe=B("circle",{cx:"18",cy:"15",r:"7"},null,-1),fVe=B("circle",{cx:"34",cy:"19",r:"4"},null,-1),hVe=B("path",{d:"M6 34a6 6 0 0 1 6-6h12a6 6 0 0 1 6 6v6H6v-6ZM34 30h4a4 4 0 0 1 4 4v4h-8"},null,-1),pVe=[dVe,fVe,hVe];function mVe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},pVe,14,uVe)}var iA=ye(cVe,[["render",mVe]]);const vVe=Object.assign(iA,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+iA.name,iA)}}),gVe=se({name:"IconUser",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-user`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),yVe=["stroke-width","stroke-linecap","stroke-linejoin"],bVe=B("path",{d:"M7 37c0-4.97 4.03-8 9-8h16c4.97 0 9 3.03 9 8v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-3Z"},null,-1),kVe=B("circle",{cx:"24",cy:"15",r:"8"},null,-1),CVe=[bVe,kVe];function SVe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},CVe,14,yVe)}var rA=ye(gVe,[["render",SVe]]);const wVe=Object.assign(rA,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+rA.name,rA)}}),_Ve=se({name:"IconVideoCamera",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-video-camera`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),IVe=["stroke-width","stroke-linecap","stroke-linejoin"],xVe=B("path",{d:"M33 18v12m0-12v-6a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v24a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1v-6m0-12 8.713-2.614a1 1 0 0 1 1.287.958v15.312a1 1 0 0 1-1.287.958L33 30M11 19h6"},null,-1),$Ve=[xVe];function AVe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},$Ve,14,IVe)}var oA=ye(_Ve,[["render",AVe]]);const EVe=Object.assign(oA,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+oA.name,oA)}}),MVe=se({name:"IconWifi",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-wifi`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),TVe=["stroke-width","stroke-linecap","stroke-linejoin"],PVe=B("path",{d:"M31.587 31.485A9.978 9.978 0 0 0 24 28a9.977 9.977 0 0 0-7.586 3.485M37.255 25.822A17.953 17.953 0 0 0 24 20a17.953 17.953 0 0 0-13.256 5.822M43.618 19.449C38.696 14.246 31.728 11 24 11c-7.727 0-14.696 3.246-19.617 8.449"},null,-1),OVe=B("path",{d:"M27.535 35.465a5 5 0 0 0-7.07 0L24 39l3.535-3.535Z",fill:"currentColor",stroke:"none"},null,-1),LVe=[PVe,OVe];function DVe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},LVe,14,TVe)}var sA=ye(MVe,[["render",DVe]]);const NVe=Object.assign(sA,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+sA.name,sA)}}),jVe=se({name:"IconWoman",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=de("icon"),i=P(()=>[n,`${n}-woman`,{[`${n}-spin`]:e.spin}]),o=P(()=>{const r={};return e.size&&(r.fontSize=Le(e.size)?`${e.size}px`:e.size),e.rotate&&(r.transform=`rotate(${e.rotate}deg)`),r});return{cls:i,innerStyle:o,onClick:r=>{t("click",r)}}}}),zVe=["stroke-width","stroke-linecap","stroke-linejoin"],RVe=B("path",{d:"M24 29c6.075 0 11-4.925 11-11S30.075 7 24 7s-11 4.925-11 11 4.925 11 11 11Zm0 0v15M15 36h18"},null,-1),BVe=[RVe];function FVe(e,t,n,i,o,s){return R(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:G(e.cls),style:Te(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...r)=>e.onClick&&e.onClick(...r))},BVe,14,zVe)}var aA=ye(jVe,[["render",FVe]]);const VVe=Object.assign(aA,{install:(e,t)=>{var n;const i=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(i+aA.name,aA)}});var HVe=Object.defineProperty,WVe=Object.defineProperties,UVe=Object.getOwnPropertyDescriptors,z9=Object.getOwnPropertySymbols,ZVe=Object.prototype.hasOwnProperty,GVe=Object.prototype.propertyIsEnumerable,R9=(e,t,n)=>t in e?HVe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,YVe=(e,t)=>{for(var n in t||(t={}))ZVe.call(t,n)&&R9(e,n,t[n]);if(z9)for(var n of z9(t))GVe.call(t,n)&&R9(e,n,t[n]);return e},XVe=(e,t)=>WVe(e,UVe(t));const $E={IconArrowDown:twe,IconArrowFall:uwe,IconArrowLeft:vwe,IconArrowRight:Swe,IconArrowRise:Twe,IconArrowUp:jwe,IconCaretDown:OP,IconCaretLeft:RF,IconCaretRight:zF,IconCaretUp:yH,IconDoubleDown:Hwe,IconDoubleLeft:JF,IconDoubleRight:qF,IconDoubleUp:Xwe,IconDownCircle:n_e,IconDown:ff,IconDragArrow:l_e,IconExpand:p_e,IconLeftCircle:C_e,IconLeft:Pa,IconMenuFold:KV,IconMenuUnfold:JV,IconRightCircle:A_e,IconRight:fs,IconRotateLeft:PV,IconRotateRight:OV,IconShrink:L_e,IconSwap:B_e,IconToBottom:G_e,IconToLeft:e4e,IconToRight:a4e,IconToTop:aF,IconUpCircle:p4e,IconUp:JS,IconCheckCircleFill:ru,IconCloseCircleFill:uf,IconExclamationCircleFill:Ta,IconExclamationPolygonFill:k4e,IconInfoCircleFill:Kp,IconMinusCircleFill:x4e,IconPlusCircleFill:P4e,IconQuestionCircleFill:z4e,IconCheckCircle:W4e,IconCheckSquare:K4e,IconCheck:C1,IconClockCircle:bP,IconCloseCircle:n3e,IconClose:Cr,IconExclamationCircle:l3e,IconExclamation:MP,IconInfoCircle:p3e,IconInfo:aH,IconMinusCircle:k3e,IconMinus:ew,IconPlusCircle:x3e,IconPlus:Qd,IconQuestionCircle:IV,IconQuestion:P3e,IconStop:z3e,IconHeartFill:W3e,IconStarFill:rH,IconThumbDownFill:J3e,IconThumbUpFill:rIe,IconAt:uIe,IconCloudDownload:vIe,IconCodeBlock:SIe,IconCodeSquare:AIe,IconCode:LIe,IconCustomerService:BIe,IconDownload:ZIe,IconExport:qIe,IconEyeInvisible:QB,IconEye:nP,IconHeart:rxe,IconHistory:uxe,IconHome:gxe,IconImport:wxe,IconLaunch:Exe,IconList:Dxe,IconMessageBanned:Fxe,IconMessage:Gxe,IconMoreVertical:e$e,IconMore:XS,IconPoweroff:s$e,IconRefresh:f$e,IconReply:y$e,IconSave:_$e,IconScan:M$e,IconSearch:Xk,IconSelectAll:N$e,IconSend:V$e,IconSettings:X$e,IconShareAlt:t5e,IconShareExternal:a5e,IconShareInternal:h5e,IconStar:b5e,IconSync:I5e,IconThumbDown:T5e,IconThumbUp:j5e,IconTranslate:H5e,IconUpload:fw,IconVoice:X5e,IconAlignCenter:tAe,IconAlignLeft:aAe,IconAlignRight:hAe,IconAttachment:bAe,IconBgColors:$Ae,IconBold:OAe,IconBrush:RAe,IconCopy:$H,IconDelete:uw,IconEdit:AH,IconEraser:UAe,IconFilter:bH,IconFindReplace:JAe,IconFontColors:iEe,IconFormula:cEe,IconH1:mEe,IconH2:CEe,IconH3:$Ee,IconH4:OEe,IconH5:REe,IconH6:UEe,IconH7:JEe,IconHighlight:iMe,IconItalic:cMe,IconLineHeight:gMe,IconLink:sV,IconObliqueLine:cF,IconOrderedList:_Me,IconOriginalSize:LV,IconPaste:PMe,IconQuote:RMe,IconRedo:UMe,IconScissor:JMe,IconSortAscending:iTe,IconSortDescending:cTe,IconSort:mTe,IconStrikethrough:CTe,IconUnderline:$Te,IconUndo:OTe,IconUnorderedList:RTe,IconZoomIn:MV,IconZoomOut:EV,IconMuteFill:ZTe,IconPauseCircleFill:qTe,IconPlayArrowFill:PH,IconPlayCircleFill:rPe,IconSkipNextFill:dPe,IconSkipPreviousFill:yPe,IconSoundFill:xPe,IconBackward:PPe,IconForward:zPe,IconFullscreenExit:WPe,IconFullscreen:TV,IconLiveBroadcast:KPe,IconMusic:nOe,IconMute:lOe,IconPauseCircle:mOe,IconPause:TH,IconPlayArrow:COe,IconPlayCircle:AOe,IconRecordStop:NOe,IconRecord:WOe,IconSkipNext:JOe,IconSkipPrevious:r8e,IconSound:d8e,IconBytedanceColor:k8e,IconLarkColor:A8e,IconTiktokColor:L8e,IconXiguaColor:B8e,IconFaceBookCircleFill:Z8e,IconFacebookSquareFill:q8e,IconGoogleCircleFill:r6e,IconQqCircleFill:u6e,IconTwitterCircleFill:v6e,IconWeiboCircleFill:S6e,IconAlipayCircle:A6e,IconCodeSandbox:L6e,IconCodepen:B6e,IconFacebook:Z6e,IconGithub:q6e,IconGitlab:rLe,IconGoogle:uLe,IconQqZone:vLe,IconQq:SLe,IconTwitter:ALe,IconWechat:LLe,IconWechatpay:BLe,IconWeibo:ZLe,IconChineseFill:QLe,IconEnglishFill:oDe,IconFaceFrownFill:sH,IconFaceMehFill:yE,IconFaceSmileFill:oH,IconMoonFill:dDe,IconPenFill:gDe,IconSunFill:_De,IconApps:MDe,IconArchive:jDe,IconBarChart:HDe,IconBook:XDe,IconBookmark:iNe,IconBranch:cNe,IconBug:mNe,IconBulb:CNe,IconCalendarClock:ANe,IconCalendar:iw,IconCamera:LNe,IconCloud:BNe,IconCommand:ZNe,IconCommon:qNe,IconCompass:o9e,IconComputer:p9e,IconCopyright:k9e,IconDashboard:$9e,IconDesktop:O9e,IconDice:R9e,IconDragDotVertical:sw,IconDragDot:BV,IconDriveFile:U9e,IconEar:J9e,IconEmail:r7e,IconEmpty:tF,IconExperiment:u7e,IconFileAudio:jH,IconFileImage:DH,IconFilePdf:LH,IconFileVideo:NH,IconFile:jP,IconFire:v7e,IconFolderAdd:S7e,IconFolderDelete:A7e,IconFolder:L7e,IconGift:B7e,IconIdcard:Y7e,IconImageClose:YS,IconImage:tje,IconInteraction:aje,IconLanguage:pje,IconLayers:Cje,IconLayout:$je,IconLoading:Lr,IconLocation:Lje,IconLock:Fje,IconLoop:Gje,IconMan:Qje,IconMenu:oze,IconMindMapping:dze,IconMobile:yze,IconMoon:_ze,IconMosaic:Tze,IconNav:jze,IconNotificationClose:Hze,IconNotification:Xze,IconPalette:tRe,IconPen:aRe,IconPhone:hRe,IconPrinter:bRe,IconPublic:IRe,IconPushpin:TRe,IconQrcode:jRe,IconRelation:WRe,IconRobotAdd:KRe,IconRobot:iBe,IconSafe:cBe,IconSchedule:vBe,IconShake:wBe,IconSkin:EBe,IconStamp:DBe,IconStorage:WBe,IconSubscribeAdd:KBe,IconSubscribe:nFe,IconSubscribed:lFe,IconSun:vFe,IconTag:_Fe,IconTags:TFe,IconThunderbolt:jFe,IconTool:HFe,IconTrophy:XFe,IconUnlock:nVe,IconUserAdd:lVe,IconUserGroup:vVe,IconUser:wVe,IconVideoCamera:EVe,IconWifi:NVe,IconWoman:VVe},KVe=(e,t)=>{for(const n of Object.keys($E))e.use($E[n],t)},VH=XVe(YVe({},$E),{install:KVe});/*!
  26. * vue-router v4.4.5
  27. * (c) 2024 Eduardo San Martin Morote
  28. * @license MIT
  29. */const Mf=typeof document<"u";function HH(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function JVe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&HH(e.default)}const Kn=Object.assign;function lA(e,t){const n={};for(const i in t){const o=t[i];n[i]=Ys(o)?o.map(e):e(o)}return n}const kv=()=>{},Ys=Array.isArray,WH=/#/g,qVe=/&/g,QVe=/\//g,eHe=/=/g,tHe=/\?/g,UH=/\+/g,nHe=/%5B/g,iHe=/%5D/g,ZH=/%5E/g,rHe=/%60/g,GH=/%7B/g,oHe=/%7C/g,YH=/%7D/g,sHe=/%20/g;function FP(e){return encodeURI(""+e).replace(oHe,"|").replace(nHe,"[").replace(iHe,"]")}function aHe(e){return FP(e).replace(GH,"{").replace(YH,"}").replace(ZH,"^")}function AE(e){return FP(e).replace(UH,"%2B").replace(sHe,"+").replace(WH,"%23").replace(qVe,"%26").replace(rHe,"`").replace(GH,"{").replace(YH,"}").replace(ZH,"^")}function lHe(e){return AE(e).replace(eHe,"%3D")}function cHe(e){return FP(e).replace(WH,"%23").replace(tHe,"%3F")}function uHe(e){return e==null?"":cHe(e).replace(QVe,"%2F")}function Fv(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const dHe=/\/$/,fHe=e=>e.replace(dHe,"");function cA(e,t,n="/"){let i,o={},s="",r="";const a=t.indexOf("#");let u=t.indexOf("?");return a<u&&a>=0&&(u=-1),u>-1&&(i=t.slice(0,u),s=t.slice(u+1,a>-1?a:t.length),o=e(s)),a>-1&&(i=i||t.slice(0,a),r=t.slice(a,t.length)),i=vHe(i??t,n),{fullPath:i+(s&&"?")+s+r,path:i,query:o,hash:Fv(r)}}function hHe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function B9(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function pHe(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&Bp(t.matched[i],n.matched[o])&&XH(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Bp(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function XH(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!mHe(e[n],t[n]))return!1;return!0}function mHe(e,t){return Ys(e)?F9(e,t):Ys(t)?F9(t,e):e===t}function F9(e,t){return Ys(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function vHe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),o=i[i.length-1];(o===".."||o===".")&&i.push("");let s=n.length-1,r,a;for(r=0;r<i.length;r++)if(a=i[r],a!==".")if(a==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+i.slice(r).join("/")}const Gl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Vv;(function(e){e.pop="pop",e.push="push"})(Vv||(Vv={}));var Cv;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Cv||(Cv={}));function gHe(e){if(!e)if(Mf){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),fHe(e)}const yHe=/^[^#]+#/;function bHe(e,t){return e.replace(yHe,"#")+t}function kHe(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const pw=()=>({left:window.scrollX,top:window.scrollY});function CHe(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=kHe(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function V9(e,t){return(history.state?history.state.position-t:-1)+e}const EE=new Map;function SHe(e,t){EE.set(e,t)}function wHe(e){const t=EE.get(e);return EE.delete(e),t}let _He=()=>location.protocol+"//"+location.host;function KH(e,t){const{pathname:n,search:i,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,u=o.slice(a);return u[0]!=="/"&&(u="/"+u),B9(u,"")}return B9(n,e)+i+o}function IHe(e,t,n,i){let o=[],s=[],r=null;const a=({state:C})=>{const S=KH(e,location),_=n.value,A=t.value;let y=0;if(C){if(n.value=S,t.value=C,r&&r===_){r=null;return}y=A?C.position-A.position:0}else i(S);o.forEach(d=>{d(n.value,_,{delta:y,type:Vv.pop,direction:y?y>0?Cv.forward:Cv.back:Cv.unknown})})};function u(){r=n.value}function c(C){o.push(C);const S=()=>{const _=o.indexOf(C);_>-1&&o.splice(_,1)};return s.push(S),S}function l(){const{history:C}=window;C.state&&C.replaceState(Kn({},C.state,{scroll:pw()}),"")}function g(){for(const C of s)C();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:u,listen:c,destroy:g}}function H9(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?pw():null}}function xHe(e){const{history:t,location:n}=window,i={value:KH(e,n)},o={value:t.state};o.value||s(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(u,c,l){const g=e.indexOf("#"),C=g>-1?(n.host&&document.querySelector("base")?e:e.slice(g))+u:_He()+e+u;try{t[l?"replaceState":"pushState"](c,"",C),o.value=c}catch(S){console.error(S),n[l?"replace":"assign"](C)}}function r(u,c){const l=Kn({},t.state,H9(o.value.back,u,o.value.forward,!0),c,{position:o.value.position});s(u,l,!0),i.value=u}function a(u,c){const l=Kn({},o.value,t.state,{forward:u,scroll:pw()});s(l.current,l,!0);const g=Kn({},H9(i.value,u,null),{position:l.position+1},c);s(u,g,!1),i.value=u}return{location:i,state:o,push:a,replace:r}}function $He(e){e=gHe(e);const t=xHe(e),n=IHe(e,t.state,t.location,t.replace);function i(s,r=!0){r||n.pauseListeners(),history.go(s)}const o=Kn({location:"",base:e,go:i,createHref:bHe.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function AHe(e){return typeof e=="string"||e&&typeof e=="object"}function JH(e){return typeof e=="string"||typeof e=="symbol"}const qH=Symbol("");var W9;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(W9||(W9={}));function Fp(e,t){return Kn(new Error,{type:e,[qH]:!0},t)}function Ra(e,t){return e instanceof Error&&qH in e&&(t==null||!!(e.type&t))}const U9="[^/]+?",EHe={sensitive:!1,strict:!1,start:!0,end:!0},MHe=/[.+*?^${}()[\]/\\]/g;function THe(e,t){const n=Kn({},EHe,t),i=[];let o=n.start?"^":"";const s=[];for(const c of e){const l=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let g=0;g<c.length;g++){const C=c[g];let S=40+(n.sensitive?.25:0);if(C.type===0)g||(o+="/"),o+=C.value.replace(MHe,"\\$&"),S+=40;else if(C.type===1){const{value:_,repeatable:A,optional:y,regexp:d}=C;s.push({name:_,repeatable:A,optional:y});const v=d||U9;if(v!==U9){S+=10;try{new RegExp(`(${v})`)}catch(f){throw new Error(`Invalid custom RegExp for param "${_}" (${v}): `+f.message)}}let m=A?`((?:${v})(?:/(?:${v}))*)`:`(${v})`;g||(m=y&&c.length<2?`(?:/${m})`:"/"+m),y&&(m+="?"),o+=m,S+=20,y&&(S+=-8),A&&(S+=-20),v===".*"&&(S+=-50)}l.push(S)}i.push(l)}if(n.strict&&n.end){const c=i.length-1;i[c][i[c].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const r=new RegExp(o,n.sensitive?"":"i");function a(c){const l=c.match(r),g={};if(!l)return null;for(let C=1;C<l.length;C++){const S=l[C]||"",_=s[C-1];g[_.name]=S&&_.repeatable?S.split("/"):S}return g}function u(c){let l="",g=!1;for(const C of e){(!g||!l.endsWith("/"))&&(l+="/"),g=!1;for(const S of C)if(S.type===0)l+=S.value;else if(S.type===1){const{value:_,repeatable:A,optional:y}=S,d=_ in c?c[_]:"";if(Ys(d)&&!A)throw new Error(`Provided param "${_}" is an array but it is not repeatable (* or + modifiers)`);const v=Ys(d)?d.join("/"):d;if(!v)if(y)C.length<2&&(l.endsWith("/")?l=l.slice(0,-1):g=!0);else throw new Error(`Missing required param "${_}"`);l+=v}}return l||"/"}return{re:r,score:i,keys:s,parse:a,stringify:u}}function PHe(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function QH(e,t){let n=0;const i=e.score,o=t.score;for(;n<i.length&&n<o.length;){const s=PHe(i[n],o[n]);if(s)return s;n++}if(Math.abs(o.length-i.length)===1){if(Z9(i))return 1;if(Z9(o))return-1}return o.length-i.length}function Z9(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const OHe={type:0,value:""},LHe=/[a-zA-Z0-9_]/;function DHe(e){if(!e)return[[]];if(e==="/")return[[OHe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(S){throw new Error(`ERR (${n})/"${c}": ${S}`)}let n=0,i=n;const o=[];let s;function r(){s&&o.push(s),s=[]}let a=0,u,c="",l="";function g(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:l,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function C(){c+=u}for(;a<e.length;){if(u=e[a++],u==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:u==="/"?(c&&g(),r()):u===":"?(g(),n=1):C();break;case 4:C(),n=i;break;case 1:u==="("?n=2:LHe.test(u)?C():(g(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&a--);break;case 2:u===")"?l[l.length-1]=="\\"?l=l.slice(0,-1)+u:n=3:l+=u;break;case 3:g(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&a--,l="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),g(),r(),o}function NHe(e,t,n){const i=THe(DHe(e.path),n),o=Kn(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function jHe(e,t){const n=[],i=new Map;t=K9({strict:!1,end:!0,sensitive:!1},t);function o(g){return i.get(g)}function s(g,C,S){const _=!S,A=Y9(g);A.aliasOf=S&&S.record;const y=K9(t,g),d=[A];if("alias"in g){const f=typeof g.alias=="string"?[g.alias]:g.alias;for(const p of f)d.push(Y9(Kn({},A,{components:S?S.record.components:A.components,path:p,aliasOf:S?S.record:A})))}let v,m;for(const f of d){const{path:p}=f;if(C&&p[0]!=="/"){const h=C.record.path,b=h[h.length-1]==="/"?"":"/";f.path=C.record.path+(p&&b+p)}if(v=NHe(f,C,y),S?S.alias.push(v):(m=m||v,m!==v&&m.alias.push(v),_&&g.name&&!X9(v)&&r(g.name)),eW(v)&&u(v),A.children){const h=A.children;for(let b=0;b<h.length;b++)s(h[b],v,S&&S.children[b])}S=S||v}return m?()=>{r(m)}:kv}function r(g){if(JH(g)){const C=i.get(g);C&&(i.delete(g),n.splice(n.indexOf(C),1),C.children.forEach(r),C.alias.forEach(r))}else{const C=n.indexOf(g);C>-1&&(n.splice(C,1),g.record.name&&i.delete(g.record.name),g.children.forEach(r),g.alias.forEach(r))}}function a(){return n}function u(g){const C=BHe(g,n);n.splice(C,0,g),g.record.name&&!X9(g)&&i.set(g.record.name,g)}function c(g,C){let S,_={},A,y;if("name"in g&&g.name){if(S=i.get(g.name),!S)throw Fp(1,{location:g});y=S.record.name,_=Kn(G9(C.params,S.keys.filter(m=>!m.optional).concat(S.parent?S.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),g.params&&G9(g.params,S.keys.map(m=>m.name))),A=S.stringify(_)}else if(g.path!=null)A=g.path,S=n.find(m=>m.re.test(A)),S&&(_=S.parse(A),y=S.record.name);else{if(S=C.name?i.get(C.name):n.find(m=>m.re.test(C.path)),!S)throw Fp(1,{location:g,currentLocation:C});y=S.record.name,_=Kn({},C.params,g.params),A=S.stringify(_)}const d=[];let v=S;for(;v;)d.unshift(v.record),v=v.parent;return{name:y,path:A,params:_,matched:d,meta:RHe(d)}}e.forEach(g=>s(g));function l(){n.length=0,i.clear()}return{addRoute:s,resolve:c,removeRoute:r,clearRoutes:l,getRoutes:a,getRecordMatcher:o}}function G9(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function Y9(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:zHe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function zHe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function X9(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function RHe(e){return e.reduce((t,n)=>Kn(t,n.meta),{})}function K9(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function BHe(e,t){let n=0,i=t.length;for(;n!==i;){const s=n+i>>1;QH(e,t[s])<0?i=s:n=s+1}const o=FHe(e);return o&&(i=t.lastIndexOf(o,i-1)),i}function FHe(e){let t=e;for(;t=t.parent;)if(eW(t)&&QH(e,t)===0)return t}function eW({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function VHe(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<i.length;++o){const s=i[o].replace(UH," "),r=s.indexOf("="),a=Fv(r<0?s:s.slice(0,r)),u=r<0?null:Fv(s.slice(r+1));if(a in t){let c=t[a];Ys(c)||(c=t[a]=[c]),c.push(u)}else t[a]=u}return t}function J9(e){let t="";for(let n in e){const i=e[n];if(n=lHe(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ys(i)?i.map(s=>s&&AE(s)):[i&&AE(i)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function HHe(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Ys(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}const WHe=Symbol(""),q9=Symbol(""),mw=Symbol(""),VP=Symbol(""),ME=Symbol("");function wm(){let e=[];function t(i){return e.push(i),()=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ac(e,t,n,i,o,s=r=>r()){const r=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((a,u)=>{const c=C=>{C===!1?u(Fp(4,{from:n,to:t})):C instanceof Error?u(C):AHe(C)?u(Fp(2,{from:t,to:C})):(r&&i.enterCallbacks[o]===r&&typeof C=="function"&&r.push(C),a())},l=s(()=>e.call(i&&i.instances[o],t,n,c));let g=Promise.resolve(l);e.length<3&&(g=g.then(c)),g.catch(C=>u(C))})}function uA(e,t,n,i,o=s=>s()){const s=[];for(const r of e)for(const a in r.components){let u=r.components[a];if(!(t!=="beforeRouteEnter"&&!r.instances[a]))if(HH(u)){const l=(u.__vccOpts||u)[t];l&&s.push(ac(l,n,i,r,a,o))}else{let c=u();s.push(()=>c.then(l=>{if(!l)throw new Error(`Couldn't resolve component "${a}" at "${r.path}"`);const g=JVe(l)?l.default:l;r.mods[a]=l,r.components[a]=g;const S=(g.__vccOpts||g)[t];return S&&ac(S,n,i,r,a,o)()}))}}return s}function Q9(e){const t=Dt(mw),n=Dt(VP),i=P(()=>{const u=ji(e.to);return t.resolve(u)}),o=P(()=>{const{matched:u}=i.value,{length:c}=u,l=u[c-1],g=n.matched;if(!l||!g.length)return-1;const C=g.findIndex(Bp.bind(null,l));if(C>-1)return C;const S=e7(u[c-2]);return c>1&&e7(l)===S&&g[g.length-1].path!==S?g.findIndex(Bp.bind(null,u[c-2])):C}),s=P(()=>o.value>-1&&YHe(n.params,i.value.params)),r=P(()=>o.value>-1&&o.value===n.matched.length-1&&XH(n.params,i.value.params));function a(u={}){return GHe(u)?t[ji(e.replace)?"replace":"push"](ji(e.to)).catch(kv):Promise.resolve()}return{route:i,href:P(()=>i.value.href),isActive:s,isExactActive:r,navigate:a}}const UHe=se({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Q9,setup(e,{slots:t}){const n=it(Q9(e)),{options:i}=Dt(mw),o=P(()=>({[t7(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[t7(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:Wn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),ZHe=UHe;function GHe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function YHe(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(!Ys(o)||o.length!==i.length||i.some((s,r)=>s!==o[r]))return!1}return!0}function e7(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const t7=(e,t,n)=>e??t??n,XHe=se({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=Dt(ME),o=P(()=>e.route||i.value),s=Dt(q9,0),r=P(()=>{let c=ji(s);const{matched:l}=o.value;let g;for(;(g=l[c])&&!g.components;)c++;return c}),a=P(()=>o.value.matched[r.value]);cn(q9,P(()=>r.value+1)),cn(WHe,a),cn(ME,o);const u=he();return gt(()=>[u.value,a.value,e.name],([c,l,g],[C,S,_])=>{l&&(l.instances[g]=c,S&&S!==l&&c&&c===C&&(l.leaveGuards.size||(l.leaveGuards=S.leaveGuards),l.updateGuards.size||(l.updateGuards=S.updateGuards))),c&&l&&(!S||!Bp(l,S)||!C)&&(l.enterCallbacks[g]||[]).forEach(A=>A(c))},{flush:"post"}),()=>{const c=o.value,l=e.name,g=a.value,C=g&&g.components[l];if(!C)return n7(n.default,{Component:C,route:c});const S=g.props[l],_=S?S===!0?c.params:typeof S=="function"?S(c):S:null,y=Wn(C,Kn({},_,t,{onVnodeUnmounted:d=>{d.component.isUnmounted&&(g.instances[l]=null)},ref:u}));return n7(n.default,{Component:y,route:c})||y}}});function n7(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const tW=XHe;function KHe(e){const t=jHe(e.routes,e),n=e.parseQuery||VHe,i=e.stringifyQuery||J9,o=e.history,s=wm(),r=wm(),a=wm(),u=Gp(Gl);let c=Gl;Mf&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=lA.bind(null,Me=>""+Me),g=lA.bind(null,uHe),C=lA.bind(null,Fv);function S(Me,ge){let Se,fe;return JH(Me)?(Se=t.getRecordMatcher(Me),fe=ge):fe=Me,t.addRoute(fe,Se)}function _(Me){const ge=t.getRecordMatcher(Me);ge&&t.removeRoute(ge)}function A(){return t.getRoutes().map(Me=>Me.record)}function y(Me){return!!t.getRecordMatcher(Me)}function d(Me,ge){if(ge=Kn({},ge||u.value),typeof Me=="string"){const Z=cA(n,Me,ge.path),ee=t.resolve({path:Z.path},ge),ce=o.createHref(Z.fullPath);return Kn(Z,ee,{params:C(ee.params),hash:Fv(Z.hash),redirectedFrom:void 0,href:ce})}let Se;if(Me.path!=null)Se=Kn({},Me,{path:cA(n,Me.path,ge.path).path});else{const Z=Kn({},Me.params);for(const ee in Z)Z[ee]==null&&delete Z[ee];Se=Kn({},Me,{params:g(Z)}),ge.params=g(ge.params)}const fe=t.resolve(Se,ge),pe=Me.hash||"";fe.params=l(C(fe.params));const je=hHe(i,Kn({},Me,{hash:aHe(pe),path:fe.path})),Y=o.createHref(je);return Kn({fullPath:je,hash:pe,query:i===J9?HHe(Me.query):Me.query||{}},fe,{redirectedFrom:void 0,href:Y})}function v(Me){return typeof Me=="string"?cA(n,Me,u.value.path):Kn({},Me)}function m(Me,ge){if(c!==Me)return Fp(8,{from:ge,to:Me})}function f(Me){return b(Me)}function p(Me){return f(Kn(v(Me),{replace:!0}))}function h(Me){const ge=Me.matched[Me.matched.length-1];if(ge&&ge.redirect){const{redirect:Se}=ge;let fe=typeof Se=="function"?Se(Me):Se;return typeof fe=="string"&&(fe=fe.includes("?")||fe.includes("#")?fe=v(fe):{path:fe},fe.params={}),Kn({query:Me.query,hash:Me.hash,params:fe.path!=null?{}:Me.params},fe)}}function b(Me,ge){const Se=c=d(Me),fe=u.value,pe=Me.state,je=Me.force,Y=Me.replace===!0,Z=h(Se);if(Z)return b(Kn(v(Z),{state:typeof Z=="object"?Kn({},pe,Z.state):pe,force:je,replace:Y}),ge||Se);const ee=Se;ee.redirectedFrom=ge;let ce;return!je&&pHe(i,fe,Se)&&(ce=Fp(16,{to:ee,from:fe}),ae(fe,fe,!0,!1)),(ce?Promise.resolve(ce):$(ee,fe)).catch(xe=>Ra(xe)?Ra(xe,2)?xe:q(xe):U(xe,ee,fe)).then(xe=>{if(xe){if(Ra(xe,2))return b(Kn({replace:Y},v(xe.to),{state:typeof xe.to=="object"?Kn({},pe,xe.to.state):pe,force:je}),ge||ee)}else xe=N(ee,fe,!0,Y,pe);return E(ee,fe,xe),xe})}function w(Me,ge){const Se=m(Me,ge);return Se?Promise.reject(Se):Promise.resolve()}function k(Me){const ge=te.values().next().value;return ge&&typeof ge.runWithContext=="function"?ge.runWithContext(Me):Me()}function $(Me,ge){let Se;const[fe,pe,je]=JHe(Me,ge);Se=uA(fe.reverse(),"beforeRouteLeave",Me,ge);for(const Z of fe)Z.leaveGuards.forEach(ee=>{Se.push(ac(ee,Me,ge))});const Y=w.bind(null,Me,ge);return Se.push(Y),$e(Se).then(()=>{Se=[];for(const Z of s.list())Se.push(ac(Z,Me,ge));return Se.push(Y),$e(Se)}).then(()=>{Se=uA(pe,"beforeRouteUpdate",Me,ge);for(const Z of pe)Z.updateGuards.forEach(ee=>{Se.push(ac(ee,Me,ge))});return Se.push(Y),$e(Se)}).then(()=>{Se=[];for(const Z of je)if(Z.beforeEnter)if(Ys(Z.beforeEnter))for(const ee of Z.beforeEnter)Se.push(ac(ee,Me,ge));else Se.push(ac(Z.beforeEnter,Me,ge));return Se.push(Y),$e(Se)}).then(()=>(Me.matched.forEach(Z=>Z.enterCallbacks={}),Se=uA(je,"beforeRouteEnter",Me,ge,k),Se.push(Y),$e(Se))).then(()=>{Se=[];for(const Z of r.list())Se.push(ac(Z,Me,ge));return Se.push(Y),$e(Se)}).catch(Z=>Ra(Z,8)?Z:Promise.reject(Z))}function E(Me,ge,Se){a.list().forEach(fe=>k(()=>fe(Me,ge,Se)))}function N(Me,ge,Se,fe,pe){const je=m(Me,ge);if(je)return je;const Y=ge===Gl,Z=Mf?history.state:{};Se&&(fe||Y?o.replace(Me.fullPath,Kn({scroll:Y&&Z&&Z.scroll},pe)):o.push(Me.fullPath,pe)),u.value=Me,ae(Me,ge,Se,Y),q()}let j;function z(){j||(j=o.listen((Me,ge,Se)=>{if(!Ie.listening)return;const fe=d(Me),pe=h(fe);if(pe){b(Kn(pe,{replace:!0}),fe).catch(kv);return}c=fe;const je=u.value;Mf&&SHe(V9(je.fullPath,Se.delta),pw()),$(fe,je).catch(Y=>Ra(Y,12)?Y:Ra(Y,2)?(b(Y.to,fe).then(Z=>{Ra(Z,20)&&!Se.delta&&Se.type===Vv.pop&&o.go(-1,!1)}).catch(kv),Promise.reject()):(Se.delta&&o.go(-Se.delta,!1),U(Y,fe,je))).then(Y=>{Y=Y||N(fe,je,!1),Y&&(Se.delta&&!Ra(Y,8)?o.go(-Se.delta,!1):Se.type===Vv.pop&&Ra(Y,20)&&o.go(-1,!1)),E(fe,je,Y)}).catch(kv)}))}let V=wm(),W=wm(),H;function U(Me,ge,Se){q(Me);const fe=W.list();return fe.length?fe.forEach(pe=>pe(Me,ge,Se)):console.error(Me),Promise.reject(Me)}function Q(){return H&&u.value!==Gl?Promise.resolve():new Promise((Me,ge)=>{V.add([Me,ge])})}function q(Me){return H||(H=!Me,z(),V.list().forEach(([ge,Se])=>Me?Se(Me):ge()),V.reset()),Me}function ae(Me,ge,Se,fe){const{scrollBehavior:pe}=e;if(!Mf||!pe)return Promise.resolve();const je=!Se&&wHe(V9(Me.fullPath,0))||(fe||!Se)&&history.state&&history.state.scroll||null;return fn().then(()=>pe(Me,ge,je)).then(Y=>Y&&CHe(Y)).catch(Y=>U(Y,Me,ge))}const ne=Me=>o.go(Me);let be;const te=new Set,Ie={currentRoute:u,listening:!0,addRoute:S,removeRoute:_,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:A,resolve:d,options:e,push:f,replace:p,go:ne,back:()=>ne(-1),forward:()=>ne(1),beforeEach:s.add,beforeResolve:r.add,afterEach:a.add,onError:W.add,isReady:Q,install(Me){const ge=this;Me.component("RouterLink",ZHe),Me.component("RouterView",tW),Me.config.globalProperties.$router=ge,Object.defineProperty(Me.config.globalProperties,"$route",{enumerable:!0,get:()=>ji(u)}),Mf&&!be&&u.value===Gl&&(be=!0,f(o.location).catch(pe=>{}));const Se={};for(const pe in Gl)Object.defineProperty(Se,pe,{get:()=>u.value[pe],enumerable:!0});Me.provide(mw,ge),Me.provide(VP,CS(Se)),Me.provide(ME,u);const fe=Me.unmount;te.add(Me),Me.unmount=function(){te.delete(Me),te.size<1&&(c=Gl,j&&j(),j=null,u.value=Gl,be=!1,H=!1),fe()}}};function $e(Me){return Me.reduce((ge,Se)=>ge.then(()=>k(Se)),Promise.resolve())}return Ie}function JHe(e,t){const n=[],i=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let r=0;r<s;r++){const a=t.matched[r];a&&(e.matched.find(c=>Bp(c,a))?i.push(a):n.push(a));const u=e.matched[r];u&&(t.matched.find(c=>Bp(c,u))||o.push(u))}return[n,i,o]}function ust(){return Dt(mw)}function dst(e){return Dt(VP)}const jn=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},qHe=se({components:{RouterView:tW},setup(){const e=he(!1),t=he(""),n=he(!1),{helper:i}=Dt("$global");let o=()=>{};Yt(()=>{i.$bus.on("set-loading",r=>{setTimeout(()=>{e.value=r},r?20:1e3)}),i.$bus.on("set-mask",({title:r,callback:a})=>{t.value=r,n.value=!0,o=a})});const s=()=>{t.value="",n.value=!1,o()};return ei(()=>{i.$bus.off("set-loading"),i.$bus.off("set-mask")}),{reload:s,isLoading:e,maskTitle:t,showMask:n}}});function QHe(e,t,n,i,o,s){const r=Pe("RouterView"),a=Pe("a-spin"),u=Pe("a-modal");return R(),X(ft,null,[O(r),gi(B("section",null,[O(a,{dot:""})],512),[[ki,e.isLoading]]),O(u,{visible:e.showMask,"onUpdate:visible":t[0]||(t[0]=c=>e.showMask=c),"hide-cancel":!0,simple:!0,"mask-closable":!1,"ok-text":"重试",title:e.maskTitle,onOk:e.reload},null,8,["visible","title","onOk"])],64)}const eWe=jn(qHe,[["render",QHe],["__scopeId","data-v-0dc9705d"]]),tWe="modulepreload",nWe=function(e){return"/"+e},i7={},Gi=function(t,n,i){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=nWe(s),s in i7)return;i7[s]=!0;const r=s.endsWith(".css"),a=r?'[rel="stylesheet"]':"";if(!!i)for(let l=o.length-1;l>=0;l--){const g=o[l];if(g.href===s&&(!r||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const c=document.createElement("link");if(c.rel=r?"stylesheet":tWe,r||(c.as="script",c.crossOrigin=""),c.href=s,document.head.appendChild(c),r)return new Promise((l,g)=>{c.addEventListener("load",l),c.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())},iWe="/assets/right-9f585e4b.svg";const rWe=se({setup(){const e=he(!1),t=he(!1),{helper:n}=Dt("$global");return{data:he([{img:"https://szwl.harix.iamidata.com/static/img/图像生成10.e808b4aa.svg",title:"游戏CG风格",content:"生成游戏CG风格图片",sug:"杰作,最高品质,游戏CG风格,细腻的皮肤,幻想,超详细,复杂的背景,HDR,_________(杰作,最高品质,游戏CG风格,细腻的皮肤,幻想,超详细,复杂的背景,HDR,身材高挑美丽的女性精灵在林中漫步)"},{img:"https://szwl.harix.iamidata.com/static/img/%E5%9B%BE%E5%83%8F%E7%94%9F%E6%88%901.3e53041f.svg",title:"水墨画风格",content:"生成水墨画风格图片",sug:"杰作,最高品质,水墨画,_________(杰作,最高品质,水墨画,一群文人墨客泛舟于江上)"},{img:"https://szwl.harix.iamidata.com/static/img/%E5%9B%BE%E5%83%8F%E7%94%9F%E6%88%908.fbd859d1.svg",title:"皮克斯风格",content:"生成皮克斯风格图片",sug:"杰作,最高品质,皮克斯风格,_______(杰作,最高品质,皮克斯风格,一对在游乐园玩耍的母女)"},{img:"https://szwl.harix.iamidata.com/static/img/%E5%9B%BE%E5%83%8F%E7%94%9F%E6%88%905.d0507cb6.svg",title:"照片/摄影风格",content:"生成照片/摄影风格图片",sug:"照片,高品质,最佳画质,HDR,UHD,8k,_______(照片,高品质,最佳画质,HDR,UHD,8k,在练芭蕾的少女)"},{img:"https://szwl.harix.iamidata.com/static/img/%E5%9B%BE%E5%83%8F%E7%94%9F%E6%88%904.a54bb126.svg",title:"水彩画风格",content:"生成水彩画风格图片",sug:"杰作,最高品质,水彩画,________(杰作,最高品质,水彩画,牡丹花)"},{img:"https://szwl.harix.iamidata.com/static/img/%E5%9B%BE%E5%83%8F%E7%94%9F%E6%88%906.0f9117f2.svg",title:"动漫风格",content:"生成动漫风格图片",sug:"杰作,最高品质,动漫,彩色,细腻,_______(杰作,最高品质,动漫,彩色,细腻,一个看书的少女)"},{img:"https://szwl.harix.iamidata.com/static/img/%E5%9B%BE%E5%83%8F%E7%94%9F%E6%88%904.a54bb126.svg",title:"水彩画风格",content:"生成水彩画风格图片",sug:"杰作,最高品质,水彩画,________(杰作,最高品质,水彩画,牡丹花)"},{img:"https://szwl.harix.iamidata.com/static/img/%E5%9B%BE%E5%83%8F%E7%94%9F%E6%88%906.0f9117f2.svg",title:"动漫风格",content:"生成动漫风格图片",sug:"杰作,最高品质,动漫,彩色,细腻,_______(杰作,最高品质,动漫,彩色,细腻,一个看书的少女)"}]),openRight:e,openSearch:t,handleClick:s=>{n.$bus.emit("set-input",s)}}}}),oWe={key:1},sWe={class:"button"},aWe=["onClick"],lWe=["src"];function cWe(e,t,n,i,o,s){const r=Pe("a-tooltip"),a=Pe("icon-search"),u=Pe("a-input"),c=Pe("icon-close"),l=PS("outside");return R(),X("main",{class:G({open:e.openRight})},[e.openRight?Re("",!0):(R(),We(r,{key:0,content:"数智库",onClick:t[0]||(t[0]=()=>{e.openRight=!0})},{default:Ve(()=>t[3]||(t[3]=[B("section",null,[B("img",{src:iWe,width:"18"})],-1)])),_:1})),e.openRight?(R(),X("div",oWe,[B("header",null,[t[4]||(t[4]=B("p",null,"数智库",-1)),gi((R(),X("section",null,[B("div",{class:G({input:!0,open:e.openSearch})},[O(u,{style:{width:"100%",height:"38px",borderRadius:"19px",fontSize:"12px"},placeholder:"搜索指令或关键词","allow-clear":""},{prefix:Ve(()=>[O(a)]),_:1})],2),O(r,{content:"搜索"},{default:Ve(()=>[B("div",{class:G({button:!0,"button-hide":e.openSearch}),onClick:t[1]||(t[1]=()=>{e.openSearch=!0})},[O(a,{size:"large"})],2)]),_:1}),O(r,{content:"关闭",onClick:t[2]||(t[2]=()=>{e.openRight=!1})},{default:Ve(()=>[B("div",sWe,[O(c,{size:"large"})])]),_:1})])),[[l,()=>{e.openSearch=!1}]])]),B("section",null,[(R(!0),X(ft,null,dn(e.data,(g,C)=>(R(),X("div",{key:C,onClick:S=>e.handleClick(g.sug)},[B("header",null,[B("img",{src:g.img},null,8,lWe),B("p",null,tt(g.title),1)]),B("p",null,tt(g.content),1)],8,aWe))),128))])])):Re("",!0)],2)}const uWe=jn(rWe,[["render",cWe],["__scopeId","data-v-8c1dac36"]]);const dWe=se({components:{},props:["showFeedback"],setup(e,{emit:t}){const n=he([]),i=he([]),o=he([]),s=he("");return{feedbackValue1:n,feedbackValue2:i,feedbackValue3:o,feedbackValue4:s,handleOk:()=>(t("handle-ok"),!1),handleCancel:()=>(t("handle-cancel"),!1)}}});function fWe(e,t,n,i,o,s){const r=Pe("a-checkbox"),a=Pe("a-grid-item"),u=Pe("a-grid"),c=Pe("a-checkbox-group"),l=Pe("a-textarea"),g=Pe("a-modal");return R(),We(g,{visible:e.showFeedback,"onUpdate:visible":t[4]||(t[4]=C=>e.showFeedback=C),onBeforeOk:e.handleOk,onBeforeCancel:e.handleCancel,okText:"提交"},{title:Ve(()=>t[5]||(t[5]=[pt(" 进一步反馈 ")])),default:Ve(()=>[t[16]||(t[16]=B("p",{class:"feedback-title"},"理解问题有误",-1)),O(c,{modelValue:e.feedbackValue1,"onUpdate:modelValue":t[0]||(t[0]=C=>e.feedbackValue1=C),class:"feedback-content"},{default:Ve(()=>[O(u,{cols:2,colGap:10,rowGap:8},{default:Ve(()=>[O(a,null,{default:Ve(()=>[O(r,{value:"1"},{default:Ve(()=>t[6]||(t[6]=[pt("没能理解指令")])),_:1})]),_:1}),O(a,null,{default:Ve(()=>[O(r,{value:"2"},{default:Ve(()=>t[7]||(t[7]=[pt("未发现问题中的错误")])),_:1})]),_:1}),O(a,null,{default:Ve(()=>[O(r,{value:"3"},{default:Ve(()=>t[8]||(t[8]=[pt("无法理解上下文")])),_:1})]),_:1}),O(a,null,{default:Ve(()=>[O(r,{value:"4"},{default:Ve(()=>t[9]||(t[9]=[pt("答非所问")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),t[17]||(t[17]=B("p",{class:"feedback-title"},"回答不佳",-1)),O(c,{modelValue:e.feedbackValue2,"onUpdate:modelValue":t[1]||(t[1]=C=>e.feedbackValue2=C),class:"feedback-content"},{default:Ve(()=>[O(u,{cols:2,colGap:10,rowGap:8},{default:Ve(()=>[O(a,null,{default:Ve(()=>[O(r,{value:"1"},{default:Ve(()=>t[10]||(t[10]=[pt("有事实性错误")])),_:1})]),_:1}),O(a,null,{default:Ve(()=>[O(r,{value:"2"},{default:Ve(()=>t[11]||(t[11]=[pt("回答重复")])),_:1})]),_:1}),O(a,null,{default:Ve(()=>[O(r,{value:"3"},{default:Ve(()=>t[12]||(t[12]=[pt("格式错误")])),_:1})]),_:1}),O(a,null,{default:Ve(()=>[O(r,{value:"4"},{default:Ve(()=>t[13]||(t[13]=[pt("对我没帮助")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),t[18]||(t[18]=B("p",{class:"feedback-title"},"有害信息",-1)),O(c,{modelValue:e.feedbackValue3,"onUpdate:modelValue":t[2]||(t[2]=C=>e.feedbackValue3=C),class:"feedback-content"},{default:Ve(()=>[O(u,{cols:2,colGap:10,rowGap:8},{default:Ve(()=>[O(a,null,{default:Ve(()=>[O(r,{value:"1"},{default:Ve(()=>t[14]||(t[14]=[pt("敏感/有害回复")])),_:1})]),_:1}),O(a,null,{default:Ve(()=>[O(r,{value:"2"},{default:Ve(()=>t[15]||(t[15]=[pt("存在价值观问题")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),t[19]||(t[19]=B("p",{class:"feedback-title"},"你认为更理想的答复是什么?",-1)),O(l,{modelValue:e.feedbackValue4,"onUpdate:modelValue":t[3]||(t[3]=C=>e.feedbackValue4=C),style:{width:"100%",height:"100px",border:"1px solid rgba(187, 187, 187, 1)",background:"rgba(0,0,0,0)"},"auto-size":"",placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),_:1},8,["visible","onBeforeOk","onBeforeCancel"])}const hWe=jn(dWe,[["render",fWe],["__scopeId","data-v-9e8cf9e6"]]);function HP(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let pf=HP();function nW(e){pf=e}const iW=/[&<>"']/,pWe=new RegExp(iW.source,"g"),rW=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,mWe=new RegExp(rW.source,"g"),vWe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},r7=e=>vWe[e];function Bo(e,t){if(t){if(iW.test(e))return e.replace(pWe,r7)}else if(rW.test(e))return e.replace(mWe,r7);return e}const gWe=/(^|[^\[])\^/g;function ii(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const i={replace:(o,s)=>{let r=typeof s=="string"?s:s.source;return r=r.replace(gWe,"$1"),n=n.replace(o,r),i},getRegex:()=>new RegExp(n,t)};return i}function o7(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Sv={exec:()=>null};function s7(e,t){const n=e.replace(/\|/g,(s,r,a)=>{let u=!1,c=r;for(;--c>=0&&a[c]==="\\";)u=!u;return u?"|":" |"}),i=n.split(/ \|/);let o=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;o<i.length;o++)i[o]=i[o].trim().replace(/\\\|/g,"|");return i}function _m(e,t,n){const i=e.length;if(i===0)return"";let o=0;for(;o<i;){const s=e.charAt(i-o-1);if(s===t&&!n)o++;else if(s!==t&&n)o++;else break}return e.slice(0,i-o)}function yWe(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return-1}function a7(e,t,n,i){const o=t.href,s=t.title?Bo(t.title):null,r=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){i.state.inLink=!0;const a={type:"link",raw:n,href:o,title:s,text:r,tokens:i.inlineTokens(r)};return i.state.inLink=!1,a}return{type:"image",raw:n,href:o,title:s,text:Bo(r)}}function bWe(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const i=n[1];return t.split(`
  30. `).map(o=>{const s=o.match(/^\s+/);if(s===null)return o;const[r]=s;return r.length>=i.length?o.slice(i.length):o}).join(`
  31. `)}class dC{constructor(t){Wt(this,"options");Wt(this,"rules");Wt(this,"lexer");this.options=t||pf}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const i=n[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:_m(i,`
  32. `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const i=n[0],o=bWe(i,n[3]||"");return{type:"code",raw:i,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:o}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let i=n[2].trim();if(/#$/.test(i)){const o=_m(i,"#");(this.options.pedantic||!o||/ $/.test(o))&&(i=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:_m(n[0],`
  33. `)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let i=_m(n[0],`
  34. `).split(`
  35. `),o="",s="";const r=[];for(;i.length>0;){let a=!1;const u=[];let c;for(c=0;c<i.length;c++)if(/^ {0,3}>/.test(i[c]))u.push(i[c]),a=!0;else if(!a)u.push(i[c]);else break;i=i.slice(c);const l=u.join(`
  36. `),g=l.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
  37. $1`).replace(/^ {0,3}>[ \t]?/gm,"");o=o?`${o}
  38. ${l}`:l,s=s?`${s}
  39. ${g}`:g;const C=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(g,r,!0),this.lexer.state.top=C,i.length===0)break;const S=r[r.length-1];if((S==null?void 0:S.type)==="code")break;if((S==null?void 0:S.type)==="blockquote"){const _=S,A=_.raw+`
  40. `+i.join(`
  41. `),y=this.blockquote(A);r[r.length-1]=y,o=o.substring(0,o.length-_.raw.length)+y.raw,s=s.substring(0,s.length-_.text.length)+y.text;break}else if((S==null?void 0:S.type)==="list"){const _=S,A=_.raw+`
  42. `+i.join(`
  43. `),y=this.list(A);r[r.length-1]=y,o=o.substring(0,o.length-S.raw.length)+y.raw,s=s.substring(0,s.length-_.raw.length)+y.raw,i=A.substring(r[r.length-1].raw.length).split(`
  44. `);continue}}return{type:"blockquote",raw:o,tokens:r,text:s}}}list(t){let n=this.rules.block.list.exec(t);if(n){let i=n[1].trim();const o=i.length>1,s={type:"list",raw:"",ordered:o,start:o?+i.slice(0,-1):"",loose:!1,items:[]};i=o?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=o?i:"[*+-]");const r=new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`);let a=!1;for(;t;){let u=!1,c="",l="";if(!(n=r.exec(t))||this.rules.block.hr.test(t))break;c=n[0],t=t.substring(c.length);let g=n[2].split(`
  45. `,1)[0].replace(/^\t+/,d=>" ".repeat(3*d.length)),C=t.split(`
  46. `,1)[0],S=!g.trim(),_=0;if(this.options.pedantic?(_=2,l=g.trimStart()):S?_=n[1].length+1:(_=n[2].search(/[^ ]/),_=_>4?1:_,l=g.slice(_),_+=n[1].length),S&&/^[ \t]*$/.test(C)&&(c+=C+`
  47. `,t=t.substring(C.length+1),u=!0),!u){const d=new RegExp(`^ {0,${Math.min(3,_-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),v=new RegExp(`^ {0,${Math.min(3,_-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),m=new RegExp(`^ {0,${Math.min(3,_-1)}}(?:\`\`\`|~~~)`),f=new RegExp(`^ {0,${Math.min(3,_-1)}}#`),p=new RegExp(`^ {0,${Math.min(3,_-1)}}<(?:[a-z].*>|!--)`,"i");for(;t;){const h=t.split(`
  48. `,1)[0];let b;if(C=h,this.options.pedantic?(C=C.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),b=C):b=C.replace(/\t/g," "),m.test(C)||f.test(C)||p.test(C)||d.test(C)||v.test(C))break;if(b.search(/[^ ]/)>=_||!C.trim())l+=`
  49. `+b.slice(_);else{if(S||g.replace(/\t/g," ").search(/[^ ]/)>=4||m.test(g)||f.test(g)||v.test(g))break;l+=`
  50. `+C}!S&&!C.trim()&&(S=!0),c+=h+`
  51. `,t=t.substring(h.length+1),g=b.slice(_)}}s.loose||(a?s.loose=!0:/\n[ \t]*\n[ \t]*$/.test(c)&&(a=!0));let A=null,y;this.options.gfm&&(A=/^\[[ xX]\] /.exec(l),A&&(y=A[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:c,task:!!A,checked:y,loose:!1,text:l,tokens:[]}),s.raw+=c}s.items[s.items.length-1].raw=s.items[s.items.length-1].raw.trimEnd(),s.items[s.items.length-1].text=s.items[s.items.length-1].text.trimEnd(),s.raw=s.raw.trimEnd();for(let u=0;u<s.items.length;u++)if(this.lexer.state.top=!1,s.items[u].tokens=this.lexer.blockTokens(s.items[u].text,[]),!s.loose){const c=s.items[u].tokens.filter(g=>g.type==="space"),l=c.length>0&&c.some(g=>/\n.*\n/.test(g.raw));s.loose=l}if(s.loose)for(let u=0;u<s.items.length;u++)s.items[u].loose=!0;return s}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const i=n[1].toLowerCase().replace(/\s+/g," "),o=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:i,raw:n[0],href:o,title:s}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const i=s7(n[1]),o=n[2].replace(/^\||\| *$/g,"").split("|"),s=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
  52. `):[],r={type:"table",raw:n[0],header:[],align:[],rows:[]};if(i.length===o.length){for(const a of o)/^ *-+: *$/.test(a)?r.align.push("right"):/^ *:-+: *$/.test(a)?r.align.push("center"):/^ *:-+ *$/.test(a)?r.align.push("left"):r.align.push(null);for(let a=0;a<i.length;a++)r.header.push({text:i[a],tokens:this.lexer.inline(i[a]),header:!0,align:r.align[a]});for(const a of s)r.rows.push(s7(a,r.header.length).map((u,c)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:r.align[c]})));return r}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const i=n[1].charAt(n[1].length-1)===`
  53. `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:i,tokens:this.lexer.inline(i)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:Bo(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const i=n[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;const r=_m(i.slice(0,-1),"\\");if((i.length-r.length)%2===0)return}else{const r=yWe(n[2],"()");if(r>-1){const u=(n[0].indexOf("!")===0?5:4)+n[1].length+r;n[2]=n[2].substring(0,r),n[0]=n[0].substring(0,u).trim(),n[3]=""}}let o=n[2],s="";if(this.options.pedantic){const r=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);r&&(o=r[1],s=r[3])}else s=n[3]?n[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(this.options.pedantic&&!/>$/.test(i)?o=o.slice(1):o=o.slice(1,-1)),a7(n,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){const o=(i[2]||i[1]).replace(/\s+/g," "),s=n[o.toLowerCase()];if(!s){const r=i[0].charAt(0);return{type:"text",raw:r,text:r}}return a7(i,s,i[0],this.lexer)}}emStrong(t,n,i=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!o||o[3]&&i.match(/[\p{L}\p{N}]/u))return;if(!(o[1]||o[2]||"")||!i||this.rules.inline.punctuation.exec(i)){const r=[...o[0]].length-1;let a,u,c=r,l=0;const g=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,n=n.slice(-1*t.length+r);(o=g.exec(n))!=null;){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(u=[...a].length,o[3]||o[4]){c+=u;continue}else if((o[5]||o[6])&&r%3&&!((r+u)%3)){l+=u;continue}if(c-=u,c>0)continue;u=Math.min(u,u+c+l);const C=[...o[0]][0].length,S=t.slice(0,r+o.index+C+u);if(Math.min(r,u)%2){const A=S.slice(1,-1);return{type:"em",raw:S,text:A,tokens:this.lexer.inlineTokens(A)}}const _=S.slice(2,-2);return{type:"strong",raw:S,text:_,tokens:this.lexer.inlineTokens(_)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let i=n[2].replace(/\n/g," ");const o=/[^ ]/.test(i),s=/^ /.test(i)&&/ $/.test(i);return o&&s&&(i=i.substring(1,i.length-1)),i=Bo(i,!0),{type:"codespan",raw:n[0],text:i}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let i,o;return n[2]==="@"?(i=Bo(n[1]),o="mailto:"+i):(i=Bo(n[1]),o=i),{type:"link",raw:n[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let n;if(n=this.rules.inline.url.exec(t)){let o,s;if(n[2]==="@")o=Bo(n[0]),s="mailto:"+o;else{let r;do r=n[0],n[0]=((i=this.rules.inline._backpedal.exec(n[0]))==null?void 0:i[0])??"";while(r!==n[0]);o=Bo(n[0]),n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:o,href:s,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let i;return this.lexer.state.inRawBlock?i=n[0]:i=Bo(n[0]),{type:"text",raw:n[0],text:i}}}}const kWe=/^(?:[ \t]*(?:\n|$))+/,CWe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,SWe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,S1=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,wWe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,oW=/(?:[*+-]|\d{1,9}[.)])/,sW=ii(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,oW).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),WP=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,_We=/^[^\n]+/,UP=/(?!\s*\])(?:\\.|[^\[\]\\])+/,IWe=ii(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",UP).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),xWe=ii(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,oW).getRegex(),vw="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ZP=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,$We=ii("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ZP).replace("tag",vw).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),aW=ii(WP).replace("hr",S1).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vw).getRegex(),AWe=ii(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",aW).getRegex(),GP={blockquote:AWe,code:CWe,def:IWe,fences:SWe,heading:wWe,hr:S1,html:$We,lheading:sW,list:xWe,newline:kWe,paragraph:aW,table:Sv,text:_We},l7=ii("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",S1).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vw).getRegex(),EWe={...GP,table:l7,paragraph:ii(WP).replace("hr",S1).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",l7).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vw).getRegex()},MWe={...GP,html:ii(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ZP).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Sv,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ii(WP).replace("hr",S1).replace("heading",` *#{1,6} *[^
  54. ]`).replace("lheading",sW).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},lW=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,TWe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,cW=/^( {2,}|\\)\n(?!\s*$)/,PWe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,w1="\\p{P}\\p{S}",OWe=ii(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,w1).getRegex(),LWe=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,DWe=ii(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,w1).getRegex(),NWe=ii("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,w1).getRegex(),jWe=ii("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,w1).getRegex(),zWe=ii(/\\([punct])/,"gu").replace(/punct/g,w1).getRegex(),RWe=ii(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),BWe=ii(ZP).replace("(?:-->|$)","-->").getRegex(),FWe=ii("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",BWe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),fC=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,VWe=ii(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",fC).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),uW=ii(/^!?\[(label)\]\[(ref)\]/).replace("label",fC).replace("ref",UP).getRegex(),dW=ii(/^!?\[(ref)\](?:\[\])?/).replace("ref",UP).getRegex(),HWe=ii("reflink|nolink(?!\\()","g").replace("reflink",uW).replace("nolink",dW).getRegex(),YP={_backpedal:Sv,anyPunctuation:zWe,autolink:RWe,blockSkip:LWe,br:cW,code:TWe,del:Sv,emStrongLDelim:DWe,emStrongRDelimAst:NWe,emStrongRDelimUnd:jWe,escape:lW,link:VWe,nolink:dW,punctuation:OWe,reflink:uW,reflinkSearch:HWe,tag:FWe,text:PWe,url:Sv},WWe={...YP,link:ii(/^!?\[(label)\]\((.*?)\)/).replace("label",fC).getRegex(),reflink:ii(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fC).getRegex()},TE={...YP,escape:ii(lW).replace("])","~|])").getRegex(),url:ii(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},UWe={...TE,br:ii(cW).replace("{2,}","*").getRegex(),text:ii(TE.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ty={normal:GP,gfm:EWe,pedantic:MWe},Im={normal:YP,gfm:TE,breaks:UWe,pedantic:WWe};class rs{constructor(t){Wt(this,"tokens");Wt(this,"options");Wt(this,"state");Wt(this,"tokenizer");Wt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||pf,this.options.tokenizer=this.options.tokenizer||new dC,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:Ty.normal,inline:Im.normal};this.options.pedantic?(n.block=Ty.pedantic,n.inline=Im.pedantic):this.options.gfm&&(n.block=Ty.gfm,this.options.breaks?n.inline=Im.breaks:n.inline=Im.gfm),this.tokenizer.rules=n}static get rules(){return{block:Ty,inline:Im}}static lex(t,n){return new rs(n).lex(t)}static lexInline(t,n){return new rs(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
  55. `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const i=this.inlineQueue[n];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],i=!1){this.options.pedantic&&(t=t.replace(/\t/g," ").replace(/^ +$/gm,""));let o,s,r;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(o=a.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))){if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length),o.raw.length===1&&n.length>0?n[n.length-1].raw+=`
  56. `:n.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
  57. `+o.raw,s.text+=`
  58. `+o.text,this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
  59. `+o.raw,s.text+=`
  60. `+o.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),n.push(o);continue}if(r=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const u=t.slice(1);let c;this.options.extensions.startBlock.forEach(l=>{c=l.call({lexer:this},u),typeof c=="number"&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(r=t.substring(0,a+1))}if(this.state.top&&(o=this.tokenizer.paragraph(r))){s=n[n.length-1],i&&(s==null?void 0:s.type)==="paragraph"?(s.raw+=`
  61. `+o.raw,s.text+=`
  62. `+o.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(o),i=r.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length),s=n[n.length-1],s&&s.type==="text"?(s.raw+=`
  63. `+o.raw,s.text+=`
  64. `+o.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(o);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let i,o,s,r=t,a,u,c;if(this.tokens.links){const l=Object.keys(this.tokens.links);if(l.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)l.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,a.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(u||(c=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(l=>(i=l.call({lexer:this},t,n))?(t=t.substring(i.raw.length),n.push(i),!0):!1))){if(i=this.tokenizer.escape(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.tag(t)){t=t.substring(i.raw.length),o=n[n.length-1],o&&i.type==="text"&&o.type==="text"?(o.raw+=i.raw,o.text+=i.text):n.push(i);continue}if(i=this.tokenizer.link(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(i.raw.length),o=n[n.length-1],o&&i.type==="text"&&o.type==="text"?(o.raw+=i.raw,o.text+=i.text):n.push(i);continue}if(i=this.tokenizer.emStrong(t,r,c)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.codespan(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.br(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.del(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.autolink(t)){t=t.substring(i.raw.length),n.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(t))){t=t.substring(i.raw.length),n.push(i);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let l=1/0;const g=t.slice(1);let C;this.options.extensions.startInline.forEach(S=>{C=S.call({lexer:this},g),typeof C=="number"&&C>=0&&(l=Math.min(l,C))}),l<1/0&&l>=0&&(s=t.substring(0,l+1))}if(i=this.tokenizer.inlineText(s)){t=t.substring(i.raw.length),i.raw.slice(-1)!=="_"&&(c=i.raw.slice(-1)),u=!0,o=n[n.length-1],o&&o.type==="text"?(o.raw+=i.raw,o.text+=i.text):n.push(i);continue}if(t){const l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return n}}class hC{constructor(t){Wt(this,"options");Wt(this,"parser");this.options=t||pf}space(t){return""}code({text:t,lang:n,escaped:i}){var r;const o=(r=(n||"").match(/^\S*/))==null?void 0:r[0],s=t.replace(/\n$/,"")+`
  65. `;return o?'<pre><code class="language-'+Bo(o)+'">'+(i?s:Bo(s,!0))+`</code></pre>
  66. `:"<pre><code>"+(i?s:Bo(s,!0))+`</code></pre>
  67. `}blockquote({tokens:t}){return`<blockquote>
  68. ${this.parser.parse(t)}</blockquote>
  69. `}html({text:t}){return t}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
  70. `}hr(t){return`<hr>
  71. `}list(t){const n=t.ordered,i=t.start;let o="";for(let a=0;a<t.items.length;a++){const u=t.items[a];o+=this.listitem(u)}const s=n?"ol":"ul",r=n&&i!==1?' start="'+i+'"':"";return"<"+s+r+`>
  72. `+o+"</"+s+`>
  73. `}listitem(t){let n="";if(t.task){const i=this.checkbox({checked:!!t.checked});t.loose?t.tokens.length>0&&t.tokens[0].type==="paragraph"?(t.tokens[0].text=i+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=i+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" "}):n+=i+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
  74. `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
  75. `}table(t){let n="",i="";for(let s=0;s<t.header.length;s++)i+=this.tablecell(t.header[s]);n+=this.tablerow({text:i});let o="";for(let s=0;s<t.rows.length;s++){const r=t.rows[s];i="";for(let a=0;a<r.length;a++)i+=this.tablecell(r[a]);o+=this.tablerow({text:i})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
  76. <thead>
  77. `+n+`</thead>
  78. `+o+`</table>
  79. `}tablerow({text:t}){return`<tr>
  80. ${t}</tr>
  81. `}tablecell(t){const n=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+n+`</${i}>
  82. `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${t}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:i}){const o=this.parser.parseInline(i),s=o7(t);if(s===null)return o;t=s;let r='<a href="'+t+'"';return n&&(r+=' title="'+n+'"'),r+=">"+o+"</a>",r}image({href:t,title:n,text:i}){const o=o7(t);if(o===null)return i;t=o;let s=`<img src="${t}" alt="${i}"`;return n&&(s+=` title="${n}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):t.text}}class XP{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class os{constructor(t){Wt(this,"options");Wt(this,"renderer");Wt(this,"textRenderer");this.options=t||pf,this.options.renderer=this.options.renderer||new hC,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new XP}static parse(t,n){return new os(n).parse(t)}static parseInline(t,n){return new os(n).parseInline(t)}parse(t,n=!0){let i="";for(let o=0;o<t.length;o++){const s=t[o];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const a=s,u=this.options.extensions.renderers[a.type].call({parser:this},a);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){i+=u||"";continue}}const r=s;switch(r.type){case"space":{i+=this.renderer.space(r);continue}case"hr":{i+=this.renderer.hr(r);continue}case"heading":{i+=this.renderer.heading(r);continue}case"code":{i+=this.renderer.code(r);continue}case"table":{i+=this.renderer.table(r);continue}case"blockquote":{i+=this.renderer.blockquote(r);continue}case"list":{i+=this.renderer.list(r);continue}case"html":{i+=this.renderer.html(r);continue}case"paragraph":{i+=this.renderer.paragraph(r);continue}case"text":{let a=r,u=this.renderer.text(a);for(;o+1<t.length&&t[o+1].type==="text";)a=t[++o],u+=`
  83. `+this.renderer.text(a);n?i+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u}]}):i+=u;continue}default:{const a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}parseInline(t,n){n=n||this.renderer;let i="";for(let o=0;o<t.length;o++){const s=t[o];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const a=this.options.extensions.renderers[s.type].call({parser:this},s);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){i+=a||"";continue}}const r=s;switch(r.type){case"escape":{i+=n.text(r);break}case"html":{i+=n.html(r);break}case"link":{i+=n.link(r);break}case"image":{i+=n.image(r);break}case"strong":{i+=n.strong(r);break}case"em":{i+=n.em(r);break}case"codespan":{i+=n.codespan(r);break}case"br":{i+=n.br(r);break}case"del":{i+=n.del(r);break}case"text":{i+=n.text(r);break}default:{const a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}}class wv{constructor(t){Wt(this,"options");Wt(this,"block");this.options=t||pf}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?rs.lex:rs.lexInline}provideParser(){return this.block?os.parse:os.parseInline}}Wt(wv,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class ZWe{constructor(...t){Wt(this,"defaults",HP());Wt(this,"options",this.setOptions);Wt(this,"parse",this.parseMarkdown(!0));Wt(this,"parseInline",this.parseMarkdown(!1));Wt(this,"Parser",os);Wt(this,"Renderer",hC);Wt(this,"TextRenderer",XP);Wt(this,"Lexer",rs);Wt(this,"Tokenizer",dC);Wt(this,"Hooks",wv);this.use(...t)}walkTokens(t,n){var o,s;let i=[];for(const r of t)switch(i=i.concat(n.call(this,r)),r.type){case"table":{const a=r;for(const u of a.header)i=i.concat(this.walkTokens(u.tokens,n));for(const u of a.rows)for(const c of u)i=i.concat(this.walkTokens(c.tokens,n));break}case"list":{const a=r;i=i.concat(this.walkTokens(a.items,n));break}default:{const a=r;(s=(o=this.defaults.extensions)==null?void 0:o.childTokens)!=null&&s[a.type]?this.defaults.extensions.childTokens[a.type].forEach(u=>{const c=a[u].flat(1/0);i=i.concat(this.walkTokens(c,n))}):a.tokens&&(i=i.concat(this.walkTokens(a.tokens,n)))}}return i}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{const o={...i};if(o.async=this.defaults.async||o.async||!1,i.extensions&&(i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const r=n.renderers[s.name];r?n.renderers[s.name]=function(...a){let u=s.renderer.apply(this,a);return u===!1&&(u=r.apply(this,a)),u}:n.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const r=n[s.level];r?r.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),o.extensions=n),i.renderer){const s=this.defaults.renderer||new hC(this.defaults);for(const r in i.renderer){if(!(r in s))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;const a=r,u=i.renderer[a],c=s[a];s[a]=(...l)=>{let g=u.apply(s,l);return g===!1&&(g=c.apply(s,l)),g||""}}o.renderer=s}if(i.tokenizer){const s=this.defaults.tokenizer||new dC(this.defaults);for(const r in i.tokenizer){if(!(r in s))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;const a=r,u=i.tokenizer[a],c=s[a];s[a]=(...l)=>{let g=u.apply(s,l);return g===!1&&(g=c.apply(s,l)),g}}o.tokenizer=s}if(i.hooks){const s=this.defaults.hooks||new wv;for(const r in i.hooks){if(!(r in s))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;const a=r,u=i.hooks[a],c=s[a];wv.passThroughHooks.has(r)?s[a]=l=>{if(this.defaults.async)return Promise.resolve(u.call(s,l)).then(C=>c.call(s,C));const g=u.call(s,l);return c.call(s,g)}:s[a]=(...l)=>{let g=u.apply(s,l);return g===!1&&(g=c.apply(s,l)),g}}o.hooks=s}if(i.walkTokens){const s=this.defaults.walkTokens,r=i.walkTokens;o.walkTokens=function(a){let u=[];return u.push(r.call(this,a)),s&&(u=u.concat(s.call(this,a))),u}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return rs.lex(t,n??this.defaults)}parser(t,n){return os.parse(t,n??this.defaults)}parseMarkdown(t){return(i,o)=>{const s={...o},r={...this.defaults,...s},a=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&s.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));r.hooks&&(r.hooks.options=r,r.hooks.block=t);const u=r.hooks?r.hooks.provideLexer():t?rs.lex:rs.lexInline,c=r.hooks?r.hooks.provideParser():t?os.parse:os.parseInline;if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(i):i).then(l=>u(l,r)).then(l=>r.hooks?r.hooks.processAllTokens(l):l).then(l=>r.walkTokens?Promise.all(this.walkTokens(l,r.walkTokens)).then(()=>l):l).then(l=>c(l,r)).then(l=>r.hooks?r.hooks.postprocess(l):l).catch(a);try{r.hooks&&(i=r.hooks.preprocess(i));let l=u(i,r);r.hooks&&(l=r.hooks.processAllTokens(l)),r.walkTokens&&this.walkTokens(l,r.walkTokens);let g=c(l,r);return r.hooks&&(g=r.hooks.postprocess(g)),g}catch(l){return a(l)}}}onError(t,n){return i=>{if(i.message+=`
  84. Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An error occurred:</p><pre>"+Bo(i.message+"",!0)+"</pre>";return n?Promise.resolve(o):o}if(n)return Promise.reject(i);throw i}}}const ef=new ZWe;function qn(e,t){return ef.parse(e,t)}qn.options=qn.setOptions=function(e){return ef.setOptions(e),qn.defaults=ef.defaults,nW(qn.defaults),qn};qn.getDefaults=HP;qn.defaults=pf;qn.use=function(...e){return ef.use(...e),qn.defaults=ef.defaults,nW(qn.defaults),qn};qn.walkTokens=function(e,t){return ef.walkTokens(e,t)};qn.parseInline=ef.parseInline;qn.Parser=os;qn.parser=os.parse;qn.Renderer=hC;qn.TextRenderer=XP;qn.Lexer=rs;qn.lexer=rs.lex;qn.Tokenizer=dC;qn.Hooks=wv;qn.parse=qn;qn.options;qn.setOptions;qn.use;qn.walkTokens;qn.parseInline;os.parse;rs.lex;const GWe="refference-flag";function YWe(e){if(!e)return"";const t=qn.parse(e),n=/<span class="circle" data-list-index="\d"><\/span>/g;let i=0;return t.replaceAll(n,function(s,r,a,u){let c=s.replace("></span>",`data-flag-index="${i}"></span>`);return c=c.replace('class="circle"',`class="refflag-refflag-refflag ${GWe}"`),i++,c})}var PE={d:(e,t)=>{for(var n in t)PE.o(t,n)&&!PE.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},hn=globalThis.pdfjsLib={};PE.d(hn,{AbortException:()=>vf,AnnotationEditorLayer:()=>tv,AnnotationEditorParamsType:()=>un,AnnotationEditorType:()=>yn,AnnotationEditorUIManager:()=>xl,AnnotationLayer:()=>nGe,AnnotationMode:()=>cc,ColorPicker:()=>xv,DOMSVGFactory:()=>lO,DrawLayer:()=>wk,FeatureTest:()=>ao,GlobalWorkerOptions:()=>Il,ImageKind:()=>Hb,InvalidPDFException:()=>pW,MissingPDFException:()=>mf,OPS:()=>Cs,OutputScale:()=>zE,PDFDataRangeTransport:()=>lU,PDFDateString:()=>tO,PDFWorker:()=>Sa,PasswordResponses:()=>xUe,PermissionFlag:()=>tUe,PixelsPerInch:()=>js,RenderingCancelledException:()=>QP,TextLayer:()=>vo,UnexpectedResponseException:()=>kw,Util:()=>nn,VerbosityLevel:()=>gw,XfaLayer:()=>uU,build:()=>jZe,createValidAbsoluteUrl:()=>EUe,fetchData:()=>Sw,getDocument:()=>MZe,getFilenameFromUrl:()=>FUe,getPdfFilenameFromUrl:()=>VUe,getXfaPageViewport:()=>HUe,isDataScheme:()=>ww,isPdfFile:()=>eO,noContextMenu:()=>ds,normalizeUnicode:()=>TUe,setLayerDimensions:()=>tf,shadow:()=>Pn,version:()=>NZe});const Wr=!(typeof process!="object"||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&process.type!=="browser"),fW=[1,0,0,1,0,0],OE=[.001,0,0,.001,0,0],dA=1.35,XWe=1,KP=2,pC=4,KWe=16,JWe=32,qWe=64,QWe=128,eUe=256,cc={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},yn={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},un={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35},tUe={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},Vb=0,fA=1,xm=2,nUe=3,c7=3,iUe=4,Hb={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},rUe=1,oUe=2,sUe=3,aUe=4,lUe=5,cUe=6,uUe=7,dUe=8,fUe=9,hUe=10,pUe=11,mUe=12,vUe=13,gUe=14,yUe=15,hW=16,bUe=17,kUe=20,CUe=1,SUe=2,wUe=3,_Ue=4,IUe=5,gw={ERRORS:0,WARNINGS:1,INFOS:5},Cs={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93},xUe={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let yw=gw.WARNINGS;function $Ue(e){Number.isInteger(e)&&(yw=e)}function AUe(){return yw}function bw(e){yw>=gw.INFOS&&console.log(`Info: ${e}`)}function Cn(e){yw>=gw.WARNINGS&&console.log(`Warning: ${e}`)}function vi(e){throw new Error(e)}function or(e,t){e||vi(t)}function EUe(e,t=null,n=null){if(!e)return null;try{if(n&&typeof e=="string"){if(n.addDefaultProtocol&&e.startsWith("www.")){const o=e.match(/\./g);(o==null?void 0:o.length)>=2&&(e=`http://${e}`)}if(n.tryConvertEncoding)try{e=function(s){return decodeURIComponent(escape(s))}(e)}catch{}}const i=t?new URL(e,t):new URL(e);if(function(s){switch(s==null?void 0:s.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(i))return i}catch{}return null}function Pn(e,t,n,i=!1){return Object.defineProperty(e,t,{value:n,enumerable:!i,configurable:!0,writable:!1}),n}const lu=function(){function t(n,i){this.message=n,this.name=i}return t.prototype=new Error,t.constructor=t,t}();class LE extends lu{constructor(t,n){super(t,"PasswordException"),this.code=n}}class DE extends lu{constructor(t,n){super(t,"UnknownErrorException"),this.details=n}}class pW extends lu{constructor(t){super(t,"InvalidPDFException")}}class mf extends lu{constructor(t){super(t,"MissingPDFException")}}class kw extends lu{constructor(t,n){super(t,"UnexpectedResponseException"),this.status=n}}class MUe extends lu{constructor(t){super(t,"FormatError")}}class vf extends lu{constructor(t){super(t,"AbortException")}}function mW(e){typeof e=="object"&&(e==null?void 0:e.length)!==void 0||vi("Invalid argument for bytesToString");const t=e.length,n=8192;if(t<n)return String.fromCharCode.apply(null,e);const i=[];for(let o=0;o<t;o+=n){const s=Math.min(o+n,t),r=e.subarray(o,s);i.push(String.fromCharCode.apply(null,r))}return i.join("")}function Cw(e){typeof e!="string"&&vi("Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let i=0;i<t;++i)n[i]=255&e.charCodeAt(i);return n}function JP(e){const t=Object.create(null);for(const[n,i]of e)t[n]=i;return t}class ao{static get isLittleEndian(){return Pn(this,"isLittleEndian",function(){const n=new Uint8Array(4);return n[0]=1,new Uint32Array(n.buffer,0,1)[0]===1}())}static get isEvalSupported(){return Pn(this,"isEvalSupported",function(){try{return new Function(""),!0}catch{return!1}}())}static get isOffscreenCanvasSupported(){return Pn(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.platform)=="string"?Pn(this,"platform",{isMac:navigator.platform.includes("Mac"),isWindows:navigator.platform.includes("Win"),isFirefox:typeof(navigator==null?void 0:navigator.userAgent)=="string"&&navigator.userAgent.includes("Firefox")}):Pn(this,"platform",{isMac:!1,isWindows:!1,isFirefox:!1})}static get isCSSRoundSupported(){var t,n;return Pn(this,"isCSSRoundSupported",(n=(t=globalThis.CSS)==null?void 0:t.supports)==null?void 0:n.call(t,"width: round(1.5px, 1px)"))}}const hA=Array.from(Array(256).keys(),e=>e.toString(16).padStart(2,"0"));var lh,Wb,Yv,NE;class nn{static makeHexColor(t,n,i){return`#${hA[t]}${hA[n]}${hA[i]}`}static scaleMinMax(t,n){let i;t[0]?(t[0]<0&&(i=n[0],n[0]=n[2],n[2]=i),n[0]*=t[0],n[2]*=t[0],t[3]<0&&(i=n[1],n[1]=n[3],n[3]=i),n[1]*=t[3],n[3]*=t[3]):(i=n[0],n[0]=n[1],n[1]=i,i=n[2],n[2]=n[3],n[3]=i,t[1]<0&&(i=n[1],n[1]=n[3],n[3]=i),n[1]*=t[1],n[3]*=t[1],t[2]<0&&(i=n[0],n[0]=n[2],n[2]=i),n[0]*=t[2],n[2]*=t[2]),n[0]+=t[4],n[1]+=t[5],n[2]+=t[4],n[3]+=t[5]}static transform(t,n){return[t[0]*n[0]+t[2]*n[1],t[1]*n[0]+t[3]*n[1],t[0]*n[2]+t[2]*n[3],t[1]*n[2]+t[3]*n[3],t[0]*n[4]+t[2]*n[5]+t[4],t[1]*n[4]+t[3]*n[5]+t[5]]}static applyTransform(t,n){return[t[0]*n[0]+t[1]*n[2]+n[4],t[0]*n[1]+t[1]*n[3]+n[5]]}static applyInverseTransform(t,n){const i=n[0]*n[3]-n[1]*n[2];return[(t[0]*n[3]-t[1]*n[2]+n[2]*n[5]-n[4]*n[3])/i,(-t[0]*n[1]+t[1]*n[0]+n[4]*n[1]-n[5]*n[0])/i]}static getAxialAlignedBoundingBox(t,n){const i=this.applyTransform(t,n),o=this.applyTransform(t.slice(2,4),n),s=this.applyTransform([t[0],t[3]],n),r=this.applyTransform([t[2],t[1]],n);return[Math.min(i[0],o[0],s[0],r[0]),Math.min(i[1],o[1],s[1],r[1]),Math.max(i[0],o[0],s[0],r[0]),Math.max(i[1],o[1],s[1],r[1])]}static inverseTransform(t){const n=t[0]*t[3]-t[1]*t[2];return[t[3]/n,-t[1]/n,-t[2]/n,t[0]/n,(t[2]*t[5]-t[4]*t[3])/n,(t[4]*t[1]-t[5]*t[0])/n]}static singularValueDecompose2dScale(t){const n=[t[0],t[2],t[1],t[3]],i=t[0]*n[0]+t[1]*n[2],o=t[0]*n[1]+t[1]*n[3],s=t[2]*n[0]+t[3]*n[2],r=t[2]*n[1]+t[3]*n[3],a=(i+r)/2,u=Math.sqrt((i+r)**2-4*(i*r-s*o))/2,c=a+u||1,l=a-u||1;return[Math.sqrt(c),Math.sqrt(l)]}static normalizeRect(t){const n=t.slice(0);return t[0]>t[2]&&(n[0]=t[2],n[2]=t[0]),t[1]>t[3]&&(n[1]=t[3],n[3]=t[1]),n}static intersect(t,n){const i=Math.max(Math.min(t[0],t[2]),Math.min(n[0],n[2])),o=Math.min(Math.max(t[0],t[2]),Math.max(n[0],n[2]));if(i>o)return null;const s=Math.max(Math.min(t[1],t[3]),Math.min(n[1],n[3])),r=Math.min(Math.max(t[1],t[3]),Math.max(n[1],n[3]));return s>r?null:[i,s,o,r]}static bezierBoundingBox(t,n,i,o,s,r,a,u,c){return c?(c[0]=Math.min(c[0],t,a),c[1]=Math.min(c[1],n,u),c[2]=Math.max(c[2],t,a),c[3]=Math.max(c[3],n,u)):c=[Math.min(t,a),Math.min(n,u),Math.max(t,a),Math.max(n,u)],_e(this,Yv,NE).call(this,t,i,s,a,n,o,r,u,3*(3*(i-s)-t+a),6*(t-2*i+s),3*(i-t),c),_e(this,Yv,NE).call(this,t,i,s,a,n,o,r,u,3*(3*(o-r)-n+u),6*(n-2*o+r),3*(o-n),c),c}}lh=new WeakSet,Wb=function(t,n,i,o,s,r,a,u,c,l){if(c<=0||c>=1)return;const g=1-c,C=c*c,S=C*c,_=g*(g*(g*t+3*c*n)+3*C*i)+S*o,A=g*(g*(g*s+3*c*r)+3*C*a)+S*u;l[0]=Math.min(l[0],_),l[1]=Math.min(l[1],A),l[2]=Math.max(l[2],_),l[3]=Math.max(l[3],A)},Yv=new WeakSet,NE=function(t,n,i,o,s,r,a,u,c,l,g,C){if(Math.abs(c)<1e-12){Math.abs(l)>=1e-12&&_e(this,lh,Wb).call(this,t,n,i,o,s,r,a,u,-g/l,C);return}const S=l**2-4*g*c;if(S<0)return;const _=Math.sqrt(S),A=2*c;_e(this,lh,Wb).call(this,t,n,i,o,s,r,a,u,(-l+_)/A,C),_e(this,lh,Wb).call(this,t,n,i,o,s,r,a,u,(-l-_)/A,C)},ue(nn,lh),ue(nn,Yv);let pA=null,u7=null;function TUe(e){return pA||(pA=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,u7=new Map([["ſt","ſt"]])),e.replaceAll(pA,(t,n,i)=>n?n.normalize("NFKC"):u7.get(i))}const qP="pdfjs_internal_id_",PUe=0,OUe=1,LUe=2,DUe=3,NUe=4,jUe=5,zUe=6,RUe=7,BUe=8,Ha="http://www.w3.org/2000/svg",wC=class{};let js=wC;Wt(js,"CSS",96),Wt(js,"PDF",72),Wt(js,"PDF_TO_CSS_UNITS",wC.CSS/wC.PDF);async function Sw(e,t="text"){if(jm(e,document.baseURI)){const n=await fetch(e);if(!n.ok)throw new Error(n.statusText);switch(t){case"arraybuffer":return n.arrayBuffer();case"blob":return n.blob();case"json":return n.json()}return n.text()}return new Promise((n,i)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType=t,o.onreadystatechange=()=>{if(o.readyState===XMLHttpRequest.DONE)if(o.status!==200&&o.status!==0)i(new Error(o.statusText));else{switch(t){case"arraybuffer":case"blob":case"json":n(o.response);return}n(o.responseText)}},o.send(null)})}class _1{constructor({viewBox:t,scale:n,rotation:i,offsetX:o=0,offsetY:s=0,dontFlip:r=!1}){this.viewBox=t,this.scale=n,this.rotation=i,this.offsetX=o,this.offsetY=s;const a=(t[2]+t[0])/2,u=(t[3]+t[1])/2;let c,l,g,C,S,_,A,y;switch((i%=360)<0&&(i+=360),i){case 180:c=-1,l=0,g=0,C=1;break;case 90:c=0,l=1,g=1,C=0;break;case 270:c=0,l=-1,g=-1,C=0;break;case 0:c=1,l=0,g=0,C=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}r&&(g=-g,C=-C),c===0?(S=Math.abs(u-t[1])*n+o,_=Math.abs(a-t[0])*n+s,A=(t[3]-t[1])*n,y=(t[2]-t[0])*n):(S=Math.abs(a-t[0])*n+o,_=Math.abs(u-t[1])*n+s,A=(t[2]-t[0])*n,y=(t[3]-t[1])*n),this.transform=[c*n,l*n,g*n,C*n,S-c*n*a-g*n*u,_-l*n*a-C*n*u],this.width=A,this.height=y}get rawDims(){const{viewBox:t}=this;return Pn(this,"rawDims",{pageWidth:t[2]-t[0],pageHeight:t[3]-t[1],pageX:t[0],pageY:t[1]})}clone({scale:t=this.scale,rotation:n=this.rotation,offsetX:i=this.offsetX,offsetY:o=this.offsetY,dontFlip:s=!1}={}){return new _1({viewBox:this.viewBox.slice(),scale:t,rotation:n,offsetX:i,offsetY:o,dontFlip:s})}convertToViewportPoint(t,n){return nn.applyTransform([t,n],this.transform)}convertToViewportRectangle(t){const n=nn.applyTransform([t[0],t[1]],this.transform),i=nn.applyTransform([t[2],t[3]],this.transform);return[n[0],n[1],i[0],i[1]]}convertToPdfPoint(t,n){return nn.applyInverseTransform([t,n],this.transform)}}class QP extends lu{constructor(t,n=0){super(t,"RenderingCancelledException"),this.extraDelay=n}}function ww(e){const t=e.length;let n=0;for(;n<t&&e[n].trim()==="";)n++;return e.substring(n,n+5).toLowerCase()==="data:"}function eO(e){return typeof e=="string"&&/\.pdf$/i.test(e)}function FUe(e){return[e]=e.split(/[#?]/,1),e.substring(e.lastIndexOf("/")+1)}function VUe(e,t="document.pdf"){if(typeof e!="string")return t;if(ww(e))return Cn('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const n=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e);let o=n.exec(i[1])||n.exec(i[2])||n.exec(i[3]);if(o&&(o=o[0],o.includes("%")))try{o=n.exec(decodeURIComponent(o))[0]}catch{}return o||t}class d7{constructor(){Wt(this,"started",Object.create(null));Wt(this,"times",[])}time(t){t in this.started&&Cn(`Timer is already running for ${t}`),this.started[t]=Date.now()}timeEnd(t){t in this.started||Cn(`Timer has not been started for ${t}`),this.times.push({name:t,start:this.started[t],end:Date.now()}),delete this.started[t]}toString(){const t=[];let n=0;for(const{name:i}of this.times)n=Math.max(i.length,n);for(const{name:i,start:o,end:s}of this.times)t.push(`${i.padEnd(n)} ${s-o}ms
  85. `);return t.join("")}}function jm(e,t){try{const{protocol:n}=t?new URL(e,t):new URL(e);return n==="http:"||n==="https:"}catch{return!1}}function ds(e){e.preventDefault()}function f7(e){console.log("Deprecated API usage: "+e)}var Xv;class tO{static toDateObject(t){if(!t||typeof t!="string")return null;D(this,Xv)||Ce(this,Xv,new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const n=D(this,Xv).exec(t);if(!n)return null;const i=parseInt(n[1],10);let o=parseInt(n[2],10);o=o>=1&&o<=12?o-1:0;let s=parseInt(n[3],10);s=s>=1&&s<=31?s:1;let r=parseInt(n[4],10);r=r>=0&&r<=23?r:0;let a=parseInt(n[5],10);a=a>=0&&a<=59?a:0;let u=parseInt(n[6],10);u=u>=0&&u<=59?u:0;const c=n[7]||"Z";let l=parseInt(n[8],10);l=l>=0&&l<=23?l:0;let g=parseInt(n[9],10)||0;return g=g>=0&&g<=59?g:0,c==="-"?(r+=l,a+=g):c==="+"&&(r-=l,a-=g),new Date(Date.UTC(i,o,s,r,a,u))}}Xv=new WeakMap,ue(tO,Xv,void 0);function HUe(e,{scale:t=1,rotation:n=0}){const{width:i,height:o}=e.attributes.style,s=[0,0,parseInt(i),parseInt(o)];return new _1({viewBox:s,scale:t,rotation:n})}function jE(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(16711680&t)>>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map(t=>parseInt(t)):e.startsWith("rgba(")?e.slice(5,-1).split(",").map(t=>parseInt(t)).slice(0,3):(Cn(`Not a valid color format: "${e}"`),[0,0,0])}function xi(e){const{a:t,b:n,c:i,d:o,e:s,f:r}=e.getTransform();return[t,n,i,o,s,r]}function Ba(e){const{a:t,b:n,c:i,d:o,e:s,f:r}=e.getTransform().invertSelf();return[t,n,i,o,s,r]}function tf(e,t,n=!1,i=!0){if(t instanceof _1){const{pageWidth:o,pageHeight:s}=t.rawDims,{style:r}=e,a=ao.isCSSRoundSupported,u=`var(--scale-factor) * ${o}px`,c=`var(--scale-factor) * ${s}px`,l=a?`round(down, ${u}, var(--scale-round-x, 1px))`:`calc(${u})`,g=a?`round(down, ${c}, var(--scale-round-y, 1px))`:`calc(${c})`;n&&t.rotation%180!=0?(r.width=g,r.height=l):(r.width=l,r.height=g)}i&&e.setAttribute("data-main-rotation",t.rotation)}class zE{constructor(){const t=window.devicePixelRatio||1;this.sx=t,this.sy=t}get scaled(){return this.sx!==1||this.sy!==1}get symmetric(){return this.sx===this.sy}}var uc,Mu,Ss,Tu,Kv,Jv,_C,vW,IC,gW,xC,yW,ch,Ub,$C,bW,qv,RE;const Iu=class{constructor(t){ue(this,IC);ue(this,xC);ue(this,ch);ue(this,$C);ue(this,qv);ue(this,uc,null);ue(this,Mu,null);ue(this,Ss,void 0);ue(this,Tu,null);ue(this,Kv,null);Ce(this,Ss,t),D(Iu,Jv)||Ce(Iu,Jv,Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button"}))}render(){const t=Ce(this,uc,document.createElement("div"));t.classList.add("editToolbar","hidden"),t.setAttribute("role","toolbar");const n=D(this,Ss)._uiManager._signal;t.addEventListener("contextmenu",ds,{signal:n}),t.addEventListener("pointerdown",_e(Iu,_C,vW),{signal:n});const i=Ce(this,Tu,document.createElement("div"));i.className="buttons",t.append(i);const o=D(this,Ss).toolbarPosition;if(o){const{style:s}=t,r=D(this,Ss)._uiManager.direction==="ltr"?1-o[0]:o[0];s.insetInlineEnd=100*r+"%",s.top=`calc(${100*o[1]}% + var(--editor-toolbar-vert-offset))`}return _e(this,$C,bW).call(this),t}get div(){return D(this,uc)}hide(){var t;D(this,uc).classList.add("hidden"),(t=D(this,Mu))==null||t.hideDropdown()}show(){var t;D(this,uc).classList.remove("hidden"),(t=D(this,Kv))==null||t.shown()}async addAltText(t){const n=await t.render();_e(this,ch,Ub).call(this,n),D(this,Tu).prepend(n,D(this,qv,RE)),Ce(this,Kv,t)}addColorPicker(t){Ce(this,Mu,t);const n=t.renderButton();_e(this,ch,Ub).call(this,n),D(this,Tu).prepend(n,D(this,qv,RE))}remove(){var t;D(this,uc).remove(),(t=D(this,Mu))==null||t.destroy(),Ce(this,Mu,null)}};let zm=Iu;uc=new WeakMap,Mu=new WeakMap,Ss=new WeakMap,Tu=new WeakMap,Kv=new WeakMap,Jv=new WeakMap,_C=new WeakSet,vW=function(t){t.stopPropagation()},IC=new WeakSet,gW=function(t){D(this,Ss)._focusEventsAllowed=!1,t.preventDefault(),t.stopPropagation()},xC=new WeakSet,yW=function(t){D(this,Ss)._focusEventsAllowed=!0,t.preventDefault(),t.stopPropagation()},ch=new WeakSet,Ub=function(t){const n=D(this,Ss)._uiManager._signal;t.addEventListener("focusin",_e(this,IC,gW).bind(this),{capture:!0,signal:n}),t.addEventListener("focusout",_e(this,xC,yW).bind(this),{capture:!0,signal:n}),t.addEventListener("contextmenu",ds,{signal:n})},$C=new WeakSet,bW=function(){const{editorType:t,_uiManager:n}=D(this,Ss),i=document.createElement("button");i.className="delete",i.tabIndex=0,i.setAttribute("data-l10n-id",D(Iu,Jv)[t]),_e(this,ch,Ub).call(this,i),i.addEventListener("click",o=>{n.delete()},{signal:n._signal}),D(this,Tu).append(i)},qv=new WeakSet,RE=function(){const t=document.createElement("div");return t.className="divider",t},ue(zm,_C),ue(zm,Jv,null);var Qv,Pu,Ou,AC,kW,EC,CW,MC,SW;class WUe{constructor(t){ue(this,AC);ue(this,EC);ue(this,MC);ue(this,Qv,null);ue(this,Pu,null);ue(this,Ou,void 0);Ce(this,Ou,t)}show(t,n,i){const[o,s]=_e(this,EC,CW).call(this,n,i),{style:r}=D(this,Pu)||Ce(this,Pu,_e(this,AC,kW).call(this));t.append(D(this,Pu)),r.insetInlineEnd=100*o+"%",r.top=`calc(${100*s}% + var(--editor-toolbar-vert-offset))`}hide(){D(this,Pu).remove()}}Qv=new WeakMap,Pu=new WeakMap,Ou=new WeakMap,AC=new WeakSet,kW=function(){const t=Ce(this,Pu,document.createElement("div"));t.className="editToolbar",t.setAttribute("role","toolbar"),t.addEventListener("contextmenu",ds,{signal:D(this,Ou)._signal});const n=Ce(this,Qv,document.createElement("div"));return n.className="buttons",t.append(n),_e(this,MC,SW).call(this),t},EC=new WeakSet,CW=function(t,n){let i=0,o=0;for(const s of t){const r=s.y+s.height;if(r<i)continue;const a=s.x+(n?s.width:0);r>i?(o=a,i=r):n?a>o&&(o=a):a<o&&(o=a)}return[n?1-o:o,i]},MC=new WeakSet,SW=function(){const t=document.createElement("button");t.className="highlightButton",t.tabIndex=0,t.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");const n=document.createElement("span");t.append(n),n.className="visuallyHidden",n.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label");const i=D(this,Ou)._signal;t.addEventListener("contextmenu",ds,{signal:i}),t.addEventListener("click",()=>{D(this,Ou).highlightSelection("floating_button")},{signal:i}),D(this,Qv).append(t)};function mC(e,t,n){for(const i of n)t.addEventListener(i,e[i].bind(e))}var TC;class UUe{constructor(){ue(this,TC,0)}get id(){return"pdfjs_internal_editor_"+Kr(this,TC)._++}}TC=new WeakMap;var uh,eg,zr,dh,Zb;const MO=class{constructor(){ue(this,dh);ue(this,uh,function(){if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const n=new Uint8Array(32);if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(n);else for(let i=0;i<32;i++)n[i]=Math.floor(255*Math.random());return mW(n)}());ue(this,eg,0);ue(this,zr,null)}static get _isSVGFittingCanvas(){const t=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),n=new Image;return n.src='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',Pn(this,"_isSVGFittingCanvas",n.decode().then(()=>(t.drawImage(n,0,0,1,1,0,0,1,3),new Uint32Array(t.getImageData(0,0,1,1).data.buffer)[0]===0)))}async getFromFile(t){const{lastModified:n,name:i,size:o,type:s}=t;return _e(this,dh,Zb).call(this,`${n}_${i}_${o}_${s}`,t)}async getFromUrl(t){return _e(this,dh,Zb).call(this,t,t)}async getFromBlob(t,n){const i=await n;return _e(this,dh,Zb).call(this,t,i)}async getFromId(t){D(this,zr)||Ce(this,zr,new Map);const n=D(this,zr).get(t);if(!n)return null;if(n.bitmap)return n.refCounter+=1,n;if(n.file)return this.getFromFile(n.file);if(n.blobPromise){const{blobPromise:i}=n;return delete n.blobPromise,this.getFromBlob(n.id,i)}return this.getFromUrl(n.url)}getFromCanvas(t,n){D(this,zr)||Ce(this,zr,new Map);let i=D(this,zr).get(t);if(i!=null&&i.bitmap)return i.refCounter+=1,i;const o=new OffscreenCanvas(n.width,n.height);return o.getContext("2d").drawImage(n,0,0),i={bitmap:o.transferToImageBitmap(),id:`image_${D(this,uh)}_${Kr(this,eg)._++}`,refCounter:1,isSvg:!1},D(this,zr).set(t,i),D(this,zr).set(i.id,i),i}getSvgUrl(t){const n=D(this,zr).get(t);return n!=null&&n.isSvg?n.svgUrl:null}deleteId(t){var o;D(this,zr)||Ce(this,zr,new Map);const n=D(this,zr).get(t);if(!n||(n.refCounter-=1,n.refCounter!==0))return;const{bitmap:i}=n;if(!n.url&&!n.file){const s=new OffscreenCanvas(i.width,i.height);s.getContext("bitmaprenderer").transferFromImageBitmap(i),n.blobPromise=s.convertToBlob()}(o=i.close)==null||o.call(i),n.bitmap=null}isValidId(t){return t.startsWith(`image_${D(this,uh)}_`)}};let BE=MO;uh=new WeakMap,eg=new WeakMap,zr=new WeakMap,dh=new WeakSet,Zb=async function(t,n){D(this,zr)||Ce(this,zr,new Map);let i=D(this,zr).get(t);if(i===null)return null;if(i!=null&&i.bitmap)return i.refCounter+=1,i;try{i||(i={bitmap:null,id:`image_${D(this,uh)}_${Kr(this,eg)._++}`,refCounter:0,isSvg:!1});let o;if(typeof n=="string"?(i.url=n,o=await Sw(n,"blob")):n instanceof File?o=i.file=n:n instanceof Blob&&(o=n),o.type==="image/svg+xml"){const s=MO._isSVGFittingCanvas,r=new FileReader,a=new Image,u=new Promise((c,l)=>{a.onload=()=>{i.bitmap=a,i.isSvg=!0,c()},r.onload=async()=>{const g=i.svgUrl=r.result;a.src=await s?`${g}#svgView(preserveAspectRatio(none))`:g},a.onerror=r.onerror=l});r.readAsDataURL(o),await u}else i.bitmap=await createImageBitmap(o);i.refCounter=1}catch(o){console.error(o),i=null}return D(this,zr).set(t,i),i&&D(this,zr).set(i.id,i),i};var dr,dc,tg,fr;class ZUe{constructor(t=128){ue(this,dr,[]);ue(this,dc,!1);ue(this,tg,void 0);ue(this,fr,-1);Ce(this,tg,t)}add({cmd:t,undo:n,post:i,mustExec:o,type:s=NaN,overwriteIfSameType:r=!1,keepUndo:a=!1}){if(o&&t(),D(this,dc))return;const u={cmd:t,undo:n,post:i,type:s};if(D(this,fr)===-1){D(this,dr).length>0&&(D(this,dr).length=0),Ce(this,fr,0),D(this,dr).push(u);return}if(r&&D(this,dr)[D(this,fr)].type===s){a&&(u.undo=D(this,dr)[D(this,fr)].undo),D(this,dr)[D(this,fr)]=u;return}const c=D(this,fr)+1;c===D(this,tg)?D(this,dr).splice(0,1):(Ce(this,fr,c),c<D(this,dr).length&&D(this,dr).splice(c)),D(this,dr).push(u)}undo(){if(D(this,fr)===-1)return;Ce(this,dc,!0);const{undo:t,post:n}=D(this,dr)[D(this,fr)];t(),n==null||n(),Ce(this,dc,!1),Ce(this,fr,D(this,fr)-1)}redo(){if(D(this,fr)<D(this,dr).length-1){Ce(this,fr,D(this,fr)+1),Ce(this,dc,!0);const{cmd:t,post:n}=D(this,dr)[D(this,fr)];t(),n==null||n(),Ce(this,dc,!1)}}hasSomethingToUndo(){return D(this,fr)!==-1}hasSomethingToRedo(){return D(this,fr)<D(this,dr).length-1}destroy(){Ce(this,dr,null)}}dr=new WeakMap,dc=new WeakMap,tg=new WeakMap,fr=new WeakMap;var PC,wW;class I1{constructor(t){ue(this,PC);this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:n}=ao.platform;for(const[i,o,s={}]of t)for(const r of i){const a=r.startsWith("mac+");n&&a?(this.callbacks.set(r.slice(4),{callback:o,options:s}),this.allKeys.add(r.split("+").at(-1))):!n&&!a&&(this.callbacks.set(r,{callback:o,options:s}),this.allKeys.add(r.split("+").at(-1)))}}exec(t,n){if(!this.allKeys.has(n.key))return;const i=this.callbacks.get(_e(this,PC,wW).call(this,n));if(!i)return;const{callback:o,options:{bubbles:s=!1,args:r=[],checker:a=null}}=i;(!a||a(t,n))&&(o.bind(t,...r,n)(),s||(n.stopPropagation(),n.preventDefault()))}}PC=new WeakSet,wW=function(t){t.altKey&&this.buffer.push("alt"),t.ctrlKey&&this.buffer.push("ctrl"),t.metaKey&&this.buffer.push("meta"),t.shiftKey&&this.buffer.push("shift"),this.buffer.push(t.key);const n=this.buffer.join("+");return this.buffer.length=0,n};const TO=class{get _colors(){const t=new Map([["CanvasText",null],["Canvas",null]]);return function(i){const o=document.createElement("span");o.style.visibility="hidden",document.body.append(o);for(const s of i.keys()){o.style.color=s;const r=window.getComputedStyle(o).color;i.set(s,jE(r))}o.remove()}(t),Pn(this,"_colors",t)}convert(t){const n=jE(t);if(!window.matchMedia("(forced-colors: active)").matches)return n;for(const[i,o]of this._colors)if(o.every((s,r)=>s===n[r]))return TO._colorsMapping.get(i);return n}getHexCode(t){const n=this._colors.get(t);return n?nn.makeHexColor(...n):t}};let Gb=TO;Wt(Gb,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));var fh,Po,Qi,Ir,hh,Ga,ph,ws,fc,mh,Lu,na,_s,Du,ng,ig,vh,rg,ia,hc,gh,pc,ra,OC,mc,og,vc,Nu,sg,ag,hr,Yn,Ya,ju,lg,cg,gc,oa,Xa,ug,qo,yh,Yb,dg,FE,LC,_W,DC,IW,bh,Xb,NC,xW,jC,$W,zC,AW,fg,VE,RC,EW,hg,HE,pg,WE,BC,MW,xr,qr,sa,Ql,FC,TW,VC,PW,mg,UE,HC,OW,zu,Rm,vg,ZE;const WC=class{constructor(t,n,i,o,s,r,a,u,c,l,g){ue(this,yh);ue(this,dg);ue(this,LC);ue(this,DC);ue(this,bh);ue(this,NC);ue(this,jC);ue(this,zC);ue(this,fg);ue(this,RC);ue(this,hg);ue(this,pg);ue(this,BC);ue(this,xr);ue(this,sa);ue(this,FC);ue(this,VC);ue(this,mg);ue(this,HC);ue(this,zu);ue(this,vg);ue(this,fh,new AbortController);ue(this,Po,null);ue(this,Qi,new Map);ue(this,Ir,new Map);ue(this,hh,null);ue(this,Ga,null);ue(this,ph,null);ue(this,ws,new ZUe);ue(this,fc,null);ue(this,mh,0);ue(this,Lu,new Set);ue(this,na,null);ue(this,_s,null);ue(this,Du,new Set);ue(this,ng,!1);ue(this,ig,!1);ue(this,vh,!1);ue(this,rg,null);ue(this,ia,null);ue(this,hc,null);ue(this,gh,null);ue(this,pc,!1);ue(this,ra,null);ue(this,OC,new UUe);ue(this,mc,!1);ue(this,og,!1);ue(this,vc,null);ue(this,Nu,null);ue(this,sg,null);ue(this,ag,null);ue(this,hr,yn.NONE);ue(this,Yn,new Set);ue(this,Ya,null);ue(this,ju,null);ue(this,lg,null);ue(this,cg,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1});ue(this,gc,[0,0]);ue(this,oa,null);ue(this,Xa,null);ue(this,ug,null);ue(this,qo,null);const C=this._signal=D(this,fh).signal;Ce(this,Xa,t),Ce(this,ug,n),Ce(this,hh,i),this._eventBus=o,o._on("editingaction",this.onEditingAction.bind(this),{signal:C}),o._on("pagechanging",this.onPageChanging.bind(this),{signal:C}),o._on("scalechanging",this.onScaleChanging.bind(this),{signal:C}),o._on("rotationchanging",this.onRotationChanging.bind(this),{signal:C}),o._on("setpreference",this.onSetPreference.bind(this),{signal:C}),o._on("switchannotationeditorparams",S=>this.updateParams(S.type,S.value),{signal:C}),_e(this,NC,xW).call(this),_e(this,BC,MW).call(this),_e(this,fg,VE).call(this),Ce(this,Ga,s.annotationStorage),Ce(this,rg,s.filterFactory),Ce(this,ju,r),Ce(this,gh,a||null),Ce(this,ng,u),Ce(this,ig,c),Ce(this,vh,l),Ce(this,ag,g||null),this.viewParameters={realScale:js.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1}static get _keyboardManager(){const t=WC.prototype,n=r=>D(r,Xa).contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&r.hasSomethingToControl(),i=(r,{target:a})=>{if(a instanceof HTMLInputElement){const{type:u}=a;return u!=="text"&&u!=="number"}return!0},o=this.TRANSLATE_SMALL,s=this.TRANSLATE_BIG;return Pn(this,"_keyboardManager",new I1([[["ctrl+a","mac+meta+a"],t.selectAll,{checker:i}],[["ctrl+z","mac+meta+z"],t.undo,{checker:i}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],t.redo,{checker:i}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],t.delete,{checker:i}],[["Enter","mac+Enter"],t.addNewEditorFromKeyboard,{checker:(r,{target:a})=>!(a instanceof HTMLButtonElement)&&D(r,Xa).contains(a)&&!r.isEnterHandled}],[[" ","mac+ "],t.addNewEditorFromKeyboard,{checker:(r,{target:a})=>!(a instanceof HTMLButtonElement)&&D(r,Xa).contains(document.activeElement)}],[["Escape","mac+Escape"],t.unselectAll],[["ArrowLeft","mac+ArrowLeft"],t.translateSelectedEditors,{args:[-o,0],checker:n}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-s,0],checker:n}],[["ArrowRight","mac+ArrowRight"],t.translateSelectedEditors,{args:[o,0],checker:n}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[s,0],checker:n}],[["ArrowUp","mac+ArrowUp"],t.translateSelectedEditors,{args:[0,-o],checker:n}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-s],checker:n}],[["ArrowDown","mac+ArrowDown"],t.translateSelectedEditors,{args:[0,o],checker:n}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,s],checker:n}]]))}destroy(){var t,n,i,o;(t=D(this,qo))==null||t.resolve(),Ce(this,qo,null),(n=D(this,fh))==null||n.abort(),Ce(this,fh,null),this._signal=null;for(const s of D(this,Ir).values())s.destroy();D(this,Ir).clear(),D(this,Qi).clear(),D(this,Du).clear(),Ce(this,Po,null),D(this,Yn).clear(),D(this,ws).destroy(),(i=D(this,hh))==null||i.destroy(),(o=D(this,ra))==null||o.hide(),Ce(this,ra,null),D(this,ia)&&(clearTimeout(D(this,ia)),Ce(this,ia,null)),D(this,oa)&&(clearTimeout(D(this,oa)),Ce(this,oa,null))}combinedSignal(t){return AbortSignal.any([this._signal,t.signal])}get mlManager(){return D(this,ag)}get useNewAltTextFlow(){return D(this,ig)}get useNewAltTextWhenAddingImage(){return D(this,vh)}get hcmFilter(){return Pn(this,"hcmFilter",D(this,ju)?D(this,rg).addHCMFilter(D(this,ju).foreground,D(this,ju).background):"none")}get direction(){return Pn(this,"direction",getComputedStyle(D(this,Xa)).direction)}get highlightColors(){return Pn(this,"highlightColors",D(this,gh)?new Map(D(this,gh).split(",").map(t=>t.split("=").map(n=>n.trim()))):null)}get highlightColorNames(){return Pn(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,t=>t.reverse())):null)}setMainHighlightColorPicker(t){Ce(this,sg,t)}editAltText(t,n=!1){var i;(i=D(this,hh))==null||i.editAltText(this,t,n)}switchToMode(t,n){this._eventBus.on("annotationeditormodechanged",n,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:t})}setPreference(t,n){this._eventBus.dispatch("setpreference",{source:this,name:t,value:n})}onSetPreference({name:t,value:n}){t==="enableNewAltTextWhenAddingImage"&&Ce(this,vh,n)}onPageChanging({pageNumber:t}){Ce(this,mh,t-1)}focusMainContainer(){D(this,Xa).focus()}findParent(t,n){for(const i of D(this,Ir).values()){const{x:o,y:s,width:r,height:a}=i.div.getBoundingClientRect();if(t>=o&&t<=o+r&&n>=s&&n<=s+a)return i}return null}disableUserSelect(t=!1){D(this,ug).classList.toggle("noUserSelect",t)}addShouldRescale(t){D(this,Du).add(t)}removeShouldRescale(t){D(this,Du).delete(t)}onScaleChanging({scale:t}){this.commitOrRemove(),this.viewParameters.realScale=t*js.PDF_TO_CSS_UNITS;for(const n of D(this,Du))n.onScaleChanging()}onRotationChanging({pagesRotation:t}){this.commitOrRemove(),this.viewParameters.rotation=t}highlightSelection(t=""){const n=document.getSelection();if(!n||n.isCollapsed)return;const{anchorNode:i,anchorOffset:o,focusNode:s,focusOffset:r}=n,a=n.toString(),u=_e(this,yh,Yb).call(this,n).closest(".textLayer"),c=this.getSelectionBoxes(u);if(!c)return;n.empty();const l=_e(this,dg,FE).call(this,u),g=D(this,hr)===yn.NONE,C=()=>{l==null||l.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:t,boxes:c,anchorNode:i,anchorOffset:o,focusNode:s,focusOffset:r,text:a}),g&&this.showAllEditors("highlight",!0,!0)};g?this.switchToMode(yn.HIGHLIGHT,C):C()}addToAnnotationStorage(t){t.isEmpty()||!D(this,Ga)||D(this,Ga).has(t.id)||D(this,Ga).setValue(t.id,t)}blur(){if(this.isShiftKeyDown=!1,D(this,pc)&&(Ce(this,pc,!1),_e(this,bh,Xb).call(this,"main_toolbar")),!this.hasSelection)return;const{activeElement:t}=document;for(const n of D(this,Yn))if(n.div.contains(t)){Ce(this,Nu,[n,t]),n._focusEventsAllowed=!1;break}}focus(){if(!D(this,Nu))return;const[t,n]=D(this,Nu);Ce(this,Nu,null),n.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:this._signal}),n.focus()}addEditListeners(){_e(this,fg,VE).call(this),_e(this,hg,HE).call(this)}removeEditListeners(){_e(this,RC,EW).call(this),_e(this,pg,WE).call(this)}dragOver(t){for(const{type:n}of t.dataTransfer.items)for(const i of D(this,_s))if(i.isHandlingMimeForPasting(n)){t.dataTransfer.dropEffect="copy",t.preventDefault();return}}drop(t){for(const n of t.dataTransfer.items)for(const i of D(this,_s))if(i.isHandlingMimeForPasting(n.type)){i.paste(n,this.currentLayer),t.preventDefault();return}}copy(t){var i;if(t.preventDefault(),(i=D(this,Po))==null||i.commitOrRemove(),!this.hasSelection)return;const n=[];for(const o of D(this,Yn)){const s=o.serialize(!0);s&&n.push(s)}n.length!==0&&t.clipboardData.setData("application/pdfjs",JSON.stringify(n))}cut(t){this.copy(t),this.delete()}async paste(t){t.preventDefault();const{clipboardData:n}=t;for(const s of n.items)for(const r of D(this,_s))if(r.isHandlingMimeForPasting(s.type)){r.paste(s,this.currentLayer);return}let i=n.getData("application/pdfjs");if(!i)return;try{i=JSON.parse(i)}catch(s){Cn(`paste: "${s.message}".`);return}if(!Array.isArray(i))return;this.unselectAll();const o=this.currentLayer;try{const s=[];for(const u of i){const c=await o.deserialize(u);if(!c)return;s.push(c)}const r=()=>{for(const u of s)_e(this,mg,UE).call(this,u);_e(this,vg,ZE).call(this,s)},a=()=>{for(const u of s)u.remove()};this.addCommands({cmd:r,undo:a,mustExec:!0})}catch(s){Cn(`paste: "${s.message}".`)}}keydown(t){this.isShiftKeyDown||t.key!=="Shift"||(this.isShiftKeyDown=!0),D(this,hr)===yn.NONE||this.isEditorHandlingKeyboard||WC._keyboardManager.exec(this,t)}keyup(t){this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!1,D(this,pc)&&(Ce(this,pc,!1),_e(this,bh,Xb).call(this,"main_toolbar")))}onEditingAction({name:t}){switch(t){case"undo":case"redo":case"delete":case"selectAll":this[t]();break;case"highlightSelection":this.highlightSelection("context_menu")}}setEditingState(t){t?(_e(this,jC,$W).call(this),_e(this,hg,HE).call(this),_e(this,xr,qr).call(this,{isEditing:D(this,hr)!==yn.NONE,isEmpty:_e(this,zu,Rm).call(this),hasSomethingToUndo:D(this,ws).hasSomethingToUndo(),hasSomethingToRedo:D(this,ws).hasSomethingToRedo(),hasSelectedEditor:!1})):(_e(this,zC,AW).call(this),_e(this,pg,WE).call(this),_e(this,xr,qr).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(t){if(!D(this,_s)){Ce(this,_s,t);for(const n of D(this,_s))_e(this,sa,Ql).call(this,n.defaultPropertiesToUpdate)}}getId(){return D(this,OC).id}get currentLayer(){return D(this,Ir).get(D(this,mh))}getLayer(t){return D(this,Ir).get(t)}get currentPageIndex(){return D(this,mh)}addLayer(t){D(this,Ir).set(t.pageIndex,t),D(this,mc)?t.enable():t.disable()}removeLayer(t){D(this,Ir).delete(t.pageIndex)}async updateMode(t,n=null,i=!1){if(D(this,hr)!==t){if(D(this,qo)&&(await D(this,qo).promise,!D(this,qo)))return;if(Ce(this,qo,Promise.withResolvers()),Ce(this,hr,t),t!==yn.NONE){this.setEditingState(!0),await _e(this,FC,TW).call(this),this.unselectAll();for(const o of D(this,Ir).values())o.updateMode(t);if(n){for(const o of D(this,Qi).values())o.annotationElementId===n?(this.setSelected(o),o.enterInEditMode()):o.unselect();D(this,qo).resolve()}else i&&this.addNewEditorFromKeyboard(),D(this,qo).resolve()}else this.setEditingState(!1),_e(this,VC,PW).call(this),D(this,qo).resolve()}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(t){t!==D(this,hr)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:t})}updateParams(t,n){var i;if(D(this,_s)){switch(t){case un.CREATE:this.currentLayer.addNewEditor();return;case un.HIGHLIGHT_DEFAULT_COLOR:(i=D(this,sg))==null||i.updateColor(n);break;case un.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(D(this,lg)||Ce(this,lg,new Map)).set(t,n),this.showAllEditors("highlight",n)}for(const o of D(this,Yn))o.updateParams(t,n);for(const o of D(this,_s))o.updateDefaultParams(t,n)}}showAllEditors(t,n,i=!1){var o;for(const s of D(this,Qi).values())s.editorType===t&&s.show(n);(((o=D(this,lg))==null?void 0:o.get(un.HIGHLIGHT_SHOW_ALL))??!0)!==n&&_e(this,sa,Ql).call(this,[[un.HIGHLIGHT_SHOW_ALL,n]])}enableWaiting(t=!1){if(D(this,og)!==t){Ce(this,og,t);for(const n of D(this,Ir).values())t?n.disableClick():n.enableClick(),n.div.classList.toggle("waiting",t)}}getEditors(t){const n=[];for(const i of D(this,Qi).values())i.pageIndex===t&&n.push(i);return n}getEditor(t){return D(this,Qi).get(t)}addEditor(t){D(this,Qi).set(t.id,t)}removeEditor(t){var n;t.div.contains(document.activeElement)&&(D(this,ia)&&clearTimeout(D(this,ia)),Ce(this,ia,setTimeout(()=>{this.focusMainContainer(),Ce(this,ia,null)},0))),D(this,Qi).delete(t.id),this.unselect(t),t.annotationElementId&&D(this,Lu).has(t.annotationElementId)||((n=D(this,Ga))==null||n.remove(t.id))}addDeletedAnnotationElement(t){D(this,Lu).add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0}isDeletedAnnotationElement(t){return D(this,Lu).has(t)}removeDeletedAnnotationElement(t){D(this,Lu).delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1}setActiveEditor(t){D(this,Po)!==t&&(Ce(this,Po,t),t&&_e(this,sa,Ql).call(this,t.propertiesToUpdate))}updateUI(t){D(this,HC,OW)===t&&_e(this,sa,Ql).call(this,t.propertiesToUpdate)}toggleSelected(t){D(this,Yn).has(t)?(D(this,Yn).delete(t),t.unselect(),_e(this,xr,qr).call(this,{hasSelectedEditor:this.hasSelection})):(D(this,Yn).add(t),t.select(),_e(this,sa,Ql).call(this,t.propertiesToUpdate),_e(this,xr,qr).call(this,{hasSelectedEditor:!0}))}setSelected(t){for(const n of D(this,Yn))n!==t&&n.unselect();D(this,Yn).clear(),D(this,Yn).add(t),t.select(),_e(this,sa,Ql).call(this,t.propertiesToUpdate),_e(this,xr,qr).call(this,{hasSelectedEditor:!0})}isSelected(t){return D(this,Yn).has(t)}get firstSelectedEditor(){return D(this,Yn).values().next().value}unselect(t){t.unselect(),D(this,Yn).delete(t),_e(this,xr,qr).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return D(this,Yn).size!==0}get isEnterHandled(){return D(this,Yn).size===1&&this.firstSelectedEditor.isEnterHandled}undo(){D(this,ws).undo(),_e(this,xr,qr).call(this,{hasSomethingToUndo:D(this,ws).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:_e(this,zu,Rm).call(this)})}redo(){D(this,ws).redo(),_e(this,xr,qr).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:D(this,ws).hasSomethingToRedo(),isEmpty:_e(this,zu,Rm).call(this)})}addCommands(t){D(this,ws).add(t),_e(this,xr,qr).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:_e(this,zu,Rm).call(this)})}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const t=[...D(this,Yn)];this.addCommands({cmd:()=>{for(const n of t)n.remove()},undo:()=>{for(const n of t)_e(this,mg,UE).call(this,n)},mustExec:!0})}commitOrRemove(){var t;(t=D(this,Po))==null||t.commitOrRemove()}hasSomethingToControl(){return D(this,Po)||this.hasSelection}selectAll(){for(const t of D(this,Yn))t.commit();_e(this,vg,ZE).call(this,D(this,Qi).values())}unselectAll(){if(!(D(this,Po)&&(D(this,Po).commitOrRemove(),D(this,hr)!==yn.NONE))&&this.hasSelection){for(const t of D(this,Yn))t.unselect();D(this,Yn).clear(),_e(this,xr,qr).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(t,n,i=!1){if(i||this.commitOrRemove(),!this.hasSelection)return;D(this,gc)[0]+=t,D(this,gc)[1]+=n;const[o,s]=D(this,gc),r=[...D(this,Yn)];D(this,oa)&&clearTimeout(D(this,oa)),Ce(this,oa,setTimeout(()=>{Ce(this,oa,null),D(this,gc)[0]=D(this,gc)[1]=0,this.addCommands({cmd:()=>{for(const a of r)D(this,Qi).has(a.id)&&a.translateInPage(o,s)},undo:()=>{for(const a of r)D(this,Qi).has(a.id)&&a.translateInPage(-o,-s)},mustExec:!1})},1e3));for(const a of r)a.translateInPage(t,n)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),Ce(this,na,new Map);for(const t of D(this,Yn))D(this,na).set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!D(this,na))return!1;this.disableUserSelect(!1);const t=D(this,na);Ce(this,na,null);let n=!1;for(const[{x:o,y:s,pageIndex:r},a]of t)a.newX=o,a.newY=s,a.newPageIndex=r,n||(n=o!==a.savedX||s!==a.savedY||r!==a.savedPageIndex);if(!n)return!1;const i=(o,s,r,a)=>{if(D(this,Qi).has(o.id)){const u=D(this,Ir).get(a);u?o._setParentAndPosition(u,s,r):(o.pageIndex=a,o.x=s,o.y=r)}};return this.addCommands({cmd:()=>{for(const[o,{newX:s,newY:r,newPageIndex:a}]of t)i(o,s,r,a)},undo:()=>{for(const[o,{savedX:s,savedY:r,savedPageIndex:a}]of t)i(o,s,r,a)},mustExec:!0}),!0}dragSelectedEditors(t,n){if(D(this,na))for(const i of D(this,na).keys())i.drag(t,n)}rebuild(t){if(t.parent===null){const n=this.getLayer(t.pageIndex);n?(n.changeParent(t),n.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild())}else t.parent.addOrRebuild(t)}get isEditorHandlingKeyboard(){var t;return((t=this.getActive())==null?void 0:t.shouldGetKeyboardEvents())||D(this,Yn).size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(t){return D(this,Po)===t}getActive(){return D(this,Po)}getMode(){return D(this,hr)}get imageManager(){return Pn(this,"imageManager",new BE)}getSelectionBoxes(t){if(!t)return null;const n=document.getSelection();for(let c=0,l=n.rangeCount;c<l;c++)if(!t.contains(n.getRangeAt(c).commonAncestorContainer))return null;const{x:i,y:o,width:s,height:r}=t.getBoundingClientRect();let a;switch(t.getAttribute("data-main-rotation")){case"90":a=(c,l,g,C)=>({x:(l-o)/r,y:1-(c+g-i)/s,width:C/r,height:g/s});break;case"180":a=(c,l,g,C)=>({x:1-(c+g-i)/s,y:1-(l+C-o)/r,width:g/s,height:C/r});break;case"270":a=(c,l,g,C)=>({x:1-(l+C-o)/r,y:(c-i)/s,width:C/r,height:g/s});break;default:a=(c,l,g,C)=>({x:(c-i)/s,y:(l-o)/r,width:g/s,height:C/r})}const u=[];for(let c=0,l=n.rangeCount;c<l;c++){const g=n.getRangeAt(c);if(!g.collapsed)for(const{x:C,y:S,width:_,height:A}of g.getClientRects())_!==0&&A!==0&&u.push(a(C,S,_,A))}return u.length===0?null:u}addChangedExistingAnnotation({annotationElementId:t,id:n}){(D(this,ph)||Ce(this,ph,new Map)).set(t,n)}removeChangedExistingAnnotation({annotationElementId:t}){var n;(n=D(this,ph))==null||n.delete(t)}renderAnnotationElement(t){var o;const n=(o=D(this,ph))==null?void 0:o.get(t.data.id);if(!n)return;const i=D(this,Ga).getRawValue(n);i&&(D(this,hr)!==yn.NONE||i.hasBeenModified)&&i.renderAnnotationElement(t)}};let xl=WC;fh=new WeakMap,Po=new WeakMap,Qi=new WeakMap,Ir=new WeakMap,hh=new WeakMap,Ga=new WeakMap,ph=new WeakMap,ws=new WeakMap,fc=new WeakMap,mh=new WeakMap,Lu=new WeakMap,na=new WeakMap,_s=new WeakMap,Du=new WeakMap,ng=new WeakMap,ig=new WeakMap,vh=new WeakMap,rg=new WeakMap,ia=new WeakMap,hc=new WeakMap,gh=new WeakMap,pc=new WeakMap,ra=new WeakMap,OC=new WeakMap,mc=new WeakMap,og=new WeakMap,vc=new WeakMap,Nu=new WeakMap,sg=new WeakMap,ag=new WeakMap,hr=new WeakMap,Yn=new WeakMap,Ya=new WeakMap,ju=new WeakMap,lg=new WeakMap,cg=new WeakMap,gc=new WeakMap,oa=new WeakMap,Xa=new WeakMap,ug=new WeakMap,qo=new WeakMap,yh=new WeakSet,Yb=function({anchorNode:t}){return t.nodeType===Node.TEXT_NODE?t.parentElement:t},dg=new WeakSet,FE=function(t){const{currentLayer:n}=this;if(n.hasTextLayer(t))return n;for(const i of D(this,Ir).values())if(i.hasTextLayer(t))return i;return null},LC=new WeakSet,_W=function(){const t=document.getSelection();if(!t||t.isCollapsed)return;const n=_e(this,yh,Yb).call(this,t).closest(".textLayer"),i=this.getSelectionBoxes(n);i&&(D(this,ra)||Ce(this,ra,new WUe(this)),D(this,ra).show(n,i,this.direction==="ltr"))},DC=new WeakSet,IW=function(){var o,s,r;const t=document.getSelection();if(!t||t.isCollapsed){D(this,Ya)&&((o=D(this,ra))==null||o.hide(),Ce(this,Ya,null),_e(this,xr,qr).call(this,{hasSelectedText:!1}));return}const{anchorNode:n}=t;if(n===D(this,Ya))return;const i=_e(this,yh,Yb).call(this,t).closest(".textLayer");if(i){if((s=D(this,ra))==null||s.hide(),Ce(this,Ya,n),_e(this,xr,qr).call(this,{hasSelectedText:!0}),(D(this,hr)===yn.HIGHLIGHT||D(this,hr)===yn.NONE)&&(D(this,hr)===yn.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),Ce(this,pc,this.isShiftKeyDown),!this.isShiftKeyDown)){const a=D(this,hr)===yn.HIGHLIGHT?_e(this,dg,FE).call(this,i):null;a==null||a.toggleDrawing();const u=new AbortController,c=this.combinedSignal(u),l=g=>{(g.type!=="pointerup"||g.button===0)&&(u.abort(),a==null||a.toggleDrawing(!0),g.type==="pointerup"&&_e(this,bh,Xb).call(this,"main_toolbar"))};window.addEventListener("pointerup",l,{signal:c}),window.addEventListener("blur",l,{signal:c})}}else D(this,Ya)&&((r=D(this,ra))==null||r.hide(),Ce(this,Ya,null),_e(this,xr,qr).call(this,{hasSelectedText:!1}))},bh=new WeakSet,Xb=function(t=""){D(this,hr)===yn.HIGHLIGHT?this.highlightSelection(t):D(this,ng)&&_e(this,LC,_W).call(this)},NC=new WeakSet,xW=function(){document.addEventListener("selectionchange",_e(this,DC,IW).bind(this),{signal:this._signal})},jC=new WeakSet,$W=function(){if(D(this,hc))return;Ce(this,hc,new AbortController);const t=this.combinedSignal(D(this,hc));window.addEventListener("focus",this.focus.bind(this),{signal:t}),window.addEventListener("blur",this.blur.bind(this),{signal:t})},zC=new WeakSet,AW=function(){var t;(t=D(this,hc))==null||t.abort(),Ce(this,hc,null)},fg=new WeakSet,VE=function(){if(D(this,vc))return;Ce(this,vc,new AbortController);const t=this.combinedSignal(D(this,vc));window.addEventListener("keydown",this.keydown.bind(this),{signal:t}),window.addEventListener("keyup",this.keyup.bind(this),{signal:t})},RC=new WeakSet,EW=function(){var t;(t=D(this,vc))==null||t.abort(),Ce(this,vc,null)},hg=new WeakSet,HE=function(){if(D(this,fc))return;Ce(this,fc,new AbortController);const t=this.combinedSignal(D(this,fc));document.addEventListener("copy",this.copy.bind(this),{signal:t}),document.addEventListener("cut",this.cut.bind(this),{signal:t}),document.addEventListener("paste",this.paste.bind(this),{signal:t})},pg=new WeakSet,WE=function(){var t;(t=D(this,fc))==null||t.abort(),Ce(this,fc,null)},BC=new WeakSet,MW=function(){const t=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:t}),document.addEventListener("drop",this.drop.bind(this),{signal:t})},xr=new WeakSet,qr=function(t){Object.entries(t).some(([n,i])=>D(this,cg)[n]!==i)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(D(this,cg),t)}),D(this,hr)===yn.HIGHLIGHT&&t.hasSelectedEditor===!1&&_e(this,sa,Ql).call(this,[[un.HIGHLIGHT_FREE,!0]]))},sa=new WeakSet,Ql=function(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})},FC=new WeakSet,TW=async function(){if(!D(this,mc)){Ce(this,mc,!0);const t=[];for(const n of D(this,Ir).values())t.push(n.enable());await Promise.all(t);for(const n of D(this,Qi).values())n.enable()}},VC=new WeakSet,PW=function(){if(this.unselectAll(),D(this,mc)){Ce(this,mc,!1);for(const t of D(this,Ir).values())t.disable();for(const t of D(this,Qi).values())t.disable()}},mg=new WeakSet,UE=function(t){const n=D(this,Ir).get(t.pageIndex);n?n.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))},HC=new WeakSet,OW=function(){let t=null;for(t of D(this,Yn));return t},zu=new WeakSet,Rm=function(){if(D(this,Qi).size===0)return!0;if(D(this,Qi).size===1)for(const t of D(this,Qi).values())return t.isEmpty();return!1},vg=new WeakSet,ZE=function(t){for(const n of D(this,Yn))n.unselect();D(this,Yn).clear();for(const n of t)n.isEmpty()||(D(this,Yn).add(n),n.select());_e(this,xr,qr).call(this,{hasSelectedEditor:this.hasSelection})},Wt(xl,"TRANSLATE_SMALL",1),Wt(xl,"TRANSLATE_BIG",10);var pr,aa,Is,kh,la,Oo,Ch,ca,go,Ka,Ru,ua,yc,Bu,Bm,Sh,Kb;const Eo=class{constructor(t){ue(this,Bu);ue(this,Sh);ue(this,pr,null);ue(this,aa,!1);ue(this,Is,null);ue(this,kh,null);ue(this,la,null);ue(this,Oo,null);ue(this,Ch,!1);ue(this,ca,null);ue(this,go,null);ue(this,Ka,null);ue(this,Ru,null);ue(this,ua,!1);Ce(this,go,t),Ce(this,ua,t._uiManager.useNewAltTextFlow),D(Eo,yc)||Ce(Eo,yc,Object.freeze({added:"pdfjs-editor-new-alt-text-added-button","added-label":"pdfjs-editor-new-alt-text-added-button-label",missing:"pdfjs-editor-new-alt-text-missing-button","missing-label":"pdfjs-editor-new-alt-text-missing-button-label",review:"pdfjs-editor-new-alt-text-to-review-button","review-label":"pdfjs-editor-new-alt-text-to-review-button-label"}))}static initialize(t){Eo._l10n??(Eo._l10n=t)}async render(){const t=Ce(this,Is,document.createElement("button"));t.className="altText",t.tabIndex="0";const n=Ce(this,kh,document.createElement("span"));t.append(n),D(this,ua)?(t.classList.add("new"),t.setAttribute("data-l10n-id",D(Eo,yc).missing),n.setAttribute("data-l10n-id",D(Eo,yc)["missing-label"])):(t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button"),n.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button-label"));const i=D(this,go)._uiManager._signal;t.addEventListener("contextmenu",ds,{signal:i}),t.addEventListener("pointerdown",s=>s.stopPropagation(),{signal:i});const o=s=>{s.preventDefault(),D(this,go)._uiManager.editAltText(D(this,go)),D(this,ua)&&D(this,go)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:D(this,Bu,Bm)}})};return t.addEventListener("click",o,{capture:!0,signal:i}),t.addEventListener("keydown",s=>{s.target===t&&s.key==="Enter"&&(Ce(this,Ch,!0),o(s))},{signal:i}),await _e(this,Sh,Kb).call(this),t}finish(){D(this,Is)&&(D(this,Is).focus({focusVisible:D(this,Ch)}),Ce(this,Ch,!1))}isEmpty(){return D(this,ua)?D(this,pr)===null:!D(this,pr)&&!D(this,aa)}hasData(){return D(this,ua)?D(this,pr)!==null||!!D(this,Ka):this.isEmpty()}get guessedText(){return D(this,Ka)}async setGuessedText(t){D(this,pr)===null&&(Ce(this,Ka,t),Ce(this,Ru,await Eo._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:t})),_e(this,Sh,Kb).call(this))}toggleAltTextBadge(t=!1){var n;if(D(this,ua)&&!D(this,pr)){if(!D(this,ca)){const i=Ce(this,ca,document.createElement("div"));i.className="noAltTextBadge",D(this,go).div.append(i)}D(this,ca).classList.toggle("hidden",!t)}else(n=D(this,ca))==null||n.remove(),Ce(this,ca,null)}serialize(t){let n=D(this,pr);return t||D(this,Ka)!==n||(n=D(this,Ru)),{altText:n,decorative:D(this,aa),guessedText:D(this,Ka),textWithDisclaimer:D(this,Ru)}}get data(){return{altText:D(this,pr),decorative:D(this,aa)}}set data({altText:t,decorative:n,guessedText:i,textWithDisclaimer:o,cancel:s=!1}){i&&(Ce(this,Ka,i),Ce(this,Ru,o)),(D(this,pr)!==t||D(this,aa)!==n)&&(s||(Ce(this,pr,t),Ce(this,aa,n)),_e(this,Sh,Kb).call(this))}toggle(t=!1){D(this,Is)&&(!t&&D(this,Oo)&&(clearTimeout(D(this,Oo)),Ce(this,Oo,null)),D(this,Is).disabled=!t)}shown(){D(this,go)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:D(this,Bu,Bm)}})}destroy(){var t,n;(t=D(this,Is))==null||t.remove(),Ce(this,Is,null),Ce(this,kh,null),Ce(this,la,null),(n=D(this,ca))==null||n.remove(),Ce(this,ca,null)}};let Vf=Eo;pr=new WeakMap,aa=new WeakMap,Is=new WeakMap,kh=new WeakMap,la=new WeakMap,Oo=new WeakMap,Ch=new WeakMap,ca=new WeakMap,go=new WeakMap,Ka=new WeakMap,Ru=new WeakMap,ua=new WeakMap,yc=new WeakMap,Bu=new WeakSet,Bm=function(){return(D(this,pr)?"added":D(this,pr)===null&&this.guessedText&&"review")||"missing"},Sh=new WeakSet,Kb=async function(){var o,s,r;const t=D(this,Is);if(!t)return;if(D(this,ua)){if(t.classList.toggle("done",!!D(this,pr)),t.setAttribute("data-l10n-id",D(Eo,yc)[D(this,Bu,Bm)]),(o=D(this,kh))==null||o.setAttribute("data-l10n-id",D(Eo,yc)[`${D(this,Bu,Bm)}-label`]),!D(this,pr)){(s=D(this,la))==null||s.remove();return}}else{if(!D(this,pr)&&!D(this,aa)){t.classList.remove("done"),(r=D(this,la))==null||r.remove();return}t.classList.add("done"),t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let n=D(this,la);if(!n){Ce(this,la,n=document.createElement("span")),n.className="tooltip",n.setAttribute("role","tooltip"),n.id=`alt-text-tooltip-${D(this,go).id}`;const a=100,u=D(this,go)._uiManager._signal;u.addEventListener("abort",()=>{clearTimeout(D(this,Oo)),Ce(this,Oo,null)},{once:!0}),t.addEventListener("mouseenter",()=>{Ce(this,Oo,setTimeout(()=>{Ce(this,Oo,null),D(this,la).classList.add("show"),D(this,go)._reportTelemetry({action:"alt_text_tooltip"})},a))},{signal:u}),t.addEventListener("mouseleave",()=>{var c;D(this,Oo)&&(clearTimeout(D(this,Oo)),Ce(this,Oo,null)),(c=D(this,la))==null||c.classList.remove("show")},{signal:u})}D(this,aa)?n.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(n.removeAttribute("data-l10n-id"),n.textContent=D(this,pr)),n.parentNode||t.append(n);const i=D(this,go).getImageForAltText();i==null||i.setAttribute("aria-describedby",n.id)},ue(Vf,yc,null),Wt(Vf,"_l10n",null);var Fu,xs,_i,wh,Vu,$r,Hu,bc,gg,Wu,kc,yg,Uu,Ja,da,_h,Ih,Qo,bg,UC,kg,GE,Cg,YE,Sg,XE,ZC,LW,GC,DW,wg,KE,_g,JE,Ig,qE,YC,NW,xg,QE,XC,jW,KC,zW,JC,RW,$g,eM,Zu,Fm;const wi=class{constructor(t){ue(this,kg);ue(this,Sg);ue(this,ZC);ue(this,GC);ue(this,wg);ue(this,_g);ue(this,Ig);ue(this,YC);ue(this,xg);ue(this,XC);ue(this,KC);ue(this,JC);ue(this,$g);ue(this,Zu);ue(this,Fu,null);ue(this,xs,null);ue(this,_i,null);ue(this,wh,!1);ue(this,Vu,!1);ue(this,$r,null);ue(this,Hu,null);ue(this,bc,null);ue(this,gg,"");ue(this,Wu,!1);ue(this,kc,null);ue(this,yg,!1);ue(this,Uu,!1);ue(this,Ja,!1);ue(this,da,null);ue(this,_h,0);ue(this,Ih,0);ue(this,Qo,null);Wt(this,"_editToolbar",null);Wt(this,"_initialOptions",Object.create(null));Wt(this,"_initialData",null);Wt(this,"_isVisible",!0);Wt(this,"_uiManager",null);Wt(this,"_focusEventsAllowed",!0);ue(this,bg,!1);ue(this,UC,wi._zIndex++);this.parent=t.parent,this.id=t.id,this.width=this.height=null,this.pageIndex=t.parent.pageIndex,this.name=t.name,this.div=null,this._uiManager=t.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=t.isCentered,this._structTreeParentId=null;const{rotation:n,rawDims:{pageWidth:i,pageHeight:o,pageX:s,pageY:r}}=this.parent.viewport;this.rotation=n,this.pageRotation=(360+n-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[i,o],this.pageTranslation=[s,r];const[a,u]=this.parentDimensions;this.x=t.x/a,this.y=t.y/u,this.isAttachedToDOM=!1,this.deleted=!1}static get _resizerKeyboardManager(){const t=wi.prototype._resizeWithKeyboard,n=xl.TRANSLATE_SMALL,i=xl.TRANSLATE_BIG;return Pn(this,"_resizerKeyboardManager",new I1([[["ArrowLeft","mac+ArrowLeft"],t,{args:[-n,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t,{args:[-i,0]}],[["ArrowRight","mac+ArrowRight"],t,{args:[n,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t,{args:[i,0]}],[["ArrowUp","mac+ArrowUp"],t,{args:[0,-n]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t,{args:[0,-i]}],[["ArrowDown","mac+ArrowDown"],t,{args:[0,n]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t,{args:[0,i]}],[["Escape","mac+Escape"],wi.prototype._stopResizingWithKeyboard]]))}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return Pn(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(t){const n=new GUe({id:t.parent.getNextId(),parent:t.parent,uiManager:t._uiManager});n.annotationElementId=t.annotationElementId,n.deleted=!0,n._uiManager.addToAnnotationStorage(n)}static initialize(t,n){if(wi._l10n??(wi._l10n=t),wi._l10nResizer||(wi._l10nResizer=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"})),wi._borderLineWidth!==-1)return;const i=getComputedStyle(document.documentElement);wi._borderLineWidth=parseFloat(i.getPropertyValue("--outline-width"))||0}static updateDefaultParams(t,n){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(t){return!1}static paste(t,n){vi("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return D(this,bg)}set _isDraggable(t){var n;Ce(this,bg,t),(n=this.div)==null||n.classList.toggle("draggable",t)}get isEnterHandled(){return!0}center(){const[t,n]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*n/(2*t),this.y+=this.width*t/(2*n);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*n/(2*t),this.y-=this.width*t/(2*n);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(t){this._uiManager.addCommands(t)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=D(this,UC)}setParent(t){t!==null?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):_e(this,Zu,Fm).call(this),this.parent=t}focusin(t){this._focusEventsAllowed&&(D(this,Wu)?Ce(this,Wu,!1):this.parent.setSelected(this))}focusout(t){var i;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const n=t.relatedTarget;n!=null&&n.closest(`#${this.id}`)||(t.preventDefault(),(i=this.parent)!=null&&i.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(t,n,i,o){const[s,r]=this.parentDimensions;[i,o]=this.screenToPageTranslation(i,o),this.x=(t+i)/s,this.y=(n+o)/r,this.fixAndSetPosition()}translate(t,n){_e(this,kg,GE).call(this,this.parentDimensions,t,n)}translateInPage(t,n){D(this,kc)||Ce(this,kc,[this.x,this.y]),_e(this,kg,GE).call(this,this.pageDimensions,t,n),this.div.scrollIntoView({block:"nearest"})}drag(t,n){D(this,kc)||Ce(this,kc,[this.x,this.y]);const[i,o]=this.parentDimensions;if(this.x+=t/i,this.y+=n/o,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:c,y:l}=this.div.getBoundingClientRect();this.parent.findNewParent(this,c,l)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:s,y:r}=this;const[a,u]=this.getBaseTranslation();s+=a,r+=u,this.div.style.left=`${(100*s).toFixed(2)}%`,this.div.style.top=`${(100*r).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}get _hasBeenMoved(){return!!D(this,kc)&&(D(this,kc)[0]!==this.x||D(this,kc)[1]!==this.y)}getBaseTranslation(){const[t,n]=this.parentDimensions,{_borderLineWidth:i}=wi,o=i/t,s=i/n;switch(this.rotation){case 90:return[-o,s];case 180:return[o,s];case 270:return[o,-s];default:return[-o,-s]}}get _mustFixPosition(){return!0}fixAndSetPosition(t=this.rotation){const[n,i]=this.pageDimensions;let{x:o,y:s,width:r,height:a}=this;if(r*=n,a*=i,o*=n,s*=i,this._mustFixPosition)switch(t){case 0:o=Math.max(0,Math.min(n-r,o)),s=Math.max(0,Math.min(i-a,s));break;case 90:o=Math.max(0,Math.min(n-a,o)),s=Math.min(i,Math.max(r,s));break;case 180:o=Math.min(n,Math.max(r,o)),s=Math.min(i,Math.max(a,s));break;case 270:o=Math.min(n,Math.max(a,o)),s=Math.max(0,Math.min(i-r,s))}this.x=o/=n,this.y=s/=i;const[u,c]=this.getBaseTranslation();o+=u,s+=c;const{style:l}=this.div;l.left=`${(100*o).toFixed(2)}%`,l.top=`${(100*s).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(t,n){var i;return _e(i=wi,Cg,YE).call(i,t,n,this.parentRotation)}pageTranslationToScreen(t,n){var i;return _e(i=wi,Cg,YE).call(i,t,n,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:t,pageDimensions:[n,i]}=this;return[n*t,i*t]}setDims(t,n){const[i,o]=this.parentDimensions;this.div.style.width=`${(100*t/i).toFixed(2)}%`,D(this,Vu)||(this.div.style.height=`${(100*n/o).toFixed(2)}%`)}fixDims(){const{style:t}=this.div,{height:n,width:i}=t,o=i.endsWith("%"),s=!D(this,Vu)&&n.endsWith("%");if(o&&s)return;const[r,a]=this.parentDimensions;o||(t.width=`${(100*parseFloat(i)/r).toFixed(2)}%`),D(this,Vu)||s||(t.height=`${(100*parseFloat(n)/a).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}altTextFinish(){var t;(t=D(this,_i))==null||t.finish()}async addEditToolbar(){return this._editToolbar||D(this,Uu)?this._editToolbar:(this._editToolbar=new zm(this),this.div.append(this._editToolbar.render()),D(this,_i)&&await this._editToolbar.addAltText(D(this,_i)),this._editToolbar)}removeEditToolbar(){var t;this._editToolbar&&(this._editToolbar.remove(),this._editToolbar=null,(t=D(this,_i))==null||t.destroy())}addContainer(t){var i;const n=(i=this._editToolbar)==null?void 0:i.div;n?n.before(t):this.div.append(t)}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){D(this,_i)||(Vf.initialize(wi._l10n),Ce(this,_i,new Vf(this)),D(this,Fu)&&(D(this,_i).data=D(this,Fu),Ce(this,Fu,null)),await this.addEditToolbar())}get altTextData(){var t;return(t=D(this,_i))==null?void 0:t.data}set altTextData(t){D(this,_i)&&(D(this,_i).data=t)}get guessedAltText(){var t;return(t=D(this,_i))==null?void 0:t.guessedText}async setGuessedAltText(t){var n;await((n=D(this,_i))==null?void 0:n.setGuessedText(t))}serializeAltText(t){var n;return(n=D(this,_i))==null?void 0:n.serialize(t)}hasAltText(){return!!D(this,_i)&&!D(this,_i).isEmpty()}hasAltTextData(){var t;return((t=D(this,_i))==null?void 0:t.hasData())??!1}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=D(this,wh)?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground(),_e(this,xg,QE).call(this);const[t,n]=this.parentDimensions;this.parentRotation%180!=0&&(this.div.style.maxWidth=`${(100*n/t).toFixed(2)}%`,this.div.style.maxHeight=`${(100*t/n).toFixed(2)}%`);const[i,o]=this.getInitialTranslation();return this.translate(i,o),mC(this,this.div,["pointerdown"]),this.div}pointerdown(t){const{isMac:n}=ao.platform;t.button!==0||t.ctrlKey&&n?t.preventDefault():(Ce(this,Wu,!0),this._isDraggable?_e(this,YC,NW).call(this,t):_e(this,Ig,qE).call(this,t))}get isSelected(){return this._uiManager.isSelected(this)}moveInDOM(){D(this,da)&&clearTimeout(D(this,da)),Ce(this,da,setTimeout(()=>{var t;Ce(this,da,null),(t=this.parent)==null||t.moveEditorInDOM(this)},0))}_setParentAndPosition(t,n,i){t.changeParent(this),this.x=n,this.y=i,this.fixAndSetPosition()}getRect(t,n,i=this.rotation){const o=this.parentScale,[s,r]=this.pageDimensions,[a,u]=this.pageTranslation,c=t/o,l=n/o,g=this.x*s,C=this.y*r,S=this.width*s,_=this.height*r;switch(i){case 0:return[g+c+a,r-C-l-_+u,g+c+S+a,r-C-l+u];case 90:return[g+l+a,r-C+c+u,g+l+_+a,r-C+c+S+u];case 180:return[g-c-S+a,r-C+l+u,g-c+a,r-C+l+_+u];case 270:return[g-l-_+a,r-C-c-S+u,g-l+a,r-C-c+u];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(t,n){const[i,o,s,r]=t,a=s-i,u=r-o;switch(this.rotation){case 0:return[i,n-r,a,u];case 90:return[i,n-o,u,a];case 180:return[s,n-o,a,u];case 270:return[s,n-r,u,a];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){Ce(this,Uu,!0)}disableEditMode(){Ce(this,Uu,!1)}isInEditMode(){return D(this,Uu)}shouldGetKeyboardEvents(){return D(this,Ja)}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){_e(this,xg,QE).call(this)}rotate(t){}serializeDeleted(){var t;return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:((t=this._initialData)==null?void 0:t.popupRef)||""}}serialize(t=!1,n=null){vi("An editor must be serializable")}static async deserialize(t,n,i){const o=new this.prototype.constructor({parent:n,id:n.getNextId(),uiManager:i});o.rotation=t.rotation,Ce(o,Fu,t.accessibilityData);const[s,r]=o.pageDimensions,[a,u,c,l]=o.getRectInCurrentCoords(t.rect,r);return o.x=a/s,o.y=u/r,o.width=c/s,o.height=l/r,o}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){var t;if((t=D(this,bc))==null||t.abort(),Ce(this,bc,null),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),D(this,da)&&(clearTimeout(D(this,da)),Ce(this,da,null)),_e(this,Zu,Fm).call(this),this.removeEditToolbar(),D(this,Qo)){for(const n of D(this,Qo).values())clearTimeout(n);Ce(this,Qo,null)}this.parent=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(_e(this,ZC,LW).call(this),D(this,$r).classList.remove("hidden"),mC(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(t){if(!this.isResizable||t.target!==this.div||t.key!=="Enter")return;this._uiManager.setSelected(this),Ce(this,Hu,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const n=D(this,$r).children;if(!D(this,xs)){Ce(this,xs,Array.from(n));const r=_e(this,XC,jW).bind(this),a=_e(this,KC,zW).bind(this),u=this._uiManager._signal;for(const c of D(this,xs)){const l=c.getAttribute("data-resizer-name");c.setAttribute("role","spinbutton"),c.addEventListener("keydown",r,{signal:u}),c.addEventListener("blur",a,{signal:u}),c.addEventListener("focus",_e(this,JC,RW).bind(this,l),{signal:u}),c.setAttribute("data-l10n-id",wi._l10nResizer[l])}}const i=D(this,xs)[0];let o=0;for(const r of n){if(r===i)break;o++}const s=(360-this.rotation+this.parentRotation)%360/90*(D(this,xs).length/4);if(s!==o){if(s<o)for(let a=0;a<o-s;a++)D(this,$r).append(D(this,$r).firstChild);else if(s>o)for(let a=0;a<s-o;a++)D(this,$r).firstChild.before(D(this,$r).lastChild);let r=0;for(const a of n){const u=D(this,xs)[r++].getAttribute("data-resizer-name");a.setAttribute("data-l10n-id",wi._l10nResizer[u])}}_e(this,$g,eM).call(this,0),Ce(this,Ja,!0),D(this,$r).firstChild.focus({focusVisible:!0}),t.preventDefault(),t.stopImmediatePropagation()}_resizeWithKeyboard(t,n){D(this,Ja)&&_e(this,_g,JE).call(this,D(this,gg),{movementX:t,movementY:n})}_stopResizingWithKeyboard(){_e(this,Zu,Fm).call(this),this.div.focus()}select(){var t,n,i;this.makeResizable(),(t=this.div)==null||t.classList.add("selectedEditor"),this._editToolbar?((n=this._editToolbar)==null||n.show(),(i=D(this,_i))==null||i.toggleAltTextBadge(!1)):this.addEditToolbar().then(()=>{var o,s;(o=this.div)!=null&&o.classList.contains("selectedEditor")&&((s=this._editToolbar)==null||s.show())})}unselect(){var t,n,i,o,s;(t=D(this,$r))==null||t.classList.add("hidden"),(n=this.div)==null||n.classList.remove("selectedEditor"),(i=this.div)!=null&&i.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),(o=this._editToolbar)==null||o.hide(),(s=D(this,_i))==null||s.toggleAltTextBadge(!0)}updateParams(t,n){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return D(this,yg)}set isEditing(t){Ce(this,yg,t),this.parent&&(t?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(t,n){Ce(this,Vu,!0);const i=t/n,{style:o}=this.div;o.aspectRatio=i,o.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(t,n=!1){if(n){D(this,Qo)||Ce(this,Qo,new Map);const{action:i}=t;let o=D(this,Qo).get(i);o&&clearTimeout(o),o=setTimeout(()=>{this._reportTelemetry(t),D(this,Qo).delete(i),D(this,Qo).size===0&&Ce(this,Qo,null)},wi._telemetryTimeout),D(this,Qo).set(i,o)}else t.type||(t.type=this.editorType),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:t}})}show(t=this._isVisible){this.div.classList.toggle("hidden",!t),this._isVisible=t}enable(){this.div&&(this.div.tabIndex=0),Ce(this,wh,!1)}disable(){this.div&&(this.div.tabIndex=-1),Ce(this,wh,!0)}renderAnnotationElement(t){let n=t.container.querySelector(".annotationContent");if(n){if(n.nodeName==="CANVAS"){const i=n;n=document.createElement("div"),n.classList.add("annotationContent",this.editorType),i.before(n)}}else n=document.createElement("div"),n.classList.add("annotationContent",this.editorType),t.container.prepend(n);return n}resetAnnotationElement(t){const{firstChild:n}=t.container;(n==null?void 0:n.nodeName)==="DIV"&&n.classList.contains("annotationContent")&&n.remove()}};let En=wi;Fu=new WeakMap,xs=new WeakMap,_i=new WeakMap,wh=new WeakMap,Vu=new WeakMap,$r=new WeakMap,Hu=new WeakMap,bc=new WeakMap,gg=new WeakMap,Wu=new WeakMap,kc=new WeakMap,yg=new WeakMap,Uu=new WeakMap,Ja=new WeakMap,da=new WeakMap,_h=new WeakMap,Ih=new WeakMap,Qo=new WeakMap,bg=new WeakMap,UC=new WeakMap,kg=new WeakSet,GE=function([t,n],i,o){[i,o]=this.screenToPageTranslation(i,o),this.x+=i/t,this.y+=o/n,this.fixAndSetPosition()},Cg=new WeakSet,YE=function(t,n,i){switch(i){case 90:return[n,-t];case 180:return[-t,-n];case 270:return[-n,t];default:return[t,n]}},Sg=new WeakSet,XE=function(t){switch(t){case 90:{const[n,i]=this.pageDimensions;return[0,-n/i,i/n,0]}case 180:return[-1,0,0,-1];case 270:{const[n,i]=this.pageDimensions;return[0,n/i,-i/n,0]}default:return[1,0,0,1]}},ZC=new WeakSet,LW=function(){if(D(this,$r))return;Ce(this,$r,document.createElement("div")),D(this,$r).classList.add("resizers");const t=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],n=this._uiManager._signal;for(const i of t){const o=document.createElement("div");D(this,$r).append(o),o.classList.add("resizer",i),o.setAttribute("data-resizer-name",i),o.addEventListener("pointerdown",_e(this,GC,DW).bind(this,i),{signal:n}),o.addEventListener("contextmenu",ds,{signal:n}),o.tabIndex=-1}this.div.prepend(D(this,$r))},GC=new WeakSet,DW=function(t,n){var _;n.preventDefault();const{isMac:i}=ao.platform;if(n.button!==0||n.ctrlKey&&i)return;(_=D(this,_i))==null||_.toggle(!1);const o=this._isDraggable;this._isDraggable=!1;const s=new AbortController,r=this._uiManager.combinedSignal(s);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",_e(this,_g,JE).bind(this,t),{passive:!0,capture:!0,signal:r}),window.addEventListener("contextmenu",ds,{signal:r});const a=this.x,u=this.y,c=this.width,l=this.height,g=this.parent.div.style.cursor,C=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(n.target).cursor;const S=()=>{var A;s.abort(),this.parent.togglePointerEvents(!0),(A=D(this,_i))==null||A.toggle(!0),this._isDraggable=o,this.parent.div.style.cursor=g,this.div.style.cursor=C,_e(this,wg,KE).call(this,a,u,c,l)};window.addEventListener("pointerup",S,{signal:r}),window.addEventListener("blur",S,{signal:r})},wg=new WeakSet,KE=function(t,n,i,o){const s=this.x,r=this.y,a=this.width,u=this.height;s===t&&r===n&&a===i&&u===o||this.addCommands({cmd:()=>{this.width=a,this.height=u,this.x=s,this.y=r;const[c,l]=this.parentDimensions;this.setDims(c*a,l*u),this.fixAndSetPosition()},undo:()=>{this.width=i,this.height=o,this.x=t,this.y=n;const[c,l]=this.parentDimensions;this.setDims(c*i,l*o),this.fixAndSetPosition()},mustExec:!0})},_g=new WeakSet,JE=function(t,n){const[i,o]=this.parentDimensions,s=this.x,r=this.y,a=this.width,u=this.height,c=wi.MIN_SIZE/i,l=wi.MIN_SIZE/o,g=U=>Math.round(1e4*U)/1e4,C=_e(this,Sg,XE).call(this,this.rotation),S=(U,Q)=>[C[0]*U+C[2]*Q,C[1]*U+C[3]*Q],_=_e(this,Sg,XE).call(this,360-this.rotation);let A,y,d=!1,v=!1;switch(t){case"topLeft":d=!0,A=(U,Q)=>[0,0],y=(U,Q)=>[U,Q];break;case"topMiddle":A=(U,Q)=>[U/2,0],y=(U,Q)=>[U/2,Q];break;case"topRight":d=!0,A=(U,Q)=>[U,0],y=(U,Q)=>[0,Q];break;case"middleRight":v=!0,A=(U,Q)=>[U,Q/2],y=(U,Q)=>[0,Q/2];break;case"bottomRight":d=!0,A=(U,Q)=>[U,Q],y=(U,Q)=>[0,0];break;case"bottomMiddle":A=(U,Q)=>[U/2,Q],y=(U,Q)=>[U/2,0];break;case"bottomLeft":d=!0,A=(U,Q)=>[0,Q],y=(U,Q)=>[U,0];break;case"middleLeft":v=!0,A=(U,Q)=>[0,Q/2],y=(U,Q)=>[U,Q/2]}const m=A(a,u),f=y(a,u);let p=S(...f);const h=g(s+p[0]),b=g(r+p[1]);let w=1,k=1,[$,E]=this.screenToPageTranslation(n.movementX,n.movementY);[$,E]=(N=$/i,j=E/o,[_[0]*N+_[2]*j,_[1]*N+_[3]*j]);var N,j;if(d){const U=Math.hypot(a,u);w=k=Math.max(Math.min(Math.hypot(f[0]-m[0]-$,f[1]-m[1]-E)/U,1/a,1/u),c/a,l/u)}else v?w=Math.max(c,Math.min(1,Math.abs(f[0]-m[0]-$)))/a:k=Math.max(l,Math.min(1,Math.abs(f[1]-m[1]-E)))/u;const z=g(a*w),V=g(u*k);p=S(...y(z,V));const W=h-p[0],H=b-p[1];this.width=z,this.height=V,this.x=W,this.y=H,this.setDims(i*z,o*V),this.fixAndSetPosition()},Ig=new WeakSet,qE=function(t){const{isMac:n}=ao.platform;t.ctrlKey&&!n||t.shiftKey||t.metaKey&&n?this.parent.toggleSelected(this):this.parent.setSelected(this)},YC=new WeakSet,NW=function(t){const{isSelected:n}=this;this._uiManager.setUpDragSession();const i=new AbortController,o=this._uiManager.combinedSignal(i);if(n){this.div.classList.add("moving"),Ce(this,_h,t.clientX),Ce(this,Ih,t.clientY);const r=a=>{const{clientX:u,clientY:c}=a,[l,g]=this.screenToPageTranslation(u-D(this,_h),c-D(this,Ih));Ce(this,_h,u),Ce(this,Ih,c),this._uiManager.dragSelectedEditors(l,g)};window.addEventListener("pointermove",r,{passive:!0,capture:!0,signal:o})}const s=()=>{i.abort(),n&&this.div.classList.remove("moving"),Ce(this,Wu,!1),this._uiManager.endDragSession()||_e(this,Ig,qE).call(this,t)};window.addEventListener("pointerup",s,{signal:o}),window.addEventListener("blur",s,{signal:o})},xg=new WeakSet,QE=function(){if(D(this,bc)||!this.div)return;Ce(this,bc,new AbortController);const t=this._uiManager.combinedSignal(D(this,bc));this.div.addEventListener("focusin",this.focusin.bind(this),{signal:t}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:t})},XC=new WeakSet,jW=function(t){wi._resizerKeyboardManager.exec(this,t)},KC=new WeakSet,zW=function(t){var n;D(this,Ja)&&((n=t.relatedTarget)==null?void 0:n.parentNode)!==D(this,$r)&&_e(this,Zu,Fm).call(this)},JC=new WeakSet,RW=function(t){Ce(this,gg,D(this,Ja)?t:"")},$g=new WeakSet,eM=function(t){if(D(this,xs))for(const n of D(this,xs))n.tabIndex=t},Zu=new WeakSet,Fm=function(){if(Ce(this,Ja,!1),_e(this,$g,eM).call(this,-1),D(this,Hu)){const{savedX:t,savedY:n,savedWidth:i,savedHeight:o}=D(this,Hu);_e(this,wg,KE).call(this,t,n,i,o),Ce(this,Hu,null)}},ue(En,Cg),Wt(En,"_l10n",null),Wt(En,"_l10nResizer",null),Wt(En,"_borderLineWidth",-1),Wt(En,"_colorManager",new Gb),Wt(En,"_zIndex",1),Wt(En,"_telemetryTimeout",1e3);class GUe extends En{constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}}const h7=3285377520,Jo=4294901760,Yl=65535;class BW{constructor(t){this.h1=t?4294967295&t:h7,this.h2=t?4294967295&t:h7}update(t){let n,i;if(typeof t=="string"){n=new Uint8Array(2*t.length),i=0;for(let A=0,y=t.length;A<y;A++){const d=t.charCodeAt(A);d<=255?n[i++]=d:(n[i++]=d>>>8,n[i++]=255&d)}}else{if(!ArrayBuffer.isView(t))throw new Error("Invalid data format, must be a string or TypedArray.");n=t.slice(),i=n.byteLength}const o=i>>2,s=i-4*o,r=new Uint32Array(n.buffer,0,o);let a=0,u=0,c=this.h1,l=this.h2;const g=3432918353,C=461845907,S=11601,_=13715;for(let A=0;A<o;A++)1&A?(a=r[A],a=a*g&Jo|a*S&Yl,a=a<<15|a>>>17,a=a*C&Jo|a*_&Yl,c^=a,c=c<<13|c>>>19,c=5*c+3864292196):(u=r[A],u=u*g&Jo|u*S&Yl,u=u<<15|u>>>17,u=u*C&Jo|u*_&Yl,l^=u,l=l<<13|l>>>19,l=5*l+3864292196);switch(a=0,s){case 3:a^=n[4*o+2]<<16;case 2:a^=n[4*o+1]<<8;case 1:a^=n[4*o],a=a*g&Jo|a*S&Yl,a=a<<15|a>>>17,a=a*C&Jo|a*_&Yl,1&o?c^=a:l^=a}this.h1=c,this.h2=l}hexdigest(){let t=this.h1,n=this.h2;return t^=n>>>1,t=3981806797*t&Jo|36045*t&Yl,n=4283543511*n&Jo|(2950163797*(n<<16|t>>>16)&Jo)>>>16,t^=n>>>1,t=444984403*t&Jo|60499*t&Yl,n=3301882366*n&Jo|(3120437893*(n<<16|t>>>16)&Jo)>>>16,t^=n>>>1,(t>>>0).toString(16).padStart(8,"0")+(n>>>0).toString(16).padStart(8,"0")}}const tM=Object.freeze({map:null,hash:"",transfer:void 0});var Gu,Yu,mr,qC,FW;class nO{constructor(){ue(this,qC);ue(this,Gu,!1);ue(this,Yu,null);ue(this,mr,new Map);this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(t,n){const i=D(this,mr).get(t);return i===void 0?n:Object.assign(n,i)}getRawValue(t){return D(this,mr).get(t)}remove(t){if(D(this,mr).delete(t),D(this,mr).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const n of D(this,mr).values())if(n instanceof En)return;this.onAnnotationEditor(null)}}setValue(t,n){const i=D(this,mr).get(t);let o=!1;if(i!==void 0)for(const[s,r]of Object.entries(n))i[s]!==r&&(o=!0,i[s]=r);else o=!0,D(this,mr).set(t,n);o&&_e(this,qC,FW).call(this),n instanceof En&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(n.constructor._type)}has(t){return D(this,mr).has(t)}getAll(){return D(this,mr).size>0?JP(D(this,mr)):null}setAll(t){for(const[n,i]of Object.entries(t))this.setValue(n,i)}get size(){return D(this,mr).size}resetModified(){D(this,Gu)&&(Ce(this,Gu,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new VW(this)}get serializable(){if(D(this,mr).size===0)return tM;const t=new Map,n=new BW,i=[],o=Object.create(null);let s=!1;for(const[r,a]of D(this,mr)){const u=a instanceof En?a.serialize(!1,o):a;u&&(t.set(r,u),n.update(`${r}:${JSON.stringify(u)}`),s||(s=!!u.bitmap))}if(s)for(const r of t.values())r.bitmap&&i.push(r.bitmap);return t.size>0?{map:t,hash:n.hexdigest(),transfer:i}:tM}get editorStats(){let t=null;const n=new Map;for(const i of D(this,mr).values()){if(!(i instanceof En))continue;const o=i.telemetryFinalData;if(!o)continue;const{type:s}=o;n.has(s)||n.set(s,Object.getPrototypeOf(i).constructor),t||(t=Object.create(null));const r=t[s]||(t[s]=new Map);for(const[a,u]of Object.entries(o)){if(a==="type")continue;let c=r.get(a);c||(c=new Map,r.set(a,c));const l=c.get(u)??0;c.set(u,l+1)}}for(const[i,o]of n)t[i]=o.computeTelemetryFinalData(t[i]);return t}resetModifiedIds(){Ce(this,Yu,null)}get modifiedIds(){if(D(this,Yu))return D(this,Yu);const t=[];for(const n of D(this,mr).values())n instanceof En&&n.annotationElementId&&n.serialize()&&t.push(n.annotationElementId);return Ce(this,Yu,{ids:new Set(t),hash:t.join(",")})}}Gu=new WeakMap,Yu=new WeakMap,mr=new WeakMap,qC=new WeakSet,FW=function(){D(this,Gu)||(Ce(this,Gu,!0),typeof this.onSetModified=="function"&&this.onSetModified())};var Ag;class VW extends nO{constructor(n){super();ue(this,Ag,void 0);const{map:i,hash:o,transfer:s}=n.serializable,r=structuredClone(i,s?{transfer:s}:null);Ce(this,Ag,{map:r,hash:o,transfer:s})}get print(){vi("Should not call PrintAnnotationStorage.print")}get serializable(){return D(this,Ag)}get modifiedIds(){return Pn(this,"modifiedIds",{ids:new Set,hash:""})}}Ag=new WeakMap;var xh;class YUe{constructor({ownerDocument:t=globalThis.document,styleElement:n=null}){ue(this,xh,new Set);this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(t){this.nativeFontFaces.add(t),this._document.fonts.add(t)}removeNativeFontFace(t){this.nativeFontFaces.delete(t),this._document.fonts.delete(t)}insertRule(t){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const n=this.styleElement.sheet;n.insertRule(t,n.cssRules.length)}clear(){for(const t of this.nativeFontFaces)this._document.fonts.delete(t);this.nativeFontFaces.clear(),D(this,xh).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:t,_inspectFont:n}){if(t&&!D(this,xh).has(t.loadedName))if(or(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:i,src:o,style:s}=t,r=new FontFace(i,o,s);this.addNativeFontFace(r);try{await r.load(),D(this,xh).add(i),n==null||n(t)}catch{Cn(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(r)}}else vi("Not implemented: loadSystemFont without the Font Loading API.")}async bind(t){if(t.attached||t.missingFile&&!t.systemFontInfo)return;if(t.attached=!0,t.systemFontInfo){await this.loadSystemFont(t);return}if(this.isFontLoadingAPISupported){const i=t.createNativeFontFace();if(i){this.addNativeFontFace(i);try{await i.loaded}catch(o){throw Cn(`Failed to load font '${i.family}': '${o}'.`),t.disableFontFace=!0,o}}return}const n=t.createFontFaceRule();if(n){if(this.insertRule(n),this.isSyncFontLoadingSupported)return;await new Promise(i=>{const o=this._queueLoadingCallback(i);this._prepareFontLoadEvent(t,o)})}}get isFontLoadingAPISupported(){var t;return Pn(this,"isFontLoadingAPISupported",!!((t=this._document)!=null&&t.fonts))}get isSyncFontLoadingSupported(){let t=!1;return(Wr||typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.userAgent)=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(t=!0),Pn(this,"isSyncFontLoadingSupported",t)}_queueLoadingCallback(t){const{loadingRequests:n}=this,i={done:!1,complete:function(){for(or(!i.done,"completeRequest() cannot be called twice."),i.done=!0;n.length>0&&n[0].done;){const s=n.shift();setTimeout(s.callback,0)}},callback:t};return n.push(i),i}get _loadTestFont(){return Pn(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(t,n){function i(y,d){return y.charCodeAt(d)<<24|y.charCodeAt(d+1)<<16|y.charCodeAt(d+2)<<8|255&y.charCodeAt(d+3)}function o(y,d,v,m){return y.substring(0,d)+m+y.substring(d+v)}let s,r;const a=this._document.createElement("canvas");a.width=1,a.height=1;const u=a.getContext("2d");let c=0;const l=`lt${Date.now()}${this.loadTestFontId++}`;let g=this._loadTestFont;g=o(g,976,l.length,l);const C=1482184792;let S=i(g,16);for(s=0,r=l.length-3;s<r;s+=4)S=S-C+i(l,s)|0;s<l.length&&(S=S-C+i(l+"XXX",s)|0),g=o(g,16,4,function(d){return String.fromCharCode(d>>24&255,d>>16&255,d>>8&255,255&d)}(S));const _=`@font-face {font-family:"${l}";src:${`url(data:font/opentype;base64,${btoa(g)});`}}`;this.insertRule(_);const A=this._document.createElement("div");A.style.visibility="hidden",A.style.width=A.style.height="10px",A.style.position="absolute",A.style.top=A.style.left="0px";for(const y of[t.loadedName,l]){const d=this._document.createElement("span");d.textContent="Hi",d.style.fontFamily=y,A.append(d)}this._document.body.append(A),function y(d,v){if(++c>30){Cn("Load test font never loaded."),v();return}u.font="30px "+d,u.fillText(".",0,20),u.getImageData(0,0,1,1).data[3]>0?v():setTimeout(y.bind(null,d,v))}(l,()=>{A.remove(),n.complete()})}}xh=new WeakMap;class XUe{constructor(t,{disableFontFace:n=!1,inspectFont:i=null}){this.compiledGlyphs=Object.create(null);for(const o in t)this[o]=t[o];this.disableFontFace=n===!0,this._inspectFont=i}createNativeFontFace(){var n;if(!this.data||this.disableFontFace)return null;let t;if(this.cssFontInfo){const i={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(i.style=`oblique ${this.cssFontInfo.italicAngle}deg`),t=new FontFace(this.cssFontInfo.fontFamily,this.data,i)}else t=new FontFace(this.loadedName,this.data,{});return(n=this._inspectFont)==null||n.call(this,this),t}createFontFaceRule(){var i;if(!this.data||this.disableFontFace)return null;const t=`url(data:${this.mimetype};base64,${function(s){return Uint8Array.prototype.toBase64?s.toBase64():btoa(mW(s))}(this.data)});`;let n;if(this.cssFontInfo){let o=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(o+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${o}src:${t}}`}else n=`@font-face {font-family:"${this.loadedName}";src:${t}}`;return(i=this._inspectFont)==null||i.call(this,this,t),n}getPathGenerator(t,n){if(this.compiledGlyphs[n]!==void 0)return this.compiledGlyphs[n];let i;try{i=t.get(this.loadedName+"_path_"+n)}catch(s){Cn(`getPathGenerator - ignoring character: "${s}".`)}if(!Array.isArray(i)||i.length===0)return this.compiledGlyphs[n]=function(s,r){};const o=[];for(let s=0,r=i.length;s<r;)switch(i[s++]){case PUe:{const[a,u,c,l,g,C]=i.slice(s,s+6);o.push(S=>S.bezierCurveTo(a,u,c,l,g,C)),s+=6}break;case OUe:{const[a,u]=i.slice(s,s+2);o.push(c=>c.moveTo(a,u)),s+=2}break;case LUe:{const[a,u]=i.slice(s,s+2);o.push(c=>c.lineTo(a,u)),s+=2}break;case DUe:{const[a,u,c,l]=i.slice(s,s+4);o.push(g=>g.quadraticCurveTo(a,u,c,l)),s+=4}break;case NUe:o.push(a=>a.restore());break;case jUe:o.push(a=>a.save());break;case zUe:or(o.length===2,"Scale command is only valid at the third position.");break;case RUe:{const[a,u,c,l,g,C]=i.slice(s,s+6);o.push(S=>S.transform(a,u,c,l,g,C)),s+=6}break;case BUe:{const[a,u]=i.slice(s,s+2);o.push(c=>c.translate(a,u)),s+=2}}return this.compiledGlyphs[n]=function(r,a){o[0](r),o[1](r),r.scale(a,-a);for(let u=2,c=o.length;u<c;u++)o[u](r)}}}var Eg;class p7{constructor({enableHWA:t=!1}){ue(this,Eg,!1);Ce(this,Eg,t)}create(t,n){if(t<=0||n<=0)throw new Error("Invalid canvas size");const i=this._createCanvas(t,n);return{canvas:i,context:i.getContext("2d",{willReadFrequently:!D(this,Eg)})}}reset(t,n,i){if(!t.canvas)throw new Error("Canvas is not specified");if(n<=0||i<=0)throw new Error("Invalid canvas size");t.canvas.width=n,t.canvas.height=i}destroy(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}_createCanvas(t,n){vi("Abstract method `_createCanvas` called.")}}Eg=new WeakMap;class HW{constructor({baseUrl:t=null,isCompressed:n=!0}){this.baseUrl=t,this.isCompressed=n}async fetch({name:t}){if(!this.baseUrl)throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");if(!t)throw new Error("CMap name must be specified.");const n=this.baseUrl+t+(this.isCompressed?".bcmap":"");return this._fetch(n).then(i=>({cMapData:i,isCompressed:this.isCompressed})).catch(i=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${n}`)})}async _fetch(t){vi("Abstract method `_fetch` called.")}}class WW extends HW{async _fetch(t){const n=await Sw(t,this.isCompressed?"arraybuffer":"text");return n instanceof ArrayBuffer?new Uint8Array(n):Cw(n)}}class m7{addFilter(t){return"none"}addHCMFilter(t,n){return"none"}addAlphaFilter(t){return"none"}addLuminosityFilter(t){return"none"}addHighlightHCMFilter(t,n,i,o,s){return"none"}destroy(t=!1){}}class UW{constructor({baseUrl:t=null}){this.baseUrl=t}async fetch({filename:t}){if(!this.baseUrl)throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");if(!t)throw new Error("Font filename must be specified.");const n=`${this.baseUrl}${t}`;return this._fetch(n).catch(i=>{throw new Error(`Unable to load font data at: ${n}`)})}async _fetch(t){vi("Abstract method `_fetch` called.")}}class ZW extends UW{async _fetch(t){const n=await Sw(t,"arraybuffer");return new Uint8Array(n)}}if(Wr){var nM=Promise.withResolvers(),_v=null;(async()=>{const e=await Gi(()=>import("./__vite-browser-external-b25bb000.js"),[]),t=await Gi(()=>import("./__vite-browser-external-b25bb000.js"),[]),n=await Gi(()=>import("./__vite-browser-external-b25bb000.js"),[]),i=await Gi(()=>import("./__vite-browser-external-b25bb000.js"),[]);return new Map(Object.entries({fs:e,http:t,https:n,url:i,canvas:void 0,path2d:void 0}))})().then(e=>{_v=e,nM.resolve()},e=>{Cn(`loadPackages: ${e}`),_v=new Map,nM.resolve()})}class eu{static get promise(){return nM.promise}static get(t){return _v==null?void 0:_v.get(t)}}async function GW(e){const t=eu.get("fs"),n=await t.promises.readFile(e);return new Uint8Array(n)}const $u="Fill",iO="Stroke",Iv="Shading";function iM(e,t){if(!t)return;const n=t[2]-t[0],i=t[3]-t[1],o=new Path2D;o.rect(t[0],t[1],n,i),e.clip(o)}class rO{getPattern(){vi("Abstract method `getPattern` called.")}}class KUe extends rO{constructor(t){super(),this._type=t[1],this._bbox=t[2],this._colorStops=t[3],this._p0=t[4],this._p1=t[5],this._r0=t[6],this._r1=t[7],this.matrix=null}_createGradient(t){let n;this._type==="axial"?n=t.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(n=t.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const i of this._colorStops)n.addColorStop(i[0],i[1]);return n}getPattern(t,n,i,o){let s;if(o===iO||o===$u){const r=n.current.getClippedPathBoundingBox(o,xi(t))||[0,0,0,0],a=Math.ceil(r[2]-r[0])||1,u=Math.ceil(r[3]-r[1])||1,c=n.cachedCanvases.getCanvas("pattern",a,u),l=c.context;l.clearRect(0,0,l.canvas.width,l.canvas.height),l.beginPath(),l.rect(0,0,l.canvas.width,l.canvas.height),l.translate(-r[0],-r[1]),i=nn.transform(i,[1,0,0,1,r[0],r[1]]),l.transform(...n.baseTransform),this.matrix&&l.transform(...this.matrix),iM(l,this._bbox),l.fillStyle=this._createGradient(l),l.fill(),s=t.createPattern(c.canvas,"no-repeat");const g=new DOMMatrix(i);s.setTransform(g)}else iM(t,this._bbox),s=this._createGradient(t);return s}}function mA(e,t,n,i,o,s,r,a){const u=t.coords,c=t.colors,l=e.data,g=4*e.width;let C;u[n+1]>u[i+1]&&(C=n,n=i,i=C,C=s,s=r,r=C),u[i+1]>u[o+1]&&(C=i,i=o,o=C,C=r,r=a,a=C),u[n+1]>u[i+1]&&(C=n,n=i,i=C,C=s,s=r,r=C);const S=(u[n]+t.offsetX)*t.scaleX,_=(u[n+1]+t.offsetY)*t.scaleY,A=(u[i]+t.offsetX)*t.scaleX,y=(u[i+1]+t.offsetY)*t.scaleY,d=(u[o]+t.offsetX)*t.scaleX,v=(u[o+1]+t.offsetY)*t.scaleY;if(_>=v)return;const m=c[s],f=c[s+1],p=c[s+2],h=c[r],b=c[r+1],w=c[r+2],k=c[a],$=c[a+1],E=c[a+2],N=Math.round(_),j=Math.round(v);let z,V,W,H,U,Q,q,ae;for(let ne=N;ne<=j;ne++){if(ne<y){const Me=ne<_?0:(_-ne)/(_-y);z=S-(S-A)*Me,V=m-(m-h)*Me,W=f-(f-b)*Me,H=p-(p-w)*Me}else{let Me;Me=ne>v?1:y===v?0:(y-ne)/(y-v),z=A-(A-d)*Me,V=h-(h-k)*Me,W=b-(b-$)*Me,H=w-(w-E)*Me}let be;be=ne<_?0:ne>v?1:(_-ne)/(_-v),U=S-(S-d)*be,Q=m-(m-k)*be,q=f-(f-$)*be,ae=p-(p-E)*be;const te=Math.round(Math.min(z,U)),Ie=Math.round(Math.max(z,U));let $e=g*ne+4*te;for(let Me=te;Me<=Ie;Me++)be=(z-Me)/(z-U),be<0?be=0:be>1&&(be=1),l[$e++]=V-(V-Q)*be|0,l[$e++]=W-(W-q)*be|0,l[$e++]=H-(H-ae)*be|0,l[$e++]=255}}function JUe(e,t,n){const i=t.coords,o=t.colors;let s,r;switch(t.type){case"lattice":const a=t.verticesPerRow,u=Math.floor(i.length/a)-1,c=a-1;for(s=0;s<u;s++){let l=s*a;for(let g=0;g<c;g++,l++)mA(e,n,i[l],i[l+1],i[l+a],o[l],o[l+1],o[l+a]),mA(e,n,i[l+a+1],i[l+1],i[l+a],o[l+a+1],o[l+1],o[l+a])}break;case"triangles":for(s=0,r=i.length;s<r;s+=3)mA(e,n,i[s],i[s+1],i[s+2],o[s],o[s+1],o[s+2]);break;default:throw new Error("illegal figure")}}class qUe extends rO{constructor(t){super(),this._coords=t[2],this._colors=t[3],this._figures=t[4],this._bounds=t[5],this._bbox=t[7],this._background=t[8],this.matrix=null}_createMeshCanvas(t,n,i){const o=Math.floor(this._bounds[0]),s=Math.floor(this._bounds[1]),r=Math.ceil(this._bounds[2])-o,a=Math.ceil(this._bounds[3])-s,u=Math.min(Math.ceil(Math.abs(r*t[0]*1.1)),3e3),c=Math.min(Math.ceil(Math.abs(a*t[1]*1.1)),3e3),l=r/u,g=a/c,C={coords:this._coords,colors:this._colors,offsetX:-o,offsetY:-s,scaleX:1/l,scaleY:1/g},S=u+4,_=c+4,A=i.getCanvas("mesh",S,_),y=A.context,d=y.createImageData(u,c);if(n){const v=d.data;for(let m=0,f=v.length;m<f;m+=4)v[m]=n[0],v[m+1]=n[1],v[m+2]=n[2],v[m+3]=255}for(const v of this._figures)JUe(d,v,C);return y.putImageData(d,2,2),{canvas:A.canvas,offsetX:o-2*l,offsetY:s-2*g,scaleX:l,scaleY:g}}getPattern(t,n,i,o){iM(t,this._bbox);let s;if(o===Iv)s=nn.singularValueDecompose2dScale(xi(t));else if(s=nn.singularValueDecompose2dScale(n.baseTransform),this.matrix){const a=nn.singularValueDecompose2dScale(this.matrix);s=[s[0]*a[0],s[1]*a[1]]}const r=this._createMeshCanvas(s,o===Iv?null:this._background,n.cachedCanvases);return o!==Iv&&(t.setTransform(...n.baseTransform),this.matrix&&t.transform(...this.matrix)),t.translate(r.offsetX,r.offsetY),t.scale(r.scaleX,r.scaleY),t.createPattern(r.canvas,"no-repeat")}}class QUe extends rO{getPattern(){return"hotpink"}}const eZe=1,tZe=2,PO=class{constructor(t,n,i,o,s){this.operatorList=t[2],this.matrix=t[3],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=n,this.ctx=i,this.canvasGraphicsFactory=o,this.baseTransform=s}createPatternCanvas(t){const{bbox:n,operatorList:i,paintType:o,tilingType:s,color:r,canvasGraphicsFactory:a}=this;let{xstep:u,ystep:c}=this;u=Math.abs(u),c=Math.abs(c),bw("TilingType: "+s);const l=n[0],g=n[1],C=n[2],S=n[3],_=C-l,A=S-g,y=nn.singularValueDecompose2dScale(this.matrix),d=nn.singularValueDecompose2dScale(this.baseTransform),v=y[0]*d[0],m=y[1]*d[1];let f=_,p=A,h=!1,b=!1;const w=Math.ceil(u*v),k=Math.ceil(c*m);w>=Math.ceil(_*v)?f=u:h=!0,k>=Math.ceil(A*m)?p=c:b=!0;const $=this.getSizeAndScale(f,this.ctx.canvas.width,v),E=this.getSizeAndScale(p,this.ctx.canvas.height,m),N=t.cachedCanvases.getCanvas("pattern",$.size,E.size),j=N.context,z=a.createCanvasGraphics(j);if(z.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(z,o,r),j.translate(-$.scale*l,-E.scale*g),z.transform($.scale,0,0,E.scale,0,0),j.save(),this.clipBbox(z,l,g,C,S),z.baseTransform=xi(z.ctx),z.executeOperatorList(i),z.endDrawing(),j.restore(),h||b){const V=N.canvas;h&&(f=u),b&&(p=c);const W=this.getSizeAndScale(f,this.ctx.canvas.width,v),H=this.getSizeAndScale(p,this.ctx.canvas.height,m),U=W.size,Q=H.size,q=t.cachedCanvases.getCanvas("pattern-workaround",U,Q),ae=q.context,ne=h?Math.floor(_/u):0,be=b?Math.floor(A/c):0;for(let te=0;te<=ne;te++)for(let Ie=0;Ie<=be;Ie++)ae.drawImage(V,U*te,Q*Ie,U,Q,0,0,U,Q);return{canvas:q.canvas,scaleX:W.scale,scaleY:H.scale,offsetX:l,offsetY:g}}return{canvas:N.canvas,scaleX:$.scale,scaleY:E.scale,offsetX:l,offsetY:g}}getSizeAndScale(t,n,i){const o=Math.max(PO.MAX_PATTERN_SIZE,n);let s=Math.ceil(t*i);return s>=o?s=o:i=s/t,{scale:i,size:s}}clipBbox(t,n,i,o,s){const r=o-n,a=s-i;t.ctx.rect(n,i,r,a),t.current.updateRectMinMax(xi(t.ctx),[n,i,o,s]),t.clip(),t.endPath()}setFillAndStrokeStyleToContext(t,n,i){const o=t.ctx,s=t.current;switch(n){case eZe:const r=this.ctx;o.fillStyle=r.fillStyle,o.strokeStyle=r.strokeStyle,s.fillColor=r.fillStyle,s.strokeColor=r.strokeStyle;break;case tZe:const a=nn.makeHexColor(i[0],i[1],i[2]);o.fillStyle=a,o.strokeStyle=a,s.fillColor=a,s.strokeColor=a;break;default:throw new MUe(`Unsupported paint type: ${n}`)}}getPattern(t,n,i,o){let s=i;o!==Iv&&(s=nn.transform(s,n.baseTransform),this.matrix&&(s=nn.transform(s,this.matrix)));const r=this.createPatternCanvas(n);let a=new DOMMatrix(s);a=a.translate(r.offsetX,r.offsetY),a=a.scale(1/r.scaleX,1/r.scaleY);const u=t.createPattern(r.canvas,"repeat");return u.setTransform(a),u}};let Jb=PO;Wt(Jb,"MAX_PATTERN_SIZE",3e3);function nZe({src:e,srcPos:t=0,dest:n,width:i,height:o,nonBlackColor:s=4294967295,inverseDecode:r=!1}){const a=ao.isLittleEndian?4278190080:255,[u,c]=r?[s,a]:[a,s],l=i>>3,g=7&i,C=e.length;n=new Uint32Array(n.buffer);let S=0;for(let _=0;_<o;_++){for(const y=t+l;t<y;t++){const d=t<C?e[t]:255;n[S++]=128&d?c:u,n[S++]=64&d?c:u,n[S++]=32&d?c:u,n[S++]=16&d?c:u,n[S++]=8&d?c:u,n[S++]=4&d?c:u,n[S++]=2&d?c:u,n[S++]=1&d?c:u}if(g===0)continue;const A=t<C?e[t++]:255;for(let y=0;y<g;y++)n[S++]=A&1<<7-y?c:u}return{srcPos:t,destPos:S}}const Co=16;class iZe{constructor(t){this.canvasFactory=t,this.cache=Object.create(null)}getCanvas(t,n,i){let o;return this.cache[t]!==void 0?(o=this.cache[t],this.canvasFactory.reset(o,n,i)):(o=this.canvasFactory.create(n,i),this.cache[t]=o),o}delete(t){delete this.cache[t]}clear(){for(const t in this.cache){const n=this.cache[t];this.canvasFactory.destroy(n),delete this.cache[t]}}}function Py(e,t,n,i,o,s,r,a,u,c){const[l,g,C,S,_,A]=xi(e);if(g===0&&C===0){const y=r*l+_,d=Math.round(y),v=a*S+A,m=Math.round(v),f=(r+u)*l+_,p=Math.abs(Math.round(f)-d)||1,h=(a+c)*S+A,b=Math.abs(Math.round(h)-m)||1;return e.setTransform(Math.sign(l),0,0,Math.sign(S),d,m),e.drawImage(t,n,i,o,s,0,0,p,b),e.setTransform(l,g,C,S,_,A),[p,b]}if(l===0&&S===0){const y=a*C+_,d=Math.round(y),v=r*g+A,m=Math.round(v),f=(a+c)*C+_,p=Math.abs(Math.round(f)-d)||1,h=(r+u)*g+A,b=Math.abs(Math.round(h)-m)||1;return e.setTransform(0,Math.sign(g),Math.sign(C),0,d,m),e.drawImage(t,n,i,o,s,0,0,b,p),e.setTransform(l,g,C,S,_,A),[b,p]}return e.drawImage(t,n,i,o,s,r,a,u,c),[Math.hypot(l,g)*u,Math.hypot(C,S)*c]}class v7{constructor(t,n){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=fW,this.textMatrixScale=1,this.fontMatrix=OE,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=Vb,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,t,n])}clone(){const t=Object.create(this);return t.clipBox=this.clipBox.slice(),t}setCurrentPoint(t,n){this.x=t,this.y=n}updatePathMinMax(t,n,i){[n,i]=nn.applyTransform([n,i],t),this.minX=Math.min(this.minX,n),this.minY=Math.min(this.minY,i),this.maxX=Math.max(this.maxX,n),this.maxY=Math.max(this.maxY,i)}updateRectMinMax(t,n){const i=nn.applyTransform(n,t),o=nn.applyTransform(n.slice(2),t),s=nn.applyTransform([n[0],n[3]],t),r=nn.applyTransform([n[2],n[1]],t);this.minX=Math.min(this.minX,i[0],o[0],s[0],r[0]),this.minY=Math.min(this.minY,i[1],o[1],s[1],r[1]),this.maxX=Math.max(this.maxX,i[0],o[0],s[0],r[0]),this.maxY=Math.max(this.maxY,i[1],o[1],s[1],r[1])}updateScalingPathMinMax(t,n){nn.scaleMinMax(t,n),this.minX=Math.min(this.minX,n[0]),this.minY=Math.min(this.minY,n[1]),this.maxX=Math.max(this.maxX,n[2]),this.maxY=Math.max(this.maxY,n[3])}updateCurvePathMinMax(t,n,i,o,s,r,a,u,c,l){const g=nn.bezierBoundingBox(n,i,o,s,r,a,u,c,l);l||this.updateRectMinMax(t,g)}getPathBoundingBox(t=$u,n=null){const i=[this.minX,this.minY,this.maxX,this.maxY];if(t===iO){n||vi("Stroke bounding box must include transform.");const o=nn.singularValueDecompose2dScale(n),s=o[0]*this.lineWidth/2,r=o[1]*this.lineWidth/2;i[0]-=s,i[1]-=r,i[2]+=s,i[3]+=r}return i}updateClipFromPath(){const t=nn.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(t){this.clipBox=t,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(t=$u,n=null){return nn.intersect(this.clipBox,this.getPathBoundingBox(t,n))}}function g7(e,t){if(typeof ImageData<"u"&&t instanceof ImageData){e.putImageData(t,0,0);return}const n=t.height,i=t.width,o=n%Co,s=(n-o)/Co,r=o===0?s:s+1,a=e.createImageData(i,Co);let u,c=0;const l=t.data,g=a.data;let C,S,_,A;if(t.kind===Hb.GRAYSCALE_1BPP){const y=l.byteLength,d=new Uint32Array(g.buffer,0,g.byteLength>>2),v=d.length,m=i+7>>3,f=4294967295,p=ao.isLittleEndian?4278190080:255;for(C=0;C<r;C++){for(_=C<s?Co:o,u=0,S=0;S<_;S++){const h=y-c;let b=0;const w=h>m?i:8*h-7,k=-8&w;let $=0,E=0;for(;b<k;b+=8)E=l[c++],d[u++]=128&E?f:p,d[u++]=64&E?f:p,d[u++]=32&E?f:p,d[u++]=16&E?f:p,d[u++]=8&E?f:p,d[u++]=4&E?f:p,d[u++]=2&E?f:p,d[u++]=1&E?f:p;for(;b<w;b++)$===0&&(E=l[c++],$=128),d[u++]=E&$?f:p,$>>=1}for(;u<v;)d[u++]=0;e.putImageData(a,0,C*Co)}}else if(t.kind===Hb.RGBA_32BPP){for(S=0,A=i*Co*4,C=0;C<s;C++)g.set(l.subarray(c,c+A)),c+=A,e.putImageData(a,0,S),S+=Co;C<r&&(A=i*o*4,g.set(l.subarray(c,c+A)),e.putImageData(a,0,S))}else{if(t.kind!==Hb.RGB_24BPP)throw new Error(`bad image kind: ${t.kind}`);for(_=Co,A=i*_,C=0;C<r;C++){for(C>=s&&(_=o,A=i*_),u=0,S=A;S--;)g[u++]=l[c++],g[u++]=l[c++],g[u++]=l[c++],g[u++]=255;e.putImageData(a,0,C*Co)}}}function y7(e,t){if(t.bitmap){e.drawImage(t.bitmap,0,0);return}const n=t.height,i=t.width,o=n%Co,s=(n-o)/Co,r=o===0?s:s+1,a=e.createImageData(i,Co);let u=0;const c=t.data,l=a.data;for(let g=0;g<r;g++){const C=g<s?Co:o;({srcPos:u}=nZe({src:c,srcPos:u,dest:l,width:i,height:C,nonBlackColor:0})),e.putImageData(a,0,g*Co)}}function $m(e,t){const n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const i of n)e[i]!==void 0&&(t[i]=e[i]);e.setLineDash!==void 0&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function Oy(e){if(e.strokeStyle=e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",e.setLineDash!==void 0&&(e.setLineDash([]),e.lineDashOffset=0),!Wr){const{filter:t}=e;t!=="none"&&t!==""&&(e.filter="none")}}function b7(e,t){if(t)return!0;const n=nn.singularValueDecompose2dScale(e);n[0]=Math.fround(n[0]),n[1]=Math.fround(n[1]);const i=Math.fround((globalThis.devicePixelRatio||1)*js.PDF_TO_CSS_UNITS);return n[0]<=i&&n[1]<=i}const rZe=["butt","round","square"],oZe=["miter","round","bevel"],sZe={},k7={};var Mg,rM,Tg,oM;const OO=class{constructor(t,n,i,o,s,{optionalContentConfig:r,markedContentStack:a=null},u,c){ue(this,Mg);ue(this,Tg);this.ctx=t,this.current=new v7(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=n,this.objs=i,this.canvasFactory=o,this.filterFactory=s,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=a||[],this.optionalContentConfig=r,this.cachedCanvases=new iZe(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=u,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=c,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(t,n=null){return typeof t=="string"?t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t):n}beginDrawing({transform:t,viewport:n,transparency:i=!1,background:o=null}){const s=this.ctx.canvas.width,r=this.ctx.canvas.height,a=this.ctx.fillStyle;if(this.ctx.fillStyle=o||"#ffffff",this.ctx.fillRect(0,0,s,r),this.ctx.fillStyle=a,i){const u=this.cachedCanvases.getCanvas("transparent",s,r);this.compositeCtx=this.ctx,this.transparentCanvas=u.canvas,this.ctx=u.context,this.ctx.save(),this.ctx.transform(...xi(this.compositeCtx))}this.ctx.save(),Oy(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...n.transform),this.viewportScale=n.scale,this.baseTransform=xi(this.ctx)}executeOperatorList(t,n,i,o){const s=t.argsArray,r=t.fnArray;let a=n||0;const u=s.length;if(u===a)return a;const c=u-a>10&&typeof i=="function",l=c?Date.now()+15:0;let g=0;const C=this.commonObjs,S=this.objs;let _;for(;;){if(o!==void 0&&a===o.nextBreakPoint)return o.breakIt(a,i),a;if(_=r[a],_!==Cs.dependency)this[_].apply(this,s[a]);else for(const A of s[a]){const y=A.startsWith("g_")?C:S;if(!y.has(A))return y.get(A,i),a}if(a++,a===u)return a;if(c&&++g>10){if(Date.now()>l)return i(),a;g=0}}}endDrawing(){_e(this,Mg,rM).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const t of this._cachedBitmapsMap.values()){for(const n of t.values())typeof HTMLCanvasElement<"u"&&n instanceof HTMLCanvasElement&&(n.width=n.height=0);t.clear()}this._cachedBitmapsMap.clear(),_e(this,Tg,oM).call(this)}_scaleImage(t,n){const i=t.width??t.displayWidth,o=t.height??t.displayHeight;let s,r,a=Math.max(Math.hypot(n[0],n[1]),1),u=Math.max(Math.hypot(n[2],n[3]),1),c=i,l=o,g="prescale1";for(;a>2&&c>1||u>2&&l>1;){let C=c,S=l;a>2&&c>1&&(C=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c/2),a/=c/C),u>2&&l>1&&(S=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l)/2,u/=l/S),s=this.cachedCanvases.getCanvas(g,C,S),r=s.context,r.clearRect(0,0,C,S),r.drawImage(t,0,0,c,l,0,0,C,S),t=s.canvas,c=C,l=S,g=g==="prescale1"?"prescale2":"prescale1"}return{img:t,paintWidth:c,paintHeight:l}}_createMaskCanvas(t){const n=this.ctx,{width:i,height:o}=t,s=this.current.fillColor,r=this.current.patternFill,a=xi(n);let u,c,l,g;if((t.bitmap||t.data)&&t.count>1){const w=t.bitmap||t.data.buffer;c=JSON.stringify(r?a:[a.slice(0,4),s]),u=this._cachedBitmapsMap.get(w),u||(u=new Map,this._cachedBitmapsMap.set(w,u));const k=u.get(c);if(k&&!r)return{canvas:k,offsetX:Math.round(Math.min(a[0],a[2])+a[4]),offsetY:Math.round(Math.min(a[1],a[3])+a[5])};l=k}l||(g=this.cachedCanvases.getCanvas("maskCanvas",i,o),y7(g.context,t));let C=nn.transform(a,[1/i,0,0,-1/o,0,0]);C=nn.transform(C,[1,0,0,1,0,-o]);const[S,_,A,y]=nn.getAxialAlignedBoundingBox([0,0,i,o],C),d=Math.round(A-S)||1,v=Math.round(y-_)||1,m=this.cachedCanvases.getCanvas("fillCanvas",d,v),f=m.context,p=S,h=_;f.translate(-p,-h),f.transform(...C),l||(l=this._scaleImage(g.canvas,Ba(f)),l=l.img,u&&r&&u.set(c,l)),f.imageSmoothingEnabled=b7(xi(f),t.interpolate),Py(f,l,0,0,l.width,l.height,0,0,i,o),f.globalCompositeOperation="source-in";const b=nn.transform(Ba(f),[1,0,0,1,-p,-h]);return f.fillStyle=r?s.getPattern(n,this,b,$u):s,f.fillRect(0,0,i,o),u&&!r&&(this.cachedCanvases.delete("fillCanvas"),u.set(c,m.canvas)),{canvas:m.canvas,offsetX:Math.round(p),offsetY:Math.round(h)}}setLineWidth(t){t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}setLineCap(t){this.ctx.lineCap=rZe[t]}setLineJoin(t){this.ctx.lineJoin=oZe[t]}setMiterLimit(t){this.ctx.miterLimit=t}setDash(t,n){const i=this.ctx;i.setLineDash!==void 0&&(i.setLineDash(t),i.lineDashOffset=n)}setRenderingIntent(t){}setFlatness(t){}setGState(t){for(const[n,i]of t)switch(n){case"LW":this.setLineWidth(i);break;case"LC":this.setLineCap(i);break;case"LJ":this.setLineJoin(i);break;case"ML":this.setMiterLimit(i);break;case"D":this.setDash(i[0],i[1]);break;case"RI":this.setRenderingIntent(i);break;case"FL":this.setFlatness(i);break;case"Font":this.setFont(i[0],i[1]);break;case"CA":this.current.strokeAlpha=i;break;case"ca":this.current.fillAlpha=i,this.ctx.globalAlpha=i;break;case"BM":this.ctx.globalCompositeOperation=i;break;case"SMask":this.current.activeSMask=i?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(i)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode():!this.current.activeSMask&&t&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const t=this.ctx.canvas.width,n=this.ctx.canvas.height,i="smaskGroupAt"+this.groupLevel,o=this.cachedCanvases.getCanvas(i,t,n);this.suspendedCtx=this.ctx,this.ctx=o.context;const s=this.ctx;s.setTransform(...xi(this.suspendedCtx)),$m(this.suspendedCtx,s),function(a,u){if(a._removeMirroring)throw new Error("Context is already forwarding operations.");a.__originalSave=a.save,a.__originalRestore=a.restore,a.__originalRotate=a.rotate,a.__originalScale=a.scale,a.__originalTranslate=a.translate,a.__originalTransform=a.transform,a.__originalSetTransform=a.setTransform,a.__originalResetTransform=a.resetTransform,a.__originalClip=a.clip,a.__originalMoveTo=a.moveTo,a.__originalLineTo=a.lineTo,a.__originalBezierCurveTo=a.bezierCurveTo,a.__originalRect=a.rect,a.__originalClosePath=a.closePath,a.__originalBeginPath=a.beginPath,a._removeMirroring=()=>{a.save=a.__originalSave,a.restore=a.__originalRestore,a.rotate=a.__originalRotate,a.scale=a.__originalScale,a.translate=a.__originalTranslate,a.transform=a.__originalTransform,a.setTransform=a.__originalSetTransform,a.resetTransform=a.__originalResetTransform,a.clip=a.__originalClip,a.moveTo=a.__originalMoveTo,a.lineTo=a.__originalLineTo,a.bezierCurveTo=a.__originalBezierCurveTo,a.rect=a.__originalRect,a.closePath=a.__originalClosePath,a.beginPath=a.__originalBeginPath,delete a._removeMirroring},a.save=function(){u.save(),this.__originalSave()},a.restore=function(){u.restore(),this.__originalRestore()},a.translate=function(l,g){u.translate(l,g),this.__originalTranslate(l,g)},a.scale=function(l,g){u.scale(l,g),this.__originalScale(l,g)},a.transform=function(l,g,C,S,_,A){u.transform(l,g,C,S,_,A),this.__originalTransform(l,g,C,S,_,A)},a.setTransform=function(l,g,C,S,_,A){u.setTransform(l,g,C,S,_,A),this.__originalSetTransform(l,g,C,S,_,A)},a.resetTransform=function(){u.resetTransform(),this.__originalResetTransform()},a.rotate=function(l){u.rotate(l),this.__originalRotate(l)},a.clip=function(l){u.clip(l),this.__originalClip(l)},a.moveTo=function(c,l){u.moveTo(c,l),this.__originalMoveTo(c,l)},a.lineTo=function(c,l){u.lineTo(c,l),this.__originalLineTo(c,l)},a.bezierCurveTo=function(c,l,g,C,S,_){u.bezierCurveTo(c,l,g,C,S,_),this.__originalBezierCurveTo(c,l,g,C,S,_)},a.rect=function(c,l,g,C){u.rect(c,l,g,C),this.__originalRect(c,l,g,C)},a.closePath=function(){u.closePath(),this.__originalClosePath()},a.beginPath=function(){u.beginPath(),this.__originalBeginPath()}}(s,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),$m(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(t){if(!this.current.activeSMask)return;t?(t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.ceil(t[2]),t[3]=Math.ceil(t[3])):t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const n=this.current.activeSMask,i=this.suspendedCtx;this.composeSMask(i,n,this.ctx,t),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(t,n,i,o){const s=o[0],r=o[1],a=o[2]-s,u=o[3]-r;a!==0&&u!==0&&(this.genericComposeSMask(n.context,i,a,u,n.subtype,n.backdrop,n.transferMap,s,r,n.offsetX,n.offsetY),t.save(),t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),t.drawImage(i.canvas,0,0),t.restore())}genericComposeSMask(t,n,i,o,s,r,a,u,c,l,g){let C=t.canvas,S=u-l,_=c-g;if(r){const y=nn.makeHexColor(...r);if(S<0||_<0||S+i>C.width||_+o>C.height){const d=this.cachedCanvases.getCanvas("maskExtension",i,o),v=d.context;v.drawImage(C,-S,-_),v.globalCompositeOperation="destination-atop",v.fillStyle=y,v.fillRect(0,0,i,o),v.globalCompositeOperation="source-over",C=d.canvas,S=_=0}else{t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0);const d=new Path2D;d.rect(S,_,i,o),t.clip(d),t.globalCompositeOperation="destination-atop",t.fillStyle=y,t.fillRect(S,_,i,o),t.restore()}}n.save(),n.globalAlpha=1,n.setTransform(1,0,0,1,0,0),s==="Alpha"&&a?n.filter=this.filterFactory.addAlphaFilter(a):s==="Luminosity"&&(n.filter=this.filterFactory.addLuminosityFilter(a));const A=new Path2D;A.rect(u,c,i,o),n.clip(A),n.globalCompositeOperation="destination-in",n.drawImage(C,S,_,i,o,u,c,i,o),n.restore()}save(){this.inSMaskMode?($m(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const t=this.current;this.stateStack.push(t),this.current=t.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),$m(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(t,n,i,o,s,r){this.ctx.transform(t,n,i,o,s,r),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(t,n,i){const o=this.ctx,s=this.current;let r,a,u=s.x,c=s.y;const l=xi(o),g=l[0]===0&&l[3]===0||l[1]===0&&l[2]===0,C=g?i.slice(0):null;for(let S=0,_=0,A=t.length;S<A;S++)switch(0|t[S]){case Cs.rectangle:u=n[_++],c=n[_++];const y=n[_++],d=n[_++],v=u+y,m=c+d;o.moveTo(u,c),y===0||d===0?o.lineTo(v,m):(o.lineTo(v,c),o.lineTo(v,m),o.lineTo(u,m)),g||s.updateRectMinMax(l,[u,c,v,m]),o.closePath();break;case Cs.moveTo:u=n[_++],c=n[_++],o.moveTo(u,c),g||s.updatePathMinMax(l,u,c);break;case Cs.lineTo:u=n[_++],c=n[_++],o.lineTo(u,c),g||s.updatePathMinMax(l,u,c);break;case Cs.curveTo:r=u,a=c,u=n[_+4],c=n[_+5],o.bezierCurveTo(n[_],n[_+1],n[_+2],n[_+3],u,c),s.updateCurvePathMinMax(l,r,a,n[_],n[_+1],n[_+2],n[_+3],u,c,C),_+=6;break;case Cs.curveTo2:r=u,a=c,o.bezierCurveTo(u,c,n[_],n[_+1],n[_+2],n[_+3]),s.updateCurvePathMinMax(l,r,a,u,c,n[_],n[_+1],n[_+2],n[_+3],C),u=n[_+2],c=n[_+3],_+=4;break;case Cs.curveTo3:r=u,a=c,u=n[_+2],c=n[_+3],o.bezierCurveTo(n[_],n[_+1],u,c,u,c),s.updateCurvePathMinMax(l,r,a,n[_],n[_+1],u,c,u,c,C),_+=4;break;case Cs.closePath:o.closePath()}g&&s.updateScalingPathMinMax(l,C),s.setCurrentPoint(u,c)}closePath(){this.ctx.closePath()}stroke(t=!0){const n=this.ctx,i=this.current.strokeColor;n.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof i=="object"&&(i!=null&&i.getPattern)?(n.save(),n.strokeStyle=i.getPattern(n,this,Ba(n),iO),this.rescaleAndStroke(!1),n.restore()):this.rescaleAndStroke(!0)),t&&this.consumePath(this.current.getClippedPathBoundingBox()),n.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(t=!0){const n=this.ctx,i=this.current.fillColor;let o=!1;this.current.patternFill&&(n.save(),n.fillStyle=i.getPattern(n,this,Ba(n),$u),o=!0);const s=this.current.getClippedPathBoundingBox();this.contentVisible&&s!==null&&(this.pendingEOFill?(n.fill("evenodd"),this.pendingEOFill=!1):n.fill()),o&&n.restore(),t&&this.consumePath(s)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=sZe}eoClip(){this.pendingClip=k7}beginText(){this.current.textMatrix=fW,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const t=this.pendingTextPaths,n=this.ctx;if(t!==void 0){n.save(),n.beginPath();for(const i of t)n.setTransform(...i.transform),n.translate(i.x,i.y),i.addToPath(n,i.fontSize);n.restore(),n.clip(),n.beginPath(),delete this.pendingTextPaths}else n.beginPath()}setCharSpacing(t){this.current.charSpacing=t}setWordSpacing(t){this.current.wordSpacing=t}setHScale(t){this.current.textHScale=t/100}setLeading(t){this.current.leading=-t}setFont(t,n){var l;const i=this.commonObjs.get(t),o=this.current;if(!i)throw new Error(`Can't find font for ${t}`);if(o.fontMatrix=i.fontMatrix||OE,o.fontMatrix[0]!==0&&o.fontMatrix[3]!==0||Cn("Invalid font matrix for font "+t),n<0?(n=-n,o.fontDirection=-1):o.fontDirection=1,this.current.font=i,this.current.fontSize=n,i.isType3Font)return;const s=i.loadedName||"sans-serif",r=((l=i.systemFontInfo)==null?void 0:l.css)||`"${s}", ${i.fallbackName}`;let a="normal";i.black?a="900":i.bold&&(a="bold");const u=i.italic?"italic":"normal";let c=n;n<16?c=16:n>100&&(c=100),this.current.fontSizeScale=n/c,this.ctx.font=`${u} ${a} ${c}px ${r}`}setTextRenderingMode(t){this.current.textRenderingMode=t}setTextRise(t){this.current.textRise=t}moveText(t,n){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=n}setLeadingMoveText(t,n){this.setLeading(-n),this.moveText(t,n)}setTextMatrix(t,n,i,o,s,r){this.current.textMatrix=[t,n,i,o,s,r],this.current.textMatrixScale=Math.hypot(t,n),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(t,n,i,o){const s=this.ctx,r=this.current,a=r.font,u=r.textRenderingMode,c=r.fontSize/r.fontSizeScale,l=u&c7,g=!!(u&iUe),C=r.patternFill&&!a.missingFile;let S;(a.disableFontFace||g||C)&&(S=a.getPathGenerator(this.commonObjs,t)),a.disableFontFace||C?(s.save(),s.translate(n,i),s.beginPath(),S(s,c),o&&s.setTransform(...o),l!==Vb&&l!==xm||s.fill(),l!==fA&&l!==xm||s.stroke(),s.restore()):(l!==Vb&&l!==xm||s.fillText(t,n,i),l!==fA&&l!==xm||s.strokeText(t,n,i)),g&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:xi(s),x:n,y:i,fontSize:c,addToPath:S})}get isFontSubpixelAAEnabled(){const{context:t}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);t.scale(1.5,1),t.fillText("I",0,10);const n=t.getImageData(0,0,10,10).data;let i=!1;for(let o=3;o<n.length;o+=4)if(n[o]>0&&n[o]<255){i=!0;break}return Pn(this,"isFontSubpixelAAEnabled",i)}showText(t){const n=this.current,i=n.font;if(i.isType3Font)return this.showType3Text(t);const o=n.fontSize;if(o===0)return;const s=this.ctx,r=n.fontSizeScale,a=n.charSpacing,u=n.wordSpacing,c=n.fontDirection,l=n.textHScale*c,g=t.length,C=i.vertical,S=C?1:-1,_=i.defaultVMetrics,A=o*n.fontMatrix[0],y=n.textRenderingMode===Vb&&!i.disableFontFace&&!n.patternFill;s.save(),s.transform(...n.textMatrix),s.translate(n.x,n.y+n.textRise),c>0?s.scale(l,-1):s.scale(l,1);let d;if(n.patternFill){s.save();const h=n.fillColor.getPattern(s,this,Ba(s),$u);d=xi(s),s.restore(),s.fillStyle=h}let v=n.lineWidth;const m=n.textMatrixScale;if(m===0||v===0){const h=n.textRenderingMode&c7;h!==fA&&h!==xm||(v=this.getSinglePixelWidth())}else v/=m;if(r!==1&&(s.scale(r,r),v/=r),s.lineWidth=v,i.isInvalidPDFjsFont){const h=[];let b=0;for(const w of t)h.push(w.unicode),b+=w.width;s.fillText(h.join(""),0,0),n.x+=b*A*l,s.restore(),this.compose();return}let f,p=0;for(f=0;f<g;++f){const h=t[f];if(typeof h=="number"){p+=S*h*o/1e3;continue}let b=!1;const w=(h.isSpace?u:0)+a,k=h.fontChar,$=h.accent;let E,N,j=h.width;if(C){const z=h.vmetric||_,V=-(h.vmetric?z[1]:.5*j)*A,W=z[2]*A;j=z?-z[0]:j,E=V/r,N=(p+W)/r}else E=p/r,N=0;if(i.remeasure&&j>0){const z=1e3*s.measureText(k).width/o*r;if(j<z&&this.isFontSubpixelAAEnabled){const V=j/z;b=!0,s.save(),s.scale(V,1),E/=V}else j!==z&&(E+=(j-z)/2e3*o/r)}if(this.contentVisible&&(h.isInFont||i.missingFile)){if(y&&!$)s.fillText(k,E,N);else if(this.paintChar(k,E,N,d),$){const z=E+o*$.offset.x/r,V=N-o*$.offset.y/r;this.paintChar($.fontChar,z,V,d)}}p+=C?j*A-w*c:j*A+w*c,b&&s.restore()}C?n.y-=p:n.x+=p*l,s.restore(),this.compose()}showType3Text(t){const n=this.ctx,i=this.current,o=i.font,s=i.fontSize,r=i.fontDirection,a=o.vertical?1:-1,u=i.charSpacing,c=i.wordSpacing,l=i.textHScale*r,g=i.fontMatrix||OE,C=t.length;let S,_,A,y;if(i.textRenderingMode!==nUe&&s!==0){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,n.save(),n.transform(...i.textMatrix),n.translate(i.x,i.y),n.scale(l,r),S=0;S<C;++S){if(_=t[S],typeof _=="number"){y=a*_*s/1e3,this.ctx.translate(y,0),i.x+=y*l;continue}const d=(_.isSpace?c:0)+u,v=o.charProcOperatorList[_.operatorListId];if(!v){Cn(`Type3 character "${_.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=_,this.save(),n.scale(s,s),n.transform(...g),this.executeOperatorList(v),this.restore()),A=nn.applyTransform([_.width,0],g)[0]*s+d,n.translate(A,0),i.x+=A*l}n.restore(),this.processingType3=null}}setCharWidth(t,n){}setCharWidthAndBounds(t,n,i,o,s,r){this.ctx.rect(i,o,s-i,r-o),this.ctx.clip(),this.endPath()}getColorN_Pattern(t){let n;if(t[0]==="TilingPattern"){const i=t[1],o=this.baseTransform||xi(this.ctx),s={createCanvasGraphics:r=>new OO(r,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};n=new Jb(t,i,this.ctx,s,o)}else n=this._getPattern(t[1],t[2]);return n}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(t,n,i){this.ctx.strokeStyle=this.current.strokeColor=nn.makeHexColor(t,n,i)}setStrokeTransparent(){this.ctx.strokeStyle=this.current.strokeColor="transparent"}setFillRGBColor(t,n,i){this.ctx.fillStyle=this.current.fillColor=nn.makeHexColor(t,n,i),this.current.patternFill=!1}setFillTransparent(){this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(t,n=null){let i;return this.cachedPatterns.has(t)?i=this.cachedPatterns.get(t):(i=function(s){switch(s[0]){case"RadialAxial":return new KUe(s);case"Mesh":return new qUe(s);case"Dummy":return new QUe}throw new Error(`Unknown IR type: ${s[0]}`)}(this.getObject(t)),this.cachedPatterns.set(t,i)),n&&(i.matrix=n),i}shadingFill(t){if(!this.contentVisible)return;const n=this.ctx;this.save();const i=this._getPattern(t);n.fillStyle=i.getPattern(n,this,Ba(n),Iv);const o=Ba(n);if(o){const{width:s,height:r}=n.canvas,[a,u,c,l]=nn.getAxialAlignedBoundingBox([0,0,s,r],o);this.ctx.fillRect(a,u,c-a,l-u)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){vi("Should not call beginInlineImage")}beginImageData(){vi("Should not call beginImageData")}paintFormXObjectBegin(t,n){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),t&&this.transform(...t),this.baseTransform=xi(this.ctx),n)){const i=n[2]-n[0],o=n[3]-n[1];this.ctx.rect(n[0],n[1],i,o),this.current.updateRectMinMax(xi(this.ctx),n),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(t){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const n=this.ctx;t.isolated||bw("TODO: Support non-isolated groups."),t.knockout&&Cn("Knockout groups not supported.");const i=xi(n);if(t.matrix&&n.transform(...t.matrix),!t.bbox)throw new Error("Bounding box is required.");let o=nn.getAxialAlignedBoundingBox(t.bbox,xi(n));const s=[0,0,n.canvas.width,n.canvas.height];o=nn.intersect(o,s)||[0,0,0,0];const r=Math.floor(o[0]),a=Math.floor(o[1]),u=Math.max(Math.ceil(o[2])-r,1),c=Math.max(Math.ceil(o[3])-a,1);this.current.startNewPathAndClipBox([0,0,u,c]);let l="groupAt"+this.groupLevel;t.smask&&(l+="_smask_"+this.smaskCounter++%2);const g=this.cachedCanvases.getCanvas(l,u,c),C=g.context;C.translate(-r,-a),C.transform(...i),t.smask?this.smaskStack.push({canvas:g.canvas,context:C,offsetX:r,offsetY:a,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(n.setTransform(1,0,0,1,0,0),n.translate(r,a),n.save()),$m(n,C),this.ctx=C,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(n),this.groupLevel++}endGroup(t){if(!this.contentVisible)return;this.groupLevel--;const n=this.ctx,i=this.groupStack.pop();if(this.ctx=i,this.ctx.imageSmoothingEnabled=!1,t.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const o=xi(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...o);const s=nn.getAxialAlignedBoundingBox([0,0,n.canvas.width,n.canvas.height],o);this.ctx.drawImage(n.canvas,0,0),this.ctx.restore(),this.compose(s)}}beginAnnotation(t,n,i,o,s){if(_e(this,Mg,rM).call(this),Oy(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),n){const r=n[2]-n[0],a=n[3]-n[1];if(s&&this.annotationCanvasMap){(i=i.slice())[4]-=n[0],i[5]-=n[1],(n=n.slice())[0]=n[1]=0,n[2]=r,n[3]=a;const[u,c]=nn.singularValueDecompose2dScale(xi(this.ctx)),{viewportScale:l}=this,g=Math.ceil(r*this.outputScaleX*l),C=Math.ceil(a*this.outputScaleY*l);this.annotationCanvas=this.canvasFactory.create(g,C);const{canvas:S,context:_}=this.annotationCanvas;this.annotationCanvasMap.set(t,S),this.annotationCanvas.savedCtx=this.ctx,this.ctx=_,this.ctx.save(),this.ctx.setTransform(u,0,0,-c,0,a*c),Oy(this.ctx)}else Oy(this.ctx),this.endPath(),this.ctx.rect(n[0],n[1],r,a),this.ctx.clip(),this.ctx.beginPath()}this.current=new v7(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...i),this.transform(...o)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),_e(this,Tg,oM).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(t){if(!this.contentVisible)return;const n=t.count;(t=this.getObject(t.data,t)).count=n;const i=this.ctx,o=this.processingType3;if(o&&(o.compiled===void 0&&(o.compiled=function(u){const{width:c,height:l}=u;if(c>1e3||l>1e3)return null;const g=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),C=c+1;let S,_,A,y=new Uint8Array(C*(l+1));const d=c+7&-8;let v=new Uint8Array(d*l),m=0;for(const b of u.data){let w=128;for(;w>0;)v[m++]=b&w?0:255,w>>=1}let f=0;for(m=0,v[m]!==0&&(y[0]=1,++f),_=1;_<c;_++)v[m]!==v[m+1]&&(y[_]=v[m]?2:1,++f),m++;for(v[m]!==0&&(y[_]=2,++f),S=1;S<l;S++){m=S*d,A=S*C,v[m-d]!==v[m]&&(y[A]=v[m]?1:8,++f);let b=(v[m]?4:0)+(v[m-d]?8:0);for(_=1;_<c;_++)b=(b>>2)+(v[m+1]?4:0)+(v[m-d+1]?8:0),g[b]&&(y[A+_]=g[b],++f),m++;if(v[m-d]!==v[m]&&(y[A+_]=v[m]?2:4,++f),f>1e3)return null}for(m=d*(l-1),A=S*C,v[m]!==0&&(y[A]=8,++f),_=1;_<c;_++)v[m]!==v[m+1]&&(y[A+_]=v[m]?4:8,++f),m++;if(v[m]!==0&&(y[A+_]=4,++f),f>1e3)return null;const p=new Int32Array([0,C,-1,0,-C,0,0,0,1]),h=new Path2D;for(S=0;f&&S<=l;S++){let b=S*C;const w=b+c;for(;b<w&&!y[b];)b++;if(b===w)continue;h.moveTo(b%C,S);const k=b;let $=y[b];do{const E=p[$];do b+=E;while(!y[b]);const N=y[b];N!==5&&N!==10?($=N,y[b]=0):($=N&51*$>>4,y[b]&=$>>2|$<<2),h.lineTo(b%C,b/C|0),y[b]||--f}while(k!==b);--S}return v=null,y=null,function(b){b.save(),b.scale(1/c,-1/l),b.translate(0,-l),b.fill(h),b.beginPath(),b.restore()}}(t)),o.compiled)){o.compiled(i);return}const s=this._createMaskCanvas(t),r=s.canvas;i.save(),i.setTransform(1,0,0,1,0,0),i.drawImage(r,s.offsetX,s.offsetY),i.restore(),this.compose()}paintImageMaskXObjectRepeat(t,n,i=0,o=0,s,r){if(!this.contentVisible)return;t=this.getObject(t.data,t);const a=this.ctx;a.save();const u=xi(a);a.transform(n,i,o,s,0,0);const c=this._createMaskCanvas(t);a.setTransform(1,0,0,1,c.offsetX-u[4],c.offsetY-u[5]);for(let l=0,g=r.length;l<g;l+=2){const C=nn.transform(u,[n,i,o,s,r[l],r[l+1]]),[S,_]=nn.applyTransform([0,0],C);a.drawImage(c.canvas,S,_)}a.restore(),this.compose()}paintImageMaskXObjectGroup(t){if(!this.contentVisible)return;const n=this.ctx,i=this.current.fillColor,o=this.current.patternFill;for(const s of t){const{data:r,width:a,height:u,transform:c}=s,l=this.cachedCanvases.getCanvas("maskCanvas",a,u),g=l.context;g.save(),y7(g,this.getObject(r,s)),g.globalCompositeOperation="source-in",g.fillStyle=o?i.getPattern(g,this,Ba(n),$u):i,g.fillRect(0,0,a,u),g.restore(),n.save(),n.transform(...c),n.scale(1,-1),Py(n,l.canvas,0,0,a,u,0,-1,1,1),n.restore()}this.compose()}paintImageXObject(t){if(!this.contentVisible)return;const n=this.getObject(t);n?this.paintInlineImageXObject(n):Cn("Dependent image isn't ready yet")}paintImageXObjectRepeat(t,n,i,o){if(!this.contentVisible)return;const s=this.getObject(t);if(!s){Cn("Dependent image isn't ready yet");return}const r=s.width,a=s.height,u=[];for(let c=0,l=o.length;c<l;c+=2)u.push({transform:[n,0,0,i,o[c],o[c+1]],x:0,y:0,w:r,h:a});this.paintInlineImageXObjectGroup(s,u)}applyTransferMapsToCanvas(t){return this.current.transferMaps!=="none"&&(t.filter=this.current.transferMaps,t.drawImage(t.canvas,0,0),t.filter="none"),t.canvas}applyTransferMapsToBitmap(t){if(this.current.transferMaps==="none")return t.bitmap;const{bitmap:n,width:i,height:o}=t,s=this.cachedCanvases.getCanvas("inlineImage",i,o),r=s.context;return r.filter=this.current.transferMaps,r.drawImage(n,0,0),r.filter="none",s.canvas}paintInlineImageXObject(t){if(!this.contentVisible)return;const n=t.width,i=t.height,o=this.ctx;if(this.save(),!Wr){const{filter:a}=o;a!=="none"&&a!==""&&(o.filter="none")}o.scale(1/n,-1/i);let s;if(t.bitmap)s=this.applyTransferMapsToBitmap(t);else if(typeof HTMLElement=="function"&&t instanceof HTMLElement||!t.data)s=t;else{const a=this.cachedCanvases.getCanvas("inlineImage",n,i).context;g7(a,t),s=this.applyTransferMapsToCanvas(a)}const r=this._scaleImage(s,Ba(o));o.imageSmoothingEnabled=b7(xi(o),t.interpolate),Py(o,r.img,0,0,r.paintWidth,r.paintHeight,0,-i,n,i),this.compose(),this.restore()}paintInlineImageXObjectGroup(t,n){if(!this.contentVisible)return;const i=this.ctx;let o;if(t.bitmap)o=t.bitmap;else{const s=t.width,r=t.height,a=this.cachedCanvases.getCanvas("inlineImage",s,r).context;g7(a,t),o=this.applyTransferMapsToCanvas(a)}for(const s of n)i.save(),i.transform(...s.transform),i.scale(1,-1),Py(i,o,s.x,s.y,s.w,s.h,0,-1,1,1),i.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(t){}markPointProps(t,n){}beginMarkedContent(t){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(t,n){t==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(n)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(t){const n=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(t);const i=this.ctx;this.pendingClip&&(n||(this.pendingClip===k7?i.clip("evenodd"):i.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),i.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const t=xi(this.ctx);if(t[1]===0&&t[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(t[0]),Math.abs(t[3]));else{const n=Math.abs(t[0]*t[3]-t[2]*t[1]),i=Math.hypot(t[0],t[2]),o=Math.hypot(t[1],t[3]);this._cachedGetSinglePixelWidth=Math.max(i,o)/n}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:t}=this.current,{a:n,b:i,c:o,d:s}=this.ctx.getTransform();let r,a;if(i===0&&o===0){const u=Math.abs(n),c=Math.abs(s);if(u===c)if(t===0)r=a=1/u;else{const l=u*t;r=a=l<1?1/l:1}else if(t===0)r=1/u,a=1/c;else{const l=u*t,g=c*t;r=l<1?1/l:1,a=g<1?1/g:1}}else{const u=Math.abs(n*s-i*o),c=Math.hypot(n,i),l=Math.hypot(o,s);if(t===0)r=l/u,a=c/u;else{const g=t*u;r=l>g?l/g:1,a=c>g?c/g:1}}this._cachedScaleForStroking[0]=r,this._cachedScaleForStroking[1]=a}return this._cachedScaleForStroking}rescaleAndStroke(t){const{ctx:n}=this,{lineWidth:i}=this.current,[o,s]=this.getScaleForStroking();if(n.lineWidth=i||1,o===1&&s===1){n.stroke();return}const r=n.getLineDash();if(t&&n.save(),n.scale(o,s),r.length>0){const a=Math.max(o,s);n.setLineDash(r.map(u=>u/a)),n.lineDashOffset/=a}n.stroke(),t&&n.restore()}isContentVisible(){for(let t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}};let sh=OO;Mg=new WeakSet,rM=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)},Tg=new WeakSet,oM=function(){if(this.pageColors){const t=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(t!=="none"){const n=this.ctx.filter;this.ctx.filter=t,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=n}}};for(const e in Cs)sh.prototype[e]!==void 0&&(sh.prototype[Cs[e]]=sh.prototype[e]);var Pg,Og;class Il{static get workerPort(){return D(this,Pg)}static set workerPort(t){if(!(typeof Worker<"u"&&t instanceof Worker)&&t!==null)throw new Error("Invalid `workerPort` type.");Ce(this,Pg,t)}static get workerSrc(){return D(this,Og)}static set workerSrc(t){if(typeof t!="string")throw new Error("Invalid `workerSrc` type.");Ce(this,Og,t)}}Pg=new WeakMap,Og=new WeakMap,ue(Il,Pg,null),ue(Il,Og,"");const C7=1,S7=2,w7=1,vA=2,_7=3,I7=4,x7=5,$7=6,Ly=7,gA=8;function Ao(e){switch(e instanceof Error||typeof e=="object"&&e!==null||vi('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new vf(e.message);case"MissingPDFException":return new mf(e.message);case"PasswordException":return new LE(e.message,e.code);case"UnexpectedResponseException":return new kw(e.message,e.status);case"UnknownErrorException":return new DE(e.message,e.details);default:return new DE(e.message,e.toString())}}var $h,QC,YW,e2,XW,t2,KW,Ah,qb;class Vm{constructor(t,n,i){ue(this,QC);ue(this,e2);ue(this,t2);ue(this,Ah);ue(this,$h,new AbortController);this.sourceName=t,this.targetName=n,this.comObj=i,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),i.addEventListener("message",_e(this,QC,YW).bind(this),{signal:D(this,$h).signal})}on(t,n){const i=this.actionHandler;if(i[t])throw new Error(`There is already an actionName called "${t}"`);i[t]=n}send(t,n,i){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:n},i)}sendWithPromise(t,n,i){const o=this.callbackId++,s=Promise.withResolvers();this.callbackCapabilities[o]=s;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:o,data:n},i)}catch(r){s.reject(r)}return s.promise}sendWithStream(t,n,i,o){const s=this.streamId++,r=this.sourceName,a=this.targetName,u=this.comObj;return new ReadableStream({start:c=>{const l=Promise.withResolvers();return this.streamControllers[s]={controller:c,startCall:l,pullCall:null,cancelCall:null,isClosed:!1},u.postMessage({sourceName:r,targetName:a,action:t,streamId:s,data:n,desiredSize:c.desiredSize},o),l.promise},pull:c=>{const l=Promise.withResolvers();return this.streamControllers[s].pullCall=l,u.postMessage({sourceName:r,targetName:a,stream:$7,streamId:s,desiredSize:c.desiredSize}),l.promise},cancel:c=>{or(c instanceof Error,"cancel must have a valid reason");const l=Promise.withResolvers();return this.streamControllers[s].cancelCall=l,this.streamControllers[s].isClosed=!0,u.postMessage({sourceName:r,targetName:a,stream:w7,streamId:s,reason:Ao(c)}),l.promise}},i)}destroy(){var t;(t=D(this,$h))==null||t.abort(),Ce(this,$h,null)}}$h=new WeakMap,QC=new WeakSet,YW=function({data:t}){if(t.targetName!==this.sourceName)return;if(t.stream){_e(this,t2,KW).call(this,t);return}if(t.callback){const i=t.callbackId,o=this.callbackCapabilities[i];if(!o)throw new Error(`Cannot resolve callback ${i}`);if(delete this.callbackCapabilities[i],t.callback===C7)o.resolve(t.data);else{if(t.callback!==S7)throw new Error("Unexpected callback case");o.reject(Ao(t.reason))}return}const n=this.actionHandler[t.action];if(!n)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const i=this.sourceName,o=t.sourceName,s=this.comObj;new Promise(function(r){r(n(t.data))}).then(function(r){s.postMessage({sourceName:i,targetName:o,callback:C7,callbackId:t.callbackId,data:r})},function(r){s.postMessage({sourceName:i,targetName:o,callback:S7,callbackId:t.callbackId,reason:Ao(r)})})}else t.streamId?_e(this,e2,XW).call(this,t):n(t.data)},e2=new WeakSet,XW=function(t){const n=t.streamId,i=this.sourceName,o=t.sourceName,s=this.comObj,r=this,a=this.actionHandler[t.action],u={enqueue(c,l=1,g){if(this.isCancelled)return;const C=this.desiredSize;this.desiredSize-=l,C>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),s.postMessage({sourceName:i,targetName:o,stream:I7,streamId:n,chunk:c},g)},close(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:o,stream:_7,streamId:n}),delete r.streamSinks[n])},error(c){or(c instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:o,stream:x7,streamId:n,reason:Ao(c)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[n]=u,new Promise(function(c){c(a(t.data,u))}).then(function(){s.postMessage({sourceName:i,targetName:o,stream:gA,streamId:n,success:!0})},function(c){s.postMessage({sourceName:i,targetName:o,stream:gA,streamId:n,reason:Ao(c)})})},t2=new WeakSet,KW=function(t){const n=t.streamId,i=this.sourceName,o=t.sourceName,s=this.comObj,r=this.streamControllers[n],a=this.streamSinks[n];switch(t.stream){case gA:t.success?r.startCall.resolve():r.startCall.reject(Ao(t.reason));break;case Ly:t.success?r.pullCall.resolve():r.pullCall.reject(Ao(t.reason));break;case $7:if(!a){s.postMessage({sourceName:i,targetName:o,stream:Ly,streamId:n,success:!0});break}a.desiredSize<=0&&t.desiredSize>0&&a.sinkCapability.resolve(),a.desiredSize=t.desiredSize,new Promise(function(u){var c;u((c=a.onPull)==null?void 0:c.call(a))}).then(function(){s.postMessage({sourceName:i,targetName:o,stream:Ly,streamId:n,success:!0})},function(u){s.postMessage({sourceName:i,targetName:o,stream:Ly,streamId:n,reason:Ao(u)})});break;case I7:if(or(r,"enqueue should have stream controller"),r.isClosed)break;r.controller.enqueue(t.chunk);break;case _7:if(or(r,"close should have stream controller"),r.isClosed)break;r.isClosed=!0,r.controller.close(),_e(this,Ah,qb).call(this,r,n);break;case x7:or(r,"error should have stream controller"),r.controller.error(Ao(t.reason)),_e(this,Ah,qb).call(this,r,n);break;case vA:t.success?r.cancelCall.resolve():r.cancelCall.reject(Ao(t.reason)),_e(this,Ah,qb).call(this,r,n);break;case w7:if(!a)break;new Promise(function(u){var c;u((c=a.onCancel)==null?void 0:c.call(a,Ao(t.reason)))}).then(function(){s.postMessage({sourceName:i,targetName:o,stream:vA,streamId:n,success:!0})},function(u){s.postMessage({sourceName:i,targetName:o,stream:vA,streamId:n,reason:Ao(u)})}),a.sinkCapability.reject(Ao(t.reason)),a.isCancelled=!0,delete this.streamSinks[n];break;default:throw new Error("Unexpected stream case")}},Ah=new WeakSet,qb=async function(t,n){var i,o,s;await Promise.allSettled([(i=t.startCall)==null?void 0:i.promise,(o=t.pullCall)==null?void 0:o.promise,(s=t.cancelCall)==null?void 0:s.promise]),delete this.streamControllers[n]};var Xu,Lg;class aZe{constructor({parsedData:t,rawData:n}){ue(this,Xu,void 0);ue(this,Lg,void 0);Ce(this,Xu,t),Ce(this,Lg,n)}getRaw(){return D(this,Lg)}get(t){return D(this,Xu).get(t)??null}getAll(){return JP(D(this,Xu))}has(t){return D(this,Xu).has(t)}}Xu=new WeakMap,Lg=new WeakMap;const Tf=Symbol("INTERNAL");var Dg,Ng,jg,Eh;class lZe{constructor(t,{name:n,intent:i,usage:o,rbGroups:s}){ue(this,Dg,!1);ue(this,Ng,!1);ue(this,jg,!1);ue(this,Eh,!0);Ce(this,Dg,!!(t&KP)),Ce(this,Ng,!!(t&pC)),this.name=n,this.intent=i,this.usage=o,this.rbGroups=s}get visible(){if(D(this,jg))return D(this,Eh);if(!D(this,Eh))return!1;const{print:t,view:n}=this.usage;return D(this,Dg)?(n==null?void 0:n.viewState)!=="OFF":!D(this,Ng)||(t==null?void 0:t.printState)!=="OFF"}_setVisible(t,n,i=!1){t!==Tf&&vi("Internal method `_setVisible` called."),Ce(this,jg,i),Ce(this,Eh,n)}}Dg=new WeakMap,Ng=new WeakMap,jg=new WeakMap,Eh=new WeakMap;var Cc,Xn,Mh,Th,zg,sM;class cZe{constructor(t,n=KP){ue(this,zg);ue(this,Cc,null);ue(this,Xn,new Map);ue(this,Mh,null);ue(this,Th,null);if(this.renderingIntent=n,this.name=null,this.creator=null,t!==null){this.name=t.name,this.creator=t.creator,Ce(this,Th,t.order);for(const i of t.groups)D(this,Xn).set(i.id,new lZe(n,i));if(t.baseState==="OFF")for(const i of D(this,Xn).values())i._setVisible(Tf,!1);for(const i of t.on)D(this,Xn).get(i)._setVisible(Tf,!0);for(const i of t.off)D(this,Xn).get(i)._setVisible(Tf,!1);Ce(this,Mh,this.getHash())}}isVisible(t){if(D(this,Xn).size===0)return!0;if(!t)return bw("Optional content group not defined."),!0;if(t.type==="OCG")return D(this,Xn).has(t.id)?D(this,Xn).get(t.id).visible:(Cn(`Optional content group not found: ${t.id}`),!0);if(t.type==="OCMD"){if(t.expression)return _e(this,zg,sM).call(this,t.expression);if(!t.policy||t.policy==="AnyOn"){for(const n of t.ids){if(!D(this,Xn).has(n))return Cn(`Optional content group not found: ${n}`),!0;if(D(this,Xn).get(n).visible)return!0}return!1}if(t.policy==="AllOn"){for(const n of t.ids){if(!D(this,Xn).has(n))return Cn(`Optional content group not found: ${n}`),!0;if(!D(this,Xn).get(n).visible)return!1}return!0}if(t.policy==="AnyOff"){for(const n of t.ids){if(!D(this,Xn).has(n))return Cn(`Optional content group not found: ${n}`),!0;if(!D(this,Xn).get(n).visible)return!0}return!1}if(t.policy==="AllOff"){for(const n of t.ids){if(!D(this,Xn).has(n))return Cn(`Optional content group not found: ${n}`),!0;if(D(this,Xn).get(n).visible)return!1}return!0}return Cn(`Unknown optional content policy ${t.policy}.`),!0}return Cn(`Unknown group type ${t.type}.`),!0}setVisibility(t,n=!0,i=!0){var s;const o=D(this,Xn).get(t);if(o){if(i&&n&&o.rbGroups.length)for(const r of o.rbGroups)for(const a of r)a!==t&&((s=D(this,Xn).get(a))==null||s._setVisible(Tf,!1,!0));o._setVisible(Tf,!!n,!0),Ce(this,Cc,null)}else Cn(`Optional content group not found: ${t}`)}setOCGState({state:t,preserveRB:n}){let i;for(const o of t){switch(o){case"ON":case"OFF":case"Toggle":i=o;continue}const s=D(this,Xn).get(o);if(s)switch(i){case"ON":this.setVisibility(o,!0,n);break;case"OFF":this.setVisibility(o,!1,n);break;case"Toggle":this.setVisibility(o,!s.visible,n)}}Ce(this,Cc,null)}get hasInitialVisibility(){return D(this,Mh)===null||this.getHash()===D(this,Mh)}getOrder(){return D(this,Xn).size?D(this,Th)?D(this,Th).slice():[...D(this,Xn).keys()]:null}getGroups(){return D(this,Xn).size>0?JP(D(this,Xn)):null}getGroup(t){return D(this,Xn).get(t)||null}getHash(){if(D(this,Cc)!==null)return D(this,Cc);const t=new BW;for(const[n,i]of D(this,Xn))t.update(`${n}:${i.visible}`);return Ce(this,Cc,t.hexdigest())}}Cc=new WeakMap,Xn=new WeakMap,Mh=new WeakMap,Th=new WeakMap,zg=new WeakSet,sM=function(t){const n=t.length;if(n<2)return!0;const i=t[0];for(let o=1;o<n;o++){const s=t[o];let r;if(Array.isArray(s))r=_e(this,zg,sM).call(this,s);else{if(!D(this,Xn).has(s))return Cn(`Optional content group not found: ${s}`),!0;r=D(this,Xn).get(s).visible}switch(i){case"And":if(!r)return!1;break;case"Or":if(r)return!0;break;case"Not":return!r;default:return!0}}return i==="And"};class uZe{constructor(t,{disableRange:n=!1,disableStream:i=!1}){or(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:o,initialData:s,progressiveDone:r,contentDispositionFilename:a}=t;if(this._queuedChunks=[],this._progressiveDone=r,this._contentDispositionFilename=a,(s==null?void 0:s.length)>0){const u=s instanceof Uint8Array&&s.byteLength===s.buffer.byteLength?s.buffer:new Uint8Array(s).buffer;this._queuedChunks.push(u)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!i,this._isRangeSupported=!n,this._contentLength=o,this._fullRequestReader=null,this._rangeReaders=[],t.addRangeListener((u,c)=>{this._onReceiveData({begin:u,chunk:c})}),t.addProgressListener((u,c)=>{this._onProgress({loaded:u,total:c})}),t.addProgressiveReadListener(u=>{this._onReceiveData({chunk:u})}),t.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),t.transportReady()}_onReceiveData({begin:t,chunk:n}){const i=n instanceof Uint8Array&&n.byteLength===n.buffer.byteLength?n.buffer:new Uint8Array(n).buffer;t===void 0?this._fullRequestReader?this._fullRequestReader._enqueue(i):this._queuedChunks.push(i):or(this._rangeReaders.some(function(o){return o._begin!==t?!1:(o._enqueue(i),!0)}),"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}get _progressiveDataLength(){var t;return((t=this._fullRequestReader)==null?void 0:t._loaded)??0}_onProgress(t){var n,i,o,s;t.total===void 0?(i=(n=this._rangeReaders[0])==null?void 0:n.onProgress)==null||i.call(n,{loaded:t.loaded}):(s=(o=this._fullRequestReader)==null?void 0:o.onProgress)==null||s.call(o,{loaded:t.loaded,total:t.total})}_onProgressiveDone(){var t;(t=this._fullRequestReader)==null||t.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(t){const n=this._rangeReaders.indexOf(t);n>=0&&this._rangeReaders.splice(n,1)}getFullReader(){or(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const t=this._queuedChunks;return this._queuedChunks=null,new dZe(this,t,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(t,n){if(n<=this._progressiveDataLength)return null;const i=new fZe(this,t,n);return this._pdfDataRangeTransport.requestDataRange(t,n),this._rangeReaders.push(i),i}cancelAllRequests(t){var n;(n=this._fullRequestReader)==null||n.cancel(t);for(const i of this._rangeReaders.slice(0))i.cancel(t);this._pdfDataRangeTransport.abort()}}class dZe{constructor(t,n,i=!1,o=null){this._stream=t,this._done=i||!1,this._filename=eO(o)?o:null,this._queuedChunks=n||[],this._loaded=0;for(const s of this._queuedChunks)this._loaded+=s.byteLength;this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}_enqueue(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class fZe{constructor(t,n,i){this._stream=t,this._begin=n,this._end=i,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(t){if(!this._done){if(this._requests.length===0)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1});for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const n=this._queuedChunk;return this._queuedChunk=null,{value:n,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function oO(e,t){const n=new Headers;if(!e||!t||typeof t!="object")return n;for(const i in t){const o=t[i];o!==void 0&&n.append(i,o)}return n}function sO({responseHeaders:e,isHttp:t,rangeChunkSize:n,disableRange:i}){const o={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(e.get("Content-Length"),10);return!Number.isInteger(s)||(o.suggestedLength=s,s<=2*n)||i||!t||e.get("Accept-Ranges")!=="bytes"||(e.get("Content-Encoding")||"identity")!=="identity"||(o.allowRangeRequests=!0),o}function aO(e){const t=e.get("Content-Disposition");if(t){let n=function(o){let s=!0,r=a("filename\\*","i").exec(o);if(r){r=r[1];let S=l(r);return S=unescape(S),S=g(S),S=C(S),c(S)}if(r=function(_){const A=[];let y;const d=a("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(y=d.exec(_))!==null;){let[,m,f,p]=y;if(m=parseInt(m,10),m in A){if(m===0)break}else A[m]=[f,p]}const v=[];for(let m=0;m<A.length&&m in A;++m){let[f,p]=A[m];p=l(p),f&&(p=unescape(p),m===0&&(p=g(p))),v.push(p)}return v.join("")}(o),r)return c(C(r));if(r=a("filename","i").exec(o),r){r=r[1];let S=l(r);return S=C(S),c(S)}function a(S,_){return new RegExp("(?:^|;)\\s*"+S+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',_)}function u(S,_){if(S){if(!/^[\x00-\xFF]+$/.test(_))return _;try{const A=new TextDecoder(S,{fatal:!0}),y=Cw(_);_=A.decode(y),s=!1}catch{}}return _}function c(S){return s&&/[\x80-\xff]/.test(S)&&(S=u("utf-8",S),s&&(S=u("iso-8859-1",S))),S}function l(S){if(S.startsWith('"')){const _=S.slice(1).split('\\"');for(let A=0;A<_.length;++A){const y=_[A].indexOf('"');y!==-1&&(_[A]=_[A].slice(0,y),_.length=A+1),_[A]=_[A].replaceAll(/\\(.)/g,"$1")}S=_.join('"')}return S}function g(S){const _=S.indexOf("'");return _===-1?S:u(S.slice(0,_),S.slice(_+1).replace(/^[^']*'/,""))}function C(S){return!S.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(S)?S:S.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(_,A,y,d){if(y==="q"||y==="Q")return u(A,d=(d=d.replaceAll("_"," ")).replaceAll(/=([0-9a-fA-F]{2})/g,function(v,m){return String.fromCharCode(parseInt(m,16))}));try{d=atob(d)}catch{}return u(A,d)})}return""}(t);if(n.includes("%"))try{n=decodeURIComponent(n)}catch{}if(eO(n))return n}return null}function _w(e,t){return e===404||e===0&&t.startsWith("file:")?new mf('Missing PDF "'+t+'".'):new kw(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)}function JW(e){return e===200||e===206}function qW(e,t,n){return{method:"GET",headers:e,signal:n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function QW(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:(Cn(`getArrayBuffer - unexpected data format: ${e}`),new Uint8Array(e).buffer)}class A7{constructor(t){this.source=t,this.isHttp=/^https?:/i.test(t.url),this.headers=oO(this.isHttp,t.httpHeaders),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var t;return((t=this._fullRequestReader)==null?void 0:t._loaded)??0}getFullReader(){return or(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new hZe(this),this._fullRequestReader}getRangeReader(t,n){if(n<=this._progressiveDataLength)return null;const i=new pZe(this,t,n);return this._rangeRequestReaders.push(i),i}cancelAllRequests(t){var n;(n=this._fullRequestReader)==null||n.cancel(t);for(const i of this._rangeRequestReaders.slice(0))i.cancel(t)}}class hZe{constructor(t){this._stream=t,this._reader=null,this._loaded=0,this._filename=null;const n=t.source;this._withCredentials=n.withCredentials||!1,this._contentLength=n.length,this._headersCapability=Promise.withResolvers(),this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange;const i=new Headers(t.headers),o=n.url;fetch(o,qW(i,this._withCredentials,this._abortController)).then(s=>{if(!JW(s.status))throw _w(s.status,o);this._reader=s.body.getReader(),this._headersCapability.resolve();const r=s.headers,{allowRangeRequests:a,suggestedLength:u}=sO({responseHeaders:r,isHttp:t.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=u||this._contentLength,this._filename=aO(r),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new vf("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var i;await this._headersCapability.promise;const{value:t,done:n}=await this._reader.read();return n?{value:t,done:n}:(this._loaded+=t.byteLength,(i=this.onProgress)==null||i.call(this,{loaded:this._loaded,total:this._contentLength}),{value:QW(t),done:!1})}cancel(t){var n;(n=this._reader)==null||n.cancel(t),this._abortController.abort()}}class pZe{constructor(t,n,i){this._stream=t,this._reader=null,this._loaded=0;const o=t.source;this._withCredentials=o.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!o.disableStream,this._abortController=new AbortController;const s=new Headers(t.headers);s.append("Range",`bytes=${n}-${i-1}`);const r=o.url;fetch(r,qW(s,this._withCredentials,this._abortController)).then(a=>{if(!JW(a.status))throw _w(a.status,r);this._readCapability.resolve(),this._reader=a.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var i;await this._readCapability.promise;const{value:t,done:n}=await this._reader.read();return n?{value:t,done:n}:(this._loaded+=t.byteLength,(i=this.onProgress)==null||i.call(this,{loaded:this._loaded}),{value:QW(t),done:!1})}cancel(t){var n;(n=this._reader)==null||n.cancel(t),this._abortController.abort()}}class mZe{constructor({url:t,httpHeaders:n,withCredentials:i}){this.url=t,this.isHttp=/^https?:/i.test(t),this.headers=oO(this.isHttp,n),this.withCredentials=i||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(t,n,i){const o={begin:t,end:n};for(const s in i)o[s]=i[s];return this.request(o)}requestFull(t){return this.request(t)}request(t){const n=new XMLHttpRequest,i=this.currXhrId++,o=this.pendingRequests[i]={xhr:n};n.open("GET",this.url),n.withCredentials=this.withCredentials;for(const[s,r]of this.headers)n.setRequestHeader(s,r);return this.isHttp&&"begin"in t&&"end"in t?(n.setRequestHeader("Range",`bytes=${t.begin}-${t.end-1}`),o.expectedStatus=206):o.expectedStatus=200,n.responseType="arraybuffer",t.onError&&(n.onerror=function(s){t.onError(n.status)}),n.onreadystatechange=this.onStateChange.bind(this,i),n.onprogress=this.onProgress.bind(this,i),o.onHeadersReceived=t.onHeadersReceived,o.onDone=t.onDone,o.onError=t.onError,o.onProgress=t.onProgress,n.send(null),i}onProgress(t,n){var o;const i=this.pendingRequests[t];i&&((o=i.onProgress)==null||o.call(i,n))}onStateChange(t,n){var a,u,c;const i=this.pendingRequests[t];if(!i)return;const o=i.xhr;if(o.readyState>=2&&i.onHeadersReceived&&(i.onHeadersReceived(),delete i.onHeadersReceived),o.readyState!==4||!(t in this.pendingRequests))return;if(delete this.pendingRequests[t],o.status===0&&this.isHttp){(a=i.onError)==null||a.call(i,o.status);return}const s=o.status||200;if(!(s===200&&i.expectedStatus===206)&&s!==i.expectedStatus){(u=i.onError)==null||u.call(i,o.status);return}const r=function(g){const C=g.response;return typeof C!="string"?C:Cw(C).buffer}(o);if(s===206){const l=o.getResponseHeader("Content-Range"),g=/bytes (\d+)-(\d+)\/(\d+)/.exec(l);i.onDone({begin:parseInt(g[1],10),chunk:r})}else r?i.onDone({begin:0,chunk:r}):(c=i.onError)==null||c.call(i,o.status)}getRequestXhr(t){return this.pendingRequests[t].xhr}isPendingRequest(t){return t in this.pendingRequests}abortRequest(t){const n=this.pendingRequests[t].xhr;delete this.pendingRequests[t],n.abort()}}class vZe{constructor(t){this._source=t,this._manager=new mZe(t),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(t){const n=this._rangeRequestReaders.indexOf(t);n>=0&&this._rangeRequestReaders.splice(n,1)}getFullReader(){return or(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new gZe(this._manager,this._source),this._fullRequestReader}getRangeReader(t,n){const i=new yZe(this._manager,t,n);return i.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(i),i}cancelAllRequests(t){var n;(n=this._fullRequestReader)==null||n.cancel(t);for(const i of this._rangeRequestReaders.slice(0))i.cancel(t)}}class gZe{constructor(t,n){this._manager=t;const i={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=n.url,this._fullRequestId=t.requestFull(i),this._headersCapability=Promise.withResolvers(),this._disableRange=n.disableRange||!1,this._contentLength=n.length,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const t=this._fullRequestId,n=this._manager.getRequestXhr(t),i=new Headers(n.getAllResponseHeaders().trim().split(/[\r\n]+/).map(r=>{const[a,...u]=r.split(": ");return[a,u.join(": ")]})),{allowRangeRequests:o,suggestedLength:s}=sO({responseHeaders:i,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});o&&(this._isRangeSupported=!0),this._contentLength=s||this._contentLength,this._filename=aO(i),this._isRangeSupported&&this._manager.abortRequest(t),this._headersCapability.resolve()}_onDone(t){if(t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(t){this._storedError=_w(t,this._url),this._headersCapability.reject(this._storedError);for(const n of this._requests)n.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(t){var n;(n=this.onProgress)==null||n.call(this,{loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._headersCapability.reject(t);for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class yZe{constructor(t,n,i){this._manager=t;const o={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._requestId=t.requestRange(n,i,o),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var t;(t=this.onClosed)==null||t.call(this,this)}_onDone(t){const n=t.chunk;this._requests.length>0?this._requests.shift().resolve({value:n,done:!1}):this._queuedChunk=n,this._done=!0;for(const i of this._requests)i.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(t){this._storedError=_w(t,this._url);for(const n of this._requests)n.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(t){var n;this.isStreamingSupported||((n=this.onProgress)==null||n.call(this,{loaded:t.loaded}))}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const n=this._queuedChunk;return this._queuedChunk=null,{value:n,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const bZe=/^[a-z][a-z0-9\-+.]+:/i;function eU(e,t,n){return e.protocol==="http:"?eu.get("http").request(e,{headers:t},n):eu.get("https").request(e,{headers:t},n)}class kZe{constructor(t){this.source=t,this.url=function(i){if(bZe.test(i))return new URL(i);const o=eu.get("url");return new URL(o.pathToFileURL(i))}(t.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.headers=oO(this.isHttp,t.httpHeaders),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var t;return((t=this._fullRequestReader)==null?void 0:t._loaded)??0}getFullReader(){return or(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new wZe(this):new CZe(this),this._fullRequestReader}getRangeReader(t,n){if(n<=this._progressiveDataLength)return null;const i=this.isFsUrl?new _Ze(this,t,n):new SZe(this,t,n);return this._rangeRequestReaders.push(i),i}cancelAllRequests(t){var n;(n=this._fullRequestReader)==null||n.cancel(t);for(const i of this._rangeRequestReaders.slice(0))i.cancel(t)}}class tU{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;const n=t.source;this._contentLength=n.length,this._loaded=0,this._filename=null,this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var n;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,(n=this.onProgress)==null||n.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",n=>{this._error(n)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new vf("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class nU{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const n=t.source;this._isStreamingSupported=!n.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){var n;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,(n=this.onProgress)==null||n.call(this,{loaded:this._loaded}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",n=>{this._error(n)}),this._storedError&&this._readableStream.destroy(this._storedError)}}class CZe extends tU{constructor(t){super(t);const n=Object.fromEntries(t.headers);this._request=eU(this._url,n,i=>{if(i.statusCode===404){const a=new mf(`Missing PDF "${this._url}".`);this._storedError=a,this._headersCapability.reject(a);return}this._headersCapability.resolve(),this._setReadableStream(i);const o=new Headers(this._readableStream.headers),{allowRangeRequests:s,suggestedLength:r}=sO({responseHeaders:o,isHttp:t.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=s,this._contentLength=r||this._contentLength,this._filename=aO(o)}),this._request.on("error",i=>{this._storedError=i,this._headersCapability.reject(i)}),this._request.end()}}class SZe extends nU{constructor(t,n,i){super(t);const o=Object.fromEntries(t.headers);o.Range=`bytes=${n}-${i-1}`,this._request=eU(this._url,o,s=>{if(s.statusCode!==404)this._setReadableStream(s);else{const r=new mf(`Missing PDF "${this._url}".`);this._storedError=r}}),this._request.on("error",s=>{this._storedError=s}),this._request.end()}}class wZe extends tU{constructor(t){super(t);const n=eu.get("fs");n.promises.lstat(this._url).then(i=>{this._contentLength=i.size,this._setReadableStream(n.createReadStream(this._url)),this._headersCapability.resolve()},i=>{i.code==="ENOENT"&&(i=new mf(`Missing PDF "${this._url}".`)),this._storedError=i,this._headersCapability.reject(i)})}}class _Ze extends nU{constructor(t,n,i){super(t);const o=eu.get("fs");this._setReadableStream(o.createReadStream(this._url,{start:n,end:i-1}))}}const mo=30;var nz,Sc,yo,Rg,Bg,Ku,qa,Fg,Vg,Ju,Ph,Oh,wc,Lh,Hg,Dh,qu,Wg,Ug,Qu,ed,Zg,_c,Nh,n2,iU,i2,rU,Gg,aM,jh,Qb,Yg,lM,r2,oU,o2,sU;const Mo=class{constructor({textContentSource:t,container:n,viewport:i}){ue(this,n2);ue(this,i2);ue(this,Gg);ue(this,Sc,Promise.withResolvers());ue(this,yo,null);ue(this,Rg,!1);ue(this,Bg,!!((nz=globalThis.FontInspector)!=null&&nz.enabled));ue(this,Ku,null);ue(this,qa,null);ue(this,Fg,0);ue(this,Vg,0);ue(this,Ju,null);ue(this,Ph,null);ue(this,Oh,0);ue(this,wc,0);ue(this,Lh,Object.create(null));ue(this,Hg,[]);ue(this,Dh,null);ue(this,qu,[]);ue(this,Wg,new WeakMap);ue(this,Ug,null);var u;if(t instanceof ReadableStream)Ce(this,Dh,t);else{if(typeof t!="object")throw new Error('No "textContentSource" parameter specified.');Ce(this,Dh,new ReadableStream({start(c){c.enqueue(t),c.close()}}))}Ce(this,yo,Ce(this,Ph,n)),Ce(this,wc,i.scale*(globalThis.devicePixelRatio||1)),Ce(this,Oh,i.rotation),Ce(this,qa,{div:null,properties:null,ctx:null});const{pageWidth:o,pageHeight:s,pageX:r,pageY:a}=i.rawDims;Ce(this,Ug,[1,0,0,-1,-r,a+s]),Ce(this,Vg,o),Ce(this,Fg,s),_e(u=Mo,r2,oU).call(u),tf(n,i),D(this,Sc).promise.finally(()=>{D(Mo,Nh).delete(this),Ce(this,qa,null),Ce(this,Lh,null)}).catch(()=>{})}static get fontFamilyMap(){const{isWindows:t,isFirefox:n}=ao.platform;return Pn(this,"fontFamilyMap",new Map([["sans-serif",(t&&n?"Calibri, ":"")+"sans-serif"],["monospace",(t&&n?"Lucida Console, ":"")+"monospace"]]))}render(){const t=()=>{D(this,Ju).read().then(({value:n,done:i})=>{i?D(this,Sc).resolve():(D(this,Ku)??Ce(this,Ku,n.lang),Object.assign(D(this,Lh),n.styles),_e(this,n2,iU).call(this,n.items),t())},D(this,Sc).reject)};return Ce(this,Ju,D(this,Dh).getReader()),D(Mo,Nh).add(this),t(),D(this,Sc).promise}update({viewport:t,onBefore:n=null}){var s;const i=t.scale*(globalThis.devicePixelRatio||1),o=t.rotation;if(o!==D(this,Oh)&&(n==null||n(),Ce(this,Oh,o),tf(D(this,Ph),{rotation:o})),i!==D(this,wc)){n==null||n(),Ce(this,wc,i);const r={div:null,properties:null,ctx:_e(s=Mo,jh,Qb).call(s,D(this,Ku))};for(const a of D(this,qu))r.properties=D(this,Wg).get(a),r.div=a,_e(this,Gg,aM).call(this,r)}}cancel(){var n;const t=new vf("TextLayer task cancelled.");(n=D(this,Ju))==null||n.cancel(t).catch(()=>{}),Ce(this,Ju,null),D(this,Sc).reject(t)}get textDivs(){return D(this,qu)}get textContentItemsStr(){return D(this,Hg)}static cleanup(){if(!(D(this,Nh).size>0)){D(this,Qu).clear();for(const{canvas:t}of D(this,ed).values())t.remove();D(this,ed).clear()}}};let vo=Mo;Sc=new WeakMap,yo=new WeakMap,Rg=new WeakMap,Bg=new WeakMap,Ku=new WeakMap,qa=new WeakMap,Fg=new WeakMap,Vg=new WeakMap,Ju=new WeakMap,Ph=new WeakMap,Oh=new WeakMap,wc=new WeakMap,Lh=new WeakMap,Hg=new WeakMap,Dh=new WeakMap,qu=new WeakMap,Wg=new WeakMap,Ug=new WeakMap,Qu=new WeakMap,ed=new WeakMap,Zg=new WeakMap,_c=new WeakMap,Nh=new WeakMap,n2=new WeakSet,iU=function(t){var o,s;if(D(this,Rg))return;(s=D(this,qa)).ctx??(s.ctx=_e(o=Mo,jh,Qb).call(o,D(this,Ku)));const n=D(this,qu),i=D(this,Hg);for(const r of t){if(n.length>1e5){Cn("Ignoring additional textDivs for performance reasons."),Ce(this,Rg,!0);return}if(r.str!==void 0)i.push(r.str),_e(this,i2,rU).call(this,r);else if(r.type==="beginMarkedContentProps"||r.type==="beginMarkedContent"){const a=D(this,yo);Ce(this,yo,document.createElement("span")),D(this,yo).classList.add("markedContent"),r.id!==null&&D(this,yo).setAttribute("id",`${r.id}`),a.append(D(this,yo))}else r.type==="endMarkedContent"&&Ce(this,yo,D(this,yo).parentNode)}},i2=new WeakSet,rU=function(t){var A;const n=document.createElement("span"),i={angle:0,canvasWidth:0,hasText:t.str!=="",hasEOL:t.hasEOL,fontSize:0};D(this,qu).push(n);const o=nn.transform(D(this,Ug),t.transform);let s=Math.atan2(o[1],o[0]);const r=D(this,Lh)[t.fontName];r.vertical&&(s+=Math.PI/2);let a=D(this,Bg)&&r.fontSubstitution||r.fontFamily;a=Mo.fontFamilyMap.get(a)||a;const u=Math.hypot(o[2],o[3]),c=u*_e(A=Mo,o2,sU).call(A,a,D(this,Ku));let l,g;s===0?(l=o[4],g=o[5]-c):(l=o[4]+c*Math.sin(s),g=o[5]-c*Math.cos(s));const C="calc(var(--scale-factor)*",S=n.style;D(this,yo)===D(this,Ph)?(S.left=`${(100*l/D(this,Vg)).toFixed(2)}%`,S.top=`${(100*g/D(this,Fg)).toFixed(2)}%`):(S.left=`${C}${l.toFixed(2)}px)`,S.top=`${C}${g.toFixed(2)}px)`),S.fontSize=`${C}${(D(Mo,_c)*u).toFixed(2)}px)`,S.fontFamily=a,i.fontSize=u,n.setAttribute("role","presentation"),n.textContent=t.str,n.dir=t.dir,D(this,Bg)&&(n.dataset.fontName=r.fontSubstitutionLoadedName||t.fontName),s!==0&&(i.angle=s*(180/Math.PI));let _=!1;if(t.str.length>1)_=!0;else if(t.str!==" "&&t.transform[0]!==t.transform[3]){const y=Math.abs(t.transform[0]),d=Math.abs(t.transform[3]);y!==d&&Math.max(y,d)/Math.min(y,d)>1.5&&(_=!0)}if(_&&(i.canvasWidth=r.vertical?t.height:t.width),D(this,Wg).set(n,i),D(this,qa).div=n,D(this,qa).properties=i,_e(this,Gg,aM).call(this,D(this,qa)),i.hasText&&D(this,yo).append(n),i.hasEOL){const y=document.createElement("br");y.setAttribute("role","presentation"),D(this,yo).append(y)}},Gg=new WeakSet,aM=function(t){var a;const{div:n,properties:i,ctx:o}=t,{style:s}=n;let r="";if(D(Mo,_c)>1&&(r=`scale(${1/D(Mo,_c)})`),i.canvasWidth!==0&&i.hasText){const{fontFamily:u}=s,{canvasWidth:c,fontSize:l}=i;_e(a=Mo,Yg,lM).call(a,o,l*D(this,wc),u);const{width:g}=o.measureText(n.textContent);g>0&&(r=`scaleX(${c*D(this,wc)/g}) ${r}`)}i.angle!==0&&(r=`rotate(${i.angle}deg) ${r}`),r.length>0&&(s.transform=r)},jh=new WeakSet,Qb=function(t=null){let n=D(this,ed).get(t||(t=""));if(!n){const i=document.createElement("canvas");i.className="hiddenCanvasElement",i.lang=t,document.body.append(i),n=i.getContext("2d",{alpha:!1,willReadFrequently:!0}),D(this,ed).set(t,n),D(this,Zg).set(n,{size:0,family:""})}return n},Yg=new WeakSet,lM=function(t,n,i){const o=D(this,Zg).get(t);(n!==o.size||i!==o.family)&&(t.font=`${n}px ${i}`,o.size=n,o.family=i)},r2=new WeakSet,oU=function(){if(D(this,_c)!==null)return;const t=document.createElement("div");t.style.opacity=0,t.style.lineHeight=1,t.style.fontSize="1px",t.style.position="absolute",t.textContent="X",document.body.append(t),Ce(this,_c,t.getBoundingClientRect().height),t.remove()},o2=new WeakSet,sU=function(t,n){const i=D(this,Qu).get(t);if(i)return i;const o=_e(this,jh,Qb).call(this,n);o.canvas.width=o.canvas.height=mo,_e(this,Yg,lM).call(this,o,mo,t);const s=o.measureText("");let r=s.fontBoundingBoxAscent,a=Math.abs(s.fontBoundingBoxDescent);if(r){const l=r/(r+a);return D(this,Qu).set(t,l),o.canvas.width=o.canvas.height=0,l}o.strokeStyle="red",o.clearRect(0,0,mo,mo),o.strokeText("g",0,0);let u=o.getImageData(0,0,mo,mo).data;a=0;for(let l=u.length-1-3;l>=0;l-=4)if(u[l]>0){a=Math.ceil(l/4/mo);break}o.clearRect(0,0,mo,mo),o.strokeText("A",0,mo),u=o.getImageData(0,0,mo,mo).data,r=0;for(let l=0,g=u.length;l<g;l+=4)if(u[l]>0){r=mo-Math.floor(l/4/mo);break}o.canvas.width=o.canvas.height=0;const c=r?r/(r+a):.8;return D(this,Qu).set(t,c),c},ue(vo,jh),ue(vo,Yg),ue(vo,r2),ue(vo,o2),ue(vo,Qu,new Map),ue(vo,ed,new Map),ue(vo,Zg,new WeakMap),ue(vo,_c,null),ue(vo,Nh,new Set);class Hv{static textContent(t){const n=[],i={items:n,styles:Object.create(null)};return function o(s){var u;if(!s)return;let r=null;const a=s.name;if(a==="#text")r=s.value;else{if(!Hv.shouldBuildText(a))return;(u=s==null?void 0:s.attributes)!=null&&u.textContent?r=s.attributes.textContent:s.value&&(r=s.value)}if(r!==null&&n.push({str:r}),s.children)for(const c of s.children)o(c)}(t),i}static shouldBuildText(t){return!(t==="textarea"||t==="input"||t==="option"||t==="select")}}const IZe=65536,xZe=Wr?class extends p7{_createCanvas(t,n){return eu.get("canvas").createCanvas(t,n)}}:class extends p7{constructor({ownerDocument:t=globalThis.document,enableHWA:n=!1}){super({enableHWA:n}),this._document=t}_createCanvas(t,n){const i=this._document.createElement("canvas");return i.width=t,i.height=n,i}},$Ze=Wr?class extends HW{async _fetch(t){return GW(t)}}:WW;var td,nd,fa,Qa,Rr,s2,id,vr,Nr,Ic,Pf,xc,Of,zh,ek,$c,Lf,a2,aU,Xg,cM,Ac,Df,rd,Hm,od,Wm,Kg,uM,sd,Um,iz;const AZe=Wr?class extends m7{}:(iz=class extends m7{constructor({docId:n,ownerDocument:i=globalThis.document}){super();ue(this,vr);ue(this,Ic);ue(this,xc);ue(this,zh);ue(this,$c);ue(this,a2);ue(this,Xg);ue(this,Ac);ue(this,rd);ue(this,od);ue(this,Kg);ue(this,sd);ue(this,td,void 0);ue(this,nd,void 0);ue(this,fa,void 0);ue(this,Qa,void 0);ue(this,Rr,void 0);ue(this,s2,void 0);ue(this,id,0);Ce(this,Qa,n),Ce(this,Rr,i)}addFilter(n){if(!n)return"none";let i=D(this,vr,Nr).get(n);if(i)return i;const[o,s,r]=_e(this,zh,ek).call(this,n),a=n.length===1?o:`${o}${s}${r}`;if(i=D(this,vr,Nr).get(a),i)return D(this,vr,Nr).set(n,i),i;const u=`g_${D(this,Qa)}_transfer_map_${Kr(this,id)._++}`,c=_e(this,$c,Lf).call(this,u);D(this,vr,Nr).set(n,c),D(this,vr,Nr).set(a,c);const l=_e(this,Ac,Df).call(this,u);return _e(this,od,Wm).call(this,o,s,r,l),c}addHCMFilter(n,i){var _;const o=`${n}-${i}`,s="base";let r=D(this,Ic,Pf).get(s);if((r==null?void 0:r.key)===o||(r?((_=r.filter)==null||_.remove(),r.key=o,r.url="none",r.filter=null):(r={key:o,url:"none",filter:null},D(this,Ic,Pf).set(s,r)),!n||!i))return r.url;const a=_e(this,sd,Um).call(this,n);n=nn.makeHexColor(...a);const u=_e(this,sd,Um).call(this,i);if(i=nn.makeHexColor(...u),D(this,xc,Of).style.color="",n==="#000000"&&i==="#ffffff"||n===i)return r.url;const c=new Array(256);for(let A=0;A<=255;A++){const y=A/255;c[A]=y<=.03928?y/12.92:((y+.055)/1.055)**2.4}const l=c.join(","),g=`g_${D(this,Qa)}_hcm_filter`,C=r.filter=_e(this,Ac,Df).call(this,g);_e(this,od,Wm).call(this,l,l,l,C),_e(this,Xg,cM).call(this,C);const S=(A,y)=>{const d=a[A]/255,v=u[A]/255,m=new Array(y+1);for(let f=0;f<=y;f++)m[f]=d+f/y*(v-d);return m.join(",")};return _e(this,od,Wm).call(this,S(0,5),S(1,5),S(2,5),C),r.url=_e(this,$c,Lf).call(this,g),r.url}addAlphaFilter(n){let i=D(this,vr,Nr).get(n);if(i)return i;const[o]=_e(this,zh,ek).call(this,[n]),s=`alpha_${o}`;if(i=D(this,vr,Nr).get(s),i)return D(this,vr,Nr).set(n,i),i;const r=`g_${D(this,Qa)}_alpha_map_${Kr(this,id)._++}`,a=_e(this,$c,Lf).call(this,r);D(this,vr,Nr).set(n,a),D(this,vr,Nr).set(s,a);const u=_e(this,Ac,Df).call(this,r);return _e(this,Kg,uM).call(this,o,u),a}addLuminosityFilter(n){let i,o,s=D(this,vr,Nr).get(n||"luminosity");if(s)return s;if(n?([i]=_e(this,zh,ek).call(this,[n]),o=`luminosity_${i}`):o="luminosity",s=D(this,vr,Nr).get(o),s)return D(this,vr,Nr).set(n,s),s;const r=`g_${D(this,Qa)}_luminosity_map_${Kr(this,id)._++}`,a=_e(this,$c,Lf).call(this,r);D(this,vr,Nr).set(n,a),D(this,vr,Nr).set(o,a);const u=_e(this,Ac,Df).call(this,r);return _e(this,a2,aU).call(this,u),n&&_e(this,Kg,uM).call(this,i,u),a}addHighlightHCMFilter(n,i,o,s,r){var v;const a=`${i}-${o}-${s}-${r}`;let u=D(this,Ic,Pf).get(n);if((u==null?void 0:u.key)===a||(u?((v=u.filter)==null||v.remove(),u.key=a,u.url="none",u.filter=null):(u={key:a,url:"none",filter:null},D(this,Ic,Pf).set(n,u)),!i||!o))return u.url;const[c,l]=[i,o].map(_e(this,sd,Um).bind(this));let g=Math.round(.2126*c[0]+.7152*c[1]+.0722*c[2]),C=Math.round(.2126*l[0]+.7152*l[1]+.0722*l[2]),[S,_]=[s,r].map(_e(this,sd,Um).bind(this));C<g&&([g,C,S,_]=[C,g,_,S]),D(this,xc,Of).style.color="";const A=(m,f,p)=>{const h=new Array(256),b=(C-g)/p,w=m/255,k=(f-m)/(255*p);let $=0;for(let E=0;E<=p;E++){const N=Math.round(g+E*b),j=w+E*k;for(let z=$;z<=N;z++)h[z]=j;$=N+1}for(let E=$;E<256;E++)h[E]=h[$-1];return h.join(",")},y=`g_${D(this,Qa)}_hcm_${n}_filter`,d=u.filter=_e(this,Ac,Df).call(this,y);return _e(this,Xg,cM).call(this,d),_e(this,od,Wm).call(this,A(S[0],_[0],5),A(S[1],_[1],5),A(S[2],_[2],5),d),u.url=_e(this,$c,Lf).call(this,y),u.url}destroy(n=!1){(!n||D(this,Ic,Pf).size===0)&&(D(this,fa)&&(D(this,fa).parentNode.parentNode.remove(),Ce(this,fa,null)),D(this,nd)&&(D(this,nd).clear(),Ce(this,nd,null)),Ce(this,id,0))}},td=new WeakMap,nd=new WeakMap,fa=new WeakMap,Qa=new WeakMap,Rr=new WeakMap,s2=new WeakMap,id=new WeakMap,vr=new WeakSet,Nr=function(){return D(this,nd)||Ce(this,nd,new Map)},Ic=new WeakSet,Pf=function(){return D(this,s2)||Ce(this,s2,new Map)},xc=new WeakSet,Of=function(){if(!D(this,fa)){const n=D(this,Rr).createElement("div"),{style:i}=n;i.visibility="hidden",i.contain="strict",i.width=i.height=0,i.position="absolute",i.top=i.left=0,i.zIndex=-1;const o=D(this,Rr).createElementNS(Ha,"svg");o.setAttribute("width",0),o.setAttribute("height",0),Ce(this,fa,D(this,Rr).createElementNS(Ha,"defs")),n.append(o),o.append(D(this,fa)),D(this,Rr).body.append(n)}return D(this,fa)},zh=new WeakSet,ek=function(n){if(n.length===1){const c=n[0],l=new Array(256);for(let C=0;C<256;C++)l[C]=c[C]/255;const g=l.join(",");return[g,g,g]}const[i,o,s]=n,r=new Array(256),a=new Array(256),u=new Array(256);for(let c=0;c<256;c++)r[c]=i[c]/255,a[c]=o[c]/255,u[c]=s[c]/255;return[r.join(","),a.join(","),u.join(",")]},$c=new WeakSet,Lf=function(n){if(D(this,td)===void 0){Ce(this,td,"");const i=D(this,Rr).URL;i!==D(this,Rr).baseURI&&(ww(i)?Cn('#createUrl: ignore "data:"-URL for performance reasons.'):Ce(this,td,i.split("#",1)[0]))}return`url(${D(this,td)}#${n})`},a2=new WeakSet,aU=function(n){const i=D(this,Rr).createElementNS(Ha,"feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),n.append(i)},Xg=new WeakSet,cM=function(n){const i=D(this,Rr).createElementNS(Ha,"feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),n.append(i)},Ac=new WeakSet,Df=function(n){const i=D(this,Rr).createElementNS(Ha,"filter");return i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("id",n),D(this,xc,Of).append(i),i},rd=new WeakSet,Hm=function(n,i,o){const s=D(this,Rr).createElementNS(Ha,i);s.setAttribute("type","discrete"),s.setAttribute("tableValues",o),n.append(s)},od=new WeakSet,Wm=function(n,i,o,s){const r=D(this,Rr).createElementNS(Ha,"feComponentTransfer");s.append(r),_e(this,rd,Hm).call(this,r,"feFuncR",n),_e(this,rd,Hm).call(this,r,"feFuncG",i),_e(this,rd,Hm).call(this,r,"feFuncB",o)},Kg=new WeakSet,uM=function(n,i){const o=D(this,Rr).createElementNS(Ha,"feComponentTransfer");i.append(o),_e(this,rd,Hm).call(this,o,"feFuncA",n)},sd=new WeakSet,Um=function(n){return D(this,xc,Of).style.color=n,jE(getComputedStyle(D(this,xc,Of)).getPropertyValue("color"))},iz),EZe=Wr?class extends UW{async _fetch(t){return GW(t)}}:ZW;function MZe(e={}){typeof e=="string"||e instanceof URL?e={url:e}:(e instanceof ArrayBuffer||ArrayBuffer.isView(e))&&(e={data:e});const t=new tk,{docId:n}=t,i=e.url?function($e){if($e instanceof URL)return $e.href;try{return new URL($e,window.location).href}catch{if(Wr&&typeof $e=="string")return $e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}(e.url):null,o=e.data?function($e){if(Wr&&typeof Buffer<"u"&&$e instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if($e instanceof Uint8Array&&$e.byteLength===$e.buffer.byteLength)return $e;if(typeof $e=="string")return Cw($e);if($e instanceof ArrayBuffer||ArrayBuffer.isView($e)||typeof $e=="object"&&!isNaN($e==null?void 0:$e.length))return new Uint8Array($e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}(e.data):null,s=e.httpHeaders||null,r=e.withCredentials===!0,a=e.password??null,u=e.range instanceof lU?e.range:null,c=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:IZe;let l=e.worker instanceof Sa?e.worker:null;const g=e.verbosity,C=typeof e.docBaseUrl!="string"||ww(e.docBaseUrl)?null:e.docBaseUrl,S=typeof e.cMapUrl=="string"?e.cMapUrl:null,_=e.cMapPacked!==!1,A=e.CMapReaderFactory||$Ze,y=typeof e.standardFontDataUrl=="string"?e.standardFontDataUrl:null,d=e.StandardFontDataFactory||EZe,v=e.stopAtErrors!==!0,m=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,f=e.isEvalSupported!==!1,p=typeof e.isOffscreenCanvasSupported=="boolean"?e.isOffscreenCanvasSupported:!Wr,h=typeof e.isChrome=="boolean"?e.isChrome:!ao.platform.isFirefox&&typeof window<"u"&&!!(window!=null&&window.chrome),b=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,w=typeof e.disableFontFace=="boolean"?e.disableFontFace:Wr,k=e.fontExtraProperties===!0,$=e.enableXfa===!0,E=e.ownerDocument||globalThis.document,N=e.disableRange===!0,j=e.disableStream===!0,z=e.disableAutoFetch===!0,V=e.pdfBug===!0,W=e.CanvasFactory||xZe,H=e.FilterFactory||AZe,U=e.enableHWA===!0,Q=u?u.length:e.length??NaN,q=typeof e.useSystemFonts=="boolean"?e.useSystemFonts:!Wr&&!w,ae=typeof e.useWorkerFetch=="boolean"?e.useWorkerFetch:A===WW&&d===ZW&&S&&y&&jm(S,document.baseURI)&&jm(y,document.baseURI);e.canvasFactory&&f7("`canvasFactory`-instance option, please use `CanvasFactory` instead."),e.filterFactory&&f7("`filterFactory`-instance option, please use `FilterFactory` instead."),$Ue(g);const ne={canvasFactory:new W({ownerDocument:E,enableHWA:U}),filterFactory:new H({docId:n,ownerDocument:E}),cMapReaderFactory:ae?null:new A({baseUrl:S,isCompressed:_}),standardFontDataFactory:ae?null:new d({baseUrl:y})};if(!l){const Ie={verbosity:g,port:Il.workerPort};l=Ie.port?Sa.fromPort(Ie):new Sa(Ie),t._worker=l}const be={docId:n,apiVersion:"4.8.69",data:o,password:a,disableAutoFetch:z,rangeChunkSize:c,length:Q,docBaseUrl:C,enableXfa:$,evaluatorOptions:{maxImageSize:m,disableFontFace:w,ignoreErrors:v,isEvalSupported:f,isOffscreenCanvasSupported:p,isChrome:h,canvasMaxAreaInBytes:b,fontExtraProperties:k,useSystemFonts:q,cMapUrl:ae?S:null,standardFontDataUrl:ae?y:null}},te={disableFontFace:w,fontExtraProperties:k,ownerDocument:E,pdfBug:V,styleElement:null,loadingParams:{disableAutoFetch:z,enableXfa:$}};return l.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");if(l.destroyed)throw new Error("Worker was destroyed");const Ie=l.messageHandler.sendWithPromise("GetDocRequest",be,o?[o.buffer]:null);let $e;if(u)$e=new uZe(u,{disableRange:N,disableStream:j});else if(!o){if(!i)throw new Error("getDocument - no `url` parameter provided.");let Me;Wr?Me=typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype&&jm(i)?A7:kZe:Me=jm(i)?A7:vZe,$e=new Me({url:i,length:Q,httpHeaders:s,withCredentials:r,rangeChunkSize:c,disableRange:N,disableStream:j})}return Ie.then(Me=>{if(t.destroyed)throw new Error("Loading aborted");if(l.destroyed)throw new Error("Worker was destroyed");const ge=new Vm(n,Me,l.port),Se=new LZe(ge,t,$e,te,ne);t._transport=Se,ge.send("Ready",null)})}).catch(t._capability.reject),t}function E7(e){return typeof e=="object"&&Number.isInteger(e==null?void 0:e.num)&&e.num>=0&&Number.isInteger(e==null?void 0:e.gen)&&e.gen>=0}var l2;const LO=class{constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId="d"+Kr(LO,l2)._++,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){var t,n,i;this.destroyed=!0;try{(t=this._worker)!=null&&t.port&&(this._worker._pendingDestroy=!0),await((n=this._transport)==null?void 0:n.destroy())}catch(o){throw(i=this._worker)!=null&&i.port&&delete this._worker._pendingDestroy,o}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}};let tk=LO;l2=new WeakMap,ue(tk,l2,0);class lU{constructor(t,n,i=!1,o=null){this.length=t,this.initialData=n,this.progressiveDone=i,this.contentDispositionFilename=o,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(t){this._rangeListeners.push(t)}addProgressListener(t){this._progressListeners.push(t)}addProgressiveReadListener(t){this._progressiveReadListeners.push(t)}addProgressiveDoneListener(t){this._progressiveDoneListeners.push(t)}onDataRange(t,n){for(const i of this._rangeListeners)i(t,n)}onDataProgress(t,n){this._readyCapability.promise.then(()=>{for(const i of this._progressListeners)i(t,n)})}onDataProgressiveRead(t){this._readyCapability.promise.then(()=>{for(const n of this._progressiveReadListeners)n(t)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const t of this._progressiveDoneListeners)t()})}transportReady(){this._readyCapability.resolve()}requestDataRange(t,n){vi("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}class TZe{constructor(t,n){this._pdfInfo=t,this._transport=n}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return Pn(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:t="display"}={}){const{renderingIntent:n}=this._transport.getRenderingIntent(t);return this._transport.getOptionalContentConfig(n)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(t=!1){return this._transport.startCleanup(t||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(t){return this._transport.cachedPageNumber(t)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}var Ec,el,Mc,Nf,Rh,nk;class PZe{constructor(t,n,i,o=!1){ue(this,Mc);ue(this,Rh);ue(this,Ec,null);ue(this,el,!1);this._pageIndex=t,this._pageInfo=n,this._transport=i,this._stats=o?new d7:null,this._pdfBug=o,this.commonObjs=i.commonObjs,this.objs=new cU,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:t,rotation:n=this.rotate,offsetX:i=0,offsetY:o=0,dontFlip:s=!1}={}){return new _1({viewBox:this.view,scale:t,rotation:n,offsetX:i,offsetY:o,dontFlip:s})}getAnnotations({intent:t="display"}={}){const{renderingIntent:n}=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,n)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return Pn(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var t;return((t=this._transport._htmlForXfa)==null?void 0:t.children[this._pageIndex])||null}render({canvasContext:t,viewport:n,intent:i="display",annotationMode:o=cc.ENABLE,transform:s=null,background:r=null,optionalContentConfigPromise:a=null,annotationCanvasMap:u=null,pageColors:c=null,printAnnotationStorage:l=null,isEditing:g=!1}){var f,p;(f=this._stats)==null||f.time("Overall");const C=this._transport.getRenderingIntent(i,o,l,g),{renderingIntent:S,cacheKey:_}=C;Ce(this,el,!1),_e(this,Rh,nk).call(this),a||(a=this._transport.getOptionalContentConfig(S));let A=this._intentStates.get(_);A||(A=Object.create(null),this._intentStates.set(_,A)),A.streamReaderCancelTimeout&&(clearTimeout(A.streamReaderCancelTimeout),A.streamReaderCancelTimeout=null);const y=!!(S&pC);A.displayReadyCapability||(A.displayReadyCapability=Promise.withResolvers(),A.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(p=this._stats)==null||p.time("Page Request"),this._pumpOperatorList(C));const d=h=>{var b;A.renderTasks.delete(v),(this._maybeCleanupAfterRender||y)&&Ce(this,el,!0),_e(this,Mc,Nf).call(this,!y),h?(v.capability.reject(h),this._abortOperatorList({intentState:A,reason:h instanceof Error?h:new Error(h)})):v.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),(b=globalThis.Stats)!=null&&b.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},v=new ok({callback:d,params:{canvasContext:t,viewport:n,transform:s,background:r},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:u,operatorList:A.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!y,pdfBug:this._pdfBug,pageColors:c});(A.renderTasks||(A.renderTasks=new Set)).add(v);const m=v.task;return Promise.all([A.displayReadyCapability.promise,a]).then(([h,b])=>{var w;if(this.destroyed)d();else{if((w=this._stats)==null||w.time("Rendering"),!(b.renderingIntent&S))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");v.initializeGraphics({transparency:h,optionalContentConfig:b}),v.operatorListChanged()}}).catch(d),m}getOperatorList({intent:t="display",annotationMode:n=cc.ENABLE,printAnnotationStorage:i=null,isEditing:o=!1}={}){var u;const s=this._transport.getRenderingIntent(t,n,i,o,!0);let r,a=this._intentStates.get(s.cacheKey);return a||(a=Object.create(null),this._intentStates.set(s.cacheKey,a)),a.opListReadCapability||(r=Object.create(null),r.operatorListChanged=function(){a.operatorList.lastChunk&&(a.opListReadCapability.resolve(a.operatorList),a.renderTasks.delete(r))},a.opListReadCapability=Promise.withResolvers(),(a.renderTasks||(a.renderTasks=new Set)).add(r),a.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(u=this._stats)==null||u.time("Page Request"),this._pumpOperatorList(s)),a.opListReadCapability.promise}streamTextContent({includeMarkedContent:t=!1,disableNormalization:n=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:t===!0,disableNormalization:n===!0},{highWaterMark:100,size:i=>i.items.length})}getTextContent(t={}){if(this._transport._htmlForXfa)return this.getXfa().then(i=>Hv.textContent(i));const n=this.streamTextContent(t);return new Promise(function(i,o){const s=n.getReader(),r={items:[],styles:Object.create(null),lang:null};(function a(){s.read().then(function({value:u,done:c}){c?i(r):(r.lang??(r.lang=u.lang),Object.assign(r.styles,u.styles),r.items.push(...u.items),a())},o)})()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const t=[];for(const n of this._intentStates.values())if(this._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),!n.opListReadCapability)for(const i of n.renderTasks)t.push(i.completed),i.cancel();return this.objs.clear(),Ce(this,el,!1),_e(this,Rh,nk).call(this),Promise.all(t)}cleanup(t=!1){Ce(this,el,!0);const n=_e(this,Mc,Nf).call(this,!1);return t&&n&&this._stats&&(this._stats=new d7),n}_startRenderPage(t,n){var o,s;const i=this._intentStates.get(n);i&&((o=this._stats)==null||o.timeEnd("Page Request"),(s=i.displayReadyCapability)==null||s.resolve(t))}_renderPageChunk(t,n){for(let i=0,o=t.length;i<o;i++)n.operatorList.fnArray.push(t.fnArray[i]),n.operatorList.argsArray.push(t.argsArray[i]);n.operatorList.lastChunk=t.lastChunk,n.operatorList.separateAnnots=t.separateAnnots;for(const i of n.renderTasks)i.operatorListChanged();t.lastChunk&&_e(this,Mc,Nf).call(this,!0)}_pumpOperatorList({renderingIntent:t,cacheKey:n,annotationStorageSerializable:i,modifiedIds:o}){const{map:s,transfer:r}=i,a=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:t,cacheKey:n,annotationStorage:s,modifiedIds:o},r).getReader(),u=this._intentStates.get(n);u.streamReader=a;const c=()=>{a.read().then(({value:l,done:g})=>{g?u.streamReader=null:this._transport.destroyed||(this._renderPageChunk(l,u),c())},l=>{if(u.streamReader=null,!this._transport.destroyed){if(u.operatorList){u.operatorList.lastChunk=!0;for(const g of u.renderTasks)g.operatorListChanged();_e(this,Mc,Nf).call(this,!0)}if(u.displayReadyCapability)u.displayReadyCapability.reject(l);else{if(!u.opListReadCapability)throw l;u.opListReadCapability.reject(l)}}})};c()}_abortOperatorList({intentState:t,reason:n,force:i=!1}){if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!i){if(t.renderTasks.size>0)return;if(n instanceof QP){let o=100;n.extraDelay>0&&n.extraDelay<1e3&&(o+=n.extraDelay),t.streamReaderCancelTimeout=setTimeout(()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:n,force:!0})},o);return}}if(t.streamReader.cancel(new vf(n.message)).catch(()=>{}),t.streamReader=null,!this._transport.destroyed){for(const[o,s]of this._intentStates)if(s===t){this._intentStates.delete(o);break}this.cleanup()}}}get stats(){return this._stats}}Ec=new WeakMap,el=new WeakMap,Mc=new WeakSet,Nf=function(t=!1){if(_e(this,Rh,nk).call(this),!D(this,el)||this.destroyed)return!1;if(t)return Ce(this,Ec,setTimeout(()=>{Ce(this,Ec,null),_e(this,Mc,Nf).call(this,!1)},5e3)),!1;for(const{renderTasks:n,operatorList:i}of this._intentStates.values())if(n.size>0||!i.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),Ce(this,el,!1),!0},Rh=new WeakSet,nk=function(){D(this,Ec)&&(clearTimeout(D(this,Ec)),Ce(this,Ec,null))};var tl,c2;class OZe{constructor(){ue(this,tl,new Map);ue(this,c2,Promise.resolve())}postMessage(t,n){const i={data:structuredClone(t,n?{transfer:n}:null)};D(this,c2).then(()=>{for(const[o]of D(this,tl))o.call(this,i)})}addEventListener(t,n,i=null){let o=null;if((i==null?void 0:i.signal)instanceof AbortSignal){const{signal:s}=i;if(s.aborted){Cn("LoopbackPort - cannot use an `aborted` signal.");return}const r=()=>this.removeEventListener(t,n);o=()=>s.removeEventListener("abort",r),s.addEventListener("abort",r)}D(this,tl).set(n,o)}removeEventListener(t,n){const i=D(this,tl).get(n);i==null||i(),D(this,tl).delete(n)}terminate(){for(const[,t]of D(this,tl))t==null||t();D(this,tl).clear()}}tl=new WeakMap,c2=new WeakMap;var u2,ad,ld,Bh,ik,Fh,rk;const Ui=class{constructor({name:t=null,port:n=null,verbosity:i=AUe()}={}){ue(this,Bh);var o;if(this.name=t,this.destroyed=!1,this.verbosity=i,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,n){if((o=D(Ui,ld))!=null&&o.has(n))throw new Error("Cannot use more than one PDFWorker per port.");(D(Ui,ld)||Ce(Ui,ld,new WeakMap)).set(n,this),this._initializeFromPort(n)}else this._initialize()}get promise(){return Wr?Promise.all([eu.promise,this._readyCapability.promise]):this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(t){this._port=t,this._messageHandler=new Vm("main","worker",t),this._messageHandler.on("ready",function(){}),_e(this,Bh,ik).call(this)}_initialize(){if(D(Ui,ad)||D(Ui,Fh,rk)){this._setupFakeWorker();return}let{workerSrc:t}=Ui;try{Ui._isSameOrigin(window.location.href,t)||(t=Ui._createCDNWrapper(new URL(t,window.location).href));const n=new Worker(t,{type:"module"}),i=new Vm("main","worker",n),o=()=>{s.abort(),i.destroy(),n.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},s=new AbortController;n.addEventListener("error",()=>{this._webWorker||o()},{signal:s.signal}),i.on("test",a=>{s.abort(),!this.destroyed&&a?(this._messageHandler=i,this._port=n,this._webWorker=n,_e(this,Bh,ik).call(this)):o()}),i.on("ready",a=>{if(s.abort(),this.destroyed)o();else try{r()}catch{this._setupFakeWorker()}});const r=()=>{const a=new Uint8Array;i.send("test",a,[a.buffer])};r();return}catch{bw("The worker has been disabled.")}this._setupFakeWorker()}_setupFakeWorker(){D(Ui,ad)||(Cn("Setting up fake worker."),Ce(Ui,ad,!0)),Ui._setupFakeWorkerGlobal.then(t=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const n=new OZe;this._port=n;const i="fake"+Kr(Ui,u2)._++,o=new Vm(i+"_worker",i,n);t.setup(o,n),this._messageHandler=new Vm(i,i+"_worker",n),_e(this,Bh,ik).call(this)}).catch(t=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${t.message}".`))})}destroy(){var t;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),(t=D(Ui,ld))==null||t.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(t){var i;if(!(t!=null&&t.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const n=(i=D(this,ld))==null?void 0:i.get(t.port);if(n){if(n._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return n}return new Ui(t)}static get workerSrc(){if(Il.workerSrc)return Il.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _setupFakeWorkerGlobal(){return Pn(this,"_setupFakeWorkerGlobal",(async()=>D(this,Fh,rk)?D(this,Fh,rk):(await Gi(()=>import(this.workerSrc),[])).WorkerMessageHandler)())}};let Sa=Ui;u2=new WeakMap,ad=new WeakMap,ld=new WeakMap,Bh=new WeakSet,ik=function(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})},Fh=new WeakSet,rk=function(){var t;try{return((t=globalThis.pdfjsWorker)==null?void 0:t.WorkerMessageHandler)||null}catch{return null}},ue(Sa,Fh),ue(Sa,u2,0),ue(Sa,ad,!1),ue(Sa,ld,void 0),(()=>{Wr&&(Ce(Ui,ad,!0),Il.workerSrc||(Il.workerSrc="./pdf.worker.mjs")),Ui._isSameOrigin=(t,n)=>{let i;try{if(i=new URL(t),!i.origin||i.origin==="null")return!1}catch{return!1}const o=new URL(n,i);return i.origin===o.origin},Ui._createCDNWrapper=t=>{const n=`await import("${t}");`;return URL.createObjectURL(new Blob([n],{type:"text/javascript"}))}})();var nl,ha,Vh,Hh,pa,cd,Zm;class LZe{constructor(t,n,i,o,s){ue(this,cd);ue(this,nl,new Map);ue(this,ha,new Map);ue(this,Vh,new Map);ue(this,Hh,new Map);ue(this,pa,null);this.messageHandler=t,this.loadingTask=n,this.commonObjs=new cU,this.fontLoader=new YUe({ownerDocument:o.ownerDocument,styleElement:o.styleElement}),this.loadingParams=o.loadingParams,this._params=o,this.canvasFactory=s.canvasFactory,this.filterFactory=s.filterFactory,this.cMapReaderFactory=s.cMapReaderFactory,this.standardFontDataFactory=s.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=i,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}get annotationStorage(){return Pn(this,"annotationStorage",new nO)}getRenderingIntent(t,n=cc.ENABLE,i=null,o=!1,s=!1){let r=KP,a=tM;switch(t){case"any":r=XWe;break;case"display":break;case"print":r=pC;break;default:Cn(`getRenderingIntent - invalid intent: ${t}`)}const u=r&pC&&i instanceof VW?i:this.annotationStorage;switch(n){case cc.DISABLE:r+=qWe;break;case cc.ENABLE:break;case cc.ENABLE_FORMS:r+=KWe;break;case cc.ENABLE_STORAGE:r+=JWe,a=u.serializable;break;default:Cn(`getRenderingIntent - invalid annotationMode: ${n}`)}o&&(r+=QWe),s&&(r+=eUe);const{ids:c,hash:l}=u.modifiedIds;return{renderingIntent:r,cacheKey:[r,a.hash,l].join("_"),annotationStorageSerializable:a,modifiedIds:c}}destroy(){var i;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),(i=D(this,pa))==null||i.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];for(const o of D(this,ha).values())t.push(o._destroy());D(this,ha).clear(),D(this,Vh).clear(),D(this,Hh).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const n=this.messageHandler.sendWithPromise("Terminate",null);return t.push(n),Promise.all(t).then(()=>{var o;this.commonObjs.clear(),this.fontLoader.clear(),D(this,nl).clear(),this.filterFactory.destroy(),vo.cleanup(),(o=this._networkStream)==null||o.cancelAllRequests(new vf("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:t,loadingTask:n}=this;t.on("GetReader",(i,o)=>{or(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=s=>{this._lastProgress={loaded:s.loaded,total:s.total}},o.onPull=()=>{this._fullReader.read().then(function({value:s,done:r}){r?o.close():(or(s instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),o.enqueue(new Uint8Array(s),1,[s]))}).catch(s=>{o.error(s)})},o.onCancel=s=>{this._fullReader.cancel(s),o.ready.catch(r=>{if(!this.destroyed)throw r})}}),t.on("ReaderHeadersReady",async i=>{var a;await this._fullReader.headersReady;const{isStreamingSupported:o,isRangeSupported:s,contentLength:r}=this._fullReader;return(!o||!s)&&(this._lastProgress&&((a=n.onProgress)==null||a.call(n,this._lastProgress)),this._fullReader.onProgress=u=>{var c;(c=n.onProgress)==null||c.call(n,{loaded:u.loaded,total:u.total})}),{isStreamingSupported:o,isRangeSupported:s,contentLength:r}}),t.on("GetRangeReader",(i,o)=>{or(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const s=this._networkStream.getRangeReader(i.begin,i.end);s?(o.onPull=()=>{s.read().then(function({value:r,done:a}){a?o.close():(or(r instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),o.enqueue(new Uint8Array(r),1,[r]))}).catch(r=>{o.error(r)})},o.onCancel=r=>{s.cancel(r),o.ready.catch(a=>{if(!this.destroyed)throw a})}):o.close()}),t.on("GetDoc",({pdfInfo:i})=>{this._numPages=i.numPages,this._htmlForXfa=i.htmlForXfa,delete i.htmlForXfa,n._capability.resolve(new TZe(i,this))}),t.on("DocException",function(i){let o;switch(i.name){case"PasswordException":o=new LE(i.message,i.code);break;case"InvalidPDFException":o=new pW(i.message);break;case"MissingPDFException":o=new mf(i.message);break;case"UnexpectedResponseException":o=new kw(i.message,i.status);break;case"UnknownErrorException":o=new DE(i.message,i.details);break;default:vi("DocException - expected a valid Error.")}n._capability.reject(o)}),t.on("PasswordRequest",i=>{if(Ce(this,pa,Promise.withResolvers()),n.onPassword){const o=s=>{s instanceof Error?D(this,pa).reject(s):D(this,pa).resolve({password:s})};try{n.onPassword(o,i.code)}catch(s){D(this,pa).reject(s)}}else D(this,pa).reject(new LE(i.message,i.code));return D(this,pa).promise}),t.on("DataLoaded",i=>{var o;(o=n.onProgress)==null||o.call(n,{loaded:i.length,total:i.length}),this.downloadInfoCapability.resolve(i)}),t.on("StartRenderPage",i=>{this.destroyed||D(this,ha).get(i.pageIndex)._startRenderPage(i.transparency,i.cacheKey)}),t.on("commonobj",([i,o,s])=>{var r;if(this.destroyed||this.commonObjs.has(i))return null;switch(o){case"Font":const{disableFontFace:a,fontExtraProperties:u,pdfBug:c}=this._params;if("error"in s){const S=s.error;Cn(`Error during font loading: ${S}`),this.commonObjs.resolve(i,S);break}const l=c&&((r=globalThis.FontInspector)!=null&&r.enabled)?(S,_)=>globalThis.FontInspector.fontAdded(S,_):null,g=new XUe(s,{disableFontFace:a,inspectFont:l});this.fontLoader.bind(g).catch(()=>t.sendWithPromise("FontFallback",{id:i})).finally(()=>{!u&&g.data&&(g.data=null),this.commonObjs.resolve(i,g)});break;case"CopyLocalImage":const{imageRef:C}=s;or(C,"The imageRef must be defined.");for(const S of D(this,ha).values())for(const[,_]of S.objs)if((_==null?void 0:_.ref)===C)return _.dataLen?(this.commonObjs.resolve(i,structuredClone(_)),_.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(i,s);break;default:throw new Error(`Got unknown common object type ${o}`)}return null}),t.on("obj",([i,o,s,r])=>{var u;if(this.destroyed)return;const a=D(this,ha).get(o);if(!a.objs.has(i))if(a._intentStates.size!==0)switch(s){case"Image":a.objs.resolve(i,r),(r==null?void 0:r.dataLen)>1e7&&(a._maybeCleanupAfterRender=!0);break;case"Pattern":a.objs.resolve(i,r);break;default:throw new Error(`Got unknown object type ${s}`)}else(u=r==null?void 0:r.bitmap)==null||u.close()}),t.on("DocProgress",i=>{var o;this.destroyed||((o=n.onProgress)==null||o.call(n,{loaded:i.loaded,total:i.total}))}),t.on("FetchBuiltInCMap",async i=>{if(this.destroyed)throw new Error("Worker was destroyed.");if(!this.cMapReaderFactory)throw new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.");return this.cMapReaderFactory.fetch(i)}),t.on("FetchStandardFontData",async i=>{if(this.destroyed)throw new Error("Worker was destroyed.");if(!this.standardFontDataFactory)throw new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.");return this.standardFontDataFactory.fetch(i)})}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var i;this.annotationStorage.size<=0&&Cn("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:t,transfer:n}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:t,filename:((i=this._fullReader)==null?void 0:i.filename)??null},n).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));const n=t-1,i=D(this,Vh).get(n);if(i)return i;const o=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then(s=>{if(this.destroyed)throw new Error("Transport destroyed");s.refStr&&D(this,Hh).set(s.refStr,t);const r=new PZe(n,s,this,this._params.pdfBug);return D(this,ha).set(n,r),r});return D(this,Vh).set(n,o),o}getPageIndex(t){return E7(t)?this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(t,n){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:n})}getFieldObjects(){return _e(this,cd,Zm).call(this,"GetFieldObjects")}hasJSActions(){return _e(this,cd,Zm).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return typeof t!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return _e(this,cd,Zm).call(this,"GetDocJSActions")}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(t){return _e(this,cd,Zm).call(this,"GetOptionalContentConfig").then(n=>new cZe(n,t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const t="GetMetadata",n=D(this,nl).get(t);if(n)return n;const i=this.messageHandler.sendWithPromise(t,null).then(o=>{var s,r;return{info:o[0],metadata:o[1]?new aZe(o[1]):null,contentDispositionFilename:((s=this._fullReader)==null?void 0:s.filename)??null,contentLength:((r=this._fullReader)==null?void 0:r.contentLength)??null}});return D(this,nl).set(t,i),i}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(t=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const n of D(this,ha).values())if(!n.cleanup())throw new Error(`startCleanup: Page ${n.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),D(this,nl).clear(),this.filterFactory.destroy(!0),vo.cleanup()}}cachedPageNumber(t){if(!E7(t))return null;const n=t.gen===0?`${t.num}R`:`${t.num}R${t.gen}`;return D(this,Hh).get(n)??null}}nl=new WeakMap,ha=new WeakMap,Vh=new WeakMap,Hh=new WeakMap,pa=new WeakMap,cd=new WeakSet,Zm=function(t,n=null){const i=D(this,nl).get(t);if(i)return i;const o=this.messageHandler.sendWithPromise(t,n);return D(this,nl).set(t,o),o};const Dy=Symbol("INITIAL_DATA");var $s,Jg,dM;class cU{constructor(){ue(this,Jg);ue(this,$s,Object.create(null))}get(t,n=null){if(n){const o=_e(this,Jg,dM).call(this,t);return o.promise.then(()=>n(o.data)),null}const i=D(this,$s)[t];if(!i||i.data===Dy)throw new Error(`Requesting object that isn't resolved yet ${t}.`);return i.data}has(t){const n=D(this,$s)[t];return!!n&&n.data!==Dy}resolve(t,n=null){const i=_e(this,Jg,dM).call(this,t);i.data=n,i.resolve()}clear(){var t;for(const n in D(this,$s)){const{data:i}=D(this,$s)[n];(t=i==null?void 0:i.bitmap)==null||t.close()}Ce(this,$s,Object.create(null))}*[Symbol.iterator](){for(const t in D(this,$s)){const{data:n}=D(this,$s)[t];n!==Dy&&(yield[t,n])}}}$s=new WeakMap,Jg=new WeakSet,dM=function(t){var n;return(n=D(this,$s))[t]||(n[t]={...Promise.withResolvers(),data:Dy})};var Tc;class DZe{constructor(t){ue(this,Tc,null);Ce(this,Tc,t),this.onContinue=null}get promise(){return D(this,Tc).capability.promise}cancel(t=0){D(this,Tc).cancel(null,t)}get separateAnnots(){const{separateAnnots:t}=D(this,Tc).operatorList;if(!t)return!1;const{annotationCanvasMap:n}=D(this,Tc);return t.form||t.canvas&&(n==null?void 0:n.size)>0}}Tc=new WeakMap;var Pc,ud;const Wf=class{constructor({callback:t,params:n,objs:i,commonObjs:o,annotationCanvasMap:s,operatorList:r,pageIndex:a,canvasFactory:u,filterFactory:c,useRequestAnimationFrame:l=!1,pdfBug:g=!1,pageColors:C=null}){ue(this,Pc,null);this.callback=t,this.params=n,this.objs=i,this.commonObjs=o,this.annotationCanvasMap=s,this.operatorListIdx=null,this.operatorList=r,this._pageIndex=a,this.canvasFactory=u,this.filterFactory=c,this._pdfBug=g,this.pageColors=C,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=l===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new DZe(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:t=!1,optionalContentConfig:n}){var a,u;if(this.cancelled)return;if(this._canvas){if(D(Wf,ud).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");D(Wf,ud).add(this._canvas)}this._pdfBug&&((a=globalThis.StepperManager)!=null&&a.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:i,viewport:o,transform:s,background:r}=this.params;this.gfx=new sh(i,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:n},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:s,viewport:o,transparency:t,background:r}),this.operatorListIdx=0,this.graphicsReady=!0,(u=this.graphicsReadyCallback)==null||u.call(this)}cancel(t=null,n=0){var i;this.running=!1,this.cancelled=!0,(i=this.gfx)==null||i.endDrawing(),D(this,Pc)&&(window.cancelAnimationFrame(D(this,Pc)),Ce(this,Pc,null)),D(Wf,ud).delete(this._canvas),this.callback(t||new QP(`Rendering cancelled, page ${this._pageIndex+1}`,n))}operatorListChanged(){var t;this.graphicsReady?((t=this.stepper)==null||t.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?Ce(this,Pc,window.requestAnimationFrame(()=>{Ce(this,Pc,null),this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),D(Wf,ud).delete(this._canvas),this.callback())))}};let ok=Wf;Pc=new WeakMap,ud=new WeakMap,ue(ok,ud,new WeakSet);const NZe="4.8.69",jZe="3634dab10";function M7(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}function Am(e){return Math.max(0,Math.min(255,255*e))}class T7{static CMYK_G([t,n,i,o]){return["G",1-Math.min(1,.3*t+.59*i+.11*n+o)]}static G_CMYK([t]){return["CMYK",0,0,0,1-t]}static G_RGB([t]){return["RGB",t,t,t]}static G_rgb([t]){return[t=Am(t),t,t]}static G_HTML([t]){const n=M7(t);return`#${n}${n}${n}`}static RGB_G([t,n,i]){return["G",.3*t+.59*n+.11*i]}static RGB_rgb(t){return t.map(Am)}static RGB_HTML(t){return`#${t.map(M7).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([t,n,i,o]){return["RGB",1-Math.min(1,t+o),1-Math.min(1,i+o),1-Math.min(1,n+o)]}static CMYK_rgb([t,n,i,o]){return[Am(1-Math.min(1,t+o)),Am(1-Math.min(1,i+o)),Am(1-Math.min(1,n+o))]}static CMYK_HTML(t){const n=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(n)}static RGB_CMYK([t,n,i]){const o=1-t,s=1-n,r=1-i;return["CMYK",o,s,r,Math.min(o,s,r)]}}class zZe{create(t,n,i=!1){if(t<=0||n<=0)throw new Error("Invalid SVG dimensions");const o=this._createSVG("svg:svg");return o.setAttribute("version","1.1"),i||(o.setAttribute("width",`${t}px`),o.setAttribute("height",`${n}px`)),o.setAttribute("preserveAspectRatio","none"),o.setAttribute("viewBox",`0 0 ${t} ${n}`),o}createElement(t){if(typeof t!="string")throw new Error("Invalid SVG element type");return this._createSVG(t)}_createSVG(t){vi("Abstract method `_createSVG` called.")}}class lO extends zZe{_createSVG(t){return document.createElementNS(Ha,t)}}class uU{static setupStorage(t,n,i,o,s){const r=o.getValue(n,{value:null});switch(i.name){case"textarea":if(r.value!==null&&(t.textContent=r.value),s==="print")break;t.addEventListener("input",a=>{o.setValue(n,{value:a.target.value})});break;case"input":if(i.attributes.type==="radio"||i.attributes.type==="checkbox"){if(r.value===i.attributes.xfaOn?t.setAttribute("checked",!0):r.value===i.attributes.xfaOff&&t.removeAttribute("checked"),s==="print")break;t.addEventListener("change",a=>{o.setValue(n,{value:a.target.checked?a.target.getAttribute("xfaOn"):a.target.getAttribute("xfaOff")})})}else{if(r.value!==null&&t.setAttribute("value",r.value),s==="print")break;t.addEventListener("input",a=>{o.setValue(n,{value:a.target.value})})}break;case"select":if(r.value!==null){t.setAttribute("value",r.value);for(const a of i.children)a.attributes.value===r.value?a.attributes.selected=!0:a.attributes.hasOwnProperty("selected")&&delete a.attributes.selected}t.addEventListener("input",a=>{const u=a.target.options,c=u.selectedIndex===-1?"":u[u.selectedIndex].value;o.setValue(n,{value:c})})}}static setAttributes({html:t,element:n,storage:i=null,intent:o,linkService:s}){const{attributes:r}=n,a=t instanceof HTMLAnchorElement;r.type==="radio"&&(r.name=`${r.name}-${o}`);for(const[u,c]of Object.entries(r))if(c!=null)switch(u){case"class":c.length&&t.setAttribute(u,c.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",c);break;case"style":Object.assign(t.style,c);break;case"textContent":t.textContent=c;break;default:(!a||u!=="href"&&u!=="newWindow")&&t.setAttribute(u,c)}a&&s.addLinkAttributes(t,r.href,r.newWindow),i&&r.dataId&&this.setupStorage(t,r.dataId,n,i)}static render(t){var g,C;const n=t.annotationStorage,i=t.linkService,o=t.xfaHtml,s=t.intent||"display",r=document.createElement(o.name);o.attributes&&this.setAttributes({html:r,element:o,intent:s,linkService:i});const a=s!=="richText",u=t.div;if(u.append(r),t.viewport){const S=`matrix(${t.viewport.transform.join(",")})`;u.style.transform=S}a&&u.setAttribute("class","xfaLayer xfaFont");const c=[];if(o.children.length===0){if(o.value){const S=document.createTextNode(o.value);r.append(S),a&&Hv.shouldBuildText(o.name)&&c.push(S)}return{textDivs:c}}const l=[[o,-1,r]];for(;l.length>0;){const[S,_,A]=l.at(-1);if(_+1===S.children.length){l.pop();continue}const y=S.children[++l.at(-1)[1]];if(y===null)continue;const{name:d}=y;if(d==="#text"){const m=document.createTextNode(y.value);c.push(m),A.append(m);continue}const v=(g=y==null?void 0:y.attributes)!=null&&g.xmlns?document.createElementNS(y.attributes.xmlns,d):document.createElement(d);if(A.append(v),y.attributes&&this.setAttributes({html:v,element:y,storage:n,intent:s,linkService:i}),((C=y.children)==null?void 0:C.length)>0)l.push([y,-1,v]);else if(y.value){const m=document.createTextNode(y.value);a&&Hv.shouldBuildText(d)&&c.push(m),v.append(m)}}for(const S of u.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))S.setAttribute("readOnly",!0);return{textDivs:c}}static update(t){const n=`matrix(${t.viewport.transform.join(",")})`;t.div.style.transform=n,t.div.hidden=!1}}const x1=1e3,nf=new WeakSet;function Pl(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class RZe{static create(t){switch(t.data.annotationType){case oUe:return new dU(t);case rUe:return new BZe(t);case kUe:switch(t.data.fieldType){case"Tx":return new FZe(t);case"Btn":return t.data.radioButton?new pU(t):t.data.checkBox?new HZe(t):new WZe(t);case"Ch":return new UZe(t);case"Sig":return new VZe(t)}return new gf(t);case hW:return new hM(t);case sUe:return new bU(t);case aUe:return new GZe(t);case lUe:return new YZe(t);case cUe:return new XZe(t);case dUe:return new kU(t);case gUe:return new JZe(t);case yUe:return new cO(t);case uUe:return new KZe(t);case fUe:return new CU(t);case hUe:return new qZe(t);case pUe:return new QZe(t);case mUe:return new eGe(t);case vUe:return new SU(t);case bUe:return new tGe(t);default:return new Ri(t)}}}var dd,Wh,Uh,qg,fM;const DO=class{constructor(t,{isRenderable:n=!1,ignoreBorder:i=!1,createQuadrilaterals:o=!1}={}){ue(this,qg);ue(this,dd,null);ue(this,Wh,!1);ue(this,Uh,null);this.isRenderable=n,this.data=t.data,this.layer=t.layer,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderForms=t.renderForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,this.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._fieldObjects=t.fieldObjects,this.parent=t.parent,n&&(this.container=this._createContainer(i)),o&&this._createQuadrilaterals()}static _hasPopupData({titleObj:t,contentsObj:n,richText:i}){return!!(t!=null&&t.str||n!=null&&n.str||i!=null&&i.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return DO._hasPopupData(this.data)}updateEdited(t){var i;if(!this.container)return;D(this,dd)||Ce(this,dd,{rect:this.data.rect.slice(0)});const{rect:n}=t;n&&_e(this,qg,fM).call(this,n),(i=D(this,Uh))==null||i.popup.updateEdited(t)}resetEdited(){var t;D(this,dd)&&(_e(this,qg,fM).call(this,D(this,dd).rect),(t=D(this,Uh))==null||t.popup.resetEdited(),Ce(this,dd,null))}_createContainer(t){const{data:n,parent:{page:i,viewport:o}}=this,s=document.createElement("section");s.setAttribute("data-annotation-id",n.id),this instanceof gf||(s.tabIndex=x1);const{style:r}=s;if(r.zIndex=this.parent.zIndex++,n.alternativeText&&(s.title=n.alternativeText),n.noRotate&&s.classList.add("norotate"),!n.rect||this instanceof hM){const{rotation:A}=n;return n.hasOwnCanvas||A===0||this.setRotation(A,s),s}const{width:a,height:u}=Pl(n.rect);if(!t&&n.borderStyle.width>0){r.borderWidth=`${n.borderStyle.width}px`;const A=n.borderStyle.horizontalCornerRadius,y=n.borderStyle.verticalCornerRadius;if(A>0||y>0){const v=`calc(${A}px * var(--scale-factor)) / calc(${y}px * var(--scale-factor))`;r.borderRadius=v}else if(this instanceof pU){const v=`calc(${a}px * var(--scale-factor)) / calc(${u}px * var(--scale-factor))`;r.borderRadius=v}switch(n.borderStyle.style){case CUe:r.borderStyle="solid";break;case SUe:r.borderStyle="dashed";break;case wUe:Cn("Unimplemented border style: beveled");break;case _Ue:Cn("Unimplemented border style: inset");break;case IUe:r.borderBottomStyle="solid"}const d=n.borderColor||null;d?(Ce(this,Wh,!0),r.borderColor=nn.makeHexColor(0|d[0],0|d[1],0|d[2])):r.borderWidth=0}const c=nn.normalizeRect([n.rect[0],i.view[3]-n.rect[1]+i.view[1],n.rect[2],i.view[3]-n.rect[3]+i.view[1]]),{pageWidth:l,pageHeight:g,pageX:C,pageY:S}=o.rawDims;r.left=100*(c[0]-C)/l+"%",r.top=100*(c[1]-S)/g+"%";const{rotation:_}=n;return n.hasOwnCanvas||_===0?(r.width=100*a/l+"%",r.height=100*u/g+"%"):this.setRotation(_,s),s}setRotation(t,n=this.container){if(!this.data.rect)return;const{pageWidth:i,pageHeight:o}=this.parent.viewport.rawDims,{width:s,height:r}=Pl(this.data.rect);let a,u;t%180==0?(a=100*s/i,u=100*r/o):(a=100*r/i,u=100*s/o),n.style.width=`${a}%`,n.style.height=`${u}%`,n.setAttribute("data-main-rotation",(360-t)%360)}get _commonActions(){const t=(n,i,o)=>{const s=o.detail[n],r=s[0],a=s.slice(1);o.target.style[i]=T7[`${r}_HTML`](a),this.annotationStorage.setValue(this.data.id,{[i]:T7[`${r}_rgb`](a)})};return Pn(this,"_commonActions",{display:n=>{const{display:i}=n.detail,o=i%2==1;this.container.style.visibility=o?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:o,noPrint:i===1||i===2})},print:n=>{this.annotationStorage.setValue(this.data.id,{noPrint:!n.detail.print})},hidden:n=>{const{hidden:i}=n.detail;this.container.style.visibility=i?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:i,noView:i})},focus:n=>{setTimeout(()=>n.target.focus({preventScroll:!1}),0)},userName:n=>{n.target.title=n.detail.userName},readonly:n=>{n.target.disabled=n.detail.readonly},required:n=>{this._setRequired(n.target,n.detail.required)},bgColor:n=>{t("bgColor","backgroundColor",n)},fillColor:n=>{t("fillColor","backgroundColor",n)},fgColor:n=>{t("fgColor","color",n)},textColor:n=>{t("textColor","color",n)},borderColor:n=>{t("borderColor","borderColor",n)},strokeColor:n=>{t("strokeColor","borderColor",n)},rotation:n=>{const i=n.detail.rotation;this.setRotation(i),this.annotationStorage.setValue(this.data.id,{rotation:i})}})}_dispatchEventFromSandbox(t,n){const i=this._commonActions;for(const o of Object.keys(n.detail)){const s=t[o]||i[o];s==null||s(n)}}_setDefaultPropertiesFromJS(t){if(!this.enableScripting)return;const n=this.annotationStorage.getRawValue(this.data.id);if(!n)return;const i=this._commonActions;for(const[o,s]of Object.entries(n)){const r=i[o];r&&(r({detail:{[o]:s},target:t}),delete n[o])}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:t}=this.data;if(!t)return;const[n,i,o,s]=this.data.rect.map(A=>Math.fround(A));if(t.length===8){const[A,y,d,v]=t.subarray(2,6);if(o===A&&s===y&&n===d&&i===v)return}const{style:r}=this.container;let a;if(D(this,Wh)){const{borderColor:A,borderWidth:y}=r;r.borderWidth=0,a=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${A}" stroke-width="${y}">`],this.container.classList.add("hasBorder")}const u=o-n,c=s-i,{svgFactory:l}=this,g=l.createElement("svg");g.classList.add("quadrilateralsContainer"),g.setAttribute("width",0),g.setAttribute("height",0);const C=l.createElement("defs");g.append(C);const S=l.createElement("clipPath"),_=`clippath_${this.data.id}`;S.setAttribute("id",_),S.setAttribute("clipPathUnits","objectBoundingBox"),C.append(S);for(let A=2,y=t.length;A<y;A+=8){const d=t[A],v=t[A+1],m=t[A+2],f=t[A+3],p=l.createElement("rect"),h=(m-n)/u,b=(s-v)/c,w=(d-m)/u,k=(v-f)/c;p.setAttribute("x",h),p.setAttribute("y",b),p.setAttribute("width",w),p.setAttribute("height",k),S.append(p),a==null||a.push(`<rect vector-effect="non-scaling-stroke" x="${h}" y="${b}" width="${w}" height="${k}"/>`)}D(this,Wh)&&(a.push("</g></svg>')"),r.backgroundImage=a.join("")),this.container.append(g),this.container.style.clipPath=`url(#${_})`}_createPopup(){const{data:t}=this,n=Ce(this,Uh,new hM({data:{color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,parentRect:t.rect,borderStyle:0,id:`popup_${t.id}`,rotation:t.rotation},parent:this.parent,elements:[this]}));this.parent.div.append(n.render())}render(){vi("Abstract method `AnnotationElement.render` called")}_getElementsByName(t,n=null){const i=[];if(this._fieldObjects){const o=this._fieldObjects[t];if(o)for(const{page:s,id:r,exportValues:a}of o){if(s===-1||r===n)continue;const u=typeof a=="string"?a:null,c=document.querySelector(`[data-element-id="${r}"]`);!c||nf.has(c)?i.push({id:r,exportValue:u,domElement:c}):Cn(`_getElementsByName - element not allowed: ${r}`)}return i}for(const o of document.getElementsByName(t)){const{exportValue:s}=o,r=o.getAttribute("data-element-id");r!==n&&nf.has(o)&&i.push({id:r,exportValue:s,domElement:o})}return i}show(){var t;this.container&&(this.container.hidden=!1),(t=this.popup)==null||t.maybeShow()}hide(){var t;this.container&&(this.container.hidden=!0),(t=this.popup)==null||t.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const t=this.getElementsToTriggerPopup();if(Array.isArray(t))for(const n of t)n.classList.add("highlightArea");else t.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:t,data:{id:n}}=this;this.container.addEventListener("dblclick",()=>{var i;(i=this.linkService.eventBus)==null||i.dispatch("switchannotationeditormode",{source:this,mode:t,editId:n})})}};let Ri=DO;dd=new WeakMap,Wh=new WeakMap,Uh=new WeakMap,qg=new WeakSet,fM=function(t){const{container:{style:n},data:{rect:i,rotation:o},parent:{viewport:{rawDims:{pageWidth:s,pageHeight:r,pageX:a,pageY:u}}}}=this;i==null||i.splice(0,4,...t);const{width:c,height:l}=Pl(t);n.left=100*(t[0]-a)/s+"%",n.top=100*(r-t[3]+u)/r+"%",o===0?(n.width=100*c/s+"%",n.height=100*l/r+"%"):this.setRotation(o)};var il,ku,d2,fU,f2,hU;class dU extends Ri{constructor(n,i=null){super(n,{isRenderable:!0,ignoreBorder:!!(i!=null&&i.ignoreBorder),createQuadrilaterals:!0});ue(this,il);ue(this,d2);ue(this,f2);this.isTooltipOnly=n.data.isTooltipOnly}render(){const{data:n,linkService:i}=this,o=document.createElement("a");o.setAttribute("data-element-id",n.id);let s=!1;return n.url?(i.addLinkAttributes(o,n.url,n.newWindow),s=!0):n.action?(this._bindNamedAction(o,n.action),s=!0):n.attachment?(_e(this,d2,fU).call(this,o,n.attachment,n.attachmentDest),s=!0):n.setOCGState?(_e(this,f2,hU).call(this,o,n.setOCGState),s=!0):n.dest?(this._bindLink(o,n.dest),s=!0):(n.actions&&(n.actions.Action||n.actions["Mouse Up"]||n.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(o,n),s=!0),n.resetForm?(this._bindResetFormAction(o,n.resetForm),s=!0):this.isTooltipOnly&&!s&&(this._bindLink(o,""),s=!0)),this.container.classList.add("linkAnnotation"),s&&this.container.append(o),this.container}_bindLink(n,i){n.href=this.linkService.getDestinationHash(i),n.onclick=()=>(i&&this.linkService.goToDestination(i),!1),(i||i==="")&&_e(this,il,ku).call(this)}_bindNamedAction(n,i){n.href=this.linkService.getAnchorUrl(""),n.onclick=()=>(this.linkService.executeNamedAction(i),!1),_e(this,il,ku).call(this)}_bindJSAction(n,i){n.href=this.linkService.getAnchorUrl("");const o=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const s of Object.keys(i.actions)){const r=o.get(s);r&&(n[r]=()=>{var a;return(a=this.linkService.eventBus)==null||a.dispatch("dispatcheventinsandbox",{source:this,detail:{id:i.id,name:s}}),!1})}n.onclick||(n.onclick=()=>!1),_e(this,il,ku).call(this)}_bindResetFormAction(n,i){const o=n.onclick;o||(n.href=this.linkService.getAnchorUrl("")),_e(this,il,ku).call(this),this._fieldObjects?n.onclick=()=>{var g;o==null||o();const{fields:s,refs:r,include:a}=i,u=[];if(s.length!==0||r.length!==0){const C=new Set(r);for(const S of s){const _=this._fieldObjects[S]||[];for(const{id:A}of _)C.add(A)}for(const S of Object.values(this._fieldObjects))for(const _ of S)C.has(_.id)===a&&u.push(_)}else for(const C of Object.values(this._fieldObjects))u.push(...C);const c=this.annotationStorage,l=[];for(const C of u){const{id:S}=C;switch(l.push(S),C.type){case"text":{const A=C.defaultValue||"";c.setValue(S,{value:A});break}case"checkbox":case"radiobutton":{const A=C.defaultValue===C.exportValues;c.setValue(S,{value:A});break}case"combobox":case"listbox":{const A=C.defaultValue||"";c.setValue(S,{value:A});break}default:continue}const _=document.querySelector(`[data-element-id="${S}"]`);_&&(nf.has(_)?_.dispatchEvent(new Event("resetform")):Cn(`_bindResetFormAction - element not allowed: ${S}`))}return this.enableScripting&&((g=this.linkService.eventBus)==null||g.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:l,name:"ResetForm"}})),!1}:(Cn('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),o||(n.onclick=()=>!1))}}il=new WeakSet,ku=function(){this.container.setAttribute("data-internal-link","")},d2=new WeakSet,fU=function(n,i,o=null){n.href=this.linkService.getAnchorUrl(""),i.description&&(n.title=i.description),n.onclick=()=>{var s;return(s=this.downloadManager)==null||s.openOrDownloadData(i.content,i.filename,o),!1},_e(this,il,ku).call(this)},f2=new WeakSet,hU=function(n,i){n.href=this.linkService.getAnchorUrl(""),n.onclick=()=>(this.linkService.executeSetOCGState(i),!1),_e(this,il,ku).call(this)};class BZe extends Ri{constructor(t){super(t,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const t=document.createElement("img");return t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),t.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(t),this.container}}class gf extends Ri{render(){return this.container}showElementAndHideCanvas(t){var n;this.data.hasOwnCanvas&&(((n=t.previousSibling)==null?void 0:n.nodeName)==="CANVAS"&&(t.previousSibling.hidden=!0),t.hidden=!1)}_getKeyModifier(t){return ao.platform.isMac?t.metaKey:t.ctrlKey}_setEventListener(t,n,i,o,s){i.includes("mouse")?t.addEventListener(i,r=>{var a;(a=this.linkService.eventBus)==null||a.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:o,value:s(r),shift:r.shiftKey,modifier:this._getKeyModifier(r)}})}):t.addEventListener(i,r=>{var a;if(i==="blur"){if(!n.focused||!r.relatedTarget)return;n.focused=!1}else if(i==="focus"){if(n.focused)return;n.focused=!0}s&&((a=this.linkService.eventBus)==null||a.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:o,value:s(r)}}))})}_setEventListeners(t,n,i,o){var s,r,a;for(const[u,c]of i)(c==="Action"||(s=this.data.actions)!=null&&s[c])&&(c!=="Focus"&&c!=="Blur"||n||(n={focused:!1}),this._setEventListener(t,n,u,c,o),c!=="Focus"||(r=this.data.actions)!=null&&r.Blur?c!=="Blur"||(a=this.data.actions)!=null&&a.Focus||this._setEventListener(t,n,"focus","Focus",null):this._setEventListener(t,n,"blur","Blur",null))}_setBackgroundColor(t){const n=this.data.backgroundColor||null;t.style.backgroundColor=n===null?"transparent":nn.makeHexColor(n[0],n[1],n[2])}_setTextStyle(t){const n=["left","center","right"],{fontColor:i}=this.data.defaultAppearanceData,o=this.data.defaultAppearanceData.fontSize||9,s=t.style;let r;const a=u=>Math.round(10*u)/10;if(this.data.multiLine){const u=Math.abs(this.data.rect[3]-this.data.rect[1]-2),c=u/(Math.round(u/(dA*o))||1);r=Math.min(o,a(c/dA))}else{const u=Math.abs(this.data.rect[3]-this.data.rect[1]-2);r=Math.min(o,a(u/dA))}s.fontSize=`calc(${r}px * var(--scale-factor))`,s.color=nn.makeHexColor(i[0],i[1],i[2]),this.data.textAlignment!==null&&(s.textAlign=n[this.data.textAlignment])}_setRequired(t,n){n?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",n)}}class FZe extends gf{constructor(t){super(t,{isRenderable:t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue})}setPropertyOnSiblings(t,n,i,o){const s=this.annotationStorage;for(const r of this._getElementsByName(t.name,t.id))r.domElement&&(r.domElement[n]=i),s.setValue(r.id,{[o]:i})}render(){var o,s;const t=this.annotationStorage,n=this.data.id;this.container.classList.add("textWidgetAnnotation");let i=null;if(this.renderForms){const r=t.getValue(n,{value:this.data.fieldValue});let a=r.value||"";const u=t.getValue(n,{charLimit:this.data.maxLen}).charLimit;u&&a.length>u&&(a=a.slice(0,u));let c=r.formattedValue||((o=this.data.textContent)==null?void 0:o.join(`
  86. `))||null;c&&this.data.comb&&(c=c.replaceAll(/\s+/g,""));const l={userValue:a,formattedValue:c,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(i=document.createElement("textarea"),i.textContent=c??a,this.data.doNotScroll&&(i.style.overflowY="hidden")):(i=document.createElement("input"),i.type="text",i.setAttribute("value",c??a),this.data.doNotScroll&&(i.style.overflowX="hidden")),this.data.hasOwnCanvas&&(i.hidden=!0),nf.add(i),i.setAttribute("data-element-id",n),i.disabled=this.data.readOnly,i.name=this.data.fieldName,i.tabIndex=x1,this._setRequired(i,this.data.required),u&&(i.maxLength=u),i.addEventListener("input",C=>{t.setValue(n,{value:C.target.value}),this.setPropertyOnSiblings(i,"value",C.target.value,"value"),l.formattedValue=null}),i.addEventListener("resetform",C=>{const S=this.data.defaultFieldValue??"";i.value=l.userValue=S,l.formattedValue=null});let g=C=>{const{formattedValue:S}=l;S!=null&&(C.target.value=S),C.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){i.addEventListener("focus",S=>{var A;if(l.focused)return;const{target:_}=S;l.userValue&&(_.value=l.userValue),l.lastCommittedValue=_.value,l.commitKey=1,(A=this.data.actions)!=null&&A.Focus||(l.focused=!0)}),i.addEventListener("updatefromsandbox",S=>{this.showElementAndHideCanvas(S.target);const _={value(A){l.userValue=A.detail.value??"",t.setValue(n,{value:l.userValue.toString()}),A.target.value=l.userValue},formattedValue(A){const{formattedValue:y}=A.detail;l.formattedValue=y,y!=null&&A.target!==document.activeElement&&(A.target.value=y),t.setValue(n,{formattedValue:y})},selRange(A){A.target.setSelectionRange(...A.detail.selRange)},charLimit:A=>{var m;const{charLimit:y}=A.detail,{target:d}=A;if(y===0){d.removeAttribute("maxLength");return}d.setAttribute("maxLength",y);let v=l.userValue;v&&!(v.length<=y)&&(v=v.slice(0,y),d.value=l.userValue=v,t.setValue(n,{value:v}),(m=this.linkService.eventBus)==null||m.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:v,willCommit:!0,commitKey:1,selStart:d.selectionStart,selEnd:d.selectionEnd}}))}};this._dispatchEventFromSandbox(_,S)}),i.addEventListener("keydown",S=>{var y;l.commitKey=1;let _=-1;if(S.key==="Escape"?_=0:S.key!=="Enter"||this.data.multiLine?S.key==="Tab"&&(l.commitKey=3):_=2,_===-1)return;const{value:A}=S.target;l.lastCommittedValue!==A&&(l.lastCommittedValue=A,l.userValue=A,(y=this.linkService.eventBus)==null||y.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:A,willCommit:!0,commitKey:_,selStart:S.target.selectionStart,selEnd:S.target.selectionEnd}}))});const C=g;g=null,i.addEventListener("blur",S=>{var A,y;if(!l.focused||!S.relatedTarget)return;(A=this.data.actions)!=null&&A.Blur||(l.focused=!1);const{value:_}=S.target;l.userValue=_,l.lastCommittedValue!==_&&((y=this.linkService.eventBus)==null||y.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:_,willCommit:!0,commitKey:l.commitKey,selStart:S.target.selectionStart,selEnd:S.target.selectionEnd}})),C(S)}),(s=this.data.actions)!=null&&s.Keystroke&&i.addEventListener("beforeinput",S=>{var p;l.lastCommittedValue=null;const{data:_,target:A}=S,{value:y,selectionStart:d,selectionEnd:v}=A;let m=d,f=v;switch(S.inputType){case"deleteWordBackward":{const h=y.substring(0,d).match(/\w*[^\w]*$/);h&&(m-=h[0].length);break}case"deleteWordForward":{const h=y.substring(d).match(/^[^\w]*\w*/);h&&(f+=h[0].length);break}case"deleteContentBackward":d===v&&(m-=1);break;case"deleteContentForward":d===v&&(f+=1)}S.preventDefault(),(p=this.linkService.eventBus)==null||p.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:y,change:_||"",willCommit:!1,selStart:m,selEnd:f}})}),this._setEventListeners(i,l,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],S=>S.target.value)}if(g&&i.addEventListener("blur",g),this.data.comb){const C=(this.data.rect[2]-this.data.rect[0])/u;i.classList.add("comb"),i.style.letterSpacing=`calc(${C}px * var(--scale-factor) - 1ch)`}}else i=document.createElement("div"),i.textContent=this.data.fieldValue,i.style.verticalAlign="middle",i.style.display="table-cell",this.data.hasOwnCanvas&&(i.hidden=!0);return this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class VZe extends gf{constructor(t){super(t,{isRenderable:!!t.data.hasOwnCanvas})}}class HZe extends gf{constructor(t){super(t,{isRenderable:t.renderForms})}render(){const t=this.annotationStorage,n=this.data,i=n.id;let o=t.getValue(i,{value:n.exportValue===n.fieldValue}).value;typeof o=="string"&&(o=o!=="Off",t.setValue(i,{value:o})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const s=document.createElement("input");return nf.add(s),s.setAttribute("data-element-id",i),s.disabled=n.readOnly,this._setRequired(s,this.data.required),s.type="checkbox",s.name=n.fieldName,o&&s.setAttribute("checked",!0),s.setAttribute("exportValue",n.exportValue),s.tabIndex=x1,s.addEventListener("change",r=>{const{name:a,checked:u}=r.target;for(const c of this._getElementsByName(a,i)){const l=u&&c.exportValue===n.exportValue;c.domElement&&(c.domElement.checked=l),t.setValue(c.id,{value:l})}t.setValue(i,{value:u})}),s.addEventListener("resetform",r=>{const a=n.defaultFieldValue||"Off";r.target.checked=a===n.exportValue}),this.enableScripting&&this.hasJSActions&&(s.addEventListener("updatefromsandbox",r=>{const a={value(u){u.target.checked=u.detail.value!=="Off",t.setValue(i,{value:u.target.checked})}};this._dispatchEventFromSandbox(a,r)}),this._setEventListeners(s,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],r=>r.target.checked)),this._setBackgroundColor(s),this._setDefaultPropertiesFromJS(s),this.container.append(s),this.container}}class pU extends gf{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const t=this.annotationStorage,n=this.data,i=n.id;let o=t.getValue(i,{value:n.fieldValue===n.buttonValue}).value;if(typeof o=="string"&&(o=o!==n.buttonValue,t.setValue(i,{value:o})),o)for(const r of this._getElementsByName(n.fieldName,i))t.setValue(r.id,{value:!1});const s=document.createElement("input");if(nf.add(s),s.setAttribute("data-element-id",i),s.disabled=n.readOnly,this._setRequired(s,this.data.required),s.type="radio",s.name=n.fieldName,o&&s.setAttribute("checked",!0),s.tabIndex=x1,s.addEventListener("change",r=>{const{name:a,checked:u}=r.target;for(const c of this._getElementsByName(a,i))t.setValue(c.id,{value:!1});t.setValue(i,{value:u})}),s.addEventListener("resetform",r=>{const a=n.defaultFieldValue;r.target.checked=a!=null&&a===n.buttonValue}),this.enableScripting&&this.hasJSActions){const r=n.buttonValue;s.addEventListener("updatefromsandbox",a=>{const u={value:c=>{const l=r===c.detail.value;for(const g of this._getElementsByName(c.target.name)){const C=l&&g.id===i;g.domElement&&(g.domElement.checked=C),t.setValue(g.id,{value:C})}}};this._dispatchEventFromSandbox(u,a)}),this._setEventListeners(s,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],a=>a.target.checked)}return this._setBackgroundColor(s),this._setDefaultPropertiesFromJS(s),this.container.append(s),this.container}}class WZe extends dU{constructor(t){super(t,{ignoreBorder:t.data.hasAppearance})}render(){const t=super.render();t.classList.add("buttonWidgetAnnotation","pushButton");const n=t.lastChild;return this.enableScripting&&this.hasJSActions&&n&&(this._setDefaultPropertiesFromJS(n),n.addEventListener("updatefromsandbox",i=>{this._dispatchEventFromSandbox({},i)})),t}}class UZe extends gf{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const t=this.annotationStorage,n=this.data.id,i=t.getValue(n,{value:this.data.fieldValue}),o=document.createElement("select");nf.add(o),o.setAttribute("data-element-id",n),o.disabled=this.data.readOnly,this._setRequired(o,this.data.required),o.name=this.data.fieldName,o.tabIndex=x1;let s=this.data.combo&&this.data.options.length>0;this.data.combo||(o.size=this.data.options.length,this.data.multiSelect&&(o.multiple=!0)),o.addEventListener("resetform",l=>{const g=this.data.defaultFieldValue;for(const C of o.options)C.selected=C.value===g});for(const l of this.data.options){const g=document.createElement("option");g.textContent=l.displayValue,g.value=l.exportValue,i.value.includes(l.exportValue)&&(g.setAttribute("selected",!0),s=!1),o.append(g)}let r=null;if(s){const l=document.createElement("option");l.value=" ",l.setAttribute("hidden",!0),l.setAttribute("selected",!0),o.prepend(l),r=()=>{l.remove(),o.removeEventListener("input",r),r=null},o.addEventListener("input",r)}const a=l=>{const g=l?"value":"textContent",{options:C,multiple:S}=o;return S?Array.prototype.filter.call(C,_=>_.selected).map(_=>_[g]):C.selectedIndex===-1?null:C[C.selectedIndex][g]};let u=a(!1);const c=l=>{const g=l.target.options;return Array.prototype.map.call(g,C=>({displayValue:C.textContent,exportValue:C.value}))};return this.enableScripting&&this.hasJSActions?(o.addEventListener("updatefromsandbox",l=>{const g={value(C){r==null||r();const S=C.detail.value,_=new Set(Array.isArray(S)?S:[S]);for(const A of o.options)A.selected=_.has(A.value);t.setValue(n,{value:a(!0)}),u=a(!1)},multipleSelection(C){o.multiple=!0},remove(C){const S=o.options,_=C.detail.remove;S[_].selected=!1,o.remove(_),S.length>0&&Array.prototype.findIndex.call(S,A=>A.selected)===-1&&(S[0].selected=!0),t.setValue(n,{value:a(!0),items:c(C)}),u=a(!1)},clear(C){for(;o.length!==0;)o.remove(0);t.setValue(n,{value:null,items:[]}),u=a(!1)},insert(C){const{index:S,displayValue:_,exportValue:A}=C.detail.insert,y=o.children[S],d=document.createElement("option");d.textContent=_,d.value=A,y?y.before(d):o.append(d),t.setValue(n,{value:a(!0),items:c(C)}),u=a(!1)},items(C){const{items:S}=C.detail;for(;o.length!==0;)o.remove(0);for(const _ of S){const{displayValue:A,exportValue:y}=_,d=document.createElement("option");d.textContent=A,d.value=y,o.append(d)}o.options.length>0&&(o.options[0].selected=!0),t.setValue(n,{value:a(!0),items:c(C)}),u=a(!1)},indices(C){const S=new Set(C.detail.indices);for(const _ of C.target.options)_.selected=S.has(_.index);t.setValue(n,{value:a(!0)}),u=a(!1)},editable(C){C.target.disabled=!C.detail.editable}};this._dispatchEventFromSandbox(g,l)}),o.addEventListener("input",l=>{var S;const g=a(!0),C=a(!1);t.setValue(n,{value:g}),l.preventDefault(),(S=this.linkService.eventBus)==null||S.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:u,change:C,changeEx:g,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(o,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],l=>l.target.value)):o.addEventListener("input",function(l){t.setValue(n,{value:a(!0)})}),this.data.combo&&this._setTextStyle(o),this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class hM extends Ri{constructor(t){const{data:n,elements:i}=t;super(t,{isRenderable:Ri._hasPopupData(n)}),this.elements=i,this.popup=null}render(){this.container.classList.add("popupAnnotation");const t=this.popup=new ZZe({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),n=[];for(const i of this.elements)i.popup=t,i.container.ariaHasPopup="dialog",n.push(i.data.id),i.addHighlightArea();return this.container.setAttribute("aria-controls",n.map(i=>`${qP}${i}`).join(",")),this.container}}var Zh,h2,p2,Gh,fd,Ti,rl,Yh,Qg,e0,Xh,ol,As,sl,t0,al,n0,hd,pd,Kh,sk,i0,pM,m2,mU,v2,vU,g2,gU,y2,yU,Jh,ak,qh,lk,r0,mM;class ZZe{constructor({container:t,color:n,elements:i,titleObj:o,modificationDate:s,contentsObj:r,richText:a,parent:u,rect:c,parentRect:l,open:g}){ue(this,Kh);ue(this,i0);ue(this,m2);ue(this,v2);ue(this,g2);ue(this,y2);ue(this,Jh);ue(this,qh);ue(this,r0);ue(this,Zh,_e(this,g2,gU).bind(this));ue(this,h2,_e(this,r0,mM).bind(this));ue(this,p2,_e(this,qh,lk).bind(this));ue(this,Gh,_e(this,Jh,ak).bind(this));ue(this,fd,null);ue(this,Ti,null);ue(this,rl,null);ue(this,Yh,null);ue(this,Qg,null);ue(this,e0,null);ue(this,Xh,null);ue(this,ol,!1);ue(this,As,null);ue(this,sl,null);ue(this,t0,null);ue(this,al,null);ue(this,n0,null);ue(this,hd,null);ue(this,pd,!1);var C;Ce(this,Ti,t),Ce(this,n0,o),Ce(this,rl,r),Ce(this,al,a),Ce(this,e0,u),Ce(this,fd,n),Ce(this,t0,c),Ce(this,Xh,l),Ce(this,Qg,i),Ce(this,Yh,tO.toDateObject(s)),this.trigger=i.flatMap(S=>S.getElementsToTriggerPopup());for(const S of this.trigger)S.addEventListener("click",D(this,Gh)),S.addEventListener("mouseenter",D(this,p2)),S.addEventListener("mouseleave",D(this,h2)),S.classList.add("popupTriggerArea");for(const S of i)(C=S.container)==null||C.addEventListener("keydown",D(this,Zh));D(this,Ti).hidden=!0,g&&_e(this,Jh,ak).call(this)}render(){if(D(this,As))return;const t=Ce(this,As,document.createElement("div"));if(t.className="popup",D(this,fd)){const s=t.style.outlineColor=nn.makeHexColor(...D(this,fd));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?t.style.backgroundColor=`color-mix(in srgb, ${s} 30%, white)`:t.style.backgroundColor=nn.makeHexColor(...D(this,fd).map(a=>Math.floor(.7*(255-a)+a)))}const n=document.createElement("span");n.className="header";const i=document.createElement("h1");if(n.append(i),{dir:i.dir,str:i.textContent}=D(this,n0),t.append(n),D(this,Yh)){const s=document.createElement("span");s.classList.add("popupDate"),s.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),s.setAttribute("data-l10n-args",JSON.stringify({dateObj:D(this,Yh).valueOf()})),n.append(s)}const o=D(this,Kh,sk);if(o)uU.render({xfaHtml:o,intent:"richText",div:t}),t.lastChild.classList.add("richText","popupContent");else{const s=this._formatContents(D(this,rl));t.append(s)}D(this,Ti).append(t)}_formatContents({str:t,dir:n}){const i=document.createElement("p");i.classList.add("popupContent"),i.dir=n;const o=t.split(/(?:\r\n?|\n)/);for(let s=0,r=o.length;s<r;++s){const a=o[s];i.append(document.createTextNode(a)),s<r-1&&i.append(document.createElement("br"))}return i}updateEdited({rect:t,popupContent:n}){var i;D(this,hd)||Ce(this,hd,{contentsObj:D(this,rl),richText:D(this,al)}),t&&Ce(this,sl,null),n&&(Ce(this,al,_e(this,v2,vU).call(this,n)),Ce(this,rl,null)),(i=D(this,As))==null||i.remove(),Ce(this,As,null)}resetEdited(){var t;D(this,hd)&&({contentsObj:Kr(this,rl)._,richText:Kr(this,al)._}=D(this,hd),Ce(this,hd,null),(t=D(this,As))==null||t.remove(),Ce(this,As,null),Ce(this,sl,null))}forceHide(){Ce(this,pd,this.isVisible),D(this,pd)&&(D(this,Ti).hidden=!0)}maybeShow(){D(this,pd)&&(D(this,As)||_e(this,qh,lk).call(this),Ce(this,pd,!1),D(this,Ti).hidden=!1)}get isVisible(){return D(this,Ti).hidden===!1}}Zh=new WeakMap,h2=new WeakMap,p2=new WeakMap,Gh=new WeakMap,fd=new WeakMap,Ti=new WeakMap,rl=new WeakMap,Yh=new WeakMap,Qg=new WeakMap,e0=new WeakMap,Xh=new WeakMap,ol=new WeakMap,As=new WeakMap,sl=new WeakMap,t0=new WeakMap,al=new WeakMap,n0=new WeakMap,hd=new WeakMap,pd=new WeakMap,Kh=new WeakSet,sk=function(){const t=D(this,al),n=D(this,rl);return!(t!=null&&t.str)||n!=null&&n.str&&n.str!==t.str?null:D(this,al).html||null},i0=new WeakSet,pM=function(){var t,n,i;return((i=(n=(t=D(this,Kh,sk))==null?void 0:t.attributes)==null?void 0:n.style)==null?void 0:i.fontSize)||0},m2=new WeakSet,mU=function(){var t,n,i;return((i=(n=(t=D(this,Kh,sk))==null?void 0:t.attributes)==null?void 0:n.style)==null?void 0:i.color)||null},v2=new WeakSet,vU=function(t){const n=[],i={str:t,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:n}]}},o={style:{color:D(this,m2,mU),fontSize:D(this,i0,pM)?`calc(${D(this,i0,pM)}px * var(--scale-factor))`:""}};for(const s of t.split(`
  87. `))n.push({name:"span",value:s,attributes:o});return i},g2=new WeakSet,gU=function(t){t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||(t.key==="Enter"||t.key==="Escape"&&D(this,ol))&&_e(this,Jh,ak).call(this)},y2=new WeakSet,yU=function(){if(D(this,sl)!==null)return;const{page:{view:t},viewport:{rawDims:{pageWidth:n,pageHeight:i,pageX:o,pageY:s}}}=D(this,e0);let r=!!D(this,Xh),a=r?D(this,Xh):D(this,t0);for(const S of D(this,Qg))if(!a||nn.intersect(S.data.rect,a)!==null){a=S.data.rect,r=!0;break}const u=nn.normalizeRect([a[0],t[3]-a[1]+t[1],a[2],t[3]-a[3]+t[1]]),c=r?a[2]-a[0]+5:0,l=u[0]+c,g=u[1];Ce(this,sl,[100*(l-o)/n,100*(g-s)/i]);const{style:C}=D(this,Ti);C.left=`${D(this,sl)[0]}%`,C.top=`${D(this,sl)[1]}%`},Jh=new WeakSet,ak=function(){Ce(this,ol,!D(this,ol)),D(this,ol)?(_e(this,qh,lk).call(this),D(this,Ti).addEventListener("click",D(this,Gh)),D(this,Ti).addEventListener("keydown",D(this,Zh))):(_e(this,r0,mM).call(this),D(this,Ti).removeEventListener("click",D(this,Gh)),D(this,Ti).removeEventListener("keydown",D(this,Zh)))},qh=new WeakSet,lk=function(){D(this,As)||this.render(),this.isVisible?D(this,ol)&&D(this,Ti).classList.add("focused"):(_e(this,y2,yU).call(this),D(this,Ti).hidden=!1,D(this,Ti).style.zIndex=parseInt(D(this,Ti).style.zIndex)+1e3)},r0=new WeakSet,mM=function(){D(this,Ti).classList.remove("focused"),!D(this,ol)&&this.isVisible&&(D(this,Ti).hidden=!0,D(this,Ti).style.zIndex=parseInt(D(this,Ti).style.zIndex)-1e3)};class bU extends Ri{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.textContent=t.data.textContent,this.textPosition=t.data.textPosition,this.annotationEditorType=yn.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const t=document.createElement("div");t.classList.add("annotationTextContent"),t.setAttribute("role","comment");for(const n of this.textContent){const i=document.createElement("span");i.textContent=n,t.append(i)}this.container.append(t)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}var o0;class GZe extends Ri{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ue(this,o0,null)}render(){this.container.classList.add("lineAnnotation");const n=this.data,{width:i,height:o}=Pl(n.rect),s=this.svgFactory.create(i,o,!0),r=Ce(this,o0,this.svgFactory.createElement("svg:line"));return r.setAttribute("x1",n.rect[2]-n.lineCoordinates[0]),r.setAttribute("y1",n.rect[3]-n.lineCoordinates[1]),r.setAttribute("x2",n.rect[2]-n.lineCoordinates[2]),r.setAttribute("y2",n.rect[3]-n.lineCoordinates[3]),r.setAttribute("stroke-width",n.borderStyle.width||1),r.setAttribute("stroke","transparent"),r.setAttribute("fill","transparent"),s.append(r),this.container.append(s),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return D(this,o0)}addHighlightArea(){this.container.classList.add("highlightArea")}}o0=new WeakMap;var s0;class YZe extends Ri{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ue(this,s0,null)}render(){this.container.classList.add("squareAnnotation");const n=this.data,{width:i,height:o}=Pl(n.rect),s=this.svgFactory.create(i,o,!0),r=n.borderStyle.width,a=Ce(this,s0,this.svgFactory.createElement("svg:rect"));return a.setAttribute("x",r/2),a.setAttribute("y",r/2),a.setAttribute("width",i-r),a.setAttribute("height",o-r),a.setAttribute("stroke-width",r||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),s.append(a),this.container.append(s),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return D(this,s0)}addHighlightArea(){this.container.classList.add("highlightArea")}}s0=new WeakMap;var a0;class XZe extends Ri{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ue(this,a0,null)}render(){this.container.classList.add("circleAnnotation");const n=this.data,{width:i,height:o}=Pl(n.rect),s=this.svgFactory.create(i,o,!0),r=n.borderStyle.width,a=Ce(this,a0,this.svgFactory.createElement("svg:ellipse"));return a.setAttribute("cx",i/2),a.setAttribute("cy",o/2),a.setAttribute("rx",i/2-r/2),a.setAttribute("ry",o/2-r/2),a.setAttribute("stroke-width",r||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),s.append(a),this.container.append(s),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return D(this,a0)}addHighlightArea(){this.container.classList.add("highlightArea")}}a0=new WeakMap;var l0;class kU extends Ri{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ue(this,l0,null);this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const{data:{rect:n,vertices:i,borderStyle:o,popupRef:s}}=this;if(!i)return this.container;const{width:r,height:a}=Pl(n),u=this.svgFactory.create(r,a,!0);let c=[];for(let g=0,C=i.length;g<C;g+=2){const S=i[g]-n[0],_=n[3]-i[g+1];c.push(`${S},${_}`)}c=c.join(" ");const l=Ce(this,l0,this.svgFactory.createElement(this.svgElementName));return l.setAttribute("points",c),l.setAttribute("stroke-width",o.width||1),l.setAttribute("stroke","transparent"),l.setAttribute("fill","transparent"),u.append(l),this.container.append(u),!s&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return D(this,l0)}addHighlightArea(){this.container.classList.add("highlightArea")}}l0=new WeakMap;class KZe extends kU{constructor(t){super(t),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class JZe extends Ri{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}var c0;class cO extends Ri{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ue(this,c0,[]);this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=this.data.it==="InkHighlight"?yn.HIGHLIGHT:yn.INK}render(){this.container.classList.add(this.containerClassName);const{data:{rect:n,inkLists:i,borderStyle:o,popupRef:s}}=this,{width:r,height:a}=Pl(n),u=this.svgFactory.create(r,a,!0);for(const c of i){let l=[];for(let C=0,S=c.length;C<S;C+=2){const _=c[C]-n[0],A=n[3]-c[C+1];l.push(`${_},${A}`)}l=l.join(" ");const g=this.svgFactory.createElement(this.svgElementName);D(this,c0).push(g),g.setAttribute("points",l),g.setAttribute("stroke-width",o.width||1),g.setAttribute("stroke","transparent"),g.setAttribute("fill","transparent"),u.append(g)}return!s&&this.hasPopupData&&this._createPopup(),this.container.append(u),this._editOnDoubleClick(),this.container}getElementsToTriggerPopup(){return D(this,c0)}addHighlightArea(){this.container.classList.add("highlightArea")}}c0=new WeakMap;class CU extends Ri{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}),this.annotationEditorType=yn.HIGHLIGHT}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this._editOnDoubleClick(),this.container}}class qZe extends Ri{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),this.container}}class QZe extends Ri{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),this.container}}class eGe extends Ri{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),this.container}}class SU extends Ri{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.annotationEditorType=yn.STAMP}render(){return this.container.classList.add("stampAnnotation"),this.container.setAttribute("role","img"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}var u0,d0,vM;class tGe extends Ri{constructor(n){var o;super(n,{isRenderable:!0});ue(this,d0);ue(this,u0,null);const{file:i}=this.data;this.filename=i.filename,this.content=i.content,(o=this.linkService.eventBus)==null||o.dispatch("fileattachmentannotation",{source:this,...i})}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:n,data:i}=this;let o;i.hasAppearance||i.fillAlpha===0?o=document.createElement("div"):(o=document.createElement("img"),o.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(i.name)?"paperclip":"pushpin"}.svg`,i.fillAlpha&&i.fillAlpha<1&&(o.style=`filter: opacity(${Math.round(100*i.fillAlpha)}%);`)),o.addEventListener("dblclick",_e(this,d0,vM).bind(this)),Ce(this,u0,o);const{isMac:s}=ao.platform;return n.addEventListener("keydown",r=>{r.key==="Enter"&&(s?r.metaKey:r.ctrlKey)&&_e(this,d0,vM).call(this)}),!i.popupRef&&this.hasPopupData?this._createPopup():o.classList.add("popupTriggerArea"),n.append(o),n}getElementsToTriggerPopup(){return D(this,u0)}addHighlightArea(){this.container.classList.add("highlightArea")}}u0=new WeakMap,d0=new WeakSet,vM=function(){var n;(n=this.downloadManager)==null||n.openOrDownloadData(this.content,this.filename)};var f0,md,vd,h0,b2,wU,p0,gM;class nGe{constructor({div:t,accessibilityManager:n,annotationCanvasMap:i,annotationEditorUIManager:o,page:s,viewport:r,structTreeLayer:a}){ue(this,b2);ue(this,p0);ue(this,f0,null);ue(this,md,null);ue(this,vd,new Map);ue(this,h0,null);this.div=t,Ce(this,f0,n),Ce(this,md,i),Ce(this,h0,a||null),this.page=s,this.viewport=r,this.zIndex=0,this._annotationEditorUIManager=o}hasEditableAnnotations(){return D(this,vd).size>0}async render(t){var r;const{annotations:n}=t,i=this.div;tf(i,this.viewport);const o=new Map,s={data:null,layer:i,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderForms:t.renderForms!==!1,svgFactory:new lO,annotationStorage:t.annotationStorage||new nO,enableScripting:t.enableScripting===!0,hasJSActions:t.hasJSActions,fieldObjects:t.fieldObjects,parent:this,elements:null};for(const a of n){if(a.noHTML)continue;const u=a.annotationType===hW;if(u){const g=o.get(a.id);if(!g)continue;s.elements=g}else{const{width:g,height:C}=Pl(a.rect);if(g<=0||C<=0)continue}s.data=a;const c=RZe.create(s);if(!c.isRenderable)continue;if(!u&&a.popupRef){const g=o.get(a.popupRef);g?g.push(c):o.set(a.popupRef,[c])}const l=c.render();a.hidden&&(l.style.visibility="hidden"),await _e(this,b2,wU).call(this,l,a.id),c._isEditable&&(D(this,vd).set(c.data.id,c),(r=this._annotationEditorUIManager)==null||r.renderAnnotationElement(c))}_e(this,p0,gM).call(this)}update({viewport:t}){const n=this.div;this.viewport=t,tf(n,{rotation:t.rotation}),_e(this,p0,gM).call(this),n.hidden=!1}getEditableAnnotations(){return Array.from(D(this,vd).values())}getEditableAnnotation(t){return D(this,vd).get(t)}}f0=new WeakMap,md=new WeakMap,vd=new WeakMap,h0=new WeakMap,b2=new WeakSet,wU=async function(t,n){var r,a;const i=t.firstChild||t,o=i.id=`${qP}${n}`,s=await((r=D(this,h0))==null?void 0:r.getAriaAttributes(o));if(s)for(const[u,c]of s)i.setAttribute(u,c);this.div.append(t),(a=D(this,f0))==null||a.moveElementInDOM(this.div,t,i,!1)},p0=new WeakSet,gM=function(){if(!D(this,md))return;const t=this.div;for(const[n,i]of D(this,md)){const o=t.querySelector(`[data-annotation-id="${n}"]`);if(!o)continue;i.className="annotationContent";const{firstChild:s}=o;s?s.nodeName==="CANVAS"?s.replaceWith(i):s.classList.contains("annotationContent")?s.after(i):s.before(i):o.append(i)}D(this,md).clear()};const Ny=/\r\n?|\n/g;var Es,Lo,m0,gd,Do,k2,_U,C2,IU,S2,xU,Qh,ck,ep,uk,tp,dk,w2,$U,v0,yM,_2,AU;const qi=class extends En{constructor(n){super({...n,name:"freeTextEditor"});ue(this,k2);ue(this,C2);ue(this,S2);ue(this,Qh);ue(this,tp);ue(this,w2);ue(this,_2);ue(this,Es,void 0);ue(this,Lo,"");ue(this,m0,`${this.id}-editor`);ue(this,gd,null);ue(this,Do,void 0);Ce(this,Es,n.color||qi._defaultColor||En._defaultLineColor),Ce(this,Do,n.fontSize||qi._defaultFontSize)}static get _keyboardManager(){const n=qi.prototype,i=r=>r.isEmpty(),o=xl.TRANSLATE_SMALL,s=xl.TRANSLATE_BIG;return Pn(this,"_keyboardManager",new I1([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],n.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],n.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],n._translateEmpty,{args:[-o,0],checker:i}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],n._translateEmpty,{args:[-s,0],checker:i}],[["ArrowRight","mac+ArrowRight"],n._translateEmpty,{args:[o,0],checker:i}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],n._translateEmpty,{args:[s,0],checker:i}],[["ArrowUp","mac+ArrowUp"],n._translateEmpty,{args:[0,-o],checker:i}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],n._translateEmpty,{args:[0,-s],checker:i}],[["ArrowDown","mac+ArrowDown"],n._translateEmpty,{args:[0,o],checker:i}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],n._translateEmpty,{args:[0,s],checker:i}]]))}static initialize(n,i){En.initialize(n,i);const o=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(o.getPropertyValue("--freetext-padding"))}static updateDefaultParams(n,i){switch(n){case un.FREETEXT_SIZE:qi._defaultFontSize=i;break;case un.FREETEXT_COLOR:qi._defaultColor=i}}updateParams(n,i){switch(n){case un.FREETEXT_SIZE:_e(this,k2,_U).call(this,i);break;case un.FREETEXT_COLOR:_e(this,C2,IU).call(this,i)}}static get defaultPropertiesToUpdate(){return[[un.FREETEXT_SIZE,qi._defaultFontSize],[un.FREETEXT_COLOR,qi._defaultColor||En._defaultLineColor]]}get propertiesToUpdate(){return[[un.FREETEXT_SIZE,D(this,Do)],[un.FREETEXT_COLOR,D(this,Es)]]}_translateEmpty(n,i){this._uiManager.translateSelectedEditors(n,i,!0)}getInitialTranslation(){const n=this.parentScale;return[-qi._internalPadding*n,-(qi._internalPadding+D(this,Do))*n]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(this.isInEditMode())return;this.parent.setEditingState(!1),this.parent.updateToolbar(yn.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),Ce(this,gd,new AbortController);const n=this._uiManager.combinedSignal(D(this,gd));this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:n}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:n}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:n}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:n}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:n})}disableEditMode(){var n;this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",D(this,m0)),this._isDraggable=!0,(n=D(this,gd))==null||n.abort(),Ce(this,gd,null),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"))}focusin(n){this._focusEventsAllowed&&(super.focusin(n),n.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){var n;this.width||(this.enableEditMode(),this.editorDiv.focus(),(n=this._initialOptions)!=null&&n.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const n=D(this,Lo),i=Ce(this,Lo,_e(this,S2,xU).call(this).trimEnd());if(n===i)return;const o=s=>{Ce(this,Lo,s),s?(_e(this,tp,dk).call(this),this._uiManager.rebuild(this),_e(this,Qh,ck).call(this)):this.remove()};this.addCommands({cmd:()=>{o(i)},undo:()=>{o(n)},mustExec:!1}),_e(this,Qh,ck).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(n){this.enterInEditMode()}keydown(n){n.target===this.div&&n.key==="Enter"&&(this.enterInEditMode(),n.preventDefault())}editorDivKeydown(n){qi._keyboardManager.exec(this,n)}editorDivFocus(n){this.isEditing=!0}editorDivBlur(n){this.isEditing=!1}editorDivInput(n){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let n,i;this.width&&(n=this.x,i=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",D(this,m0)),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text2"),this.editorDiv.setAttribute("data-l10n-attrs","default-content"),this.enableEditing(),this.editorDiv.contentEditable=!0;const{style:o}=this.editorDiv;if(o.fontSize=`calc(${D(this,Do)}px * var(--scale-factor))`,o.color=D(this,Es),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),mC(this,this.div,["dblclick","keydown"]),this.width){const[s,r]=this.parentDimensions;if(this.annotationElementId){const{position:a}=this._initialData;let[u,c]=this.getInitialTranslation();[u,c]=this.pageTranslationToScreen(u,c);const[l,g]=this.pageDimensions,[C,S]=this.pageTranslation;let _,A;switch(this.rotation){case 0:_=n+(a[0]-C)/l,A=i+this.height-(a[1]-S)/g;break;case 90:_=n+(a[0]-C)/l,A=i-(a[1]-S)/g,[u,c]=[c,-u];break;case 180:_=n-this.width+(a[0]-C)/l,A=i-(a[1]-S)/g,[u,c]=[-u,-c];break;case 270:_=n+(a[0]-C-this.height*g)/l,A=i+(a[1]-S-this.width*l)/g,[u,c]=[-c,u]}this.setAt(_*s,A*r,u,c)}else this.setAt(n*s,i*r,this.width*s,this.height*r);_e(this,tp,dk).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}editorDivPaste(n){var _,A,y;const i=n.clipboardData||window.clipboardData,{types:o}=i;if(o.length===1&&o[0]==="text/plain")return;n.preventDefault();const s=_e(_=qi,v0,yM).call(_,i.getData("text")||"").replaceAll(Ny,`
  88. `);if(!s)return;const r=window.getSelection();if(!r.rangeCount)return;this.editorDiv.normalize(),r.deleteFromDocument();const a=r.getRangeAt(0);if(!s.includes(`
  89. `)){a.insertNode(document.createTextNode(s)),this.editorDiv.normalize(),r.collapseToStart();return}const{startContainer:u,startOffset:c}=a,l=[],g=[];if(u.nodeType===Node.TEXT_NODE){const d=u.parentElement;if(g.push(u.nodeValue.slice(c).replaceAll(Ny,"")),d!==this.editorDiv){let v=l;for(const m of this.editorDiv.childNodes)m!==d?v.push(_e(A=qi,ep,uk).call(A,m)):v=g}l.push(u.nodeValue.slice(0,c).replaceAll(Ny,""))}else if(u===this.editorDiv){let d=l,v=0;for(const m of this.editorDiv.childNodes)v++===c&&(d=g),d.push(_e(y=qi,ep,uk).call(y,m))}Ce(this,Lo,`${l.join(`
  90. `)}${s}${g.join(`
  91. `)}`),_e(this,tp,dk).call(this);const C=new Range;let S=l.reduce((d,v)=>d+v.length,0);for(const{firstChild:d}of this.editorDiv.childNodes)if(d.nodeType===Node.TEXT_NODE){const v=d.nodeValue.length;if(S<=v){C.setStart(d,S),C.setEnd(d,S);break}S-=v}r.removeAllRanges(),r.addRange(C)}get contentDiv(){return this.editorDiv}static async deserialize(n,i,o){var a;let s=null;if(n instanceof bU){const{data:{defaultAppearanceData:{fontSize:u,fontColor:c},rect:l,rotation:g,id:C,popupRef:S},textContent:_,textPosition:A,parent:{page:{pageNumber:y}}}=n;if(!_||_.length===0)return null;s=n={annotationType:yn.FREETEXT,color:Array.from(c),fontSize:u,value:_.join(`
  92. `),position:A,pageIndex:y-1,rect:l.slice(0),rotation:g,id:C,deleted:!1,popupRef:S}}const r=await super.deserialize(n,i,o);return Ce(r,Do,n.fontSize),Ce(r,Es,nn.makeHexColor(...n.color)),Ce(r,Lo,_e(a=qi,v0,yM).call(a,n.value)),r.annotationElementId=n.id||null,r._initialData=s,r}serialize(n=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const i=qi._internalPadding*this.parentScale,o=this.getRect(i,i),s=En._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:D(this,Es)),r={annotationType:yn.FREETEXT,color:s,fontSize:D(this,Do),value:_e(this,w2,$U).call(this),pageIndex:this.pageIndex,rect:o,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return n?r:this.annotationElementId&&!_e(this,_2,AU).call(this,r)?null:(r.id=this.annotationElementId,r)}renderAnnotationElement(n){const i=super.renderAnnotationElement(n);if(this.deleted)return i;const{style:o}=i;o.fontSize=`calc(${D(this,Do)}px * var(--scale-factor))`,o.color=D(this,Es),i.replaceChildren();for(const r of D(this,Lo).split(`
  93. `)){const a=document.createElement("div");a.append(r?document.createTextNode(r):document.createElement("br")),i.append(a)}const s=qi._internalPadding*this.parentScale;return n.updateEdited({rect:this.getRect(s,s),popupContent:D(this,Lo)}),i}resetAnnotationElement(n){super.resetAnnotationElement(n),n.resetEdited()}};let bs=qi;Es=new WeakMap,Lo=new WeakMap,m0=new WeakMap,gd=new WeakMap,Do=new WeakMap,k2=new WeakSet,_U=function(n){const i=s=>{this.editorDiv.style.fontSize=`calc(${s}px * var(--scale-factor))`,this.translate(0,-(s-D(this,Do))*this.parentScale),Ce(this,Do,s),_e(this,Qh,ck).call(this)},o=D(this,Do);this.addCommands({cmd:i.bind(this,n),undo:i.bind(this,o),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:un.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},C2=new WeakSet,IU=function(n){const i=s=>{Ce(this,Es,this.editorDiv.style.color=s)},o=D(this,Es);this.addCommands({cmd:i.bind(this,n),undo:i.bind(this,o),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:un.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},S2=new WeakSet,xU=function(){var o;const n=[];this.editorDiv.normalize();let i=null;for(const s of this.editorDiv.childNodes)((i==null?void 0:i.nodeType)!==Node.TEXT_NODE||s.nodeName!=="BR")&&(n.push(_e(o=qi,ep,uk).call(o,s)),i=s);return n.join(`
  94. `)},Qh=new WeakSet,ck=function(){const[n,i]=this.parentDimensions;let o;if(this.isAttachedToDOM)o=this.div.getBoundingClientRect();else{const{currentLayer:s,div:r}=this,a=r.style.display,u=r.classList.contains("hidden");r.classList.remove("hidden"),r.style.display="hidden",s.div.append(this.div),o=r.getBoundingClientRect(),r.remove(),r.style.display=a,r.classList.toggle("hidden",u)}this.rotation%180==this.parentRotation%180?(this.width=o.width/n,this.height=o.height/i):(this.width=o.height/n,this.height=o.width/i),this.fixAndSetPosition()},ep=new WeakSet,uk=function(n){return(n.nodeType===Node.TEXT_NODE?n.nodeValue:n.innerText).replaceAll(Ny,"")},tp=new WeakSet,dk=function(){if(this.editorDiv.replaceChildren(),D(this,Lo))for(const n of D(this,Lo).split(`
  95. `)){const i=document.createElement("div");i.append(n?document.createTextNode(n):document.createElement("br")),this.editorDiv.append(i)}},w2=new WeakSet,$U=function(){return D(this,Lo).replaceAll(" "," ")},v0=new WeakSet,yM=function(n){return n.replaceAll(" "," ")},_2=new WeakSet,AU=function(n){const{value:i,fontSize:o,color:s,pageIndex:r}=this._initialData;return this._hasBeenMoved||n.value!==i||n.fontSize!==o||n.color.some((a,u)=>a!==s[u])||n.pageIndex!==r},ue(bs,ep),ue(bs,v0),Wt(bs,"_freeTextDefaultContent",""),Wt(bs,"_internalPadding",0),Wt(bs,"_defaultColor",null),Wt(bs,"_defaultFontSize",10),Wt(bs,"_type","freetext"),Wt(bs,"_editorType",yn.FREETEXT);class EU{toSVGPath(){vi("Abstract method `toSVGPath` must be implemented.")}get box(){vi("Abstract getter `box` must be implemented.")}serialize(t,n){vi("Abstract method `serialize` must be implemented.")}get classNamesForDrawing(){vi("Abstract getter `classNamesForDrawing` must be implemented.")}get classNamesForOutlining(){vi("Abstract getter `classNamesForOutlining` must be implemented.")}get mustRemoveSelfIntersections(){return!1}}var No,Ms,np,ip,ma,In,yd,bd,g0,y0,rp,op,Oc,b0,I2,x2,kd,Gm,$2,MU,A2,TU,E2,PU,M2,OU,T2,LU,P2,DU;const Uf=class{constructor({x:t,y:n},i,o,s,r,a=0){ue(this,kd);ue(this,$2);ue(this,A2);ue(this,E2);ue(this,M2);ue(this,T2);ue(this,P2);ue(this,No,void 0);ue(this,Ms,[]);ue(this,np,void 0);ue(this,ip,void 0);ue(this,ma,[]);ue(this,In,new Float64Array(18));ue(this,yd,void 0);ue(this,bd,void 0);ue(this,g0,void 0);ue(this,y0,void 0);ue(this,rp,void 0);ue(this,op,void 0);ue(this,Oc,[]);Ce(this,No,i),Ce(this,op,s*o),Ce(this,ip,r),D(this,In).set([NaN,NaN,NaN,NaN,t,n],6),Ce(this,np,a),Ce(this,y0,D(Uf,b0)*o),Ce(this,g0,D(Uf,x2)*o),Ce(this,rp,o),D(this,Oc).push(t,n)}isEmpty(){return isNaN(D(this,In)[8])}add({x:t,y:n}){var b;Ce(this,yd,t),Ce(this,bd,n);const[i,o,s,r]=D(this,No);let[a,u,c,l]=D(this,In).subarray(8,12);const g=t-c,C=n-l,S=Math.hypot(g,C);if(S<D(this,g0))return!1;const _=S-D(this,y0),A=_/S,y=A*g,d=A*C;let v=a,m=u;a=c,u=l,c+=y,l+=d,(b=D(this,Oc))==null||b.push(t,n);const f=y/_,p=-d/_*D(this,op),h=f*D(this,op);return D(this,In).set(D(this,In).subarray(2,8),0),D(this,In).set([c+p,l+h],4),D(this,In).set(D(this,In).subarray(14,18),12),D(this,In).set([c-p,l-h],16),isNaN(D(this,In)[6])?(D(this,ma).length===0&&(D(this,In).set([a+p,u+h],2),D(this,ma).push(NaN,NaN,NaN,NaN,(a+p-i)/s,(u+h-o)/r),D(this,In).set([a-p,u-h],14),D(this,Ms).push(NaN,NaN,NaN,NaN,(a-p-i)/s,(u-h-o)/r)),D(this,In).set([v,m,a,u,c,l],6),!this.isEmpty()):(D(this,In).set([v,m,a,u,c,l],6),Math.abs(Math.atan2(m-u,v-a)-Math.atan2(d,y))<Math.PI/2?([a,u,c,l]=D(this,In).subarray(2,6),D(this,ma).push(NaN,NaN,NaN,NaN,((a+c)/2-i)/s,((u+l)/2-o)/r),[a,u,v,m]=D(this,In).subarray(14,18),D(this,Ms).push(NaN,NaN,NaN,NaN,((v+a)/2-i)/s,((m+u)/2-o)/r),!0):([v,m,a,u,c,l]=D(this,In).subarray(0,6),D(this,ma).push(((v+5*a)/6-i)/s,((m+5*u)/6-o)/r,((5*a+c)/6-i)/s,((5*u+l)/6-o)/r,((a+c)/2-i)/s,((u+l)/2-o)/r),[c,l,a,u,v,m]=D(this,In).subarray(12,18),D(this,Ms).push(((v+5*a)/6-i)/s,((m+5*u)/6-o)/r,((5*a+c)/6-i)/s,((5*u+l)/6-o)/r,((a+c)/2-i)/s,((u+l)/2-o)/r),!0))}toSVGPath(){if(this.isEmpty())return"";const t=D(this,ma),n=D(this,Ms);if(isNaN(D(this,In)[6])&&!this.isEmpty())return _e(this,$2,MU).call(this);const i=[];i.push(`M${t[4]} ${t[5]}`);for(let o=6;o<t.length;o+=6)isNaN(t[o])?i.push(`L${t[o+4]} ${t[o+5]}`):i.push(`C${t[o]} ${t[o+1]} ${t[o+2]} ${t[o+3]} ${t[o+4]} ${t[o+5]}`);_e(this,E2,PU).call(this,i);for(let o=n.length-6;o>=6;o-=6)isNaN(n[o])?i.push(`L${n[o+4]} ${n[o+5]}`):i.push(`C${n[o]} ${n[o+1]} ${n[o+2]} ${n[o+3]} ${n[o+4]} ${n[o+5]}`);return _e(this,A2,TU).call(this,i),i.join(" ")}newFreeDrawOutline(t,n,i,o,s,r){return new NU(t,n,i,o,s,r)}getOutlines(){var g;const t=D(this,ma),n=D(this,Ms),i=D(this,In),[o,s,r,a]=D(this,No),u=new Float64Array((((g=D(this,Oc))==null?void 0:g.length)??0)+2);for(let C=0,S=u.length-2;C<S;C+=2)u[C]=(D(this,Oc)[C]-o)/r,u[C+1]=(D(this,Oc)[C+1]-s)/a;if(u[u.length-2]=(D(this,yd)-o)/r,u[u.length-1]=(D(this,bd)-s)/a,isNaN(i[6])&&!this.isEmpty())return _e(this,M2,OU).call(this,u);const c=new Float64Array(D(this,ma).length+24+D(this,Ms).length);let l=t.length;for(let C=0;C<l;C+=2)isNaN(t[C])?c[C]=c[C+1]=NaN:(c[C]=t[C],c[C+1]=t[C+1]);l=_e(this,P2,DU).call(this,c,l);for(let C=n.length-6;C>=6;C-=6)for(let S=0;S<6;S+=2)isNaN(n[C+S])?(c[l]=c[l+1]=NaN,l+=2):(c[l]=n[C+S],c[l+1]=n[C+S+1],l+=2);return _e(this,T2,LU).call(this,c,l),this.newFreeDrawOutline(c,u,D(this,No),D(this,rp),D(this,np),D(this,ip))}};let _u=Uf;No=new WeakMap,Ms=new WeakMap,np=new WeakMap,ip=new WeakMap,ma=new WeakMap,In=new WeakMap,yd=new WeakMap,bd=new WeakMap,g0=new WeakMap,y0=new WeakMap,rp=new WeakMap,op=new WeakMap,Oc=new WeakMap,b0=new WeakMap,I2=new WeakMap,x2=new WeakMap,kd=new WeakSet,Gm=function(){const t=D(this,In).subarray(4,6),n=D(this,In).subarray(16,18),[i,o,s,r]=D(this,No);return[(D(this,yd)+(t[0]-n[0])/2-i)/s,(D(this,bd)+(t[1]-n[1])/2-o)/r,(D(this,yd)+(n[0]-t[0])/2-i)/s,(D(this,bd)+(n[1]-t[1])/2-o)/r]},$2=new WeakSet,MU=function(){const[t,n,i,o]=D(this,No),[s,r,a,u]=_e(this,kd,Gm).call(this);return`M${(D(this,In)[2]-t)/i} ${(D(this,In)[3]-n)/o} L${(D(this,In)[4]-t)/i} ${(D(this,In)[5]-n)/o} L${s} ${r} L${a} ${u} L${(D(this,In)[16]-t)/i} ${(D(this,In)[17]-n)/o} L${(D(this,In)[14]-t)/i} ${(D(this,In)[15]-n)/o} Z`},A2=new WeakSet,TU=function(t){const n=D(this,Ms);t.push(`L${n[4]} ${n[5]} Z`)},E2=new WeakSet,PU=function(t){const[n,i,o,s]=D(this,No),r=D(this,In).subarray(4,6),a=D(this,In).subarray(16,18),[u,c,l,g]=_e(this,kd,Gm).call(this);t.push(`L${(r[0]-n)/o} ${(r[1]-i)/s} L${u} ${c} L${l} ${g} L${(a[0]-n)/o} ${(a[1]-i)/s}`)},M2=new WeakSet,OU=function(t){const n=D(this,In),[i,o,s,r]=D(this,No),[a,u,c,l]=_e(this,kd,Gm).call(this),g=new Float64Array(36);return g.set([NaN,NaN,NaN,NaN,(n[2]-i)/s,(n[3]-o)/r,NaN,NaN,NaN,NaN,(n[4]-i)/s,(n[5]-o)/r,NaN,NaN,NaN,NaN,a,u,NaN,NaN,NaN,NaN,c,l,NaN,NaN,NaN,NaN,(n[16]-i)/s,(n[17]-o)/r,NaN,NaN,NaN,NaN,(n[14]-i)/s,(n[15]-o)/r],0),this.newFreeDrawOutline(g,t,D(this,No),D(this,rp),D(this,np),D(this,ip))},T2=new WeakSet,LU=function(t,n){const i=D(this,Ms);return t.set([NaN,NaN,NaN,NaN,i[4],i[5]],n),n+6},P2=new WeakSet,DU=function(t,n){const i=D(this,In).subarray(4,6),o=D(this,In).subarray(16,18),[s,r,a,u]=D(this,No),[c,l,g,C]=_e(this,kd,Gm).call(this);return t.set([NaN,NaN,NaN,NaN,(i[0]-s)/a,(i[1]-r)/u,NaN,NaN,NaN,NaN,c,l,NaN,NaN,NaN,NaN,g,C,NaN,NaN,NaN,NaN,(o[0]-s)/a,(o[1]-r)/u],n),n+24},ue(_u,b0,8),ue(_u,I2,2),ue(_u,x2,D(Uf,b0)+D(Uf,I2));var sp,Cd,ll,k0,jo,C0,Ni,Sd,Ym,wd,Xm,O2,jU;class NU extends EU{constructor(n,i,o,s,r,a){super();ue(this,Sd);ue(this,wd);ue(this,O2);ue(this,sp,void 0);ue(this,Cd,null);ue(this,ll,void 0);ue(this,k0,void 0);ue(this,jo,void 0);ue(this,C0,void 0);ue(this,Ni,void 0);Ce(this,Ni,n),Ce(this,jo,i),Ce(this,sp,o),Ce(this,C0,s),Ce(this,ll,r),Ce(this,k0,a),_e(this,O2,jU).call(this,a);const{x:u,y:c,width:l,height:g}=D(this,Cd);for(let C=0,S=n.length;C<S;C+=2)n[C]=(n[C]-u)/l,n[C+1]=(n[C+1]-c)/g;for(let C=0,S=i.length;C<S;C+=2)i[C]=(i[C]-u)/l,i[C+1]=(i[C+1]-c)/g}toSVGPath(){const n=[`M${D(this,Ni)[4]} ${D(this,Ni)[5]}`];for(let i=6,o=D(this,Ni).length;i<o;i+=6)isNaN(D(this,Ni)[i])?n.push(`L${D(this,Ni)[i+4]} ${D(this,Ni)[i+5]}`):n.push(`C${D(this,Ni)[i]} ${D(this,Ni)[i+1]} ${D(this,Ni)[i+2]} ${D(this,Ni)[i+3]} ${D(this,Ni)[i+4]} ${D(this,Ni)[i+5]}`);return n.push("Z"),n.join(" ")}serialize([n,i,o,s],r){const a=o-n,u=s-i;let c,l;switch(r){case 0:c=_e(this,Sd,Ym).call(this,D(this,Ni),n,s,a,-u),l=_e(this,Sd,Ym).call(this,D(this,jo),n,s,a,-u);break;case 90:c=_e(this,wd,Xm).call(this,D(this,Ni),n,i,a,u),l=_e(this,wd,Xm).call(this,D(this,jo),n,i,a,u);break;case 180:c=_e(this,Sd,Ym).call(this,D(this,Ni),o,i,-a,u),l=_e(this,Sd,Ym).call(this,D(this,jo),o,i,-a,u);break;case 270:c=_e(this,wd,Xm).call(this,D(this,Ni),o,s,-a,-u),l=_e(this,wd,Xm).call(this,D(this,jo),o,s,-a,-u)}return{outline:Array.from(c),points:[Array.from(l)]}}get box(){return D(this,Cd)}newOutliner(n,i,o,s,r,a=0){return new _u(n,i,o,s,r,a)}getNewOutline(n,i){const{x:o,y:s,width:r,height:a}=D(this,Cd),[u,c,l,g]=D(this,sp),C=r*l,S=a*g,_=o*l+u,A=s*g+c,y=this.newOutliner({x:D(this,jo)[0]*C+_,y:D(this,jo)[1]*S+A},D(this,sp),D(this,C0),n,D(this,k0),i??D(this,ll));for(let d=2;d<D(this,jo).length;d+=2)y.add({x:D(this,jo)[d]*C+_,y:D(this,jo)[d+1]*S+A});return y.getOutlines()}get mustRemoveSelfIntersections(){return!0}}sp=new WeakMap,Cd=new WeakMap,ll=new WeakMap,k0=new WeakMap,jo=new WeakMap,C0=new WeakMap,Ni=new WeakMap,Sd=new WeakSet,Ym=function(n,i,o,s,r){const a=new Float64Array(n.length);for(let u=0,c=n.length;u<c;u+=2)a[u]=i+n[u]*s,a[u+1]=o+n[u+1]*r;return a},wd=new WeakSet,Xm=function(n,i,o,s,r){const a=new Float64Array(n.length);for(let u=0,c=n.length;u<c;u+=2)a[u]=i+n[u+1]*s,a[u+1]=o+n[u]*r;return a},O2=new WeakSet,jU=function(n){const i=D(this,Ni);let o=i[4],s=i[5],r=o,a=s,u=o,c=s,l=o,g=s;const C=n?Math.max:Math.min;for(let d=6,v=i.length;d<v;d+=6){if(isNaN(i[d]))r=Math.min(r,i[d+4]),a=Math.min(a,i[d+5]),u=Math.max(u,i[d+4]),c=Math.max(c,i[d+5]),g<i[d+5]?(l=i[d+4],g=i[d+5]):g===i[d+5]&&(l=C(l,i[d+4]));else{const m=nn.bezierBoundingBox(o,s,...i.slice(d,d+6));r=Math.min(r,m[0]),a=Math.min(a,m[1]),u=Math.max(u,m[2]),c=Math.max(c,m[3]),g<m[3]?(l=m[2],g=m[3]):g===m[3]&&(l=C(l,m[2]))}o=i[d+4],s=i[d+5]}const S=r-D(this,ll),_=a-D(this,ll),A=u-r+2*D(this,ll),y=c-a+2*D(this,ll);Ce(this,Cd,{x:S,y:_,width:A,height:y,lastPoint:[l,g]})};var S0,Lc,Ts,L2,zU,ap,fk,D2,RU,N2,BU,w0,bM;class P7{constructor(t,n=0,i=0,o=!0){ue(this,L2);ue(this,ap);ue(this,D2);ue(this,N2);ue(this,w0);ue(this,S0,void 0);ue(this,Lc,[]);ue(this,Ts,[]);let s=1/0,r=-1/0,a=1/0,u=-1/0;const c=10**-4;for(const{x:y,y:d,width:v,height:m}of t){const f=Math.floor((y-n)/c)*c,p=Math.ceil((y+v+n)/c)*c,h=Math.floor((d-n)/c)*c,b=Math.ceil((d+m+n)/c)*c,w=[f,h,b,!0],k=[p,h,b,!1];D(this,Lc).push(w,k),s=Math.min(s,f),r=Math.max(r,p),a=Math.min(a,h),u=Math.max(u,b)}const l=r-s+2*i,g=u-a+2*i,C=s-i,S=a-i,_=D(this,Lc).at(o?-1:-2),A=[_[0],_[2]];for(const y of D(this,Lc)){const[d,v,m]=y;y[0]=(d-C)/l,y[1]=(v-S)/g,y[2]=(m-S)/g}Ce(this,S0,{x:C,y:S,width:l,height:g,lastPoint:A})}getOutlines(){D(this,Lc).sort((n,i)=>n[0]-i[0]||n[1]-i[1]||n[2]-i[2]);const t=[];for(const n of D(this,Lc))n[3]?(t.push(..._e(this,w0,bM).call(this,n)),_e(this,D2,RU).call(this,n)):(_e(this,N2,BU).call(this,n),t.push(..._e(this,w0,bM).call(this,n)));return _e(this,L2,zU).call(this,t)}}S0=new WeakMap,Lc=new WeakMap,Ts=new WeakMap,L2=new WeakSet,zU=function(t){const n=[],i=new Set;for(const r of t){const[a,u,c]=r;n.push([a,u,r],[a,c,r])}n.sort((r,a)=>r[1]-a[1]||r[0]-a[0]);for(let r=0,a=n.length;r<a;r+=2){const u=n[r][2],c=n[r+1][2];u.push(c),c.push(u),i.add(u),i.add(c)}const o=[];let s;for(;i.size>0;){const r=i.values().next().value;let[a,u,c,l,g]=r;i.delete(r);let C=a,S=u;for(s=[a,c],o.push(s);;){let _;if(i.has(l))_=l;else{if(!i.has(g))break;_=g}i.delete(_),[a,u,c,l,g]=_,C!==a&&(s.push(C,S,a,S===u?u:c),C=a),S=S===u?c:u}s.push(C,S)}return new iGe(o,D(this,S0))},ap=new WeakSet,fk=function(t){const n=D(this,Ts);let i=0,o=n.length-1;for(;i<=o;){const s=i+o>>1,r=n[s][0];if(r===t)return s;r<t?i=s+1:o=s-1}return o+1},D2=new WeakSet,RU=function([,t,n]){const i=_e(this,ap,fk).call(this,t);D(this,Ts).splice(i,0,[t,n])},N2=new WeakSet,BU=function([,t,n]){const i=_e(this,ap,fk).call(this,t);for(let o=i;o<D(this,Ts).length;o++){const[s,r]=D(this,Ts)[o];if(s!==t)break;if(s===t&&r===n){D(this,Ts).splice(o,1);return}}for(let o=i-1;o>=0;o--){const[s,r]=D(this,Ts)[o];if(s!==t)break;if(s===t&&r===n){D(this,Ts).splice(o,1);return}}},w0=new WeakSet,bM=function(t){const[n,i,o]=t,s=[[n,i,o]],r=_e(this,ap,fk).call(this,o);for(let a=0;a<r;a++){const[u,c]=D(this,Ts)[a];for(let l=0,g=s.length;l<g;l++){const[,C,S]=s[l];if(!(c<=C||S<=u))if(C>=u)if(S>c)s[l][1]=c;else{if(g===1)return[];s.splice(l,1),l--,g--}else s[l][2]=u,S>c&&s.push([n,c,S])}}return s};var _0,lp;class iGe extends EU{constructor(n,i){super();ue(this,_0,void 0);ue(this,lp,void 0);Ce(this,lp,n),Ce(this,_0,i)}toSVGPath(){const n=[];for(const i of D(this,lp)){let[o,s]=i;n.push(`M${o} ${s}`);for(let r=2;r<i.length;r+=2){const a=i[r],u=i[r+1];a===o?(n.push(`V${u}`),s=u):u===s&&(n.push(`H${a}`),o=a)}n.push("Z")}return n.join(" ")}serialize([n,i,o,s],r){const a=[],u=o-n,c=s-i;for(const l of D(this,lp)){const g=new Array(l.length);for(let C=0;C<l.length;C+=2)g[C]=n+l[C]*u,g[C+1]=s-l[C+1]*c;a.push(g)}return a}get box(){return D(this,_0)}get classNamesForDrawing(){return["highlight"]}get classNamesForOutlining(){return["highlightOutline"]}}_0=new WeakMap,lp=new WeakMap;class kM extends _u{newFreeDrawOutline(t,n,i,o,s,r){return new rGe(t,n,i,o,s,r)}get classNamesForDrawing(){return["highlight","free"]}}class rGe extends NU{get classNamesForDrawing(){return["highlight","free"]}get classNamesForOutlining(){return["highlightOutline","free"]}newOutliner(t,n,i,o,s,r=0){return new kM(t,n,i,o,s,r)}}var Ps,_d,cp,er,I0,up,x0,$0,Dc,Os,dp,A0,E0,CM,M0,SM,T0,wM,cl,Cu,j2,FU,va,ec;const To=class{constructor({editor:t=null,uiManager:n=null}){ue(this,E0);ue(this,M0);ue(this,T0);ue(this,cl);ue(this,j2);ue(this,va);ue(this,Ps,null);ue(this,_d,null);ue(this,cp,void 0);ue(this,er,null);ue(this,I0,!1);ue(this,up,!1);ue(this,x0,null);ue(this,$0,void 0);ue(this,Dc,null);ue(this,Os,null);ue(this,dp,void 0);var i;t?(Ce(this,up,!1),Ce(this,dp,un.HIGHLIGHT_COLOR),Ce(this,x0,t)):(Ce(this,up,!0),Ce(this,dp,un.HIGHLIGHT_DEFAULT_COLOR)),Ce(this,Os,(t==null?void 0:t._uiManager)||n),Ce(this,$0,D(this,Os)._eventBus),Ce(this,cp,(t==null?void 0:t.color)||((i=D(this,Os))==null?void 0:i.highlightColors.values().next().value)||"#FFFF98"),D(To,A0)||Ce(To,A0,Object.freeze({blue:"pdfjs-editor-colorpicker-blue",green:"pdfjs-editor-colorpicker-green",pink:"pdfjs-editor-colorpicker-pink",red:"pdfjs-editor-colorpicker-red",yellow:"pdfjs-editor-colorpicker-yellow"}))}static get _keyboardManager(){return Pn(this,"_keyboardManager",new I1([[["Escape","mac+Escape"],To.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],To.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],To.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],To.prototype._moveToPrevious],[["Home","mac+Home"],To.prototype._moveToBeginning],[["End","mac+End"],To.prototype._moveToEnd]]))}renderButton(){const t=Ce(this,Ps,document.createElement("button"));t.className="colorPicker",t.tabIndex="0",t.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),t.setAttribute("aria-haspopup",!0);const n=D(this,Os)._signal;t.addEventListener("click",_e(this,cl,Cu).bind(this),{signal:n}),t.addEventListener("keydown",_e(this,T0,wM).bind(this),{signal:n});const i=Ce(this,_d,document.createElement("span"));return i.className="swatch",i.setAttribute("aria-hidden",!0),i.style.backgroundColor=D(this,cp),t.append(i),t}renderMainDropdown(){const t=Ce(this,er,_e(this,E0,CM).call(this));return t.setAttribute("aria-orientation","horizontal"),t.setAttribute("aria-labelledby","highlightColorPickerLabel"),t}_colorSelectFromKeyboard(t){if(t.target===D(this,Ps)){_e(this,cl,Cu).call(this,t);return}const n=t.target.getAttribute("data-color");n&&_e(this,M0,SM).call(this,n,t)}_moveToNext(t){var n,i;D(this,va,ec)?t.target!==D(this,Ps)?(n=t.target.nextSibling)==null||n.focus():(i=D(this,er).firstChild)==null||i.focus():_e(this,cl,Cu).call(this,t)}_moveToPrevious(t){var n,i;t.target!==((n=D(this,er))==null?void 0:n.firstChild)&&t.target!==D(this,Ps)?(D(this,va,ec)||_e(this,cl,Cu).call(this,t),(i=t.target.previousSibling)==null||i.focus()):D(this,va,ec)&&this._hideDropdownFromKeyboard()}_moveToBeginning(t){var n;D(this,va,ec)?(n=D(this,er).firstChild)==null||n.focus():_e(this,cl,Cu).call(this,t)}_moveToEnd(t){var n;D(this,va,ec)?(n=D(this,er).lastChild)==null||n.focus():_e(this,cl,Cu).call(this,t)}hideDropdown(){var t,n;(t=D(this,er))==null||t.classList.add("hidden"),(n=D(this,Dc))==null||n.abort(),Ce(this,Dc,null)}_hideDropdownFromKeyboard(){var t;D(this,up)||(D(this,va,ec)?(this.hideDropdown(),D(this,Ps).focus({preventScroll:!0,focusVisible:D(this,I0)})):(t=D(this,x0))==null||t.unselect())}updateColor(t){if(D(this,_d)&&(D(this,_d).style.backgroundColor=t),!D(this,er))return;const n=D(this,Os).highlightColors.values();for(const i of D(this,er).children)i.setAttribute("aria-selected",n.next().value===t)}destroy(){var t,n;(t=D(this,Ps))==null||t.remove(),Ce(this,Ps,null),Ce(this,_d,null),(n=D(this,er))==null||n.remove(),Ce(this,er,null)}};let xv=To;Ps=new WeakMap,_d=new WeakMap,cp=new WeakMap,er=new WeakMap,I0=new WeakMap,up=new WeakMap,x0=new WeakMap,$0=new WeakMap,Dc=new WeakMap,Os=new WeakMap,dp=new WeakMap,A0=new WeakMap,E0=new WeakSet,CM=function(){const t=document.createElement("div"),n=D(this,Os)._signal;t.addEventListener("contextmenu",ds,{signal:n}),t.className="dropdown",t.role="listbox",t.setAttribute("aria-multiselectable",!1),t.setAttribute("aria-orientation","vertical"),t.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown");for(const[i,o]of D(this,Os).highlightColors){const s=document.createElement("button");s.tabIndex="0",s.role="option",s.setAttribute("data-color",o),s.title=i,s.setAttribute("data-l10n-id",D(To,A0)[i]);const r=document.createElement("span");s.append(r),r.className="swatch",r.style.backgroundColor=o,s.setAttribute("aria-selected",o===D(this,cp)),s.addEventListener("click",_e(this,M0,SM).bind(this,o),{signal:n}),t.append(s)}return t.addEventListener("keydown",_e(this,T0,wM).bind(this),{signal:n}),t},M0=new WeakSet,SM=function(t,n){n.stopPropagation(),D(this,$0).dispatch("switchannotationeditorparams",{source:this,type:D(this,dp),value:t})},T0=new WeakSet,wM=function(t){To._keyboardManager.exec(this,t)},cl=new WeakSet,Cu=function(t){if(D(this,va,ec)){this.hideDropdown();return}if(Ce(this,I0,t.detail===0),D(this,Dc)||(Ce(this,Dc,new AbortController),window.addEventListener("pointerdown",_e(this,j2,FU).bind(this),{signal:D(this,Os).combinedSignal(D(this,Dc))})),D(this,er)){D(this,er).classList.remove("hidden");return}const n=Ce(this,er,_e(this,E0,CM).call(this));D(this,Ps).append(n)},j2=new WeakSet,FU=function(t){var n;(n=D(this,er))!=null&&n.contains(t.target)||this.hideDropdown()},va=new WeakSet,ec=function(){return D(this,er)&&!D(this,er).classList.contains("hidden")},ue(xv,A0,null);var fp,P0,ul,Id,hp,es,O0,L0,xd,Ls,Br,bo,pp,dl,tr,mp,ts,D0,N0,_M,vp,hk,z2,VU,R2,HU,B2,WU,j0,IM,fl,Su,Nc,jf,F2,UU,gp,pk,$d,Km,V2,ZU,H2,GU,W2,YU,U2,XU,Z2,KU;const Mi=class extends En{constructor(n){super({...n,name:"highlightEditor"});ue(this,N0);ue(this,vp);ue(this,z2);ue(this,R2);ue(this,B2);ue(this,j0);ue(this,fl);ue(this,F2);ue(this,gp);ue(this,$d);ue(this,V2);ue(this,H2);ue(this,Z2);ue(this,fp,null);ue(this,P0,0);ue(this,ul,void 0);ue(this,Id,null);ue(this,hp,null);ue(this,es,null);ue(this,O0,null);ue(this,L0,0);ue(this,xd,null);ue(this,Ls,null);ue(this,Br,null);ue(this,bo,!1);ue(this,pp,null);ue(this,dl,void 0);ue(this,tr,null);ue(this,mp,"");ue(this,ts,void 0);ue(this,D0,"");this.color=n.color||Mi._defaultColor,Ce(this,ts,n.thickness||Mi._defaultThickness),Ce(this,dl,n.opacity||Mi._defaultOpacity),Ce(this,ul,n.boxes||null),Ce(this,D0,n.methodOfCreation||""),Ce(this,mp,n.text||""),this._isDraggable=!1,n.highlightId>-1?(Ce(this,bo,!0),_e(this,vp,hk).call(this,n),_e(this,fl,Su).call(this)):D(this,ul)&&(Ce(this,fp,n.anchorNode),Ce(this,P0,n.anchorOffset),Ce(this,O0,n.focusNode),Ce(this,L0,n.focusOffset),_e(this,N0,_M).call(this),_e(this,fl,Su).call(this),this.rotate(this.rotation))}static get _keyboardManager(){const n=Mi.prototype;return Pn(this,"_keyboardManager",new I1([[["ArrowLeft","mac+ArrowLeft"],n._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],n._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],n._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],n._moveCaret,{args:[3]}]]))}get telemetryInitialData(){return{action:"added",type:D(this,bo)?"free_highlight":"highlight",color:this._uiManager.highlightColorNames.get(this.color),thickness:D(this,ts),methodOfCreation:D(this,D0)}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.highlightColorNames.get(this.color)}}static computeTelemetryFinalData(n){return{numberOfColors:n.get("color").size}}static initialize(n,i){var o;En.initialize(n,i),Mi._defaultColor||(Mi._defaultColor=((o=i.highlightColors)==null?void 0:o.values().next().value)||"#fff066")}static updateDefaultParams(n,i){switch(n){case un.HIGHLIGHT_DEFAULT_COLOR:Mi._defaultColor=i;break;case un.HIGHLIGHT_THICKNESS:Mi._defaultThickness=i}}translateInPage(n,i){}get toolbarPosition(){return D(this,pp)}updateParams(n,i){switch(n){case un.HIGHLIGHT_COLOR:_e(this,z2,VU).call(this,i);break;case un.HIGHLIGHT_THICKNESS:_e(this,R2,HU).call(this,i)}}static get defaultPropertiesToUpdate(){return[[un.HIGHLIGHT_DEFAULT_COLOR,Mi._defaultColor],[un.HIGHLIGHT_THICKNESS,Mi._defaultThickness]]}get propertiesToUpdate(){return[[un.HIGHLIGHT_COLOR,this.color||Mi._defaultColor],[un.HIGHLIGHT_THICKNESS,D(this,ts)||Mi._defaultThickness],[un.HIGHLIGHT_FREE,D(this,bo)]]}async addEditToolbar(){const n=await super.addEditToolbar();return n?(this._uiManager.highlightColors&&(Ce(this,hp,new xv({editor:this})),n.addColorPicker(D(this,hp))),n):null}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(_e(this,$d,Km).call(this))}getBaseTranslation(){return[0,0]}getRect(n,i){return super.getRect(n,i,_e(this,$d,Km).call(this))}onceAdded(){this.annotationElementId||this.parent.addUndoableEditor(this),this.div.focus()}remove(){_e(this,j0,IM).call(this),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(_e(this,fl,Su).call(this),this.isAttachedToDOM||this.parent.add(this)))}setParent(n){var o;let i=!1;this.parent&&!n?_e(this,j0,IM).call(this):n&&(_e(this,fl,Su).call(this,n),i=!this.parent&&((o=this.div)==null?void 0:o.classList.contains("selectedEditor"))),super.setParent(n),this.show(this._isVisible),i&&this.select()}rotate(n){var s,r,a;const{drawLayer:i}=this.parent;let o;D(this,bo)?(n=(n-this.rotation+360)%360,o=_e(s=Mi,Nc,jf).call(s,D(this,Ls).box,n)):o=_e(r=Mi,Nc,jf).call(r,this,n),i.rotate(D(this,Br),n),i.rotate(D(this,tr),n),i.updateBox(D(this,Br),o),i.updateBox(D(this,tr),_e(a=Mi,Nc,jf).call(a,D(this,es).box,n))}render(){if(this.div)return this.div;const n=super.render();D(this,mp)&&(n.setAttribute("aria-label",D(this,mp)),n.setAttribute("role","mark")),D(this,bo)?n.classList.add("free"):this.div.addEventListener("keydown",_e(this,F2,UU).bind(this),{signal:this._uiManager._signal});const i=Ce(this,xd,document.createElement("div"));n.append(i),i.setAttribute("aria-hidden","true"),i.className="internal",i.style.clipPath=D(this,Id);const[o,s]=this.parentDimensions;return this.setDims(this.width*o,this.height*s),mC(this,D(this,xd),["pointerover","pointerleave"]),this.enableEditing(),n}pointerover(){this.isSelected||this.parent.drawLayer.addClass(D(this,tr),"hovered")}pointerleave(){this.isSelected||this.parent.drawLayer.removeClass(D(this,tr),"hovered")}_moveCaret(n){switch(this.parent.unselect(this),n){case 0:case 2:_e(this,gp,pk).call(this,!0);break;case 1:case 3:_e(this,gp,pk).call(this,!1)}}select(){var n,i;super.select(),D(this,tr)&&((n=this.parent)==null||n.drawLayer.removeClass(D(this,tr),"hovered"),(i=this.parent)==null||i.drawLayer.addClass(D(this,tr),"selected"))}unselect(){var n;super.unselect(),D(this,tr)&&((n=this.parent)==null||n.drawLayer.removeClass(D(this,tr),"selected"),D(this,bo)||_e(this,gp,pk).call(this,!1))}get _mustFixPosition(){return!D(this,bo)}show(n=this._isVisible){super.show(n),this.parent&&(this.parent.drawLayer.show(D(this,Br),n),this.parent.drawLayer.show(D(this,tr),n))}static startHighlighting(n,i,{target:o,x:s,y:r}){const{x:a,y:u,width:c,height:l}=o.getBoundingClientRect(),g=new AbortController,C=n.combinedSignal(g),S=_=>{g.abort(),_e(this,U2,XU).call(this,n,_)};window.addEventListener("blur",S,{signal:C}),window.addEventListener("pointerup",S,{signal:C}),window.addEventListener("pointerdown",_=>{_.preventDefault(),_.stopPropagation()},{capture:!0,passive:!1,signal:C}),window.addEventListener("contextmenu",ds,{signal:C}),o.addEventListener("pointermove",_e(this,W2,YU).bind(this,n),{signal:C}),this._freeHighlight=new kM({x:s,y:r},[a,u,c,l],n.scale,this._defaultThickness/2,i,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=n.drawLayer.draw(this._freeHighlight,this._defaultColor,this._defaultOpacity,!0)}static async deserialize(n,i,o){var A,y,d,v;let s=null;if(n instanceof CU){const{data:{quadPoints:m,rect:f,rotation:p,id:h,color:b,opacity:w,popupRef:k},parent:{page:{pageNumber:$}}}=n;s=n={annotationType:yn.HIGHLIGHT,color:Array.from(b),opacity:w,quadPoints:m,boxes:null,pageIndex:$-1,rect:f.slice(0),rotation:p,id:h,deleted:!1,popupRef:k}}else if(n instanceof cO){const{data:{inkLists:m,rect:f,rotation:p,id:h,color:b,borderStyle:{rawWidth:w},popupRef:k},parent:{page:{pageNumber:$}}}=n;s=n={annotationType:yn.HIGHLIGHT,color:Array.from(b),thickness:w,inkLists:m,boxes:null,pageIndex:$-1,rect:f.slice(0),rotation:p,id:h,deleted:!1,popupRef:k}}const{color:r,quadPoints:a,inkLists:u,opacity:c}=n,l=await super.deserialize(n,i,o);l.color=nn.makeHexColor(...r),Ce(l,dl,c||1),u&&Ce(l,ts,n.thickness),l.annotationElementId=n.id||null,l._initialData=s;const[g,C]=l.pageDimensions,[S,_]=l.pageTranslation;if(a){const m=Ce(l,ul,[]);for(let f=0;f<a.length;f+=8)m.push({x:(a[f]-S)/g,y:1-(a[f+1]-_)/C,width:(a[f+2]-a[f])/g,height:(a[f+1]-a[f+5])/C});_e(A=l,N0,_M).call(A),_e(y=l,fl,Su).call(y),l.rotate(l.rotation)}else if(u){Ce(l,bo,!0);const m=u[0],f={x:m[0]-S,y:C-(m[1]-_)},p=new kM(f,[0,0,g,C],1,D(l,ts)/2,!0,.001);for(let w=0,k=m.length;w<k;w+=2)f.x=m[w]-S,f.y=C-(m[w+1]-_),p.add(f);const{id:h,clipPathId:b}=i.drawLayer.draw(p,l.color,l._defaultOpacity,!0);_e(d=l,vp,hk).call(d,{highlightOutlines:p.getOutlines(),highlightId:h,clipPathId:b}),_e(v=l,fl,Su).call(v)}return l}serialize(n=!1){if(this.isEmpty()||n)return null;if(this.deleted)return this.serializeDeleted();const i=this.getRect(0,0),o=En._colorManager.convert(this.color),s={annotationType:yn.HIGHLIGHT,color:o,opacity:D(this,dl),thickness:D(this,ts),quadPoints:_e(this,V2,ZU).call(this),outlines:_e(this,H2,GU).call(this,i),pageIndex:this.pageIndex,rect:i,rotation:_e(this,$d,Km).call(this),structTreeParentId:this._structTreeParentId};return this.annotationElementId&&!_e(this,Z2,KU).call(this,s)?null:(s.id=this.annotationElementId,s)}renderAnnotationElement(n){return n.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}};let Qr=Mi;fp=new WeakMap,P0=new WeakMap,ul=new WeakMap,Id=new WeakMap,hp=new WeakMap,es=new WeakMap,O0=new WeakMap,L0=new WeakMap,xd=new WeakMap,Ls=new WeakMap,Br=new WeakMap,bo=new WeakMap,pp=new WeakMap,dl=new WeakMap,tr=new WeakMap,mp=new WeakMap,ts=new WeakMap,D0=new WeakMap,N0=new WeakSet,_M=function(){const n=new P7(D(this,ul),.001);Ce(this,Ls,n.getOutlines()),{x:this.x,y:this.y,width:this.width,height:this.height}=D(this,Ls).box;const i=new P7(D(this,ul),.0025,.001,this._uiManager.direction==="ltr");Ce(this,es,i.getOutlines());const{lastPoint:o}=D(this,es).box;Ce(this,pp,[(o[0]-this.x)/this.width,(o[1]-this.y)/this.height])},vp=new WeakSet,hk=function({highlightOutlines:n,highlightId:i,clipPathId:o}){var l,g;if(Ce(this,Ls,n),Ce(this,es,n.getNewOutline(D(this,ts)/2+1.5,.0025)),i>=0)Ce(this,Br,i),Ce(this,Id,o),this.parent.drawLayer.finalizeLine(i,n),Ce(this,tr,this.parent.drawLayer.drawOutline(D(this,es)));else if(this.parent){const C=this.parent.viewport.rotation;this.parent.drawLayer.updateLine(D(this,Br),n),this.parent.drawLayer.updateBox(D(this,Br),_e(l=Mi,Nc,jf).call(l,D(this,Ls).box,(C-this.rotation+360)%360)),this.parent.drawLayer.updateLine(D(this,tr),D(this,es)),this.parent.drawLayer.updateBox(D(this,tr),_e(g=Mi,Nc,jf).call(g,D(this,es).box,C))}const{x:s,y:r,width:a,height:u}=n.box;switch(this.rotation){case 0:this.x=s,this.y=r,this.width=a,this.height=u;break;case 90:{const[C,S]=this.parentDimensions;this.x=r,this.y=1-s,this.width=a*S/C,this.height=u*C/S;break}case 180:this.x=1-s,this.y=1-r,this.width=a,this.height=u;break;case 270:{const[C,S]=this.parentDimensions;this.x=1-r,this.y=s,this.width=a*S/C,this.height=u*C/S;break}}const{lastPoint:c}=D(this,es).box;Ce(this,pp,[(c[0]-s)/a,(c[1]-r)/u])},z2=new WeakSet,VU=function(n){const i=(r,a)=>{var u,c,l;this.color=r,(u=this.parent)==null||u.drawLayer.changeColor(D(this,Br),r),(c=D(this,hp))==null||c.updateColor(r),Ce(this,dl,a),(l=this.parent)==null||l.drawLayer.changeOpacity(D(this,Br),a)},o=this.color,s=D(this,dl);this.addCommands({cmd:i.bind(this,n,Mi._defaultOpacity),undo:i.bind(this,o,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:un.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.highlightColorNames.get(n)},!0)},R2=new WeakSet,HU=function(n){const i=D(this,ts),o=s=>{Ce(this,ts,s),_e(this,B2,WU).call(this,s)};this.addCommands({cmd:o.bind(this,n),undo:o.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:un.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:n},!0)},B2=new WeakSet,WU=function(n){if(!D(this,bo))return;_e(this,vp,hk).call(this,{highlightOutlines:D(this,Ls).getNewOutline(n/2)}),this.fixAndSetPosition();const[i,o]=this.parentDimensions;this.setDims(this.width*i,this.height*o)},j0=new WeakSet,IM=function(){D(this,Br)!==null&&this.parent&&(this.parent.drawLayer.remove(D(this,Br)),Ce(this,Br,null),this.parent.drawLayer.remove(D(this,tr)),Ce(this,tr,null))},fl=new WeakSet,Su=function(n=this.parent){D(this,Br)===null&&({id:Kr(this,Br)._,clipPathId:Kr(this,Id)._}=n.drawLayer.draw(D(this,Ls),this.color,D(this,dl)),Ce(this,tr,n.drawLayer.drawOutline(D(this,es))),D(this,xd)&&(D(this,xd).style.clipPath=D(this,Id)))},Nc=new WeakSet,jf=function({x:n,y:i,width:o,height:s},r){switch(r){case 90:return{x:1-i-s,y:n,width:s,height:o};case 180:return{x:1-n-o,y:1-i-s,width:o,height:s};case 270:return{x:i,y:1-n-o,width:s,height:o}}return{x:n,y:i,width:o,height:s}},F2=new WeakSet,UU=function(n){Mi._keyboardManager.exec(this,n)},gp=new WeakSet,pk=function(n){if(!D(this,fp))return;const i=window.getSelection();n?i.setPosition(D(this,fp),D(this,P0)):i.setPosition(D(this,O0),D(this,L0))},$d=new WeakSet,Km=function(){return D(this,bo)?this.rotation:0},V2=new WeakSet,ZU=function(){if(D(this,bo))return null;const[n,i]=this.pageDimensions,[o,s]=this.pageTranslation,r=D(this,ul),a=new Float32Array(8*r.length);let u=0;for(const{x:c,y:l,width:g,height:C}of r){const S=c*n+o,_=(1-l-C)*i+s;a[u]=a[u+4]=S,a[u+1]=a[u+3]=_,a[u+2]=a[u+6]=S+g*n,a[u+5]=a[u+7]=_+C*i,u+=8}return a},H2=new WeakSet,GU=function(n){return D(this,Ls).serialize(n,_e(this,$d,Km).call(this))},W2=new WeakSet,YU=function(n,i){this._freeHighlight.add(i)&&n.drawLayer.updatePath(this._freeHighlightId,this._freeHighlight)},U2=new WeakSet,XU=function(n,i){this._freeHighlight.isEmpty()?n.drawLayer.remove(this._freeHighlightId):n.createAndAddNewEditor(i,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""},Z2=new WeakSet,KU=function(n){const{color:i}=this._initialData;return n.color.some((o,s)=>o!==i[s])},ue(Qr,Nc),ue(Qr,W2),ue(Qr,U2),Wt(Qr,"_defaultColor",null),Wt(Qr,"_defaultOpacity",1),Wt(Qr,"_defaultThickness",12),Wt(Qr,"_type","highlight"),Wt(Qr,"_editorType",yn.HIGHLIGHT),Wt(Qr,"_freeHighlightId",-1),Wt(Qr,"_freeHighlight",null),Wt(Qr,"_freeHighlightClipId","");var Ad,Ed,ga,hl,ns,Md,Td,Pd,pl,yp,Od,Ld,jc,G2,JU,Y2,qU,X2,QU,K2,eZ,z0,xM,J2,tZ,R0,$M,q2,nZ,Q2,iZ,eS,rZ,tS,oZ,nS,sZ,ml,wu,B0,AM,F0,EM,V0,MM,bp,mk,kp,vk,zc,zf,H0,TM,Cp,gk,iS,aZ,W0,PM,rS,lZ,oS,cZ,U0,OM,Sp,yk,Dd,Jm;const _r=class extends En{constructor(n){super({...n,name:"inkEditor"});ue(this,G2);ue(this,Y2);ue(this,X2);ue(this,K2);ue(this,z0);ue(this,J2);ue(this,R0);ue(this,q2);ue(this,Q2);ue(this,eS);ue(this,tS);ue(this,nS);ue(this,ml);ue(this,B0);ue(this,F0);ue(this,V0);ue(this,bp);ue(this,kp);ue(this,zc);ue(this,H0);ue(this,Cp);ue(this,oS);ue(this,U0);ue(this,Sp);ue(this,Dd);ue(this,Ad,0);ue(this,Ed,0);ue(this,ga,null);ue(this,hl,new Path2D);ue(this,ns,!1);ue(this,Md,null);ue(this,Td,!1);ue(this,Pd,!1);ue(this,pl,null);ue(this,yp,null);ue(this,Od,0);ue(this,Ld,0);ue(this,jc,null);this.color=n.color||null,this.thickness=n.thickness||null,this.opacity=n.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(n,i){En.initialize(n,i)}static updateDefaultParams(n,i){switch(n){case un.INK_THICKNESS:_r._defaultThickness=i;break;case un.INK_COLOR:_r._defaultColor=i;break;case un.INK_OPACITY:_r._defaultOpacity=i/100}}updateParams(n,i){switch(n){case un.INK_THICKNESS:_e(this,G2,JU).call(this,i);break;case un.INK_COLOR:_e(this,Y2,qU).call(this,i);break;case un.INK_OPACITY:_e(this,X2,QU).call(this,i)}}static get defaultPropertiesToUpdate(){return[[un.INK_THICKNESS,_r._defaultThickness],[un.INK_COLOR,_r._defaultColor||En._defaultLineColor],[un.INK_OPACITY,Math.round(100*_r._defaultOpacity)]]}get propertiesToUpdate(){return[[un.INK_THICKNESS,this.thickness||_r._defaultThickness],[un.INK_COLOR,this.color||_r._defaultColor||En._defaultLineColor],[un.INK_OPACITY,Math.round(100*(this.opacity??_r._defaultOpacity))]]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.canvas||(_e(this,bp,mk).call(this),_e(this,kp,vk).call(this)),this.isAttachedToDOM||(this.parent.add(this),_e(this,zc,zf).call(this)),_e(this,Dd,Jm).call(this)))}remove(){var n;this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,D(this,ga)&&(clearTimeout(D(this,ga)),Ce(this,ga,null)),(n=D(this,pl))==null||n.disconnect(),Ce(this,pl,null),super.remove())}setParent(n){!this.parent&&n?this._uiManager.removeShouldRescale(this):this.parent&&n===null&&this._uiManager.addShouldRescale(this),super.setParent(n)}onScaleChanging(){const[n,i]=this.parentDimensions,o=this.width*n,s=this.height*i;this.setDimensions(o,s)}enableEditMode(){!D(this,ns)&&this.canvas!==null&&(super.enableEditMode(),this._isDraggable=!1,_e(this,B0,AM).call(this))}disableEditMode(){this.isInEditMode()&&this.canvas!==null&&(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),_e(this,F0,EM).call(this))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}commit(){D(this,ns)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),Ce(this,ns,!0),this.div.classList.add("disabled"),_e(this,Dd,Jm).call(this,!0),this.select(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(n){this._focusEventsAllowed&&(super.focusin(n),this.enableEditMode())}canvasPointerdown(n){n.button===0&&this.isInEditMode()&&!D(this,ns)&&(this.setInForeground(),n.preventDefault(),this.div.contains(document.activeElement)||this.div.focus({preventScroll:!0}),_e(this,J2,tZ).call(this,n.offsetX,n.offsetY))}canvasPointermove(n){n.preventDefault(),_e(this,R0,$M).call(this,n.offsetX,n.offsetY)}canvasPointerup(n){n.preventDefault(),_e(this,V0,MM).call(this,n)}canvasPointerleave(n){_e(this,V0,MM).call(this,n)}get isResizable(){return!this.isEmpty()&&D(this,ns)}render(){if(this.div)return this.div;let n,i;this.width&&(n=this.x,i=this.y),super.render(),this.div.setAttribute("data-l10n-id","pdfjs-ink");const[o,s,r,a]=_e(this,K2,eZ).call(this);if(this.setAt(o,s,0,0),this.setDims(r,a),_e(this,bp,mk).call(this),this.width){const[u,c]=this.parentDimensions;this.setAspectRatio(this.width*u,this.height*c),this.setAt(n*u,i*c,this.width*u,this.height*c),Ce(this,Pd,!0),_e(this,zc,zf).call(this),this.setDims(this.width*u,this.height*c),_e(this,ml,wu).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return _e(this,kp,vk).call(this),this.div}setDimensions(n,i){const o=Math.round(n),s=Math.round(i);if(D(this,Od)===o&&D(this,Ld)===s)return;Ce(this,Od,o),Ce(this,Ld,s),this.canvas.style.visibility="hidden";const[r,a]=this.parentDimensions;this.width=n/r,this.height=i/a,this.fixAndSetPosition(),D(this,ns)&&_e(this,H0,TM).call(this,n,i),_e(this,zc,zf).call(this),_e(this,ml,wu).call(this),this.canvas.style.visibility="visible",this.fixDims()}static async deserialize(n,i,o){var y,d,v;if(n instanceof cO)return null;const s=await super.deserialize(n,i,o);s.thickness=n.thickness,s.color=nn.makeHexColor(...n.color),s.opacity=n.opacity;const[r,a]=s.pageDimensions,u=s.width*r,c=s.height*a,l=s.parentScale,g=n.thickness/2;Ce(s,ns,!0),Ce(s,Od,Math.round(u)),Ce(s,Ld,Math.round(c));const{paths:C,rect:S,rotation:_}=n;for(let{bezier:m}of C){m=_e(y=_r,rS,lZ).call(y,m,S,_);const f=[];s.paths.push(f);let p=l*(m[0]-g),h=l*(m[1]-g);for(let w=2,k=m.length;w<k;w+=6){const $=l*(m[w]-g),E=l*(m[w+1]-g),N=l*(m[w+2]-g),j=l*(m[w+3]-g),z=l*(m[w+4]-g),V=l*(m[w+5]-g);f.push([[p,h],[$,E],[N,j],[z,V]]),p=z,h=V}const b=_e(this,iS,aZ).call(this,f);s.bezierPath2D.push(b)}const A=_e(d=s,U0,OM).call(d);return Ce(s,Ed,Math.max(En.MIN_SIZE,A[2]-A[0])),Ce(s,Ad,Math.max(En.MIN_SIZE,A[3]-A[1])),_e(v=s,H0,TM).call(v,u,c),s}serialize(){if(this.isEmpty())return null;const n=this.getRect(0,0),i=En._colorManager.convert(this.ctx.strokeStyle);return{annotationType:yn.INK,color:i,thickness:this.thickness,opacity:this.opacity,paths:_e(this,oS,cZ).call(this,this.scaleFactor/this.parentScale,this.translationX,this.translationY,n),pageIndex:this.pageIndex,rect:n,rotation:this.rotation,structTreeParentId:this._structTreeParentId}}};let ks=_r;Ad=new WeakMap,Ed=new WeakMap,ga=new WeakMap,hl=new WeakMap,ns=new WeakMap,Md=new WeakMap,Td=new WeakMap,Pd=new WeakMap,pl=new WeakMap,yp=new WeakMap,Od=new WeakMap,Ld=new WeakMap,jc=new WeakMap,G2=new WeakSet,JU=function(n){const i=s=>{this.thickness=s,_e(this,Dd,Jm).call(this)},o=this.thickness;this.addCommands({cmd:i.bind(this,n),undo:i.bind(this,o),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:un.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})},Y2=new WeakSet,qU=function(n){const i=s=>{this.color=s,_e(this,ml,wu).call(this)},o=this.color;this.addCommands({cmd:i.bind(this,n),undo:i.bind(this,o),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:un.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})},X2=new WeakSet,QU=function(n){const i=s=>{this.opacity=s,_e(this,ml,wu).call(this)};n/=100;const o=this.opacity;this.addCommands({cmd:i.bind(this,n),undo:i.bind(this,o),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:un.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})},K2=new WeakSet,eZ=function(){const{parentRotation:n,parentDimensions:[i,o]}=this;switch(n){case 90:return[0,o,o,i];case 180:return[i,o,i,o];case 270:return[i,0,o,i];default:return[0,0,i,o]}},z0=new WeakSet,xM=function(){const{ctx:n,color:i,opacity:o,thickness:s,parentScale:r,scaleFactor:a}=this;n.lineWidth=s*r/a,n.lineCap="round",n.lineJoin="round",n.miterLimit=10,n.strokeStyle=`${i}${function(c){return Math.round(Math.min(255,Math.max(1,255*c))).toString(16).padStart(2,"0")}(o)}`},J2=new WeakSet,tZ=function(n,i){this.canvas.addEventListener("contextmenu",ds,{signal:this._uiManager._signal}),_e(this,F0,EM).call(this),Ce(this,Md,new AbortController);const o=this._uiManager.combinedSignal(D(this,Md));this.canvas.addEventListener("pointerleave",this.canvasPointerleave.bind(this),{signal:o}),this.canvas.addEventListener("pointermove",this.canvasPointermove.bind(this),{signal:o}),this.canvas.addEventListener("pointerup",this.canvasPointerup.bind(this),{signal:o}),this.isEditing=!0,D(this,Pd)||(Ce(this,Pd,!0),_e(this,zc,zf).call(this),this.thickness||(this.thickness=_r._defaultThickness),this.color||(this.color=_r._defaultColor||En._defaultLineColor),this.opacity??(this.opacity=_r._defaultOpacity)),this.currentPath.push([n,i]),Ce(this,Td,!1),_e(this,z0,xM).call(this),Ce(this,jc,()=>{_e(this,eS,rZ).call(this),D(this,jc)&&window.requestAnimationFrame(D(this,jc))}),window.requestAnimationFrame(D(this,jc))},R0=new WeakSet,$M=function(n,i){const[o,s]=this.currentPath.at(-1);if(this.currentPath.length>1&&n===o&&i===s)return;const r=this.currentPath;let a=D(this,hl);r.push([n,i]),Ce(this,Td,!0),r.length<=2?(a.moveTo(...r[0]),a.lineTo(n,i)):(r.length===3&&(Ce(this,hl,a=new Path2D),a.moveTo(...r[0])),_e(this,tS,oZ).call(this,a,...r.at(-3),...r.at(-2),n,i))},q2=new WeakSet,nZ=function(){if(this.currentPath.length===0)return;const n=this.currentPath.at(-1);D(this,hl).lineTo(...n)},Q2=new WeakSet,iZ=function(n,i){Ce(this,jc,null),n=Math.min(Math.max(n,0),this.canvas.width),i=Math.min(Math.max(i,0),this.canvas.height),_e(this,R0,$M).call(this,n,i),_e(this,q2,nZ).call(this);let o;if(this.currentPath.length!==1)o=_e(this,nS,sZ).call(this);else{const a=[n,i];o=[[a,a.slice(),a.slice(),a]]}const s=D(this,hl),r=this.currentPath;this.currentPath=[],Ce(this,hl,new Path2D),this.addCommands({cmd:()=>{this.allRawPaths.push(r),this.paths.push(o),this.bezierPath2D.push(s),this._uiManager.rebuild(this)},undo:()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(_e(this,bp,mk).call(this),_e(this,kp,vk).call(this)),_e(this,Dd,Jm).call(this))},mustExec:!0})},eS=new WeakSet,rZ=function(){if(!D(this,Td))return;Ce(this,Td,!1),Math.ceil(this.thickness*this.parentScale);const n=this.currentPath.slice(-3),i=n.map(r=>r[0]),o=n.map(r=>r[1]),{ctx:s}=(Math.min(...i),Math.max(...i),Math.min(...o),Math.max(...o),this);s.save(),s.clearRect(0,0,this.canvas.width,this.canvas.height);for(const r of this.bezierPath2D)s.stroke(r);s.stroke(D(this,hl)),s.restore()},tS=new WeakSet,oZ=function(n,i,o,s,r,a,u){const c=(i+s)/2,l=(o+r)/2,g=(s+a)/2,C=(r+u)/2;n.bezierCurveTo(c+2*(s-c)/3,l+2*(r-l)/3,g+2*(s-g)/3,C+2*(r-C)/3,g,C)},nS=new WeakSet,sZ=function(){const n=this.currentPath;if(n.length<=2)return[[n[0],n[0],n.at(-1),n.at(-1)]];const i=[];let o,[s,r]=n[0];for(o=1;o<n.length-2;o++){const[S,_]=n[o],[A,y]=n[o+1],d=(S+A)/2,v=(_+y)/2,m=[s+2*(S-s)/3,r+2*(_-r)/3],f=[d+2*(S-d)/3,v+2*(_-v)/3];i.push([[s,r],m,f,[d,v]]),[s,r]=[d,v]}const[a,u]=n[o],[c,l]=n[o+1],g=[s+2*(a-s)/3,r+2*(u-r)/3],C=[c+2*(a-c)/3,l+2*(u-l)/3];return i.push([[s,r],g,C,[c,l]]),i},ml=new WeakSet,wu=function(){if(this.isEmpty()){_e(this,Cp,gk).call(this);return}_e(this,z0,xM).call(this);const{canvas:n,ctx:i}=this;i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,n.width,n.height),_e(this,Cp,gk).call(this);for(const o of this.bezierPath2D)i.stroke(o)},B0=new WeakSet,AM=function(){if(D(this,yp))return;Ce(this,yp,new AbortController);const n=this._uiManager.combinedSignal(D(this,yp));this.canvas.addEventListener("pointerdown",this.canvasPointerdown.bind(this),{signal:n})},F0=new WeakSet,EM=function(){var n;(n=this.pointerdownAC)==null||n.abort(),this.pointerdownAC=null},V0=new WeakSet,MM=function(n){var i;(i=D(this,Md))==null||i.abort(),Ce(this,Md,null),_e(this,B0,AM).call(this),D(this,ga)&&clearTimeout(D(this,ga)),Ce(this,ga,setTimeout(()=>{Ce(this,ga,null),this.canvas.removeEventListener("contextmenu",ds)},10)),_e(this,Q2,iZ).call(this,n.offsetX,n.offsetY),this.addToAnnotationStorage(),this.setInBackground()},bp=new WeakSet,mk=function(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",this.canvas.setAttribute("data-l10n-id","pdfjs-ink-canvas"),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")},kp=new WeakSet,vk=function(){Ce(this,pl,new ResizeObserver(n=>{const i=n[0].contentRect;i.width&&i.height&&this.setDimensions(i.width,i.height)})),D(this,pl).observe(this.div),this._uiManager._signal.addEventListener("abort",()=>{var n;(n=D(this,pl))==null||n.disconnect(),Ce(this,pl,null)},{once:!0})},zc=new WeakSet,zf=function(){if(!D(this,Pd))return;const[n,i]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*n),this.canvas.height=Math.ceil(this.height*i),_e(this,Cp,gk).call(this)},H0=new WeakSet,TM=function(n,i){const o=_e(this,Sp,yk).call(this),s=(n-o)/D(this,Ed),r=(i-o)/D(this,Ad);this.scaleFactor=Math.min(s,r)},Cp=new WeakSet,gk=function(){const n=_e(this,Sp,yk).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+n,this.translationY*this.scaleFactor+n)},iS=new WeakSet,aZ=function(n){const i=new Path2D;for(let o=0,s=n.length;o<s;o++){const[r,a,u,c]=n[o];o===0&&i.moveTo(...r),i.bezierCurveTo(a[0],a[1],u[0],u[1],c[0],c[1])}return i},W0=new WeakSet,PM=function(n,i,o){const[s,r,a,u]=i;switch(o){case 0:for(let c=0,l=n.length;c<l;c+=2)n[c]+=s,n[c+1]=u-n[c+1];break;case 90:for(let c=0,l=n.length;c<l;c+=2){const g=n[c];n[c]=n[c+1]+s,n[c+1]=g+r}break;case 180:for(let c=0,l=n.length;c<l;c+=2)n[c]=a-n[c],n[c+1]+=r;break;case 270:for(let c=0,l=n.length;c<l;c+=2){const g=n[c];n[c]=a-n[c+1],n[c+1]=u-g}break;default:throw new Error("Invalid rotation")}return n},rS=new WeakSet,lZ=function(n,i,o){const[s,r,a,u]=i;switch(o){case 0:for(let c=0,l=n.length;c<l;c+=2)n[c]-=s,n[c+1]=u-n[c+1];break;case 90:for(let c=0,l=n.length;c<l;c+=2){const g=n[c];n[c]=n[c+1]-r,n[c+1]=g-s}break;case 180:for(let c=0,l=n.length;c<l;c+=2)n[c]=a-n[c],n[c+1]-=r;break;case 270:for(let c=0,l=n.length;c<l;c+=2){const g=n[c];n[c]=u-n[c+1],n[c+1]=a-g}break;default:throw new Error("Invalid rotation")}return n},oS=new WeakSet,cZ=function(n,i,o,s){var l,g;const r=[],a=this.thickness/2,u=n*i+a,c=n*o+a;for(const C of this.paths){const S=[],_=[];for(let A=0,y=C.length;A<y;A++){const[d,v,m,f]=C[A];if(d[0]===f[0]&&d[1]===f[1]&&y===1){const j=n*d[0]+u,z=n*d[1]+c;S.push(j,z),_.push(j,z);break}const p=n*d[0]+u,h=n*d[1]+c,b=n*v[0]+u,w=n*v[1]+c,k=n*m[0]+u,$=n*m[1]+c,E=n*f[0]+u,N=n*f[1]+c;A===0&&(S.push(p,h),_.push(p,h)),S.push(b,w,k,$,E,N),_.push(b,w),A===y-1&&_.push(E,N)}r.push({bezier:_e(l=_r,W0,PM).call(l,S,s,this.rotation),points:_e(g=_r,W0,PM).call(g,_,s,this.rotation)})}return r},U0=new WeakSet,OM=function(){let n=1/0,i=-1/0,o=1/0,s=-1/0;for(const r of this.paths)for(const[a,u,c,l]of r){const g=nn.bezierBoundingBox(...a,...u,...c,...l);n=Math.min(n,g[0]),o=Math.min(o,g[1]),i=Math.max(i,g[2]),s=Math.max(s,g[3])}return[n,o,i,s]},Sp=new WeakSet,yk=function(){return D(this,ns)?Math.ceil(this.thickness*this.parentScale):0},Dd=new WeakSet,Jm=function(n=!1){if(this.isEmpty())return;if(!D(this,ns)){_e(this,ml,wu).call(this);return}const i=_e(this,U0,OM).call(this),o=_e(this,Sp,yk).call(this);Ce(this,Ed,Math.max(En.MIN_SIZE,i[2]-i[0])),Ce(this,Ad,Math.max(En.MIN_SIZE,i[3]-i[1]));const s=Math.ceil(o+D(this,Ed)*this.scaleFactor),r=Math.ceil(o+D(this,Ad)*this.scaleFactor),[a,u]=this.parentDimensions;this.width=s/a,this.height=r/u,this.setAspectRatio(s,r);const c=this.translationX,l=this.translationY;this.translationX=-i[0],this.translationY=-i[1],_e(this,zc,zf).call(this),_e(this,ml,wu).call(this),Ce(this,Od,s),Ce(this,Ld,r),this.setDims(s,r);const g=n?o/this.scaleFactor/2:0;this.translate(c-this.translationX-g,l-this.translationY-g)},ue(ks,iS),ue(ks,W0),ue(ks,rS),Wt(ks,"_defaultColor",null),Wt(ks,"_defaultOpacity",1),Wt(ks,"_defaultThickness",1),Wt(ks,"_type","ink"),Wt(ks,"_editorType",yn.INK);var Ii,Ar,Rc,vl,Bc,wp,ya,gl,ba,zo,_p,Nd,Qm,jd,ev,Ip,bk,Z0,LM,sS,uZ,xp,kk,G0,DM,$p,Ck,aS,dZ,lS,fZ;const NO=class extends En{constructor(n){super({...n,name:"stampEditor"});ue(this,Nd);ue(this,jd);ue(this,Ip);ue(this,Z0);ue(this,sS);ue(this,xp);ue(this,G0);ue(this,$p);ue(this,aS);ue(this,lS);ue(this,Ii,null);ue(this,Ar,null);ue(this,Rc,null);ue(this,vl,null);ue(this,Bc,null);ue(this,wp,"");ue(this,ya,null);ue(this,gl,null);ue(this,ba,null);ue(this,zo,!1);ue(this,_p,!1);Ce(this,vl,n.bitmapUrl),Ce(this,Bc,n.bitmapFile)}static initialize(n,i){En.initialize(n,i)}static get supportedTypes(){return Pn(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map(n=>`image/${n}`))}static get supportedTypesStr(){return Pn(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(n){return this.supportedTypes.includes(n)}static paste(n,i){i.pasteEditor(yn.STAMP,{bitmapFile:n.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){var n;return{type:"stamp",hasAltText:!!((n=this.altTextData)!=null&&n.altText)}}static computeTelemetryFinalData(n){const i=n.get("hasAltText");return{hasAltText:i.get(!0)??0,hasNoAltText:i.get(!1)??0}}async mlGuessAltText(n=null,i=!0){if(this.hasAltTextData())return null;const{mlManager:o}=this._uiManager;if(!o)throw new Error("No ML.");if(!await o.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:s,width:r,height:a}=n||this.copyCanvas(null,null,!0).imageData,u=await o.guess({name:"altText",request:{data:s,width:r,height:a,channels:s.length/(r*a)}});if(!u)throw new Error("No response from the AI service.");if(u.error)throw new Error("Error from the AI service.");if(u.cancel)return null;if(!u.output)throw new Error("No valid response from the AI service.");const c=u.output;return await this.setGuessedAltText(c),i&&!this.hasAltTextData()&&(this.altTextData={alt:c,decorative:!1}),c}remove(){var n,i;D(this,Ar)&&(Ce(this,Ii,null),this._uiManager.imageManager.deleteId(D(this,Ar)),(n=D(this,ya))==null||n.remove(),Ce(this,ya,null),(i=D(this,gl))==null||i.disconnect(),Ce(this,gl,null),D(this,ba)&&(clearTimeout(D(this,ba)),Ce(this,ba,null))),super.remove()}rebuild(){this.parent?(super.rebuild(),this.div!==null&&(D(this,Ar)&&D(this,ya)===null&&_e(this,Ip,bk).call(this),this.isAttachedToDOM||this.parent.add(this))):D(this,Ar)&&_e(this,Ip,bk).call(this)}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(D(this,Rc)||D(this,Ii)||D(this,vl)||D(this,Bc)||D(this,Ar))}get isResizable(){return!0}render(){if(this.div)return this.div;let n,i;if(this.width&&(n=this.x,i=this.y),super.render(),this.div.hidden=!0,this.div.setAttribute("role","figure"),this.addAltTextButton(),D(this,Ii)?_e(this,Z0,LM).call(this):_e(this,Ip,bk).call(this),this.width&&!this.annotationElementId){const[o,s]=this.parentDimensions;this.setAt(n*o,i*s,this.width*o,this.height*s)}return this.div}copyCanvas(n,i,o=!1){var S;n||(n=224);const{width:s,height:r}=D(this,Ii),a=new zE;let u=D(this,Ii),c=s,l=r,g=null;if(i){if(s>i||r>i){const w=Math.min(i/s,i/r);c=Math.floor(s*w),l=Math.floor(r*w)}g=document.createElement("canvas");const _=g.width=Math.ceil(c*a.sx),A=g.height=Math.ceil(l*a.sy);D(this,zo)||(u=_e(this,xp,kk).call(this,_,A));const y=g.getContext("2d");y.filter=this._uiManager.hcmFilter;let d="white",v="#cfcfd8";this._uiManager.hcmFilter!=="none"?v="black":(S=window.matchMedia)!=null&&S.call(window,"(prefers-color-scheme: dark)").matches&&(d="#8f8f9d",v="#42414d");const m=15,f=m*a.sx,p=m*a.sy,h=new OffscreenCanvas(2*f,2*p),b=h.getContext("2d");b.fillStyle=d,b.fillRect(0,0,2*f,2*p),b.fillStyle=v,b.fillRect(0,0,f,p),b.fillRect(f,p,f,p),y.fillStyle=y.createPattern(h,"repeat"),y.fillRect(0,0,_,A),y.drawImage(u,0,0,u.width,u.height,0,0,_,A)}let C=null;if(o){let _,A;if(a.symmetric&&u.width<n&&u.height<n)_=u.width,A=u.height;else if(u=D(this,Ii),s>n||r>n){const d=Math.min(n/s,n/r);_=Math.floor(s*d),A=Math.floor(r*d),D(this,zo)||(u=_e(this,xp,kk).call(this,_,A))}const y=new OffscreenCanvas(_,A).getContext("2d",{willReadFrequently:!0});y.drawImage(u,0,0,u.width,u.height,0,0,_,A),C={width:_,height:A,data:y.getImageData(0,0,_,A).data}}return{canvas:g,width:c,height:l,imageData:C}}getImageForAltText(){return D(this,ya)}static async deserialize(n,i,o){var A;let s=null;if(n instanceof SU){const{data:{rect:y,rotation:d,id:v,structParent:m,popupRef:f},container:p,parent:{page:{pageNumber:h}}}=n,b=p.querySelector("canvas"),w=o.imageManager.getFromCanvas(p.id,b);b.remove();const k=((A=await i._structTree.getAriaAttributes(`${qP}${v}`))==null?void 0:A.get("aria-label"))||"";s=n={annotationType:yn.STAMP,bitmapId:w.id,bitmap:w.bitmap,pageIndex:h-1,rect:y.slice(0),rotation:d,id:v,deleted:!1,accessibilityData:{decorative:!1,altText:k},isSvg:!1,structParent:m,popupRef:f}}const r=await super.deserialize(n,i,o),{rect:a,bitmap:u,bitmapUrl:c,bitmapId:l,isSvg:g,accessibilityData:C}=n;l&&o.imageManager.isValidId(l)?(Ce(r,Ar,l),u&&Ce(r,Ii,u)):Ce(r,vl,c),Ce(r,zo,g);const[S,_]=r.pageDimensions;return r.width=(a[2]-a[0])/S,r.height=(a[3]-a[1])/_,r.annotationElementId=n.id||null,C&&(r.altTextData=C),r._initialData=s,Ce(r,_p,!!s),r}serialize(n=!1,i=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const o={annotationType:yn.STAMP,bitmapId:D(this,Ar),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:D(this,zo),structTreeParentId:this._structTreeParentId};if(n)return o.bitmapUrl=_e(this,$p,Ck).call(this,!0),o.accessibilityData=this.serializeAltText(!0),o;const{decorative:s,altText:r}=this.serializeAltText(!1);if(!s&&r&&(o.accessibilityData={type:"Figure",alt:r}),this.annotationElementId){const u=_e(this,lS,fZ).call(this,o);if(u.isSame)return null;u.isSameAltText?delete o.accessibilityData:o.accessibilityData.structParent=this._initialData.structParent??-1}if(o.id=this.annotationElementId,i===null)return o;i.stamps||(i.stamps=new Map);const a=D(this,zo)?(o.rect[2]-o.rect[0])*(o.rect[3]-o.rect[1]):null;if(i.stamps.has(D(this,Ar))){if(D(this,zo)){const u=i.stamps.get(D(this,Ar));a>u.area&&(u.area=a,u.serialized.bitmap.close(),u.serialized.bitmap=_e(this,$p,Ck).call(this,!1))}}else i.stamps.set(D(this,Ar),{area:a,serialized:o}),o.bitmap=_e(this,$p,Ck).call(this,!1);return o}renderAnnotationElement(n){return n.updateEdited({rect:this.getRect(0,0)}),null}};let qm=NO;Ii=new WeakMap,Ar=new WeakMap,Rc=new WeakMap,vl=new WeakMap,Bc=new WeakMap,wp=new WeakMap,ya=new WeakMap,gl=new WeakMap,ba=new WeakMap,zo=new WeakMap,_p=new WeakMap,Nd=new WeakSet,Qm=function(n,i=!1){n?(Ce(this,Ii,n.bitmap),i||(Ce(this,Ar,n.id),Ce(this,zo,n.isSvg)),n.file&&Ce(this,wp,n.file.name),_e(this,Z0,LM).call(this)):this.remove()},jd=new WeakSet,ev=function(){if(Ce(this,Rc,null),this._uiManager.enableWaiting(!1),D(this,ya))if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&D(this,Ii))this._editToolbar.hide(),this._uiManager.editAltText(this,!0);else{if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&D(this,Ii)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}},Ip=new WeakSet,bk=function(){if(D(this,Ar)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(D(this,Ar)).then(o=>_e(this,Nd,Qm).call(this,o,!0)).finally(()=>_e(this,jd,ev).call(this));return}if(D(this,vl)){const o=D(this,vl);Ce(this,vl,null),this._uiManager.enableWaiting(!0),Ce(this,Rc,this._uiManager.imageManager.getFromUrl(o).then(s=>_e(this,Nd,Qm).call(this,s)).finally(()=>_e(this,jd,ev).call(this)));return}if(D(this,Bc)){const o=D(this,Bc);Ce(this,Bc,null),this._uiManager.enableWaiting(!0),Ce(this,Rc,this._uiManager.imageManager.getFromFile(o).then(s=>_e(this,Nd,Qm).call(this,s)).finally(()=>_e(this,jd,ev).call(this)));return}const n=document.createElement("input");n.type="file",n.accept=NO.supportedTypesStr;const i=this._uiManager._signal;Ce(this,Rc,new Promise(o=>{n.addEventListener("change",async()=>{if(n.files&&n.files.length!==0){this._uiManager.enableWaiting(!0);const s=await this._uiManager.imageManager.getFromFile(n.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),_e(this,Nd,Qm).call(this,s)}else this.remove();o()},{signal:i}),n.addEventListener("cancel",()=>{this.remove(),o()},{signal:i})}).finally(()=>_e(this,jd,ev).call(this))),n.click()},Z0=new WeakSet,LM=function(){const{div:n}=this;let{width:i,height:o}=D(this,Ii);const[s,r]=this.pageDimensions,a=.75;if(this.width)i=this.width*s,o=this.height*r;else if(i>a*s||o>a*r){const g=Math.min(a*s/i,a*r/o);i*=g,o*=g}const[u,c]=this.parentDimensions;this.setDims(i*u/s,o*c/r),this._uiManager.enableWaiting(!1);const l=Ce(this,ya,document.createElement("canvas"));l.setAttribute("role","img"),this.addContainer(l),this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&!this.annotationElementId||(n.hidden=!1),_e(this,G0,DM).call(this,i,o),_e(this,aS,dZ).call(this),D(this,_p)||(this.parent.addUndoableEditor(this),Ce(this,_p,!0)),this._reportTelemetry({action:"inserted_image"}),D(this,wp)&&l.setAttribute("aria-label",D(this,wp))},sS=new WeakSet,uZ=function(n,i){var r;const[o,s]=this.parentDimensions;this.width=n/o,this.height=i/s,(r=this._initialOptions)!=null&&r.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,D(this,ba)!==null&&clearTimeout(D(this,ba)),Ce(this,ba,setTimeout(()=>{Ce(this,ba,null),_e(this,G0,DM).call(this,n,i)},200))},xp=new WeakSet,kk=function(n,i){const{width:o,height:s}=D(this,Ii);let r=o,a=s,u=D(this,Ii);for(;r>2*n||a>2*i;){const c=r,l=a;r>2*n&&(r=r>=16384?Math.floor(r/2)-1:Math.ceil(r/2)),a>2*i&&(a=a>=16384?Math.floor(a/2)-1:Math.ceil(a/2));const g=new OffscreenCanvas(r,a);g.getContext("2d").drawImage(u,0,0,c,l,0,0,r,a),u=g.transferToImageBitmap()}return u},G0=new WeakSet,DM=function(n,i){const o=new zE,s=Math.ceil(n*o.sx),r=Math.ceil(i*o.sy),a=D(this,ya);if(!a||a.width===s&&a.height===r)return;a.width=s,a.height=r;const u=D(this,zo)?D(this,Ii):_e(this,xp,kk).call(this,s,r),c=a.getContext("2d");c.filter=this._uiManager.hcmFilter,c.drawImage(u,0,0,u.width,u.height,0,0,s,r)},$p=new WeakSet,Ck=function(n){if(n){if(D(this,zo)){const o=this._uiManager.imageManager.getSvgUrl(D(this,Ar));if(o)return o}const i=document.createElement("canvas");return{width:i.width,height:i.height}=D(this,Ii),i.getContext("2d").drawImage(D(this,Ii),0,0),i.toDataURL()}if(D(this,zo)){const[i,o]=this.pageDimensions,s=Math.round(this.width*i*js.PDF_TO_CSS_UNITS),r=Math.round(this.height*o*js.PDF_TO_CSS_UNITS),a=new OffscreenCanvas(s,r);return a.getContext("2d").drawImage(D(this,Ii),0,0,D(this,Ii).width,D(this,Ii).height,0,0,s,r),a.transferToImageBitmap()}return structuredClone(D(this,Ii))},aS=new WeakSet,dZ=function(){this._uiManager._signal&&(Ce(this,gl,new ResizeObserver(n=>{const i=n[0].contentRect;i.width&&i.height&&_e(this,sS,uZ).call(this,i.width,i.height)})),D(this,gl).observe(this.div),this._uiManager._signal.addEventListener("abort",()=>{var n;(n=D(this,gl))==null||n.disconnect(),Ce(this,gl,null)},{once:!0}))},lS=new WeakSet,fZ=function(n){var c;const{rect:i,pageIndex:o,accessibilityData:{altText:s}}=this._initialData,r=n.rect.every((l,g)=>Math.abs(l-i[g])<1),a=n.pageIndex===o,u=(((c=n.accessibilityData)==null?void 0:c.alt)||"")===s;return{isSame:r&&a&&u,isSameAltText:u}},Wt(qm,"_type","stamp"),Wt(qm,"_editorType",yn.STAMP);var zd,Ap,ka,Fc,yl,Ro,Vc,Ep,Mp,Fr,bl,sn,Hc,cS,hZ,Y0,NM,X0,jM,K0,zM,Tp,Sk;const Za=class{constructor({uiManager:t,pageIndex:n,div:i,structTreeLayer:o,accessibilityManager:s,annotationLayer:r,drawLayer:a,textLayer:u,viewport:c,l10n:l}){ue(this,cS);ue(this,Y0);ue(this,X0);ue(this,K0);ue(this,Tp);ue(this,zd,void 0);ue(this,Ap,!1);ue(this,ka,null);ue(this,Fc,null);ue(this,yl,null);ue(this,Ro,new Map);ue(this,Vc,!1);ue(this,Ep,!1);ue(this,Mp,!1);ue(this,Fr,null);ue(this,bl,null);ue(this,sn,void 0);const g=[...D(Za,Hc).values()];if(!Za._initialized){Za._initialized=!0;for(const C of g)C.initialize(l,t)}t.registerEditorTypes(g),Ce(this,sn,t),this.pageIndex=n,this.div=i,Ce(this,zd,s),Ce(this,ka,r),this.viewport=c,Ce(this,Fr,u),this.drawLayer=a,this._structTree=o,D(this,sn).addLayer(this)}get isEmpty(){return D(this,Ro).size===0}get isInvisible(){return this.isEmpty&&D(this,sn).getMode()===yn.NONE}updateToolbar(t){D(this,sn).updateToolbar(t)}updateMode(t=D(this,sn).getMode()){switch(_e(this,Tp,Sk).call(this),t){case yn.NONE:this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case yn.INK:this.addInkEditorIfNeeded(!1),this.disableTextSelection(),this.togglePointerEvents(!0),this.disableClick();break;case yn.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:n}=this.div;for(const i of D(Za,Hc).values())n.toggle(`${i._type}Editing`,t===i._editorType);this.div.hidden=!1}hasTextLayer(t){var n;return t===((n=D(this,Fr))==null?void 0:n.div)}addInkEditorIfNeeded(t){if(D(this,sn).getMode()===yn.INK){if(!t){for(const n of D(this,Ro).values())if(n.isEmpty()){n.setInBackground();return}}this.createAndAddNewEditor({offsetX:0,offsetY:0},!1).setInBackground()}}setEditingState(t){D(this,sn).setEditingState(t)}addCommands(t){D(this,sn).addCommands(t)}toggleDrawing(t=!1){this.div.classList.toggle("drawing",!t)}togglePointerEvents(t=!1){this.div.classList.toggle("disabled",!t)}toggleAnnotationLayerPointerEvents(t=!1){var n;(n=D(this,ka))==null||n.div.classList.toggle("disabled",!t)}async enable(){this.div.tabIndex=0,this.togglePointerEvents(!0);const t=new Set;for(const i of D(this,Ro).values())i.enableEditing(),i.show(!0),i.annotationElementId&&(D(this,sn).removeChangedExistingAnnotation(i),t.add(i.annotationElementId));if(!D(this,ka))return;const n=D(this,ka).getEditableAnnotations();for(const i of n){if(i.hide(),D(this,sn).isDeletedAnnotationElement(i.data.id)||t.has(i.data.id))continue;const o=await this.deserialize(i);o&&(this.addOrRebuild(o),o.enableEditing())}}disable(){var o;Ce(this,Mp,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1);const t=new Map,n=new Map;for(const s of D(this,Ro).values())s.disableEditing(),s.annotationElementId&&(s.serialize()===null?(n.set(s.annotationElementId,s),(o=this.getEditableAnnotation(s.annotationElementId))==null||o.show(),s.remove()):t.set(s.annotationElementId,s));if(D(this,ka)){const s=D(this,ka).getEditableAnnotations();for(const r of s){const{id:a}=r.data;if(D(this,sn).isDeletedAnnotationElement(a))continue;let u=n.get(a);u?(u.resetAnnotationElement(r),u.show(!1),r.show()):(u=t.get(a),u&&(D(this,sn).addChangedExistingAnnotation(u),u.renderAnnotationElement(r)&&u.show(!1)),r.show())}}_e(this,Tp,Sk).call(this),this.isEmpty&&(this.div.hidden=!0);const{classList:i}=this.div;for(const s of D(Za,Hc).values())i.remove(`${s._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),Ce(this,Mp,!1)}getEditableAnnotation(t){var n;return((n=D(this,ka))==null?void 0:n.getEditableAnnotation(t))||null}setActiveEditor(t){D(this,sn).getActive()!==t&&D(this,sn).setActiveEditor(t)}enableTextSelection(){var t;if(this.div.tabIndex=-1,(t=D(this,Fr))!=null&&t.div&&!D(this,bl)){Ce(this,bl,new AbortController);const n=D(this,sn).combinedSignal(D(this,bl));D(this,Fr).div.addEventListener("pointerdown",_e(this,cS,hZ).bind(this),{signal:n}),D(this,Fr).div.classList.add("highlighting")}}disableTextSelection(){var t;this.div.tabIndex=0,(t=D(this,Fr))!=null&&t.div&&D(this,bl)&&(D(this,bl).abort(),Ce(this,bl,null),D(this,Fr).div.classList.remove("highlighting"))}enableClick(){if(D(this,Fc))return;Ce(this,Fc,new AbortController);const t=D(this,sn).combinedSignal(D(this,Fc));this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:t}),this.div.addEventListener("pointerup",this.pointerup.bind(this),{signal:t})}disableClick(){var t;(t=D(this,Fc))==null||t.abort(),Ce(this,Fc,null)}attach(t){D(this,Ro).set(t.id,t);const{annotationElementId:n}=t;n&&D(this,sn).isDeletedAnnotationElement(n)&&D(this,sn).removeDeletedAnnotationElement(t)}detach(t){var n;D(this,Ro).delete(t.id),(n=D(this,zd))==null||n.removePointerInTextLayer(t.contentDiv),!D(this,Mp)&&t.annotationElementId&&D(this,sn).addDeletedAnnotationElement(t)}remove(t){this.detach(t),D(this,sn).removeEditor(t),t.div.remove(),t.isAttachedToDOM=!1,D(this,Ep)||this.addInkEditorIfNeeded(!1)}changeParent(t){var n;t.parent!==this&&(t.parent&&t.annotationElementId&&(D(this,sn).addDeletedAnnotationElement(t.annotationElementId),En.deleteAnnotationElement(t),t.annotationElementId=null),this.attach(t),(n=t.parent)==null||n.detach(t),t.setParent(this),t.div&&t.isAttachedToDOM&&(t.div.remove(),this.div.append(t.div)))}add(t){if(t.parent!==this||!t.isAttachedToDOM){if(this.changeParent(t),D(this,sn).addEditor(t),this.attach(t),!t.isAttachedToDOM){const n=t.render();this.div.append(n),t.isAttachedToDOM=!0}t.fixAndSetPosition(),t.onceAdded(),D(this,sn).addToAnnotationStorage(t),t._reportTelemetry(t.telemetryInitialData)}}moveEditorInDOM(t){var i;if(!t.isAttachedToDOM)return;const{activeElement:n}=document;t.div.contains(n)&&!D(this,yl)&&(t._focusEventsAllowed=!1,Ce(this,yl,setTimeout(()=>{Ce(this,yl,null),t.div.contains(document.activeElement)?t._focusEventsAllowed=!0:(t.div.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:D(this,sn)._signal}),n.focus())},0))),t._structTreeParentId=(i=D(this,zd))==null?void 0:i.moveElementInDOM(this.div,t.div,t.contentDiv,!0)}addOrRebuild(t){t.needsToBeRebuilt()?(t.parent||(t.parent=this),t.rebuild(),t.show()):this.add(t)}addUndoableEditor(t){this.addCommands({cmd:()=>t._uiManager.rebuild(t),undo:()=>{t.remove()},mustExec:!1})}getNextId(){return D(this,sn).getId()}combinedSignal(t){return D(this,sn).combinedSignal(t)}canCreateNewEmptyEditor(){var t;return(t=D(this,Y0,NM))==null?void 0:t.canCreateNewEmptyEditor()}pasteEditor(t,n){D(this,sn).updateToolbar(t),D(this,sn).updateMode(t);const{offsetX:i,offsetY:o}=_e(this,K0,zM).call(this),s=this.getNextId(),r=_e(this,X0,jM).call(this,{parent:this,id:s,x:i,y:o,uiManager:D(this,sn),isCentered:!0,...n});r&&this.add(r)}async deserialize(t){var n;return await((n=D(Za,Hc).get(t.annotationType??t.annotationEditorType))==null?void 0:n.deserialize(t,this,D(this,sn)))||null}createAndAddNewEditor(t,n,i={}){const o=this.getNextId(),s=_e(this,X0,jM).call(this,{parent:this,id:o,x:t.offsetX,y:t.offsetY,uiManager:D(this,sn),isCentered:n,...i});return s&&this.add(s),s}addNewEditor(){this.createAndAddNewEditor(_e(this,K0,zM).call(this),!0)}setSelected(t){D(this,sn).setSelected(t)}toggleSelected(t){D(this,sn).toggleSelected(t)}unselect(t){D(this,sn).unselect(t)}pointerup(t){const{isMac:n}=ao.platform;!(t.button!==0||t.ctrlKey&&n)&&t.target===this.div&&D(this,Vc)&&(Ce(this,Vc,!1),D(this,Ap)?D(this,sn).getMode()!==yn.STAMP?this.createAndAddNewEditor(t,!1):D(this,sn).unselectAll():Ce(this,Ap,!0))}pointerdown(t){if(D(this,sn).getMode()===yn.HIGHLIGHT&&this.enableTextSelection(),D(this,Vc)){Ce(this,Vc,!1);return}const{isMac:n}=ao.platform;if(t.button!==0||t.ctrlKey&&n||t.target!==this.div)return;Ce(this,Vc,!0);const i=D(this,sn).getActive();Ce(this,Ap,!i||i.isEmpty())}findNewParent(t,n,i){const o=D(this,sn).findParent(n,i);return o===null||o===this?!1:(o.changeParent(t),!0)}destroy(){var t,n;((t=D(this,sn).getActive())==null?void 0:t.parent)===this&&(D(this,sn).commitOrRemove(),D(this,sn).setActiveEditor(null)),D(this,yl)&&(clearTimeout(D(this,yl)),Ce(this,yl,null));for(const i of D(this,Ro).values())(n=D(this,zd))==null||n.removePointerInTextLayer(i.contentDiv),i.setParent(null),i.isAttachedToDOM=!1,i.div.remove();this.div=null,D(this,Ro).clear(),D(this,sn).removeLayer(this)}render({viewport:t}){this.viewport=t,tf(this.div,t);for(const n of D(this,sn).getEditors(this.pageIndex))this.add(n),n.rebuild();this.updateMode()}update({viewport:t}){D(this,sn).commitOrRemove(),_e(this,Tp,Sk).call(this);const n=this.viewport.rotation,i=t.rotation;if(this.viewport=t,tf(this.div,{rotation:i}),n!==i)for(const o of D(this,Ro).values())o.rotate(i);this.addInkEditorIfNeeded(!1)}get pageDimensions(){const{pageWidth:t,pageHeight:n}=this.viewport.rawDims;return[t,n]}get scale(){return D(this,sn).viewParameters.realScale}};let tv=Za;zd=new WeakMap,Ap=new WeakMap,ka=new WeakMap,Fc=new WeakMap,yl=new WeakMap,Ro=new WeakMap,Vc=new WeakMap,Ep=new WeakMap,Mp=new WeakMap,Fr=new WeakMap,bl=new WeakMap,sn=new WeakMap,Hc=new WeakMap,cS=new WeakSet,hZ=function(t){D(this,sn).unselectAll();const{target:n}=t;if(n===D(this,Fr).div||(n.getAttribute("role")==="img"||n.classList.contains("endOfContent"))&&D(this,Fr).div.contains(n)){const{isMac:i}=ao.platform;if(t.button!==0||t.ctrlKey&&i)return;D(this,sn).showAllEditors("highlight",!0,!0),D(this,Fr).div.classList.add("free"),this.toggleDrawing(),Qr.startHighlighting(this,D(this,sn).direction==="ltr",{target:D(this,Fr).div,x:t.x,y:t.y}),D(this,Fr).div.addEventListener("pointerup",()=>{D(this,Fr).div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:D(this,sn)._signal}),t.preventDefault()}},Y0=new WeakSet,NM=function(){return D(Za,Hc).get(D(this,sn).getMode())},X0=new WeakSet,jM=function(t){const n=D(this,Y0,NM);return n?new n.prototype.constructor(t):null},K0=new WeakSet,zM=function(){const{x:t,y:n,width:i,height:o}=this.div.getBoundingClientRect(),s=Math.max(0,t),r=Math.max(0,n),a=(s+Math.min(window.innerWidth,t+i))/2-t,u=(r+Math.min(window.innerHeight,n+o))/2-n,[c,l]=this.viewport.rotation%180==0?[a,u]:[u,a];return{offsetX:c,offsetY:l}},Tp=new WeakSet,Sk=function(){Ce(this,Ep,!0);for(const t of D(this,Ro).values())t.isEmpty()&&t.remove();Ce(this,Ep,!1)},Wt(tv,"_initialized",!1),ue(tv,Hc,new Map([bs,ks,qm,Qr].map(t=>[t._editorType,t])));var Ca,J0,Zi,kl,q0,RM,Q0,BM,uS,pZ;const jr=class{constructor({pageIndex:t}){ue(this,Q0);ue(this,uS);ue(this,Ca,null);ue(this,J0,0);ue(this,Zi,new Map);ue(this,kl,new Map);this.pageIndex=t}setParent(t){if(D(this,Ca)){if(D(this,Ca)!==t){if(D(this,Zi).size>0)for(const n of D(this,Zi).values())n.remove(),t.append(n);Ce(this,Ca,t)}}else Ce(this,Ca,t)}static get _svgFactory(){return Pn(this,"_svgFactory",new lO)}draw(t,n,i,o=!1){const s=Kr(this,J0)._++,r=_e(this,Q0,BM).call(this,t.box);r.classList.add(...t.classNamesForDrawing);const a=jr._svgFactory.createElement("defs");r.append(a);const u=jr._svgFactory.createElement("path");a.append(u);const c=`path_p${this.pageIndex}_${s}`;u.setAttribute("id",c),u.setAttribute("d",t.toSVGPath()),o&&D(this,kl).set(s,u);const l=_e(this,uS,pZ).call(this,a,c),g=jr._svgFactory.createElement("use");return r.append(g),r.setAttribute("fill",n),r.setAttribute("fill-opacity",i),g.setAttribute("href",`#${c}`),D(this,Zi).set(s,r),{id:s,clipPathId:`url(#${l})`}}drawOutline(t){const n=Kr(this,J0)._++,i=_e(this,Q0,BM).call(this,t.box);i.classList.add(...t.classNamesForOutlining);const o=jr._svgFactory.createElement("defs");i.append(o);const s=jr._svgFactory.createElement("path");o.append(s);const r=`path_p${this.pageIndex}_${n}`;s.setAttribute("id",r),s.setAttribute("d",t.toSVGPath()),s.setAttribute("vector-effect","non-scaling-stroke");let a;if(t.mustRemoveSelfIntersections){const l=jr._svgFactory.createElement("mask");o.append(l),a=`mask_p${this.pageIndex}_${n}`,l.setAttribute("id",a),l.setAttribute("maskUnits","objectBoundingBox");const g=jr._svgFactory.createElement("rect");l.append(g),g.setAttribute("width","1"),g.setAttribute("height","1"),g.setAttribute("fill","white");const C=jr._svgFactory.createElement("use");l.append(C),C.setAttribute("href",`#${r}`),C.setAttribute("stroke","none"),C.setAttribute("fill","black"),C.setAttribute("fill-rule","nonzero"),C.classList.add("mask")}const u=jr._svgFactory.createElement("use");i.append(u),u.setAttribute("href",`#${r}`),a&&u.setAttribute("mask",`url(#${a})`);const c=u.cloneNode();return i.append(c),u.classList.add("mainOutline"),c.classList.add("secondaryOutline"),D(this,Zi).set(n,i),n}finalizeLine(t,n){const i=D(this,kl).get(t);D(this,kl).delete(t),this.updateBox(t,n.box),i.setAttribute("d",n.toSVGPath())}updateLine(t,n){D(this,Zi).get(t).firstChild.firstChild.setAttribute("d",n.toSVGPath())}updatePath(t,n){D(this,kl).get(t).setAttribute("d",n.toSVGPath())}updateBox(t,n){var i;_e(i=jr,q0,RM).call(i,D(this,Zi).get(t),n)}show(t,n){D(this,Zi).get(t).classList.toggle("hidden",!n)}rotate(t,n){D(this,Zi).get(t).setAttribute("data-main-rotation",n)}changeColor(t,n){D(this,Zi).get(t).setAttribute("fill",n)}changeOpacity(t,n){D(this,Zi).get(t).setAttribute("fill-opacity",n)}addClass(t,n){D(this,Zi).get(t).classList.add(n)}removeClass(t,n){D(this,Zi).get(t).classList.remove(n)}getSVGRoot(t){return D(this,Zi).get(t)}remove(t){D(this,kl).delete(t),D(this,Ca)!==null&&(D(this,Zi).get(t).remove(),D(this,Zi).delete(t))}destroy(){Ce(this,Ca,null);for(const t of D(this,Zi).values())t.remove();D(this,Zi).clear(),D(this,kl).clear()}};let wk=jr;Ca=new WeakMap,J0=new WeakMap,Zi=new WeakMap,kl=new WeakMap,q0=new WeakSet,RM=function(t,{x:n=0,y:i=0,width:o=1,height:s=1}={}){const{style:r}=t;r.top=100*i+"%",r.left=100*n+"%",r.width=100*o+"%",r.height=100*s+"%"},Q0=new WeakSet,BM=function(t){var i;const n=jr._svgFactory.create(1,1,!0);return D(this,Ca).append(n),n.setAttribute("aria-hidden",!0),_e(i=jr,q0,RM).call(i,n,t),n},uS=new WeakSet,pZ=function(t,n){const i=jr._svgFactory.createElement("clipPath");t.append(i);const o=`clip_${n}`;i.setAttribute("id",o),i.setAttribute("clipPathUnits","objectBoundingBox");const s=jr._svgFactory.createElement("use");return i.append(s),s.setAttribute("href",`#${n}`),s.classList.add("clip"),o},ue(wk,q0);var oGe=hn.AbortException,sGe=hn.AnnotationEditorLayer,aGe=hn.AnnotationEditorParamsType,lGe=hn.AnnotationEditorType,cGe=hn.AnnotationEditorUIManager,uGe=hn.AnnotationLayer,dGe=hn.AnnotationMode,fGe=hn.ColorPicker,hGe=hn.DOMSVGFactory,pGe=hn.DrawLayer,mGe=hn.FeatureTest,mZ=hn.GlobalWorkerOptions,vGe=hn.ImageKind,gGe=hn.InvalidPDFException,yGe=hn.MissingPDFException,bGe=hn.OPS,kGe=hn.OutputScale,CGe=hn.PDFDataRangeTransport,SGe=hn.PDFDateString,wGe=hn.PDFWorker,_Ge=hn.PasswordResponses,IGe=hn.PermissionFlag,xGe=hn.PixelsPerInch,$Ge=hn.RenderingCancelledException,AGe=hn.TextLayer,EGe=hn.UnexpectedResponseException,MGe=hn.Util,TGe=hn.VerbosityLevel,PGe=hn.XfaLayer,OGe=hn.build,LGe=hn.createValidAbsoluteUrl,DGe=hn.fetchData,NGe=hn.getDocument,jGe=hn.getFilenameFromUrl,zGe=hn.getPdfFilenameFromUrl,RGe=hn.getXfaPageViewport,BGe=hn.isDataScheme,FGe=hn.isPdfFile,VGe=hn.noContextMenu,HGe=hn.normalizeUnicode,WGe=hn.setLayerDimensions,UGe=hn.shadow,ZGe=hn.version;const GGe=Object.freeze(Object.defineProperty({__proto__:null,AbortException:oGe,AnnotationEditorLayer:sGe,AnnotationEditorParamsType:aGe,AnnotationEditorType:lGe,AnnotationEditorUIManager:cGe,AnnotationLayer:uGe,AnnotationMode:dGe,ColorPicker:fGe,DOMSVGFactory:hGe,DrawLayer:pGe,FeatureTest:mGe,GlobalWorkerOptions:mZ,ImageKind:vGe,InvalidPDFException:gGe,MissingPDFException:yGe,OPS:bGe,OutputScale:kGe,PDFDataRangeTransport:CGe,PDFDateString:SGe,PDFWorker:wGe,PasswordResponses:_Ge,PermissionFlag:IGe,PixelsPerInch:xGe,RenderingCancelledException:$Ge,TextLayer:AGe,UnexpectedResponseException:EGe,Util:MGe,VerbosityLevel:TGe,XfaLayer:PGe,build:OGe,createValidAbsoluteUrl:LGe,fetchData:DGe,getDocument:NGe,getFilenameFromUrl:jGe,getPdfFilenameFromUrl:zGe,getXfaPageViewport:RGe,isDataScheme:BGe,isPdfFile:FGe,noContextMenu:VGe,normalizeUnicode:HGe,setLayerDimensions:WGe,shadow:UGe,version:ZGe},Symbol.toStringTag,{value:"Module"}));mZ.workerSrc="/pdfjs-dist/pdf.worker.min.js";const YGe={key:0,class:"loading-pdf-box"},XGe={class:"loading-spin"},KGe={__name:"PDFViewer",props:{url:String,doc_width:Number,positions:Array},setup(e){const t=e,n=$S("box"),i=he(!0),o=(()=>{const r={};return t.positions.forEach((a,u)=>{const c=a[0],l=a[1],g=a[2],C=a[3],S=a[4];c in r?r[c].push({x1:l,x2:g,y1:C,y2:S}):r[c]=[{x1:l,x2:g,y1:C,y2:S}]}),r})();function s(r,a,u,c,l){r.fillStyle="rgba(255, 255, 0, 0.5)";const g=u-a,C=l-c;r.fillRect(a,c,g,C)}return Yt(()=>{GGe.getDocument(t.url).promise.then(async r=>{const a=r.numPages;let u=-1,c=0;const l=[];for(let g=1;g<=a;g++){const C=document.createElement("canvas");C.addEventListener("contextmenu",function(h){h.preventDefault()});const S=C.getContext("2d"),_=await r.getPage(g),A=_.getViewport({scale:1}),y=A.width,d=A.height,v=t.doc_width,m=v/(y/d),f=v/y,p=_.getViewport({scale:f});if(l.push(c),C.width=v,C.height=m,c=c+C.height,await _.render({viewport:p,canvasContext:S}).promise,g in o){const h=o[g];u===-1&&(u=g),h.forEach(b=>{s(S,b.x1*f,b.x2*f,b.y1*f,b.y2*f)})}n.value&&n.value.appendChild(C)}i.value=!1,u!==-1&&setTimeout(()=>{n.value.scrollTop=l[u-1]})})}),(r,a)=>{const u=Pe("a-spin");return R(),X(ft,null,[B("div",{class:"pdf-container",ref_key:"box",ref:n},null,512),i.value?(R(),X("div",YGe,[B("div",XGe,[O(u,{size:36})])])):Re("",!0)],64)}}},JGe=jn(KGe,[["__scopeId","data-v-4b6d87eb"]]);const qGe={class:"image-aisde-btn-container"},QGe=["src"],eYe=["src"],tYe={__name:"AsideImage",props:{src:String},setup(e){return(t,n)=>{const i=Pe("a-popover");return R(),We(i,null,{content:Ve(()=>[B("img",{src:e.src,class:"image-large-view"},null,8,eYe)]),default:Ve(()=>[B("div",qGe,[B("img",{src:e.src,class:"image-aside-btn"},null,8,QGe)])]),_:1})}}},nYe=jn(tYe,[["__scopeId","data-v-09b23003"]]),O7="/assets/icon-572c2c44.svg",iYe="/assets/pdf.44344347-704e040d.svg";const rYe={class:"file-name-icon"},oYe=["src"],sYe={class:"file-name-label"},aYe={__name:"FileNameDisplay",props:{file_name:String,file_id:String},setup(e){const t=e,n=function(){const r=t.file_name.split(".");return r[r.length-1]}(),i=n==="pdf",s={docx:O7,doc:O7,pdf:iYe}[n];return(r,a)=>(R(),X("div",{class:G(["file-name-display",{"file-name-pdf":i,"file-name-others":!i}])},[B("span",rYe,[B("img",{src:ji(s)},null,8,oYe)]),B("span",sYe,tt(e.file_name),1)],2))}},lYe=jn(aYe,[["__scopeId","data-v-a2c1ea4d"]]),cYe="light",uYe=!1,dYe=!0,fYe=!0,hYe=!0,pYe=!1,mYe=!1,vYe=!0,gYe="#165DFF",yYe=220,bYe=!1,kYe="desktop",CYe=!1,SYe=!1,wYe=[],_Ye="http://192.168.20.119:11080",IYe={theme:cYe,colorWeak:uYe,navbar:dYe,menu:fYe,topMenu:hYe,hideMenu:pYe,menuCollapse:mYe,footer:vYe,themeColor:gYe,menuWidth:yYe,globalSettings:bYe,device:kYe,tabBar:CYe,menuFromServer:SYe,serverMenu:wYe,RAGFlowUrl:_Ye},vZ=IYe.RAGFlowUrl,gZ=e=>`${vZ}/v1/document/get/${e}`,xYe=e=>`${vZ}/v1/document/image/${e}`;const $Ye={class:"refference-container"},AYe={class:"refference-content"},EYe={class:"refference-description"},MYe={class:"ref-text-content"},TYe={__name:"RefferenceFlag",props:{img:String,image_id:String,text:String,doc_id:String,doc_name:String,positions:Array},setup(e){const t=e,n=window.innerWidth/2,i=gZ(t.doc_id),o=xYe(t.image_id),s=he(!1),r=()=>{const c=t.doc_name;c&&c.indexOf(".pdf")===c.length-4&&(s.value=!0)},a=()=>{s.value=!1},u=()=>{s.value=!1};return(c,l)=>{const g=Pe("a-popover"),C=Pe("a-drawer");return R(),X("span",$Ye,[O(g,null,{title:Ve(()=>l[0]||(l[0]=[])),content:Ve(()=>[B("div",AYe,[O(nYe,{src:ji(o)},null,8,["src"]),B("div",EYe,[B("div",MYe,tt(e.text),1),O(lYe,{onClick:r,file_name:e.doc_name,file_id:e.doc_id},null,8,["file_name","file_id"])])])]),default:Ve(()=>[l[1]||(l[1]=B("span",{class:"circle"},null,-1))]),_:1}),O(C,{ref:"drawer",width:n,visible:s.value,onOk:a,onCancel:u,unmountOnClose:"","data-flag":"doc-ref-effect-contaienr",footer:!1},{title:Ve(()=>[pt(tt(e.doc_name),1)]),default:Ve(()=>[O(JGe,{url:ji(i),doc_width:n,positions:e.positions},null,8,["url","positions"])]),_:1},8,["visible"])])}}},PYe=jn(TYe,[["__scopeId","data-v-3326a73d"]]),OYe={__name:"RefferenceRoot",props:{img:String,image_id:String,text:String,doc_id:String,doc_name:String,positions:Array},setup(e){return(t,n)=>(R(),We(PYe,{img:e.img,text:e.text,doc_id:e.doc_id,doc_name:e.doc_name,positions:e.positions,image_id:e.image_id},null,8,["img","text","doc_id","doc_name","positions","image_id"]))}};function LYe(e,t={}){const n=Kc(OYe,{img:t.refference.img_id||"",image_id:t.refference.img_id,text:t.refference.content_with_weight||"",doc_id:t.refference.doc_id,doc_name:t.refference.docnm_kwd,positions:t.refference.positions});return n.use(VH),n.use(Rp),n.mount(e),()=>{n.unmount()}}function L7(e,t){let n=()=>{};setTimeout(()=>{if(t!==void 0&&typeof t=="number"&&t/1>=0){const o=document.querySelectorAll(".dialog-item.dialog-absolute"),s=o.length;for(let r=0;r<s;r++)if(r===t){const a=o[r].querySelectorAll(".refflag-refflag-refflag");i(a);break}}else{const o=document.querySelectorAll(".refflag-refflag-refflag");i(o)}},100);function i(o){o.forEach((s,r)=>{const a=s.getAttribute("data-flag-index"),u=s.getAttribute("data-list-index"),l=e[u].reference;if(l){const g=l.chunks;if(g){const C=g[a],S={refference:{chunk_id:C.chunk_id,content_ltks:C.content_ltks,content_with_weight:C.content_with_weight,doc_id:C.doc_id,docnm_kwd:C.docnm_kwd,img_id:C.img_id,important_kwd:C.important_kwd,kb_id:C.kb_id,positions:C.positions,similarity:C.similarity,term_similarity:C.term_similarity,vector_similarity:C.vector_similarity}};n=LYe(s,S)}}})}return()=>{typeof n=="function"&&n()}}function yZ(e){const n=e.split("?")[0].split("/");return n[n.length-1]}function DYe(){let e={},t=[];return{setHistory:s=>{let r=null;try{r=JSON.parse(s.data)}catch(c){console.log(c)}if(!r)return;const a=s.target.url,u=yZ(a);t.indexOf(u)<0&&t.push(u),e[u]=r},getHistory:()=>{const s=[];return t.forEach(r=>{const a=e[r];s.push(a)}),s},getChatIndex:s=>t.indexOf(s)}}const FM="/assets/logo-b994dd28.jpg",bZ="/assets/word-b3b2e6cd.svg",NYe="/assets/excel-c384ae8b.svg",jYe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAA7VBMVEUAAABD02pE02o5xnFC02pC02pD02pD0mpJ221D02pD02lA2WZC02pD02s72GJE0mlD02pD02pD0mpE0mpA1GpJ221D02pD02pF2GxD02pD02pG0WhD02tD02pE02pD02lF0mlE02pD02pG0XRE02p//39NzGZE02pD02tD02pA0W1D02pD1GpD1Gs80mlC02pD02pD02pD02pD02pD02pE1GtD02pD02pD02sA/wBVqlUzzGZC0GhD02pC1mtG0mxH1GNF02xJzm1Az3BF1mdC02pC0mpD0GtF0WtD02tD02pC1GtD02pD02pD02sDNXPNAAAAT3RSTlMA/4AJdOrP1A7FvxR71Q2Po+NbTwwHlboa9fsWksqL0D/usgtqAgp5h/YcrNljEY6Y5qiKm3yu3OEBAwUbxh8oEjQVECV/bCZDTL5wzfH5wiw9OAAAAaFJREFUeJzd1dViwjAYBeD8dFgZ7kMKDIbLkMHcXd7/cdakNNImgdvtXEBIv0OhTQD9zwzGqTTYSafGpd36prrG2M0oOdDykx6vnaw0Pnvq9wCbN9Xbz2UcZyb1sZDKA5jHfm98qT1AseMrnOk8wMLrP/Ue4F30V301jRfwY1ospNQ+HENT/HzI+6cjnUeobg+aBlcgJ5XGusPHA3jYZj5fVvnQhHoIsUJW6SPMA7C1m9zLQ4YWonJfEz1MaSG4nSnEeX+dED20aGE7UUexMDsczXk8xF3fcV4H7OGELtkouey8h296Bue2PeNhpKb08EMLTWfiAI9zpGFKPARpwf2uTsO+ZmZe4sGiBboXSMMwi1IPc1pY0TmyJJ1V5vPO25E0JJN+D/e0cOneOdaQ+M05LZD1LnwqiRd2UInfQPY5ZL7/yBXQkj/UlXno8R49KLeQmyBZiiwvuwpZ0SM01Puk1yPD0vniha+AKtxe8OZD8mOMUKKl8lUZx8lwd5xl1FB5e/tUfbzcVXOc25nwtxVeVPQe57U9JB9tvczsof9ifgG53xjkDAqPvQAAAABJRU5ErkJggg==",zYe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAAAhFBMVEUAAABmZmYAAABlZWVmZmZmZmZmZmZtbW1nZ2dmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZnZ2dmZmZra2tmZmZlZWVlZWVnZ2dlZWVlZWViYmJlZWVjY2NmZmZ/f39mZmZoaGhmZmZmZmZnZ2dnZ2dnZ2dnZ2dlZWVmZmZnZ2dmZmZmZmb5zwtwAAAALHRSTlMA/wE/u/tsDpqAt+Xb8YjY4MLvE7ShYG2NQQ1JJKcCVSDNKE8vJXJOWlSs0Toyg1IAAADqSURBVHic7dbHEoMgEAZgNvZEE0ts6b2+//tFwENEjbgccuE/MvsxwDCzS3T6Y0KGxwBQYO2kwmA6Chj8gwKG2FDAYNk9BY/0HdQ1P+J20XU4DFmipGU9SVolvOItwLJp72MseA27mrHFVyn59o3YzN4wlJAptVucJezUFyS2KN7hLP97stVCscYaa6zxn/GoONQGSFxSvEBik+IUZ+fsynsMPbPGJJ6abygbYazhO0pGHGpOvENLJW/dJokkqd85irnDMD66z56nzFmnrSL38kKMeoZDYbLxlX49+3xITEihgkkmDng63/kADUcIQUK6Qu0AAAAASUVORK5CYII=",RYe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAAAPFBMVEUAAABmZmZmZmZmZmZnZ2dlZWVmZmZmZmZnZ2dmZmZnZ2dlZWVmZmZmZmZnZ2dmZmZlZWVnZ2doaGhnZ2cgyu/9AAAAFHRSTlMA/4B/gX6C3F17aT944Dl9NXdAYQWHswgAAACgSURBVHic7dbXDoAgDAVQ997+/78aiQmm0hYFoom9j5rjwFoaSZzT9DGZssLtQtM9E4prHs8oznicBsQJdjYRfGQtuTVWF1R4BLblP5DGOcAWdYXj9A6G7+yOM3KNBXvD6uB7mP6XBH8Dq7aHdkXBT7COV2xs5hjuXPBgemy4gZnxdZQq+Dvju/JvMZ1A2GKsgHWlYzHQwLo6xWVEl1hmA8xgBvZULXOQAAAAAElFTkSuQmCC",BYe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAAA4VBMVEUAAAD/uhb/uhb/uhf/uhb/uhb/uhb/uhb/uxX/zAD/uhb/uhb/uhb/uxn/uhb/uhb/uhX/vBX/vBv/uhX/uhb/uhb/uRf/uhb/uhb/uhX/uhb//wD/uRf/uhX/uhb/qgD/uhb/thj/uhb/uhb/uhf/uhf/uhb/uRb/uhb/uRf/uxX/uRX/uBX/uhb/sxr/uhb/uxH/vRX/uhf/uhb/uRb/uxX/uhb/uhf/fwD/uBz/uhb/vxX/qir/uRf/vyD/uBT/tA//uBT/vBj/uRb/uRf/uRf/vxD/uxb/vRb/vxr/uBhFXYh4AAAAS3RSTlMA//UtXEXr/XgF5t/7Hr3Jm0gTX6vhk7eXStQBC4XEA2MVzrF6Q7qih30xPiSQCp8PF8D30rPkTwISpgwGcQgyERkq3DdMECIjFCsT6pkSAAABs0lEQVR4nO3W13KDMBAFUBbcHffeu+PeS3pz+v9/UGKDxhKglcRrch9ZnWGA1QrtP2y+ijctz3gF0Pdq9/CbvTcbzh1xLuwJh44WIOTFtnQT617e2aVpAebq9pVYgJEybp9xQtVmzhbAp2ZnARpHZkp4QFuAmoqNXbB4HVPAHdYCZOXt2G4BxnJy4ptGnDgy9U1wd+sfbpnXzCaw7faqbq5iNJPlIB+SBMvJplGhZWoQt3aBXPR+rURsWQWSFCzsxQJYOO/FJi3ciKvbeIM8dJXaf3JpU58sfZp18jmk6Y/1ifSGMwHbPhmt5a3umEspifYyE+w5G9Qni12H0lDOdt0sNamxkOawp1EQ284VB2sPCZFN3PGspl0LmiX6xLeaVsdxHbNaFMcHFNvmtT0XmE3jFuAdwYYIvyA4JcJ+BDdFOINgYXtjfzdFEc4j2HE62oOdlsLexlpsZ7tPqZRlr0T5tkKv0/OnMfeRp48xpMWW51W70IJcXXSp85qZuUweyZJNhvldDWc2pGJw8Zu5oODSR/6+WUtxsf9Ynn+7F43TiHMZuyT38dqSX30erIr86h/JDy1YGvG/ZVH8AAAAAElFTkSuQmCC",FYe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAABO1BMVEVVVVVmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZlZWVlZWVmZmZmZmZmZmZmZmZmZmZmZmZkZGRmZmZmZmZlZWVlZWVmZmZmZmZnZ2dmZmZiYmJlZWVnZ2dmZmZjY2NnZ2dlZWVlZWVmZmZmZmZkZGRmZmZlZWVdXV1mZmZmZmZgYGBoaGhmZmZlZWVmZmZmZmZlZWVoaGhnZ2dkZGRlZWVmZmZmZmZnZ2dnZ2dnZ2dAQEBkZGRVVVVlZWVgYGBgYGBmZmZlZWVlZWViYmJeXl5nZ2dmZmZmZmZmZmZkZGRlZWVgYGBlZWVnZ2dlZWVhYWFmZmZnZ2dlZWVmZmZmZmZlZWVmZmZiYmJhYWFkZGRbW1toaGhpaWlnZ2dlZWVjY2NhYWGb0GQ9AAAAaXRSTlMD/wXb1fb+ds/u/MHkWua5mlNg4JPGetpuM2anOVu28U1LGrTdbBLYuEyxUS+eRwveFCUbgpJB004sYRfH6YxcRJUEPQZpIBiIXXQnEz4PMldCRBAnkMoiHuI1cbs/Xw0VHA47EYarJB3a2KbmAAACtklEQVR4nN2WZ18iMRDGsyIsCEpXQI4qICCCSlcU7Hp6trOX6+X7f4LbTDbsAkn4kXfnvCGZZ/47bDKZLHqPdnghz6YVJSbLvimazUrCCxjOybEnmFWUDzLslIXAlikJeJawirIzObs7TWGJ1JeUlVlwSFz4LZXaCznDLZvMgkNiN0IFidRNSPwDoZbEXtsx4sQjrb4nTJ2EfKt4GJ54wSGxnYyXJ0n95enkFrIlyDwKE48v+kmIpeoHNfcjLQ09MUIv1ON6CWS6GyPYx6ZaCjqMmsLmpeLeoD8eLKmJz33UYx2UwaaNRzsZcrxHtB2GpijnBtxiPZzsBZof8lqWA6HVr+a3ynYztzHoKyargvREpxV37zlvvM3oyiSfA+4lGv2NOEnqTjor3AvdzgpzEK5Sh0qeZV8bz65B/ZhYhEL6Cm+OYzf1/hIyOyNwbpXcGDqVgzBbZNDt0+mUkCWrZfMNCzq99MBnH3is1mpnQPLf89h7PwTMMI+nl9CudTa77iJsv+YHrUhWco5J/yHbqxR5fyxB9C2WtkW0PI9F6JocAZYEgvWazyKUxyFxlgKnXW8uHIPOF2QpcKibQhjOiIel9LAyL4QXRwqXWgYri0K4gUPqLOUcKw0ROwU1yjyZ36EyRe17BUqMzo4CHVftiM6gwFYEMPRC7W7EdlOFTY9Xb8gcbg7RjXeMA7ZheNpv445TcGzj8S8BHMMBbe3d2+QE6VZ520WojUdpAQxIGBX7HzPUGnlyXVb4bBYCu/oZwPsK+w7mvIIf/m33Opgupq3tBayTYVEuDFVE7W6POOt3Zu8BF/YYQQumhnFpumlqXDhIQx4j+2b/foS0IPqdwjS90zjU8rBSVvVt93Nh2CHrMfPOOoMiEWROdrTDPPrdoNvfkvZk/mqj8tUhX0Ro4/WnSP5f7B/4VDZYIGbiHQAAAABJRU5ErkJggg==",VYe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAAA81BMVEVVVVVmZmZmZmZmZmZmZmZlZWVmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZlZWVJSUlkZGRlZWVlZWVlZWVmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZlZWVkZGRnZ2ddXV1mZmZoaGhmZmZaWlpmZmZmZmZjY2NmZmZlZWVnZ2dlZWVmZmZmZmZmZmZjY2NmZmZiYmJmZmZmZmZmZmZmZmZVVVVhYWFhYWFlZWVgYGBkZGRiYmJmZmZkZGRdXV1mZmZmZmZgYGBgYGBiYmJkZGRnZ2dmZmZmZmZmZmZjY2NkZGRmZmZhfb6eAAAAUXRSTlMG//BzwUTS8oS6b3bg1f1fteYHQpZps/WPnX07+M7HeNxUNaML6hurEcwmH+MqUTKLp4Akyho3mFZ6CSIVvxheLwo4FvlGCBANFyqvSw8SIedkJ+y3AAABxklEQVR4nO2WZ1/CQAzGe1VZUrbsoQwFZKjg3nsr3//TSHKlvW5yP1/yvGma3J/eSHIoK/2bUgWtFZvIsRGG2pRhX1UOs/ovHY7pLGM9MpuJGzArU+EdvuAwPsZEeB2glPKBcI7GNhHaUJQjeEZp8CEwobkxBiNOYvfxw0kw0SLBB0B07qXgb9xkfkJkGBOk8C4F8wQ55S9UmCdIXw7GBMnrL/zATTX92ZNFgpiwRaGRD2wkiAfMEt41LiQIqOBCe3cITJCZ8Rp1g8PHNihbmj4Z0XPD3Y9E10UNMK6fo66rkvjL1RvvLSnCgIHoadcs0/r0ZvkWdkSH5buMrfmwXVy04BjaNsQPfoAB24ID+4Va3p2b2HH94CQMSAkODRwNNANhvAyKggPn+rMcvAcDtuwwNwPhEAzISsJVGCBmGAGe2E+KAn9BvC4JY39rScI5a93Q4GuIn0nCaYjfycFvEE5cyMHYHcWyoMC39rKgwI6yoMCOsqDAjrKgwFgW0DRMzcyT94crEFWtPsw5bdQNgitTiC7uQF3POO9lZVxFXBnXS8VDtbZtPo/Cv8UAqZeO1Qx7S7JaxWUvXhq1WSKITOet+bESTX8ZphmafNtiEwAAAABJRU5ErkJggg==",HYe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAAA9lBMVEVVVVVmZmZmZmZiYmJmZmZnZ2dmZmZlZWVmZmZmZmZmZmZmZmZmZmZlZWVmZmZJSUlmZmZlZWVlZWVmZmZmZmZmZmZmZmZiYmJlZWViYmJbW1tmZmZmZmZmZmZlZWVmZmZmZmZmZmZeXl5VVVVmZmZmZmZmZmZkZGRlZWVmZmZkZGRlZWVmZmZkZGRmZmZlZWVnZ2dmZmZmZmZnZ2dlZWVmZmZmZmZnZ2dVVVVjY2NkZGRlZWVmZmZgYGBnZ2djY2NiYmJlZWVlZWVZWVlmZmZdXV1kZGRmZmZmZmZgYGBmZmZdXV1lZWVoaGhjY2NnZ2dlZWVnZ2cIwji2AAAAUnRSTlMG//kNfezBROz4u4PZfOQH7miXf+HdyxpWLw6bb/MxoPajEwmIv7RKXS0cTHs/I2FK0nZXyWmUtwwkOKZxEMc7J6uQFMwWVA8eGLELxBssTSYq6/fHRQAAAdlJREFUeJztldd6wjAMhe2WFfaGMgulrAIto6zuvdf7v0yRmgQ7xBnuLedKOfr+OJElm2z1D5WaAWojJVvsm6H9jB2p6vV6g+2UHbKUpl8M7EXYMUvp+wEPH7tgKX3k4SB4vqWglBHIBlZBfYyVSfJpBbyKaB96Gqx+YobLLsAqi9j1yoQUIFS47AlYEyHsgbQXw10Id7jsOVg1STgJVkQSPgQrLwlHwdqTg9Ghhr5xCi83N8853AZnJgmHwLmVhG/AOZWEh+D4JWEci64cPLAeC2u4BUZWEi5ZjwU3knfGkcSx8DhbGRdivxLHYmwH4zGUT0PYY3I4FsIzSIMZ/TA5NCxYkuLZIpuL28Ezjp28sTn8j4aY7XLstM4lsdo07WMVTD3peZwblHJZvDK8ObdvKAjqTEsXvPAYEn0XNoFRf/u6UgIfc8K/SpisrfVgDO/AqrgkpFLDzeakpo7wQXw6ojp+XXiBaDDegUFrlhU7Op/4oi85uApxOCYFf+xAbHG+WcHYIPG5FDzHvhc2iKn0ats1iJlw05+dNIiJmsC0HTaIUVimwMB1g6AW2OvxBi7ccgmT0brF3TSIqnsdTrhmyXdWZQMF97B+ZI5kWEIe8tNhNCXHbmWiXzQYG5pOD6G6AAAAAElFTkSuQmCC",WYe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAAAZlBMVEUAAABmZmZmZmZpaWlmZmZmZmZpaWlmZmZkZGRoaGhmZmZlZWVmZmZmZmZmZmZnZ2dmZmZnZ2dnZ2dmZmZmZmZnZ2doaGhnZ2dmZmZnZ2dmZmZiYmJmZmZlZWVxcXFmZmZmZmZmZmY+0B/iAAAAInRSTlMA/4An6+gi3Rcb4CvY7hRnwHg/Xn9tFlX4fHoao1EJ9BnknduSLwAAAQNJREFUeJzt1kkSgjAUBFAFxAGVWcDZ+19SQdCEdJL/0YVW0QsWIQ9CQ1GZjPnDuGnl9NOcUEYTxeblVE1zRhl9XlNICCgVH6Al4uITvK8HI3NhRx12YBFS/Ntw7M+0y7ZiwbJxa1dZfcx4uLNLOM+MXxbPM+K35WPBsrFouViyTOxKloddT7Is3Np5Z3Ew7uzCaDEmWoipFmGyBRhbWtua+5Kwbs0UHOiel4CDja4rO27tGvRsxZ3dqpaKoaUs+1EXtpTCXE9jaa9qh+2Av+eIv4w12wolUT2v6uFT8zkTk/bwlWFL5QvCmziYUK2iEDYdplxi2GQS2wtz8rP9lYz5udwB2RUKpDW81egAAAAASUVORK5CYII=";const UYe=se({components:{DialogFeedback:hWe},props:["open","suggestions","isSetting","readonly","type","list","agentId","dialogId","reference"],setup(e,{emit:t}){const n=he([[{}]]),i={},o=fe=>YWe(fe),s=(fe,pe)=>{const je=` <span class="circle" data-list-index="${pe||0}"></span>`;return fe.replace(/##\d\$\$/g,je)},{helper:r,ajax:a}=Dt("$global"),u=he(r.read("userName")||""),c=DYe(),l=e.list.map((fe,pe)=>({answer:fe.answer&&s(fe.answer,pe),question:fe.question,reference:fe.reference&&fe.reference.chunks&&fe.reference.doc_aggs?fe.reference.doc_aggs.map(je=>({id:je.doc_id,doc_name:je.doc_name,page:0,content_ltks:[fe.reference.chunks.find(Y=>Y.doc_id==je.doc_id).content_ltks]})):[],file:fe.files&&fe.files.length>0?fe.files.map(je=>{const Y=window.location.port?`:${window.location.port}`:"";return{file_type:"word",file_name:je.file_name,file_url:`http://${window.location.hostname}${Y}${je.file_url}`}})[0]:null})),g=it(l||[]),C=he(0),S=he(!1),_=it([]);let A=g.length;const y=he(""),d=he({}),v=async()=>{await fn(),y.value&&(y.value.scrollTop=y.value.scrollHeight)};let m=null;const f=()=>{window.clearInterval(m),t("set-readonly",!1),g[A]&&(g[A].other={token:"4.0s | Tokens"}),v(),A+=1},p=fe=>{g.splice(A,1,fe),C.value=Math.random(),v()},h=fe=>{e.readonly||(_[fe].save=!_[fe].save)},b=fe=>{e.readonly||(_[fe].open=!_[fe].open)},w=()=>{e.readonly||(S.value=!0)},k=()=>{S.value=!1},$=()=>{S.value=!1},E=fe=>{e.readonly},N=fe=>{e.readonly||r.copyText(fe,"复制成功")},j=fe=>{e.readonly||setTimeout(()=>{r.$bus.emit("send-message",fe)},200)},z=(fe,pe)=>{_[fe].documentOpenIndex===pe?_[fe].documentOpenIndex=-1:_[fe].documentOpenIndex=pe},V=()=>{},W=fe=>{fe.doc_name;const pe=fe.id,je=gZ(pe);window.open(je)},H=fe=>{const pe=i;return fe.capacity={type:pe.type,text:pe.text,status:"loading",data:null},_[A]={save:!1,open:!1,documentOpenIndex:-1},p(fe),fe},U=he(null),Q=he(!1),q=he(""),ae=he([]),ne=he(void 0),be=he(void 0),te=he(void 0),Ie=he(void 0),$e=(fe,pe=null)=>{let je={question:fe,capacity:null,answer:"",other:null,file:null};return p(je),je},Me=fe=>{fe.answer=q.value,fe.reference=ae.value,fe.image_url=ne.value,fe.code=te.value,fe.file=be.value,fe.sql=Ie.value,p(fe)},ge=()=>{Q.value=!0,t("set-readonly",!0),U.value.capacity=i,Me(U.value)},Se=fe=>{window.open(fe,"_blank")};return ei(()=>{r.$bus.off("send-message"),r.$bus.off("clear-message"),r.$bus.off("stop-writing"),r.webSocket.close()}),Yt(()=>{v(),L7(e.list);let fe=[];function pe(){const Y=r.read("token");if(r.read("sendData")&&r.read("sendData").agent_id=="basic_excel_talk"){const Z=r.read("sendData");r.webSocket=a.message.create(Y,Z.agent_id,Z.chat_id,e.type),r.write("sendData",{})}else r.webSocket=a.message.create(Y,e.agentId,e.dialogId,e.type);r.webSocket.onopen=function(Z){fe.forEach(ee=>{r.webSocket.send(ee)}),fe=[]}}function je(Y){r.webSocket.readyState===0&&fe.push(Y),r.webSocket.readyState===1&&r.webSocket.send(Y),r.webSocket.readyState===2&&console.log("web socket正在关闭"),r.webSocket.readyState===3&&(fe.push(Y),pe())}pe(),r.webSocket.onmessage=Y=>{const Z=Y.target.url,ee=yZ(Z);c.setHistory(Y);let ce=null;try{ce=JSON.parse(Y.data)}catch(we){console.log(we)}if(!ce)return;const{type:xe,reference:re,step_message:le,files:ve}=ce;let{message:De}=ce;if(!U.value)return;if(xe==="stream"&&(le=="文件上传完成,开始解析"&&t("changeParse",!0),le=="文件解析完成"&&t("changeParse",!1),ve&&ve.length>0?(U.value.file=ve[0],p(U.value)):(q.value+=le?o(le)+"</br>":De,q.value&&!Q.value&&ge(),Me(U.value))),xe==="message"){const we=c.getChatIndex(ee);if(De=s(De,we),q.value=o(De),ae.value=[],re&&re.doc_aggs&&re.doc_aggs.length>0&&(ae.value=re.doc_aggs.map(me=>({id:me.doc_id,doc_name:me.doc_name,page:0,content_ltks:[re.chunks.find(Ae=>Ae.doc_id==me.doc_id).content_ltks]}))),e.type=="smartData"){q.value="正在处理中...";const{image_url:me,excel_url:Ae,excel_name:Fe,code:Ne,sql:ze}=JSON.parse(Y.data),Ue=window.location.port?`:${window.location.port}`:"";if(me&&(ne.value=`http://${window.location.hostname}${Ue}${me}`),Ae){const et={file_type:"excel",file_url:`http://${window.location.hostname}${Ue}${Ae}`,file_name:`${Fe}.xlsx`||"点击下载"};be.value=et}Ne&&(te.value=o(Ne)),ze&&(Ie.value=o(ze))}if(e.type=="question"){const{file_url:me,file_name:Ae}=JSON.parse(Y.data),Fe=window.location.port?`:${window.location.port}`:"";if(me){const Ne={file_type:"word",file_url:`http://${window.location.hostname}${Fe}${me}`,file_name:`${Ae}.docx`||"点击下载"};be.value=Ne}}q.value&&!Q.value&&ge(),Me(U.value)}xe==="close"&&(q.value||(ge(),q.value=o(De),Me(U.value)),f(),q.value="",Q.value=!1);const Ee=c.getHistory();L7(Ee)},r.$bus.on("send-message",Y=>{d.value=r.dialogConfig;const Z=e.type==="report"?Y.inputs.report_name:Y,ee=$e(Z);U.value=H(ee);let ce=e.type==="report"||e.type==="excel"?Y:{message:Y};e.type==="doc"&&(ce.doc_ids=[r.read("docId")]);const xe=JSON.stringify(ce);je(xe)}),r.$bus.on("clear-message",()=>{g.splice(0)}),r.$bus.on("stop-writing",()=>{f()})}),{dialogId:e.dialogId,goKnowledge:V,randomKey:C,showFeedback:S,copyAnswer:N,dialogList:g,getHTML:o,selectSuggestion:E,dialogScroll:y,reQuestion:j,menuList:_,saveAnswer:h,openCapacity:b,feedbackAnswer:w,handleOk:k,handleCancel:$,stopWriting:f,knowledgeList:n,dialogConfig:d,userName:u,downloadFile:Se,openDocument:z,openDocuementPage:W}}}),ZYe=["data-chat"],GYe={class:"dialog-flex",ref:"dialogScroll"},YYe={key:0,class:"section-open"},XYe={class:"dialog-header"},KYe={class:"dialog-footer"},JYe={class:"section-suggestions"},qYe=["onClick"],QYe=["data-item-index"],eXe={key:0,class:"dialog-header"},tXe={class:"user-name",style:{"background-color":"rgb(255, 110, 110)"}},nXe={key:1,class:"dialog-footer"},iXe={style:{"margin-top":"0"}},rXe={key:2,class:"dialog-header"},oXe={key:3,class:"dialog-code-footer"},sXe={key:0},aXe={key:0,class:"dialog-code-footer-title"},lXe=["innerHTML"],cXe={key:1},uXe={key:0,class:"dialog-code-footer-title"},dXe=["innerHTML"],fXe=["onClick"],hXe={key:2},pXe={key:0},mXe={key:1},vXe=["onClick"],gXe={style:{color:"rgba(153, 153, 153, 1)","font-size":"12px"}},yXe={key:3,style:{"margin-top":"10px","font-size":"18px","font-weight":"bold"}},bXe={key:0,class:"paper-wrap"},kXe=["innerHTML"],CXe={key:5,class:"dialog-footer"},SXe=["innerHTML"],wXe={key:6,class:"knowledge-wrap"},_Xe=["onClick"],IXe={class:"knowledge-detail"},xXe={class:"knowledge-content"},$Xe={class:"knowledge-footer"},AXe=["onClick"],EXe={key:7,style:{"margin-left":"50px"}},MXe=["onClick"],TXe={key:0,src:NYe},PXe={key:1,src:bZ},OXe={key:9,class:"dialog-other"},LXe={key:0},DXe={key:1},NXe=["onClick"],jXe=["onClick"],zXe=["onClick"],RXe={key:0,src:BYe,width:"15"},BXe={key:1,src:FYe,width:"15"};function FXe(e,t,n,i,o,s){const r=Pe("a-avatar"),a=Pe("icon-arrow-right"),u=Pe("a-spin"),c=Pe("icon-check-circle-fill"),l=Pe("icon-caret-right"),g=Pe("icon-caret-down"),C=Pe("a-typography-paragraph"),S=Pe("a-popover"),_=Pe("a-image"),A=Pe("icon-download"),y=Pe("a-tooltip"),d=Pe("dialog-feedback");return R(),X("div",{class:"dialog-flex-wrap","data-chat":e.dialogId},[B("div",GYe,[e.open?(R(),X("div",YYe,[B("header",XYe,[O(r,{shape:"circle",size:28},{default:Ve(()=>t[1]||(t[1]=[B("img",{alt:"avatar",src:FM},null,-1)])),_:1})]),B("footer",KYe,[B("p",null,tt(e.open),1)])])):Re("",!0),B("div",JYe,[(R(!0),X(ft,null,dn(e.suggestions,(v,m)=>(R(),X("div",{class:G(["section-suggestion",e.readonly?"disabled":""]),key:m,onClick:f=>e.selectSuggestion(v)},[pt(tt(v),1),O(a)],10,qYe))),128))]),e.dialogList.length>0?(R(),X("div",{class:"dialog-list",key:e.randomKey},[(R(!0),X(ft,null,dn(e.dialogList,(v,m)=>{var f,p;return R(),X("div",{class:G(["dialog-item",e.isSetting?"":"dialog-absolute"]),key:v.key,"data-item-index":m},[v!=null&&v.question?(R(),X("div",eXe,[B("div",tXe,tt(e.userName.slice(0,1)),1)])):Re("",!0),v!=null&&v.question?(R(),X("div",nXe,[B("p",iXe,tt(v.question),1)])):Re("",!0),v!=null&&v.capacity?(R(),X("div",rXe,t[2]||(t[2]=[B("img",{alt:"avatar",src:FM,width:"28"},null,-1)]))):Re("",!0),v.code||v.sql?(R(),X("div",oXe,[v.code?(R(),X("div",sXe,[v.code?(R(),X("p",aXe,"Python:")):Re("",!0),B("span",{innerHTML:v.code},null,8,lXe)])):Re("",!0),v.sql?(R(),X("div",cXe,[v.sql?(R(),X("p",uXe,"SQL:")):Re("",!0),B("span",{innerHTML:v.sql},null,8,dXe)])):Re("",!0)])):v!=null&&v.capacity?(R(),X("div",{key:4,class:"dialog-footer",style:Te({display:e.dialogConfig.type==="paper"?"inline-block":"block"})},[e.type==="knowledge"?(R(),X("div",{key:0,onClick:h=>e.openCapacity(m),class:G([e.readonly||v.capacity.status==="loading"?"disabled":""])},[v.capacity.status==="loading"?(R(),We(u,{key:0,size:18})):(R(),We(c,{key:1,size:18})),B("span",null,tt(v.capacity.status==="loading"?"小数正在检索":"查看检索信息"),1),v.capacity.status==="loaded"&&!((f=e.menuList[m])!=null&&f.open)?(R(),We(l,{key:2,size:"18"})):Re("",!0),v.capacity.status==="loaded"&&((p=e.menuList[m])!=null&&p.open)?(R(),We(g,{key:3,size:"18"})):Re("",!0)],10,fXe)):gi((R(),X("div",{key:1,class:G([e.readonly||v.capacity.status==="loading"?"disabled":""])},[O(u,{size:18}),B("span",null,tt(e.type==="excel"?"正在为您合并...":"正在为您搜索答案..."),1)],2)),[[ki,v.capacity.status==="loading"]]),e.type==="knowledge"&&v.capacity.status==="loaded"?gi((R(),X("section",hXe,[v.capacity.data.list?(R(),X("div",pXe,[(R(!0),X(ft,null,dn(v.capacity.data.list,(h,b)=>(R(),X("p",{key:b},[O(C,{ellipsis:{rows:1,css:!0},style:{flex:1,margin:"0"}},{default:Ve(()=>[pt(tt(h),1)]),_:2},1024)]))),128))])):Re("",!0),v.capacity.data.documents?(R(),X("div",mXe,[(R(!0),X(ft,null,dn(v.capacity.data.documents,(h,b)=>(R(),X("div",{key:b},[B("div",{onClick:w=>e.openDocument(m,b),class:G([e.readonly?"disabled":""])},[B("span",null,tt(h.type),1),O(C,{ellipsis:{rows:1,css:!0},style:{flex:1,margin:"0"}},{default:Ve(()=>[B("span",null,tt(h.title),1)]),_:2},1024),B("span",null,[(R(!0),X(ft,null,dn(h.list,(w,k)=>(R(),X("em",{key:k},tt(w.title),1))),128))]),b===e.menuList[m].documentOpenIndex?(R(),We(g,{key:0,size:"12"})):(R(),We(l,{key:1,size:"12"}))],10,vXe),gi(B("div",null,[(R(!0),X(ft,null,dn(h.list,(w,k)=>(R(),X("p",{key:k},[B("span",null,tt(w.title),1),O(C,{ellipsis:{rows:3,css:!0},style:{flex:1,margin:"0"}},{default:Ve(()=>[B("span",gXe,tt(w.content),1)]),_:2},1024)]))),128))],512),[[ki,b===e.menuList[m].documentOpenIndex]])]))),128))])):Re("",!0)],512)),[[ki,e.menuList[m].open]]):Re("",!0),e.type==="knowledge"&&v.answer?(R(),X("p",yXe," 答案生成结果 ")):Re("",!0),v.answer?(R(),X("p",{key:4,style:Te({"margin-top":e.type==="knowledge"?"12px":"0"})},[e.type==="paper"?(R(),X("span",bXe,t[3]||(t[3]=[B("img",{src:bZ},null,-1),B("span",null,[B("b",null,"黄冈试卷考试题"),B("em",null,"DOCX,13.19KB")],-1)]))):(R(),X("span",{key:1,innerHTML:e.getHTML(v.answer)},null,8,kXe))],4)):Re("",!0)],4)):(R(),X("div",CXe,[B("span",{innerHTML:e.getHTML(v.answer)},null,8,SXe)])),(e.type==="knowledge"||e.type==="knowledgeQuiz")&&v.reference&&v.reference.length>0?(R(),X("div",wXe,[t[5]||(t[5]=B("header",null,[B("p",null,"来源")],-1)),B("section",null,[(R(!0),X(ft,null,dn(v.reference,(h,b)=>(R(),X("div",{key:b},[O(S,{title:h.doc_name,position:"left"},{content:Ve(()=>[B("div",IXe,[B("div",xXe,tt(h.content_ltks),1),B("div",$Xe,[t[4]||(t[4]=B("p",null,"检索片段",-1)),B("p",null,[(R(!0),X(ft,null,dn(h.content_ltks,(w,k)=>(R(),X("span",{key:k,class:G({active:h.page===k}),onClick:()=>{h.page=k}},tt(k+1),11,AXe))),128))])])])]),default:Ve(()=>[B("div",{onClick:w=>e.openDocuementPage(h)},[B("span",null,tt(b+1),1),B("span",null,tt(h.doc_name),1)],8,_Xe)]),_:2},1032,["title"])]))),128))])])):Re("",!0),v!=null&&v.image_url?(R(),X("div",EXe,[O(_,{width:"500",src:v==null?void 0:v.image_url},null,8,["src"])])):Re("",!0),v.file?(R(),X("div",{key:8,class:"paper-wrap",onClick:h=>e.downloadFile(v.file.file_url)},[v.file.file_type==="excel"?(R(),X("img",TXe)):Re("",!0),v.file.file_type==="word"?(R(),X("img",PXe)):Re("",!0),B("span",null,[B("b",null,tt(v.file.file_name),1)]),O(A,{style:{"margin-right":"24px","font-size":"32px"}})],8,MXe)):Re("",!0),v!=null&&v.other?(R(),X("div",OXe,[e.isSetting?(R(),X("p",LXe,[t[6]||(t[6]=B("img",{src:jYe,width:"16"},null,-1)),B("span",null,tt(v.other.token),1)])):(R(),X("p",DXe)),B("div",null,[O(y,{content:"重新生成"},{default:Ve(()=>[B("p",{onClick:h=>e.reQuestion(v.question),class:G([e.readonly?"disabled":""])},t[7]||(t[7]=[B("img",{src:zYe,width:"15"},null,-1)]),10,NXe)]),_:2},1024),O(y,{content:"复制"},{default:Ve(()=>[B("p",{onClick:h=>e.copyAnswer(v.answer),class:G([e.readonly?"disabled":""])},t[8]||(t[8]=[B("img",{src:RYe,width:"15"},null,-1)]),10,jXe)]),_:2},1024),O(y,{content:"收藏"},{default:Ve(()=>[e.isSetting?Re("",!0):(R(),X("p",{key:0,onClick:h=>e.saveAnswer(m),class:G([e.readonly?"disabled":""])},[e.menuList[m].save?(R(),X("img",RXe)):(R(),X("img",BXe))],10,zXe))]),_:2},1024),O(y,{content:"点赞"},{default:Ve(()=>[e.isSetting?Re("",!0):(R(),X("p",{key:0,class:G([e.readonly?"disabled":""])},t[9]||(t[9]=[B("img",{src:VYe,width:"15"},null,-1)]),2))]),_:1}),O(y,{content:"反馈"},{default:Ve(()=>[e.isSetting?Re("",!0):(R(),X("p",{key:0,onClick:t[0]||(t[0]=(...h)=>e.feedbackAnswer&&e.feedbackAnswer(...h)),class:G([e.readonly?"disabled":""])},t[10]||(t[10]=[B("img",{src:HYe,width:"15"},null,-1)]),2))]),_:1}),O(y,{content:"分享"},{default:Ve(()=>[e.isSetting?Re("",!0):(R(),X("p",{key:0,class:G([e.readonly?"disabled":""])},t[11]||(t[11]=[B("img",{src:WYe,width:"15"},null,-1)]),2))]),_:1})])])):Re("",!0)],10,QYe)}),128))])):Re("",!0)],512),e.isSetting?Re("",!0):(R(),We(d,{key:0,showFeedback:e.showFeedback,onHandleCancel:e.handleCancel,onHandleOk:e.handleOk},null,8,["showFeedback","onHandleCancel","onHandleOk"]))],8,ZYe)}const VXe=jn(UYe,[["render",FXe],["__scopeId","data-v-fb5e923b"]]);const HXe=se({props:["navId"],setup(e,{emit:t}){const n=he(!1),{ajax:i,helper:o,config:s}=Dt("$global"),r=he(o.read("userName")||"");r.value||o.goLink("/login");const a=(l,g)=>{t("select-nav",{id:l,title:g})},u=()=>{o.reset(),o.goLink("/login")},c=async()=>{const{ragflow_token:l}=await i.user.getToken();l&&window.open(`http://${window.location.hostname}:11080/authorization?ragflow_token=${l}`,"_blank")};return{slider:s.slider,getAssetURL:o.getAssetURL,userName:r,handleClick:a,openHelp:n,toRagflow:c,logout:u}}}),WXe=["onClick"],UXe=["src"],ZXe=["src"],GXe={style:{"background-color":"rgb(255, 110, 110)"}},YXe={class:"user-popover"},XXe={style:{"background-color":"rgb(255, 110, 110)"}},KXe={class:"item"};function JXe(e,t,n,i,o,s){const r=Pe("icon-question-circle"),a=Pe("icon-import"),u=Pe("a-popover"),c=Pe("a-modal");return R(),X("main",null,[B("header",{onClick:t[0]||(t[0]=l=>e.handleClick(-1))},t[4]||(t[4]=[B("img",{src:FM},null,-1)])),B("section",null,[(R(!0),X(ft,null,dn(e.slider,(l,g)=>(R(),X("div",{key:g,onClick:C=>e.handleClick(l.id,l.title),class:G({active:l.id===e.navId})},[B("div",null,[B("img",{src:e.getAssetURL(`/src/assets/slider/${l.icon}.svg`),width:"24",class:"img-normal"},null,8,UXe),B("img",{src:e.getAssetURL(`/src/assets/slider/${l.icon}-1.svg`),width:"24",class:"img-hover"},null,8,ZXe),B("p",null,tt(l.title),1)])],10,WXe))),128))]),O(u,{position:"rt"},{content:Ve(()=>{var l;return[B("div",YXe,[B("header",null,[B("div",XXe,tt((l=e.userName)==null?void 0:l.slice(0,1)),1),B("p",null,tt(e.userName),1)]),B("section",null,[B("div",KXe,[B("div",{onClick:t[1]||(t[1]=(...g)=>e.toRagflow&&e.toRagflow(...g))},[O(r,{size:"large"}),t[5]||(t[5]=B("p",null,"知识管理系统",-1))])])]),B("div",{class:"item",onClick:t[2]||(t[2]=(...g)=>e.logout&&e.logout(...g))},[B("div",null,[O(a,{size:"large"}),t[6]||(t[6]=B("p",null,"退出登录",-1))])])])]}),default:Ve(()=>{var l;return[B("footer",null,[B("div",GXe,tt((l=e.userName)==null?void 0:l.slice(0,1)),1),B("p",null,tt(e.userName),1)])]}),_:1}),O(c,{visible:e.openHelp,"onUpdate:visible":t[3]||(t[3]=l=>e.openHelp=l),footer:!1,width:"800px"},{title:Ve(()=>t[7]||(t[7]=[pt("版本说明")])),default:Ve(()=>[t[8]||(t[8]=B("div",{style:{padding:"0 30px",height:"300px"}},[B("div",null,[B("p",null,[B("strong",null,"版本号:v2.1")]),B("ol",null,[B("li",null,"【首页】只需一个小小的动作,就可以触发AI会议系统,操作更便捷。"),B("li",null,"【首页】新增实用性极强的版本信息,轻松了解产品能力。"),B("li",null,"【大模型】阅读理解能力提升,可以通过智能问答、文档智能、文库问答、文档出题体验。"),B("li",null," 【文档出题】对出题的随机性设置,进一步增强题目的多样性和创新性,默认参数为1时题目数量和内容最佳,当希望内容更随机、更多样时,可调大参数值。 ")]),B("p",null,[B("strong",null,"版本号: v2.0")]),B("ol",null,[B("li",null,"【界面优化】使用全新配色UI,更美观、更方便。")]),B("ul",null,[B("li",null,"让插件和prompt合集显性化,一目了然"),B("li",null,"新增鼠标悬停解释说明功能,方便新手快速入门"),B("li",null,"新增prompt搜索框,方便快速检索")]),B("ol",{start:"2"},[B("li",null,"智能问答板块可支持显示\\隐藏侧边栏"),B("li",null,"支持prompt点击填充输入框,更快捷"),B("li",null,"新增图生文能力,快速识别图片内容并进行对话交互"),B("li",null,"模型基础能力提升,各模块更快更准更强"),B("li",null,"新增RPA进度显示,方便查看自动化工作流进程"),B("li",null,"文库容量全面升级,实现5倍的扩充"),B("li",null,"新增对接ISC系统,实现文档的分权限管理")]),B("p",null,[B("strong",null,"版本号: v1.6")]),B("ol",null,[B("li",null,"文档创作")]),B("ul",null,[B("li",null,"答案生成的准确性提升")]),B("ol",{start:"2"},[B("li",null,"文库问答")]),B("ul",null,[B("li",null,"优化多源多答案功能"),B("li",null,"解决文档溯源过程中部分显示问题"),B("li",null,"改进检索关键字不准确问题"),B("li",null,"提升在多文档中生成答案的融合能力")]),B("ol",{start:"3"},[B("li",null,"文档出题")]),B("ul",null,[B("li",null,"提升出题的速度及处理效率")]),B("p",null,[B("strong",null,"版本号: v1.5")]),B("ol",null,[B("li",null,"插件优化与新增")]),B("ul",null,[B("li",null,[pt(" 文库问答 "),B("ul",null,[B("li",null,"基于知识库的多文档,实现多源多答案功能。")])]),B("li",null,[pt(" 文档创作 "),B("ul",null,[B("li",null,"支持各类型公文的创作,包括讲话稿、发言稿,工作总结、方案,述职报告等;"),B("li",null,"支持对字数的要求生成文档,包括 200 字、500 字左右等;"),B("li",null,"支持对公文的续写、扩写(对生成公文指定的部分继续完善),最多支持一分钟 3 轮。")])]),B("li",null,[pt(" 文档出题 "),B("ul",null,[B("li",null,"支持流式输出;"),B("li",null,"解决卡顿问题;"),B("li",null,"对题目数量的识别、不同类型题的判断优化。")])])]),B("ol",{start:"2"},[B("li",null,"后端管理平台")]),B("ul",null,[B("li",null,"支持对知识库中的文档,设置为个人文档/组织文档。")]),B("p",null,[B("strong",null,"版本号: v1.4")]),B("ol",null,[B("li",null,"首页")]),B("ul",null,[B("li",null,"对接 ISC 系统,基于用户信息实现相关功能"),B("li",null,"视觉优化")]),B("ol",{start:"2"},[B("li",null,"插件优化与新增")]),B("ul",null,[B("li",null,[pt(" 文档智能 "),B("ul",null,[B("li",null,"新增功能——支持多文档上传;"),B("li",null,"新增功能——支持文件上传列表中,选择任意文档问答"),B("li",null,"性能优化")])]),B("li",null,[pt(" 文档出题 "),B("ul",null,[B("li",null,"新增插件"),B("li",null,"基于上传的文档实现出题,支持出判断题、单项选择题、多项选择题、问答题")])]),B("li",null,[pt(" 文库问答 "),B("ul",null,[B("li",null,"录入技术发展部、党建部、人资部等组织材料,实现相关的知识问答。"),B("li",null,"性能优化")])])]),B("p",null,[B("strong",null,"版本号: v1.3")]),B("ol",null,[B("li",null,"首页")]),B("ul",null,[B("li",null,"增加深色主题。"),B("li",null,"右上角新增提示推荐、版本说明。"),B("li",null,"提示推荐: 提示推荐: 新增更多分类,实现多种推荐。"),B("li",null,"插件: 新增“出小差”,支持问答式生成出差审批表。")]),B("p",null,[B("strong",null,"版本号: v1.2")]),B("ol",null,[B("li",null,"开放域对话")]),B("ul",null,[B("li",null,"在不选插件的情况下,回答多领域问题。")]),B("ol",{start:"2"},[B("li",null,"选择插件")]),B("ul",null,[B("li",null,[pt(" 文档智能 "),B("ul",null,[B("li",null,"支持单文件上传,实现文件问答。"),B("li",null,"支持单文件上传,实现局域上传记录的多文档问答。"),B("li",null,"文档管理,支持上传删除。")])])]),B("ol",{start:"3"},[B("li",null,"以文生图:")]),B("ul",null,[B("li",null,"根据用户的需求描述或输入文本,输出与之相匹配的图片。")]),B("ol",{start:"4"},[B("li",null,"文档创作:")]),B("ul",null,[B("li",null,"支持对给定的标题、关键词、大纲或多种组合方式编写公文。"),B("li",null,"例 1.根据标题生成一篇公文,标题 XX;"),B("li",null,"例 2.根据标题和大纲生成一篇公文,标题:XX;大纲:XX")]),B("ol",{start:"5"},[B("li",null,"文库问答:")]),B("ul",null,[B("li",null,"通过对各部门的知识库构建,实现相关知识的问答。")]),B("br")])],-1))]),_:1},8,["visible"])])}const qXe=jn(HXe,[["render",JXe],["__scopeId","data-v-6ae7efff"]]),QXe="/assets/plus-d97358bc.svg",eKe="/assets/search-f9494035.svg",tKe="/assets/full-0b1728c7.svg",D7="/assets/ok-ee907b39.svg";const nKe=se({props:["selectId","list"],setup(e,{emit:t}){const{helper:n}=Dt("$global"),i=he(!1),o=he(!1),s=he(!1),r=he(!1),a=he(""),u=(v,m)=>{const f=list.value.findIndex(p=>p.id===m);list.value[f].isTop=v},c=v=>{const m=list.value.findIndex(f=>f.id===v);list.value.splice(m,1),r.value=!1},l=v=>{const m=list.value.findIndex(f=>f.id===v);list.value[m].isSelected=!list.value[m].isSelected,s.value=list.value.every(f=>f.isSelected)},g=()=>{s.value=!s.value,list.value.forEach(v=>v.isSelected=s.value)},C=()=>{list.value.forEach(v=>v.isSelected=!1),o.value=!1,s.value=!1,r.value=!1};return{openSearch:i,handleDeleteButton:v=>{r.value=!0,a.value=v},setTop:u,editItem:v=>{const m=list.value.findIndex(E=>E.id===v),f=document.getElementById(`history-${v}`),p=f.cloneNode(),{width:h,height:b,top:w,left:k}=f.getBoundingClientRect();p.style.width=`${h}px`,p.style.height=`${b}px`,p.style.top=`${w}px`,p.style.left=`${k}px`,p.style.position="absolute";const $=document.createElement("input");$.value=list.value[m].content,$.style="width: 100%;height: 100%",p.append($),n.setDialog(!0,p,()=>{$.focus()},()=>{list.value[m].content=$.value})},deleteItem:c,isAllSelected:s,openDeletes:o,setAllSelect:g,setSelect:l,exitSelects:C,showDeleteTooltip:r,deleteItems:()=>{list.value.filter(m=>m.isSelected).map(m=>m.id).map(m=>{c(m)}),C()},deleteId:a,setNewDialog:()=>{t("set-new")},handleClick:v=>{t("handle-click",v)}}}}),iKe={key:0,class:"no-history"},rKe={key:1},oKe=["onClick"],sKe=["onClick"],aKe=["onClick"],lKe=["onClick"],cKe=["id"];function uKe(e,t,n,i,o,s){const r=Pe("a-tooltip"),a=Pe("icon-search"),u=Pe("a-input");Pe("icon-to-bottom"),Pe("icon-edit");const c=Pe("icon-delete"),l=Pe("a-button"),g=Pe("a-popover");Pe("icon-to-top");const C=PS("outside");return R(),X("main",null,[B("header",null,[t[9]||(t[9]=B("p",null,"历史记录",-1)),gi((R(),X("div",null,[B("div",{class:G({close:e.openSearch}),onClick:t[0]||(t[0]=(...S)=>e.setNewDialog&&e.setNewDialog(...S))},[t[7]||(t[7]=B("img",{src:QXe,width:"20"},null,-1)),gi(B("span",null,"新建对话",512),[[ki,!e.openSearch]])],2),O(r,{content:"搜索"},{default:Ve(()=>[B("div",{onClick:t[1]||(t[1]=()=>{e.openSearch=!0}),class:G({"search-hide":e.openSearch})},t[8]||(t[8]=[B("img",{src:eKe,width:"24"},null,-1)]),2)]),_:1}),gi(O(u,{style:{flex:1,borderRadius:"19px",height:"38px"},placeholder:"搜索历史记录","allow-clear":""},{prefix:Ve(()=>[O(a)]),_:1},512),[[ki,e.openSearch]])])),[[C,()=>{e.openSearch=!1}]])]),t[27]||(t[27]=B("p",null,"置顶对话",-1)),e.list.length===0?(R(),X("div",iKe,t[10]||(t[10]=[B("div",null,[B("img",{src:tKe,width:"58"}),B("p",null,"暂无会话记录"),B("p",null,"点击新建对话即可开始")],-1)]))):(R(),X("div",rKe,[gi(B("section",null,[(R(!0),X(ft,null,dn(e.list.filter(S=>S.isTop),(S,_)=>(R(),X("div",{key:_,class:G({"div-padding":e.openDeletes,active:e.selectId===S.id}),onClick:A=>e.handleClick(S.id)},[e.openDeletes?(R(),X("em",{key:0,onClick:A=>e.setSelect(S.id),class:G({"select-icon":!0,active:S.isSelected})},t[11]||(t[11]=[B("img",{src:D7,width:"10"},null,-1)]),10,sKe)):Re("",!0),Re("",!0)],10,oKe))),128))],512),[[ki,e.list.filter(S=>S.isTop).length>0]]),B("section",null,[(R(!0),X(ft,null,dn(e.list.filter(S=>!S.isTop),(S,_)=>(R(),X("div",{key:_,class:G({"div-padding":e.openDeletes,active:e.selectId===S.id}),onClick:A=>e.handleClick(S.id)},[e.openDeletes?(R(),X("em",{key:0,onClick:A=>e.setSelect(S.id),class:G({"select-icon":!0,active:S.isSelected})},t[15]||(t[15]=[B("img",{src:D7,width:"10"},null,-1)]),10,lKe)):Re("",!0),B("div",null,[B("p",{id:`history-${S.id}`},tt(S.content),9,cKe),B("p",null,[B("span",null,tt(S.time),1),Re("",!0)])])],10,aKe))),128))])])),(e.list.length>0,Re("",!0))])}const dKe=jn(nKe,[["render",uKe],["__scopeId","data-v-dae24cbf"]]),kZ="/assets/iconPark-clear-09f891a7.svg";const fKe=se({components:{},props:["readonly","eventName"],setup(e){const{helper:t}=Dt("$global"),n=he(""),i=he(6e3),o=()=>{if(n.value.length>0&&!e.readonly){const a=e.eventName||"send-message";t.$bus.emit(a,n.value),n.value=""}},s=()=>{e.readonly||t.$bus.emit("clear-message")},r=a=>{a.shiftKey||(a.preventDefault(),o())};return Yt(()=>{t.$bus.on("set-input",a=>{n.value=a})}),ei(()=>{t.$bus.off("set-input")}),{value:n,maxLength:i,readonly:e.readonly,sendMessage:o,clearMessage:s,handleEnter:r}}}),hKe={class:"message-input-wrap"},pKe={class:"message-input-border"};function mKe(e,t,n,i,o,s){const r=Pe("a-textarea"),a=Pe("icon-send");return R(),X("div",hKe,[B("div",pKe,[B("div",{class:"message-input-clear",onClick:t[0]||(t[0]=(...u)=>e.clearMessage&&e.clearMessage(...u))},[B("div",{class:G([e.readonly?"disabled":""])},t[3]||(t[3]=[B("img",{src:kZ,width:"15"},null,-1)]),2)]),O(r,{onKeydown:_a(e.handleEnter,["enter"]),"max-length":e.maxLength,modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=u=>e.value=u),"show-word-limit":e.value.length>e.maxLength/2,"auto-size":{maxRows:6},disabled:e.readonly,placeholder:"输入您想了解的内容,Shift+Enter换行",style:Te({flex:1,borderRadius:"12px",marginTop:"20px",padding:"0px 30px 0 16px",background:"transparent",border:"1px solid #e3e3e3",minHeight:"120px",paddingBottom:`${e.value.length>e.maxLength/2?"20px":""}`})},null,8,["onKeydown","max-length","modelValue","show-word-limit","disabled","style"])]),B("div",{class:G(["message-button","message-button-send",e.value.length>0&&!e.readonly?"":"disabled"]),onClick:t[2]||(t[2]=(...u)=>e.sendMessage&&e.sendMessage(...u))},[O(a,{size:"30"})],2)])}const vKe=jn(fKe,[["render",mKe],["__scopeId","data-v-633b6afd"]]);const gKe=se({components:{},props:["readonly","eventName"],setup(e){const{helper:t}=Dt("$global"),n=he(""),i=he(6e3),o=()=>{if(n.value.length>0&&!e.readonly){const a=e.eventName||"send-message";t.$bus.emit(a,n.value),n.value=""}},s=()=>{e.readonly||t.$bus.emit("clear-message")},r=a=>{a.shiftKey||(a.preventDefault(),o())};return Yt(()=>{t.$bus.on("set-input",a=>{n.value=a})}),ei(()=>{t.$bus.off("set-input")}),{value:n,maxLength:i,readonly:e.readonly,sendMessage:o,clearMessage:s,handleEnter:r}}}),yKe={class:"message-input-wrap"},bKe={class:"message-input-border"};function kKe(e,t,n,i,o,s){const r=Pe("a-textarea"),a=Pe("icon-send");return R(),X("div",yKe,[B("div",bKe,[B("div",{class:"message-input-clear",onClick:t[0]||(t[0]=(...u)=>e.clearMessage&&e.clearMessage(...u))},[B("div",{class:G([e.readonly?"disabled":""])},t[3]||(t[3]=[B("img",{src:kZ,width:"15"},null,-1)]),2)]),O(r,{onKeydown:_a(e.handleEnter,["enter"]),"max-length":e.maxLength,modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=u=>e.value=u),"show-word-limit":e.value.length>e.maxLength/2,"auto-size":{maxRows:6},disabled:e.readonly,placeholder:"输入您想了解的内容,Shift+Enter换行",style:Te({flex:1,borderRadius:"12px",marginTop:"20px",padding:"0px 30px 0 16px",background:"transparent",border:"1px solid #e3e3e3",minHeight:"120px",paddingBottom:`${e.value.length>e.maxLength/2?"20px":""}`})},null,8,["onKeydown","max-length","modelValue","show-word-limit","disabled","style"])]),B("div",{class:G(["message-button","message-button-send",e.value.length>0&&!e.readonly?"":"disabled"]),onClick:t[2]||(t[2]=(...u)=>e.sendMessage&&e.sendMessage(...u))},[O(a,{size:"30"})],2)])}const CKe=jn(gKe,[["render",kKe],["__scopeId","data-v-b40a7cb2"]]),SKe="/assets/icon-572c2c44.svg";const wKe=se({props:[],components:{},setup(e,{emit:t}){return Dt("$global"),{list:he(new Array(10).fill({name:"文件之一:国网湖北省电力有限公司第七届职工代表大会第一次会议暨2024年工作会议工作报告.pdf",desc:"辛保安董事长与省委省政府主要领导会谈签约,为 我们注入了政企合作的新势能,拓展了政策对接的大空间。在合 第 4 页 国网湖北省电力有限公司七届一辛保安董事长与省委省政府主要领导会谈签约,为 我们注入了政企合作的新势能,拓展了政策对接的大空间。在合 第 4 页 国网湖北省电力有限公司七届一",fragments:["辛保安董事长与省委省政府主要领导会谈签约,为 我们注入了政企合作的新势能,拓展了政策对接的大空间。在合 第 4 页 国网湖北省电力有限公司七届一次职工代表大会 暨 2 0 2 4 年 工 作 会 议 文 件 之 一 理配储上重引导。推动出台新能源竞配储能方案、分布式光伏全 过程管理办法,我省电化学储能投产规模达 138 万千瓦/274 万 千瓦时,排名国网第 7。荆门构网型储能项目入选国家能源局新 型储能试点示范。在电价核定上争最优。推动政府将长江岸电资 产、优化营商环境等政策性投资计入定价成本,争取合理输配电 价水平,更好满足发展需要。在政策落地上展速度。聚力攻坚红 线外投资政策落地,3 个月内实现全省“14+91”市县政策出台 全覆盖,让好政策真正惠企利民。在一流电网上聚合力。以“双 组长”制高位推动,全面打响武汉世界一流城市电网三年攻坚, 101 个项目火热开工。同志们,政企合作之效,体现在全年支持 性政策出台 20 余项,频次、力度、效果均前所未有,湖北电力 这块“金字招牌”的影响力还在扩大! ——这一年,我们当好电等发展“先行官”,加快推动了能 源转型之进。坚持电力先行,加大各类资源要素投入,合力推进 各级电网协调发展。规划前期质量更高。制定《湖北电网规划建 设改造技术原则》,累计对 9245 项工程进行了方案检查和优化, 避免设备反复改造、推倒重建。编制“武鄂黄黄”全国首个都市 圈电网发展规划纲要,推动夷陵、孝感北等 12 项重点项目增补 纳入国家电力规划,确保电网发展与先行区建设同频共振、同向 而行。工程推进力度更大。攻坚“四线两站”特高压工程,武南 工程长江大跨越施工顺利完成,驻武工程按期投产,华中特高压 交流环网指“日”可待。500 千伏汉水、赤壁变以及黄州低压交 第 5 页 国网湖北省电力有限公司七届一次职工代表大会 暨 2 0 2 4 年 工 作 会 议 文 件 之 一 直流混合新型配电网等一批重点工程建成投运,鄂州数字化配电 网工程入选国网综合示范。累计投产 110 千伏及以上输电线路 2428 公里、变电容量 1026 万千伏安。3 项工程入选国网标杆工 地(程),新调度通信楼获评“鲁班奖”。服务新能源发展更优 ","团结奋斗气场升腾。“三知四谈”思想 政治工作不断深化,“统战工作室”创新建立,“最美鄂电人” 群星闪耀,“职工技能运动会”如火如荼,首届“青年文化月” 精彩纷呈,“安心菜篮工程”、离退休“双服务、双关爱”、“社 保政策三进活动”等一批特色举措温暖人心。同志们,旗帜领航 之为,全面锻造了一支忠诚勇毅、敢打必胜的鄂电铁军,如今的 湖北电力迎来了更好的自己,正阔步迈向高质量发展的明天! 回顾这一年,起步稳健、中程发力、冲线出彩,全体干部员 工以放不下的责任感“保供电”,以等不起的紧迫感“抓发展”, 以慢不得的使命感“促转型”。一整年的只争朝夕,造就了一个 充满力量、具有分量、更有质量的湖北电网,磨砺出一个对标一 流、追赶一流、比肩一流的湖北公司,大家用担当作为收获了雨 后彩虹,书写了浓重一笔,开启了发展新篇。全年国家电网公司、 省委省政府领导同志批示118次,人民日报、新华社、央视三大 央媒报道321次、同比翻番,国家电网品牌形象誉满荆楚! 第 9 页 国网湖北省电力有限公司七届一次职工代表大会 暨 2 0 2 4 年 工 作 会 议 文 件 之 一 事非经过不知难,成如容易却艰辛。一年来,我们既取得了 物质层面的丰硕成果,更积累了精神层面的宝贵财富:唯有旗帜 领航,方能破浪前行,正因为我们始终以新思想凝心铸魂、指导 实践,才能以真理之光照亮前行之路,以思想伟力激发澎湃动力。 唯有志存高远,方能梦想成真,正因为我们不坠青云志、展翼搏 长空,想常人之不敢想、做常人之不敢做,才能将“不可能”变 为“可能”。唯有保持定力,方能行稳致远,正因为我们坚信为 者常成、行者常至,时刻保持“不畏浮云遮望眼”的战略定力, 才能风雨无阻、步履铿锵。唯有团结奋斗,方能攻无不克,正因 为我们始终心往一处想、劲往一处使,凝聚起众志成城的最大合 力,才能一路披荆斩棘、一路凯歌勇进。 各位代表、同志们,辛勤汗水换来鲜花掌声,光辉成绩载入 公司史册!这是习近平新时代中国特色社会主义思想正确指引的 结果,是国家电网公司党组和省委省政府坚强领导的结果,是广 大干部职工拼搏奋进的结果 ","在国网系统率先开通 11 项省内通办服务,266 个营业厅实现水电气联办,“刷脸办”“一 证办”成为办电新常态。创新建立购电后评估机制,争取陕武合 理送电价格,6—12 月工商业平均到户电价较 1—5 月降低 3.9 分/千瓦时,我省在全国工商业电价地形图中由“山地”变“丘 陵”。接续助力乡村全面振兴,连续六年在省直定点帮扶考核中 评为“好”。同志们,经营服务之优,表现在我们以优异业绩提 供优质服务,让发展成果实实在在惠及了广大人民,交出了一份 政府认可、国网肯定、群众满意的答卷! ——这一年,我们点燃改革创新“新引擎”,有效激活了发 展动力之源。坚持改革破题、创新驱动、数字赋能,释放发展强 劲动能。用好改革“关键一招”。高质量编制国企改革深化提升 行动实施方案,三项制度改革经验被国资委国企改革简报推介。 稳妥有序推进省管产业改革改制,制订实施同质化管理工作推进 方案和产业发展规划。在第二批试点省份中率先启动现货长周期 结算试运行,全省新能源参与竞价规模居国网第 2。公司作为华 中区域唯一单位获评国网子企业优秀董事会。激发创新“第一动 力”。重构创新体系“四梁八柱”,重磅发布 16 条举措,聘请 5 名院士组建专家咨询委员会,建立三级科研体系和创新型人才 体系,公司首个湖北省重点实验室成功获批。牵头获得省部级科 第 7 页 国网湖北省电力有限公司七届一次职工代表大会 暨 2 0 2 4 年 工 作 会 议 文 件 之 一 技奖 15 项,立项 ITU、IEEE 国际标准 3 项,发布 2 项;1 项成 果获全国企业管理现代化创新一等奖,5 项获国际 QC 成果最高 金奖,创历史新高。2 家单位分别入选国家专精特新“小巨人” 和“科改示范企业”。增强数字“先导力量”。印发数字化建设 管理办法,出台信息系统“四统一”技术规范,有力强化企业级 统筹。全面建成静态“电网一张图”,保供技术支持系统、生产 管控作业系统、新一代应急指挥平台等一批特色应用建成上线。 8 支数字化王牌部队完成组建。同志们,发展动力之源,蕴含着 令人意想不到的强大力量,正因为我们一往无前破桎梏、闯新路、 攀高峰,才使得“关键变量”成为了“最大增量”! ——这一年,我们筑牢电网央企“根与魂”,充分彰显了旗 帜领航之为 "]})),goBack:()=>{t("go-back")}}}}),_Ke={class:"left"};function IKe(e,t,n,i,o,s){const r=Pe("icon-left");return R(),X("main",null,[B("div",_Ke,[B("header",null,[B("div",{onClick:t[0]||(t[0]=(...a)=>e.goBack&&e.goBack(...a))},[O(r,{style:{"margin-right":"5px"}}),t[1]||(t[1]=pt("返回知识问答"))])]),t[4]||(t[4]=B("div",null,[B("div",{style:{"background-color":"rgb(255, 110, 110)"}},"v"),B("p",null,"介绍一下湖北电力")],-1)),t[5]||(t[5]=B("p",null,[B("span",null,"以下是根据您的提问搜索到的相关文档"),B("span",null,"共 12 条")],-1)),B("section",null,[(R(!0),X(ft,null,dn(e.list,(a,u)=>(R(),X("div",{key:u},[t[3]||(t[3]=B("div",null,[B("img",{src:SKe})],-1)),B("div",null,[B("p",null,tt(a.name),1),B("p",null,tt(a.desc),1),t[2]||(t[2]=B("span",null,[B("b",null,"检索片段"),B("em")],-1)),(R(!0),X(ft,null,dn(a.fragments,(c,l)=>(R(),X("div",{key:l},[B("span",null,tt(l+1)+".",1),pt(" "+tt(c),1)]))),128))])]))),128))])]),t[6]||(t[6]=B("div",{class:"right"},null,-1))])}const xKe=jn(wKe,[["render",IKe],["__scopeId","data-v-988310b0"]]),$Ke="/assets/3-83c57db7.svg",AKe="/assets/4-17c1d031.svg",EKe="/assets/5-afdc234c.svg";const MKe=se({props:["data","hasUpload","uploadFile","isQuestion","agentId","agengtName"],setup(e){const t=he(!1),{helper:n,ajax:i}=Dt("$global"),o=30*1024*1024;let s=he([]);const r=it([]);let a=new FormData,u=he([]);const c=he(!1),l=he(""),g=he(!1),C=async(b,w)=>{if(b)if(e.uploadFile){const k=await i.message.createDialog(e.agentId);s.value.forEach(N=>{a.append("file",N)}),g.value=!0;const $=await i.file.uploadFile(e.agentId,k.chat_id,a);t.value=!1,n.dialogConfig={isQuestion:e.isQuestion,selectedKeys:v.value,type:w},g.value=!1,u.value.push({name:$.file_name,file_path:$.file_path,value:""});const E={chatHistory:[],chat_id:k.chat_id,agent_id:e.agentId,name:"文档智能",description:"文档智能",inputs:{report_name:u.value.map(N=>N.name).join(", "),id:"Report-PRcYL",data:u.value}};E&&n.write("sendData",E)}else s.value.forEach(k=>{a.append("files",k)}),await i.file.uploadExcels(a),n.$bus.emit("open-dialog","合并Excel")},S=b=>{c.value=!0,l.value=b},_=b=>b.size>o?(n.message("error","上传文件大小不能超过10M"),!1):!0,A=()=>{n.message("error","最多上传50个文件")},y=async b=>{const{onSuccess:w,fileItem:k}=b,{file:$}=k;s.value.push($),r.push({key:`uid-${Date.now()}-${Math.floor(Math.random()*1e3)}`,name:$.name,type:$.type,size:n.formatSize($.size),time:yr($.lastModified).format("YYYY-MM-DD HH:mm:ss")}),w()},d=b=>(s.value=s.value.filter(w=>w.id!==b.uid),!0),v=he([]),m=it({type:"checkbox",showCheckedAll:!0,onlyCurrent:!1}),f=[{title:"文件名称",dataIndex:"name",ellipsis:!0,tooltip:!0,width:150},{title:"类型",dataIndex:"type",ellipsis:!0,tooltip:!0,width:150},{title:"大小",dataIndex:"size"},{title:"上传时间",dataIndex:"time",ellipsis:!0,tooltip:!0,width:150},{title:"操作",slotName:"methods"}],p=b=>{},h=()=>{const b=r.findIndex(w=>w.key===l.value);console.log("tableData",r),r.splice(b,1),s.value=s.value.filter(w=>w.uid!==l.value)};return{agengtName:e.agengtName,buttonLoading:g,fileList:s,selectedKeys:v,getAssetURL:n.getAssetURL,showUpload:t,onBeforeUpload:_,onExceedLimit:A,onBeforeRemove:d,customRequest:y,columns:f,tableData:r,rowSelection:m,downloadDocument:p,deleteDocument:h,showDeleteTooltip:c,deleteId:l,handleDeleteButton:S,selectFiles:C}}}),TKe=["src"],PKe={key:0},OKe={key:0,src:$Ke,class:"img-normal"},LKe={key:1,src:AKe,class:"img-hover"},DKe={key:2,src:EKe,class:"img-active"},NKe={key:0},jKe={key:1},zKe={class:"upload-main"},RKe={key:2},BKe=["onClick"],FKe={class:"delete-buttons"},VKe={class:"bottom-buttons"};function HKe(e,t,n,i,o,s){const r=Pe("icon-close"),a=Pe("a-upload"),u=Pe("icon-delete"),c=Pe("a-tooltip"),l=Pe("a-button"),g=Pe("a-popover"),C=Pe("a-table");return R(),X("main",null,[B("section",null,[(R(!0),X(ft,null,dn(e.data,(S,_)=>(R(),X("div",{key:_,style:Te({background:S.background})},[B("img",{src:e.getAssetURL(S.img)},null,8,TKe),B("div",{style:Te({color:S.color})},[pt(tt(S.title)+" ",1),B("span",null,tt(S.content),1)],4)],4))),128))]),e.hasUpload?(R(),X("footer",PKe,[O(g,{"popup-visible":e.showUpload,position:"tl",onPopupVisibleChange:t[6]||(t[6]=()=>{e.showDeleteTooltip=!1})},{content:Ve(()=>[B("div",{class:G({"upload-wrap":!0,"upload-wrap-narrow":e.uploadFile})},[B("header",null,[B("p",null,tt(e.uploadFile?"上传文档":"文档解析站"),1),B("div",{onClick:t[1]||(t[1]=()=>{e.showUpload=!1})},[O(r,{size:"large"})])]),B("div",null,[e.agengtName=="智能数据"?(R(),X("section",NKe,[O(a,{draggable:"",multiple:!0,limit:50,"show-file-list":!1,onBeforeUpload:e.onBeforeUpload,onExceedLimit:e.onExceedLimit,onBeforeRemove:e.onBeforeRemove,"custom-request":e.customRequest,"show-upload-button":{showOnExceedLimit:!0},accept:".xls,.xlsx,.csv,.db"},{"upload-button":Ve(()=>t[7]||(t[7]=[B("div",{class:"upload-main"},[B("p",null,[pt("拖拽文档到这里,或"),B("span",null,"点此上传")]),B("span",null," 支持上传 Excel (.xls, .xlsx),CSV (.csv),DB (.db),大小不超过30M ")],-1)])),_:1},8,["onBeforeUpload","onExceedLimit","onBeforeRemove","custom-request"])])):(R(),X("section",jKe,[O(a,{draggable:"",multiple:!e.uploadFile,limit:50,"show-file-list":!1,onBeforeUpload:e.onBeforeUpload,onExceedLimit:e.onExceedLimit,onBeforeRemove:e.onBeforeRemove,"custom-request":e.customRequest,"show-upload-button":{showOnExceedLimit:!0},accept:"*"},{"upload-button":Ve(()=>[B("div",zKe,[t[8]||(t[8]=B("p",null,[pt("拖拽文档到这里,或"),B("span",null,"点此上传")],-1)),B("span",null," 支持上传"+tt(e.uploadFile?".txt,.pdf":".xlsx‌文档")+",大小不超过30M ",1)])]),_:1},8,["multiple","onBeforeUpload","onExceedLimit","onBeforeRemove","custom-request"])])),e.tableData.length>0?(R(),X("div",RKe,[B("p",null,[t[9]||(t[9]=B("span",null,"已解析文件列表",-1)),B("span",null,"共"+tt(e.tableData.length)+"个",1)]),B("div",null,[O(C,{pagination:!1,"row-key":"name",columns:e.columns,data:e.tableData,"row-selection":e.rowSelection,selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":t[3]||(t[3]=S=>e.selectedKeys=S)},{methods:Ve(({record:S})=>[O(g,{"popup-visible":e.showDeleteTooltip&&e.deleteId===S.key},{content:Ve(()=>[B("div",null,[t[12]||(t[12]=B("p",null,"删除后无法恢复,您是否删除?",-1)),B("div",FKe,[B("div",null,[O(l,{size:"mini",type:"primary",style:{"margin-right":"10px"},onClick:e.deleteDocument},{default:Ve(()=>t[10]||(t[10]=[pt("确认")])),_:1},8,["onClick"]),O(l,{size:"mini",type:"outline",onClick:t[2]||(t[2]=()=>{e.showDeleteTooltip=!1})},{default:Ve(()=>t[11]||(t[11]=[pt("取消")])),_:1})])])])]),default:Ve(()=>[O(c,{content:"删除"},{default:Ve(()=>[B("div",{class:"method-button",onClick:_=>e.handleDeleteButton(S.key)},[O(u)],8,BKe)]),_:2},1024)]),_:2},1032,["popup-visible"])]),_:1},8,["columns","data","row-selection","selectedKeys"])])])):Re("",!0)])],2),B("div",VKe,[B("div",null,[O(l,{type:"outline",style:{"margin-right":"10px"},onClick:t[4]||(t[4]=S=>e.selectFiles(!1))},{default:Ve(()=>t[13]||(t[13]=[pt("取消")])),_:1}),O(l,{loading:e.buttonLoading,type:"primary",onClick:t[5]||(t[5]=S=>e.selectFiles(!0,"paper"))},{default:Ve(()=>[pt("去"+tt(e.uploadFile?"提问":"合并")+"("+tt(e.fileList.length)+")",1)]),_:1},8,["loading"])])])]),default:Ve(()=>[B("div",{class:G({"text-hide":e.showUpload})},[B("div",{onClick:t[0]||(t[0]=()=>{e.showUpload=!0})},[e.showUpload?Re("",!0):(R(),X("img",OKe)),e.showUpload?Re("",!0):(R(),X("img",LKe)),e.showUpload?(R(),X("img",DKe)):Re("",!0)]),B("p",null,"已选择 "+tt(e.fileList.length)+" 个文档",1)],2)]),_:1},8,["popup-visible"])])):Re("",!0)])}const cu=jn(MKe,[["render",HKe],["__scopeId","data-v-7e195fc3"]]),WKe=se({components:{DocumentCards:cu},setup(){return{data:he([])}}});function UKe(e,t,n,i,o,s){const r=Pe("document-cards");return R(),We(r,{data:e.data,hasUpload:!1,hasSlider:!1},null,8,["data"])}const ZKe=jn(WKe,[["render",UKe]]);function N7(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function uO(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:N7(t[n])&&N7(e[n])&&Object.keys(t[n]).length>0&&uO(e[n],t[n])})}const CZ={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function nm(){const e=typeof document<"u"?document:{};return uO(e,CZ),e}const GKe={document:CZ,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Uo(){const e=typeof window<"u"?window:{};return uO(e,GKe),e}function YKe(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function XKe(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function VM(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function vC(){return Date.now()}function KKe(e){const t=Uo();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function JKe(e,t){t===void 0&&(t="x");const n=Uo();let i,o,s;const r=KKe(e);return n.WebKitCSSMatrix?(o=r.transform||r.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(a=>a.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(o==="none"?"":o)):(s=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=s.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?o=s.m41:i.length===16?o=parseFloat(i[12]):o=parseFloat(i[4])),t==="y"&&(n.WebKitCSSMatrix?o=s.m42:i.length===16?o=parseFloat(i[13]):o=parseFloat(i[5])),o||0}function jy(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function qKe(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Fo(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const i=n<0||arguments.length<=n?void 0:arguments[n];if(i!=null&&!qKe(i)){const o=Object.keys(Object(i)).filter(s=>t.indexOf(s)<0);for(let s=0,r=o.length;s<r;s+=1){const a=o[s],u=Object.getOwnPropertyDescriptor(i,a);u!==void 0&&u.enumerable&&(jy(e[a])&&jy(i[a])?i[a].__swiper__?e[a]=i[a]:Fo(e[a],i[a]):!jy(e[a])&&jy(i[a])?(e[a]={},i[a].__swiper__?e[a]=i[a]:Fo(e[a],i[a])):e[a]=i[a])}}}return e}function zy(e,t,n){e.style.setProperty(t,n)}function SZ(e){let{swiper:t,targetPosition:n,side:i}=e;const o=Uo(),s=-t.translate;let r=null,a;const u=t.params.speed;t.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(t.cssModeFrameID);const c=n>s?"next":"prev",l=(C,S)=>c==="next"&&C>=S||c==="prev"&&C<=S,g=()=>{a=new Date().getTime(),r===null&&(r=a);const C=Math.max(Math.min((a-r)/u,1),0),S=.5-Math.cos(C*Math.PI)/2;let _=s+S*(n-s);if(l(_,n)&&(_=n),t.wrapperEl.scrollTo({[i]:_}),l(_,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:_})}),o.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=o.requestAnimationFrame(g)};g()}function $l(e,t){t===void 0&&(t="");const n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(i=>i.matches(t)):n}function QKe(e,t){const n=t.contains(e);return!n&&t instanceof HTMLSlotElement?[...t.assignedElements()].includes(e):n}function gC(e){try{console.warn(e);return}catch{}}function HM(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:YKe(t)),n}function eJe(e,t){const n=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}function tJe(e,t){const n=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}function Uc(e,t){return Uo().getComputedStyle(e,null).getPropertyValue(t)}function j7(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function nJe(e,t){const n=[];let i=e.parentElement;for(;i;)t?i.matches(t)&&n.push(i):n.push(i),i=i.parentElement;return n}function z7(e,t,n){const i=Uo();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let yA;function iJe(){const e=Uo(),t=nm();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function wZ(){return yA||(yA=iJe()),yA}let bA;function rJe(e){let{userAgent:t}=e===void 0?{}:e;const n=wZ(),i=Uo(),o=i.navigator.platform,s=t||i.navigator.userAgent,r={ios:!1,android:!1},a=i.screen.width,u=i.screen.height,c=s.match(/(Android);?[\s\/]+([\d.]+)?/);let l=s.match(/(iPad).*OS\s([\d_]+)/);const g=s.match(/(iPod)(.*OS\s([\d_]+))?/),C=!l&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),S=o==="Win32";let _=o==="MacIntel";const A=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!l&&_&&n.touch&&A.indexOf(`${a}x${u}`)>=0&&(l=s.match(/(Version)\/([\d.]+)/),l||(l=[0,1,"13_0_0"]),_=!1),c&&!S&&(r.os="android",r.android=!0),(l||C||g)&&(r.os="ios",r.ios=!0),r}function _Z(e){return e===void 0&&(e={}),bA||(bA=rJe(e)),bA}let kA;function oJe(){const e=Uo(),t=_Z();let n=!1;function i(){const a=e.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(i()){const a=String(e.navigator.userAgent);if(a.includes("Version/")){const[u,c]=a.split("Version/")[1].split(" ")[0].split(".").map(l=>Number(l));n=u<16||u===16&&c<2}}const o=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),s=i(),r=s||o&&t.ios;return{isSafari:n||s,needPerspectiveFix:n,need3dFix:r,isWebView:o}}function sJe(){return kA||(kA=oJe()),kA}function aJe(e){let{swiper:t,on:n,emit:i}=e;const o=Uo();let s=null,r=null;const a=()=>{!t||t.destroyed||!t.initialized||(i("beforeResize"),i("resize"))},u=()=>{!t||t.destroyed||!t.initialized||(s=new ResizeObserver(g=>{r=o.requestAnimationFrame(()=>{const{width:C,height:S}=t;let _=C,A=S;g.forEach(y=>{let{contentBoxSize:d,contentRect:v,target:m}=y;m&&m!==t.el||(_=v?v.width:(d[0]||d).inlineSize,A=v?v.height:(d[0]||d).blockSize)}),(_!==C||A!==S)&&a()})}),s.observe(t.el))},c=()=>{r&&o.cancelAnimationFrame(r),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null)},l=()=>{!t||t.destroyed||!t.initialized||i("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof o.ResizeObserver<"u"){u();return}o.addEventListener("resize",a),o.addEventListener("orientationchange",l)}),n("destroy",()=>{c(),o.removeEventListener("resize",a),o.removeEventListener("orientationchange",l)})}function lJe(e){let{swiper:t,extendParams:n,on:i,emit:o}=e;const s=[],r=Uo(),a=function(l,g){g===void 0&&(g={});const C=r.MutationObserver||r.WebkitMutationObserver,S=new C(_=>{if(t.__preventObserver__)return;if(_.length===1){o("observerUpdate",_[0]);return}const A=function(){o("observerUpdate",_[0])};r.requestAnimationFrame?r.requestAnimationFrame(A):r.setTimeout(A,0)});S.observe(l,{attributes:typeof g.attributes>"u"?!0:g.attributes,childList:t.isElement||(typeof g.childList>"u"?!0:g).childList,characterData:typeof g.characterData>"u"?!0:g.characterData}),s.push(S)},u=()=>{if(t.params.observer){if(t.params.observeParents){const l=nJe(t.hostEl);for(let g=0;g<l.length;g+=1)a(l[g])}a(t.hostEl,{childList:t.params.observeSlideChildren}),a(t.wrapperEl,{attributes:!1})}},c=()=>{s.forEach(l=>{l.disconnect()}),s.splice(0,s.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",u),i("destroy",c)}var cJe={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const o=n?"unshift":"push";return e.split(" ").forEach(s=>{i.eventsListeners[s]||(i.eventsListeners[s]=[]),i.eventsListeners[s][o](t)}),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;function o(){i.off(e,o),o.__emitterProxy&&delete o.__emitterProxy;for(var s=arguments.length,r=new Array(s),a=0;a<s;a++)r[a]=arguments[a];t.apply(i,r)}return o.__emitterProxy=t,i.on(e,o,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const i=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[i](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(i=>{typeof t>"u"?n.eventsListeners[i]=[]:n.eventsListeners[i]&&n.eventsListeners[i].forEach((o,s)=>{(o===t||o.__emitterProxy&&o.__emitterProxy===t)&&n.eventsListeners[i].splice(s,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,i;for(var o=arguments.length,s=new Array(o),r=0;r<o;r++)s[r]=arguments[r];return typeof s[0]=="string"||Array.isArray(s[0])?(t=s[0],n=s.slice(1,s.length),i=e):(t=s[0].events,n=s[0].data,i=s[0].context||e),n.unshift(i),(Array.isArray(t)?t:t.split(" ")).forEach(u=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(c=>{c.apply(i,[u,...n])}),e.eventsListeners&&e.eventsListeners[u]&&e.eventsListeners[u].forEach(c=>{c.apply(i,n)})}),e}};function uJe(){const e=this;let t,n;const i=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=i.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=i.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Uc(i,"padding-left")||0,10)-parseInt(Uc(i,"padding-right")||0,10),n=n-parseInt(Uc(i,"padding-top")||0,10)-parseInt(Uc(i,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function dJe(){const e=this;function t($,E){return parseFloat($.getPropertyValue(e.getDirectionLabel(E))||0)}const n=e.params,{wrapperEl:i,slidesEl:o,size:s,rtlTranslate:r,wrongRTL:a}=e,u=e.virtual&&n.virtual.enabled,c=u?e.virtual.slides.length:e.slides.length,l=$l(o,`.${e.params.slideClass}, swiper-slide`),g=u?e.virtual.slides.length:l.length;let C=[];const S=[],_=[];let A=n.slidesOffsetBefore;typeof A=="function"&&(A=n.slidesOffsetBefore.call(e));let y=n.slidesOffsetAfter;typeof y=="function"&&(y=n.slidesOffsetAfter.call(e));const d=e.snapGrid.length,v=e.slidesGrid.length;let m=n.spaceBetween,f=-A,p=0,h=0;if(typeof s>"u")return;typeof m=="string"&&m.indexOf("%")>=0?m=parseFloat(m.replace("%",""))/100*s:typeof m=="string"&&(m=parseFloat(m)),e.virtualSize=-m,l.forEach($=>{r?$.style.marginLeft="":$.style.marginRight="",$.style.marginBottom="",$.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(zy(i,"--swiper-centered-offset-before",""),zy(i,"--swiper-centered-offset-after",""));const b=n.grid&&n.grid.rows>1&&e.grid;b?e.grid.initSlides(l):e.grid&&e.grid.unsetSlides();let w;const k=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter($=>typeof n.breakpoints[$].slidesPerView<"u").length>0;for(let $=0;$<g;$+=1){w=0;let E;if(l[$]&&(E=l[$]),b&&e.grid.updateSlide($,E,l),!(l[$]&&Uc(E,"display")==="none")){if(n.slidesPerView==="auto"){k&&(l[$].style[e.getDirectionLabel("width")]="");const N=getComputedStyle(E),j=E.style.transform,z=E.style.webkitTransform;if(j&&(E.style.transform="none"),z&&(E.style.webkitTransform="none"),n.roundLengths)w=e.isHorizontal()?z7(E,"width",!0):z7(E,"height",!0);else{const V=t(N,"width"),W=t(N,"padding-left"),H=t(N,"padding-right"),U=t(N,"margin-left"),Q=t(N,"margin-right"),q=N.getPropertyValue("box-sizing");if(q&&q==="border-box")w=V+U+Q;else{const{clientWidth:ae,offsetWidth:ne}=E;w=V+W+H+U+Q+(ne-ae)}}j&&(E.style.transform=j),z&&(E.style.webkitTransform=z),n.roundLengths&&(w=Math.floor(w))}else w=(s-(n.slidesPerView-1)*m)/n.slidesPerView,n.roundLengths&&(w=Math.floor(w)),l[$]&&(l[$].style[e.getDirectionLabel("width")]=`${w}px`);l[$]&&(l[$].swiperSlideSize=w),_.push(w),n.centeredSlides?(f=f+w/2+p/2+m,p===0&&$!==0&&(f=f-s/2-m),$===0&&(f=f-s/2-m),Math.abs(f)<1/1e3&&(f=0),n.roundLengths&&(f=Math.floor(f)),h%n.slidesPerGroup===0&&C.push(f),S.push(f)):(n.roundLengths&&(f=Math.floor(f)),(h-Math.min(e.params.slidesPerGroupSkip,h))%e.params.slidesPerGroup===0&&C.push(f),S.push(f),f=f+w+m),e.virtualSize+=w+m,p=w,h+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+y,r&&a&&(n.effect==="slide"||n.effect==="coverflow")&&(i.style.width=`${e.virtualSize+m}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+m}px`),b&&e.grid.updateWrapperSize(w,C),!n.centeredSlides){const $=[];for(let E=0;E<C.length;E+=1){let N=C[E];n.roundLengths&&(N=Math.floor(N)),C[E]<=e.virtualSize-s&&$.push(N)}C=$,Math.floor(e.virtualSize-s)-Math.floor(C[C.length-1])>1&&C.push(e.virtualSize-s)}if(u&&n.loop){const $=_[0]+m;if(n.slidesPerGroup>1){const E=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),N=$*n.slidesPerGroup;for(let j=0;j<E;j+=1)C.push(C[C.length-1]+N)}for(let E=0;E<e.virtual.slidesBefore+e.virtual.slidesAfter;E+=1)n.slidesPerGroup===1&&C.push(C[C.length-1]+$),S.push(S[S.length-1]+$),e.virtualSize+=$}if(C.length===0&&(C=[0]),m!==0){const $=e.isHorizontal()&&r?"marginLeft":e.getDirectionLabel("marginRight");l.filter((E,N)=>!n.cssMode||n.loop?!0:N!==l.length-1).forEach(E=>{E.style[$]=`${m}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let $=0;_.forEach(N=>{$+=N+(m||0)}),$-=m;const E=$>s?$-s:0;C=C.map(N=>N<=0?-A:N>E?E+y:N)}if(n.centerInsufficientSlides){let $=0;_.forEach(N=>{$+=N+(m||0)}),$-=m;const E=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if($+E<s){const N=(s-$-E)/2;C.forEach((j,z)=>{C[z]=j-N}),S.forEach((j,z)=>{S[z]=j+N})}}if(Object.assign(e,{slides:l,snapGrid:C,slidesGrid:S,slidesSizesGrid:_}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){zy(i,"--swiper-centered-offset-before",`${-C[0]}px`),zy(i,"--swiper-centered-offset-after",`${e.size/2-_[_.length-1]/2}px`);const $=-e.snapGrid[0],E=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(N=>N+$),e.slidesGrid=e.slidesGrid.map(N=>N+E)}if(g!==c&&e.emit("slidesLengthChange"),C.length!==d&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),S.length!==v&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!u&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const $=`${n.containerModifierClass}backface-hidden`,E=e.el.classList.contains($);g<=n.maxBackfaceHiddenSlides?E||e.el.classList.add($):E&&e.el.classList.remove($)}}function fJe(e){const t=this,n=[],i=t.virtual&&t.params.virtual.enabled;let o=0,s;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const r=a=>i?t.slides[t.getSlideIndexByData(a)]:t.slides[a];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(a=>{n.push(a)});else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const a=t.activeIndex+s;if(a>t.slides.length&&!i)break;n.push(r(a))}else n.push(r(t.activeIndex));for(s=0;s<n.length;s+=1)if(typeof n[s]<"u"){const a=n[s].offsetHeight;o=a>o?a:o}(o||o===0)&&(t.wrapperEl.style.height=`${o}px`)}function hJe(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-n-e.cssOverflowAdjustment()}const R7=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function pJe(e){e===void 0&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:i,rtlTranslate:o,snapGrid:s}=t;if(i.length===0)return;typeof i[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let r=-e;o&&(r=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:typeof a=="string"&&(a=parseFloat(a));for(let u=0;u<i.length;u+=1){const c=i[u];let l=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(l-=i[0].swiperSlideOffset);const g=(r+(n.centeredSlides?t.minTranslate():0)-l)/(c.swiperSlideSize+a),C=(r-s[0]+(n.centeredSlides?t.minTranslate():0)-l)/(c.swiperSlideSize+a),S=-(r-l),_=S+t.slidesSizesGrid[u],A=S>=0&&S<=t.size-t.slidesSizesGrid[u],y=S>=0&&S<t.size-1||_>1&&_<=t.size||S<=0&&_>=t.size;y&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(u)),R7(c,y,n.slideVisibleClass),R7(c,A,n.slideFullyVisibleClass),c.progress=o?-g:g,c.originalProgress=o?-C:C}}function mJe(e){const t=this;if(typeof e>"u"){const l=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*l||0}const n=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:o,isBeginning:s,isEnd:r,progressLoop:a}=t;const u=s,c=r;if(i===0)o=0,s=!0,r=!0;else{o=(e-t.minTranslate())/i;const l=Math.abs(e-t.minTranslate())<1,g=Math.abs(e-t.maxTranslate())<1;s=l||o<=0,r=g||o>=1,l&&(o=0),g&&(o=1)}if(n.loop){const l=t.getSlideIndexByData(0),g=t.getSlideIndexByData(t.slides.length-1),C=t.slidesGrid[l],S=t.slidesGrid[g],_=t.slidesGrid[t.slidesGrid.length-1],A=Math.abs(e);A>=C?a=(A-C)/_:a=(A+_-S)/_,a>1&&(a-=1)}Object.assign(t,{progress:o,progressLoop:a,isBeginning:s,isEnd:r}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!u&&t.emit("reachBeginning toEdge"),r&&!c&&t.emit("reachEnd toEdge"),(u&&!s||c&&!r)&&t.emit("fromEdge"),t.emit("progress",o)}const CA=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function vJe(){const e=this,{slides:t,params:n,slidesEl:i,activeIndex:o}=e,s=e.virtual&&n.virtual.enabled,r=e.grid&&n.grid&&n.grid.rows>1,a=g=>$l(i,`.${n.slideClass}${g}, swiper-slide${g}`)[0];let u,c,l;if(s)if(n.loop){let g=o-e.virtual.slidesBefore;g<0&&(g=e.virtual.slides.length+g),g>=e.virtual.slides.length&&(g-=e.virtual.slides.length),u=a(`[data-swiper-slide-index="${g}"]`)}else u=a(`[data-swiper-slide-index="${o}"]`);else r?(u=t.filter(g=>g.column===o)[0],l=t.filter(g=>g.column===o+1)[0],c=t.filter(g=>g.column===o-1)[0]):u=t[o];u&&(r||(l=tJe(u,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!l&&(l=t[0]),c=eJe(u,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c===0&&(c=t[t.length-1]))),t.forEach(g=>{CA(g,g===u,n.slideActiveClass),CA(g,g===l,n.slideNextClass),CA(g,g===c,n.slidePrevClass)}),e.emitSlidesClasses()}const _k=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,i=t.closest(n());if(i){let o=i.querySelector(`.${e.params.lazyPreloaderClass}`);!o&&e.isElement&&(i.shadowRoot?o=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(o=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),o&&o.remove())})),o&&o.remove()}},SA=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},WM=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const i=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),o=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const r=o,a=[r-t];a.push(...Array.from({length:t}).map((u,c)=>r+i+c)),e.slides.forEach((u,c)=>{a.includes(u.column)&&SA(e,c)});return}const s=o+i-1;if(e.params.rewind||e.params.loop)for(let r=o-t;r<=s+t;r+=1){const a=(r%n+n)%n;(a<o||a>s)&&SA(e,a)}else for(let r=Math.max(o-t,0);r<=Math.min(s+t,n-1);r+=1)r!==o&&(r>s||r<o)&&SA(e,r)};function gJe(e){const{slidesGrid:t,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;let o;for(let s=0;s<t.length;s+=1)typeof t[s+1]<"u"?i>=t[s]&&i<t[s+1]-(t[s+1]-t[s])/2?o=s:i>=t[s]&&i<t[s+1]&&(o=s+1):i>=t[s]&&(o=s);return n.normalizeSlideIndex&&(o<0||typeof o>"u")&&(o=0),o}function yJe(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:o,activeIndex:s,realIndex:r,snapIndex:a}=t;let u=e,c;const l=S=>{let _=S-t.virtual.slidesBefore;return _<0&&(_=t.virtual.slides.length+_),_>=t.virtual.slides.length&&(_-=t.virtual.slides.length),_};if(typeof u>"u"&&(u=gJe(t)),i.indexOf(n)>=0)c=i.indexOf(n);else{const S=Math.min(o.slidesPerGroupSkip,u);c=S+Math.floor((u-S)/o.slidesPerGroup)}if(c>=i.length&&(c=i.length-1),u===s&&!t.params.loop){c!==a&&(t.snapIndex=c,t.emit("snapIndexChange"));return}if(u===s&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=l(u);return}const g=t.grid&&o.grid&&o.grid.rows>1;let C;if(t.virtual&&o.virtual.enabled&&o.loop)C=l(u);else if(g){const S=t.slides.filter(A=>A.column===u)[0];let _=parseInt(S.getAttribute("data-swiper-slide-index"),10);Number.isNaN(_)&&(_=Math.max(t.slides.indexOf(S),0)),C=Math.floor(_/o.grid.rows)}else if(t.slides[u]){const S=t.slides[u].getAttribute("data-swiper-slide-index");S?C=parseInt(S,10):C=u}else C=u;Object.assign(t,{previousSnapIndex:a,snapIndex:c,previousRealIndex:r,realIndex:C,previousIndex:s,activeIndex:u}),t.initialized&&WM(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(r!==C&&t.emit("realIndexChange"),t.emit("slideChange"))}function bJe(e,t){const n=this,i=n.params;let o=e.closest(`.${i.slideClass}, swiper-slide`);!o&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(a=>{!o&&a.matches&&a.matches(`.${i.slideClass}, swiper-slide`)&&(o=a)});let s=!1,r;if(o){for(let a=0;a<n.slides.length;a+=1)if(n.slides[a]===o){s=!0,r=a;break}}if(o&&s)n.clickedSlide=o,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(o.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=r;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}i.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var kJe={updateSize:uJe,updateSlides:dJe,updateAutoHeight:fJe,updateSlidesOffset:hJe,updateSlidesProgress:pJe,updateProgress:mJe,updateSlidesClasses:vJe,updateActiveIndex:yJe,updateClickedSlide:bJe};function CJe(e){e===void 0&&(e=this.isHorizontal()?"x":"y");const t=this,{params:n,rtlTranslate:i,translate:o,wrapperEl:s}=t;if(n.virtualTranslate)return i?-o:o;if(n.cssMode)return o;let r=JKe(s,e);return r+=t.cssOverflowAdjustment(),i&&(r=-r),r||0}function SJe(e,t){const n=this,{rtlTranslate:i,params:o,wrapperEl:s,progress:r}=n;let a=0,u=0;const c=0;n.isHorizontal()?a=i?-e:e:u=e,o.roundLengths&&(a=Math.floor(a),u=Math.floor(u)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?a:u,o.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-a:-u:o.virtualTranslate||(n.isHorizontal()?a-=n.cssOverflowAdjustment():u-=n.cssOverflowAdjustment(),s.style.transform=`translate3d(${a}px, ${u}px, ${c}px)`);let l;const g=n.maxTranslate()-n.minTranslate();g===0?l=0:l=(e-n.minTranslate())/g,l!==r&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function wJe(){return-this.snapGrid[0]}function _Je(){return-this.snapGrid[this.snapGrid.length-1]}function IJe(e,t,n,i,o){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),i===void 0&&(i=!0);const s=this,{params:r,wrapperEl:a}=s;if(s.animating&&r.preventInteractionOnTransition)return!1;const u=s.minTranslate(),c=s.maxTranslate();let l;if(i&&e>u?l=u:i&&e<c?l=c:l=e,s.updateProgress(l),r.cssMode){const g=s.isHorizontal();if(t===0)a[g?"scrollLeft":"scrollTop"]=-l;else{if(!s.support.smoothScroll)return SZ({swiper:s,targetPosition:-l,side:g?"left":"top"}),!0;a.scrollTo({[g?"left":"top"]:-l,behavior:"smooth"})}return!0}return t===0?(s.setTransition(0),s.setTranslate(l),n&&(s.emit("beforeTransitionStart",t,o),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(l),n&&(s.emit("beforeTransitionStart",t,o),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(C){!s||s.destroyed||C.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,s.animating=!1,n&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}var xJe={getTranslate:CJe,setTranslate:SJe,minTranslate:wJe,maxTranslate:_Je,translateTo:IJe};function $Je(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?"0ms":""),n.emit("setTransition",e,t)}function IZ(e){let{swiper:t,runCallbacks:n,direction:i,step:o}=e;const{activeIndex:s,previousIndex:r}=t;let a=i;if(a||(s>r?a="next":s<r?a="prev":a="reset"),t.emit(`transition${o}`),n&&s!==r){if(a==="reset"){t.emit(`slideResetTransition${o}`);return}t.emit(`slideChangeTransition${o}`),a==="next"?t.emit(`slideNextTransition${o}`):t.emit(`slidePrevTransition${o}`)}}function AJe(e,t){e===void 0&&(e=!0);const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),IZ({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function EJe(e,t){e===void 0&&(e=!0);const n=this,{params:i}=n;n.animating=!1,!i.cssMode&&(n.setTransition(0),IZ({swiper:n,runCallbacks:e,direction:t,step:"End"}))}var MJe={setTransition:$Je,transitionStart:AJe,transitionEnd:EJe};function TJe(e,t,n,i,o){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const s=this;let r=e;r<0&&(r=0);const{params:a,snapGrid:u,slidesGrid:c,previousIndex:l,activeIndex:g,rtlTranslate:C,wrapperEl:S,enabled:_}=s;if(!_&&!i&&!o||s.destroyed||s.animating&&a.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=s.params.speed);const A=Math.min(s.params.slidesPerGroupSkip,r);let y=A+Math.floor((r-A)/s.params.slidesPerGroup);y>=u.length&&(y=u.length-1);const d=-u[y];if(a.normalizeSlideIndex)for(let p=0;p<c.length;p+=1){const h=-Math.floor(d*100),b=Math.floor(c[p]*100),w=Math.floor(c[p+1]*100);typeof c[p+1]<"u"?h>=b&&h<w-(w-b)/2?r=p:h>=b&&h<w&&(r=p+1):h>=b&&(r=p)}if(s.initialized&&r!==g&&(!s.allowSlideNext&&(C?d>s.translate&&d>s.minTranslate():d<s.translate&&d<s.minTranslate())||!s.allowSlidePrev&&d>s.translate&&d>s.maxTranslate()&&(g||0)!==r))return!1;r!==(l||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(d);let v;r>g?v="next":r<g?v="prev":v="reset";const m=s.virtual&&s.params.virtual.enabled;if(!(m&&o)&&(C&&-d===s.translate||!C&&d===s.translate))return s.updateActiveIndex(r),a.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),a.effect!=="slide"&&s.setTranslate(d),v!=="reset"&&(s.transitionStart(n,v),s.transitionEnd(n,v)),!1;if(a.cssMode){const p=s.isHorizontal(),h=C?d:-d;if(t===0)m&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),m&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{S[p?"scrollLeft":"scrollTop"]=h})):S[p?"scrollLeft":"scrollTop"]=h,m&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return SZ({swiper:s,targetPosition:h,side:p?"left":"top"}),!0;S.scrollTo({[p?"left":"top"]:h,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(d),s.updateActiveIndex(r),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,i),s.transitionStart(n,v),t===0?s.transitionEnd(n,v):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(h){!s||s.destroyed||h.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,v))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function PJe(e,t,n,i){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const o=this;if(o.destroyed)return;typeof t>"u"&&(t=o.params.speed);const s=o.grid&&o.params.grid&&o.params.grid.rows>1;let r=e;if(o.params.loop)if(o.virtual&&o.params.virtual.enabled)r=r+o.virtual.slidesBefore;else{let a;if(s){const C=r*o.params.grid.rows;a=o.slides.filter(S=>S.getAttribute("data-swiper-slide-index")*1===C)[0].column}else a=o.getSlideIndexByData(r);const u=s?Math.ceil(o.slides.length/o.params.grid.rows):o.slides.length,{centeredSlides:c}=o.params;let l=o.params.slidesPerView;l==="auto"?l=o.slidesPerViewDynamic():(l=Math.ceil(parseFloat(o.params.slidesPerView,10)),c&&l%2===0&&(l=l+1));let g=u-a<l;if(c&&(g=g||a<Math.ceil(l/2)),i&&c&&o.params.slidesPerView!=="auto"&&!s&&(g=!1),g){const C=c?a<o.activeIndex?"prev":"next":a-o.activeIndex-1<o.params.slidesPerView?"next":"prev";o.loopFix({direction:C,slideTo:!0,activeSlideIndex:C==="next"?a+1:a-u+1,slideRealIndex:C==="next"?o.realIndex:void 0})}if(s){const C=r*o.params.grid.rows;r=o.slides.filter(S=>S.getAttribute("data-swiper-slide-index")*1===C)[0].column}else r=o.getSlideIndexByData(r)}return requestAnimationFrame(()=>{o.slideTo(r,t,n,i)}),o}function OJe(e,t,n){t===void 0&&(t=!0);const i=this,{enabled:o,params:s,animating:r}=i;if(!o||i.destroyed)return i;typeof e>"u"&&(e=i.params.speed);let a=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));const u=i.activeIndex<s.slidesPerGroupSkip?1:a,c=i.virtual&&s.virtual.enabled;if(s.loop){if(r&&!c&&s.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+u,e,t,n)}),!0}return s.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+u,e,t,n)}function LJe(e,t,n){t===void 0&&(t=!0);const i=this,{params:o,snapGrid:s,slidesGrid:r,rtlTranslate:a,enabled:u,animating:c}=i;if(!u||i.destroyed)return i;typeof e>"u"&&(e=i.params.speed);const l=i.virtual&&o.virtual.enabled;if(o.loop){if(c&&!l&&o.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}const g=a?i.translate:-i.translate;function C(d){return d<0?-Math.floor(Math.abs(d)):Math.floor(d)}const S=C(g),_=s.map(d=>C(d));let A=s[_.indexOf(S)-1];if(typeof A>"u"&&o.cssMode){let d;s.forEach((v,m)=>{S>=v&&(d=m)}),typeof d<"u"&&(A=s[d>0?d-1:d])}let y=0;if(typeof A<"u"&&(y=r.indexOf(A),y<0&&(y=i.activeIndex-1),o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(y=y-i.slidesPerViewDynamic("previous",!0)+1,y=Math.max(y,0))),o.rewind&&i.isBeginning){const d=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(d,e,t,n)}else if(o.loop&&i.activeIndex===0&&o.cssMode)return requestAnimationFrame(()=>{i.slideTo(y,e,t,n)}),!0;return i.slideTo(y,e,t,n)}function DJe(e,t,n){t===void 0&&(t=!0);const i=this;if(!i.destroyed)return typeof e>"u"&&(e=i.params.speed),i.slideTo(i.activeIndex,e,t,n)}function NJe(e,t,n,i){t===void 0&&(t=!0),i===void 0&&(i=.5);const o=this;if(o.destroyed)return;typeof e>"u"&&(e=o.params.speed);let s=o.activeIndex;const r=Math.min(o.params.slidesPerGroupSkip,s),a=r+Math.floor((s-r)/o.params.slidesPerGroup),u=o.rtlTranslate?o.translate:-o.translate;if(u>=o.snapGrid[a]){const c=o.snapGrid[a],l=o.snapGrid[a+1];u-c>(l-c)*i&&(s+=o.params.slidesPerGroup)}else{const c=o.snapGrid[a-1],l=o.snapGrid[a];u-c<=(l-c)*i&&(s-=o.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,o.slidesGrid.length-1),o.slideTo(s,e,t,n)}function jJe(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,i=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let o=e.clickedIndex,s;const r=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?o<e.loopedSlides-i/2||o>e.slides.length-e.loopedSlides+i/2?(e.loopFix(),o=e.getSlideIndex($l(n,`${r}[data-swiper-slide-index="${s}"]`)[0]),VM(()=>{e.slideTo(o)})):e.slideTo(o):o>e.slides.length-i?(e.loopFix(),o=e.getSlideIndex($l(n,`${r}[data-swiper-slide-index="${s}"]`)[0]),VM(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}var zJe={slideTo:TJe,slideToLoop:PJe,slideNext:OJe,slidePrev:LJe,slideReset:DJe,slideToClosest:NJe,slideToClickedSlide:jJe};function RJe(e){const t=this,{params:n,slidesEl:i}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const o=()=>{$l(i,`.${n.slideClass}, swiper-slide`).forEach((g,C)=>{g.setAttribute("data-swiper-slide-index",C)})},s=t.grid&&n.grid&&n.grid.rows>1,r=n.slidesPerGroup*(s?n.grid.rows:1),a=t.slides.length%r!==0,u=s&&t.slides.length%n.grid.rows!==0,c=l=>{for(let g=0;g<l;g+=1){const C=t.isElement?HM("swiper-slide",[n.slideBlankClass]):HM("div",[n.slideClass,n.slideBlankClass]);t.slidesEl.append(C)}};if(a){if(n.loopAddBlankSlides){const l=r-t.slides.length%r;c(l),t.recalcSlides(),t.updateSlides()}else gC("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else if(u){if(n.loopAddBlankSlides){const l=n.grid.rows-t.slides.length%n.grid.rows;c(l),t.recalcSlides(),t.updateSlides()}else gC("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else o();t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function BJe(e){let{slideRealIndex:t,slideTo:n=!0,direction:i,setTranslate:o,activeSlideIndex:s,byController:r,byMousewheel:a}=e===void 0?{}:e;const u=this;if(!u.params.loop)return;u.emit("beforeLoopFix");const{slides:c,allowSlidePrev:l,allowSlideNext:g,slidesEl:C,params:S}=u,{centeredSlides:_}=S;if(u.allowSlidePrev=!0,u.allowSlideNext=!0,u.virtual&&S.virtual.enabled){n&&(!S.centeredSlides&&u.snapIndex===0?u.slideTo(u.virtual.slides.length,0,!1,!0):S.centeredSlides&&u.snapIndex<S.slidesPerView?u.slideTo(u.virtual.slides.length+u.snapIndex,0,!1,!0):u.snapIndex===u.snapGrid.length-1&&u.slideTo(u.virtual.slidesBefore,0,!1,!0)),u.allowSlidePrev=l,u.allowSlideNext=g,u.emit("loopFix");return}let A=S.slidesPerView;A==="auto"?A=u.slidesPerViewDynamic():(A=Math.ceil(parseFloat(S.slidesPerView,10)),_&&A%2===0&&(A=A+1));const y=S.slidesPerGroupAuto?A:S.slidesPerGroup;let d=y;d%y!==0&&(d+=y-d%y),d+=S.loopAdditionalSlides,u.loopedSlides=d;const v=u.grid&&S.grid&&S.grid.rows>1;c.length<A+d?gC("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):v&&S.grid.fill==="row"&&gC("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const m=[],f=[];let p=u.activeIndex;typeof s>"u"?s=u.getSlideIndex(c.filter(j=>j.classList.contains(S.slideActiveClass))[0]):p=s;const h=i==="next"||!i,b=i==="prev"||!i;let w=0,k=0;const $=v?Math.ceil(c.length/S.grid.rows):c.length,N=(v?c[s].column:s)+(_&&typeof o>"u"?-A/2+.5:0);if(N<d){w=Math.max(d-N,y);for(let j=0;j<d-N;j+=1){const z=j-Math.floor(j/$)*$;if(v){const V=$-z-1;for(let W=c.length-1;W>=0;W-=1)c[W].column===V&&m.push(W)}else m.push($-z-1)}}else if(N+A>$-d){k=Math.max(N-($-d*2),y);for(let j=0;j<k;j+=1){const z=j-Math.floor(j/$)*$;v?c.forEach((V,W)=>{V.column===z&&f.push(W)}):f.push(z)}}if(u.__preventObserver__=!0,requestAnimationFrame(()=>{u.__preventObserver__=!1}),b&&m.forEach(j=>{c[j].swiperLoopMoveDOM=!0,C.prepend(c[j]),c[j].swiperLoopMoveDOM=!1}),h&&f.forEach(j=>{c[j].swiperLoopMoveDOM=!0,C.append(c[j]),c[j].swiperLoopMoveDOM=!1}),u.recalcSlides(),S.slidesPerView==="auto"?u.updateSlides():v&&(m.length>0&&b||f.length>0&&h)&&u.slides.forEach((j,z)=>{u.grid.updateSlide(z,j,u.slides)}),S.watchSlidesProgress&&u.updateSlidesOffset(),n){if(m.length>0&&b){if(typeof t>"u"){const j=u.slidesGrid[p],V=u.slidesGrid[p+w]-j;a?u.setTranslate(u.translate-V):(u.slideTo(p+Math.ceil(w),0,!1,!0),o&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-V,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-V))}else if(o){const j=v?m.length/S.grid.rows:m.length;u.slideTo(u.activeIndex+j,0,!1,!0),u.touchEventsData.currentTranslate=u.translate}}else if(f.length>0&&h)if(typeof t>"u"){const j=u.slidesGrid[p],V=u.slidesGrid[p-k]-j;a?u.setTranslate(u.translate-V):(u.slideTo(p-k,0,!1,!0),o&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-V,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-V))}else{const j=v?f.length/S.grid.rows:f.length;u.slideTo(u.activeIndex-j,0,!1,!0)}}if(u.allowSlidePrev=l,u.allowSlideNext=g,u.controller&&u.controller.control&&!r){const j={slideRealIndex:t,direction:i,setTranslate:o,activeSlideIndex:s,byController:!0};Array.isArray(u.controller.control)?u.controller.control.forEach(z=>{!z.destroyed&&z.params.loop&&z.loopFix({...j,slideTo:z.params.slidesPerView===S.slidesPerView?n:!1})}):u.controller.control instanceof u.constructor&&u.controller.control.params.loop&&u.controller.control.loopFix({...j,slideTo:u.controller.control.params.slidesPerView===S.slidesPerView?n:!1})}u.emit("loopFix")}function FJe(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const i=[];e.slides.forEach(o=>{const s=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;i[s]=o}),e.slides.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),i.forEach(o=>{n.append(o)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var VJe={loopCreate:RJe,loopFix:BJe,loopDestroy:FJe};function HJe(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function WJe(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var UJe={setGrabCursor:HJe,unsetGrabCursor:WJe};function ZJe(e,t){t===void 0&&(t=this);function n(i){if(!i||i===nm()||i===Uo())return null;i.assignedSlot&&(i=i.assignedSlot);const o=i.closest(e);return!o&&!i.getRootNode?null:o||n(i.getRootNode().host)}return n(t)}function B7(e,t,n){const i=Uo(),{params:o}=e,s=o.edgeSwipeDetection,r=o.edgeSwipeThreshold;return s&&(n<=r||n>=i.innerWidth-r)?s==="prevent"?(t.preventDefault(),!0):!1:!0}function GJe(e){const t=this,n=nm();let i=e;i.originalEvent&&(i=i.originalEvent);const o=t.touchEventsData;if(i.type==="pointerdown"){if(o.pointerId!==null&&o.pointerId!==i.pointerId)return;o.pointerId=i.pointerId}else i.type==="touchstart"&&i.targetTouches.length===1&&(o.touchId=i.targetTouches[0].identifier);if(i.type==="touchstart"){B7(t,i,i.targetTouches[0].pageX);return}const{params:s,touches:r,enabled:a}=t;if(!a||!s.simulateTouch&&i.pointerType==="mouse"||t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let u=i.target;if(s.touchEventsTarget==="wrapper"&&!QKe(u,t.wrapperEl)||"which"in i&&i.which===3||"button"in i&&i.button>0||o.isTouched&&o.isMoved)return;const c=!!s.noSwipingClass&&s.noSwipingClass!=="",l=i.composedPath?i.composedPath():i.path;c&&i.target&&i.target.shadowRoot&&l&&(u=l[0]);const g=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,C=!!(i.target&&i.target.shadowRoot);if(s.noSwiping&&(C?ZJe(g,u):u.closest(g))){t.allowClick=!0;return}if(s.swipeHandler&&!u.closest(s.swipeHandler))return;r.currentX=i.pageX,r.currentY=i.pageY;const S=r.currentX,_=r.currentY;if(!B7(t,i,S))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=S,r.startY=_,o.touchStartTime=vC(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(o.allowThresholdMove=!1);let A=!0;u.matches(o.focusableElements)&&(A=!1,u.nodeName==="SELECT"&&(o.isTouched=!1)),n.activeElement&&n.activeElement.matches(o.focusableElements)&&n.activeElement!==u&&(i.pointerType==="mouse"||i.pointerType!=="mouse"&&!u.matches(o.focusableElements))&&n.activeElement.blur();const y=A&&t.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||y)&&!u.isContentEditable&&i.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function YJe(e){const t=nm(),n=this,i=n.touchEventsData,{params:o,touches:s,rtlTranslate:r,enabled:a}=n;if(!a||!o.simulateTouch&&e.pointerType==="mouse")return;let u=e;if(u.originalEvent&&(u=u.originalEvent),u.type==="pointermove"&&(i.touchId!==null||u.pointerId!==i.pointerId))return;let c;if(u.type==="touchmove"){if(c=[...u.changedTouches].filter(h=>h.identifier===i.touchId)[0],!c||c.identifier!==i.touchId)return}else c=u;if(!i.isTouched){i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",u);return}const l=c.pageX,g=c.pageY;if(u.preventedByNestedSwiper){s.startX=l,s.startY=g;return}if(!n.allowTouchMove){u.target.matches(i.focusableElements)||(n.allowClick=!1),i.isTouched&&(Object.assign(s,{startX:l,startY:g,currentX:l,currentY:g}),i.touchStartTime=vC());return}if(o.touchReleaseOnEdges&&!o.loop){if(n.isVertical()){if(g<s.startY&&n.translate<=n.maxTranslate()||g>s.startY&&n.translate>=n.minTranslate()){i.isTouched=!1,i.isMoved=!1;return}}else if(l<s.startX&&n.translate<=n.maxTranslate()||l>s.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&t.activeElement.matches(i.focusableElements)&&t.activeElement!==u.target&&u.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&u.target===t.activeElement&&u.target.matches(i.focusableElements)){i.isMoved=!0,n.allowClick=!1;return}i.allowTouchCallbacks&&n.emit("touchMove",u),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=l,s.currentY=g;const C=s.currentX-s.startX,S=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(C**2+S**2)<n.params.threshold)return;if(typeof i.isScrolling>"u"){let h;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?i.isScrolling=!1:C*C+S*S>=25&&(h=Math.atan2(Math.abs(S),Math.abs(C))*180/Math.PI,i.isScrolling=n.isHorizontal()?h>o.touchAngle:90-h>o.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",u),typeof i.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(i.startMoving=!0),i.isScrolling||u.type==="touchmove"&&i.preventTouchMoveFromPointerMove){i.isTouched=!1;return}if(!i.startMoving)return;n.allowClick=!1,!o.cssMode&&u.cancelable&&u.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&u.stopPropagation();let _=n.isHorizontal()?C:S,A=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;o.oneWayMovement&&(_=Math.abs(_)*(r?1:-1),A=Math.abs(A)*(r?1:-1)),s.diff=_,_*=o.touchRatio,r&&(_=-_,A=-A);const y=n.touchesDirection;n.swipeDirection=_>0?"prev":"next",n.touchesDirection=A>0?"prev":"next";const d=n.params.loop&&!o.cssMode,v=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!i.isMoved){if(d&&v&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const h=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(h)}i.allowMomentumBounce=!1,o.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",u)}let m;if(new Date().getTime(),i.isMoved&&i.allowThresholdMove&&y!==n.touchesDirection&&d&&v&&Math.abs(_)>=1){Object.assign(s,{startX:l,startY:g,currentX:l,currentY:g,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,i.startTranslate=i.currentTranslate;return}n.emit("sliderMove",u),i.isMoved=!0,i.currentTranslate=_+i.startTranslate;let f=!0,p=o.resistanceRatio;if(o.touchReleaseOnEdges&&(p=0),_>0?(d&&v&&!m&&i.allowThresholdMove&&i.currentTranslate>(o.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(o.slidesPerView!=="auto"&&n.slides.length-o.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(f=!1,o.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+_)**p))):_<0&&(d&&v&&!m&&i.allowThresholdMove&&i.currentTranslate<(o.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(o.slidesPerView!=="auto"&&n.slides.length-o.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(o.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(f=!1,o.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-_)**p))),f&&(u.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(i.currentTranslate=i.startTranslate),o.threshold>0)if(Math.abs(_)>o.threshold||i.allowThresholdMove){if(!i.allowThresholdMove){i.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,i.currentTranslate=i.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{i.currentTranslate=i.startTranslate;return}!o.followFinger||o.cssMode||((o.freeMode&&o.freeMode.enabled&&n.freeMode||o.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),o.freeMode&&o.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function XJe(e){const t=this,n=t.touchEventsData;let i=e;i.originalEvent&&(i=i.originalEvent);let o;if(i.type==="touchend"||i.type==="touchcancel"){if(o=[...i.changedTouches].filter(p=>p.identifier===n.touchId)[0],!o||o.identifier!==n.touchId)return}else{if(n.touchId!==null||i.pointerId!==n.pointerId)return;o=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&!(["pointercancel","contextmenu"].includes(i.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:r,touches:a,rtlTranslate:u,slidesGrid:c,enabled:l}=t;if(!l||!r.simulateTouch&&i.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",i),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}r.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const g=vC(),C=g-n.touchStartTime;if(t.allowClick){const p=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(p&&p[0]||i.target,p),t.emit("tap click",i),C<300&&g-n.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(n.lastClickTime=vC(),VM(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||a.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let S;if(r.followFinger?S=u?t.translate:-t.translate:S=-n.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:S});return}const _=S>=-t.maxTranslate()&&!t.params.loop;let A=0,y=t.slidesSizesGrid[0];for(let p=0;p<c.length;p+=p<r.slidesPerGroupSkip?1:r.slidesPerGroup){const h=p<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof c[p+h]<"u"?(_||S>=c[p]&&S<c[p+h])&&(A=p,y=c[p+h]-c[p]):(_||S>=c[p])&&(A=p,y=c[c.length-1]-c[c.length-2])}let d=null,v=null;r.rewind&&(t.isBeginning?v=r.virtual&&r.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(d=0));const m=(S-c[A])/y,f=A<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(C>r.longSwipesMs){if(!r.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(m>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?d:A+f):t.slideTo(A)),t.swipeDirection==="prev"&&(m>1-r.longSwipesRatio?t.slideTo(A+f):v!==null&&m<0&&Math.abs(m)>r.longSwipesRatio?t.slideTo(v):t.slideTo(A))}else{if(!r.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(i.target===t.navigation.nextEl||i.target===t.navigation.prevEl)?i.target===t.navigation.nextEl?t.slideTo(A+f):t.slideTo(A):(t.swipeDirection==="next"&&t.slideTo(d!==null?d:A+f),t.swipeDirection==="prev"&&t.slideTo(v!==null?v:A))}}function F7(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:o,snapGrid:s}=e,r=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=r&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!a?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!r?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=o,e.allowSlideNext=i,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function KJe(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function JJe(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let o;const s=e.maxTranslate()-e.minTranslate();s===0?o=0:o=(e.translate-e.minTranslate())/s,o!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function qJe(e){const t=this;_k(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function QJe(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const xZ=(e,t)=>{const n=nm(),{params:i,el:o,wrapperEl:s,device:r}=e,a=!!i.nested,u=t==="on"?"addEventListener":"removeEventListener",c=t;!o||typeof o=="string"||(n[u]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),o[u]("touchstart",e.onTouchStart,{passive:!1}),o[u]("pointerdown",e.onTouchStart,{passive:!1}),n[u]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[u]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[u]("touchend",e.onTouchEnd,{passive:!0}),n[u]("pointerup",e.onTouchEnd,{passive:!0}),n[u]("pointercancel",e.onTouchEnd,{passive:!0}),n[u]("touchcancel",e.onTouchEnd,{passive:!0}),n[u]("pointerout",e.onTouchEnd,{passive:!0}),n[u]("pointerleave",e.onTouchEnd,{passive:!0}),n[u]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&o[u]("click",e.onClick,!0),i.cssMode&&s[u]("scroll",e.onScroll),i.updateOnWindowResize?e[c](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",F7,!0):e[c]("observerUpdate",F7,!0),o[u]("load",e.onLoad,{capture:!0}))};function eqe(){const e=this,{params:t}=e;e.onTouchStart=GJe.bind(e),e.onTouchMove=YJe.bind(e),e.onTouchEnd=XJe.bind(e),e.onDocumentTouchStart=QJe.bind(e),t.cssMode&&(e.onScroll=JJe.bind(e)),e.onClick=KJe.bind(e),e.onLoad=qJe.bind(e),xZ(e,"on")}function tqe(){xZ(this,"off")}var nqe={attachEvents:eqe,detachEvents:tqe};const V7=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function iqe(){const e=this,{realIndex:t,initialized:n,params:i,el:o}=e,s=i.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const r=e.getBreakpoint(s,e.params.breakpointsBase,e.el);if(!r||e.currentBreakpoint===r)return;const u=(r in s?s[r]:void 0)||e.originalParams,c=V7(e,i),l=V7(e,u),g=e.params.grabCursor,C=u.grabCursor,S=i.enabled;c&&!l?(o.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&l&&(o.classList.add(`${i.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill==="column"||!u.grid.fill&&i.grid.fill==="column")&&o.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),g&&!C?e.unsetGrabCursor():!g&&C&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(m=>{if(typeof u[m]>"u")return;const f=i[m]&&i[m].enabled,p=u[m]&&u[m].enabled;f&&!p&&e[m].disable(),!f&&p&&e[m].enable()});const _=u.direction&&u.direction!==i.direction,A=i.loop&&(u.slidesPerView!==i.slidesPerView||_),y=i.loop;_&&n&&e.changeDirection(),Fo(e.params,u);const d=e.params.enabled,v=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),S&&!d?e.disable():!S&&d&&e.enable(),e.currentBreakpoint=r,e.emit("_beforeBreakpoint",u),n&&(A?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&v?(e.loopCreate(t),e.updateSlides()):y&&!v&&e.loopDestroy()),e.emit("breakpoint",u)}function rqe(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let i=!1;const o=Uo(),s=t==="window"?o.innerHeight:n.clientHeight,r=Object.keys(e).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const u=parseFloat(a.substr(1));return{value:s*u,point:a}}return{value:a,point:a}});r.sort((a,u)=>parseInt(a.value,10)-parseInt(u.value,10));for(let a=0;a<r.length;a+=1){const{point:u,value:c}=r[a];t==="window"?o.matchMedia(`(min-width: ${c}px)`).matches&&(i=u):c<=n.clientWidth&&(i=u)}return i||"max"}var oqe={setBreakpoint:iqe,getBreakpoint:rqe};function sqe(e,t){const n=[];return e.forEach(i=>{typeof i=="object"?Object.keys(i).forEach(o=>{i[o]&&n.push(t+o)}):typeof i=="string"&&n.push(t+i)}),n}function aqe(){const e=this,{classNames:t,params:n,rtl:i,el:o,device:s}=e,r=sqe(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...r),o.classList.add(...t),e.emitContainerClasses()}function lqe(){const e=this,{el:t,classNames:n}=e;!t||typeof t=="string"||(t.classList.remove(...n),e.emitContainerClasses())}var cqe={addClasses:aqe,removeClasses:lqe};function uqe(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:i}=n;if(i){const o=e.slides.length-1,s=e.slidesGrid[o]+e.slidesSizesGrid[o]+i*2;e.isLocked=e.size>s}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var dqe={checkOverflow:uqe},UM={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function fqe(e,t){return function(i){i===void 0&&(i={});const o=Object.keys(i)[0],s=i[o];if(typeof s!="object"||s===null){Fo(t,i);return}if(e[o]===!0&&(e[o]={enabled:!0}),o==="navigation"&&e[o]&&e[o].enabled&&!e[o].prevEl&&!e[o].nextEl&&(e[o].auto=!0),["pagination","scrollbar"].indexOf(o)>=0&&e[o]&&e[o].enabled&&!e[o].el&&(e[o].auto=!0),!(o in e&&"enabled"in s)){Fo(t,i);return}typeof e[o]=="object"&&!("enabled"in e[o])&&(e[o].enabled=!0),e[o]||(e[o]={enabled:!1}),Fo(t,i)}}const wA={eventsEmitter:cJe,update:kJe,translate:xJe,transition:MJe,slide:zJe,loop:VJe,grabCursor:UJe,events:nqe,breakpoints:oqe,checkOverflow:dqe,classes:cqe},_A={};let dO=class Wa{constructor(){let t,n;for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];o.length===1&&o[0].constructor&&Object.prototype.toString.call(o[0]).slice(8,-1)==="Object"?n=o[0]:[t,n]=o,n||(n={}),n=Fo({},n),t&&!n.el&&(n.el=t);const r=nm();if(n.el&&typeof n.el=="string"&&r.querySelectorAll(n.el).length>1){const l=[];return r.querySelectorAll(n.el).forEach(g=>{const C=Fo({},n,{el:g});l.push(new Wa(C))}),l}const a=this;a.__swiper__=!0,a.support=wZ(),a.device=_Z({userAgent:n.userAgent}),a.browser=sJe(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],n.modules&&Array.isArray(n.modules)&&a.modules.push(...n.modules);const u={};a.modules.forEach(l=>{l({params:n,swiper:a,extendParams:fqe(n,u),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const c=Fo({},UM,u);return a.params=Fo({},c,_A,n),a.originalParams=Fo({},a.params),a.passedParams=Fo({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach(l=>{a.on(l,a.params.on[l])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:i}=this,o=$l(n,`.${i.slideClass}, swiper-slide`),s=j7(o[0]);return j7(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:i}=t;t.slides=$l(n,`.${i.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const i=this;t=Math.min(Math.max(t,0),1);const o=i.minTranslate(),r=(i.maxTranslate()-o)*t+o;i.translateTo(r,typeof n>"u"?0:n),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(i=>i.indexOf("swiper")===0||i.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(i=>i.indexOf("swiper-slide")===0||i.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(i=>{const o=t.getSlideClasses(i);n.push({slideEl:i,classNames:o}),t.emit("_slideClass",i,o)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const i=this,{params:o,slides:s,slidesGrid:r,slidesSizesGrid:a,size:u,activeIndex:c}=i;let l=1;if(typeof o.slidesPerView=="number")return o.slidesPerView;if(o.centeredSlides){let g=s[c]?Math.ceil(s[c].swiperSlideSize):0,C;for(let S=c+1;S<s.length;S+=1)s[S]&&!C&&(g+=Math.ceil(s[S].swiperSlideSize),l+=1,g>u&&(C=!0));for(let S=c-1;S>=0;S-=1)s[S]&&!C&&(g+=s[S].swiperSlideSize,l+=1,g>u&&(C=!0))}else if(t==="current")for(let g=c+1;g<s.length;g+=1)(n?r[g]+a[g]-r[c]<u:r[g]-r[c]<u)&&(l+=1);else for(let g=c-1;g>=0;g-=1)r[c]-r[g]<u&&(l+=1);return l}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:i}=t;i.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(r=>{r.complete&&_k(t,r)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function o(){const r=t.rtlTranslate?t.translate*-1:t.translate,a=Math.min(Math.max(r,t.maxTranslate()),t.minTranslate());t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}let s;if(i.freeMode&&i.freeMode.enabled&&!i.cssMode)o(),i.autoHeight&&t.updateAutoHeight();else{if((i.slidesPerView==="auto"||i.slidesPerView>1)&&t.isEnd&&!i.centeredSlides){const r=t.virtual&&i.virtual.enabled?t.virtual.slides:t.slides;s=t.slideTo(r.length-1,0,!1,!0)}else s=t.slideTo(t.activeIndex,0,!1,!0);s||o()}i.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const i=this,o=i.params.direction;return t||(t=o==="horizontal"?"vertical":"horizontal"),t===o||t!=="horizontal"&&t!=="vertical"||(i.el.classList.remove(`${i.params.containerModifierClass}${o}`),i.el.classList.add(`${i.params.containerModifierClass}${t}`),i.emitContainerClasses(),i.params.direction=t,i.slides.forEach(s=>{t==="vertical"?s.style.width="":s.style.height=""}),i.emit("changeDirection"),n&&i.update()),i}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let i=t||n.params.el;if(typeof i=="string"&&(i=document.querySelector(i)),!i)return!1;i.swiper=n,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const o=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=(()=>i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(o()):$l(i,o())[0])();return!r&&n.params.createElements&&(r=HM("div",n.params.wrapperClass),i.append(r),$l(i,`.${n.params.slideClass}`).forEach(a=>{r.append(a)})),Object.assign(n,{el:i,wrapperEl:r,slidesEl:n.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:r,hostEl:n.isElement?i.parentNode.host:i,mounted:!0,rtl:i.dir.toLowerCase()==="rtl"||Uc(i,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(i.dir.toLowerCase()==="rtl"||Uc(i,"direction")==="rtl"),wrongRTL:Uc(r,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const o=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&o.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),o.forEach(s=>{s.complete?_k(n,s):s.addEventListener("load",r=>{_k(n,r.target)})}),WM(n),n.initialized=!0,WM(n),n.emit("init"),n.emit("afterInit"),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const i=this,{params:o,el:s,wrapperEl:r,slides:a}=i;return typeof i.params>"u"||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),o.loop&&i.loopDestroy(),n&&(i.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),r&&r.removeAttribute("style"),a&&a.length&&a.forEach(u=>{u.classList.remove(o.slideVisibleClass,o.slideFullyVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass),u.removeAttribute("style"),u.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(u=>{i.off(u)}),t!==!1&&(i.el&&typeof i.el!="string"&&(i.el.swiper=null),XKe(i)),i.destroyed=!0),null}static extendDefaults(t){Fo(_A,t)}static get extendedDefaults(){return _A}static get defaults(){return UM}static installModule(t){Wa.prototype.__modules__||(Wa.prototype.__modules__=[]);const n=Wa.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Wa.installModule(n)),Wa):(Wa.installModule(t),Wa)}};Object.keys(wA).forEach(e=>{Object.keys(wA[e]).forEach(t=>{dO.prototype[t]=wA[e][t]})});dO.use([aJe,lJe]);const $Z=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function rf(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function ah(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(i=>n.indexOf(i)<0).forEach(i=>{typeof e[i]>"u"?e[i]=t[i]:rf(t[i])&&rf(e[i])&&Object.keys(t[i]).length>0?t[i].__swiper__?e[i]=t[i]:ah(e[i],t[i]):e[i]=t[i]})}function AZ(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function EZ(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function MZ(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function TZ(e){e===void 0&&(e="");const t=e.split(" ").map(i=>i.trim()).filter(i=>!!i),n=[];return t.forEach(i=>{n.indexOf(i)<0&&n.push(i)}),n.join(" ")}function hqe(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function pqe(e){let{swiper:t,slides:n,passedParams:i,changedParams:o,nextEl:s,prevEl:r,scrollbarEl:a,paginationEl:u}=e;const c=o.filter(k=>k!=="children"&&k!=="direction"&&k!=="wrapperClass"),{params:l,pagination:g,navigation:C,scrollbar:S,virtual:_,thumbs:A}=t;let y,d,v,m,f,p,h,b;o.includes("thumbs")&&i.thumbs&&i.thumbs.swiper&&l.thumbs&&!l.thumbs.swiper&&(y=!0),o.includes("controller")&&i.controller&&i.controller.control&&l.controller&&!l.controller.control&&(d=!0),o.includes("pagination")&&i.pagination&&(i.pagination.el||u)&&(l.pagination||l.pagination===!1)&&g&&!g.el&&(v=!0),o.includes("scrollbar")&&i.scrollbar&&(i.scrollbar.el||a)&&(l.scrollbar||l.scrollbar===!1)&&S&&!S.el&&(m=!0),o.includes("navigation")&&i.navigation&&(i.navigation.prevEl||r)&&(i.navigation.nextEl||s)&&(l.navigation||l.navigation===!1)&&C&&!C.prevEl&&!C.nextEl&&(f=!0);const w=k=>{t[k]&&(t[k].destroy(),k==="navigation"?(t.isElement&&(t[k].prevEl.remove(),t[k].nextEl.remove()),l[k].prevEl=void 0,l[k].nextEl=void 0,t[k].prevEl=void 0,t[k].nextEl=void 0):(t.isElement&&t[k].el.remove(),l[k].el=void 0,t[k].el=void 0))};o.includes("loop")&&t.isElement&&(l.loop&&!i.loop?p=!0:!l.loop&&i.loop?h=!0:b=!0),c.forEach(k=>{if(rf(l[k])&&rf(i[k]))Object.assign(l[k],i[k]),(k==="navigation"||k==="pagination"||k==="scrollbar")&&"enabled"in i[k]&&!i[k].enabled&&w(k);else{const $=i[k];($===!0||$===!1)&&(k==="navigation"||k==="pagination"||k==="scrollbar")?$===!1&&w(k):l[k]=i[k]}}),c.includes("controller")&&!d&&t.controller&&t.controller.control&&l.controller&&l.controller.control&&(t.controller.control=l.controller.control),o.includes("children")&&n&&_&&l.virtual.enabled?(_.slides=n,_.update(!0)):o.includes("virtual")&&_&&l.virtual.enabled&&(n&&(_.slides=n),_.update(!0)),o.includes("children")&&n&&l.loop&&(b=!0),y&&A.init()&&A.update(!0),d&&(t.controller.control=l.controller.control),v&&(t.isElement&&(!u||typeof u=="string")&&(u=document.createElement("div"),u.classList.add("swiper-pagination"),u.part.add("pagination"),t.el.appendChild(u)),u&&(l.pagination.el=u),g.init(),g.render(),g.update()),m&&(t.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),t.el.appendChild(a)),a&&(l.scrollbar.el=a),S.init(),S.updateSize(),S.setTranslate()),f&&(t.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=t.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),t.el.appendChild(s)),(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-prev"),r.innerHTML=t.hostEl.constructor.prevButtonSvg,r.part.add("button-prev"),t.el.appendChild(r))),s&&(l.navigation.nextEl=s),r&&(l.navigation.prevEl=r),C.init(),C.update()),o.includes("allowSlideNext")&&(t.allowSlideNext=i.allowSlideNext),o.includes("allowSlidePrev")&&(t.allowSlidePrev=i.allowSlidePrev),o.includes("direction")&&t.changeDirection(i.direction,!1),(p||b)&&t.loopDestroy(),(h||b)&&t.loopCreate(),t.update()}function H7(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},i={},o={};ah(n,UM),n._emitClasses=!0,n.init=!1;const s={},r=$Z.map(u=>u.replace(/_/,"")),a=Object.assign({},e);return Object.keys(a).forEach(u=>{typeof e[u]>"u"||(r.indexOf(u)>=0?rf(e[u])?(n[u]={},o[u]={},ah(n[u],e[u]),ah(o[u],e[u])):(n[u]=e[u],o[u]=e[u]):u.search(/on[A-Z]/)===0&&typeof e[u]=="function"?t?i[`${u[2].toLowerCase()}${u.substr(3)}`]=e[u]:n.on[`${u[2].toLowerCase()}${u.substr(3)}`]=e[u]:s[u]=e[u])}),["navigation","pagination","scrollbar"].forEach(u=>{n[u]===!0&&(n[u]={}),n[u]===!1&&delete n[u]}),{params:n,passedParams:o,rest:s,events:i}}function mqe(e,t){let{el:n,nextEl:i,prevEl:o,paginationEl:s,scrollbarEl:r,swiper:a}=e;AZ(t)&&i&&o&&(a.params.navigation.nextEl=i,a.originalParams.navigation.nextEl=i,a.params.navigation.prevEl=o,a.originalParams.navigation.prevEl=o),EZ(t)&&s&&(a.params.pagination.el=s,a.originalParams.pagination.el=s),MZ(t)&&r&&(a.params.scrollbar.el=r,a.originalParams.scrollbar.el=r),a.init(n)}function vqe(e,t,n,i,o){const s=[];if(!t)return s;const r=u=>{s.indexOf(u)<0&&s.push(u)};if(n&&i){const u=i.map(o),c=n.map(o);u.join("")!==c.join("")&&r("children"),i.length!==n.length&&r("children")}return $Z.filter(u=>u[0]==="_").map(u=>u.replace(/_/,"")).forEach(u=>{if(u in e&&u in t)if(rf(e[u])&&rf(t[u])){const c=Object.keys(e[u]),l=Object.keys(t[u]);c.length!==l.length?r(u):(c.forEach(g=>{e[u][g]!==t[u][g]&&r(u)}),l.forEach(g=>{e[u][g]!==t[u][g]&&r(u)}))}else e[u]!==t[u]&&r(u)}),s}const gqe=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function IA(e,t,n){e===void 0&&(e={});const i=[],o={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},s=(r,a)=>{Array.isArray(r)&&r.forEach(u=>{const c=typeof u.type=="symbol";a==="default"&&(a="container-end"),c&&u.children?s(u.children,a):u.type&&(u.type.name==="SwiperSlide"||u.type.name==="AsyncComponentWrapper")||u.componentOptions&&u.componentOptions.tag==="SwiperSlide"?i.push(u):o[a]&&o[a].push(u)})};return Object.keys(e).forEach(r=>{if(typeof e[r]!="function")return;const a=e[r]();s(a,r)}),n.value=t.value,t.value=i,{slides:i,slots:o}}function yqe(e,t,n){if(!n)return null;const i=l=>{let g=l;return l<0?g=t.length+l:g>=t.length&&(g=g-t.length),g},o=e.value.isHorizontal()?{[e.value.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:s,to:r}=n,a=e.value.params.loop?-t.length:0,u=e.value.params.loop?t.length*2:t.length,c=[];for(let l=a;l<u;l+=1)l>=s&&l<=r&&c.length<t.length&&c.push(t[i(l)]);return c.map(l=>{if(l.props||(l.props={}),l.props.style||(l.props.style={}),l.props.swiperRef=e,l.props.style=o,l.type)return Wn(l.type,{...l.props},l.children);if(l.componentOptions)return Wn(l.componentOptions.Ctor,{...l.props},l.componentOptions.children)})}const bqe={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},swiperElementNodeName:{type:String,default:"SWIPER-CONTAINER"},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},breakpointsBase:{type:String,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideFullyVisibleClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slidesUpdated","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(e,t){let{slots:n,emit:i}=t;const{tag:o,wrapperTag:s}=e,r=he("swiper"),a=he(null),u=he(!1),c=he(!1),l=he(null),g=he(null),C=he(null),S={value:[]},_={value:[]},A=he(null),y=he(null),d=he(null),v=he(null),{params:m,passedParams:f}=H7(e,!1);IA(n,S,_),C.value=f,_.value=S.value;const p=()=>{IA(n,S,_),u.value=!0};m.onAny=function(w){for(var k=arguments.length,$=new Array(k>1?k-1:0),E=1;E<k;E++)$[E-1]=arguments[E];i(w,...$)},Object.assign(m.on,{_beforeBreakpoint:p,_containerClasses(w,k){r.value=k}});const h={...m};if(delete h.wrapperClass,g.value=new dO(h),g.value.virtual&&g.value.params.virtual.enabled){g.value.virtual.slides=S.value;const w={cache:!1,slides:S.value,renderExternal:k=>{a.value=k},renderExternalUpdate:!1};ah(g.value.params.virtual,w),ah(g.value.originalParams.virtual,w)}Bi(()=>{!c.value&&g.value&&(g.value.emitSlidesClasses(),c.value=!0);const{passedParams:w}=H7(e,!1),k=vqe(w,C.value,S.value,_.value,$=>$.props&&$.props.key);C.value=w,(k.length||u.value)&&g.value&&!g.value.destroyed&&pqe({swiper:g.value,slides:S.value,passedParams:w,changedParams:k,nextEl:A.value,prevEl:y.value,scrollbarEl:v.value,paginationEl:d.value}),u.value=!1}),cn("swiper",g),gt(a,()=>{fn(()=>{gqe(g.value)})}),Yt(()=>{l.value&&(mqe({el:l.value,nextEl:A.value,prevEl:y.value,paginationEl:d.value,scrollbarEl:v.value,swiper:g.value},m),i("swiper",g.value))}),ei(()=>{g.value&&!g.value.destroyed&&g.value.destroy(!0,!1)});function b(w){return m.virtual?yqe(g,w,a.value):(w.forEach((k,$)=>{k.props||(k.props={}),k.props.swiperRef=g,k.props.swiperSlideIndex=$}),w)}return()=>{const{slides:w,slots:k}=IA(n,S,_);return Wn(o,{ref:l,class:TZ(r.value)},[k["container-start"],Wn(s,{class:hqe(m.wrapperClass)},[k["wrapper-start"],b(w),k["wrapper-end"]]),AZ(e)&&[Wn("div",{ref:y,class:"swiper-button-prev"}),Wn("div",{ref:A,class:"swiper-button-next"})],MZ(e)&&Wn("div",{ref:v,class:"swiper-scrollbar"}),EZ(e)&&Wn("div",{ref:d,class:"swiper-pagination"}),k["container-end"]])}}},kqe={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(e,t){let{slots:n}=t,i=!1;const{swiperRef:o}=e,s=he(null),r=he("swiper-slide"),a=he(!1);function u(g,C,S){C===s.value&&(r.value=S)}Yt(()=>{!o||!o.value||(o.value.on("_slideClass",u),i=!0)}),TS(()=>{i||!o||!o.value||(o.value.on("_slideClass",u),i=!0)}),Bi(()=>{!s.value||!o||!o.value||(typeof e.swiperSlideIndex<"u"&&(s.value.swiperSlideIndex=e.swiperSlideIndex),o.value.destroyed&&r.value!=="swiper-slide"&&(r.value="swiper-slide"))}),ei(()=>{!o||!o.value||o.value.off("_slideClass",u)});const c=P(()=>({isActive:r.value.indexOf("swiper-slide-active")>=0,isVisible:r.value.indexOf("swiper-slide-visible")>=0,isPrev:r.value.indexOf("swiper-slide-prev")>=0,isNext:r.value.indexOf("swiper-slide-next")>=0}));cn("swiperSlide",c);const l=()=>{a.value=!0};return()=>Wn(e.tag,{class:TZ(`${r.value}`),ref:s,"data-swiper-slide-index":typeof e.virtualIndex>"u"&&o&&o.value&&o.value.params.loop?e.swiperSlideIndex:e.virtualIndex,onLoadCapture:l},e.zoom?Wn("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof e.zoom=="number"?e.zoom:void 0},[n.default&&n.default(c.value),e.lazy&&!a.value&&Wn("div",{class:"swiper-lazy-preloader"})]):[n.default&&n.default(c.value),e.lazy&&!a.value&&Wn("div",{class:"swiper-lazy-preloader"})])}};const Cqe="/assets/bg-05bec57d.gif",Sqe="/assets/bg-dcc0b2f9.png";const wqe=se({props:["number"],components:{Swiper:bqe,SwiperSlide:kqe},setup(e,{emit:t}){const{helper:n,config:i}=Dt("$global");let o=null,s=he(0);const r=he(i.defaultTitle),a=he(i.defaultDesc),u=he(Math.ceil(i.slider.length/e.number)),c=A=>{o=A},l=()=>{s.value!==u.value-1&&(s.value+=1,o.slideTo(e.number*s.value))},g=()=>{s.value!==0&&(s.value-=1,o.slideTo(e.number*s.value))},C=A=>{r.value=i.slider.find(y=>y.id===A).title,a.value=i.slider.find(y=>y.id===A).desc},S=()=>{r.value=i.defaultTitle,a.value=i.defaultDesc},_=(A,y)=>{t("select-nav",{id:A,title:y})};return{onSwiper:c,getAssetURL:n.getAssetURL,slider:i.slider,goNext:l,goPrev:g,page:s,pages:u,onMouseover:C,onMouseleave:S,title:r,desc:a,handleClick:_}}}),_qe={class:"swiper-main"},Iqe=["onMouseover","onClick"],xqe=["src"];function $qe(e,t,n,i,o,s){const r=Pe("icon-left"),a=Pe("swiper-slide"),u=Pe("swiper"),c=Pe("icon-right");return R(),X("main",null,[t[4]||(t[4]=B("div",{class:"bg"},[B("img",{src:Cqe}),B("img",{src:Sqe})],-1)),B("section",null,[B("header",null,[B("p",null,[t[3]||(t[3]=pt(" 欢迎使用")),B("b",null,tt(e.title),1)]),B("div",null,tt(e.desc),1)]),B("div",_qe,[B("div",{class:G({prev:!0,disabled:e.page===0}),onClick:t[0]||(t[0]=(...l)=>e.goPrev&&e.goPrev(...l))},[O(r)],2),O(u,{class:"the-swiper-wrap","slides-per-group":e.number,"slides-per-view":e.number,"space-between":10,onSwiper:e.onSwiper},{default:Ve(()=>[(R(!0),X(ft,null,dn(e.slider,l=>(R(),We(a,{key:l.id,width:"230"},{default:Ve(()=>[B("div",{class:"swiper-item",onMouseover:g=>e.onMouseover(l.id),onMouseleave:t[1]||(t[1]=(...g)=>e.onMouseleave&&e.onMouseleave(...g)),onClick:g=>e.handleClick(l.id,l.title)},[B("div",null,[B("img",{src:e.getAssetURL(l.img),width:"48"},null,8,xqe),B("p",null,tt(l.title),1)])],40,Iqe)]),_:2},1024))),128))]),_:1},8,["slides-per-group","slides-per-view","onSwiper"]),B("div",{class:G({next:!0,disabled:e.page===e.pages-1}),onClick:t[2]||(t[2]=(...l)=>e.goNext&&e.goNext(...l))},[O(c)],2)])])])}const Aqe=jn(wqe,[["render",$qe],["__scopeId","data-v-421e0632"]]);const Eqe=se({props:["data"],setup(e){const{helper:t}=Dt("$global"),n=he(!0),i=he(!1),o=he(!1),s=u=>{t.$bus.emit("set-input",u)},r=he(e.data);return{listData:r,changeCards:()=>{i.value=!0,setTimeout(()=>{r.value=t.shuffleArray(r.value),n.value=!n.value,o.value=!0,i.value=!1},500),setTimeout(()=>{o.value=!1},550)},isRotate:i,isOver:o,selectCard:s}}});function Mqe(e,t,n,i,o,s){return R(),X("main",null,t[0]||(t[0]=[B("header",null,null,-1),B("section",null,null,-1)]))}const Tqe=jn(Eqe,[["render",Mqe],["__scopeId","data-v-739d8ea3"]]),Pqe=se({components:{NormalCards:Tqe},setup(){return{data:he([{img:"https://szwl.harix.iamidata.com/static/img/%E7%94%9F%E6%B4%BB%E5%8A%A9%E6%89%8B7.20a5f1df.svg",title:"私人营养师",content:"制定个性化的每日饮食计划,包括早、午、晚餐,确保菜单多样化,满足不同口味。",sug:"请你扮演一个营养师,首次与用户交流时,请你先收集用户的基本情况,得到用户的基础代谢,然后根据此来制定用户每天的早午晚餐,之后的交流,只需要用户问你“今天吃什么”,随机出菜单即可,每天的菜单要与之前的菜单有较大差异,菜式要多种多样,中式、西式、泰式等菜肴都可以。(今天吃什么)"},{img:"https://szwl.harix.iamidata.com/static/img/%E7%9F%A5%E8%AF%86%E5%AD%A6%E4%B9%A012.e90fe5dc.svg",title:"邀请函写作",content:"根据提供的信息,生成独特和吸引人的邀请函,并符合行业标准和礼仪。",sug:"作为一个智能邀请函生成器,根据我提供的详细信息(例如活动类型、日期、时间、地点和特殊说明),为我生成一封独特且引人入胜的邀请函。请确保邀请函包含所有必要元素且吸引读者,同时遵循行业标准和礼仪。 详细信息如下:(2023年11月2~3日,即将在中国贵阳举办的第2届电力行业数字化转型大会暨第4届电力人工智能大会,大会议题:一、电力数智化转型关键技术;二、数字化与智能化;三、电力视觉与智能巡检;四、信息安全与网络安全;五、虚拟电厂与电力市场。请邀请相关电力公司。)"},{img:"https://szwl.harix.iamidata.com/static/img/%E7%94%9F%E6%B4%BB%E5%8A%A9%E6%89%8B4.f0d841e0.svg",title:"购物劝阻者",content:"想乱花钱的时候就和它聊聊天吧。",sug:"你是一个二十多岁性格活泼的女孩子。你生活不窘困但平时喜欢关注各大购物平台优惠活动,是个爱节省不轻易大手大脚花钱的人。当我对你说我想大肆购物或者想买昂贵物品或其他东西的时候,你要以一个好朋友的身份,用激动的语气,恨铁不成钢地来劝阻让我清醒,不要冲动购物。你要多方面分析不购买该物品的原因,劝阻的话术要多种多样,每句话的语气词要丰富。你的回答中不要带出以上内容,答案不超过100个字,以下是我要买的物品:(双十一想买新衣服)"},{img:"https://szwl.harix.iamidata.com/static/img/%E7%94%9F%E6%B4%BB%E5%8A%A9%E6%89%8B5.a169bbe8.svg",title:"减肥教官",content:"想放弃减肥的时候就和它聊聊吧。",sug:"请你扮演一个减肥教官,在你的调教下,从来没有瘦不下来的人,请你用很凶的语气监督你的用户,让他们时刻牢记减肥这个使命。(你好我好想吃红烧肉啊)"},{img:"https://szwl.harix.iamidata.com/static/img/%E7%94%9F%E6%B4%BB%E5%8A%A9%E6%89%8B20.5e8eaebb.svg",title:"无法拒绝的请假理由",content:"每天都有新的请假理由~",sug:"请你扮演一位中国职场人士。最近你想要请假出去玩,但是如果以这个理由请假,你的老板肯定不会答应,请你写一段请假理由,让老板同意你的请假申请。字数在100个汉字以内。我会给你我想请假的日期,日期是:(2023年11月6日~11月10日)"},{img:"https://szwl.harix.iamidata.com/static/img/%E7%94%9F%E6%B4%BB%E5%8A%A9%E6%89%8B28.923c0fb1.svg",title:"为你写诗",content:"最会敲回车的现代诗人~",sug:"我要你扮演一个诗人。你将创作唤起情感并具有激起人们灵魂的力量的诗歌,写任何主题,但要确保你的文字以美丽而有意义的方式传达你试图表达的感觉。你也可以想出一些简短的诗句,这些诗句仍然足够强大,可以在读者的脑海中留下印记。等待我输入主题后再开始生成。我需要你创作的主题是:(秋天的落叶)"}])}}});function Oqe(e,t,n,i,o,s){const r=Pe("normal-cards");return R(),We(r,{data:e.data},null,8,["data"])}const Lqe=jn(Pqe,[["render",Oqe]]),Dqe=se({components:{DocumentCards:cu},setup(){return{data:he([{background:"rgba(72, 177, 244, 0.06)",color:"rgb(72, 177, 244)",img:"/src/assets/document/1.png",title:"报表合并助手",content:"具有丰富的数据处理经验,帮助用户更高效地管理和理解数据"},{background:"rgba(158, 128, 255, 0.06)",color:"rgb(158, 128, 255)",img:"/src/assets/document/2.png",title:"数据整合",content:"利用自然语言处理技术自动生成包含汇总数据和分析的“大表” "}])}}});function Nqe(e,t,n,i,o,s){const r=Pe("document-cards");return R(),We(r,{data:e.data,hasUpload:!0,hasSlider:!1},null,8,["data"])}const PZ=jn(Dqe,[["render",Nqe]]),jqe=Object.freeze(Object.defineProperty({__proto__:null,default:PZ},Symbol.toStringTag,{value:"Module"})),zqe="/assets/left-hover-a3579f8d.svg",Rqe="/assets/left-normal-61869892.svg",Bqe="/assets/right-hover-47e09444.svg",Fqe="/assets/right-normal-32bb0c29.svg";const Vqe={class:"anwser-pictures-info"},Hqe={class:"anwser-pictures-index-container"},Wqe=["src"],Uqe=["src"],Zqe={class:"current-index"},Gqe=["src"],Yqe=["src"],Xqe={__name:"AnwserInfo",props:{current:Number,total:Number},emits:"pre",setup(e,{emit:t}){const n=e,i=t,o=P(()=>n.current-1>=1),s=P(()=>n.current+1<=n.total),r=()=>{const u=n.current-1;u<1||i("pre",u)},a=()=>{const u=n.current+1;if(u>n.total){console.log("已经是最后一张了");return}else i("next",u)};return(u,c)=>(R(),X("div",Vqe,[B("div",Hqe,[B("span",{class:"pic-arrow-btn pre",onClick:r},[o.value?Re("",!0):(R(),X("img",{key:0,src:ji(Rqe)},null,8,Wqe)),o.value?(R(),X("img",{key:1,src:ji(zqe)},null,8,Uqe)):Re("",!0)]),B("span",null,[B("span",Zqe,tt(e.current),1),pt(" / "+tt(e.total),1)]),B("span",{class:"pic-arrow-btn next",onClick:a},[s.value?(R(),X("img",{key:0,src:ji(Bqe)},null,8,Gqe)):Re("",!0),s.value?Re("",!0):(R(),X("img",{key:1,src:ji(Fqe)},null,8,Yqe))]),c[0]||(c[0]=B("span",null,"回答已停止生成",-1))])]))}},Kqe=jn(Xqe,[["__scopeId","data-v-65e55928"]]),W7="/assets/comfyui-logo-7feccea0.png";var OZ={exports:{}},xA={exports:{}};/*!
  96. * TOAST UI Color Picker
  97. * @version 2.2.8
  98. * @author NHN Cloud FE Development Team <dl_javascript@nhn.com>
  99. * @license MIT
  100. */var U7;function Jqe(){return U7||(U7=1,function(e,t){(function(i,o){e.exports=o()})(window,function(){return function(n){var i={};function o(s){if(i[s])return i[s].exports;var r=i[s]={i:s,l:!1,exports:{}};return n[s].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=n,o.c=i,o.d=function(s,r,a){o.o(s,r)||Object.defineProperty(s,r,{enumerable:!0,get:a})},o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},o.t=function(s,r){if(r&1&&(s=o(s)),r&8||r&4&&typeof s=="object"&&s&&s.__esModule)return s;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:s}),r&2&&typeof s!="string")for(var u in s)o.d(a,u,function(c){return s[c]}.bind(null,u));return a},o.n=function(s){var r=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(r,"a",r),r},o.o=function(s,r){return Object.prototype.hasOwnProperty.call(s,r)},o.p="dist",o(o.s=33)}([function(n,i,o){function s(r,a){var u=Object.prototype.hasOwnProperty,c,l,g,C;for(g=1,C=arguments.length;g<C;g+=1){c=arguments[g];for(l in c)u.call(c,l)&&(r[l]=c[l])}return r}n.exports=s},function(n,i,o){function s(r){return r instanceof Array}n.exports=s},function(n,i,o){var s=o(1),r=o(6),a=o(7);function u(c,l,g){s(c)?r(c,l,g):a(c,l,g)}n.exports=u},function(n,i,o){function s(r){return r===void 0}n.exports=s},function(n,i,o){var s=o(22),r=o(2),a=o(6),u=o(7),c=o(37),l=0,g={getLength:function(C){var S=0;return u(C,function(){S+=1}),S},map:function(C,S,_){var A=[];return r(C,function(){A.push(S.apply(_||null,arguments))}),A},filter:function(C,S,_){var A=[];return a(C,function(y){S.apply(_||null,arguments)&&A.push(y)}),A},generateId:function(){return l+=1,l},isOldBrowser:function(){return s.msie&&s.version<9}(),sendHostName:function(){c("color-picker","UA-129987462-1")}};n.exports=g},function(n,i,o){var s=o(1);function r(a,u,c){var l,g;if(c=c||0,!s(u))return-1;if(Array.prototype.indexOf)return Array.prototype.indexOf.call(u,a,c);for(g=u.length,l=c;c>=0&&l<g;l+=1)if(u[l]===a)return l;return-1}n.exports=r},function(n,i,o){function s(r,a,u){var c=0,l=r.length;for(u=u||null;c<l&&a.call(u,r[c],c,r)!==!1;c+=1);}n.exports=s},function(n,i,o){function s(r,a,u){var c;u=u||null;for(c in r)if(r.hasOwnProperty(c)&&a.call(u,r[c],c,r)===!1)break}n.exports=s},function(n,i,o){var s=o(39),r=o(13),a=o(41),u=o(3),c=o(9),l=o(19),g=o(4);function C(S,_){var A=g.generateId();u(_)&&(_=c.appendHTMLElement("div")),s(_,"tui-view-"+A),this.id=A,this.container=_,this.childs=new l(function(y){return y.id}),this.parent=null}C.prototype.addChild=function(S,_){_&&_.call(S,this),S.parent=this,this.childs.add(S)},C.prototype.removeChild=function(S,_){var A=a(S)?this.childs.items[S]:S;_&&_.call(A,this),this.childs.remove(A.id)},C.prototype.render=function(){this.childs.each(function(S){S.render()})},C.prototype.recursive=function(S,_){r(S)&&(_||S(this),this.childs.each(function(A){A.recursive(S)}))},C.prototype.resize=function(){for(var S=Array.prototype.slice.call(arguments),_=this.parent;_;)r(_._onResize)&&_._onResize.apply(_,S),_=_.parent},C.prototype._beforeDestroy=function(){},C.prototype._destroy=function(){this._beforeDestroy(),this.container.innerHTML="",this.id=this.parent=this.childs=this.container=null},C.prototype.destroy=function(S){this.childs&&(this.childs.each(function(_){_.destroy(!0),_._destroy()}),this.childs.clear()),!S&&this._destroy()},C.prototype.getViewBound=function(){var S=this.container.getBoundingClientRect();return{x:S.left,y:S.top,width:S.right-S.left,height:S.bottom-S.top}},n.exports=C},function(n,i,o){var s={appendHTMLElement:function(r,a,u){var c=document.createElement(r);return c.className=u||"",a?a.appendChild(c):document.body.appendChild(c),c}};n.exports=s},function(n,i,o){var s=o(0),r=o(20),a=o(11),u=o(21),c=o(1),l=o(13),g=o(2),C=/\s+/g;function S(){this.events=null,this.contexts=null}S.mixin=function(_){s(_.prototype,S.prototype)},S.prototype._getHandlerItem=function(_,A){var y={handler:_};return A&&(y.context=A),y},S.prototype._safeEvent=function(_){var A=this.events,y;return A||(A=this.events={}),_&&(y=A[_],y||(y=[],A[_]=y),A=y),A},S.prototype._safeContext=function(){var _=this.contexts;return _||(_=this.contexts=[]),_},S.prototype._indexOfContext=function(_){for(var A=this._safeContext(),y=0;A[y];){if(_===A[y][0])return y;y+=1}return-1},S.prototype._memorizeContext=function(_){var A,y;r(_)&&(A=this._safeContext(),y=this._indexOfContext(_),y>-1?A[y][1]+=1:A.push([_,1]))},S.prototype._forgetContext=function(_){var A,y;r(_)&&(A=this._safeContext(),y=this._indexOfContext(_),y>-1&&(A[y][1]-=1,A[y][1]<=0&&A.splice(y,1)))},S.prototype._bindEvent=function(_,A,y){var d=this._safeEvent(_);this._memorizeContext(y),d.push(this._getHandlerItem(A,y))},S.prototype.on=function(_,A,y){var d=this;a(_)?(_=_.split(C),g(_,function(v){d._bindEvent(v,A,y)})):u(_)&&(y=A,g(_,function(v,m){d.on(m,v,y)}))},S.prototype.once=function(_,A,y){var d=this;if(u(_)){y=A,g(_,function(m,f){d.once(f,m,y)});return}function v(){A.apply(y,arguments),d.off(_,v,y)}this.on(_,v,y)},S.prototype._spliceMatches=function(_,A){var y=0,d;if(c(_))for(d=_.length;y<d;y+=1)A(_[y])===!0&&(_.splice(y,1),d-=1,y-=1)},S.prototype._matchHandler=function(_){var A=this;return function(y){var d=_===y.handler;return d&&A._forgetContext(y.context),d}},S.prototype._matchContext=function(_){var A=this;return function(y){var d=_===y.context;return d&&A._forgetContext(y.context),d}},S.prototype._matchHandlerAndContext=function(_,A){var y=this;return function(d){var v=_===d.handler,m=A===d.context,f=v&&m;return f&&y._forgetContext(d.context),f}},S.prototype._offByEventName=function(_,A){var y=this,d=l(A),v=y._matchHandler(A);_=_.split(C),g(_,function(m){var f=y._safeEvent(m);d?y._spliceMatches(f,v):(g(f,function(p){y._forgetContext(p.context)}),y.events[m]=[])})},S.prototype._offByHandler=function(_){var A=this,y=this._matchHandler(_);g(this._safeEvent(),function(d){A._spliceMatches(d,y)})},S.prototype._offByObject=function(_,A){var y=this,d;this._indexOfContext(_)<0?g(_,function(v,m){y.off(m,v)}):a(A)?(d=this._matchContext(_),y._spliceMatches(this._safeEvent(A),d)):l(A)?(d=this._matchHandlerAndContext(A,_),g(this._safeEvent(),function(v){y._spliceMatches(v,d)})):(d=this._matchContext(_),g(this._safeEvent(),function(v){y._spliceMatches(v,d)}))},S.prototype.off=function(_,A){a(_)?this._offByEventName(_,A):arguments.length?l(_)?this._offByHandler(_):u(_)&&this._offByObject(_,A):(this.events={},this.contexts=[])},S.prototype.fire=function(_){this.invoke.apply(this,arguments)},S.prototype.invoke=function(_){var A,y,d,v;if(!this.hasListener(_))return!0;for(A=this._safeEvent(_),y=Array.prototype.slice.call(arguments,1),d=0;A[d];){if(v=A[d],v.handler.apply(v.context,y)===!1)return!1;d+=1}return!0},S.prototype.hasListener=function(_){return this.getListenerLength(_)>0},S.prototype.getListenerLength=function(_){var A=this._safeEvent(_);return A.length},n.exports=S},function(n,i,o){function s(r){return typeof r=="string"||r instanceof String}n.exports=s},function(n,i,o){var s=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,r={leadingZero:function(a,u){var c="",l=0;if((a+"").length>u)return a+"";for(;l<u-1;l+=1)c+="0";return(c+a).slice(u*-1)},isValidRGB:function(a){return s.test(a)},hexToRGB:function(a){var u,c,l;return r.isValidRGB(a)?(a=a.substring(1),u=parseInt(a.substr(0,2),16),c=parseInt(a.substr(2,2),16),l=parseInt(a.substr(4,2),16),[u,c,l]):!1},rgbToHEX:function(a,u,c){var l="#"+r.leadingZero(a.toString(16),2)+r.leadingZero(u.toString(16),2)+r.leadingZero(c.toString(16),2);return r.isValidRGB(l)?l:!1},rgbToHSV:function(a,u,c){var l,g,C,S,_,A;if(a/=255,u/=255,c/=255,l=Math.max(a,u,c),g=Math.min(a,u,c),_=l,A=l-g,S=l===0?0:A/l,l===g)C=0;else{switch(l){case a:C=(u-c)/A+(u<c?6:0);break;case u:C=(c-a)/A+2;break;case c:C=(a-u)/A+4;break}C/=6}return[Math.round(C*360),Math.round(S*100),Math.round(_*100)]},hsvToRGB:function(a,u,c){var l,g,C,S,_,A,y,d;if(a=Math.max(0,Math.min(360,a)),u=Math.max(0,Math.min(100,u)),c=Math.max(0,Math.min(100,c)),u/=100,c/=100,u===0)return l=g=C=c,[Math.round(l*255),Math.round(g*255),Math.round(C*255)];switch(a/=60,S=Math.floor(a),_=a-S,A=c*(1-u),y=c*(1-u*_),d=c*(1-u*(1-_)),S){case 0:l=c,g=d,C=A;break;case 1:l=y,g=c,C=A;break;case 2:l=A,g=c,C=d;break;case 3:l=A,g=y,C=c;break;case 4:l=d,g=A,C=c;break;default:l=c,g=A,C=y;break}return[Math.round(l*255),Math.round(g*255),Math.round(C*255)]}};n.exports=r},function(n,i,o){function s(r){return r instanceof Function}n.exports=s},function(n,i,o){var s=o(11),r=o(2),a=o(26);function u(g,C,S,_){if(s(C)){r(C.split(/\s+/g),function(A){c(g,A,S,_)});return}r(C,function(A,y){c(g,y,A,S)})}function c(g,C,S,_){function A(y){S.call(_||g,y||window.event)}"addEventListener"in g?g.addEventListener(C,A):"attachEvent"in g&&g.attachEvent("on"+C,A),l(g,C,S,A)}function l(g,C,S,_){var A=a(g,C),y=!1;r(A,function(d){return d.handler===S?(y=!0,!1):!0}),y||A.push({handler:S,wrappedHandler:_})}n.exports=u},function(n,i,o){function s(r){if(r.preventDefault){r.preventDefault();return}r.returnValue=!1}n.exports=s},function(n,i,o){function s(r){return r.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}n.exports=s},function(n,i,o){var s=o(11),r=o(2),a=o(26);function u(g,C,S){if(s(C)){r(C.split(/\s+/g),function(_){c(g,_,S)});return}r(C,function(_,A){c(g,A,_)})}function c(g,C,S){var _=a(g,C),A;S?(r(_,function(y,d){return S===y.handler?(l(g,C,y.wrappedHandler),A=d,!1):!0}),_.splice(A,1)):(r(_,function(y){l(g,C,y.wrappedHandler)}),_.splice(0,_.length))}function l(g,C,S){"removeEventListener"in g?g.removeEventListener(C,S):"detachEvent"in g&&g.detachEvent("on"+C,S)}n.exports=u},function(n,i,o){var s=o(50);function r(a,u){var c=s(u.prototype);c.constructor=a,a.prototype=c}n.exports=r},function(n,i,o){var s=o(6),r=o(7),a=o(0),u=o(1),c=o(20),l=o(13),g=o(21),C=o(4),S=Array.prototype.slice;function _(A){this.items={},this.length=0,l(A)&&(this.getItemID=A)}_.and=function(A){var y;return A=S.call(arguments),y=A.length,function(d){for(var v=0;v<y;v+=1)if(!A[v].call(null,d))return!1;return!0}},_.or=function(A){var y;return A=S.call(arguments),y=A.length,function(d){for(var v=1,m=A[0].call(null,d);v<y;v+=1)m=m||A[v].call(null,d);return m}},_.merge=function(A){var y={},d=new _(A.getItemID);return s(arguments,function(v){a(y,v.items)}),d.items=y,d.length=C.getLength(d.items),d},_.prototype.getItemID=function(A){return A._id+""},_.prototype.add=function(A){var y,d;if(arguments.length>1){s(S.call(arguments),function(v){this.add(v)},this);return}y=this.getItemID(A),d=this.items,d[y]||(this.length+=1),d[y]=A},_.prototype.remove=function(A){var y=[],d,v;return this.length?arguments.length>1?(y=C.map(S.call(arguments),function(m){return this.remove(m)},this),y):(d=this.items,g(A)&&(A=this.getItemID(A)),d[A]?(this.length-=1,v=d[A],delete d[A],v):y):y},_.prototype.clear=function(){this.items={},this.length=0},_.prototype.has=function(A){var y,d;return this.length?(y=l(A),d=!1,y?this.each(function(v){return A(v)===!0?(d=!0,!1):!0}):(A=g(A)?this.getItemID(A):A,d=c(this.items[A])),d):!1},_.prototype.doWhenHas=function(A,y,d){var v=this.items[A];c(v)&&y.call(d||this,v)},_.prototype.find=function(A){var y=new _;return this.hasOwnProperty("getItemID")&&(y.getItemID=this.getItemID),this.each(function(d){A(d)===!0&&y.add(d)}),y},_.prototype.groupBy=function(A,y){var d={},v=l(A),m=this.getItemID,f,p;if(u(A)){if(s(A,function(h){d[h+""]=new _(m)}),!y)return d;A=y,v=!0}return this.each(function(h){v?p=A(h):(p=h[A],l(p)&&(p=p.apply(h))),f=d[p],f||(f=d[p]=new _(m)),f.add(h)}),d},_.prototype.single=function(){var A;return this.each(function(y){return A=y,!1},this),A},_.prototype.sort=function(A){var y=[];return this.each(function(d){y.push(d)}),l(A)&&(y=y.sort(A)),y},_.prototype.each=function(A,y){r(this.items,A,y||this)},_.prototype.toArray=function(){return this.length?C.map(this.items,function(A){return A}):[]},n.exports=_},function(n,i,o){var s=o(3),r=o(36);function a(u){return!s(u)&&!r(u)}n.exports=a},function(n,i,o){function s(r){return r===Object(r)}n.exports=s},function(n,i,o){var s={chrome:!1,firefox:!1,safari:!1,msie:!1,edge:!1,others:!1,version:0};typeof window<"u"&&window.navigator&&r();function r(){var a=window.navigator,u=a.appName.replace(/\s/g,"_"),c=a.userAgent,l=/MSIE\s([0-9]+[.0-9]*)/,g=/Trident.*rv:11\./,C=/Edge\/(\d+)\./,S={firefox:/Firefox\/(\d+)\./,chrome:/Chrome\/(\d+)\./,safari:/Version\/([\d.]+).*Safari\/(\d+)/},_,A,y={Microsoft_Internet_Explorer:function(){var v=c.match(l);v?(s.msie=!0,s.version=parseFloat(v[1])):s.others=!0},Netscape:function(){var v=!1;if(g.exec(c))s.msie=!0,s.version=11,v=!0;else if(C.exec(c))s.edge=!0,s.version=c.match(C)[1],v=!0;else for(_ in S)if(S.hasOwnProperty(_)&&(A=c.match(S[_]),A&&A.length>1)){s[_]=v=!0,s.version=parseFloat(A[1]||0);break}v||(s.others=!0)}},d=y[u];d&&y[u]()}n.exports=s},function(n,i,o){var s=o(3);function r(a){return!a||!a.className?"":s(a.className.baseVal)?a.className:a.className.baseVal}n.exports=r},function(n,i,o){(function(s){var r=o(10),a=o(42),u=o(44),c=o(47),l=o(28),g=o(17),C=o(14),S=o(15),_=o(0);function A(y,d){C(d,"mousedown",this._onMouseDown,this),this.options=_({distance:10},y),this.container=d,this._isMoved=!1,this._distance=0,this._dragStartFired=!1,this._dragStartEventData=null}A.prototype.destroy=function(){g(this.container,"mousedown",this._onMouseDown),this.options=this.container=this._isMoved=this._distance=this._dragStartFired=this._dragStartEventData=null},A.prototype._toggleDragEvent=function(y){var d=this.container;y?(a(d),C(window,"dragstart",S),C(s.document,{mousemove:this._onMouseMove,mouseup:this._onMouseUp},this)):(u(d),g(window,"dragstart",S),g(s.document,{mousemove:this._onMouseMove,mouseup:this._onMouseUp}))},A.prototype._getEventData=function(y){return{target:l(y),originEvent:y}},A.prototype._onMouseDown=function(y){c(y)===0&&(this._distance=0,this._dragStartFired=!1,this._dragStartEventData=this._getEventData(y),this._toggleDragEvent(!0))},A.prototype._onMouseMove=function(y){var d=this.options.distance;if(S(y),this._isMoved=!0,this._distance<d){this._distance+=1;return}if(!this._dragStartFired&&(this._dragStartFired=!0,!this.invoke("dragStart",this._dragStartEventData))){this._toggleDragEvent(!1);return}this.fire("drag",this._getEventData(y))},A.prototype._onMouseUp=function(y){if(this._toggleDragEvent(!1),this._isMoved){this._isMoved=!1,this.fire("dragEnd",this._getEventData(y));return}this.fire("click",this._getEventData(y))},r.mixin(A),n.exports=A}).call(this,o(25))},function(n,i){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}n.exports=o},function(n,i,o){var s="_feEventKey";function r(a,u){var c=a[s],l;return c||(c=a[s]={}),l=c[u],l||(l=c[u]=[]),l}n.exports=r},function(n,i,o){function s(r){var a=document.documentElement.style,u,c;for(u=0,c=r.length;u<c;u+=1)if(r[u]in a)return r[u];return!1}n.exports=s},function(n,i,o){function s(r){return r.target||r.srcElement}n.exports=s},function(n,i,o){var s=o(10),r=o(28),a=o(17),u=o(14),c=o(30),l=o(0),g=o(18),C=o(9),S=o(12),_=o(8),A=o(51);function y(d,v){this.options=l({cssPrefix:"tui-colorpicker-",preset:["#181818","#282828","#383838","#585858","#B8B8B8","#D8D8D8","#E8E8E8","#F8F8F8","#AB4642","#DC9656","#F7CA88","#A1B56C","#86C1B9","#7CAFC2","#BA8BAF","#A16946"],detailTxt:"Detail"},d),v=C.appendHTMLElement("div",v,this.options.cssPrefix+"palette-container"),_.call(this,d,v)}g(y,_),y.prototype._onClick=function(d){var v=this.options,m=r(d),f={};if(c(m,v.cssPrefix+"palette-button")){f.color=m.value,this.fire("_selectColor",f);return}c(m,v.cssPrefix+"palette-toggle-slider")&&this.fire("_toggleSlider")},y.prototype._onChange=function(d){var v=this.options,m=r(d),f={};c(m,v.cssPrefix+"palette-hex")&&(f.color=m.value,this.fire("_selectColor",f))},y.prototype._beforeDestroy=function(){this._toggleEvent(!1)},y.prototype._toggleEvent=function(d){var v=this.options,m=this.container,f=d?u:a,p;f(m,"click",this._onClick,this),p=m.querySelector("."+v.cssPrefix+"palette-hex",m),p&&f(p,"change",this._onChange,this)},y.prototype.render=function(d){var v=this.options,m="";this._toggleEvent(!1),m=A({cssPrefix:v.cssPrefix,preset:v.preset,detailTxt:v.detailTxt,color:d,isValidRGB:S.isValidRGB,getItemClass:function(f){return f?"":" "+v.cssPrefix+"color-transparent"},isSelected:function(f){return f===d?" "+v.cssPrefix+"selected":""}}),this.container.innerHTML=m,this._toggleEvent(!0)},s.mixin(y),n.exports=y},function(n,i,o){var s=o(5),r=o(23);function a(u,c){var l;return u.classList?u.classList.contains(c):(l=r(u).split(/\s+/),s(c,l)>-1)}n.exports=a},function(n,i,o){var s=o(10),r=o(53),a=o(54),u=o(30),c=o(0),l=o(18),g=o(9),C=o(32),S=o(12),_=o(8),A=o(24),y=o(57),d=-7,v=112,m=-3,f=115,p=359.99;function h(b,w){w=g.appendHTMLElement("div",w,b.cssPrefix+"slider-container"),w.style.display="none",_.call(this,b,w),this.options=c({color:"#f8f8f8",cssPrefix:"tui-colorpicker-"},b),this._dragDataCache={},this.sliderHandleElement=null,this.huebarHandleElement=null,this.baseColorElement=null,this.drag=new A({distance:0},w),this.colorSliderPosLimitRange=[d,v],this.huebarPosLimitRange=[m,f],this.drag.on({dragStart:this._onDragStart,drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this)}l(h,_),h.prototype._beforeDestroy=function(){this.drag.off(),this.drag=this.options=this._dragDataCache=this.sliderHandleElement=this.huebarHandleElement=this.baseColorElement=null},h.prototype.toggle=function(b){this.container.style.display=b?"block":"none"},h.prototype.isVisible=function(){return this.container.style.display==="block"},h.prototype.render=function(b){var w=this.container,k=this.options,$=y.layout,E,N;S.isValidRGB(b)&&($=$.replace(/{{slider}}/,y.slider),$=$.replace(/{{huebar}}/,y.huebar),$=$.replace(/{{cssPrefix}}/g,k.cssPrefix),$=$.replace(/{{id}}/g,k.id),this.container.innerHTML=$,this.sliderSvgElement=w.querySelector("."+k.cssPrefix+"svg-slider"),this.huebarSvgElement=w.querySelector("."+k.cssPrefix+"svg-huebar"),this.sliderHandleElement=w.querySelector("."+k.cssPrefix+"slider-handle"),this.huebarHandleElement=w.querySelector("."+k.cssPrefix+"huebar-handle"),this.baseColorElement=w.querySelector("."+k.cssPrefix+"slider-basecolor"),E=S.hexToRGB(b),N=S.rgbToHSV.apply(null,E),this.moveHue(N[0],!0),this.moveSaturationAndValue(N[1],N[2],!0))},h.prototype._setColorSliderPosMax=function(){var b=this.sliderSvgElement.getClientRects()[0];b&&(this.colorSliderPosLimitRange[1]=b.height-10)},h.prototype._moveColorSliderHandle=function(b,w,k){var $=this.sliderHandleElement,E;w=Math.max(this.colorSliderPosLimitRange[0],w),w=Math.min(this.colorSliderPosLimitRange[1],w),b=Math.max(this.colorSliderPosLimitRange[0],b),b=Math.min(this.colorSliderPosLimitRange[1],b),C.setTranslateXY($,b,w),E=w>50?"white":"black",C.setStrokeColor($,E),k||this.fire("_selectColor",{color:S.rgbToHEX.apply(null,this.getRGB())})},h.prototype.moveSaturationAndValue=function(b,w,k){var $,E,N,j;b=b||0,w=w||0,$=Math.abs(this.colorSliderPosLimitRange[0]),E=this.colorSliderPosLimitRange[1],N=b*E/100-$,j=E-w*E/100-$,this._moveColorSliderHandle(N,j,k)},h.prototype._moveColorSliderByPosition=function(b,w){var k=this.colorSliderPosLimitRange[0];this._moveColorSliderHandle(b+k,w+k)},h.prototype.getSaturationAndValue=function(){var b=Math.abs(this.colorSliderPosLimitRange[0]),w=b+this.colorSliderPosLimitRange[1],k=C.getTranslateXY(this.sliderHandleElement),$,E;return $=(k[1]+b)/w*100,E=100-(k[0]+b)/w*100,[$,E]},h.prototype._setHueBarPosMax=function(){var b=this.huebarSvgElement.getClientRects()[0];b&&(this.huebarPosLimitRange[1]=b.height-7)},h.prototype._moveHueHandle=function(b,w){var k=this.huebarHandleElement,$=this.baseColorElement,E,N;b=Math.max(this.huebarPosLimitRange[0],b),b=Math.min(this.huebarPosLimitRange[1],b),C.setTranslateY(k,b),E=S.hsvToRGB(this.getHue(),100,100),N=S.rgbToHEX.apply(null,E),C.setGradientColorStop($,N),w||this.fire("_selectColor",{color:S.rgbToHEX.apply(null,this.getRGB())})},h.prototype.moveHue=function(b,w){var k=0,$,E;$=Math.abs(this.huebarPosLimitRange[0]),E=$+this.huebarPosLimitRange[1],b=b||0,k=E*b/p-$,this._moveHueHandle(k,w)},h.prototype._moveHueByPosition=function(b){var w=this.huebarPosLimitRange[0];this._moveHueHandle(b+w)},h.prototype.getHue=function(){var b=this.huebarHandleElement,w=C.getTranslateXY(b),k,$;return k=Math.abs(this.huebarPosLimitRange[0]),$=k+this.huebarPosLimitRange[1],(w[0]+k)*p/$},h.prototype.getHSV=function(){var b=this.getSaturationAndValue(),w=this.getHue();return[w].concat(b)},h.prototype.getRGB=function(){return S.hsvToRGB.apply(null,this.getHSV())},h.prototype._prepareColorSliderForMouseEvent=function(b){var w=this.options,k=a(b.target,"."+w.cssPrefix+"slider-part"),$;return $=this._dragDataCache={isColorSlider:u(k,w.cssPrefix+"slider-left"),parentElement:k},$},h.prototype._onClick=function(b){var w=this._prepareColorSliderForMouseEvent(b),k=r(b.originEvent,w.parentElement);w.isColorSlider?this._moveColorSliderByPosition(k[0],k[1]):this._moveHueByPosition(k[1]),this._dragDataCache=null},h.prototype._onDragStart=function(b){this._setColorSliderPosMax(),this._setHueBarPosMax(),this._prepareColorSliderForMouseEvent(b)},h.prototype._onDrag=function(b){var w=this._dragDataCache,k=r(b.originEvent,w.parentElement);w.isColorSlider?this._moveColorSliderByPosition(k[0],k[1]):this._moveHueByPosition(k[1])},h.prototype._onDragEnd=function(){this._dragDataCache=null},s.mixin(h),n.exports=h},function(n,i,o){var s=o(4).isOldBrowser,r=/[\.\-0-9]+/g,a=-6,u={getTranslateXY:function(c){var l;return s?(l=c.style,[parseFloat(l.top),parseFloat(l.left)]):(l=c.getAttribute("transform"),l?(l=l.match(r),[parseFloat(l[1]),parseFloat(l[0])]):[0,0])},setTranslateXY:function(c,l,g){s?(c.style.left=l+"px",c.style.top=g+"px"):c.setAttribute("transform","translate("+l+","+g+")")},setTranslateY:function(c,l){s?c.style.top=l+"px":c.setAttribute("transform","translate("+a+","+l+")")},setStrokeColor:function(c,l){s?c.strokecolor=l:c.setAttribute("stroke",l)},setGradientColorStop:function(c,l){s?c.color=l:c.setAttribute("stop-color",l)}};n.exports=u},function(n,i,o){o(34),n.exports=o(35)},function(n,i,o){},function(n,i,o){var s=o(19),r=o(8),a=o(24),u=o(48),c=o(29),l=o(31),g=o(12),C=o(32),S={Collection:s,View:r,Drag:a,create:u,Palette:c,Slider:l,colorutil:g,svgvml:C};n.exports=S},function(n,i,o){function s(r){return r===null}n.exports=s},function(n,i,o){var s=o(3),r=o(38),a=7*24*60*60*1e3;function u(l){var g=new Date().getTime();return g-l>a}function c(l,g){var C="https://www.google-analytics.com/collect",S=location.hostname,_="event",A="use",y="TOAST UI "+l+" for "+S+": Statistics",d=window.localStorage.getItem(y);!s(window.tui)&&window.tui.usageStatistics===!1||d&&!u(d)||(window.localStorage.setItem(y,new Date().getTime()),setTimeout(function(){(document.readyState==="interactive"||document.readyState==="complete")&&r(C,{v:1,t:_,tid:g,cid:S,dp:S,dh:l,el:l,ec:A})},1e3))}n.exports=c},function(n,i,o){var s=o(7);function r(a,u){var c=document.createElement("img"),l="";return s(u,function(g,C){l+="&"+C+"="+g}),l=l.substring(1),c.src=a+"?"+l,c.style.display="none",document.body.appendChild(c),document.body.removeChild(c),c}n.exports=r},function(n,i,o){var s=o(2),r=o(5),a=o(23),u=o(40);function c(l){var g=Array.prototype.slice.call(arguments,1),C=l.classList,S=[],_;if(C){s(g,function(A){l.classList.add(A)});return}_=a(l),_&&(g=[].concat(_.split(/\s+/),g)),s(g,function(A){r(A,S)<0&&S.push(A)}),u(l,S)}n.exports=c},function(n,i,o){var s=o(1),r=o(3);function a(u,c){if(c=s(c)?c.join(" "):c,c=c.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),r(u.className.baseVal)){u.className=c;return}u.className.baseVal=c}n.exports=a},function(n,i,o){function s(r){return typeof r=="number"||r instanceof Number}n.exports=s},function(n,i,o){var s=o(14),r=o(15),a=o(43),u=o(27),c="onselectstart"in document,l="prevUserSelect",g=u(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);function C(S){S||(S=document),c?s(S,"selectstart",r):(S=S===document?document.documentElement:S,a(S,l,S.style[g]),S.style[g]="none")}n.exports=C},function(n,i,o){var s=o(16);function r(a,u,c){if(a.dataset){a.dataset[u]=c;return}a.setAttribute("data-"+s(u),c)}n.exports=r},function(n,i,o){var s=o(17),r=o(15),a=o(45),u=o(46),c=o(27),l="onselectstart"in document,g="prevUserSelect",C=c(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);function S(_){_||(_=document),l?s(_,"selectstart",r):(_=_===document?document.documentElement:_,_.style[C]=a(_,g)||"auto",u(_,g))}n.exports=S},function(n,i,o){var s=o(16);function r(a,u){return a.dataset?a.dataset[u]:a.getAttribute("data-"+s(u))}n.exports=r},function(n,i,o){var s=o(16);function r(a,u){if(a.dataset){delete a.dataset[u];return}a.removeAttribute("data-"+s(u))}n.exports=r},function(n,i,o){var s=o(22),r=o(5),a=["0","1","3","5","7"],u=["2","6"],c=["4"];function l(C){return s.msie&&s.version<=8?g(C):C.button}function g(C){var S=String(C.button);return r(S,a)>-1?0:r(S,u)>-1?2:r(S,c)>-1?1:null}n.exports=l},function(n,i,o){var s=o(10),r=o(0),a=o(4),u=o(12),c=o(49),l=o(29),g=o(31),C=0;function S(){return C+=1,C}function _(A){var y;if(!(this instanceof _))return new _(A);if(A=this.options=r({container:null,color:"#f8f8f8",preset:["#181818","#282828","#383838","#585858","#b8b8b8","#d8d8d8","#e8e8e8","#f8f8f8","#ab4642","#dc9656","#f7ca88","#a1b56c","#86c1b9","#7cafc2","#ba8baf","#a16946"],cssPrefix:"tui-colorpicker-",detailTxt:"Detail",id:S(),usageStatistics:!0},A),!A.container)throw new Error("ColorPicker(): need container option.");y=this.layout=new c(A,A.container),this.palette=new l(A,y.container),this.palette.on({_selectColor:this._onSelectColorInPalette,_toggleSlider:this._onToggleSlider},this),this.slider=new g(A,y.container),this.slider.on("_selectColor",this._onSelectColorInSlider,this),y.addChild(this.palette),y.addChild(this.slider),this.render(A.color),A.usageStatistics&&a.sendHostName()}_.prototype._onSelectColorInPalette=function(A){var y=A.color,d=this.options;if(!u.isValidRGB(y)&&y!==""){this.render();return}this.fire("selectColor",{color:y,origin:"palette"}),d.color!==y&&(d.color=y,this.render(y))},_.prototype._onToggleSlider=function(){this.slider.toggle(!this.slider.isVisible())},_.prototype._onSelectColorInSlider=function(A){var y=A.color,d=this.options;this.fire("selectColor",{color:y,origin:"slider"}),d.color!==y&&(d.color=y,this.palette.render(y))},_.prototype.setColor=function(A){if(!u.isValidRGB(A))throw new Error("ColorPicker#setColor(): need valid hex string color value");this.options.color=A,this.render(A)},_.prototype.getColor=function(){return this.options.color},_.prototype.toggle=function(A){this.layout.container.style.display=A?"block":"none"},_.prototype.render=function(A){this.layout.render(A||this.options.color)},_.prototype.destroy=function(){this.layout.destroy(),this.options.container.innerHTML="",this.layout=this.slider=this.palette=this.options=null},s.mixin(_),n.exports=_},function(n,i,o){var s=o(0),r=o(18),a=o(9),u=o(8);function c(l,g){this.options=s({cssPrefix:"tui-colorpicker-"},l),g=a.appendHTMLElement("div",g,this.options.cssPrefix+"container"),u.call(this,l,g),this.render()}r(c,u),c.prototype.render=function(l){this.recursive(function(g){g.render(l)},!0)},n.exports=c},function(n,i,o){function s(r){function a(){}return a.prototype=r,new a}n.exports=s},function(n,i,o){var s=o(52);n.exports=function(r){var a=['<li><input class="{{cssPrefix}}palette-button{{isSelected @this}}{{getItemClass @this}}" type="button"',"{{if isValidRGB @this}}",' style="background-color:{{@this}};color:{{@this}}"',"{{/if}}",' title="{{@this}}" value="{{@this}}" /></li>'].join(""),u=['<ul class="{{cssPrefix}}clearfix">',"{{each preset}}",a,"{{/each}}","</ul>",'<div class="{{cssPrefix}}clearfix" style="overflow:hidden">','<input type="button" class="{{cssPrefix}}palette-toggle-slider" value="{{detailTxt}}" />','<input type="text" class="{{cssPrefix}}palette-hex" value="{{color}}" maxlength="7" />','<span class="{{cssPrefix}}palette-preview" style="background-color:{{color}};color:{{color}}">{{color}}</span>',"</div>"].join(`
  101. `);return s(u,r)}},function(n,i,o){var s=o(5),r=o(2),a=o(1),u=o(11),c=o(0),l=/{{\s?|\s?}}/g,g=/^[a-zA-Z0-9_@]+\[[a-zA-Z0-9_@"']+\]$/,C=/\[\s?|\s?\]/,S=/^[a-zA-Z_]+\.[a-zA-Z_]+$/,_=/\./,A=/^["']\w+["']$/,y=/"|'/g,d=/^-?\d+\.?\d*$/,v=2,m={if:w,each:k,with:$},f="a".split(/a/).length===3,p=function(){return f?function(H,U){return H.split(U)}:function(H,U){var Q=[],q=0,ae,ne;for(U.global||(U=new RegExp(U,"g")),ae=U.exec(H);ae!==null;)ne=ae.index,Q.push(H.slice(q,ne)),q=ne+ae[0].length,ae=U.exec(H);return Q.push(H.slice(q)),Q}}();function h(H,U){var Q,q=U[H];return H==="true"?q=!0:H==="false"?q=!1:A.test(H)?q=H.replace(y,""):g.test(H)?(Q=H.split(C),q=h(Q[0],U)[h(Q[1],U)]):S.test(H)?(Q=H.split(_),q=h(Q[0],U)[Q[1]]):d.test(H)&&(q=parseFloat(H)),q}function b(H,U){var Q=[H],q=[],ae=0,ne=0;return r(U,function(be,te){be.indexOf("if")===0?ae+=1:be==="/if"?ae-=1:!ae&&(be.indexOf("elseif")===0||be==="else")&&(Q.push(be==="else"?["true"]:be.split(" ").slice(1)),q.push(U.slice(ne,te)),ne=te+1)}),q.push(U.slice(ne)),{exps:Q,sourcesInsideIf:q}}function w(H,U,Q){var q=b(H,U),ae=!1,ne="";return r(q.exps,function(be,te){return ae=j(be,Q),ae&&(ne=V(q.sourcesInsideIf[te],Q)),!ae}),ne}function k(H,U,Q){var q=j(H,Q),ae=a(q)?"@index":"@key",ne={},be="";return r(q,function(te,Ie){ne[ae]=Ie,ne["@this"]=te,c(Q,ne),be+=V(U.slice(),Q)}),be}function $(H,U,Q){var q=s("as",H),ae=H[q+1],ne=j(H.slice(0,q),Q),be={};return be[ae]=ne,V(U,c(Q,be))||""}function E(H,U,Q){var q=H.splice(U+1,Q-U);return q.pop(),q}function N(H,U,Q){for(var q=m[H],ae=1,ne=0,be,te=ne+v,Ie=U[te];ae&&u(Ie);)Ie.indexOf(H)===0?ae+=1:Ie.indexOf("/"+H)===0&&(ae-=1,be=te),te+=v,Ie=U[te];if(ae)throw Error(H+" needs {{/"+H+"}} expression.");return U[ne]=q(U[ne].split(" ").slice(1),E(U,ne,be),Q),U}function j(H,U){var Q=h(H[0],U);return Q instanceof Function?z(Q,H.slice(1),U):Q}function z(H,U,Q){var q=[];return r(U,function(ae){q.push(h(ae,Q))}),H.apply(null,q)}function V(H,U){for(var Q=1,q=H[Q],ae,ne,be;u(q);)ae=q.split(" "),ne=ae[0],m[ne]?(be=N(ne,H.splice(Q,H.length-Q),U),H=H.concat(be)):H[Q]=j(ae,U),Q+=v,q=H[Q];return H.join("")}function W(H,U){return V(p(H,l),U)}n.exports=W},function(n,i,o){var s=o(1);function r(a,u){var c=s(a),l=c?a[0]:a.clientX,g=c?a[1]:a.clientY,C;return u?(C=u.getBoundingClientRect(),[l-C.left-u.clientLeft,g-C.top-u.clientTop]):[l,g]}n.exports=r},function(n,i,o){var s=o(55);function r(a,u){var c=a.parentNode;if(s(a,u))return a;for(;c&&c!==document;){if(s(c,u))return c;c=c.parentNode}return null}n.exports=r},function(n,i,o){var s=o(5),r=o(56),a=Element.prototype,u=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||function(l){var g=this.document||this.ownerDocument;return s(this,r(g.querySelectorAll(l)))>-1};function c(l,g){return u.call(l,g)}n.exports=c},function(n,i,o){var s=o(6);function r(a){var u;try{u=Array.prototype.slice.call(a)}catch{u=[],s(a,function(l){u.push(l)})}return u}n.exports=r},function(n,i,o){(function(s){var r=o(4).isOldBrowser,a=['<div class="{{cssPrefix}}slider-left {{cssPrefix}}slider-part">{{slider}}</div>','<div class="{{cssPrefix}}slider-right {{cssPrefix}}slider-part">{{huebar}}</div>'].join(`
  102. `),u=['<svg class="{{cssPrefix}}svg {{cssPrefix}}svg-slider">',"<defs>",'<linearGradient id="{{cssPrefix}}svg-fill-color-{{id}}" x1="0%" y1="0%" x2="100%" y2="0%">','<stop offset="0%" stop-color="rgb(255,255,255)" />','<stop class="{{cssPrefix}}slider-basecolor" offset="100%" stop-color="rgb(255,0,0)" />',"</linearGradient>",'<linearGradient id="{{cssPrefix}}svn-fill-black-{{id}}" x1="0%" y1="0%" x2="0%" y2="100%">','<stop offset="0%" style="stop-color:rgb(0,0,0);stop-opacity:0" />','<stop offset="100%" style="stop-color:rgb(0,0,0);stop-opacity:1" />',"</linearGradient>","</defs>",'<rect width="100%" height="100%" fill="url(#{{cssPrefix}}svg-fill-color-{{id}})"></rect>','<rect width="100%" height="100%" fill="url(#{{cssPrefix}}svn-fill-black-{{id}})"></rect>','<path transform="translate(0,0)" class="{{cssPrefix}}slider-handle" d="M0 7.5 L15 7.5 M7.5 15 L7.5 0 M2 7 a5.5 5.5 0 1 1 0 1 Z" stroke="black" stroke-width="0.75" fill="none" />',"</svg>"].join(`
  103. `),c=['<div class="{{cssPrefix}}vml-slider">','<v:rect strokecolor="none" class="{{cssPrefix}}vml {{cssPrefix}}vml-slider-bg">','<v:fill class="{{cssPrefix}}vml {{cssPrefix}}slider-basecolor" type="gradient" method="none" color="#ff0000" color2="#fff" angle="90" />',"</v:rect>",'<v:rect strokecolor="#ccc" class="{{cssPrefix}}vml {{cssPrefix}}vml-slider-bg">','<v:fill type="gradient" method="none" color="black" color2="white" o:opacity2="0%" class="{{cssPrefix}}vml" />',"</v:rect>",'<v:shape class="{{cssPrefix}}vml {{cssPrefix}}slider-handle" coordsize="1 1" style="width:1px;height:1px;"path="m 0,7 l 14,7 m 7,14 l 7,0 ar 12,12 2,2 z" filled="false" stroked="true" />',"</div>"].join(`
  104. `),l=['<svg class="{{cssPrefix}}svg {{cssPrefix}}svg-huebar">',"<defs>",'<linearGradient id="g-{{id}}" x1="0%" y1="0%" x2="0%" y2="100%">','<stop offset="0%" stop-color="rgb(255,0,0)" />','<stop offset="16.666%" stop-color="rgb(255,255,0)" />','<stop offset="33.333%" stop-color="rgb(0,255,0)" />','<stop offset="50%" stop-color="rgb(0,255,255)" />','<stop offset="66.666%" stop-color="rgb(0,0,255)" />','<stop offset="83.333%" stop-color="rgb(255,0,255)" />','<stop offset="100%" stop-color="rgb(255,0,0)" />',"</linearGradient>","</defs>",'<rect width="18px" height="100%" fill="url(#g-{{id}})"></rect>','<path transform="translate(-6,-3)" class="{{cssPrefix}}huebar-handle" d="M0 0 L4 4 L0 8 L0 0 Z" fill="black" stroke="none" />',"</svg>"].join(`
  105. `),g=['<div class="{{cssPrefix}}vml-huebar">','<v:rect strokecolor="#ccc" class="{{cssPrefix}}vml {{cssPrefix}}vml-huebar-bg">','<v:fill type="gradient" method="none" colors="0% rgb(255,0,0), 16.666% rgb(255,255,0), 33.333% rgb(0,255,0), 50% rgb(0,255,255), 66.666% rgb(0,0,255), 83.333% rgb(255,0,255), 100% rgb(255,0,0)" angle="180" class="{{cssPrefix}}vml" />',"</v:rect>",'<v:shape class="{{cssPrefix}}vml {{cssPrefix}}huebar-handle" coordsize="1 1" style="width:1px;height:1px;position:absolute;z-index:1;right:22px;top:-3px;"path="m 0,0 l 4,4 l 0,8 l 0,0 z" filled="true" fillcolor="black" stroked="false" />',"</div>"].join(`
  106. `);r&&s.document.namespaces.add("v","urn:schemas-microsoft-com:vml"),n.exports={layout:a,slider:r?c:u,huebar:r?g:l}}).call(this,o(25))}])})}(xA)),xA.exports}/*!
  107. * TOAST UI ImageEditor
  108. * @version 3.15.3
  109. * @license MIT
  110. */(function(e,t){(function(i,o){e.exports=o(Jqe())})(self,function(n){return function(){var i={2777:function(a,u,c){/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */var l=l||{version:"4.6.0"};if(u.fabric=l,typeof document<"u"&&typeof window<"u")document instanceof(typeof HTMLDocument<"u"?HTMLDocument:Document)?l.document=document:l.document=document.implementation.createHTMLDocument(""),l.window=window;else{var g=c(4960),C=new g.JSDOM(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]},resources:"usable"}).window;l.document=C.document,l.jsdomImplForWrapper=c(6759).implForWrapper,l.nodeCanvas=c(6272).Canvas,l.window=C,DOMParser=l.window.DOMParser}l.isTouchSupported="ontouchstart"in l.window||"ontouchstart"in l.document||l.window&&l.window.navigator&&l.window.navigator.maxTouchPoints>0,l.isLikelyNode=typeof Buffer<"u"&&typeof window>"u",l.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],l.DPI=96,l.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",l.commaWsp="(?:\\s+,?\\s*|,\\s*)",l.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/ig,l.reNonWord=/[ \n\.,;!\?\-]/,l.fontPaths={},l.iMatrix=[1,0,0,1,0,0],l.svgNS="http://www.w3.org/2000/svg",l.perfLimitSizeTotal=2097152,l.maxCacheSideLimit=4096,l.minCacheSideLimit=256,l.charWidthsCache={},l.textureSize=2048,l.disableStyleCopyPaste=!1,l.enableGLFiltering=!0,l.devicePixelRatio=l.window.devicePixelRatio||l.window.webkitDevicePixelRatio||l.window.mozDevicePixelRatio||1,l.browserShadowBlurConstant=1,l.arcToSegmentsCache={},l.boundsOfCurveCache={},l.cachesBoundsOfCurve=!0,l.forceGLPutImageData=!1,l.initFilterBackend=function(){if(l.enableGLFiltering&&l.isWebglSupported&&l.isWebglSupported(l.textureSize))return console.log("max texture size: "+l.maxTextureSize),new l.WebglFilterBackend({tileSize:l.textureSize});if(l.Canvas2dFilterBackend)return new l.Canvas2dFilterBackend},typeof document<"u"&&typeof window<"u"&&(window.fabric=l),function(){function y(h,b){if(this.__eventListeners[h]){var w=this.__eventListeners[h];b?w[w.indexOf(b)]=!1:l.util.array.fill(w,!1)}}function d(h,b){if(this.__eventListeners||(this.__eventListeners={}),arguments.length===1)for(var w in h)this.on(w,h[w]);else this.__eventListeners[h]||(this.__eventListeners[h]=[]),this.__eventListeners[h].push(b);return this}function v(h,b){var w=function(){b.apply(this,arguments),this.off(h,w)}.bind(this);this.on(h,w)}function m(h,b){if(arguments.length===1)for(var w in h)v.call(this,w,h[w]);else v.call(this,h,b);return this}function f(h,b){if(!this.__eventListeners)return this;if(arguments.length===0)for(h in this.__eventListeners)y.call(this,h);else if(arguments.length===1&&typeof arguments[0]=="object")for(var w in h)y.call(this,w,h[w]);else y.call(this,h,b);return this}function p(h,b){if(!this.__eventListeners)return this;var w=this.__eventListeners[h];if(!w)return this;for(var k=0,$=w.length;k<$;k++)w[k]&&w[k].call(this,b||{});return this.__eventListeners[h]=w.filter(function(E){return E!==!1}),this}l.Observable={fire:p,on:d,once:m,off:f}}(),l.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var y=0,d=arguments.length;y<d;y++)this._onObjectAdded(arguments[y]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(y,d,v){var m=this._objects;return v?m[d]=y:m.splice(d,0,y),this._onObjectAdded&&this._onObjectAdded(y),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var y=this._objects,d,v=!1,m=0,f=arguments.length;m<f;m++)d=y.indexOf(arguments[m]),d!==-1&&(v=!0,y.splice(d,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[m]));return this.renderOnAddRemove&&v&&this.requestRenderAll(),this},forEachObject:function(y,d){for(var v=this.getObjects(),m=0,f=v.length;m<f;m++)y.call(d,v[m],m,v);return this},getObjects:function(y){return typeof y>"u"?this._objects.concat():this._objects.filter(function(d){return d.type===y})},item:function(y){return this._objects[y]},isEmpty:function(){return this._objects.length===0},size:function(){return this._objects.length},contains:function(y,d){return this._objects.indexOf(y)>-1?!0:d?this._objects.some(function(v){return typeof v.contains=="function"&&v.contains(y,!0)}):!1},complexity:function(){return this._objects.reduce(function(y,d){return y+=d.complexity?d.complexity():0,y},0)}},l.CommonMethods={_setOptions:function(y){for(var d in y)this.set(d,y[d])},_initGradient:function(y,d){y&&y.colorStops&&!(y instanceof l.Gradient)&&this.set(d,new l.Gradient(y))},_initPattern:function(y,d,v){y&&y.source&&!(y instanceof l.Pattern)?this.set(d,new l.Pattern(y,v)):v&&v()},_setObject:function(y){for(var d in y)this._set(d,y[d])},set:function(y,d){return typeof y=="object"?this._setObject(y):this._set(y,d),this},_set:function(y,d){this[y]=d},toggle:function(y){var d=this.get(y);return typeof d=="boolean"&&this.set(y,!d),this},get:function(y){return this[y]}},function(y){var d=Math.sqrt,v=Math.atan2,m=Math.pow,f=Math.PI/180,p=Math.PI/2;l.util={cos:function(h){if(h===0)return 1;h<0&&(h=-h);var b=h/p;switch(b){case 1:case 3:return 0;case 2:return-1}return Math.cos(h)},sin:function(h){if(h===0)return 0;var b=h/p,w=1;switch(h<0&&(w=-1),b){case 1:return w;case 2:return 0;case 3:return-w}return Math.sin(h)},removeFromArray:function(h,b){var w=h.indexOf(b);return w!==-1&&h.splice(w,1),h},getRandomInt:function(h,b){return Math.floor(Math.random()*(b-h+1))+h},degreesToRadians:function(h){return h*f},radiansToDegrees:function(h){return h/f},rotatePoint:function(h,b,w){var k=new l.Point(h.x-b.x,h.y-b.y),$=l.util.rotateVector(k,w);return new l.Point($.x,$.y).addEquals(b)},rotateVector:function(h,b){var w=l.util.sin(b),k=l.util.cos(b),$=h.x*k-h.y*w,E=h.x*w+h.y*k;return{x:$,y:E}},transformPoint:function(h,b,w){return w?new l.Point(b[0]*h.x+b[2]*h.y,b[1]*h.x+b[3]*h.y):new l.Point(b[0]*h.x+b[2]*h.y+b[4],b[1]*h.x+b[3]*h.y+b[5])},makeBoundingBoxFromPoints:function(h,b){if(b)for(var w=0;w<h.length;w++)h[w]=l.util.transformPoint(h[w],b);var k=[h[0].x,h[1].x,h[2].x,h[3].x],$=l.util.array.min(k),E=l.util.array.max(k),N=E-$,j=[h[0].y,h[1].y,h[2].y,h[3].y],z=l.util.array.min(j),V=l.util.array.max(j),W=V-z;return{left:$,top:z,width:N,height:W}},invertTransform:function(h){var b=1/(h[0]*h[3]-h[1]*h[2]),w=[b*h[3],-b*h[1],-b*h[2],b*h[0]],k=l.util.transformPoint({x:h[4],y:h[5]},w,!0);return w[4]=-k.x,w[5]=-k.y,w},toFixed:function(h,b){return parseFloat(Number(h).toFixed(b))},parseUnit:function(h,b){var w=/\D{0,2}$/.exec(h),k=parseFloat(h);switch(b||(b=l.Text.DEFAULT_SVG_FONT_SIZE),w[0]){case"mm":return k*l.DPI/25.4;case"cm":return k*l.DPI/2.54;case"in":return k*l.DPI;case"pt":return k*l.DPI/72;case"pc":return k*l.DPI/72*12;case"em":return k*b;default:return k}},falseFunction:function(){return!1},getKlass:function(h,b){return h=l.util.string.camelize(h.charAt(0).toUpperCase()+h.slice(1)),l.util.resolveNamespace(b)[h]},getSvgAttributes:function(h){var b=["instantiated_by_use","style","id","class"];switch(h){case"linearGradient":b=b.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":b=b.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":b=b.concat(["offset","stop-color","stop-opacity"]);break}return b},resolveNamespace:function(h){if(!h)return l;var b=h.split("."),w=b.length,k,$=y||l.window;for(k=0;k<w;++k)$=$[b[k]];return $},loadImage:function(h,b,w,k){if(!h){b&&b.call(w,h);return}var $=l.util.createImage(),E=function(){b&&b.call(w,$,!1),$=$.onload=$.onerror=null};$.onload=E,$.onerror=function(){l.log("Error loading "+$.src),b&&b.call(w,null,!0),$=$.onload=$.onerror=null},h.indexOf("data")!==0&&k!==void 0&&k!==null&&($.crossOrigin=k),h.substring(0,14)==="data:image/svg"&&($.onload=null,l.util.loadImageInDom($,E)),$.src=h},loadImageInDom:function(h,b){var w=l.document.createElement("div");w.style.width=w.style.height="1px",w.style.left=w.style.top="-100%",w.style.position="absolute",w.appendChild(h),l.document.querySelector("body").appendChild(w),h.onload=function(){b(),w.parentNode.removeChild(w),w=null}},enlivenObjects:function(h,b,w,k){h=h||[];var $=[],E=0,N=h.length;function j(){++E===N&&b&&b($.filter(function(z){return z}))}if(!N){b&&b($);return}h.forEach(function(z,V){if(!z||!z.type){j();return}var W=l.util.getKlass(z.type,w);W.fromObject(z,function(H,U){U||($[V]=H),k&&k(z,H,U),j()})})},enlivenPatterns:function(h,b){h=h||[];function w(){++$===E&&b&&b(k)}var k=[],$=0,E=h.length;if(!E){b&&b(k);return}h.forEach(function(N,j){N&&N.source?new l.Pattern(N,function(z){k[j]=z,w()}):(k[j]=N,w())})},groupSVGElements:function(h,b,w){var k;return h&&h.length===1?h[0]:(b&&(b.width&&b.height?b.centerPoint={x:b.width/2,y:b.height/2}:(delete b.width,delete b.height)),k=new l.Group(h,b),typeof w<"u"&&(k.sourcePath=w),k)},populateWithProperties:function(h,b,w){if(w&&Object.prototype.toString.call(w)==="[object Array]")for(var k=0,$=w.length;k<$;k++)w[k]in h&&(b[w[k]]=h[w[k]])},drawDashedLine:function(h,b,w,k,$,E){var N=k-b,j=$-w,z=d(N*N+j*j),V=v(j,N),W=E.length,H=0,U=!0;for(h.save(),h.translate(b,w),h.moveTo(0,0),h.rotate(V),b=0;z>b;)b+=E[H++%W],b>z&&(b=z),h[U?"lineTo":"moveTo"](b,0),U=!U;h.restore()},createCanvasElement:function(){return l.document.createElement("canvas")},copyCanvasElement:function(h){var b=l.util.createCanvasElement();return b.width=h.width,b.height=h.height,b.getContext("2d").drawImage(h,0,0),b},toDataURL:function(h,b,w){return h.toDataURL("image/"+b,w)},createImage:function(){return l.document.createElement("img")},multiplyTransformMatrices:function(h,b,w){return[h[0]*b[0]+h[2]*b[1],h[1]*b[0]+h[3]*b[1],h[0]*b[2]+h[2]*b[3],h[1]*b[2]+h[3]*b[3],w?0:h[0]*b[4]+h[2]*b[5]+h[4],w?0:h[1]*b[4]+h[3]*b[5]+h[5]]},qrDecompose:function(h){var b=v(h[1],h[0]),w=m(h[0],2)+m(h[1],2),k=d(w),$=(h[0]*h[3]-h[2]*h[1])/k,E=v(h[0]*h[2]+h[1]*h[3],w);return{angle:b/f,scaleX:k,scaleY:$,skewX:E/f,skewY:0,translateX:h[4],translateY:h[5]}},calcRotateMatrix:function(h){if(!h.angle)return l.iMatrix.concat();var b=l.util.degreesToRadians(h.angle),w=l.util.cos(b),k=l.util.sin(b);return[w,k,-k,w,0,0]},calcDimensionsMatrix:function(h){var b=typeof h.scaleX>"u"?1:h.scaleX,w=typeof h.scaleY>"u"?1:h.scaleY,k=[h.flipX?-b:b,0,0,h.flipY?-w:w,0,0],$=l.util.multiplyTransformMatrices,E=l.util.degreesToRadians;return h.skewX&&(k=$(k,[1,0,Math.tan(E(h.skewX)),1],!0)),h.skewY&&(k=$(k,[1,Math.tan(E(h.skewY)),0,1],!0)),k},composeMatrix:function(h){var b=[1,0,0,1,h.translateX||0,h.translateY||0],w=l.util.multiplyTransformMatrices;return h.angle&&(b=w(b,l.util.calcRotateMatrix(h))),(h.scaleX!==1||h.scaleY!==1||h.skewX||h.skewY||h.flipX||h.flipY)&&(b=w(b,l.util.calcDimensionsMatrix(h))),b},resetObjectTransform:function(h){h.scaleX=1,h.scaleY=1,h.skewX=0,h.skewY=0,h.flipX=!1,h.flipY=!1,h.rotate(0)},saveObjectTransform:function(h){return{scaleX:h.scaleX,scaleY:h.scaleY,skewX:h.skewX,skewY:h.skewY,angle:h.angle,left:h.left,flipX:h.flipX,flipY:h.flipY,top:h.top}},isTransparent:function(h,b,w,k){k>0&&(b>k?b-=k:b=0,w>k?w-=k:w=0);var $=!0,E,N,j=h.getImageData(b,w,k*2||1,k*2||1),z=j.data.length;for(E=3;E<z&&(N=j.data[E],$=N<=0,$!==!1);E+=4);return j=null,$},parsePreserveAspectRatioAttribute:function(h){var b="meet",w="Mid",k="Mid",$=h.split(" "),E;return $&&$.length&&(b=$.pop(),b!=="meet"&&b!=="slice"?(E=b,b="meet"):$.length&&(E=$.pop())),w=E!=="none"?E.slice(1,4):"none",k=E!=="none"?E.slice(5,8):"none",{meetOrSlice:b,alignX:w,alignY:k}},clearFabricFontCache:function(h){h=(h||"").toLowerCase(),h?l.charWidthsCache[h]&&delete l.charWidthsCache[h]:l.charWidthsCache={}},limitDimsByArea:function(h,b){var w=Math.sqrt(b*h),k=Math.floor(b/w);return{x:Math.floor(w),y:k}},capValue:function(h,b,w){return Math.max(h,Math.min(b,w))},findScaleToFit:function(h,b){return Math.min(b.width/h.width,b.height/h.height)},findScaleToCover:function(h,b){return Math.max(b.width/h.width,b.height/h.height)},matrixToSVG:function(h){return"matrix("+h.map(function(b){return l.util.toFixed(b,l.Object.NUM_FRACTION_DIGITS)}).join(" ")+")"},removeTransformFromObject:function(h,b){var w=l.util.invertTransform(b),k=l.util.multiplyTransformMatrices(w,h.calcOwnMatrix());l.util.applyTransformToObject(h,k)},addTransformToObject:function(h,b){l.util.applyTransformToObject(h,l.util.multiplyTransformMatrices(b,h.calcOwnMatrix()))},applyTransformToObject:function(h,b){var w=l.util.qrDecompose(b),k=new l.Point(w.translateX,w.translateY);h.flipX=!1,h.flipY=!1,h.set("scaleX",w.scaleX),h.set("scaleY",w.scaleY),h.skewX=w.skewX,h.skewY=w.skewY,h.angle=w.angle,h.setPositionByOrigin(k,"center","center")},sizeAfterTransform:function(h,b,w){var k=h/2,$=b/2,E=[{x:-k,y:-$},{x:k,y:-$},{x:-k,y:$},{x:k,y:$}],N=l.util.calcDimensionsMatrix(w),j=l.util.makeBoundingBoxFromPoints(E,N);return{x:j.width,y:j.height}}}}(u),function(){var y=Array.prototype.join,d={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},v={m:"l",M:"L"};function m(fe,pe,je,Y,Z,ee,ce,xe,re,le,ve){var De=l.util.cos(fe),Ee=l.util.sin(fe),we=l.util.cos(pe),me=l.util.sin(pe),Ae=je*Z*we-Y*ee*me+ce,Fe=Y*Z*we+je*ee*me+xe,Ne=le+re*(-je*Z*Ee-Y*ee*De),ze=ve+re*(-Y*Z*Ee+je*ee*De),Ue=Ae+re*(je*Z*me+Y*ee*we),et=Fe+re*(Y*Z*me-je*ee*we);return["C",Ne,ze,Ue,et,Ae,Fe]}function f(fe,pe,je,Y,Z,ee,ce){var xe=Math.PI,re=ce*xe/180,le=l.util.sin(re),ve=l.util.cos(re),De=0,Ee=0;je=Math.abs(je),Y=Math.abs(Y);var we=-ve*fe*.5-le*pe*.5,me=-ve*pe*.5+le*fe*.5,Ae=je*je,Fe=Y*Y,Ne=me*me,ze=we*we,Ue=Ae*Fe-Ae*Ne-Fe*ze,et=0;if(Ue<0){var Xe=Math.sqrt(1-Ue/(Ae*Fe));je*=Xe,Y*=Xe}else et=(Z===ee?-1:1)*Math.sqrt(Ue/(Ae*Ne+Fe*ze));var yt=et*je*me/Y,Et=-et*Y*we/je,nt=ve*yt-le*Et+fe*.5,St=le*yt+ve*Et+pe*.5,bt=p(1,0,(we-yt)/je,(me-Et)/Y),It=p((we-yt)/je,(me-Et)/Y,(-we-yt)/je,(-me-Et)/Y);ee===0&&It>0?It-=2*xe:ee===1&&It<0&&(It+=2*xe);for(var Mt=Math.ceil(Math.abs(It/xe*2)),Rt=[],mn=It/Mt,xn=8/3*Math.sin(mn/4)*Math.sin(mn/4)/Math.sin(mn/2),dt=bt+mn,ht=0;ht<Mt;ht++)Rt[ht]=m(bt,dt,ve,le,je,Y,nt,St,xn,De,Ee),De=Rt[ht][5],Ee=Rt[ht][6],bt=dt,dt+=mn;return Rt}function p(fe,pe,je,Y){var Z=Math.atan2(pe,fe),ee=Math.atan2(Y,je);return ee>=Z?ee-Z:2*Math.PI-(Z-ee)}function h(fe,pe,je,Y,Z,ee,ce,xe){var re;if(l.cachesBoundsOfCurve&&(re=y.call(arguments),l.boundsOfCurveCache[re]))return l.boundsOfCurveCache[re];var le=Math.sqrt,ve=Math.min,De=Math.max,Ee=Math.abs,we=[],me=[[],[]],Ae,Fe,Ne,ze,Ue,et,Xe,yt;Fe=6*fe-12*je+6*Z,Ae=-3*fe+9*je-9*Z+3*ce,Ne=3*je-3*fe;for(var Et=0;Et<2;++Et){if(Et>0&&(Fe=6*pe-12*Y+6*ee,Ae=-3*pe+9*Y-9*ee+3*xe,Ne=3*Y-3*pe),Ee(Ae)<1e-12){if(Ee(Fe)<1e-12)continue;ze=-Ne/Fe,0<ze&&ze<1&&we.push(ze);continue}Xe=Fe*Fe-4*Ne*Ae,!(Xe<0)&&(yt=le(Xe),Ue=(-Fe+yt)/(2*Ae),0<Ue&&Ue<1&&we.push(Ue),et=(-Fe-yt)/(2*Ae),0<et&&et<1&&we.push(et))}for(var nt,St,bt=we.length,It=bt,Mt;bt--;)ze=we[bt],Mt=1-ze,nt=Mt*Mt*Mt*fe+3*Mt*Mt*ze*je+3*Mt*ze*ze*Z+ze*ze*ze*ce,me[0][bt]=nt,St=Mt*Mt*Mt*pe+3*Mt*Mt*ze*Y+3*Mt*ze*ze*ee+ze*ze*ze*xe,me[1][bt]=St;me[0][It]=fe,me[1][It]=pe,me[0][It+1]=ce,me[1][It+1]=xe;var Rt=[{x:ve.apply(null,me[0]),y:ve.apply(null,me[1])},{x:De.apply(null,me[0]),y:De.apply(null,me[1])}];return l.cachesBoundsOfCurve&&(l.boundsOfCurveCache[re]=Rt),Rt}function b(fe,pe,je){for(var Y=je[1],Z=je[2],ee=je[3],ce=je[4],xe=je[5],re=je[6],le=je[7],ve=f(re-fe,le-pe,Y,Z,ce,xe,ee),De=0,Ee=ve.length;De<Ee;De++)ve[De][1]+=fe,ve[De][2]+=pe,ve[De][3]+=fe,ve[De][4]+=pe,ve[De][5]+=fe,ve[De][6]+=pe;return ve}function w(fe){var pe=0,je=0,Y=fe.length,Z=0,ee=0,ce,xe,re,le=[],ve,De,Ee;for(xe=0;xe<Y;++xe){switch(re=!1,ce=fe[xe].slice(0),ce[0]){case"l":ce[0]="L",ce[1]+=pe,ce[2]+=je;case"L":pe=ce[1],je=ce[2];break;case"h":ce[1]+=pe;case"H":ce[0]="L",ce[2]=je,pe=ce[1];break;case"v":ce[1]+=je;case"V":ce[0]="L",je=ce[1],ce[1]=pe,ce[2]=je;break;case"m":ce[0]="M",ce[1]+=pe,ce[2]+=je;case"M":pe=ce[1],je=ce[2],Z=ce[1],ee=ce[2];break;case"c":ce[0]="C",ce[1]+=pe,ce[2]+=je,ce[3]+=pe,ce[4]+=je,ce[5]+=pe,ce[6]+=je;case"C":De=ce[3],Ee=ce[4],pe=ce[5],je=ce[6];break;case"s":ce[0]="S",ce[1]+=pe,ce[2]+=je,ce[3]+=pe,ce[4]+=je;case"S":ve==="C"?(De=2*pe-De,Ee=2*je-Ee):(De=pe,Ee=je),pe=ce[3],je=ce[4],ce[0]="C",ce[5]=ce[3],ce[6]=ce[4],ce[3]=ce[1],ce[4]=ce[2],ce[1]=De,ce[2]=Ee,De=ce[3],Ee=ce[4];break;case"q":ce[0]="Q",ce[1]+=pe,ce[2]+=je,ce[3]+=pe,ce[4]+=je;case"Q":De=ce[1],Ee=ce[2],pe=ce[3],je=ce[4];break;case"t":ce[0]="T",ce[1]+=pe,ce[2]+=je;case"T":ve==="Q"?(De=2*pe-De,Ee=2*je-Ee):(De=pe,Ee=je),ce[0]="Q",pe=ce[1],je=ce[2],ce[1]=De,ce[2]=Ee,ce[3]=pe,ce[4]=je;break;case"a":ce[0]="A",ce[6]+=pe,ce[7]+=je;case"A":re=!0,le=le.concat(b(pe,je,ce)),pe=ce[6],je=ce[7];break;case"z":case"Z":pe=Z,je=ee;break}re||le.push(ce),ve=ce[0]}return le}function k(fe,pe,je,Y){return Math.sqrt((je-fe)*(je-fe)+(Y-pe)*(Y-pe))}function $(fe){return fe*fe*fe}function E(fe){return 3*fe*fe*(1-fe)}function N(fe){return 3*fe*(1-fe)*(1-fe)}function j(fe){return(1-fe)*(1-fe)*(1-fe)}function z(fe,pe,je,Y,Z,ee,ce,xe){return function(re){var le=$(re),ve=E(re),De=N(re),Ee=j(re);return{x:ce*le+Z*ve+je*De+fe*Ee,y:xe*le+ee*ve+Y*De+pe*Ee}}}function V(fe,pe,je,Y,Z,ee,ce,xe){return function(re){var le=1-re,ve=3*le*le*(je-fe)+6*le*re*(Z-je)+3*re*re*(ce-Z),De=3*le*le*(Y-pe)+6*le*re*(ee-Y)+3*re*re*(xe-ee);return Math.atan2(De,ve)}}function W(fe){return fe*fe}function H(fe){return 2*fe*(1-fe)}function U(fe){return(1-fe)*(1-fe)}function Q(fe,pe,je,Y,Z,ee){return function(ce){var xe=W(ce),re=H(ce),le=U(ce);return{x:Z*xe+je*re+fe*le,y:ee*xe+Y*re+pe*le}}}function q(fe,pe,je,Y,Z,ee){return function(ce){var xe=1-ce,re=2*xe*(je-fe)+2*ce*(Z-je),le=2*xe*(Y-pe)+2*ce*(ee-Y);return Math.atan2(le,re)}}function ae(fe,pe,je){var Y={x:pe,y:je},Z,ee=0,ce;for(ce=1;ce<=100;ce+=1)Z=fe(ce/100),ee+=k(Y.x,Y.y,Z.x,Z.y),Y=Z;return ee}function ne(fe,pe){for(var je=0,Y=0,Z=fe.iterator,ee={x:fe.x,y:fe.y},ce,xe,re=.01,le=fe.angleFinder,ve;Y<pe&&je<=1&&re>1e-4;)ce=Z(je),ve=je,xe=k(ee.x,ee.y,ce.x,ce.y),xe+Y>pe?(re/=2,je-=re):(ee=ce,je+=re,Y+=xe);return ce.angle=le(ve),ce}function be(fe){for(var pe=0,je=fe.length,Y,Z=0,ee=0,ce=0,xe=0,re=[],le,ve,De,Ee=0;Ee<je;Ee++){switch(Y=fe[Ee],ve={x:Z,y:ee,command:Y[0]},Y[0]){case"M":ve.length=0,ce=Z=Y[1],xe=ee=Y[2];break;case"L":ve.length=k(Z,ee,Y[1],Y[2]),Z=Y[1],ee=Y[2];break;case"C":le=z(Z,ee,Y[1],Y[2],Y[3],Y[4],Y[5],Y[6]),De=V(Z,ee,Y[1],Y[2],Y[3],Y[4],Y[5],Y[6]),ve.iterator=le,ve.angleFinder=De,ve.length=ae(le,Z,ee),Z=Y[5],ee=Y[6];break;case"Q":le=Q(Z,ee,Y[1],Y[2],Y[3],Y[4]),De=q(Z,ee,Y[1],Y[2],Y[3],Y[4]),ve.iterator=le,ve.angleFinder=De,ve.length=ae(le,Z,ee),Z=Y[3],ee=Y[4];break;case"Z":case"z":ve.destX=ce,ve.destY=xe,ve.length=k(Z,ee,ce,xe),Z=ce,ee=xe;break}pe+=ve.length,re.push(ve)}return re.push({length:pe,x:Z,y:ee}),re}function te(fe,pe,je){je||(je=be(fe));for(var Y=0;pe-je[Y].length>0&&Y<je.length-2;)pe-=je[Y].length,Y++;var Z=je[Y],ee=pe/Z.length,ce=Z.command,xe=fe[Y],re;switch(ce){case"M":return{x:Z.x,y:Z.y,angle:0};case"Z":case"z":return re=new l.Point(Z.x,Z.y).lerp(new l.Point(Z.destX,Z.destY),ee),re.angle=Math.atan2(Z.destY-Z.y,Z.destX-Z.x),re;case"L":return re=new l.Point(Z.x,Z.y).lerp(new l.Point(xe[1],xe[2]),ee),re.angle=Math.atan2(xe[2]-Z.y,xe[1]-Z.x),re;case"C":return ne(Z,pe);case"Q":return ne(Z,pe)}}function Ie(fe){var pe=[],je=[],Y,Z,ee=l.rePathCommand,ce="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",xe="("+ce+")"+l.commaWsp,re="([01])"+l.commaWsp+"?",le=xe+"?"+xe+"?"+xe+re+re+xe+"?("+ce+")",ve=new RegExp(le,"g"),De,Ee,we;if(!fe||!fe.match)return pe;we=fe.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);for(var me=0,Ae,Fe=we.length;me<Fe;me++){Y=we[me],Ee=Y.slice(1).trim(),je.length=0;var Ne=Y.charAt(0);if(Ae=[Ne],Ne.toLowerCase()==="a")for(var ze;ze=ve.exec(Ee);)for(var Ue=1;Ue<ze.length;Ue++)je.push(ze[Ue]);else for(;De=ee.exec(Ee);)je.push(De[0]);for(var Ue=0,et=je.length;Ue<et;Ue++)Z=parseFloat(je[Ue]),isNaN(Z)||Ae.push(Z);var Xe=d[Ne.toLowerCase()],yt=v[Ne]||Ne;if(Ae.length-1>Xe)for(var Et=1,nt=Ae.length;Et<nt;Et+=Xe)pe.push([Ne].concat(Ae.slice(Et,Et+Xe))),Ne=yt;else pe.push(Ae)}return pe}function $e(fe,pe){var je=[],Y,Z=new l.Point(fe[0].x,fe[0].y),ee=new l.Point(fe[1].x,fe[1].y),ce=fe.length,xe=1,re=0,le=ce>2;for(pe=pe||0,le&&(xe=fe[2].x<ee.x?-1:fe[2].x===ee.x?0:1,re=fe[2].y<ee.y?-1:fe[2].y===ee.y?0:1),je.push(["M",Z.x-xe*pe,Z.y-re*pe]),Y=1;Y<ce;Y++){if(!Z.eq(ee)){var ve=Z.midPointFrom(ee);je.push(["Q",Z.x,Z.y,ve.x,ve.y])}Z=fe[Y],Y+1<fe.length&&(ee=fe[Y+1])}return le&&(xe=Z.x>fe[Y-2].x?1:Z.x===fe[Y-2].x?0:-1,re=Z.y>fe[Y-2].y?1:Z.y===fe[Y-2].y?0:-1),je.push(["L",Z.x+xe*pe,Z.y+re*pe]),je}function Me(fe,pe,je){return je&&(pe=l.util.multiplyTransformMatrices(pe,[1,0,0,1,-je.x,-je.y])),fe.map(function(Y){for(var Z=Y.slice(0),ee={},ce=1;ce<Y.length-1;ce+=2)ee.x=Y[ce],ee.y=Y[ce+1],ee=l.util.transformPoint(ee,pe),Z[ce]=ee.x,Z[ce+1]=ee.y;return Z})}function ge(fe,pe,je,Y,Z,ee,ce,xe,re){for(var le=0,ve=0,De,Ee=[],we=f(xe-fe,re-pe,je,Y,ee,ce,Z),me=0,Ae=we.length;me<Ae;me++)De=h(le,ve,we[me][1],we[me][2],we[me][3],we[me][4],we[me][5],we[me][6]),Ee.push({x:De[0].x+fe,y:De[0].y+pe}),Ee.push({x:De[1].x+fe,y:De[1].y+pe}),le=we[me][5],ve=we[me][6];return Ee}function Se(fe,pe,je,Y){Y=Y.slice(0).unshift("X");var Z=b(pe,je,Y);Z.forEach(function(ee){fe.bezierCurveTo.apply(fe,ee.slice(1))})}l.util.joinPath=function(fe){return fe.map(function(pe){return pe.join(" ")}).join(" ")},l.util.parsePath=Ie,l.util.makePathSimpler=w,l.util.getSmoothPathFromPoints=$e,l.util.getPathSegmentsInfo=be,l.util.getBoundsOfCurve=h,l.util.getPointOnPath=te,l.util.transformPath=Me,l.util.fromArcToBeizers=b,l.util.getBoundsOfArc=ge,l.util.drawArc=Se}(),function(){var y=Array.prototype.slice;function d(h,b){for(var w=y.call(arguments,2),k=[],$=0,E=h.length;$<E;$++)k[$]=w.length?h[$][b].apply(h[$],w):h[$][b].call(h[$]);return k}function v(h,b){return p(h,b,function(w,k){return w>=k})}function m(h,b){return p(h,b,function(w,k){return w<k})}function f(h,b){for(var w=h.length;w--;)h[w]=b;return h}function p(h,b,w){if(!(!h||h.length===0)){var k=h.length-1,$=b?h[k][b]:h[k];if(b)for(;k--;)w(h[k][b],$)&&($=h[k][b]);else for(;k--;)w(h[k],$)&&($=h[k]);return $}}l.util.array={fill:f,invoke:d,min:m,max:v}}(),function(){function y(v,m,f){if(f)if(!l.isLikelyNode&&m instanceof Element)v=m;else if(m instanceof Array){v=[];for(var p=0,h=m.length;p<h;p++)v[p]=y({},m[p],f)}else if(m&&typeof m=="object")for(var b in m)b==="canvas"||b==="group"?v[b]=null:m.hasOwnProperty(b)&&(v[b]=y({},m[b],f));else v=m;else for(var b in m)v[b]=m[b];return v}function d(v,m){return y({},v,m)}l.util.object={extend:y,clone:d},l.util.object.extend(l.util,l.Observable)}(),function(){function y(p){return p.replace(/-+(.)?/g,function(h,b){return b?b.toUpperCase():""})}function d(p,h){return p.charAt(0).toUpperCase()+(h?p.slice(1):p.slice(1).toLowerCase())}function v(p){return p.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function m(p){var h=0,b,w=[];for(h=0,b;h<p.length;h++)(b=f(p,h))!==!1&&w.push(b);return w}function f(p,h){var b=p.charCodeAt(h);if(isNaN(b))return"";if(b<55296||b>57343)return p.charAt(h);if(55296<=b&&b<=56319){if(p.length<=h+1)throw"High surrogate without following low surrogate";var w=p.charCodeAt(h+1);if(56320>w||w>57343)throw"High surrogate without following low surrogate";return p.charAt(h)+p.charAt(h+1)}if(h===0)throw"Low surrogate without preceding high surrogate";var k=p.charCodeAt(h-1);if(55296>k||k>56319)throw"Low surrogate without preceding high surrogate";return!1}l.util.string={camelize:y,capitalize:d,escapeXml:v,graphemeSplit:m}}(),function(){var y=Array.prototype.slice,d=function(){},v=function(){for(var b in{toString:1})if(b==="toString")return!1;return!0}(),m=function(b,w,k){for(var $ in w)$ in b.prototype&&typeof b.prototype[$]=="function"&&(w[$]+"").indexOf("callSuper")>-1?b.prototype[$]=function(E){return function(){var N=this.constructor.superclass;this.constructor.superclass=k;var j=w[E].apply(this,arguments);if(this.constructor.superclass=N,E!=="initialize")return j}}($):b.prototype[$]=w[$],v&&(w.toString!==Object.prototype.toString&&(b.prototype.toString=w.toString),w.valueOf!==Object.prototype.valueOf&&(b.prototype.valueOf=w.valueOf))};function f(){}function p(b){for(var w=null,k=this;k.constructor.superclass;){var $=k.constructor.superclass.prototype[b];if(k[b]!==$){w=$;break}k=k.constructor.superclass.prototype}return w?arguments.length>1?w.apply(this,y.call(arguments,1)):w.call(this):console.log("tried to callSuper "+b+", method not found in prototype chain",this)}function h(){var b=null,w=y.call(arguments,0);typeof w[0]=="function"&&(b=w.shift());function k(){this.initialize.apply(this,arguments)}k.superclass=b,k.subclasses=[],b&&(f.prototype=b.prototype,k.prototype=new f,b.subclasses.push(k));for(var $=0,E=w.length;$<E;$++)m(k,w[$],b);return k.prototype.initialize||(k.prototype.initialize=d),k.prototype.constructor=k,k.prototype.callSuper=p,k}l.util.createClass=h}(),function(){var y=!!l.document.createElement("div").attachEvent,d=["touchstart","touchmove","touchend"];l.util.addListener=function(m,f,p,h){m&&m.addEventListener(f,p,y?!1:h)},l.util.removeListener=function(m,f,p,h){m&&m.removeEventListener(f,p,y?!1:h)};function v(m){var f=m.changedTouches;return f&&f[0]?f[0]:m}l.util.getPointer=function(m){var f=m.target,p=l.util.getScrollLeftTop(f),h=v(m);return{x:h.clientX+p.left,y:h.clientY+p.top}},l.util.isTouchEvent=function(m){return d.indexOf(m.type)>-1||m.pointerType==="touch"}}(),function(){function y(h,b){var w=h.style;if(!w)return h;if(typeof b=="string")return h.style.cssText+=";"+b,b.indexOf("opacity")>-1?p(h,b.match(/opacity:\s*(\d?\.?\d*)/)[1]):h;for(var k in b)if(k==="opacity")p(h,b[k]);else{var $=k==="float"||k==="cssFloat"?typeof w.styleFloat>"u"?"cssFloat":"styleFloat":k;w[$]=b[k]}return h}var d=l.document.createElement("div"),v=typeof d.style.opacity=="string",m=typeof d.style.filter=="string",f=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,p=function(h){return h};v?p=function(h,b){return h.style.opacity=b,h}:m&&(p=function(h,b){var w=h.style;return h.currentStyle&&!h.currentStyle.hasLayout&&(w.zoom=1),f.test(w.filter)?(b=b>=.9999?"":"alpha(opacity="+b*100+")",w.filter=w.filter.replace(f,b)):w.filter+=" alpha(opacity="+b*100+")",h}),l.util.setStyle=y}(),function(){var y=Array.prototype.slice;function d(j){return typeof j=="string"?l.document.getElementById(j):j}var v,m=function(j){return y.call(j,0)};try{v=m(l.document.childNodes)instanceof Array}catch{}v||(m=function(j){for(var z=new Array(j.length),V=j.length;V--;)z[V]=j[V];return z});function f(j,z){var V=l.document.createElement(j);for(var W in z)W==="class"?V.className=z[W]:W==="for"?V.htmlFor=z[W]:V.setAttribute(W,z[W]);return V}function p(j,z){j&&(" "+j.className+" ").indexOf(" "+z+" ")===-1&&(j.className+=(j.className?" ":"")+z)}function h(j,z,V){return typeof z=="string"&&(z=f(z,V)),j.parentNode&&j.parentNode.replaceChild(z,j),z.appendChild(j),z}function b(j){for(var z=0,V=0,W=l.document.documentElement,H=l.document.body||{scrollLeft:0,scrollTop:0};j&&(j.parentNode||j.host)&&(j=j.parentNode||j.host,j===l.document?(z=H.scrollLeft||W.scrollLeft||0,V=H.scrollTop||W.scrollTop||0):(z+=j.scrollLeft||0,V+=j.scrollTop||0),!(j.nodeType===1&&j.style.position==="fixed")););return{left:z,top:V}}function w(j){var z,V=j&&j.ownerDocument,W={left:0,top:0},H={left:0,top:0},U,Q={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!V)return H;for(var q in Q)H[Q[q]]+=parseInt(k(j,q),10)||0;return z=V.documentElement,typeof j.getBoundingClientRect<"u"&&(W=j.getBoundingClientRect()),U=b(j),{left:W.left+U.left-(z.clientLeft||0)+H.left,top:W.top+U.top-(z.clientTop||0)+H.top}}var k;l.document.defaultView&&l.document.defaultView.getComputedStyle?k=function(j,z){var V=l.document.defaultView.getComputedStyle(j,null);return V?V[z]:void 0}:k=function(j,z){var V=j.style[z];return!V&&j.currentStyle&&(V=j.currentStyle[z]),V},function(){var j=l.document.documentElement.style,z="userSelect"in j?"userSelect":"MozUserSelect"in j?"MozUserSelect":"WebkitUserSelect"in j?"WebkitUserSelect":"KhtmlUserSelect"in j?"KhtmlUserSelect":"";function V(H){return typeof H.onselectstart<"u"&&(H.onselectstart=l.util.falseFunction),z?H.style[z]="none":typeof H.unselectable=="string"&&(H.unselectable="on"),H}function W(H){return typeof H.onselectstart<"u"&&(H.onselectstart=null),z?H.style[z]="":typeof H.unselectable=="string"&&(H.unselectable=""),H}l.util.makeElementUnselectable=V,l.util.makeElementSelectable=W}();function $(j){var z=l.jsdomImplForWrapper(j);return z._canvas||z._image}function E(j){if(l.isLikelyNode){var z=l.jsdomImplForWrapper(j);z&&(z._image=null,z._canvas=null,z._currentSrc=null,z._attributes=null,z._classList=null)}}function N(j,z){j.imageSmoothingEnabled=j.imageSmoothingEnabled||j.webkitImageSmoothingEnabled||j.mozImageSmoothingEnabled||j.msImageSmoothingEnabled||j.oImageSmoothingEnabled,j.imageSmoothingEnabled=z}l.util.setImageSmoothing=N,l.util.getById=d,l.util.toArray=m,l.util.addClass=p,l.util.makeElement=f,l.util.wrapElement=h,l.util.getScrollLeftTop=b,l.util.getElementOffset=w,l.util.getNodeCanvas=$,l.util.cleanUpJsdomNode=E}(),function(){function y(m,f){return m+(/\?/.test(m)?"&":"?")+f}function d(){}function v(m,f){f||(f={});var p=f.method?f.method.toUpperCase():"GET",h=f.onComplete||function(){},b=new l.window.XMLHttpRequest,w=f.body||f.parameters;return b.onreadystatechange=function(){b.readyState===4&&(h(b),b.onreadystatechange=d)},p==="GET"&&(w=null,typeof f.parameters=="string"&&(m=y(m,f.parameters))),b.open(p,m,!0),(p==="POST"||p==="PUT")&&b.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),b.send(w),b}l.util.request=v}(),l.log=console.log,l.warn=console.warn,function(){function y(){return!1}function d(b,w,k,$){return-k*Math.cos(b/$*(Math.PI/2))+k+w}function v(b){var w=!1;return p(function(k){b||(b={});var $=k||+new Date,E=b.duration||500,N=$+E,j,z=b.onChange||y,V=b.abort||y,W=b.onComplete||y,H=b.easing||d,U="startValue"in b?b.startValue:0,Q="endValue"in b?b.endValue:100,q=b.byValue||Q-U;b.onStart&&b.onStart(),function ae(ne){j=ne||+new Date;var be=j>N?E:j-$,te=be/E,Ie=H(be,U,q,E),$e=Math.abs((Ie-U)/q);if(!w){if(V(Ie,$e,te)){W(Q,1,1);return}if(j>N){z(Q,1,1),W(Q,1,1);return}else z(Ie,$e,te),p(ae)}}($)}),function(){w=!0}}var m=l.window.requestAnimationFrame||l.window.webkitRequestAnimationFrame||l.window.mozRequestAnimationFrame||l.window.oRequestAnimationFrame||l.window.msRequestAnimationFrame||function(b){return l.window.setTimeout(b,1e3/60)},f=l.window.cancelAnimationFrame||l.window.clearTimeout;function p(){return m.apply(l.window,arguments)}function h(){return f.apply(l.window,arguments)}l.util.animate=v,l.util.requestAnimFrame=p,l.util.cancelAnimFrame=h}(),function(){function y(v,m,f){var p="rgba("+parseInt(v[0]+f*(m[0]-v[0]),10)+","+parseInt(v[1]+f*(m[1]-v[1]),10)+","+parseInt(v[2]+f*(m[2]-v[2]),10);return p+=","+(v&&m?parseFloat(v[3]+f*(m[3]-v[3])):1),p+=")",p}function d(v,m,f,p){var h=new l.Color(v).getSource(),b=new l.Color(m).getSource(),w=p.onComplete,k=p.onChange;return p=p||{},l.util.animate(l.util.object.extend(p,{duration:f||500,startValue:h,endValue:b,byValue:b,easing:function($,E,N,j){var z=p.colorEasing?p.colorEasing($,j):1-Math.cos($/j*(Math.PI/2));return y(E,N,z)},onComplete:function($,E,N){if(w)return w(y(b,b,0),E,N)},onChange:function($,E,N){if(k){if(Array.isArray($))return k(y($,$,0),E,N);k($,E,N)}}}))}l.util.animateColor=d}(),function(){function y(ge,Se,fe,pe){return ge<Math.abs(Se)?(ge=Se,pe=fe/4):Se===0&&ge===0?pe=fe/(2*Math.PI)*Math.asin(1):pe=fe/(2*Math.PI)*Math.asin(Se/ge),{a:ge,c:Se,p:fe,s:pe}}function d(ge,Se,fe){return ge.a*Math.pow(2,10*(Se-=1))*Math.sin((Se*fe-ge.s)*(2*Math.PI)/ge.p)}function v(ge,Se,fe,pe){return fe*((ge=ge/pe-1)*ge*ge+1)+Se}function m(ge,Se,fe,pe){return ge/=pe/2,ge<1?fe/2*ge*ge*ge+Se:fe/2*((ge-=2)*ge*ge+2)+Se}function f(ge,Se,fe,pe){return fe*(ge/=pe)*ge*ge*ge+Se}function p(ge,Se,fe,pe){return-fe*((ge=ge/pe-1)*ge*ge*ge-1)+Se}function h(ge,Se,fe,pe){return ge/=pe/2,ge<1?fe/2*ge*ge*ge*ge+Se:-fe/2*((ge-=2)*ge*ge*ge-2)+Se}function b(ge,Se,fe,pe){return fe*(ge/=pe)*ge*ge*ge*ge+Se}function w(ge,Se,fe,pe){return fe*((ge=ge/pe-1)*ge*ge*ge*ge+1)+Se}function k(ge,Se,fe,pe){return ge/=pe/2,ge<1?fe/2*ge*ge*ge*ge*ge+Se:fe/2*((ge-=2)*ge*ge*ge*ge+2)+Se}function $(ge,Se,fe,pe){return-fe*Math.cos(ge/pe*(Math.PI/2))+fe+Se}function E(ge,Se,fe,pe){return fe*Math.sin(ge/pe*(Math.PI/2))+Se}function N(ge,Se,fe,pe){return-fe/2*(Math.cos(Math.PI*ge/pe)-1)+Se}function j(ge,Se,fe,pe){return ge===0?Se:fe*Math.pow(2,10*(ge/pe-1))+Se}function z(ge,Se,fe,pe){return ge===pe?Se+fe:fe*(-Math.pow(2,-10*ge/pe)+1)+Se}function V(ge,Se,fe,pe){return ge===0?Se:ge===pe?Se+fe:(ge/=pe/2,ge<1?fe/2*Math.pow(2,10*(ge-1))+Se:fe/2*(-Math.pow(2,-10*--ge)+2)+Se)}function W(ge,Se,fe,pe){return-fe*(Math.sqrt(1-(ge/=pe)*ge)-1)+Se}function H(ge,Se,fe,pe){return fe*Math.sqrt(1-(ge=ge/pe-1)*ge)+Se}function U(ge,Se,fe,pe){return ge/=pe/2,ge<1?-fe/2*(Math.sqrt(1-ge*ge)-1)+Se:fe/2*(Math.sqrt(1-(ge-=2)*ge)+1)+Se}function Q(ge,Se,fe,pe){var je=1.70158,Y=0,Z=fe;if(ge===0)return Se;if(ge/=pe,ge===1)return Se+fe;Y||(Y=pe*.3);var ee=y(Z,fe,Y,je);return-d(ee,ge,pe)+Se}function q(ge,Se,fe,pe){var je=1.70158,Y=0,Z=fe;if(ge===0)return Se;if(ge/=pe,ge===1)return Se+fe;Y||(Y=pe*.3);var ee=y(Z,fe,Y,je);return ee.a*Math.pow(2,-10*ge)*Math.sin((ge*pe-ee.s)*(2*Math.PI)/ee.p)+ee.c+Se}function ae(ge,Se,fe,pe){var je=1.70158,Y=0,Z=fe;if(ge===0)return Se;if(ge/=pe/2,ge===2)return Se+fe;Y||(Y=pe*.44999999999999996);var ee=y(Z,fe,Y,je);return ge<1?-.5*d(ee,ge,pe)+Se:ee.a*Math.pow(2,-10*(ge-=1))*Math.sin((ge*pe-ee.s)*(2*Math.PI)/ee.p)*.5+ee.c+Se}function ne(ge,Se,fe,pe,je){return je===void 0&&(je=1.70158),fe*(ge/=pe)*ge*((je+1)*ge-je)+Se}function be(ge,Se,fe,pe,je){return je===void 0&&(je=1.70158),fe*((ge=ge/pe-1)*ge*((je+1)*ge+je)+1)+Se}function te(ge,Se,fe,pe,je){return je===void 0&&(je=1.70158),ge/=pe/2,ge<1?fe/2*(ge*ge*(((je*=1.525)+1)*ge-je))+Se:fe/2*((ge-=2)*ge*(((je*=1.525)+1)*ge+je)+2)+Se}function Ie(ge,Se,fe,pe){return fe-$e(pe-ge,0,fe,pe)+Se}function $e(ge,Se,fe,pe){return(ge/=pe)<.36363636363636365?fe*(7.5625*ge*ge)+Se:ge<.7272727272727273?fe*(7.5625*(ge-=.5454545454545454)*ge+.75)+Se:ge<.9090909090909091?fe*(7.5625*(ge-=.8181818181818182)*ge+.9375)+Se:fe*(7.5625*(ge-=.9545454545454546)*ge+.984375)+Se}function Me(ge,Se,fe,pe){return ge<pe/2?Ie(ge*2,0,fe,pe)*.5+Se:$e(ge*2-pe,0,fe,pe)*.5+fe*.5+Se}l.util.ease={easeInQuad:function(ge,Se,fe,pe){return fe*(ge/=pe)*ge+Se},easeOutQuad:function(ge,Se,fe,pe){return-fe*(ge/=pe)*(ge-2)+Se},easeInOutQuad:function(ge,Se,fe,pe){return ge/=pe/2,ge<1?fe/2*ge*ge+Se:-fe/2*(--ge*(ge-2)-1)+Se},easeInCubic:function(ge,Se,fe,pe){return fe*(ge/=pe)*ge*ge+Se},easeOutCubic:v,easeInOutCubic:m,easeInQuart:f,easeOutQuart:p,easeInOutQuart:h,easeInQuint:b,easeOutQuint:w,easeInOutQuint:k,easeInSine:$,easeOutSine:E,easeInOutSine:N,easeInExpo:j,easeOutExpo:z,easeInOutExpo:V,easeInCirc:W,easeOutCirc:H,easeInOutCirc:U,easeInElastic:Q,easeOutElastic:q,easeInOutElastic:ae,easeInBack:ne,easeOutBack:be,easeInOutBack:te,easeInBounce:Ie,easeOutBounce:$e,easeInOutBounce:Me}}(),function(y){var d=y.fabric||(y.fabric={}),v=d.util.object.extend,m=d.util.object.clone,f=d.util.toFixed,p=d.util.parseUnit,h=d.util.multiplyTransformMatrices,b=["path","circle","polygon","polyline","ellipse","rect","line","image","text"],w=["symbol","image","marker","pattern","view","svg"],k=["pattern","defs","symbol","metadata","clipPath","mask","desc"],$=["symbol","g","a","svg","clipPath","defs"],E={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},N={stroke:"strokeOpacity",fill:"fillOpacity"},j="font-size",z="clip-path";d.svgValidTagNamesRegEx=H(b),d.svgViewBoxElementsRegEx=H(w),d.svgInvalidAncestorsRegEx=H(k),d.svgValidParentsRegEx=H($),d.cssRules={},d.gradientDefs={},d.clipPaths={};function V(Y){return Y in E?E[Y]:Y}function W(Y,Z,ee,ce){var xe=Object.prototype.toString.call(Z)==="[object Array]",re;if((Y==="fill"||Y==="stroke")&&Z==="none")Z="";else{if(Y==="strokeUniform")return Z==="non-scaling-stroke";if(Y==="strokeDashArray")Z==="none"?Z=null:Z=Z.replace(/,/g," ").split(/\s+/).map(parseFloat);else if(Y==="transformMatrix")ee&&ee.transformMatrix?Z=h(ee.transformMatrix,d.parseTransformAttribute(Z)):Z=d.parseTransformAttribute(Z);else if(Y==="visible")Z=Z!=="none"&&Z!=="hidden",ee&&ee.visible===!1&&(Z=!1);else if(Y==="opacity")Z=parseFloat(Z),ee&&typeof ee.opacity<"u"&&(Z*=ee.opacity);else if(Y==="textAnchor")Z=Z==="start"?"left":Z==="end"?"right":"center";else if(Y==="charSpacing")re=p(Z,ce)/ce*1e3;else if(Y==="paintFirst"){var le=Z.indexOf("fill"),ve=Z.indexOf("stroke"),Z="fill";(le>-1&&ve>-1&&ve<le||le===-1&&ve>-1)&&(Z="stroke")}else{if(Y==="href"||Y==="xlink:href"||Y==="font")return Z;if(Y==="imageSmoothing")return Z==="optimizeQuality";re=xe?Z.map(p):p(Z,ce)}}return!xe&&isNaN(re)?Z:re}function H(Y){return new RegExp("^("+Y.join("|")+")\\b","i")}function U(Y){for(var Z in N)if(!(typeof Y[N[Z]]>"u"||Y[Z]==="")){if(typeof Y[Z]>"u"){if(!d.Object.prototype[Z])continue;Y[Z]=d.Object.prototype[Z]}if(Y[Z].indexOf("url(")!==0){var ee=new d.Color(Y[Z]);Y[Z]=ee.setAlpha(f(ee.getAlpha()*Y[N[Z]],2)).toRgba()}}return Y}function Q(Y,Z){var ee,ce=[],xe,re,le;for(re=0,le=Z.length;re<le;re++)ee=Z[re],xe=Y.getElementsByTagName(ee),ce=ce.concat(Array.prototype.slice.call(xe));return ce}d.parseTransformAttribute=function(){function Y(Xe,yt){var Et=d.util.cos(yt[0]),nt=d.util.sin(yt[0]),St=0,bt=0;yt.length===3&&(St=yt[1],bt=yt[2]),Xe[0]=Et,Xe[1]=nt,Xe[2]=-nt,Xe[3]=Et,Xe[4]=St-(Et*St-nt*bt),Xe[5]=bt-(nt*St+Et*bt)}function Z(Xe,yt){var Et=yt[0],nt=yt.length===2?yt[1]:yt[0];Xe[0]=Et,Xe[3]=nt}function ee(Xe,yt,Et){Xe[Et]=Math.tan(d.util.degreesToRadians(yt[0]))}function ce(Xe,yt){Xe[4]=yt[0],yt.length===2&&(Xe[5]=yt[1])}var xe=d.iMatrix,re=d.reNum,le=d.commaWsp,ve="(?:(skewX)\\s*\\(\\s*("+re+")\\s*\\))",De="(?:(skewY)\\s*\\(\\s*("+re+")\\s*\\))",Ee="(?:(rotate)\\s*\\(\\s*("+re+")(?:"+le+"("+re+")"+le+"("+re+"))?\\s*\\))",we="(?:(scale)\\s*\\(\\s*("+re+")(?:"+le+"("+re+"))?\\s*\\))",me="(?:(translate)\\s*\\(\\s*("+re+")(?:"+le+"("+re+"))?\\s*\\))",Ae="(?:(matrix)\\s*\\(\\s*("+re+")"+le+"("+re+")"+le+"("+re+")"+le+"("+re+")"+le+"("+re+")"+le+"("+re+")\\s*\\))",Fe="(?:"+Ae+"|"+me+"|"+we+"|"+Ee+"|"+ve+"|"+De+")",Ne="(?:"+Fe+"(?:"+le+"*"+Fe+")*)",ze="^\\s*(?:"+Ne+"?)\\s*$",Ue=new RegExp(ze),et=new RegExp(Fe,"g");return function(Xe){var yt=xe.concat(),Et=[];if(!Xe||Xe&&!Ue.test(Xe))return yt;Xe.replace(et,function(St){var bt=new RegExp(Fe).exec(St).filter(function(Rt){return!!Rt}),It=bt[1],Mt=bt.slice(2).map(parseFloat);switch(It){case"translate":ce(yt,Mt);break;case"rotate":Mt[0]=d.util.degreesToRadians(Mt[0]),Y(yt,Mt);break;case"scale":Z(yt,Mt);break;case"skewX":ee(yt,Mt,2);break;case"skewY":ee(yt,Mt,1);break;case"matrix":yt=Mt;break}Et.push(yt.concat()),yt=xe.concat()});for(var nt=Et[0];Et.length>1;)Et.shift(),nt=d.util.multiplyTransformMatrices(nt,Et[0]);return nt}}();function q(Y,Z){var ee,ce;Y.replace(/;\s*$/,"").split(";").forEach(function(xe){var re=xe.split(":");ee=re[0].trim().toLowerCase(),ce=re[1].trim(),Z[ee]=ce})}function ae(Y,Z){var ee,ce;for(var xe in Y)typeof Y[xe]>"u"||(ee=xe.toLowerCase(),ce=Y[xe],Z[ee]=ce)}function ne(Y,Z){var ee={};for(var ce in d.cssRules[Z])if(be(Y,ce.split(" ")))for(var xe in d.cssRules[Z][ce])ee[xe]=d.cssRules[Z][ce][xe];return ee}function be(Y,Z){var ee,ce=!0;return ee=Ie(Y,Z.pop()),ee&&Z.length&&(ce=te(Y,Z)),ee&&ce&&Z.length===0}function te(Y,Z){for(var ee,ce=!0;Y.parentNode&&Y.parentNode.nodeType===1&&Z.length;)ce&&(ee=Z.pop()),Y=Y.parentNode,ce=Ie(Y,ee);return Z.length===0}function Ie(Y,Z){var ee=Y.nodeName,ce=Y.getAttribute("class"),xe=Y.getAttribute("id"),re,le;if(re=new RegExp("^"+ee,"i"),Z=Z.replace(re,""),xe&&Z.length&&(re=new RegExp("#"+xe+"(?![a-zA-Z\\-]+)","i"),Z=Z.replace(re,"")),ce&&Z.length)for(ce=ce.split(" "),le=ce.length;le--;)re=new RegExp("\\."+ce[le]+"(?![a-zA-Z\\-]+)","i"),Z=Z.replace(re,"");return Z.length===0}function $e(Y,Z){var ee;if(Y.getElementById&&(ee=Y.getElementById(Z)),ee)return ee;var ce,xe,re,le=Y.getElementsByTagName("*");for(xe=0,re=le.length;xe<re;xe++)if(ce=le[xe],Z===ce.getAttribute("id"))return ce}function Me(Y){for(var Z=Q(Y,["use","svg:use"]),ee=0;Z.length&&ee<Z.length;){var ce=Z[ee],xe=ce.getAttribute("xlink:href")||ce.getAttribute("href");if(xe===null)return;var re=xe.substr(1),le=ce.getAttribute("x")||0,ve=ce.getAttribute("y")||0,De=$e(Y,re).cloneNode(!0),Ee=(De.getAttribute("transform")||"")+" translate("+le+", "+ve+")",we,me=Z.length,Ae,Fe,Ne,ze,Ue=d.svgNS;if(Se(De),/^svg$/i.test(De.nodeName)){var et=De.ownerDocument.createElementNS(Ue,"g");for(Fe=0,Ne=De.attributes,ze=Ne.length;Fe<ze;Fe++)Ae=Ne.item(Fe),et.setAttributeNS(Ue,Ae.nodeName,Ae.nodeValue);for(;De.firstChild;)et.appendChild(De.firstChild);De=et}for(Fe=0,Ne=ce.attributes,ze=Ne.length;Fe<ze;Fe++)Ae=Ne.item(Fe),!(Ae.nodeName==="x"||Ae.nodeName==="y"||Ae.nodeName==="xlink:href"||Ae.nodeName==="href")&&(Ae.nodeName==="transform"?Ee=Ae.nodeValue+" "+Ee:De.setAttribute(Ae.nodeName,Ae.nodeValue));De.setAttribute("transform",Ee),De.setAttribute("instantiated_by_use","1"),De.removeAttribute("id"),we=ce.parentNode,we.replaceChild(De,ce),Z.length===me&&ee++}}var ge=new RegExp("^\\s*("+d.reNum+"+)\\s*,?\\s*("+d.reNum+"+)\\s*,?\\s*("+d.reNum+"+)\\s*,?\\s*("+d.reNum+"+)\\s*$");function Se(Y){if(!d.svgViewBoxElementsRegEx.test(Y.nodeName))return{};var Z=Y.getAttribute("viewBox"),ee=1,ce=1,xe=0,re=0,le,ve,De,Ee,we=Y.getAttribute("width"),me=Y.getAttribute("height"),Ae=Y.getAttribute("x")||0,Fe=Y.getAttribute("y")||0,Ne=Y.getAttribute("preserveAspectRatio")||"",ze=!Z||!(Z=Z.match(ge)),Ue=!we||!me||we==="100%"||me==="100%",et=ze&&Ue,Xe={},yt="",Et=0,nt=0;if(Xe.width=0,Xe.height=0,Xe.toBeParsed=et,ze&&(Ae||Fe)&&Y.parentNode&&Y.parentNode.nodeName!=="#document"&&(yt=" translate("+p(Ae)+" "+p(Fe)+") ",De=(Y.getAttribute("transform")||"")+yt,Y.setAttribute("transform",De),Y.removeAttribute("x"),Y.removeAttribute("y")),et)return Xe;if(ze)return Xe.width=p(we),Xe.height=p(me),Xe;if(xe=-parseFloat(Z[1]),re=-parseFloat(Z[2]),le=parseFloat(Z[3]),ve=parseFloat(Z[4]),Xe.minX=xe,Xe.minY=re,Xe.viewBoxWidth=le,Xe.viewBoxHeight=ve,Ue?(Xe.width=le,Xe.height=ve):(Xe.width=p(we),Xe.height=p(me),ee=Xe.width/le,ce=Xe.height/ve),Ne=d.util.parsePreserveAspectRatioAttribute(Ne),Ne.alignX!=="none"&&(Ne.meetOrSlice==="meet"&&(ce=ee=ee>ce?ce:ee),Ne.meetOrSlice==="slice"&&(ce=ee=ee>ce?ee:ce),Et=Xe.width-le*ee,nt=Xe.height-ve*ee,Ne.alignX==="Mid"&&(Et/=2),Ne.alignY==="Mid"&&(nt/=2),Ne.alignX==="Min"&&(Et=0),Ne.alignY==="Min"&&(nt=0)),ee===1&&ce===1&&xe===0&&re===0&&Ae===0&&Fe===0)return Xe;if((Ae||Fe)&&Y.parentNode.nodeName!=="#document"&&(yt=" translate("+p(Ae)+" "+p(Fe)+") "),De=yt+" matrix("+ee+" 0 0 "+ce+" "+(xe*ee+Et)+" "+(re*ce+nt)+") ",Y.nodeName==="svg"){for(Ee=Y.ownerDocument.createElementNS(d.svgNS,"g");Y.firstChild;)Ee.appendChild(Y.firstChild);Y.appendChild(Ee)}else Ee=Y,Ee.removeAttribute("x"),Ee.removeAttribute("y"),De=Ee.getAttribute("transform")+De;return Ee.setAttribute("transform",De),Xe}function fe(Y,Z){for(;Y&&(Y=Y.parentNode);)if(Y.nodeName&&Z.test(Y.nodeName.replace("svg:",""))&&!Y.getAttribute("instantiated_by_use"))return!0;return!1}d.parseSVGDocument=function(Y,Z,ee,ce){if(Y){Me(Y);var xe=d.Object.__uid++,re,le,ve=Se(Y),De=d.util.toArray(Y.getElementsByTagName("*"));if(ve.crossOrigin=ce&&ce.crossOrigin,ve.svgUid=xe,De.length===0&&d.isLikelyNode){De=Y.selectNodes('//*[name(.)!="svg"]');var Ee=[];for(re=0,le=De.length;re<le;re++)Ee[re]=De[re];De=Ee}var we=De.filter(function(Ae){return Se(Ae),d.svgValidTagNamesRegEx.test(Ae.nodeName.replace("svg:",""))&&!fe(Ae,d.svgInvalidAncestorsRegEx)});if(!we||we&&!we.length){Z&&Z([],{});return}var me={};De.filter(function(Ae){return Ae.nodeName.replace("svg:","")==="clipPath"}).forEach(function(Ae){var Fe=Ae.getAttribute("id");me[Fe]=d.util.toArray(Ae.getElementsByTagName("*")).filter(function(Ne){return d.svgValidTagNamesRegEx.test(Ne.nodeName.replace("svg:",""))})}),d.gradientDefs[xe]=d.getGradientDefs(Y),d.cssRules[xe]=d.getCSSRules(Y),d.clipPaths[xe]=me,d.parseElements(we,function(Ae,Fe){Z&&(Z(Ae,ve,Fe,De),delete d.gradientDefs[xe],delete d.cssRules[xe],delete d.clipPaths[xe])},m(ve),ee,ce)}};function pe(Y,Z){var ee=["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"],ce="xlink:href",xe=Z.getAttribute(ce).substr(1),re=$e(Y,xe);if(re&&re.getAttribute(ce)&&pe(Y,re),ee.forEach(function(ve){re&&!Z.hasAttribute(ve)&&re.hasAttribute(ve)&&Z.setAttribute(ve,re.getAttribute(ve))}),!Z.children.length)for(var le=re.cloneNode(!0);le.firstChild;)Z.appendChild(le.firstChild);Z.removeAttribute(ce)}var je=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+d.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+d.reNum+"))?\\s+(.*)");v(d,{parseFontDeclaration:function(Y,Z){var ee=Y.match(je);if(ee){var ce=ee[1],xe=ee[3],re=ee[4],le=ee[5],ve=ee[6];ce&&(Z.fontStyle=ce),xe&&(Z.fontWeight=isNaN(parseFloat(xe))?xe:parseFloat(xe)),re&&(Z.fontSize=p(re)),ve&&(Z.fontFamily=ve),le&&(Z.lineHeight=le==="normal"?1:le)}},getGradientDefs:function(Y){var Z=["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"],ee=Q(Y,Z),ce,xe=0,re={};for(xe=ee.length;xe--;)ce=ee[xe],ce.getAttribute("xlink:href")&&pe(Y,ce),re[ce.getAttribute("id")]=ce;return re},parseAttributes:function(Y,Z,ee){if(Y){var ce,xe={},re,le;typeof ee>"u"&&(ee=Y.getAttribute("svgUid")),Y.parentNode&&d.svgValidParentsRegEx.test(Y.parentNode.nodeName)&&(xe=d.parseAttributes(Y.parentNode,Z,ee));var ve=Z.reduce(function(Ne,ze){return ce=Y.getAttribute(ze),ce&&(Ne[ze]=ce),Ne},{}),De=v(ne(Y,ee),d.parseStyleAttribute(Y));ve=v(ve,De),De[z]&&Y.setAttribute(z,De[z]),re=le=xe.fontSize||d.Text.DEFAULT_SVG_FONT_SIZE,ve[j]&&(ve[j]=re=p(ve[j],le));var Ee,we,me={};for(var Ae in ve)Ee=V(Ae),we=W(Ee,ve[Ae],xe,re),me[Ee]=we;me&&me.font&&d.parseFontDeclaration(me.font,me);var Fe=v(xe,me);return d.svgValidParentsRegEx.test(Y.nodeName)?Fe:U(Fe)}},parseElements:function(Y,Z,ee,ce,xe){new d.ElementsParser(Y,Z,ee,ce,xe).parse()},parseStyleAttribute:function(Y){var Z={},ee=Y.getAttribute("style");return ee&&(typeof ee=="string"?q(ee,Z):ae(ee,Z)),Z},parsePointsAttribute:function(Y){if(!Y)return null;Y=Y.replace(/,/g," ").trim(),Y=Y.split(/\s+/);var Z=[],ee,ce;for(ee=0,ce=Y.length;ee<ce;ee+=2)Z.push({x:parseFloat(Y[ee]),y:parseFloat(Y[ee+1])});return Z},getCSSRules:function(Y){var Z=Y.getElementsByTagName("style"),ee,ce,xe={},re;for(ee=0,ce=Z.length;ee<ce;ee++){var le=Z[ee].textContent;le=le.replace(/\/\*[\s\S]*?\*\//g,""),le.trim()!==""&&(re=le.match(/[^{]*\{[\s\S]*?\}/g),re=re.map(function(ve){return ve.trim()}),re.forEach(function(ve){var De=ve.match(/([\s\S]*?)\s*\{([^}]*)\}/),Ee={},we=De[2].trim(),me=we.replace(/;$/,"").split(/\s*;\s*/);for(ee=0,ce=me.length;ee<ce;ee++){var Ae=me[ee].split(/\s*:\s*/),Fe=Ae[0],Ne=Ae[1];Ee[Fe]=Ne}ve=De[1],ve.split(",").forEach(function(ze){ze=ze.replace(/^svg/i,"").trim(),ze!==""&&(xe[ze]?d.util.object.extend(xe[ze],Ee):xe[ze]=d.util.object.clone(Ee))})}))}return xe},loadSVGFromURL:function(Y,Z,ee,ce){Y=Y.replace(/^\n\s*/,"").trim(),new d.util.request(Y,{method:"get",onComplete:xe});function xe(re){var le=re.responseXML;if(!le||!le.documentElement)return Z&&Z(null),!1;d.parseSVGDocument(le.documentElement,function(ve,De,Ee,we){Z&&Z(ve,De,Ee,we)},ee,ce)}},loadSVGFromString:function(Y,Z,ee,ce){var xe=new d.window.DOMParser,re=xe.parseFromString(Y.trim(),"text/xml");d.parseSVGDocument(re.documentElement,function(le,ve,De,Ee){Z(le,ve,De,Ee)},ee,ce)}})}(u),l.ElementsParser=function(y,d,v,m,f,p){this.elements=y,this.callback=d,this.options=v,this.reviver=m,this.svgUid=v&&v.svgUid||0,this.parsingOptions=f,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=p},function(y){y.parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},y.createObjects=function(){var d=this;this.elements.forEach(function(v,m){v.setAttribute("svgUid",d.svgUid),d.createObject(v,m)})},y.findTag=function(d){return l[l.util.string.capitalize(d.tagName.replace("svg:",""))]},y.createObject=function(d,v){var m=this.findTag(d);if(m&&m.fromElement)try{m.fromElement(d,this.createCallback(v,d),this.options)}catch(f){l.log(f)}else this.checkIfDone()},y.createCallback=function(d,v){var m=this;return function(f){var p;m.resolveGradient(f,v,"fill"),m.resolveGradient(f,v,"stroke"),f instanceof l.Image&&f._originalElement&&(p=f.parsePreserveAspectRatioAttribute(v)),f._removeTransformMatrix(p),m.resolveClipPath(f,v),m.reviver&&m.reviver(v,f),m.instances[d]=f,m.checkIfDone()}},y.extractPropertyDefinition=function(d,v,m){var f=d[v],p=this.regexUrl;if(p.test(f)){p.lastIndex=0;var h=p.exec(f)[1];return p.lastIndex=0,l[m][this.svgUid][h]}},y.resolveGradient=function(d,v,m){var f=this.extractPropertyDefinition(d,m,"gradientDefs");if(f){var p=v.getAttribute(m+"-opacity"),h=l.Gradient.fromElement(f,d,p,this.options);d.set(m,h)}},y.createClipPathCallback=function(d,v){return function(m){m._removeTransformMatrix(),m.fillRule=m.clipRule,v.push(m)}},y.resolveClipPath=function(d,v){var m=this.extractPropertyDefinition(d,"clipPath","clipPaths"),f,p,h,b,w,k;if(m){b=[],h=l.util.invertTransform(d.calcTransformMatrix());for(var $=m[0].parentNode,E=v;E.parentNode&&E.getAttribute("clip-path")!==d.clipPath;)E=E.parentNode;E.parentNode.appendChild($);for(var N=0;N<m.length;N++)f=m[N],p=this.findTag(f),p.fromElement(f,this.createClipPathCallback(d,b),this.options);b.length===1?m=b[0]:m=new l.Group(b),w=l.util.multiplyTransformMatrices(h,m.calcTransformMatrix()),m.clipPath&&this.resolveClipPath(m,E);var k=l.util.qrDecompose(w);m.flipX=!1,m.flipY=!1,m.set("scaleX",k.scaleX),m.set("scaleY",k.scaleY),m.angle=k.angle,m.skewX=k.skewX,m.skewY=0,m.setPositionByOrigin({x:k.translateX,y:k.translateY},"center","center"),d.clipPath=m}else delete d.clipPath},y.checkIfDone=function(){--this.numElements===0&&(this.instances=this.instances.filter(function(d){return d!=null}),this.callback(this.instances,this.elements))}}(l.ElementsParser.prototype),function(y){var d=y.fabric||(y.fabric={});if(d.Point){d.warn("fabric.Point is already defined");return}d.Point=v;function v(m,f){this.x=m,this.y=f}v.prototype={type:"point",constructor:v,add:function(m){return new v(this.x+m.x,this.y+m.y)},addEquals:function(m){return this.x+=m.x,this.y+=m.y,this},scalarAdd:function(m){return new v(this.x+m,this.y+m)},scalarAddEquals:function(m){return this.x+=m,this.y+=m,this},subtract:function(m){return new v(this.x-m.x,this.y-m.y)},subtractEquals:function(m){return this.x-=m.x,this.y-=m.y,this},scalarSubtract:function(m){return new v(this.x-m,this.y-m)},scalarSubtractEquals:function(m){return this.x-=m,this.y-=m,this},multiply:function(m){return new v(this.x*m,this.y*m)},multiplyEquals:function(m){return this.x*=m,this.y*=m,this},divide:function(m){return new v(this.x/m,this.y/m)},divideEquals:function(m){return this.x/=m,this.y/=m,this},eq:function(m){return this.x===m.x&&this.y===m.y},lt:function(m){return this.x<m.x&&this.y<m.y},lte:function(m){return this.x<=m.x&&this.y<=m.y},gt:function(m){return this.x>m.x&&this.y>m.y},gte:function(m){return this.x>=m.x&&this.y>=m.y},lerp:function(m,f){return typeof f>"u"&&(f=.5),f=Math.max(Math.min(1,f),0),new v(this.x+(m.x-this.x)*f,this.y+(m.y-this.y)*f)},distanceFrom:function(m){var f=this.x-m.x,p=this.y-m.y;return Math.sqrt(f*f+p*p)},midPointFrom:function(m){return this.lerp(m)},min:function(m){return new v(Math.min(this.x,m.x),Math.min(this.y,m.y))},max:function(m){return new v(Math.max(this.x,m.x),Math.max(this.y,m.y))},toString:function(){return this.x+","+this.y},setXY:function(m,f){return this.x=m,this.y=f,this},setX:function(m){return this.x=m,this},setY:function(m){return this.y=m,this},setFromPoint:function(m){return this.x=m.x,this.y=m.y,this},swap:function(m){var f=this.x,p=this.y;this.x=m.x,this.y=m.y,m.x=f,m.y=p},clone:function(){return new v(this.x,this.y)}}}(u),function(y){var d=y.fabric||(y.fabric={});if(d.Intersection){d.warn("fabric.Intersection is already defined");return}function v(m){this.status=m,this.points=[]}d.Intersection=v,d.Intersection.prototype={constructor:v,appendPoint:function(m){return this.points.push(m),this},appendPoints:function(m){return this.points=this.points.concat(m),this}},d.Intersection.intersectLineLine=function(m,f,p,h){var b,w=(h.x-p.x)*(m.y-p.y)-(h.y-p.y)*(m.x-p.x),k=(f.x-m.x)*(m.y-p.y)-(f.y-m.y)*(m.x-p.x),$=(h.y-p.y)*(f.x-m.x)-(h.x-p.x)*(f.y-m.y);if($!==0){var E=w/$,N=k/$;0<=E&&E<=1&&0<=N&&N<=1?(b=new v("Intersection"),b.appendPoint(new d.Point(m.x+E*(f.x-m.x),m.y+E*(f.y-m.y)))):b=new v}else w===0||k===0?b=new v("Coincident"):b=new v("Parallel");return b},d.Intersection.intersectLinePolygon=function(m,f,p){var h=new v,b=p.length,w,k,$,E;for(E=0;E<b;E++)w=p[E],k=p[(E+1)%b],$=v.intersectLineLine(m,f,w,k),h.appendPoints($.points);return h.points.length>0&&(h.status="Intersection"),h},d.Intersection.intersectPolygonPolygon=function(m,f){var p=new v,h=m.length,b;for(b=0;b<h;b++){var w=m[b],k=m[(b+1)%h],$=v.intersectLinePolygon(w,k,f);p.appendPoints($.points)}return p.points.length>0&&(p.status="Intersection"),p},d.Intersection.intersectPolygonRectangle=function(m,f,p){var h=f.min(p),b=f.max(p),w=new d.Point(b.x,h.y),k=new d.Point(h.x,b.y),$=v.intersectLinePolygon(h,w,m),E=v.intersectLinePolygon(w,b,m),N=v.intersectLinePolygon(b,k,m),j=v.intersectLinePolygon(k,h,m),z=new v;return z.appendPoints($.points),z.appendPoints(E.points),z.appendPoints(N.points),z.appendPoints(j.points),z.points.length>0&&(z.status="Intersection"),z}}(u),function(y){var d=y.fabric||(y.fabric={});if(d.Color){d.warn("fabric.Color is already defined.");return}function v(f){f?this._tryParsingColor(f):this.setSource([0,0,0,1])}d.Color=v,d.Color.prototype={_tryParsingColor:function(f){var p;f in v.colorNameMap&&(f=v.colorNameMap[f]),f==="transparent"&&(p=[255,255,255,0]),p||(p=v.sourceFromHex(f)),p||(p=v.sourceFromRgb(f)),p||(p=v.sourceFromHsl(f)),p||(p=[0,0,0,1]),p&&this.setSource(p)},_rgbToHsl:function(f,p,h){f/=255,p/=255,h/=255;var b,w,k,$=d.util.array.max([f,p,h]),E=d.util.array.min([f,p,h]);if(k=($+E)/2,$===E)b=w=0;else{var N=$-E;switch(w=k>.5?N/(2-$-E):N/($+E),$){case f:b=(p-h)/N+(p<h?6:0);break;case p:b=(h-f)/N+2;break;case h:b=(f-p)/N+4;break}b/=6}return[Math.round(b*360),Math.round(w*100),Math.round(k*100)]},getSource:function(){return this._source},setSource:function(f){this._source=f},toRgb:function(){var f=this.getSource();return"rgb("+f[0]+","+f[1]+","+f[2]+")"},toRgba:function(){var f=this.getSource();return"rgba("+f[0]+","+f[1]+","+f[2]+","+f[3]+")"},toHsl:function(){var f=this.getSource(),p=this._rgbToHsl(f[0],f[1],f[2]);return"hsl("+p[0]+","+p[1]+"%,"+p[2]+"%)"},toHsla:function(){var f=this.getSource(),p=this._rgbToHsl(f[0],f[1],f[2]);return"hsla("+p[0]+","+p[1]+"%,"+p[2]+"%,"+f[3]+")"},toHex:function(){var f=this.getSource(),p,h,b;return p=f[0].toString(16),p=p.length===1?"0"+p:p,h=f[1].toString(16),h=h.length===1?"0"+h:h,b=f[2].toString(16),b=b.length===1?"0"+b:b,p.toUpperCase()+h.toUpperCase()+b.toUpperCase()},toHexa:function(){var f=this.getSource(),p;return p=Math.round(f[3]*255),p=p.toString(16),p=p.length===1?"0"+p:p,this.toHex()+p.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(f){var p=this.getSource();return p[3]=f,this.setSource(p),this},toGrayscale:function(){var f=this.getSource(),p=parseInt((f[0]*.3+f[1]*.59+f[2]*.11).toFixed(0),10),h=f[3];return this.setSource([p,p,p,h]),this},toBlackWhite:function(f){var p=this.getSource(),h=(p[0]*.3+p[1]*.59+p[2]*.11).toFixed(0),b=p[3];return f=f||127,h=Number(h)<Number(f)?0:255,this.setSource([h,h,h,b]),this},overlayWith:function(f){f instanceof v||(f=new v(f));var p=[],h=this.getAlpha(),b=.5,w=this.getSource(),k=f.getSource(),$;for($=0;$<3;$++)p.push(Math.round(w[$]*(1-b)+k[$]*b));return p[3]=h,this.setSource(p),this}},d.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,d.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,d.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,d.Color.colorNameMap={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",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#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",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function m(f,p,h){return h<0&&(h+=1),h>1&&(h-=1),h<.16666666666666666?f+(p-f)*6*h:h<.5?p:h<.6666666666666666?f+(p-f)*(.6666666666666666-h)*6:f}d.Color.fromRgb=function(f){return v.fromSource(v.sourceFromRgb(f))},d.Color.sourceFromRgb=function(f){var p=f.match(v.reRGBa);if(p){var h=parseInt(p[1],10)/(/%$/.test(p[1])?100:1)*(/%$/.test(p[1])?255:1),b=parseInt(p[2],10)/(/%$/.test(p[2])?100:1)*(/%$/.test(p[2])?255:1),w=parseInt(p[3],10)/(/%$/.test(p[3])?100:1)*(/%$/.test(p[3])?255:1);return[parseInt(h,10),parseInt(b,10),parseInt(w,10),p[4]?parseFloat(p[4]):1]}},d.Color.fromRgba=v.fromRgb,d.Color.fromHsl=function(f){return v.fromSource(v.sourceFromHsl(f))},d.Color.sourceFromHsl=function(f){var p=f.match(v.reHSLa);if(p){var h=(parseFloat(p[1])%360+360)%360/360,b=parseFloat(p[2])/(/%$/.test(p[2])?100:1),w=parseFloat(p[3])/(/%$/.test(p[3])?100:1),k,$,E;if(b===0)k=$=E=w;else{var N=w<=.5?w*(b+1):w+b-w*b,j=w*2-N;k=m(j,N,h+.3333333333333333),$=m(j,N,h),E=m(j,N,h-.3333333333333333)}return[Math.round(k*255),Math.round($*255),Math.round(E*255),p[4]?parseFloat(p[4]):1]}},d.Color.fromHsla=v.fromHsl,d.Color.fromHex=function(f){return v.fromSource(v.sourceFromHex(f))},d.Color.sourceFromHex=function(f){if(f.match(v.reHex)){var p=f.slice(f.indexOf("#")+1),h=p.length===3||p.length===4,b=p.length===8||p.length===4,w=h?p.charAt(0)+p.charAt(0):p.substring(0,2),k=h?p.charAt(1)+p.charAt(1):p.substring(2,4),$=h?p.charAt(2)+p.charAt(2):p.substring(4,6),E=b?h?p.charAt(3)+p.charAt(3):p.substring(6,8):"FF";return[parseInt(w,16),parseInt(k,16),parseInt($,16),parseFloat((parseInt(E,16)/255).toFixed(2))]}},d.Color.fromSource=function(f){var p=new v;return p.setSource(f),p}}(u),function(y){var d=y.fabric||(y.fabric={}),v=["e","se","s","sw","w","nw","n","ne","e"],m=["ns","nesw","ew","nwse"],f={},p="left",h="top",b="right",w="bottom",k="center",$={top:w,bottom:h,left:b,right:p,center:k},E=d.util.radiansToDegrees,N=Math.sign||function(Ee){return(Ee>0)-(Ee<0)||+Ee};function j(Ee,we){var me=Ee.angle+E(Math.atan2(we.y,we.x))+360;return Math.round(me%360/45)}function z(Ee,we){var me=we.transform.target,Ae=me.canvas,Fe=d.util.object.clone(we);Fe.target=me,Ae&&Ae.fire("object:"+Ee,Fe),me.fire(Ee,we)}function V(Ee,we){var me=we.canvas,Ae=me.uniScaleKey,Fe=Ee[Ae];return me.uniformScaling&&!Fe||!me.uniformScaling&&Fe}function W(Ee){return Ee.originX===k&&Ee.originY===k}function H(Ee,we,me){var Ae=Ee.lockScalingX,Fe=Ee.lockScalingY;return!!(Ae&&Fe||!we&&(Ae||Fe)&&me||Ae&&we==="x"||Fe&&we==="y")}function U(Ee,we,me){var Ae="not-allowed",Fe=V(Ee,me),Ne="";if(we.x!==0&&we.y===0?Ne="x":we.x===0&&we.y!==0&&(Ne="y"),H(me,Ne,Fe))return Ae;var ze=j(me,we);return v[ze]+"-resize"}function Q(Ee,we,me){var Ae="not-allowed";if(we.x!==0&&me.lockSkewingY||we.y!==0&&me.lockSkewingX)return Ae;var Fe=j(me,we)%4;return m[Fe]+"-resize"}function q(Ee,we,me){return Ee[me.canvas.altActionKey]?f.skewCursorStyleHandler(Ee,we,me):f.scaleCursorStyleHandler(Ee,we,me)}function ae(Ee,we,me){var Ae=Ee[me.canvas.altActionKey];if(we.x===0)return Ae?"skewX":"scaleY";if(we.y===0)return Ae?"skewY":"scaleX"}function ne(Ee,we,me){return me.lockRotation?"not-allowed":we.cursorStyle}function be(Ee,we,me,Ae){return{e:Ee,transform:we,pointer:{x:me,y:Ae}}}function te(Ee){return function(we,me,Ae,Fe){var Ne=me.target,ze=Ne.getCenterPoint(),Ue=Ne.translateToOriginPoint(ze,me.originX,me.originY),et=Ee(we,me,Ae,Fe);return Ne.setPositionByOrigin(Ue,me.originX,me.originY),et}}function Ie(Ee,we){return function(me,Ae,Fe,Ne){var ze=we(me,Ae,Fe,Ne);return ze&&z(Ee,be(me,Ae,Fe,Ne)),ze}}function $e(Ee,we,me,Ae,Fe){var Ne=Ee.target,ze=Ne.controls[Ee.corner],Ue=Ne.canvas.getZoom(),et=Ne.padding/Ue,Xe=Ne.toLocalPoint(new d.Point(Ae,Fe),we,me);return Xe.x>=et&&(Xe.x-=et),Xe.x<=-et&&(Xe.x+=et),Xe.y>=et&&(Xe.y-=et),Xe.y<=et&&(Xe.y+=et),Xe.x-=ze.offsetX,Xe.y-=ze.offsetY,Xe}function Me(Ee){return Ee.flipX!==Ee.flipY}function ge(Ee,we,me,Ae,Fe){if(Ee[we]!==0){var Ne=Ee._getTransformedDimensions()[Ae],ze=Fe/Ne*Ee[me];Ee.set(me,ze)}}function Se(Ee,we,me,Ae){var Fe=we.target,Ne=Fe._getTransformedDimensions(0,Fe.skewY),ze=$e(we,we.originX,we.originY,me,Ae),Ue=Math.abs(ze.x*2)-Ne.x,et=Fe.skewX,Xe;Ue<2?Xe=0:(Xe=E(Math.atan2(Ue/Fe.scaleX,Ne.y/Fe.scaleY)),we.originX===p&&we.originY===w&&(Xe=-Xe),we.originX===b&&we.originY===h&&(Xe=-Xe),Me(Fe)&&(Xe=-Xe));var yt=et!==Xe;if(yt){var Et=Fe._getTransformedDimensions().y;Fe.set("skewX",Xe),ge(Fe,"skewY","scaleY","y",Et)}return yt}function fe(Ee,we,me,Ae){var Fe=we.target,Ne=Fe._getTransformedDimensions(Fe.skewX,0),ze=$e(we,we.originX,we.originY,me,Ae),Ue=Math.abs(ze.y*2)-Ne.y,et=Fe.skewY,Xe;Ue<2?Xe=0:(Xe=E(Math.atan2(Ue/Fe.scaleY,Ne.x/Fe.scaleX)),we.originX===p&&we.originY===w&&(Xe=-Xe),we.originX===b&&we.originY===h&&(Xe=-Xe),Me(Fe)&&(Xe=-Xe));var yt=et!==Xe;if(yt){var Et=Fe._getTransformedDimensions().x;Fe.set("skewY",Xe),ge(Fe,"skewX","scaleX","x",Et)}return yt}function pe(Ee,we,me,Ae){var Fe=we.target,Ne=Fe.skewX,ze,Ue=we.originY;if(Fe.lockSkewingX)return!1;if(Ne===0){var et=$e(we,k,k,me,Ae);et.x>0?ze=p:ze=b}else Ne>0&&(ze=Ue===h?p:b),Ne<0&&(ze=Ue===h?b:p),Me(Fe)&&(ze=ze===p?b:p);we.originX=ze;var Xe=Ie("skewing",te(Se));return Xe(Ee,we,me,Ae)}function je(Ee,we,me,Ae){var Fe=we.target,Ne=Fe.skewY,ze,Ue=we.originX;if(Fe.lockSkewingY)return!1;if(Ne===0){var et=$e(we,k,k,me,Ae);et.y>0?ze=h:ze=w}else Ne>0&&(ze=Ue===p?h:w),Ne<0&&(ze=Ue===p?w:h),Me(Fe)&&(ze=ze===h?w:h);we.originY=ze;var Xe=Ie("skewing",te(fe));return Xe(Ee,we,me,Ae)}function Y(Ee,we,me,Ae){var Fe=we,Ne=Fe.target,ze=Ne.translateToOriginPoint(Ne.getCenterPoint(),Fe.originX,Fe.originY);if(Ne.lockRotation)return!1;var Ue=Math.atan2(Fe.ey-ze.y,Fe.ex-ze.x),et=Math.atan2(Ae-ze.y,me-ze.x),Xe=E(et-Ue+Fe.theta),yt=!0;if(Ne.snapAngle>0){var Et=Ne.snapAngle,nt=Ne.snapThreshold||Et,St=Math.ceil(Xe/Et)*Et,bt=Math.floor(Xe/Et)*Et;Math.abs(Xe-bt)<nt?Xe=bt:Math.abs(Xe-St)<nt&&(Xe=St)}return Xe<0&&(Xe=360+Xe),Xe%=360,yt=Ne.angle!==Xe,Ne.angle=Xe,yt}function Z(Ee,we,me,Ae,Fe){Fe=Fe||{};var Ne=we.target,ze=Ne.lockScalingX,Ue=Ne.lockScalingY,et=Fe.by,Xe,yt,Et,nt,St=V(Ee,Ne),bt=H(Ne,et,St),It,Mt,Rt=we.gestureScale;if(bt)return!1;if(Rt)yt=we.scaleX*Rt,Et=we.scaleY*Rt;else{if(Xe=$e(we,we.originX,we.originY,me,Ae),It=et!=="y"?N(Xe.x):1,Mt=et!=="x"?N(Xe.y):1,we.signX||(we.signX=It),we.signY||(we.signY=Mt),Ne.lockScalingFlip&&(we.signX!==It||we.signY!==Mt))return!1;if(nt=Ne._getTransformedDimensions(),St&&!et){var mn=Math.abs(Xe.x)+Math.abs(Xe.y),xn=we.original,dt=Math.abs(nt.x*xn.scaleX/Ne.scaleX)+Math.abs(nt.y*xn.scaleY/Ne.scaleY),ht=mn/dt;yt=xn.scaleX*ht,Et=xn.scaleY*ht}else yt=Math.abs(Xe.x*Ne.scaleX/nt.x),Et=Math.abs(Xe.y*Ne.scaleY/nt.y);W(we)&&(yt*=2,Et*=2),we.signX!==It&&et!=="y"&&(we.originX=$[we.originX],yt*=-1,we.signX=It),we.signY!==Mt&&et!=="x"&&(we.originY=$[we.originY],Et*=-1,we.signY=Mt)}var $t=Ne.scaleX,Pt=Ne.scaleY;return et?(et==="x"&&Ne.set("scaleX",yt),et==="y"&&Ne.set("scaleY",Et)):(!ze&&Ne.set("scaleX",yt),!Ue&&Ne.set("scaleY",Et)),$t!==Ne.scaleX||Pt!==Ne.scaleY}function ee(Ee,we,me,Ae){return Z(Ee,we,me,Ae)}function ce(Ee,we,me,Ae){return Z(Ee,we,me,Ae,{by:"x"})}function xe(Ee,we,me,Ae){return Z(Ee,we,me,Ae,{by:"y"})}function re(Ee,we,me,Ae){return Ee[we.target.canvas.altActionKey]?f.skewHandlerX(Ee,we,me,Ae):f.scalingY(Ee,we,me,Ae)}function le(Ee,we,me,Ae){return Ee[we.target.canvas.altActionKey]?f.skewHandlerY(Ee,we,me,Ae):f.scalingX(Ee,we,me,Ae)}function ve(Ee,we,me,Ae){var Fe=we.target,Ne=$e(we,we.originX,we.originY,me,Ae),ze=Fe.strokeWidth/(Fe.strokeUniform?Fe.scaleX:1),Ue=W(we)?2:1,et=Fe.width,Xe=Math.abs(Ne.x*Ue/Fe.scaleX)-ze;return Fe.set("width",Math.max(Xe,0)),et!==Xe}function De(Ee,we,me,Ae){var Fe=we.target,Ne=me-we.offsetX,ze=Ae-we.offsetY,Ue=!Fe.get("lockMovementX")&&Fe.left!==Ne,et=!Fe.get("lockMovementY")&&Fe.top!==ze;return Ue&&Fe.set("left",Ne),et&&Fe.set("top",ze),(Ue||et)&&z("moving",be(Ee,we,me,Ae)),Ue||et}f.scaleCursorStyleHandler=U,f.skewCursorStyleHandler=Q,f.scaleSkewCursorStyleHandler=q,f.rotationWithSnapping=Ie("rotating",te(Y)),f.scalingEqually=Ie("scaling",te(ee)),f.scalingX=Ie("scaling",te(ce)),f.scalingY=Ie("scaling",te(xe)),f.scalingYOrSkewingX=re,f.scalingXOrSkewingY=le,f.changeWidth=Ie("resizing",te(ve)),f.skewHandlerX=pe,f.skewHandlerY=je,f.dragHandler=De,f.scaleOrSkewActionName=ae,f.rotationStyleHandler=ne,f.fireEvent=z,f.wrapWithFixedAnchor=te,f.wrapWithFireEvent=Ie,f.getLocalPoint=$e,d.controlsUtils=f}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.util.degreesToRadians,m=d.controlsUtils;function f(h,b,w,k,$){k=k||{};var E=this.sizeX||k.cornerSize||$.cornerSize,N=this.sizeY||k.cornerSize||$.cornerSize,j=typeof k.transparentCorners<"u"?k.transparentCorners:$.transparentCorners,z=j?"stroke":"fill",V=!j&&(k.cornerStrokeColor||$.cornerStrokeColor),W=b,H=w,U;h.save(),h.fillStyle=k.cornerColor||$.cornerColor,h.strokeStyle=k.cornerStrokeColor||$.cornerStrokeColor,E>N?(U=E,h.scale(1,N/E),H=w*E/N):N>E?(U=N,h.scale(E/N,1),W=b*N/E):U=E,h.lineWidth=1,h.beginPath(),h.arc(W,H,U/2,0,2*Math.PI,!1),h[z](),V&&h.stroke(),h.restore()}function p(h,b,w,k,$){k=k||{};var E=this.sizeX||k.cornerSize||$.cornerSize,N=this.sizeY||k.cornerSize||$.cornerSize,j=typeof k.transparentCorners<"u"?k.transparentCorners:$.transparentCorners,z=j?"stroke":"fill",V=!j&&(k.cornerStrokeColor||$.cornerStrokeColor),W=E/2,H=N/2;h.save(),h.fillStyle=k.cornerColor||$.cornerColor,h.strokeStyle=k.cornerStrokeColor||$.cornerStrokeColor,h.lineWidth=1,h.translate(b,w),h.rotate(v($.angle)),h[z+"Rect"](-W,-H,E,N),V&&h.strokeRect(-W,-H,E,N),h.restore()}m.renderCircleControl=f,m.renderSquareControl=p}(u),function(y){var d=y.fabric||(y.fabric={});function v(m){for(var f in m)this[f]=m[f]}d.Control=v,d.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(m,f){return f.cursorStyle},getActionName:function(m,f){return f.actionName},getVisibility:function(m,f){var p=m._controlsVisibility;return p&&typeof p[f]<"u"?p[f]:this.visible},setVisibility:function(m){this.visible=m},positionHandler:function(m,f){var p=d.util.transformPoint({x:this.x*m.x+this.offsetX,y:this.y*m.y+this.offsetY},f);return p},calcCornerCoords:function(m,f,p,h,b){var w,k,$,E,N=b?this.touchSizeX:this.sizeX,j=b?this.touchSizeY:this.sizeY;if(N&&j&&N!==j){var z=Math.atan2(j,N),V=Math.sqrt(N*N+j*j)/2,W=z-d.util.degreesToRadians(m),H=Math.PI/2-z-d.util.degreesToRadians(m);w=V*d.util.cos(W),k=V*d.util.sin(W),$=V*d.util.cos(H),E=V*d.util.sin(H)}else{var U=N&&j?N:f;V=U*.7071067812;var W=d.util.degreesToRadians(45-m);w=$=V*d.util.cos(W),k=E=V*d.util.sin(W)}return{tl:{x:p-E,y:h-$},tr:{x:p+w,y:h-k},bl:{x:p-w,y:h+k},br:{x:p+E,y:h+$}}},render:function(m,f,p,h,b){switch(h=h||{},h.cornerStyle||b.cornerStyle){case"circle":d.controlsUtils.renderCircleControl.call(this,m,f,p,h,b);break;default:d.controlsUtils.renderSquareControl.call(this,m,f,p,h,b)}}}}(u),function(){function y(p,h){var b=p.getAttribute("style"),w=p.getAttribute("offset")||0,k,$,E,N;if(w=parseFloat(w)/(/%$/.test(w)?100:1),w=w<0?0:w>1?1:w,b){var j=b.split(/\s*;\s*/);for(j[j.length-1]===""&&j.pop(),N=j.length;N--;){var z=j[N].split(/\s*:\s*/),V=z[0].trim(),W=z[1].trim();V==="stop-color"?k=W:V==="stop-opacity"&&(E=W)}}return k||(k=p.getAttribute("stop-color")||"rgb(0,0,0)"),E||(E=p.getAttribute("stop-opacity")),k=new l.Color(k),$=k.getAlpha(),E=isNaN(parseFloat(E))?1:parseFloat(E),E*=$*h,{offset:w,color:k.toRgb(),opacity:E}}function d(p){return{x1:p.getAttribute("x1")||0,y1:p.getAttribute("y1")||0,x2:p.getAttribute("x2")||"100%",y2:p.getAttribute("y2")||0}}function v(p){return{x1:p.getAttribute("fx")||p.getAttribute("cx")||"50%",y1:p.getAttribute("fy")||p.getAttribute("cy")||"50%",r1:0,x2:p.getAttribute("cx")||"50%",y2:p.getAttribute("cy")||"50%",r2:p.getAttribute("r")||"50%"}}var m=l.util.object.clone;l.Gradient=l.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(p){p||(p={}),p.coords||(p.coords={});var h,b=this;Object.keys(p).forEach(function(w){b[w]=p[w]}),this.id?this.id+="_"+l.Object.__uid++:this.id=l.Object.__uid++,h={x1:p.coords.x1||0,y1:p.coords.y1||0,x2:p.coords.x2||0,y2:p.coords.y2||0},this.type==="radial"&&(h.r1=p.coords.r1||0,h.r2=p.coords.r2||0),this.coords=h,this.colorStops=p.colorStops.slice()},addColorStop:function(p){for(var h in p){var b=new l.Color(p[h]);this.colorStops.push({offset:parseFloat(h),color:b.toRgb(),opacity:b.getAlpha()})}return this},toObject:function(p){var h={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return l.util.populateWithProperties(this,h,p),h},toSVG:function(p,$){var b=m(this.coords,!0),w,k,$=$||{},E,N,j=m(this.colorStops,!0),z=b.r1>b.r2,V=this.gradientTransform?this.gradientTransform.concat():l.iMatrix.concat(),W=-this.offsetX,H=-this.offsetY,U=!!$.additionalTransform,Q=this.gradientUnits==="pixels"?"userSpaceOnUse":"objectBoundingBox";if(j.sort(function(te,Ie){return te.offset-Ie.offset}),Q==="objectBoundingBox"?(W/=p.width,H/=p.height):(W+=p.width/2,H+=p.height/2),p.type==="path"&&this.gradientUnits!=="percentage"&&(W-=p.pathOffset.x,H-=p.pathOffset.y),V[4]-=W,V[5]-=H,N='id="SVGID_'+this.id+'" gradientUnits="'+Q+'"',N+=' gradientTransform="'+(U?$.additionalTransform+" ":"")+l.util.matrixToSVG(V)+'" ',this.type==="linear"?E=["<linearGradient ",N,' x1="',b.x1,'" y1="',b.y1,'" x2="',b.x2,'" y2="',b.y2,`">
  111. `]:this.type==="radial"&&(E=["<radialGradient ",N,' cx="',z?b.x1:b.x2,'" cy="',z?b.y1:b.y2,'" r="',z?b.r1:b.r2,'" fx="',z?b.x2:b.x1,'" fy="',z?b.y2:b.y1,`">
  112. `]),this.type==="radial"){if(z)for(j=j.concat(),j.reverse(),w=0,k=j.length;w<k;w++)j[w].offset=1-j[w].offset;var q=Math.min(b.r1,b.r2);if(q>0){var ae=Math.max(b.r1,b.r2),ne=q/ae;for(w=0,k=j.length;w<k;w++)j[w].offset+=ne*(1-j[w].offset)}}for(w=0,k=j.length;w<k;w++){var be=j[w];E.push("<stop ",'offset="',be.offset*100+"%",'" style="stop-color:',be.color,typeof be.opacity<"u"?";stop-opacity: "+be.opacity:";",`"/>
  113. `)}return E.push(this.type==="linear"?`</linearGradient>
  114. `:`</radialGradient>
  115. `),E.join("")},toLive:function(p){var h,b=l.util.object.clone(this.coords),w,k;if(this.type){for(this.type==="linear"?h=p.createLinearGradient(b.x1,b.y1,b.x2,b.y2):this.type==="radial"&&(h=p.createRadialGradient(b.x1,b.y1,b.r1,b.x2,b.y2,b.r2)),w=0,k=this.colorStops.length;w<k;w++){var $=this.colorStops[w].color,E=this.colorStops[w].opacity,N=this.colorStops[w].offset;typeof E<"u"&&($=new l.Color($).setAlpha(E).toRgba()),h.addColorStop(N,$)}return h}}}),l.util.object.extend(l.Gradient,{fromElement:function(p,h,b,w){var k=parseFloat(b)/(/%$/.test(b)?100:1);k=k<0?0:k>1?1:k,isNaN(k)&&(k=1);var $=p.getElementsByTagName("stop"),E,N=p.getAttribute("gradientUnits")==="userSpaceOnUse"?"pixels":"percentage",j=p.getAttribute("gradientTransform")||"",z=[],V,W,H=0,U=0,Q;for(p.nodeName==="linearGradient"||p.nodeName==="LINEARGRADIENT"?(E="linear",V=d(p)):(E="radial",V=v(p)),W=$.length;W--;)z.push(y($[W],k));Q=l.parseTransformAttribute(j),f(h,V,w,N),N==="pixels"&&(H=-h.left,U=-h.top);var q=new l.Gradient({id:p.getAttribute("id"),type:E,coords:V,colorStops:z,gradientUnits:N,gradientTransform:Q,offsetX:H,offsetY:U});return q}});function f(p,h,b,w){var k,$;Object.keys(h).forEach(function(E){k=h[E],k==="Infinity"?$=1:k==="-Infinity"?$=0:($=parseFloat(h[E],10),typeof k=="string"&&/^(\d+\.\d+)%|(\d+)%$/.test(k)&&($*=.01,w==="pixels"&&((E==="x1"||E==="x2"||E==="r2")&&($*=b.viewBoxWidth||b.width),(E==="y1"||E==="y2")&&($*=b.viewBoxHeight||b.height)))),h[E]=$})}}(),function(){var y=l.util.toFixed;l.Pattern=l.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(d,v){if(d||(d={}),this.id=l.Object.__uid++,this.setOptions(d),!d.source||d.source&&typeof d.source!="string"){v&&v(this);return}else{var m=this;this.source=l.util.createImage(),l.util.loadImage(d.source,function(f,p){m.source=f,v&&v(m,p)},null,this.crossOrigin)}},toObject:function(d){var v=l.Object.NUM_FRACTION_DIGITS,m,f;return typeof this.source.src=="string"?m=this.source.src:typeof this.source=="object"&&this.source.toDataURL&&(m=this.source.toDataURL()),f={type:"pattern",source:m,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:y(this.offsetX,v),offsetY:y(this.offsetY,v),patternTransform:this.patternTransform?this.patternTransform.concat():null},l.util.populateWithProperties(this,f,d),f},toSVG:function(d){var v=typeof this.source=="function"?this.source():this.source,m=v.width/d.width,f=v.height/d.height,p=this.offsetX/d.width,h=this.offsetY/d.height,b="";return(this.repeat==="repeat-x"||this.repeat==="no-repeat")&&(f=1,h&&(f+=Math.abs(h))),(this.repeat==="repeat-y"||this.repeat==="no-repeat")&&(m=1,p&&(m+=Math.abs(p))),v.src?b=v.src:v.toDataURL&&(b=v.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+p+'" y="'+h+'" width="'+m+'" height="'+f+`">
  116. <image x="0" y="0" width="`+v.width+'" height="'+v.height+'" xlink:href="'+b+`"></image>
  117. </pattern>
  118. `},setOptions:function(d){for(var v in d)this[v]=d[v]},toLive:function(d){var v=this.source;return!v||typeof v.src<"u"&&(!v.complete||v.naturalWidth===0||v.naturalHeight===0)?"":d.createPattern(v,this.repeat)}})}(),function(y){var d=y.fabric||(y.fabric={}),v=d.util.toFixed;if(d.Shadow){d.warn("fabric.Shadow is already defined.");return}d.Shadow=d.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(m){typeof m=="string"&&(m=this._parseShadow(m));for(var f in m)this[f]=m[f];this.id=d.Object.__uid++},_parseShadow:function(m){var f=m.trim(),p=d.Shadow.reOffsetsAndBlur.exec(f)||[],h=f.replace(d.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)";return{color:h.trim(),offsetX:parseFloat(p[1],10)||0,offsetY:parseFloat(p[2],10)||0,blur:parseFloat(p[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(m){var f=40,p=40,h=d.Object.NUM_FRACTION_DIGITS,b=d.util.rotateVector({x:this.offsetX,y:this.offsetY},d.util.degreesToRadians(-m.angle)),w=20,k=new d.Color(this.color);return m.width&&m.height&&(f=v((Math.abs(b.x)+this.blur)/m.width,h)*100+w,p=v((Math.abs(b.y)+this.blur)/m.height,h)*100+w),m.flipX&&(b.x*=-1),m.flipY&&(b.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+p+'%" height="'+(100+2*p)+'%" x="-'+f+'%" width="'+(100+2*f)+`%" >
  119. <feGaussianBlur in="SourceAlpha" stdDeviation="`+v(this.blur?this.blur/2:0,h)+`"></feGaussianBlur>
  120. <feOffset dx="`+v(b.x,h)+'" dy="'+v(b.y,h)+`" result="oBlur" ></feOffset>
  121. <feFlood flood-color="`+k.toRgb()+'" flood-opacity="'+k.getAlpha()+`"/>
  122. <feComposite in2="oBlur" operator="in" />
  123. <feMerge>
  124. <feMergeNode></feMergeNode>
  125. <feMergeNode in="SourceGraphic"></feMergeNode>
  126. </feMerge>
  127. </filter>
  128. `},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var m={},f=d.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach(function(p){this[p]!==f[p]&&(m[p]=this[p])},this),m}}),d.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/}(u),function(){if(l.StaticCanvas){l.warn("fabric.StaticCanvas is already defined.");return}var y=l.util.object.extend,d=l.util.getElementOffset,v=l.util.removeFromArray,m=l.util.toFixed,f=l.util.transformPoint,p=l.util.invertTransform,h=l.util.getNodeCanvas,b=l.util.createCanvasElement,w=new Error("Could not initialize `canvas` element");l.StaticCanvas=l.util.createClass(l.CommonMethods,{initialize:function(k,$){$||($={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(k,$)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:l.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(k,$){var E=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(k),this._initOptions($),this.interactive||this._initRetinaScaling(),$.overlayImage&&this.setOverlayImage($.overlayImage,E),$.backgroundImage&&this.setBackgroundImage($.backgroundImage,E),$.backgroundColor&&this.setBackgroundColor($.backgroundColor,E),$.overlayColor&&this.setOverlayColor($.overlayColor,E),this.calcOffset()},_isRetinaScaling:function(){return l.devicePixelRatio!==1&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?l.devicePixelRatio:1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var k=l.devicePixelRatio;this.__initRetinaScaling(k,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(k,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(k,$,E){$.setAttribute("width",this.width*k),$.setAttribute("height",this.height*k),E.scale(k,k)},calcOffset:function(){return this._offset=d(this.lowerCanvasEl),this},setOverlayImage:function(k,$,E){return this.__setBgOverlayImage("overlayImage",k,$,E)},setBackgroundImage:function(k,$,E){return this.__setBgOverlayImage("backgroundImage",k,$,E)},setOverlayColor:function(k,$){return this.__setBgOverlayColor("overlayColor",k,$)},setBackgroundColor:function(k,$){return this.__setBgOverlayColor("backgroundColor",k,$)},__setBgOverlayImage:function(k,$,E,N){return typeof $=="string"?l.util.loadImage($,function(j,z){if(j){var V=new l.Image(j,N);this[k]=V,V.canvas=this}E&&E(j,z)},this,N&&N.crossOrigin):(N&&$.setOptions(N),this[k]=$,$&&($.canvas=this),E&&E($,!1)),this},__setBgOverlayColor:function(k,$,E){return this[k]=$,this._initGradient($,k),this._initPattern($,k,E),this},_createCanvasElement:function(){var k=b();if(!k||(k.style||(k.style={}),typeof k.getContext>"u"))throw w;return k},_initOptions:function(k){var $=this.lowerCanvasEl;this._setOptions(k),this.width=this.width||parseInt($.width,10)||0,this.height=this.height||parseInt($.height,10)||0,this.lowerCanvasEl.style&&($.width=this.width,$.height=this.height,$.style.width=this.width+"px",$.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(k){k&&k.getContext?this.lowerCanvasEl=k:this.lowerCanvasEl=l.util.getById(k)||this._createCanvasElement(),l.util.addClass(this.lowerCanvasEl,"lower-canvas"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(k,$){return this.setDimensions({width:k},$)},setHeight:function(k,$){return this.setDimensions({height:k},$)},setDimensions:function(k,$){var E;$=$||{};for(var N in k)E=k[N],$.cssOnly||(this._setBackstoreDimension(N,k[N]),E+="px",this.hasLostContext=!0),$.backstoreOnly||this._setCssDimension(N,E);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(),this._initRetinaScaling(),this.calcOffset(),$.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(k,$){return this.lowerCanvasEl[k]=$,this.upperCanvasEl&&(this.upperCanvasEl[k]=$),this.cacheCanvasEl&&(this.cacheCanvasEl[k]=$),this[k]=$,this},_setCssDimension:function(k,$){return this.lowerCanvasEl.style[k]=$,this.upperCanvasEl&&(this.upperCanvasEl.style[k]=$),this.wrapperEl&&(this.wrapperEl.style[k]=$),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(k){var $=this._activeObject,E=this.backgroundImage,N=this.overlayImage,j,z,V;for(this.viewportTransform=k,z=0,V=this._objects.length;z<V;z++)j=this._objects[z],j.group||j.setCoords(!0);return $&&$.setCoords(),E&&E.setCoords(!0),N&&N.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(k,$){var E=k,N=this.viewportTransform.slice(0);k=f(k,p(this.viewportTransform)),N[0]=$,N[3]=$;var j=f(k,N);return N[4]+=E.x-j.x,N[5]+=E.y-j.y,this.setViewportTransform(N)},setZoom:function(k){return this.zoomToPoint(new l.Point(0,0),k),this},absolutePan:function(k){var $=this.viewportTransform.slice(0);return $[4]=-k.x,$[5]=-k.y,this.setViewportTransform($)},relativePan:function(k){return this.absolutePan(new l.Point(-k.x-this.viewportTransform[4],-k.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(k){this.stateful&&k.setupState(),k._set("canvas",this),k.setCoords(),this.fire("object:added",{target:k}),k.fire("added")},_onObjectRemoved:function(k){this.fire("object:removed",{target:k}),k.fire("removed"),delete k.canvas},clearContext:function(k){return k.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){var k=this.contextContainer;return this.renderCanvas(k,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=l.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var k={},$=this.width,E=this.height,N=p(this.viewportTransform);return k.tl=f({x:0,y:0},N),k.br=f({x:$,y:E},N),k.tr=new l.Point(k.br.x,k.tl.y),k.bl=new l.Point(k.tl.x,k.br.y),this.vptCoords=k,k},cancelRequestedRender:function(){this.isRendering&&(l.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(k,$){var E=this.viewportTransform,N=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(k),l.util.setImageSmoothing(k,this.imageSmoothingEnabled),this.fire("before:render",{ctx:k}),this._renderBackground(k),k.save(),k.transform(E[0],E[1],E[2],E[3],E[4],E[5]),this._renderObjects(k,$),k.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(k),N&&(N.canvas=this,N.shouldCache(),N._transformDone=!0,N.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(k)),this._renderOverlay(k),this.controlsAboveOverlay&&this.interactive&&this.drawControls(k),this.fire("after:render",{ctx:k})},drawClipPathOnCanvas:function(k){var $=this.viewportTransform,E=this.clipPath;k.save(),k.transform($[0],$[1],$[2],$[3],$[4],$[5]),k.globalCompositeOperation="destination-in",E.transform(k),k.scale(1/E.zoomX,1/E.zoomY),k.drawImage(E._cacheCanvas,-E.cacheTranslationX,-E.cacheTranslationY),k.restore()},_renderObjects:function(k,$){var E,N;for(E=0,N=$.length;E<N;++E)$[E]&&$[E].render(k)},_renderBackgroundOrOverlay:function(k,$){var E=this[$+"Color"],N=this[$+"Image"],j=this.viewportTransform,z=this[$+"Vpt"];if(!(!E&&!N)){if(E){k.save(),k.beginPath(),k.moveTo(0,0),k.lineTo(this.width,0),k.lineTo(this.width,this.height),k.lineTo(0,this.height),k.closePath(),k.fillStyle=E.toLive?E.toLive(k,this):E,z&&k.transform(j[0],j[1],j[2],j[3],j[4],j[5]),k.transform(1,0,0,1,E.offsetX||0,E.offsetY||0);var V=E.gradientTransform||E.patternTransform;V&&k.transform(V[0],V[1],V[2],V[3],V[4],V[5]),k.fill(),k.restore()}N&&(k.save(),z&&k.transform(j[0],j[1],j[2],j[3],j[4],j[5]),N.render(k),k.restore())}},_renderBackground:function(k){this._renderBackgroundOrOverlay(k,"background")},_renderOverlay:function(k){this._renderBackgroundOrOverlay(k,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},centerObjectH:function(k){return this._centerObject(k,new l.Point(this.getCenter().left,k.getCenterPoint().y))},centerObjectV:function(k){return this._centerObject(k,new l.Point(k.getCenterPoint().x,this.getCenter().top))},centerObject:function(k){var $=this.getCenter();return this._centerObject(k,new l.Point($.left,$.top))},viewportCenterObject:function(k){var $=this.getVpCenter();return this._centerObject(k,$)},viewportCenterObjectH:function(k){var $=this.getVpCenter();return this._centerObject(k,new l.Point($.x,k.getCenterPoint().y)),this},viewportCenterObjectV:function(k){var $=this.getVpCenter();return this._centerObject(k,new l.Point(k.getCenterPoint().x,$.y))},getVpCenter:function(){var k=this.getCenter(),$=p(this.viewportTransform);return f({x:k.left,y:k.top},$)},_centerObject:function(k,$){return k.setPositionByOrigin($,"center","center"),k.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(k){return this.toDatalessObject(k)},toObject:function(k){return this._toObjectMethod("toObject",k)},toDatalessObject:function(k){return this._toObjectMethod("toDatalessObject",k)},_toObjectMethod:function(k,$){var E=this.clipPath,N={version:l.version,objects:this._toObjects(k,$)};return E&&!E.excludeFromExport&&(N.clipPath=this._toObject(this.clipPath,k,$)),y(N,this.__serializeBgOverlay(k,$)),l.util.populateWithProperties(this,N,$),N},_toObjects:function(k,$){return this._objects.filter(function(E){return!E.excludeFromExport}).map(function(E){return this._toObject(E,k,$)},this)},_toObject:function(k,$,E){var N;this.includeDefaultValues||(N=k.includeDefaultValues,k.includeDefaultValues=!1);var j=k[$](E);return this.includeDefaultValues||(k.includeDefaultValues=N),j},__serializeBgOverlay:function(k,$){var E={},N=this.backgroundImage,j=this.overlayImage,z=this.backgroundColor,V=this.overlayColor;return z&&z.toObject?z.excludeFromExport||(E.background=z.toObject($)):z&&(E.background=z),V&&V.toObject?V.excludeFromExport||(E.overlay=V.toObject($)):V&&(E.overlay=V),N&&!N.excludeFromExport&&(E.backgroundImage=this._toObject(N,k,$)),j&&!j.excludeFromExport&&(E.overlayImage=this._toObject(j,k,$)),E},svgViewportTransformation:!0,toSVG:function(k,$){k||(k={}),k.reviver=$;var E=[];return this._setSVGPreamble(E,k),this._setSVGHeader(E,k),this.clipPath&&E.push('<g clip-path="url(#'+this.clipPath.clipPathId+`)" >
  129. `),this._setSVGBgOverlayColor(E,"background"),this._setSVGBgOverlayImage(E,"backgroundImage",$),this._setSVGObjects(E,$),this.clipPath&&E.push(`</g>
  130. `),this._setSVGBgOverlayColor(E,"overlay"),this._setSVGBgOverlayImage(E,"overlayImage",$),E.push("</svg>"),E.join("")},_setSVGPreamble:function(k,$){$.suppressPreamble||k.push('<?xml version="1.0" encoding="',$.encoding||"UTF-8",`" standalone="no" ?>
  131. `,'<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ',`"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
  132. `)},_setSVGHeader:function(k,$){var E=$.width||this.width,N=$.height||this.height,j,z='viewBox="0 0 '+this.width+" "+this.height+'" ',V=l.Object.NUM_FRACTION_DIGITS;$.viewBox?z='viewBox="'+$.viewBox.x+" "+$.viewBox.y+" "+$.viewBox.width+" "+$.viewBox.height+'" ':this.svgViewportTransformation&&(j=this.viewportTransform,z='viewBox="'+m(-j[4]/j[0],V)+" "+m(-j[5]/j[3],V)+" "+m(this.width/j[0],V)+" "+m(this.height/j[3],V)+'" '),k.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',E,'" ','height="',N,'" ',z,`xml:space="preserve">
  133. `,"<desc>Created with Fabric.js ",l.version,`</desc>
  134. `,`<defs>
  135. `,this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup($),`</defs>
  136. `)},createSVGClipPathMarkup:function(k){var $=this.clipPath;return $?($.clipPathId="CLIPPATH_"+l.Object.__uid++,'<clipPath id="'+$.clipPathId+`" >
  137. `+this.clipPath.toClipPathSVG(k.reviver)+`</clipPath>
  138. `):""},createSVGRefElementsMarkup:function(){var k=this,$=["background","overlay"].map(function(E){var N=k[E+"Color"];if(N&&N.toLive){var j=k[E+"Vpt"],z=k.viewportTransform,V={width:k.width/(j?z[0]:1),height:k.height/(j?z[3]:1)};return N.toSVG(V,{additionalTransform:j?l.util.matrixToSVG(z):""})}});return $.join("")},createSVGFontFacesMarkup:function(){var k="",$={},E,N,j,z,V,W,H,U,Q,q=l.fontPaths,ae=[];for(this._objects.forEach(function be(te){ae.push(te),te._objects&&te._objects.forEach(be)}),U=0,Q=ae.length;U<Q;U++)if(E=ae[U],N=E.fontFamily,!(E.type.indexOf("text")===-1||$[N]||!q[N])&&($[N]=!0,!!E.styles)){j=E.styles;for(V in j){z=j[V];for(H in z)W=z[H],N=W.fontFamily,!$[N]&&q[N]&&($[N]=!0)}}for(var ne in $)k+=[` @font-face {
  139. `," font-family: '",ne,`';
  140. `," src: url('",q[ne],`');
  141. `,` }
  142. `].join("");return k&&(k=[' <style type="text/css">',`<![CDATA[
  143. `,k,"]]>",`</style>
  144. `].join("")),k},_setSVGObjects:function(k,$){var E,N,j,z=this._objects;for(N=0,j=z.length;N<j;N++)E=z[N],!E.excludeFromExport&&this._setSVGObject(k,E,$)},_setSVGObject:function(k,$,E){k.push($.toSVG(E))},_setSVGBgOverlayImage:function(k,$,E){this[$]&&!this[$].excludeFromExport&&this[$].toSVG&&k.push(this[$].toSVG(E))},_setSVGBgOverlayColor:function(k,$){var E=this[$+"Color"],N=this.viewportTransform,j=this.width,z=this.height;if(E)if(E.toLive){var V=E.repeat,W=l.util.invertTransform(N),H=this[$+"Vpt"],U=H?l.util.matrixToSVG(W):"";k.push('<rect transform="'+U+" translate(",j/2,",",z/2,')"',' x="',E.offsetX-j/2,'" y="',E.offsetY-z/2,'" ','width="',V==="repeat-y"||V==="no-repeat"?E.source.width:j,'" height="',V==="repeat-x"||V==="no-repeat"?E.source.height:z,'" fill="url(#SVGID_'+E.id+')"',`></rect>
  145. `)}else k.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',E,'"',`></rect>
  146. `)},sendToBack:function(k){if(!k)return this;var $=this._activeObject,E,N,j;if(k===$&&k.type==="activeSelection")for(j=$._objects,E=j.length;E--;)N=j[E],v(this._objects,N),this._objects.unshift(N);else v(this._objects,k),this._objects.unshift(k);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(k){if(!k)return this;var $=this._activeObject,E,N,j;if(k===$&&k.type==="activeSelection")for(j=$._objects,E=0;E<j.length;E++)N=j[E],v(this._objects,N),this._objects.push(N);else v(this._objects,k),this._objects.push(k);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(k,$){if(!k)return this;var E=this._activeObject,N,j,z,V,W,H=0;if(k===E&&k.type==="activeSelection")for(W=E._objects,N=0;N<W.length;N++)j=W[N],z=this._objects.indexOf(j),z>0+H&&(V=z-1,v(this._objects,j),this._objects.splice(V,0,j)),H++;else z=this._objects.indexOf(k),z!==0&&(V=this._findNewLowerIndex(k,z,$),v(this._objects,k),this._objects.splice(V,0,k));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(k,$,E){var N,j;if(E)for(N=$,j=$-1;j>=0;--j){var z=k.intersectsWithObject(this._objects[j])||k.isContainedWithinObject(this._objects[j])||this._objects[j].isContainedWithinObject(k);if(z){N=j;break}}else N=$-1;return N},bringForward:function(k,$){if(!k)return this;var E=this._activeObject,N,j,z,V,W,H=0;if(k===E&&k.type==="activeSelection")for(W=E._objects,N=W.length;N--;)j=W[N],z=this._objects.indexOf(j),z<this._objects.length-1-H&&(V=z+1,v(this._objects,j),this._objects.splice(V,0,j)),H++;else z=this._objects.indexOf(k),z!==this._objects.length-1&&(V=this._findNewUpperIndex(k,z,$),v(this._objects,k),this._objects.splice(V,0,k));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(k,$,E){var N,j,z;if(E)for(N=$,j=$+1,z=this._objects.length;j<z;++j){var V=k.intersectsWithObject(this._objects[j])||k.isContainedWithinObject(this._objects[j])||this._objects[j].isContainedWithinObject(k);if(V){N=j;break}}else N=$+1;return N},moveTo:function(k,$){return v(this._objects,k),this._objects.splice($,0,k),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(l.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject(function(k){k.dispose&&k.dispose()}),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove("lower-canvas"),this.lowerCanvasEl.style=this._originalCanvasStyle,delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute("width",this.width),this.lowerCanvasEl.setAttribute("height",this.height),l.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),y(l.StaticCanvas.prototype,l.Observable),y(l.StaticCanvas.prototype,l.Collection),y(l.StaticCanvas.prototype,l.DataURLExporter),y(l.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(k){var $=b();if(!$||!$.getContext)return null;var E=$.getContext("2d");if(!E)return null;switch(k){case"setLineDash":return typeof E.setLineDash<"u";default:return null}}}),l.StaticCanvas.prototype.toJSON=l.StaticCanvas.prototype.toObject,l.isLikelyNode&&(l.StaticCanvas.prototype.createPNGStream=function(){var k=h(this.lowerCanvasEl);return k&&k.createPNGStream()},l.StaticCanvas.prototype.createJPEGStream=function(k){var $=h(this.lowerCanvasEl);return $&&$.createJPEGStream(k)})}(),l.BaseBrush=l.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(){var y=this.canvas.contextTop;y.strokeStyle=this.color,y.lineWidth=this.width,y.lineCap=this.strokeLineCap,y.miterLimit=this.strokeMiterLimit,y.lineJoin=this.strokeLineJoin,y.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(y){var d=this.canvas.viewportTransform;y.save(),y.transform(d[0],d[1],d[2],d[3],d[4],d[5])},_setShadow:function(){if(this.shadow){var y=this.canvas,d=this.shadow,v=y.contextTop,m=y.getZoom();y&&y._isRetinaScaling()&&(m*=l.devicePixelRatio),v.shadowColor=d.color,v.shadowBlur=d.blur*m,v.shadowOffsetX=d.offsetX*m,v.shadowOffsetY=d.offsetY*m}},needsFullRender:function(){var y=new l.Color(this.color);return y.getAlpha()<1||!!this.shadow},_resetShadow:function(){var y=this.canvas.contextTop;y.shadowColor="",y.shadowBlur=y.shadowOffsetX=y.shadowOffsetY=0},_isOutSideCanvas:function(y){return y.x<0||y.x>this.canvas.getWidth()||y.y<0||y.y>this.canvas.getHeight()}}),function(){l.PencilBrush=l.util.createClass(l.BaseBrush,{decimate:.4,initialize:function(y){this.canvas=y,this._points=[]},_drawSegment:function(y,d,v){var m=d.midPointFrom(v);return y.quadraticCurveTo(d.x,d.y,m.x,m.y),m},onMouseDown:function(y,d){this.canvas._isMainEvent(d.e)&&(this._prepareForDrawing(y),this._captureDrawingPath(y),this._render())},onMouseMove:function(y,d){if(this.canvas._isMainEvent(d.e)&&!(this.limitedToCanvasSize===!0&&this._isOutSideCanvas(y))&&this._captureDrawingPath(y)&&this._points.length>1)if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var v=this._points,m=v.length,f=this.canvas.contextTop;this._saveAndTransform(f),this.oldEnd&&(f.beginPath(),f.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(f,v[m-2],v[m-1],!0),f.stroke(),f.restore()}},onMouseUp:function(y){return this.canvas._isMainEvent(y.e)?(this.oldEnd=void 0,this._finalizeAndAddPath(),!1):!0},_prepareForDrawing:function(y){var d=new l.Point(y.x,y.y);this._reset(),this._addPoint(d),this.canvas.contextTop.moveTo(d.x,d.y)},_addPoint:function(y){return this._points.length>1&&y.eq(this._points[this._points.length-1])?!1:(this._points.push(y),!0)},_reset:function(){this._points=[],this._setBrushStyles(),this._setShadow()},_captureDrawingPath:function(y){var d=new l.Point(y.x,y.y);return this._addPoint(d)},_render:function(){var y=this.canvas.contextTop,d,v,m=this._points[0],f=this._points[1];if(this._saveAndTransform(y),y.beginPath(),this._points.length===2&&m.x===f.x&&m.y===f.y){var p=this.width/1e3;m=new l.Point(m.x,m.y),f=new l.Point(f.x,f.y),m.x-=p,f.x+=p}for(y.moveTo(m.x,m.y),d=1,v=this._points.length;d<v;d++)this._drawSegment(y,m,f),m=this._points[d],f=this._points[d+1];y.lineTo(m.x,m.y),y.stroke(),y.restore()},convertPointsToSVGPath:function(y){var d=this.width/1e3;return l.util.getSmoothPathFromPoints(y,d)},_isEmptySVGPath:function(y){var d=l.util.joinPath(y);return d==="M 0 0 Q 0 0 0 0 L 0 0"},createPath:function(y){var d=new l.Path(y,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,d.shadow=new l.Shadow(this.shadow)),d},decimatePoints:function(y,d){if(y.length<=2)return y;var v=this.canvas.getZoom(),m=Math.pow(d/v,2),f,p=y.length-1,h=y[0],b=[h],w;for(f=1;f<p-1;f++)w=Math.pow(h.x-y[f].x,2)+Math.pow(h.y-y[f].y,2),w>=m&&(h=y[f],b.push(h));return b.push(y[p]),b},_finalizeAndAddPath:function(){var y=this.canvas.contextTop;y.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var d=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(d)){this.canvas.requestRenderAll();return}var v=this.createPath(d);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:v}),this.canvas.add(v),this.canvas.requestRenderAll(),v.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:v})}})}(),l.CircleBrush=l.util.createClass(l.BaseBrush,{width:10,initialize:function(y){this.canvas=y,this.points=[]},drawDot:function(y){var d=this.addPoint(y),v=this.canvas.contextTop;this._saveAndTransform(v),this.dot(v,d),v.restore()},dot:function(y,d){y.fillStyle=d.fill,y.beginPath(),y.arc(d.x,d.y,d.radius,0,Math.PI*2,!1),y.closePath(),y.fill()},onMouseDown:function(y){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(y)},_render:function(){var y=this.canvas.contextTop,d,v,m=this.points;for(this._saveAndTransform(y),d=0,v=m.length;d<v;d++)this.dot(y,m[d]);y.restore()},onMouseMove:function(y){this.limitedToCanvasSize===!0&&this._isOutSideCanvas(y)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(y),this._render()):this.drawDot(y))},onMouseUp:function(){var y=this.canvas.renderOnAddRemove,d,v;this.canvas.renderOnAddRemove=!1;var m=[];for(d=0,v=this.points.length;d<v;d++){var f=this.points[d],p=new l.Circle({radius:f.radius,left:f.x,top:f.y,originX:"center",originY:"center",fill:f.fill});this.shadow&&(p.shadow=new l.Shadow(this.shadow)),m.push(p)}var h=new l.Group(m);h.canvas=this.canvas,this.canvas.fire("before:path:created",{path:h}),this.canvas.add(h),this.canvas.fire("path:created",{path:h}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=y,this.canvas.requestRenderAll()},addPoint:function(y){var d=new l.Point(y.x,y.y),v=l.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,m=new l.Color(this.color).setAlpha(l.util.getRandomInt(0,100)/100).toRgba();return d.radius=v,d.fill=m,this.points.push(d),d}}),l.SprayBrush=l.util.createClass(l.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(y){this.canvas=y,this.sprayChunks=[]},onMouseDown:function(y){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(y),this.render(this.sprayChunkPoints)},onMouseMove:function(y){this.limitedToCanvasSize===!0&&this._isOutSideCanvas(y)||(this.addSprayChunk(y),this.render(this.sprayChunkPoints))},onMouseUp:function(){var y=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var d=[],v=0,m=this.sprayChunks.length;v<m;v++)for(var f=this.sprayChunks[v],p=0,h=f.length;p<h;p++){var b=new l.Rect({width:f[p].width,height:f[p].width,left:f[p].x+1,top:f[p].y+1,originX:"center",originY:"center",fill:this.color});d.push(b)}this.optimizeOverlapping&&(d=this._getOptimizedRects(d));var w=new l.Group(d);this.shadow&&w.set("shadow",new l.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:w}),this.canvas.add(w),this.canvas.fire("path:created",{path:w}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=y,this.canvas.requestRenderAll()},_getOptimizedRects:function(y){var d={},v,m,f;for(m=0,f=y.length;m<f;m++)v=y[m].left+""+y[m].top,d[v]||(d[v]=y[m]);var p=[];for(v in d)p.push(d[v]);return p},render:function(y){var d=this.canvas.contextTop,v,m;for(d.fillStyle=this.color,this._saveAndTransform(d),v=0,m=y.length;v<m;v++){var f=y[v];typeof f.opacity<"u"&&(d.globalAlpha=f.opacity),d.fillRect(f.x,f.y,f.width,f.width)}d.restore()},_render:function(){var y=this.canvas.contextTop,d,v;for(y.fillStyle=this.color,this._saveAndTransform(y),d=0,v=this.sprayChunks.length;d<v;d++)this.render(this.sprayChunks[d]);y.restore()},addSprayChunk:function(y){this.sprayChunkPoints=[];var d,v,m,f=this.width/2,p;for(p=0;p<this.density;p++){d=l.util.getRandomInt(y.x-f,y.x+f),v=l.util.getRandomInt(y.y-f,y.y+f),this.dotWidthVariance?m=l.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):m=this.dotWidth;var h=new l.Point(d,v);h.width=m,this.randomOpacity&&(h.opacity=l.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(h)}this.sprayChunks.push(this.sprayChunkPoints)}}),l.PatternBrush=l.util.createClass(l.PencilBrush,{getPatternSrc:function(){var y=20,d=5,v=l.util.createCanvasElement(),m=v.getContext("2d");return v.width=v.height=y+d,m.fillStyle=this.color,m.beginPath(),m.arc(y/2,y/2,y/2,0,Math.PI*2,!1),m.closePath(),m.fill(),v},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(){return this.canvas.contextTop.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(){this.callSuper("_setBrushStyles"),this.canvas.contextTop.strokeStyle=this.getPattern()},createPath:function(y){var d=this.callSuper("createPath",y),v=d._getLeftTopCoords().scalarAdd(d.strokeWidth/2);return d.stroke=new l.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-v.x,offsetY:-v.y}),d}}),function(){var y=l.util.getPointer,d=l.util.degreesToRadians,v=l.util.isTouchEvent;l.Canvas=l.util.createClass(l.StaticCanvas,{initialize:function(f,p){p||(p={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(f,p),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",rotationCursor:"crosshair",notAllowedCursor:"not-allowed",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=l.PencilBrush&&new l.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var f=this.getActiveObjects(),p,h,b;if(f.length>0&&!this.preserveObjectStacking){h=[],b=[];for(var w=0,k=this._objects.length;w<k;w++)p=this._objects[w],f.indexOf(p)===-1?h.push(p):b.push(p);f.length>1&&(this._activeObject._objects=b),h.push.apply(h,b)}else h=this._objects;return h},renderAll:function(){this.contextTopDirty&&!this._groupSelector&&!this.isDrawingMode&&(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&this.renderTopLayer(this.contextTop);var f=this.contextContainer;return this.renderCanvas(f,this._chooseObjectsToRender()),this},renderTopLayer:function(f){f.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(f),this.contextTopDirty=!0),f.restore()},renderTop:function(){var f=this.contextTop;return this.clearContext(f),this.renderTopLayer(f),this.fire("after:render"),this},_normalizePointer:function(f,p){var h=f.calcTransformMatrix(),b=l.util.invertTransform(h),w=this.restorePointerVpt(p);return l.util.transformPoint(w,b)},isTargetTransparent:function(f,p,h){if(f.shouldCache()&&f._cacheCanvas&&f!==this._activeObject){var b=this._normalizePointer(f,{x:p,y:h}),w=Math.max(f.cacheTranslationX+b.x*f.zoomX,0),k=Math.max(f.cacheTranslationY+b.y*f.zoomY,0),j=l.util.isTransparent(f._cacheContext,Math.round(w),Math.round(k),this.targetFindTolerance);return j}var $=this.contextCache,E=f.selectionBackgroundColor,N=this.viewportTransform;f.selectionBackgroundColor="",this.clearContext($),$.save(),$.transform(N[0],N[1],N[2],N[3],N[4],N[5]),f.render($),$.restore(),f.selectionBackgroundColor=E;var j=l.util.isTransparent($,p,h,this.targetFindTolerance);return j},_isSelectionKeyPressed:function(f){var p=!1;return Object.prototype.toString.call(this.selectionKey)==="[object Array]"?p=!!this.selectionKey.find(function(h){return f[h]===!0}):p=f[this.selectionKey],p},_shouldClearSelection:function(f,p){var h=this.getActiveObjects(),b=this._activeObject;return!p||p&&b&&h.length>1&&h.indexOf(p)===-1&&b!==p&&!this._isSelectionKeyPressed(f)||p&&!p.evented||p&&!p.selectable&&b&&b!==p},_shouldCenterTransform:function(f,p,h){if(f){var b;return p==="scale"||p==="scaleX"||p==="scaleY"||p==="resizing"?b=this.centeredScaling||f.centeredScaling:p==="rotate"&&(b=this.centeredRotation||f.centeredRotation),b?!h:h}},_getOriginFromCorner:function(f,p){var h={x:f.originX,y:f.originY};return p==="ml"||p==="tl"||p==="bl"?h.x="right":(p==="mr"||p==="tr"||p==="br")&&(h.x="left"),p==="tl"||p==="mt"||p==="tr"?h.y="bottom":(p==="bl"||p==="mb"||p==="br")&&(h.y="top"),h},_getActionFromCorner:function(f,p,h,b){if(!p||!f)return"drag";var w=b.controls[p];return w.getActionName(h,w,b)},_setupCurrentTransform:function(f,p,h){if(p){var b=this.getPointer(f),w=p.__corner,k=p.controls[w],$=h&&w?k.getActionHandler(f,p,k):l.controlsUtils.dragHandler,E=this._getActionFromCorner(h,w,f,p),N=this._getOriginFromCorner(p,w),j=f[this.centeredKey],z={target:p,action:E,actionHandler:$,corner:w,scaleX:p.scaleX,scaleY:p.scaleY,skewX:p.skewX,skewY:p.skewY,offsetX:b.x-p.left,offsetY:b.y-p.top,originX:N.x,originY:N.y,ex:b.x,ey:b.y,lastX:b.x,lastY:b.y,theta:d(p.angle),width:p.width*p.scaleX,shiftKey:f.shiftKey,altKey:j,original:l.util.saveObjectTransform(p)};this._shouldCenterTransform(p,E,j)&&(z.originX="center",z.originY="center"),z.original.originX=N.x,z.original.originY=N.y,this._currentTransform=z,this._beforeTransform(f)}},setCursor:function(f){this.upperCanvasEl.style.cursor=f},_drawSelection:function(f){var p=this._groupSelector,h=new l.Point(p.ex,p.ey),b=l.util.transformPoint(h,this.viewportTransform),w=new l.Point(p.ex+p.left,p.ey+p.top),k=l.util.transformPoint(w,this.viewportTransform),$=Math.min(b.x,k.x),E=Math.min(b.y,k.y),N=Math.max(b.x,k.x),j=Math.max(b.y,k.y),z=this.selectionLineWidth/2;this.selectionColor&&(f.fillStyle=this.selectionColor,f.fillRect($,E,N-$,j-E)),!(!this.selectionLineWidth||!this.selectionBorderColor)&&(f.lineWidth=this.selectionLineWidth,f.strokeStyle=this.selectionBorderColor,$+=z,E+=z,N-=z,j-=z,l.Object.prototype._setLineDash.call(this,f,this.selectionDashArray),f.strokeRect($,E,N-$,j-E))},findTarget:function(f,p){if(!this.skipTargetFind){var h=!0,b=this.getPointer(f,h),w=this._activeObject,k=this.getActiveObjects(),$,E,N=v(f),j=k.length>1&&!p||k.length===1;if(this.targets=[],j&&w._findTargetCorner(b,N)||k.length>1&&!p&&w===this._searchPossibleTargets([w],b))return w;if(k.length===1&&w===this._searchPossibleTargets([w],b))if(this.preserveObjectStacking)$=w,E=this.targets,this.targets=[];else return w;var z=this._searchPossibleTargets(this._objects,b);return f[this.altSelectionKey]&&z&&$&&z!==$&&(z=$,this.targets=E),z}},_checkTarget:function(f,p,h){if(p&&p.visible&&p.evented&&p.containsPoint(f))if((this.perPixelTargetFind||p.perPixelTargetFind)&&!p.isEditing){var b=this.isTargetTransparent(p,h.x,h.y);if(!b)return!0}else return!0},_searchPossibleTargets:function(f,p){for(var h,b=f.length,w;b--;){var k=f[b],$=k.group?this._normalizePointer(k.group,p):p;if(this._checkTarget($,k,p)){h=f[b],h.subTargetCheck&&h instanceof l.Group&&(w=this._searchPossibleTargets(h._objects,p),w&&this.targets.push(w));break}}return h},restorePointerVpt:function(f){return l.util.transformPoint(f,l.util.invertTransform(this.viewportTransform))},getPointer:function(f,p){if(this._absolutePointer&&!p)return this._absolutePointer;if(this._pointer&&p)return this._pointer;var h=y(f),b=this.upperCanvasEl,w=b.getBoundingClientRect(),k=w.width||0,$=w.height||0,E;(!k||!$)&&("top"in w&&"bottom"in w&&($=Math.abs(w.top-w.bottom)),"right"in w&&"left"in w&&(k=Math.abs(w.right-w.left))),this.calcOffset(),h.x=h.x-this._offset.left,h.y=h.y-this._offset.top,p||(h=this.restorePointerVpt(h));var N=this.getRetinaScaling();return N!==1&&(h.x/=N,h.y/=N),k===0||$===0?E={width:1,height:1}:E={width:b.width/k,height:b.height/$},{x:h.x*E.width,y:h.y*E.height}},_createUpperCanvas:function(){var f=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),p=this.lowerCanvasEl,h=this.upperCanvasEl;h?h.className="":(h=this._createCanvasElement(),this.upperCanvasEl=h),l.util.addClass(h,"upper-canvas "+f),this.wrapperEl.appendChild(h),this._copyCanvasStyle(p,h),this._applyCanvasStyle(h),this.contextTop=h.getContext("2d")},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=l.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),l.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),l.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(f){var p=this.width||f.width,h=this.height||f.height;l.util.setStyle(f,{position:"absolute",width:p+"px",height:h+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),f.width=p,f.height=h,l.util.makeElementUnselectable(f)},_copyCanvasStyle:function(f,p){p.style.cssText=f.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var f=this._activeObject;return f?f.type==="activeSelection"&&f._objects?f._objects.slice(0):[f]:[]},_onObjectRemoved:function(f){f===this._activeObject&&(this.fire("before:selection:cleared",{target:f}),this._discardActiveObject(),this.fire("selection:cleared",{target:f}),f.fire("deselected")),f===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",f)},_fireSelectionEvents:function(f,p){var h=!1,b=this.getActiveObjects(),w=[],k=[];f.forEach(function($){b.indexOf($)===-1&&(h=!0,$.fire("deselected",{e:p,target:$}),k.push($))}),b.forEach(function($){f.indexOf($)===-1&&(h=!0,$.fire("selected",{e:p,target:$}),w.push($))}),f.length>0&&b.length>0?h&&this.fire("selection:updated",{e:p,selected:w,deselected:k,updated:w[0]||k[0],target:this._activeObject}):b.length>0?this.fire("selection:created",{e:p,selected:w,target:this._activeObject}):f.length>0&&this.fire("selection:cleared",{e:p,deselected:k})},setActiveObject:function(f,p){var h=this.getActiveObjects();return this._setActiveObject(f,p),this._fireSelectionEvents(h,p),this},_setActiveObject:function(f,p){return this._activeObject===f||!this._discardActiveObject(p,f)||f.onSelect({e:p})?!1:(this._activeObject=f,!0)},_discardActiveObject:function(f,p){var h=this._activeObject;if(h){if(h.onDeselect({e:f,object:p}))return!1;this._activeObject=null}return!0},discardActiveObject:function(f){var p=this.getActiveObjects(),h=this.getActiveObject();return p.length&&this.fire("before:selection:cleared",{target:h,e:f}),this._discardActiveObject(f),this._fireSelectionEvents(p,f),this},dispose:function(){var f=this.wrapperEl;return this.removeListeners(),f.removeChild(this.upperCanvasEl),f.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach(function(p){l.util.cleanUpJsdomNode(this[p]),this[p]=void 0}.bind(this)),f.parentNode&&f.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,l.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(f){var p=this._activeObject;p&&p._renderControls(f)},_toObject:function(f,p,h){var b=this._realizeGroupTransformOnObject(f),w=this.callSuper("_toObject",f,p,h);return this._unwindGroupTransformOnObject(f,b),w},_realizeGroupTransformOnObject:function(f){if(f.group&&f.group.type==="activeSelection"&&this._activeObject===f.group){var p=["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"],h={};return p.forEach(function(b){h[b]=f[b]}),l.util.addTransformToObject(f,this._activeObject.calcOwnMatrix()),h}else return null},_unwindGroupTransformOnObject:function(f,p){p&&f.set(p)},_setSVGObject:function(f,p,h){var b=this._realizeGroupTransformOnObject(p);this.callSuper("_setSVGObject",f,p,h),this._unwindGroupTransformOnObject(p,b)},setViewportTransform:function(f){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),l.StaticCanvas.prototype.setViewportTransform.call(this,f)}});for(var m in l.StaticCanvas)m!=="prototype"&&(l.Canvas[m]=l.StaticCanvas[m])}(),function(){var y=l.util.addListener,d=l.util.removeListener,v=3,m=2,f=1,p={passive:!1};function h(b,w){return b.button&&b.button===w-1}l.util.object.extend(l.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(y,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(b,w){var k=this.upperCanvasEl,$=this._getEventPrefix();b(l.window,"resize",this._onResize),b(k,$+"down",this._onMouseDown),b(k,$+"move",this._onMouseMove,p),b(k,$+"out",this._onMouseOut),b(k,$+"enter",this._onMouseEnter),b(k,"wheel",this._onMouseWheel),b(k,"contextmenu",this._onContextMenu),b(k,"dblclick",this._onDoubleClick),b(k,"dragover",this._onDragOver),b(k,"dragenter",this._onDragEnter),b(k,"dragleave",this._onDragLeave),b(k,"drop",this._onDrop),this.enablePointerEvents||b(k,"touchstart",this._onTouchStart,p),typeof eventjs<"u"&&w in eventjs&&(eventjs[w](k,"gesture",this._onGesture),eventjs[w](k,"drag",this._onDrag),eventjs[w](k,"orientation",this._onOrientationChange),eventjs[w](k,"shake",this._onShake),eventjs[w](k,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(d,"remove");var b=this._getEventPrefix();d(l.document,b+"up",this._onMouseUp),d(l.document,"touchend",this._onTouchEnd,p),d(l.document,b+"move",this._onMouseMove,p),d(l.document,"touchmove",this._onMouseMove,p)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._simpleEventHandler.bind(this,"drop"),this.eventsBound=!0)},_onGesture:function(b,w){this.__onTransformGesture&&this.__onTransformGesture(b,w)},_onDrag:function(b,w){this.__onDrag&&this.__onDrag(b,w)},_onMouseWheel:function(b){this.__onMouseWheel(b)},_onMouseOut:function(b){var w=this._hoveredTarget;this.fire("mouse:out",{target:w,e:b}),this._hoveredTarget=null,w&&w.fire("mouseout",{e:b});var k=this;this._hoveredTargets.forEach(function($){k.fire("mouse:out",{target:w,e:b}),$&&w.fire("mouseout",{e:b})}),this._hoveredTargets=[],this._iTextInstances&&this._iTextInstances.forEach(function($){$.isEditing&&$.hiddenTextarea.focus()})},_onMouseEnter:function(b){!this._currentTransform&&!this.findTarget(b)&&(this.fire("mouse:over",{target:null,e:b}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(b,w){this.__onOrientationChange&&this.__onOrientationChange(b,w)},_onShake:function(b,w){this.__onShake&&this.__onShake(b,w)},_onLongPress:function(b,w){this.__onLongPress&&this.__onLongPress(b,w)},_onDragOver:function(b){b.preventDefault();var w=this._simpleEventHandler("dragover",b);this._fireEnterLeaveEvents(w,b)},_onContextMenu:function(b){return this.stopContextMenu&&(b.stopPropagation(),b.preventDefault()),!1},_onDoubleClick:function(b){this._cacheTransformEventData(b),this._handleEvent(b,"dblclick"),this._resetTransformEventData(b)},getPointerId:function(b){var w=b.changedTouches;return w?w[0]&&w[0].identifier:this.enablePointerEvents?b.pointerId:-1},_isMainEvent:function(b){return b.isPrimary===!0?!0:b.isPrimary===!1?!1:b.type==="touchend"&&b.touches.length===0?!0:b.changedTouches?b.changedTouches[0].identifier===this.mainTouchId:!0},_onTouchStart:function(b){b.preventDefault(),this.mainTouchId===null&&(this.mainTouchId=this.getPointerId(b)),this.__onMouseDown(b),this._resetTransformEventData();var w=this.upperCanvasEl,k=this._getEventPrefix();y(l.document,"touchend",this._onTouchEnd,p),y(l.document,"touchmove",this._onMouseMove,p),d(w,k+"down",this._onMouseDown)},_onMouseDown:function(b){this.__onMouseDown(b),this._resetTransformEventData();var w=this.upperCanvasEl,k=this._getEventPrefix();d(w,k+"move",this._onMouseMove,p),y(l.document,k+"up",this._onMouseUp),y(l.document,k+"move",this._onMouseMove,p)},_onTouchEnd:function(b){if(!(b.touches.length>0)){this.__onMouseUp(b),this._resetTransformEventData(),this.mainTouchId=null;var w=this._getEventPrefix();d(l.document,"touchend",this._onTouchEnd,p),d(l.document,"touchmove",this._onMouseMove,p);var k=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout(function(){y(k.upperCanvasEl,w+"down",k._onMouseDown),k._willAddMouseDown=0},400)}},_onMouseUp:function(b){this.__onMouseUp(b),this._resetTransformEventData();var w=this.upperCanvasEl,k=this._getEventPrefix();this._isMainEvent(b)&&(d(l.document,k+"up",this._onMouseUp),d(l.document,k+"move",this._onMouseMove,p),y(w,k+"move",this._onMouseMove,p))},_onMouseMove:function(b){!this.allowTouchScrolling&&b.preventDefault&&b.preventDefault(),this.__onMouseMove(b)},_onResize:function(){this.calcOffset()},_shouldRender:function(b){var w=this._activeObject;return!!w!=!!b||w&&b&&w!==b?!0:(w&&w.isEditing,!1)},__onMouseUp:function(b){var w,k=this._currentTransform,$=this._groupSelector,E=!1,N=!$||$.left===0&&$.top===0;if(this._cacheTransformEventData(b),w=this._target,this._handleEvent(b,"up:before"),h(b,v)){this.fireRightClick&&this._handleEvent(b,"up",v,N);return}if(h(b,m)){this.fireMiddleClick&&this._handleEvent(b,"up",m,N),this._resetTransformEventData();return}if(this.isDrawingMode&&this._isCurrentlyDrawing){this._onMouseUpInDrawingMode(b);return}if(this._isMainEvent(b)){if(k&&(this._finalizeCurrentTransform(b),E=k.actionPerformed),!N){var j=w===this._activeObject;this._maybeGroupObjects(b),E||(E=this._shouldRender(w)||!j&&w===this._activeObject)}if(w){if(w.selectable&&w!==this._activeObject&&w.activeOn==="up")this.setActiveObject(w,b),E=!0;else{var z=w._findTargetCorner(this.getPointer(b,!0),l.util.isTouchEvent(b)),V=w.controls[z],W=V&&V.getMouseUpHandler(b,w,V);if(W){var H=this.getPointer(b);W(b,k,H.x,H.y)}}w.isMoving=!1}this._setCursorFromEvent(b,w),this._handleEvent(b,"up",f,N),this._groupSelector=null,this._currentTransform=null,w&&(w.__corner=0),E?this.requestRenderAll():N||this.renderTop()}},_simpleEventHandler:function(b,w){var k=this.findTarget(w),$=this.targets,E={e:w,target:k,subTargets:$};if(this.fire(b,E),k&&k.fire(b,E),!$)return k;for(var N=0;N<$.length;N++)$[N].fire(b,E);return k},_handleEvent:function(b,w,k,$){var E=this._target,N=this.targets||[],j={e:b,target:E,subTargets:N,button:k||f,isClick:$||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};w==="up"&&(j.currentTarget=this.findTarget(b),j.currentSubTargets=this.targets),this.fire("mouse:"+w,j),E&&E.fire("mouse"+w,j);for(var z=0;z<N.length;z++)N[z].fire("mouse"+w,j)},_finalizeCurrentTransform:function(b){var w=this._currentTransform,k=w.target,$,E={e:b,target:k,transform:w,action:w.action};k._scaling&&(k._scaling=!1),k.setCoords(),(w.actionPerformed||this.stateful&&k.hasStateChanged())&&(w.actionPerformed&&($=this._addEventOptions(E,w),this._fire($,E)),this._fire("modified",E))},_addEventOptions:function(b,w){var k,$;switch(w.action){case"scaleX":k="scaled",$="x";break;case"scaleY":k="scaled",$="y";break;case"skewX":k="skewed",$="x";break;case"skewY":k="skewed",$="y";break;case"scale":k="scaled",$="equally";break;case"rotate":k="rotated";break;case"drag":k="moved";break}return b.by=$,k},_onMouseDownInDrawingMode:function(b){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(b).requestRenderAll();var w=this.getPointer(b);this.freeDrawingBrush.onMouseDown(w,{e:b,pointer:w}),this._handleEvent(b,"down")},_onMouseMoveInDrawingMode:function(b){if(this._isCurrentlyDrawing){var w=this.getPointer(b);this.freeDrawingBrush.onMouseMove(w,{e:b,pointer:w})}this.setCursor(this.freeDrawingCursor),this._handleEvent(b,"move")},_onMouseUpInDrawingMode:function(b){var w=this.getPointer(b);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:b,pointer:w}),this._handleEvent(b,"up")},__onMouseDown:function(b){this._cacheTransformEventData(b),this._handleEvent(b,"down:before");var w=this._target;if(h(b,v)){this.fireRightClick&&this._handleEvent(b,"down",v);return}if(h(b,m)){this.fireMiddleClick&&this._handleEvent(b,"down",m);return}if(this.isDrawingMode){this._onMouseDownInDrawingMode(b);return}if(this._isMainEvent(b)&&!this._currentTransform){var k=this._pointer;this._previousPointer=k;var $=this._shouldRender(w),E=this._shouldGroup(b,w);if(this._shouldClearSelection(b,w)?this.discardActiveObject(b):E&&(this._handleGrouping(b,w),w=this._activeObject),this.selection&&(!w||!w.selectable&&!w.isEditing&&w!==this._activeObject)&&(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),w){var N=w===this._activeObject;w.selectable&&w.activeOn==="down"&&this.setActiveObject(w,b);var j=w._findTargetCorner(this.getPointer(b,!0),l.util.isTouchEvent(b));if(w.__corner=j,w===this._activeObject&&(j||!E)){this._setupCurrentTransform(b,w,N);var z=w.controls[j],k=this.getPointer(b),V=z&&z.getMouseDownHandler(b,w,z);V&&V(b,this._currentTransform,k.x,k.y)}}this._handleEvent(b,"down"),($||E)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(b){this._resetTransformEventData(),this._pointer=this.getPointer(b,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(b)||null},_beforeTransform:function(b){var w=this._currentTransform;this.stateful&&w.target.saveState(),this.fire("before:transform",{e:b,transform:w})},__onMouseMove:function(b){this._handleEvent(b,"move:before"),this._cacheTransformEventData(b);var w,k;if(this.isDrawingMode){this._onMouseMoveInDrawingMode(b);return}if(this._isMainEvent(b)){var $=this._groupSelector;$?(k=this._absolutePointer,$.left=k.x-$.ex,$.top=k.y-$.ey,this.renderTop()):this._currentTransform?this._transformObject(b):(w=this.findTarget(b)||null,this._setCursorFromEvent(b,w),this._fireOverOutEvents(w,b)),this._handleEvent(b,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(b,w){var k=this._hoveredTarget,$=this._hoveredTargets,E=this.targets,N=Math.max($.length,E.length);this.fireSyntheticInOutEvents(b,w,{oldTarget:k,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var j=0;j<N;j++)this.fireSyntheticInOutEvents(E[j],w,{oldTarget:$[j],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=b,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(b,w){var k=this._draggedoverTarget,$=this._hoveredTargets,E=this.targets,N=Math.max($.length,E.length);this.fireSyntheticInOutEvents(b,w,{oldTarget:k,evtOut:"dragleave",evtIn:"dragenter"});for(var j=0;j<N;j++)this.fireSyntheticInOutEvents(E[j],w,{oldTarget:$[j],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=b},fireSyntheticInOutEvents:function(b,w,k){var $,E,N=k.oldTarget,j,z,V=N!==b,W=k.canvasEvtIn,H=k.canvasEvtOut;V&&($={e:w,target:b,previousTarget:N},E={e:w,target:N,nextTarget:b}),z=b&&V,j=N&&V,j&&(H&&this.fire(H,E),N.fire(k.evtOut,E)),z&&(W&&this.fire(W,$),b.fire(k.evtIn,$))},__onMouseWheel:function(b){this._cacheTransformEventData(b),this._handleEvent(b,"wheel"),this._resetTransformEventData()},_transformObject:function(b){var w=this.getPointer(b),k=this._currentTransform;k.reset=!1,k.shiftKey=b.shiftKey,k.altKey=b[this.centeredKey],this._performTransformAction(b,k,w),k.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(b,w,k){var $=k.x,E=k.y,N=w.action,j=!1,z=w.actionHandler;z&&(j=z(b,w,$,E)),N==="drag"&&j&&(w.target.isMoving=!0,this.setCursor(w.target.moveCursor||this.moveCursor)),w.actionPerformed=w.actionPerformed||j},_fire:l.controlsUtils.fireEvent,_setCursorFromEvent:function(b,w){if(!w)return this.setCursor(this.defaultCursor),!1;var k=w.hoverCursor||this.hoverCursor,$=this._activeObject&&this._activeObject.type==="activeSelection"?this._activeObject:null,E=(!$||!$.contains(w))&&w._findTargetCorner(this.getPointer(b,!0));E?this.setCursor(this.getCornerCursor(E,w,b)):(w.subTargetCheck&&this.targets.concat().reverse().map(function(N){k=N.hoverCursor||k}),this.setCursor(k))},getCornerCursor:function(b,w,k){var $=w.controls[b];return $.cursorStyleHandler(k,$,w)}})}(),function(){var y=Math.min,d=Math.max;l.util.object.extend(l.Canvas.prototype,{_shouldGroup:function(v,m){var f=this._activeObject;return f&&this._isSelectionKeyPressed(v)&&m&&m.selectable&&this.selection&&(f!==m||f.type==="activeSelection")&&!m.onSelect({e:v})},_handleGrouping:function(v,m){var f=this._activeObject;f.__corner||m===f&&(m=this.findTarget(v,!0),!m||!m.selectable)||(f&&f.type==="activeSelection"?this._updateActiveSelection(m,v):this._createActiveSelection(m,v))},_updateActiveSelection:function(v,m){var f=this._activeObject,p=f._objects.slice(0);f.contains(v)?(f.removeWithUpdate(v),this._hoveredTarget=v,this._hoveredTargets=this.targets.concat(),f.size()===1&&this._setActiveObject(f.item(0),m)):(f.addWithUpdate(v),this._hoveredTarget=f,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(p,m)},_createActiveSelection:function(v,m){var f=this.getActiveObjects(),p=this._createGroup(v);this._hoveredTarget=p,this._setActiveObject(p,m),this._fireSelectionEvents(f,m)},_createGroup:function(v){var m=this._objects,f=m.indexOf(this._activeObject)<m.indexOf(v),p=f?[this._activeObject,v]:[v,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new l.ActiveSelection(p,{canvas:this})},_groupSelectedObjects:function(v){var m=this._collectObjects(v),f;m.length===1?this.setActiveObject(m[0],v):m.length>1&&(f=new l.ActiveSelection(m.reverse(),{canvas:this}),this.setActiveObject(f,v))},_collectObjects:function(v){for(var m=[],f,p=this._groupSelector.ex,h=this._groupSelector.ey,b=p+this._groupSelector.left,w=h+this._groupSelector.top,k=new l.Point(y(p,b),y(h,w)),$=new l.Point(d(p,b),d(h,w)),E=!this.selectionFullyContained,N=p===b&&h===w,j=this._objects.length;j--&&(f=this._objects[j],!(!(!f||!f.selectable||!f.visible)&&(E&&f.intersectsWithRect(k,$,!0)||f.isContainedWithinRect(k,$,!0)||E&&f.containsPoint(k,null,!0)||E&&f.containsPoint($,null,!0))&&(m.push(f),N))););return m.length>1&&(m=m.filter(function(z){return!z.onSelect({e:v})})),m},_maybeGroupObjects:function(v){this.selection&&this._groupSelector&&this._groupSelectedObjects(v),this.setCursor(this.defaultCursor),this._groupSelector=null}})}(),function(){l.util.object.extend(l.StaticCanvas.prototype,{toDataURL:function(y){y||(y={});var d=y.format||"png",v=y.quality||1,m=(y.multiplier||1)*(y.enableRetinaScaling?this.getRetinaScaling():1),f=this.toCanvasElement(m,y);return l.util.toDataURL(f,d,v)},toCanvasElement:function(y,d){y=y||1,d=d||{};var v=(d.width||this.width)*y,m=(d.height||this.height)*y,f=this.getZoom(),p=this.width,h=this.height,b=f*y,w=this.viewportTransform,k=(w[4]-(d.left||0))*y,$=(w[5]-(d.top||0))*y,E=this.interactive,N=[b,0,0,b,k,$],j=this.enableRetinaScaling,z=l.util.createCanvasElement(),V=this.contextTop;return z.width=v,z.height=m,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=N,this.width=v,this.height=m,this.calcViewportBoundaries(),this.renderCanvas(z.getContext("2d"),this._objects),this.viewportTransform=w,this.width=p,this.height=h,this.calcViewportBoundaries(),this.interactive=E,this.enableRetinaScaling=j,this.contextTop=V,z}})}(),l.util.object.extend(l.StaticCanvas.prototype,{loadFromJSON:function(y,d,v){if(y){var m=typeof y=="string"?JSON.parse(y):l.util.object.clone(y),f=this,p=m.clipPath,h=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete m.clipPath,this._enlivenObjects(m.objects,function(b){f.clear(),f._setBgOverlay(m,function(){p?f._enlivenObjects([p],function(w){f.clipPath=w[0],f.__setupCanvas.call(f,m,b,h,d)}):f.__setupCanvas.call(f,m,b,h,d)})},v),this}},__setupCanvas:function(y,d,v,m){var f=this;d.forEach(function(p,h){f.insertAt(p,h)}),this.renderOnAddRemove=v,delete y.objects,delete y.backgroundImage,delete y.overlayImage,delete y.background,delete y.overlay,this._setOptions(y),this.renderAll(),m&&m()},_setBgOverlay:function(y,d){var v={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(!y.backgroundImage&&!y.overlayImage&&!y.background&&!y.overlay){d&&d();return}var m=function(){v.backgroundImage&&v.overlayImage&&v.backgroundColor&&v.overlayColor&&d&&d()};this.__setBgOverlay("backgroundImage",y.backgroundImage,v,m),this.__setBgOverlay("overlayImage",y.overlayImage,v,m),this.__setBgOverlay("backgroundColor",y.background,v,m),this.__setBgOverlay("overlayColor",y.overlay,v,m)},__setBgOverlay:function(y,d,v,m){var f=this;if(!d){v[y]=!0,m&&m();return}y==="backgroundImage"||y==="overlayImage"?l.util.enlivenObjects([d],function(p){f[y]=p[0],v[y]=!0,m&&m()}):this["set"+l.util.string.capitalize(y,!0)](d,function(){v[y]=!0,m&&m()})},_enlivenObjects:function(y,d,v){if(!y||y.length===0){d&&d([]);return}l.util.enlivenObjects(y,function(m){d&&d(m)},null,v)},_toDataURL:function(y,d){this.clone(function(v){d(v.toDataURL(y))})},_toDataURLWithMultiplier:function(y,d,v){this.clone(function(m){v(m.toDataURLWithMultiplier(y,d))})},clone:function(y,d){var v=JSON.stringify(this.toJSON(d));this.cloneWithoutData(function(m){m.loadFromJSON(v,function(){y&&y(m)})})},cloneWithoutData:function(y){var d=l.util.createCanvasElement();d.width=this.width,d.height=this.height;var v=new l.Canvas(d);this.backgroundImage?(v.setBackgroundImage(this.backgroundImage.src,function(){v.renderAll(),y&&y(v)}),v.backgroundImageOpacity=this.backgroundImageOpacity,v.backgroundImageStretch=this.backgroundImageStretch):y&&y(v)}}),function(y){var d=y.fabric||(y.fabric={}),v=d.util.object.extend,m=d.util.object.clone,f=d.util.toFixed,p=d.util.string.capitalize,h=d.util.degreesToRadians,b=!d.isLikelyNode,w=2;d.Object||(d.Object=d.util.createClass(d.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:b,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",activeOn:"down",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(k){k&&this.setOptions(k)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=d.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(k){var $=d.perfLimitSizeTotal,E=k.width,N=k.height,j=d.maxCacheSideLimit,z=d.minCacheSideLimit;if(E<=j&&N<=j&&E*N<=$)return E<z&&(k.width=z),N<z&&(k.height=z),k;var V=E/N,W=d.util.limitDimsByArea(V,$),H=d.util.capValue,U=H(z,W.x,j),Q=H(z,W.y,j);return E>U&&(k.zoomX/=E/U,k.width=U,k.capped=!0),N>Q&&(k.zoomY/=N/Q,k.height=Q,k.capped=!0),k},_getCacheCanvasDimensions:function(){var k=this.getTotalObjectScaling(),$=this._getTransformedDimensions(0,0),E=$.x*k.scaleX/this.scaleX,N=$.y*k.scaleY/this.scaleY;return{width:E+w,height:N+w,zoomX:k.scaleX,zoomY:k.scaleY,x:E,y:N}},_updateCacheCanvas:function(){var k=this.canvas;if(this.noScaleCache&&k&&k._currentTransform){var $=k._currentTransform.target,E=k._currentTransform.action;if(this===$&&E.slice&&E.slice(0,5)==="scale")return!1}var N=this._cacheCanvas,j=this._limitCacheSize(this._getCacheCanvasDimensions()),z=d.minCacheSideLimit,V=j.width,W=j.height,H,U,Q=j.zoomX,q=j.zoomY,ae=V!==this.cacheWidth||W!==this.cacheHeight,ne=this.zoomX!==Q||this.zoomY!==q,be=ae||ne,te=0,Ie=0,$e=!1;if(ae){var Me=this._cacheCanvas.width,ge=this._cacheCanvas.height,Se=V>Me||W>ge,fe=(V<Me*.9||W<ge*.9)&&Me>z&&ge>z;$e=Se||fe,Se&&!j.capped&&(V>z||W>z)&&(te=V*.1,Ie=W*.1)}return this instanceof d.Text&&this.path&&(be=!0,$e=!0,te+=this.getHeightOfLine(0)*this.zoomX,Ie+=this.getHeightOfLine(0)*this.zoomY),be?($e?(N.width=Math.ceil(V+te),N.height=Math.ceil(W+Ie)):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,N.width,N.height)),H=j.x/2,U=j.y/2,this.cacheTranslationX=Math.round(N.width/2-H)+H,this.cacheTranslationY=Math.round(N.height/2-U)+U,this.cacheWidth=V,this.cacheHeight=W,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(Q,q),this.zoomX=Q,this.zoomY=q,!0):!1},setOptions:function(k){this._setOptions(k),this._initGradient(k.fill,"fill"),this._initGradient(k.stroke,"stroke"),this._initPattern(k.fill,"fill"),this._initPattern(k.stroke,"stroke")},transform:function(k){var $=this.group&&!this.group._transformDone||this.group&&this.canvas&&k===this.canvas.contextTop,E=this.calcTransformMatrix(!$);k.transform(E[0],E[1],E[2],E[3],E[4],E[5])},toObject:function(k){var $=d.Object.NUM_FRACTION_DIGITS,E={type:this.type,version:d.version,originX:this.originX,originY:this.originY,left:f(this.left,$),top:f(this.top,$),width:f(this.width,$),height:f(this.height,$),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:f(this.strokeWidth,$),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:f(this.strokeMiterLimit,$),scaleX:f(this.scaleX,$),scaleY:f(this.scaleY,$),angle:f(this.angle,$),flipX:this.flipX,flipY:this.flipY,opacity:f(this.opacity,$),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:f(this.skewX,$),skewY:f(this.skewY,$)};return this.clipPath&&!this.clipPath.excludeFromExport&&(E.clipPath=this.clipPath.toObject(k),E.clipPath.inverted=this.clipPath.inverted,E.clipPath.absolutePositioned=this.clipPath.absolutePositioned),d.util.populateWithProperties(this,E,k),this.includeDefaultValues||(E=this._removeDefaultValues(E)),E},toDatalessObject:function(k){return this.toObject(k)},_removeDefaultValues:function(k){var $=d.util.getKlass(k.type).prototype,E=$.stateProperties;return E.forEach(function(N){if(!(N==="left"||N==="top")){k[N]===$[N]&&delete k[N];var j=Object.prototype.toString.call(k[N])==="[object Array]"&&Object.prototype.toString.call($[N])==="[object Array]";j&&k[N].length===0&&$[N].length===0&&delete k[N]}}),k},toString:function(){return"#<fabric."+p(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var k=d.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(k.scaleX),scaleY:Math.abs(k.scaleY)}},getTotalObjectScaling:function(){var k=this.getObjectScaling(),$=k.scaleX,E=k.scaleY;if(this.canvas){var N=this.canvas.getZoom(),j=this.canvas.getRetinaScaling();$*=N*j,E*=N*j}return{scaleX:$,scaleY:E}},getObjectOpacity:function(){var k=this.opacity;return this.group&&(k*=this.group.getObjectOpacity()),k},_set:function(k,$){var E=k==="scaleX"||k==="scaleY",N=this[k]!==$,j=!1;return E&&($=this._constrainScale($)),k==="scaleX"&&$<0?(this.flipX=!this.flipX,$*=-1):k==="scaleY"&&$<0?(this.flipY=!this.flipY,$*=-1):k==="shadow"&&$&&!($ instanceof d.Shadow)?$=new d.Shadow($):k==="dirty"&&this.group&&this.group.set("dirty",$),this[k]=$,N&&(j=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(k)>-1?(this.dirty=!0,j&&this.group.set("dirty",!0)):j&&this.stateProperties.indexOf(k)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:d.iMatrix.concat()},isNotVisible:function(){return this.opacity===0||!this.width&&!this.height&&this.strokeWidth===0||!this.visible},render:function(k){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(k.save(),this._setupCompositeOperation(k),this.drawSelectionBackground(k),this.transform(k),this._setOpacity(k),this._setShadow(k,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(k)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(k),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),k.restore())},renderCache:function(k){k=k||{},this._cacheCanvas||this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,k.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&this.stroke!=="transparent"&&this.strokeWidth!==0},hasFill:function(){return this.fill&&this.fill!=="transparent"},needsItsOwnCache:function(){return!!(this.paintFirst==="stroke"&&this.hasFill()&&this.hasStroke()&&typeof this.shadow=="object"||this.clipPath)},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(this.shadow.offsetX!==0||this.shadow.offsetY!==0)},drawClipPathOnCache:function(k){var $=this.clipPath;if(k.save(),$.inverted?k.globalCompositeOperation="destination-out":k.globalCompositeOperation="destination-in",$.absolutePositioned){var E=d.util.invertTransform(this.calcTransformMatrix());k.transform(E[0],E[1],E[2],E[3],E[4],E[5])}$.transform(k),k.scale(1/$.zoomX,1/$.zoomY),k.drawImage($._cacheCanvas,-$.cacheTranslationX,-$.cacheTranslationY),k.restore()},drawObject:function(k,$){var E=this.fill,N=this.stroke;$?(this.fill="black",this.stroke="",this._setClippingProperties(k)):this._renderBackground(k),this._render(k),this._drawClipPath(k),this.fill=E,this.stroke=N},_drawClipPath:function(k){var $=this.clipPath;$&&($.canvas=this.canvas,$.shouldCache(),$._transformDone=!0,$.renderCache({forClipping:!0}),this.drawClipPathOnCache(k))},drawCacheOnCanvas:function(k){k.scale(1/this.zoomX,1/this.zoomY),k.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(k){if(this.isNotVisible())return!1;if(this._cacheCanvas&&!k&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&!k){var $=this.cacheWidth/this.zoomX,E=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-$/2,-E/2,$,E)}return!0}return!1},_renderBackground:function(k){if(this.backgroundColor){var $=this._getNonTransformedDimensions();k.fillStyle=this.backgroundColor,k.fillRect(-$.x/2,-$.y/2,$.x,$.y),this._removeShadow(k)}},_setOpacity:function(k){this.group&&!this.group._transformDone?k.globalAlpha=this.getObjectOpacity():k.globalAlpha*=this.opacity},_setStrokeStyles:function(k,$){var E=$.stroke;E&&(k.lineWidth=$.strokeWidth,k.lineCap=$.strokeLineCap,k.lineDashOffset=$.strokeDashOffset,k.lineJoin=$.strokeLineJoin,k.miterLimit=$.strokeMiterLimit,E.toLive?E.gradientUnits==="percentage"||E.gradientTransform||E.patternTransform?this._applyPatternForTransformedGradient(k,E):(k.strokeStyle=E.toLive(k,this),this._applyPatternGradientTransform(k,E)):k.strokeStyle=$.stroke)},_setFillStyles:function(k,$){var E=$.fill;E&&(E.toLive?(k.fillStyle=E.toLive(k,this),this._applyPatternGradientTransform(k,$.fill)):k.fillStyle=E)},_setClippingProperties:function(k){k.globalAlpha=1,k.strokeStyle="transparent",k.fillStyle="#000000"},_setLineDash:function(k,$){!$||$.length===0||(1&$.length&&$.push.apply($,$),k.setLineDash($))},_renderControls:function(k,$){var E=this.getViewportTransform(),N=this.calcTransformMatrix(),j,z,V;$=$||{},z=typeof $.hasBorders<"u"?$.hasBorders:this.hasBorders,V=typeof $.hasControls<"u"?$.hasControls:this.hasControls,N=d.util.multiplyTransformMatrices(E,N),j=d.util.qrDecompose(N),k.save(),k.translate(j.translateX,j.translateY),k.lineWidth=1*this.borderScaleFactor,this.group||(k.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),k.rotate(h(j.angle)),$.forActiveSelection||this.group?z&&this.drawBordersInGroup(k,j,$):z&&this.drawBorders(k,$),V&&this.drawControls(k,$),k.restore()},_setShadow:function(k){if(this.shadow){var $=this.shadow,E=this.canvas,N,j=E&&E.viewportTransform[0]||1,z=E&&E.viewportTransform[3]||1;$.nonScaling?N={scaleX:1,scaleY:1}:N=this.getObjectScaling(),E&&E._isRetinaScaling()&&(j*=d.devicePixelRatio,z*=d.devicePixelRatio),k.shadowColor=$.color,k.shadowBlur=$.blur*d.browserShadowBlurConstant*(j+z)*(N.scaleX+N.scaleY)/4,k.shadowOffsetX=$.offsetX*j*N.scaleX,k.shadowOffsetY=$.offsetY*z*N.scaleY}},_removeShadow:function(k){this.shadow&&(k.shadowColor="",k.shadowBlur=k.shadowOffsetX=k.shadowOffsetY=0)},_applyPatternGradientTransform:function(k,$){if(!$||!$.toLive)return{offsetX:0,offsetY:0};var E=$.gradientTransform||$.patternTransform,N=-this.width/2+$.offsetX||0,j=-this.height/2+$.offsetY||0;return $.gradientUnits==="percentage"?k.transform(this.width,0,0,this.height,N,j):k.transform(1,0,0,1,N,j),E&&k.transform(E[0],E[1],E[2],E[3],E[4],E[5]),{offsetX:N,offsetY:j}},_renderPaintInOrder:function(k){this.paintFirst==="stroke"?(this._renderStroke(k),this._renderFill(k)):(this._renderFill(k),this._renderStroke(k))},_render:function(){},_renderFill:function(k){this.fill&&(k.save(),this._setFillStyles(k,this),this.fillRule==="evenodd"?k.fill("evenodd"):k.fill(),k.restore())},_renderStroke:function(k){if(!(!this.stroke||this.strokeWidth===0)){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(k),k.save(),this.strokeUniform&&this.group){var $=this.getObjectScaling();k.scale(1/$.scaleX,1/$.scaleY)}else this.strokeUniform&&k.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(k,this.strokeDashArray),this._setStrokeStyles(k,this),k.stroke(),k.restore()}},_applyPatternForTransformedGradient:function(k,$){var E=this._limitCacheSize(this._getCacheCanvasDimensions()),N=d.util.createCanvasElement(),j,z=this.canvas.getRetinaScaling(),V=E.x/this.scaleX/z,W=E.y/this.scaleY/z;N.width=V,N.height=W,j=N.getContext("2d"),j.beginPath(),j.moveTo(0,0),j.lineTo(V,0),j.lineTo(V,W),j.lineTo(0,W),j.closePath(),j.translate(V/2,W/2),j.scale(E.zoomX/this.scaleX/z,E.zoomY/this.scaleY/z),this._applyPatternGradientTransform(j,$),j.fillStyle=$.toLive(k),j.fill(),k.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),k.scale(z*this.scaleX/E.zoomX,z*this.scaleY/E.zoomY),k.strokeStyle=j.createPattern(N,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var k=d.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",k.scaleX),this.set("scaleY",k.scaleY),this.angle=k.angle,this.skewX=k.skewX,this.skewY=0}},_removeTransformMatrix:function(k){var $=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),$=d.util.transformPoint($,this.transformMatrix)),this.transformMatrix=null,k&&(this.scaleX*=k.scaleX,this.scaleY*=k.scaleY,this.cropX=k.cropX,this.cropY=k.cropY,$.x+=k.offsetLeft,$.y+=k.offsetTop,this.width=k.width,this.height=k.height),this.setPositionByOrigin($,"center","center")},clone:function(k,$){var E=this.toObject($);this.constructor.fromObject?this.constructor.fromObject(E,k):d.Object._fromObject("Object",E,k)},cloneAsImage:function(k,$){var E=this.toCanvasElement($);return k&&k(new d.Image(E)),this},toCanvasElement:function(k){k||(k={});var $=d.util,E=$.saveObjectTransform(this),N=this.group,j=this.shadow,z=Math.abs,V=(k.multiplier||1)*(k.enableRetinaScaling?d.devicePixelRatio:1);delete this.group,k.withoutTransform&&$.resetObjectTransform(this),k.withoutShadow&&(this.shadow=null);var W=d.util.createCanvasElement(),H=this.getBoundingRect(!0,!0),U=this.shadow,Q,q={x:0,y:0},ae,ne,be;U&&(ae=U.blur,U.nonScaling?Q={scaleX:1,scaleY:1}:Q=this.getObjectScaling(),q.x=2*Math.round(z(U.offsetX)+ae)*z(Q.scaleX),q.y=2*Math.round(z(U.offsetY)+ae)*z(Q.scaleY)),ne=H.width+q.x,be=H.height+q.y,W.width=Math.ceil(ne),W.height=Math.ceil(be);var te=new d.StaticCanvas(W,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});k.format==="jpeg"&&(te.backgroundColor="#fff"),this.setPositionByOrigin(new d.Point(te.width/2,te.height/2),"center","center");var Ie=this.canvas;te.add(this);var $e=te.toCanvasElement(V||1,k);return this.shadow=j,this.set("canvas",Ie),N&&(this.group=N),this.set(E).setCoords(),te._objects=[],te.dispose(),te=null,$e},toDataURL:function(k){return k||(k={}),d.util.toDataURL(this.toCanvasElement(k),k.format||"png",k.quality||1)},isType:function(k){return this.type===k},complexity:function(){return 1},toJSON:function(k){return this.toObject(k)},rotate:function(k){var $=(this.originX!=="center"||this.originY!=="center")&&this.centeredRotation;return $&&this._setOriginToCenter(),this.set("angle",k),$&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(k,$){$=$||this.canvas.getPointer(k);var E=new d.Point($.x,$.y),N=this._getLeftTopCoords();return this.angle&&(E=d.util.rotatePoint(E,N,h(-this.angle))),{x:E.x-N.x,y:E.y-N.y}},_setupCompositeOperation:function(k){this.globalCompositeOperation&&(k.globalCompositeOperation=this.globalCompositeOperation)}}),d.util.createAccessors&&d.util.createAccessors(d.Object),v(d.Object.prototype,d.Observable),d.Object.NUM_FRACTION_DIGITS=2,d.Object._fromObject=function(k,$,E,N){var j=d[k];$=m($,!0),d.util.enlivenPatterns([$.fill,$.stroke],function(z){typeof z[0]<"u"&&($.fill=z[0]),typeof z[1]<"u"&&($.stroke=z[1]),d.util.enlivenObjects([$.clipPath],function(V){$.clipPath=V[0];var W=N?new j($[N],$):new j($);E&&E(W)})})},d.Object.__uid=0)}(u),function(){var y=l.util.degreesToRadians,d={left:-.5,center:0,right:.5},v={top:-.5,center:0,bottom:.5};l.util.object.extend(l.Object.prototype,{translateToGivenOrigin:function(m,f,p,h,b){var w=m.x,k=m.y,$,E,N;return typeof f=="string"?f=d[f]:f-=.5,typeof h=="string"?h=d[h]:h-=.5,$=h-f,typeof p=="string"?p=v[p]:p-=.5,typeof b=="string"?b=v[b]:b-=.5,E=b-p,($||E)&&(N=this._getTransformedDimensions(),w=m.x+$*N.x,k=m.y+E*N.y),new l.Point(w,k)},translateToCenterPoint:function(m,f,p){var h=this.translateToGivenOrigin(m,f,p,"center","center");return this.angle?l.util.rotatePoint(h,m,y(this.angle)):h},translateToOriginPoint:function(m,f,p){var h=this.translateToGivenOrigin(m,"center","center",f,p);return this.angle?l.util.rotatePoint(h,m,y(this.angle)):h},getCenterPoint:function(){var m=new l.Point(this.left,this.top);return this.translateToCenterPoint(m,this.originX,this.originY)},getPointByOrigin:function(m,f){var p=this.getCenterPoint();return this.translateToOriginPoint(p,m,f)},toLocalPoint:function(m,f,p){var h=this.getCenterPoint(),b,w;return typeof f<"u"&&typeof p<"u"?b=this.translateToGivenOrigin(h,"center","center",f,p):b=new l.Point(this.left,this.top),w=new l.Point(m.x,m.y),this.angle&&(w=l.util.rotatePoint(w,h,-y(this.angle))),w.subtractEquals(b)},setPositionByOrigin:function(m,f,p){var h=this.translateToCenterPoint(m,f,p),b=this.translateToOriginPoint(h,this.originX,this.originY);this.set("left",b.x),this.set("top",b.y)},adjustPosition:function(m){var f=y(this.angle),p=this.getScaledWidth(),h=l.util.cos(f)*p,b=l.util.sin(f)*p,w,k;typeof this.originX=="string"?w=d[this.originX]:w=this.originX-.5,typeof m=="string"?k=d[m]:k=m-.5,this.left+=h*(k-w),this.top+=b*(k-w),this.setCoords(),this.originX=m},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var m=this.getCenterPoint();this.originX="center",this.originY="center",this.left=m.x,this.top=m.y},_resetOrigin:function(){var m=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=m.x,this.top=m.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){function y(p){return[new l.Point(p.tl.x,p.tl.y),new l.Point(p.tr.x,p.tr.y),new l.Point(p.br.x,p.br.y),new l.Point(p.bl.x,p.bl.y)]}var d=l.util,v=d.degreesToRadians,m=d.multiplyTransformMatrices,f=d.transformPoint;d.object.extend(l.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(p,h){return h?p?this.calcACoords():this.calcLineCoords():((!this.aCoords||!this.lineCoords)&&this.setCoords(!0),p?this.aCoords:this.lineCoords)},getCoords:function(p,h){return y(this._getCoords(p,h))},intersectsWithRect:function(p,h,b,w){var k=this.getCoords(b,w),$=l.Intersection.intersectPolygonRectangle(k,p,h);return $.status==="Intersection"},intersectsWithObject:function(p,h,b){var w=l.Intersection.intersectPolygonPolygon(this.getCoords(h,b),p.getCoords(h,b));return w.status==="Intersection"||p.isContainedWithinObject(this,h,b)||this.isContainedWithinObject(p,h,b)},isContainedWithinObject:function(p,h,b){for(var w=this.getCoords(h,b),k=h?p.aCoords:p.lineCoords,$=0,E=p._getImageLines(k);$<4;$++)if(!p.containsPoint(w[$],E))return!1;return!0},isContainedWithinRect:function(p,h,b,w){var k=this.getBoundingRect(b,w);return k.left>=p.x&&k.left+k.width<=h.x&&k.top>=p.y&&k.top+k.height<=h.y},containsPoint:function(p,$,b,w){var k=this._getCoords(b,w),$=$||this._getImageLines(k),E=this._findCrossPoints(p,$);return E!==0&&E%2===1},isOnScreen:function(p){if(!this.canvas)return!1;var h=this.canvas.vptCoords.tl,b=this.canvas.vptCoords.br,w=this.getCoords(!0,p);return w.some(function(k){return k.x<=b.x&&k.x>=h.x&&k.y<=b.y&&k.y>=h.y})||this.intersectsWithRect(h,b,!0,p)?!0:this._containsCenterOfCanvas(h,b,p)},_containsCenterOfCanvas:function(p,h,b){var w={x:(p.x+h.x)/2,y:(p.y+h.y)/2};return!!this.containsPoint(w,null,!0,b)},isPartiallyOnScreen:function(p){if(!this.canvas)return!1;var h=this.canvas.vptCoords.tl,b=this.canvas.vptCoords.br;if(this.intersectsWithRect(h,b,!0,p))return!0;var w=this.getCoords(!0,p).every(function(k){return(k.x>=b.x||k.x<=h.x)&&(k.y>=b.y||k.y<=h.y)});return w&&this._containsCenterOfCanvas(h,b,p)},_getImageLines:function(p){var h={topline:{o:p.tl,d:p.tr},rightline:{o:p.tr,d:p.br},bottomline:{o:p.br,d:p.bl},leftline:{o:p.bl,d:p.tl}};return h},_findCrossPoints:function(p,h){var b,w,k,$,E,N=0,j;for(var z in h)if(j=h[z],!(j.o.y<p.y&&j.d.y<p.y)&&!(j.o.y>=p.y&&j.d.y>=p.y)&&(j.o.x===j.d.x&&j.o.x>=p.x?E=j.o.x:(b=0,w=(j.d.y-j.o.y)/(j.d.x-j.o.x),k=p.y-b*p.x,$=j.o.y-w*j.o.x,E=-(k-$)/(b-w)),E>=p.x&&(N+=1),N===2))break;return N},getBoundingRect:function(p,h){var b=this.getCoords(p,h);return d.makeBoundingBoxFromPoints(b)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(p){return Math.abs(p)<this.minScaleLimit?p<0?-this.minScaleLimit:this.minScaleLimit:p===0?1e-4:p},scale:function(p){return this._set("scaleX",p),this._set("scaleY",p),this.setCoords()},scaleToWidth:function(p,h){var b=this.getBoundingRect(h).width/this.getScaledWidth();return this.scale(p/this.width/b)},scaleToHeight:function(p,h){var b=this.getBoundingRect(h).height/this.getScaledHeight();return this.scale(p/this.height/b)},calcCoords:function(p){return p?this.calcACoords():this.calcOCoords()},calcLineCoords:function(){var p=this.getViewportTransform(),h=this.padding,b=v(this.angle),w=d.cos(b),k=d.sin(b),$=w*h,E=k*h,N=$+E,j=$-E,z=this.calcACoords(),V={tl:f(z.tl,p),tr:f(z.tr,p),bl:f(z.bl,p),br:f(z.br,p)};return h&&(V.tl.x-=j,V.tl.y-=N,V.tr.x+=N,V.tr.y-=j,V.bl.x-=N,V.bl.y+=j,V.br.x+=j,V.br.y+=N),V},calcOCoords:function(){var p=this._calcRotateMatrix(),h=this._calcTranslateMatrix(),b=this.getViewportTransform(),w=m(b,h),k=m(w,p),k=m(k,[1/b[0],0,0,1/b[3],0,0]),$=this._calculateCurrentDimensions(),E={};return this.forEachControl(function(N,j,z){E[j]=N.positionHandler($,k,z)}),E},calcACoords:function(){var p=this._calcRotateMatrix(),h=this._calcTranslateMatrix(),b=m(h,p),w=this._getTransformedDimensions(),k=w.x/2,$=w.y/2;return{tl:f({x:-k,y:-$},b),tr:f({x:k,y:-$},b),bl:f({x:-k,y:$},b),br:f({x:k,y:$},b)}},setCoords:function(p){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),p?this:(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords(),this)},_calcRotateMatrix:function(){return d.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var p=this.getCenterPoint();return[1,0,0,1,p.x,p.y]},transformMatrixKey:function(p){var h="_",b="";return!p&&this.group&&(b=this.group.transformMatrixKey(p)+h),b+this.top+h+this.left+h+this.scaleX+h+this.scaleY+h+this.skewX+h+this.skewY+h+this.angle+h+this.originX+h+this.originY+h+this.width+h+this.height+h+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(p){var h=this.calcOwnMatrix();if(p||!this.group)return h;var b=this.transformMatrixKey(p),w=this.matrixCache||(this.matrixCache={});return w.key===b?w.value:(this.group&&(h=m(this.group.calcTransformMatrix(!1),h)),w.key=b,w.value=h,h)},calcOwnMatrix:function(){var p=this.transformMatrixKey(!0),h=this.ownMatrixCache||(this.ownMatrixCache={});if(h.key===p)return h.value;var b=this._calcTranslateMatrix(),w={angle:this.angle,translateX:b[4],translateY:b[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return h.key=p,h.value=d.composeMatrix(w),h.value},_calcDimensionsTransformMatrix:function(p,h,b){return d.calcDimensionsMatrix({skewX:p,skewY:h,scaleX:this.scaleX*(b&&this.flipX?-1:1),scaleY:this.scaleY*(b&&this.flipY?-1:1)})},_getNonTransformedDimensions:function(){var p=this.strokeWidth,h=this.width+p,b=this.height+p;return{x:h,y:b}},_getTransformedDimensions:function(p,h){typeof p>"u"&&(p=this.skewX),typeof h>"u"&&(h=this.skewY);var b,w,k,$=p===0&&h===0;if(this.strokeUniform?(w=this.width,k=this.height):(b=this._getNonTransformedDimensions(),w=b.x,k=b.y),$)return this._finalizeDimensions(w*this.scaleX,k*this.scaleY);var E=d.sizeAfterTransform(w,k,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:p,skewY:h});return this._finalizeDimensions(E.x,E.y)},_finalizeDimensions:function(p,h){return this.strokeUniform?{x:p+this.strokeWidth,y:h+this.strokeWidth}:{x:p,y:h}},_calculateCurrentDimensions:function(){var p=this.getViewportTransform(),h=this._getTransformedDimensions(),b=f(h,p,!0);return b.scalarAdd(2*this.padding)}})}(),l.util.object.extend(l.Object.prototype,{sendToBack:function(){return this.group?l.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?l.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(y){return this.group?l.StaticCanvas.prototype.sendBackwards.call(this.group,this,y):this.canvas&&this.canvas.sendBackwards(this,y),this},bringForward:function(y){return this.group?l.StaticCanvas.prototype.bringForward.call(this.group,this,y):this.canvas&&this.canvas.bringForward(this,y),this},moveTo:function(y){return this.group&&this.group.type!=="activeSelection"?l.StaticCanvas.prototype.moveTo.call(this.group,this,y):this.canvas&&this.canvas.moveTo(this,y),this}}),function(){function y(v,m){if(m){if(m.toLive)return v+": url(#SVGID_"+m.id+"); ";var f=new l.Color(m),p=v+": "+f.toRgb()+"; ",h=f.getAlpha();return h!==1&&(p+=v+"-opacity: "+h.toString()+"; "),p}else return v+": none; "}var d=l.util.toFixed;l.util.object.extend(l.Object.prototype,{getSvgStyles:function(v){var m=this.fillRule?this.fillRule:"nonzero",f=this.strokeWidth?this.strokeWidth:"0",p=this.strokeDashArray?this.strokeDashArray.join(" "):"none",h=this.strokeDashOffset?this.strokeDashOffset:"0",b=this.strokeLineCap?this.strokeLineCap:"butt",w=this.strokeLineJoin?this.strokeLineJoin:"miter",k=this.strokeMiterLimit?this.strokeMiterLimit:"4",$=typeof this.opacity<"u"?this.opacity:"1",E=this.visible?"":" visibility: hidden;",N=v?"":this.getSvgFilter(),j=y("fill",this.fill),z=y("stroke",this.stroke);return[z,"stroke-width: ",f,"; ","stroke-dasharray: ",p,"; ","stroke-linecap: ",b,"; ","stroke-dashoffset: ",h,"; ","stroke-linejoin: ",w,"; ","stroke-miterlimit: ",k,"; ",j,"fill-rule: ",m,"; ","opacity: ",$,";",N,E].join("")},getSvgSpanStyles:function(v,m){var f="; ",h=v.fontFamily?"font-family: "+(v.fontFamily.indexOf("'")===-1&&v.fontFamily.indexOf('"')===-1?"'"+v.fontFamily+"'":v.fontFamily)+f:"",p=v.strokeWidth?"stroke-width: "+v.strokeWidth+f:"",h=h,b=v.fontSize?"font-size: "+v.fontSize+"px"+f:"",w=v.fontStyle?"font-style: "+v.fontStyle+f:"",k=v.fontWeight?"font-weight: "+v.fontWeight+f:"",$=v.fill?y("fill",v.fill):"",E=v.stroke?y("stroke",v.stroke):"",N=this.getSvgTextDecoration(v),j=v.deltaY?"baseline-shift: "+-v.deltaY+"; ":"";return N&&(N="text-decoration: "+N+f),[E,p,h,b,w,k,N,$,j,m?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(v){return["overline","underline","line-through"].filter(function(m){return v[m.replace("-","")]}).join(" ")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgCommons:function(){return[this.id?'id="'+this.id+'" ':"",this.clipPath?'clip-path="url(#'+this.clipPath.clipPathId+')" ':""].join("")},getSvgTransform:function(v,m){var f=v?this.calcTransformMatrix():this.calcOwnMatrix(),p='transform="'+l.util.matrixToSVG(f);return p+(m||"")+'" '},_setSVGBg:function(v){if(this.backgroundColor){var m=l.Object.NUM_FRACTION_DIGITS;v.push(" <rect ",this._getFillAttributes(this.backgroundColor),' x="',d(-this.width/2,m),'" y="',d(-this.height/2,m),'" width="',d(this.width,m),'" height="',d(this.height,m),`"></rect>
  147. `)}},toSVG:function(v){return this._createBaseSVGMarkup(this._toSVG(v),{reviver:v})},toClipPathSVG:function(v){return" "+this._createBaseClipPathSVGMarkup(this._toSVG(v),{reviver:v})},_createBaseClipPathSVGMarkup:function(v,m){m=m||{};var f=m.reviver,p=m.additionalTransform||"",h=[this.getSvgTransform(!0,p),this.getSvgCommons()].join(""),b=v.indexOf("COMMON_PARTS");return v[b]=h,f?f(v.join("")):v.join("")},_createBaseSVGMarkup:function(v,m){m=m||{};var f=m.noStyle,p=m.reviver,h=f?"":'style="'+this.getSvgStyles()+'" ',b=m.withShadow?'style="'+this.getSvgFilter()+'" ':"",w=this.clipPath,k=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",$=w&&w.absolutePositioned,E=this.stroke,N=this.fill,j=this.shadow,z,V=[],W,H=v.indexOf("COMMON_PARTS"),U=m.additionalTransform;return w&&(w.clipPathId="CLIPPATH_"+l.Object.__uid++,W='<clipPath id="'+w.clipPathId+`" >
  148. `+w.toClipPathSVG(p)+`</clipPath>
  149. `),$&&V.push("<g ",b,this.getSvgCommons(),` >
  150. `),V.push("<g ",this.getSvgTransform(!1),$?"":b+this.getSvgCommons(),` >
  151. `),z=[h,k,f?"":this.addPaintOrder()," ",U?'transform="'+U+'" ':""].join(""),v[H]=z,N&&N.toLive&&V.push(N.toSVG(this)),E&&E.toLive&&V.push(E.toSVG(this)),j&&V.push(j.toSVG(this)),w&&V.push(W),V.push(v.join("")),V.push(`</g>
  152. `),$&&V.push(`</g>
  153. `),p?p(V.join("")):V.join("")},addPaintOrder:function(){return this.paintFirst!=="fill"?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var y=l.util.object.extend,d="stateProperties";function v(f,p,h){var b={},w=!0;h.forEach(function(k){b[k]=f[k]}),y(f[p],b,w)}function m(f,p,h){if(f===p)return!0;if(Array.isArray(f)){if(!Array.isArray(p)||f.length!==p.length)return!1;for(var b=0,w=f.length;b<w;b++)if(!m(f[b],p[b]))return!1;return!0}else if(f&&typeof f=="object"){var k=Object.keys(f),$;if(!p||typeof p!="object"||!h&&k.length!==Object.keys(p).length)return!1;for(var b=0,w=k.length;b<w;b++)if($=k[b],!($==="canvas"||$==="group")&&!m(f[$],p[$]))return!1;return!0}}l.util.object.extend(l.Object.prototype,{hasStateChanged:function(f){f=f||d;var p="_"+f;return Object.keys(this[p]).length<this[f].length?!0:!m(this[p],this,!0)},saveState:function(f){var p=f&&f.propertySet||d,h="_"+p;return this[h]?(v(this,h,this[p]),f&&f.stateProperties&&v(this,h,f.stateProperties),this):this.setupState(f)},setupState:function(f){f=f||{};var p=f.propertySet||d;return f.propertySet=p,this["_"+p]={},this.saveState(f),this}})}(),function(){var y=l.util.degreesToRadians;l.util.object.extend(l.Object.prototype,{_findTargetCorner:function(d,v){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var m=d.x,f=d.y,p,h,b=Object.keys(this.oCoords),w=b.length-1,k;for(this.__corner=0;w>=0;w--)if(k=b[w],!!this.isControlVisible(k)&&(h=this._getImageLines(v?this.oCoords[k].touchCorner:this.oCoords[k].corner),p=this._findCrossPoints({x:m,y:f},h),p!==0&&p%2===1))return this.__corner=k,k;return!1},forEachControl:function(d){for(var v in this.controls)d(this.controls[v],v,this)},_setCornerCoords:function(){var d=this.oCoords;for(var v in d){var m=this.controls[v];d[v].corner=m.calcCornerCoords(this.angle,this.cornerSize,d[v].x,d[v].y,!1),d[v].touchCorner=m.calcCornerCoords(this.angle,this.touchCornerSize,d[v].x,d[v].y,!0)}},drawSelectionBackground:function(d){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;d.save();var v=this.getCenterPoint(),m=this._calculateCurrentDimensions(),f=this.canvas.viewportTransform;return d.translate(v.x,v.y),d.scale(1/f[0],1/f[3]),d.rotate(y(this.angle)),d.fillStyle=this.selectionBackgroundColor,d.fillRect(-m.x/2,-m.y/2,m.x,m.y),d.restore(),this},drawBorders:function(d,v){v=v||{};var m=this._calculateCurrentDimensions(),f=this.borderScaleFactor,p=m.x+f,h=m.y+f,b=typeof v.hasControls<"u"?v.hasControls:this.hasControls,w=!1;return d.save(),d.strokeStyle=v.borderColor||this.borderColor,this._setLineDash(d,v.borderDashArray||this.borderDashArray),d.strokeRect(-p/2,-h/2,p,h),b&&(d.beginPath(),this.forEachControl(function(k,$,E){k.withConnection&&k.getVisibility(E,$)&&(w=!0,d.moveTo(k.x*p,k.y*h),d.lineTo(k.x*p+k.offsetX,k.y*h+k.offsetY))}),w&&d.stroke()),d.restore(),this},drawBordersInGroup:function(d,v,m){m=m||{};var f=l.util.sizeAfterTransform(this.width,this.height,v),p=this.strokeWidth,h=this.strokeUniform,b=this.borderScaleFactor,w=f.x+p*(h?this.canvas.getZoom():v.scaleX)+b,k=f.y+p*(h?this.canvas.getZoom():v.scaleY)+b;return d.save(),this._setLineDash(d,m.borderDashArray||this.borderDashArray),d.strokeStyle=m.borderColor||this.borderColor,d.strokeRect(-w/2,-k/2,w,k),d.restore(),this},drawControls:function(d,v){v=v||{},d.save();var m=this.canvas.getRetinaScaling(),f,p;return d.setTransform(m,0,0,m,0,0),d.strokeStyle=d.fillStyle=v.cornerColor||this.cornerColor,this.transparentCorners||(d.strokeStyle=v.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(d,v.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(f=this.group.calcTransformMatrix()),this.forEachControl(function(h,b,w){p=w.oCoords[b],h.getVisibility(w,b)&&(f&&(p=l.util.transformPoint(p,f)),h.render(d,p.x,p.y,v,w))}),d.restore(),this},isControlVisible:function(d){return this.controls[d]&&this.controls[d].getVisibility(this,d)},setControlVisible:function(d,v){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[d]=v,this},setControlsVisibility:function(d){d||(d={});for(var v in d)this.setControlVisible(v,d[v]);return this},onDeselect:function(){},onSelect:function(){}})}(),l.util.object.extend(l.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(y,d){d=d||{};var v=function(){},m=d.onComplete||v,f=d.onChange||v,p=this;return l.util.animate({startValue:y.left,endValue:this.getCenter().left,duration:this.FX_DURATION,onChange:function(h){y.set("left",h),p.requestRenderAll(),f()},onComplete:function(){y.setCoords(),m()}}),this},fxCenterObjectV:function(y,d){d=d||{};var v=function(){},m=d.onComplete||v,f=d.onChange||v,p=this;return l.util.animate({startValue:y.top,endValue:this.getCenter().top,duration:this.FX_DURATION,onChange:function(h){y.set("top",h),p.requestRenderAll(),f()},onComplete:function(){y.setCoords(),m()}}),this},fxRemove:function(y,d){d=d||{};var v=function(){},m=d.onComplete||v,f=d.onChange||v,p=this;return l.util.animate({startValue:y.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(h){y.set("opacity",h),p.requestRenderAll(),f()},onComplete:function(){p.remove(y),m()}}),this}}),l.util.object.extend(l.Object.prototype,{animate:function(){if(arguments[0]&&typeof arguments[0]=="object"){var y=[],d,v;for(d in arguments[0])y.push(d);for(var m=0,f=y.length;m<f;m++)d=y[m],v=m!==f-1,this._animate(d,arguments[0][d],arguments[1],v)}else this._animate.apply(this,arguments);return this},_animate:function(y,d,v,m){var f=this,p;d=d.toString(),v?v=l.util.object.clone(v):v={},~y.indexOf(".")&&(p=y.split("."));var h=f.colorProperties.indexOf(y)>-1||p&&f.colorProperties.indexOf(p[1])>-1,b=p?this.get(p[0])[p[1]]:this.get(y);"from"in v||(v.from=b),h||(~d.indexOf("=")?d=b+parseFloat(d.replace("=","")):d=parseFloat(d));var w={startValue:v.from,endValue:d,byValue:v.by,easing:v.easing,duration:v.duration,abort:v.abort&&function(k,$,E){return v.abort.call(f,k,$,E)},onChange:function(k,$,E){p?f[p[0]][p[1]]=k:f.set(y,k),!m&&v.onChange&&v.onChange(k,$,E)},onComplete:function(k,$,E){m||(f.setCoords(),v.onComplete&&v.onComplete(k,$,E))}};return h?l.util.animateColor(w.startValue,w.endValue,w.duration,w):l.util.animate(w)}}),function(y){var d=y.fabric||(y.fabric={}),v=d.util.object.extend,m=d.util.object.clone,f={x1:1,x2:1,y1:1,y2:1};if(d.Line){d.warn("fabric.Line is already defined");return}d.Line=d.util.createClass(d.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:d.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(h,b){h||(h=[0,0,0,0]),this.callSuper("initialize",b),this.set("x1",h[0]),this.set("y1",h[1]),this.set("x2",h[2]),this.set("y2",h[3]),this._setWidthHeight(b)},_setWidthHeight:function(h){h||(h={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in h?h.left:this._getLeftToOriginX(),this.top="top"in h?h.top:this._getTopToOriginY()},_set:function(h,b){return this.callSuper("_set",h,b),typeof f[h]<"u"&&this._setWidthHeight(),this},_getLeftToOriginX:p({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:p({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(h){h.beginPath();var b=this.calcLinePoints();h.moveTo(b.x1,b.y1),h.lineTo(b.x2,b.y2),h.lineWidth=this.strokeWidth;var w=h.strokeStyle;h.strokeStyle=this.stroke||h.fillStyle,this.stroke&&this._renderStroke(h),h.strokeStyle=w},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(h){return v(this.callSuper("toObject",h),this.calcLinePoints())},_getNonTransformedDimensions:function(){var h=this.callSuper("_getNonTransformedDimensions");return this.strokeLineCap==="butt"&&(this.width===0&&(h.y-=this.strokeWidth),this.height===0&&(h.x-=this.strokeWidth)),h},calcLinePoints:function(){var h=this.x1<=this.x2?-1:1,b=this.y1<=this.y2?-1:1,w=h*this.width*.5,k=b*this.height*.5,$=h*this.width*-.5,E=b*this.height*-.5;return{x1:w,x2:$,y1:k,y2:E}},_toSVG:function(){var h=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',h.x1,'" y1="',h.y1,'" x2="',h.x2,'" y2="',h.y2,`" />
  154. `]}}),d.Line.ATTRIBUTE_NAMES=d.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),d.Line.fromElement=function(h,b,w){w=w||{};var k=d.parseAttributes(h,d.Line.ATTRIBUTE_NAMES),$=[k.x1||0,k.y1||0,k.x2||0,k.y2||0];b(new d.Line($,v(k,w)))},d.Line.fromObject=function(h,b){function w($){delete $.points,b&&b($)}var k=m(h,!0);k.points=[h.x1,h.y1,h.x2,h.y2],d.Object._fromObject("Line",k,w,"points")};function p(h,b){var w=h.origin,k=h.axis1,$=h.axis2,E=h.dimension,N=b.nearest,j=b.center,z=b.farthest;return function(){switch(this.get(w)){case N:return Math.min(this.get(k),this.get($));case j:return Math.min(this.get(k),this.get($))+.5*this.get(E);case z:return Math.max(this.get(k),this.get($))}}}}(u),function(y){var d=y.fabric||(y.fabric={}),v=Math.PI;if(d.Circle){d.warn("fabric.Circle is already defined.");return}d.Circle=d.util.createClass(d.Object,{type:"circle",radius:0,startAngle:0,endAngle:v*2,cacheProperties:d.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(f,p){return this.callSuper("_set",f,p),f==="radius"&&this.setRadius(p),this},toObject:function(f){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(f))},_toSVG:function(){var f,p=0,h=0,b=(this.endAngle-this.startAngle)%(2*v);if(b===0)f=["<circle ","COMMON_PARTS",'cx="'+p+'" cy="'+h+'" ','r="',this.radius,`" />
  155. `];else{var w=d.util.cos(this.startAngle)*this.radius,k=d.util.sin(this.startAngle)*this.radius,$=d.util.cos(this.endAngle)*this.radius,E=d.util.sin(this.endAngle)*this.radius,N=b>v?"1":"0";f=['<path d="M '+w+" "+k," A "+this.radius+" "+this.radius," 0 ",+N+" 1"," "+$+" "+E,'" ',"COMMON_PARTS",` />
  156. `]}return f},_render:function(f){f.beginPath(),f.arc(0,0,this.radius,this.startAngle,this.endAngle,!1),this._renderPaintInOrder(f)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(f){return this.radius=f,this.set("width",f*2).set("height",f*2)}}),d.Circle.ATTRIBUTE_NAMES=d.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),d.Circle.fromElement=function(f,p){var h=d.parseAttributes(f,d.Circle.ATTRIBUTE_NAMES);if(!m(h))throw new Error("value of `r` attribute is required and can not be negative");h.left=(h.left||0)-h.radius,h.top=(h.top||0)-h.radius,p(new d.Circle(h))};function m(f){return"radius"in f&&f.radius>=0}d.Circle.fromObject=function(f,p){d.Object._fromObject("Circle",f,p)}}(u),function(y){var d=y.fabric||(y.fabric={});if(d.Triangle){d.warn("fabric.Triangle is already defined");return}d.Triangle=d.util.createClass(d.Object,{type:"triangle",width:100,height:100,_render:function(v){var m=this.width/2,f=this.height/2;v.beginPath(),v.moveTo(-m,f),v.lineTo(0,-f),v.lineTo(m,f),v.closePath(),this._renderPaintInOrder(v)},_toSVG:function(){var v=this.width/2,m=this.height/2,f=[-v+" "+m,"0 "+-m,v+" "+m].join(",");return["<polygon ","COMMON_PARTS",'points="',f,'" />']}}),d.Triangle.fromObject=function(v,m){return d.Object._fromObject("Triangle",v,m)}}(u),function(y){var d=y.fabric||(y.fabric={}),v=Math.PI*2;if(d.Ellipse){d.warn("fabric.Ellipse is already defined.");return}d.Ellipse=d.util.createClass(d.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:d.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(m){this.callSuper("initialize",m),this.set("rx",m&&m.rx||0),this.set("ry",m&&m.ry||0)},_set:function(m,f){switch(this.callSuper("_set",m,f),m){case"rx":this.rx=f,this.set("width",f*2);break;case"ry":this.ry=f,this.set("height",f*2);break}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(m){return this.callSuper("toObject",["rx","ry"].concat(m))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,`" />
  157. `]},_render:function(m){m.beginPath(),m.save(),m.transform(1,0,0,this.ry/this.rx,0,0),m.arc(0,0,this.rx,0,v,!1),m.restore(),this._renderPaintInOrder(m)}}),d.Ellipse.ATTRIBUTE_NAMES=d.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),d.Ellipse.fromElement=function(m,f){var p=d.parseAttributes(m,d.Ellipse.ATTRIBUTE_NAMES);p.left=(p.left||0)-p.rx,p.top=(p.top||0)-p.ry,f(new d.Ellipse(p))},d.Ellipse.fromObject=function(m,f){d.Object._fromObject("Ellipse",m,f)}}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.util.object.extend;if(d.Rect){d.warn("fabric.Rect is already defined");return}d.Rect=d.util.createClass(d.Object,{stateProperties:d.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:d.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(m){this.callSuper("initialize",m),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(m){var f=this.rx?Math.min(this.rx,this.width/2):0,p=this.ry?Math.min(this.ry,this.height/2):0,h=this.width,b=this.height,w=-this.width/2,k=-this.height/2,$=f!==0||p!==0,E=1-.5522847498;m.beginPath(),m.moveTo(w+f,k),m.lineTo(w+h-f,k),$&&m.bezierCurveTo(w+h-E*f,k,w+h,k+E*p,w+h,k+p),m.lineTo(w+h,k+b-p),$&&m.bezierCurveTo(w+h,k+b-E*p,w+h-E*f,k+b,w+h-f,k+b),m.lineTo(w+f,k+b),$&&m.bezierCurveTo(w+E*f,k+b,w,k+b-E*p,w,k+b-p),m.lineTo(w,k+p),$&&m.bezierCurveTo(w,k+E*p,w+E*f,k,w+f,k),m.closePath(),this._renderPaintInOrder(m)},toObject:function(m){return this.callSuper("toObject",["rx","ry"].concat(m))},_toSVG:function(){var m=-this.width/2,f=-this.height/2;return["<rect ","COMMON_PARTS",'x="',m,'" y="',f,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,`" />
  158. `]}}),d.Rect.ATTRIBUTE_NAMES=d.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),d.Rect.fromElement=function(m,f,p){if(!m)return f(null);p=p||{};var h=d.parseAttributes(m,d.Rect.ATTRIBUTE_NAMES);h.left=h.left||0,h.top=h.top||0,h.height=h.height||0,h.width=h.width||0;var b=new d.Rect(v(p?d.util.object.clone(p):{},h));b.visible=b.visible&&b.width>0&&b.height>0,f(b)},d.Rect.fromObject=function(m,f){return d.Object._fromObject("Rect",m,f)}}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.util.object.extend,m=d.util.array.min,f=d.util.array.max,p=d.util.toFixed;if(d.Polyline){d.warn("fabric.Polyline is already defined");return}d.Polyline=d.util.createClass(d.Object,{type:"polyline",points:null,cacheProperties:d.Object.prototype.cacheProperties.concat("points"),initialize:function(h,b){b=b||{},this.points=h||[],this.callSuper("initialize",b),this._setPositionDimensions(b)},_setPositionDimensions:function(h){var b=this._calcDimensions(h),w;this.width=b.width,this.height=b.height,h.fromSVG||(w=this.translateToGivenOrigin({x:b.left-this.strokeWidth/2,y:b.top-this.strokeWidth/2},"left","top",this.originX,this.originY)),typeof h.left>"u"&&(this.left=h.fromSVG?b.left:w.x),typeof h.top>"u"&&(this.top=h.fromSVG?b.top:w.y),this.pathOffset={x:b.left+this.width/2,y:b.top+this.height/2}},_calcDimensions:function(){var h=this.points,b=m(h,"x")||0,w=m(h,"y")||0,k=f(h,"x")||0,$=f(h,"y")||0,E=k-b,N=$-w;return{left:b,top:w,width:E,height:N}},toObject:function(h){return v(this.callSuper("toObject",h),{points:this.points.concat()})},_toSVG:function(){for(var h=[],b=this.pathOffset.x,w=this.pathOffset.y,k=d.Object.NUM_FRACTION_DIGITS,$=0,E=this.points.length;$<E;$++)h.push(p(this.points[$].x-b,k),",",p(this.points[$].y-w,k)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',h.join(""),`" />
  159. `]},commonRender:function(h){var b,w=this.points.length,k=this.pathOffset.x,$=this.pathOffset.y;if(!w||isNaN(this.points[w-1].y))return!1;h.beginPath(),h.moveTo(this.points[0].x-k,this.points[0].y-$);for(var E=0;E<w;E++)b=this.points[E],h.lineTo(b.x-k,b.y-$);return!0},_render:function(h){this.commonRender(h)&&this._renderPaintInOrder(h)},complexity:function(){return this.get("points").length}}),d.Polyline.ATTRIBUTE_NAMES=d.SHARED_ATTRIBUTES.concat(),d.Polyline.fromElementGenerator=function(h){return function(b,w,k){if(!b)return w(null);k||(k={});var $=d.parsePointsAttribute(b.getAttribute("points")),E=d.parseAttributes(b,d[h].ATTRIBUTE_NAMES);E.fromSVG=!0,w(new d[h]($,v(E,k)))}},d.Polyline.fromElement=d.Polyline.fromElementGenerator("Polyline"),d.Polyline.fromObject=function(h,b){return d.Object._fromObject("Polyline",h,b,"points")}}(u),function(y){var d=y.fabric||(y.fabric={});if(d.Polygon){d.warn("fabric.Polygon is already defined");return}d.Polygon=d.util.createClass(d.Polyline,{type:"polygon",_render:function(v){this.commonRender(v)&&(v.closePath(),this._renderPaintInOrder(v))}}),d.Polygon.ATTRIBUTE_NAMES=d.SHARED_ATTRIBUTES.concat(),d.Polygon.fromElement=d.Polyline.fromElementGenerator("Polygon"),d.Polygon.fromObject=function(v,m){d.Object._fromObject("Polygon",v,m,"points")}}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.util.array.min,m=d.util.array.max,f=d.util.object.extend,p=Object.prototype.toString,h=d.util.toFixed;if(d.Path){d.warn("fabric.Path is already defined");return}d.Path=d.util.createClass(d.Object,{type:"path",path:null,cacheProperties:d.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:d.Object.prototype.stateProperties.concat("path"),initialize:function(b,w){w=w||{},this.callSuper("initialize",w),b||(b=[]);var k=p.call(b)==="[object Array]";this.path=d.util.makePathSimpler(k?b:d.util.parsePath(b)),this.path&&d.Polyline.prototype._setPositionDimensions.call(this,w)},_renderPathCommands:function(b){var w,k=0,$=0,E=0,N=0,j=0,z=0,V=-this.pathOffset.x,W=-this.pathOffset.y;b.beginPath();for(var H=0,U=this.path.length;H<U;++H)switch(w=this.path[H],w[0]){case"L":E=w[1],N=w[2],b.lineTo(E+V,N+W);break;case"M":E=w[1],N=w[2],k=E,$=N,b.moveTo(E+V,N+W);break;case"C":E=w[5],N=w[6],j=w[3],z=w[4],b.bezierCurveTo(w[1]+V,w[2]+W,j+V,z+W,E+V,N+W);break;case"Q":b.quadraticCurveTo(w[1]+V,w[2]+W,w[3]+V,w[4]+W),E=w[3],N=w[4],j=w[1],z=w[2];break;case"z":case"Z":E=k,N=$,b.closePath();break}},_render:function(b){this._renderPathCommands(b),this._renderPaintInOrder(b)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(b){return f(this.callSuper("toObject",b),{path:this.path.map(function(w){return w.slice()})})},toDatalessObject:function(b){var w=this.toObject(["sourcePath"].concat(b));return w.sourcePath&&delete w.path,w},_toSVG:function(){var b=d.util.joinPath(this.path);return["<path ","COMMON_PARTS",'d="',b,'" stroke-linecap="round" ',`/>
  160. `]},_getOffsetTransform:function(){var b=d.Object.NUM_FRACTION_DIGITS;return" translate("+h(-this.pathOffset.x,b)+", "+h(-this.pathOffset.y,b)+")"},toClipPathSVG:function(b){var w=this._getOffsetTransform();return" "+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:b,additionalTransform:w})},toSVG:function(b){var w=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:b,additionalTransform:w})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var b=[],w=[],k,$=0,E=0,N=0,j=0,z,V=0,W=this.path.length;V<W;++V){switch(k=this.path[V],k[0]){case"L":N=k[1],j=k[2],z=[];break;case"M":N=k[1],j=k[2],$=N,E=j,z=[];break;case"C":z=d.util.getBoundsOfCurve(N,j,k[1],k[2],k[3],k[4],k[5],k[6]),N=k[5],j=k[6];break;case"Q":z=d.util.getBoundsOfCurve(N,j,k[1],k[2],k[1],k[2],k[3],k[4]),N=k[3],j=k[4];break;case"z":case"Z":N=$,j=E;break}z.forEach(function(be){b.push(be.x),w.push(be.y)}),b.push(N),w.push(j)}var H=v(b)||0,U=v(w)||0,Q=m(b)||0,q=m(w)||0,ae=Q-H,ne=q-U;return{left:H,top:U,width:ae,height:ne}}}),d.Path.fromObject=function(b,w){if(typeof b.sourcePath=="string"){var k=b.sourcePath;d.loadSVGFromURL(k,function($){var E=$[0];E.setOptions(b),w&&w(E)})}else d.Object._fromObject("Path",b,w,"path")},d.Path.ATTRIBUTE_NAMES=d.SHARED_ATTRIBUTES.concat(["d"]),d.Path.fromElement=function(b,w,k){var $=d.parseAttributes(b,d.Path.ATTRIBUTE_NAMES);$.fromSVG=!0,w(new d.Path($.d,f($,k)))}}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.util.array.min,m=d.util.array.max;d.Group||(d.Group=d.util.createClass(d.Object,d.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(f,p,h){p=p||{},this._objects=[],h&&this.callSuper("initialize",p),this._objects=f||[];for(var b=this._objects.length;b--;)this._objects[b].group=this;if(h)this._updateObjectsACoords();else{var w=p&&p.centerPoint;p.originX!==void 0&&(this.originX=p.originX),p.originY!==void 0&&(this.originY=p.originY),w||this._calcBounds(),this._updateObjectsCoords(w),delete p.centerPoint,this.callSuper("initialize",p)}this.setCoords()},_updateObjectsACoords:function(){for(var f=!0,p=this._objects.length;p--;)this._objects[p].setCoords(f)},_updateObjectsCoords:function(p){for(var p=p||this.getCenterPoint(),h=this._objects.length;h--;)this._updateObjectCoords(this._objects[h],p)},_updateObjectCoords:function(f,p){var h=f.left,b=f.top,w=!0;f.set({left:h-p.x,top:b-p.y}),f.group=this,f.setCoords(w)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(f){var p=!!this.group;return this._restoreObjectsState(),d.util.resetObjectTransform(this),f&&(p&&d.util.removeTransformFromObject(f,this.group.calcTransformMatrix()),this._objects.push(f),f.group=this,f._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,p?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(f){return this._restoreObjectsState(),d.util.resetObjectTransform(this),this.remove(f),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(f){this.dirty=!0,f.group=this,f._set("canvas",this.canvas)},_onObjectRemoved:function(f){this.dirty=!0,delete f.group},_set:function(f,p){var h=this._objects.length;if(this.useSetOnGroup)for(;h--;)this._objects[h].setOnGroup(f,p);if(f==="canvas")for(;h--;)this._objects[h]._set(f,p);d.Object.prototype._set.call(this,f,p)},toObject:function(f){var p=this.includeDefaultValues,h=this._objects.filter(function(w){return!w.excludeFromExport}).map(function(w){var k=w.includeDefaultValues;w.includeDefaultValues=p;var $=w.toObject(f);return w.includeDefaultValues=k,$}),b=d.Object.prototype.toObject.call(this,f);return b.objects=h,b},toDatalessObject:function(f){var p,h=this.sourcePath;if(h)p=h;else{var b=this.includeDefaultValues;p=this._objects.map(function(k){var $=k.includeDefaultValues;k.includeDefaultValues=b;var E=k.toDatalessObject(f);return k.includeDefaultValues=$,E})}var w=d.Object.prototype.toDatalessObject.call(this,f);return w.objects=p,w},render:function(f){this._transformDone=!0,this.callSuper("render",f),this._transformDone=!1},shouldCache:function(){var f=d.Object.prototype.shouldCache.call(this);if(f){for(var p=0,h=this._objects.length;p<h;p++)if(this._objects[p].willDrawShadow())return this.ownCaching=!1,!1}return f},willDrawShadow:function(){if(d.Object.prototype.willDrawShadow.call(this))return!0;for(var f=0,p=this._objects.length;f<p;f++)if(this._objects[f].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(f){for(var p=0,h=this._objects.length;p<h;p++)this._objects[p].render(f);this._drawClipPath(f)},isCacheDirty:function(f){if(this.callSuper("isCacheDirty",f))return!0;if(!this.statefullCache)return!1;for(var p=0,h=this._objects.length;p<h;p++)if(this._objects[p].isCacheDirty(!0)){if(this._cacheCanvas){var b=this.cacheWidth/this.zoomX,w=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-b/2,-w/2,b,w)}return!0}return!1},_restoreObjectsState:function(){var f=this.calcOwnMatrix();return this._objects.forEach(function(p){d.util.addTransformToObject(p,f),delete p.group,p.setCoords()}),this},realizeTransform:function(f,p){return d.util.addTransformToObject(f,p),f},destroy:function(){return this._objects.forEach(function(f){f.set("dirty",!0)}),this._restoreObjectsState()},toActiveSelection:function(){if(this.canvas){var f=this._objects,p=this.canvas;this._objects=[];var h=this.toObject();delete h.objects;var b=new d.ActiveSelection([]);return b.set(h),b.type="activeSelection",p.remove(this),f.forEach(function(w){w.group=b,w.dirty=!0,p.add(w)}),b.canvas=p,b._objects=f,p._activeObject=b,b.setCoords(),b}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){var f=!0;return this.forEachObject(function(p){p.setCoords(f)}),this},_calcBounds:function(f){for(var p=[],h=[],b,w,k,$=["tr","br","bl","tl"],E=0,N=this._objects.length,j,z=$.length;E<N;++E){for(b=this._objects[E],k=b.calcACoords(),j=0;j<z;j++)w=$[j],p.push(k[w].x),h.push(k[w].y);b.aCoords=k}this._getBounds(p,h,f)},_getBounds:function(f,p,h){var b=new d.Point(v(f),v(p)),w=new d.Point(m(f),m(p)),k=b.y||0,$=b.x||0,E=w.x-b.x||0,N=w.y-b.y||0;this.width=E,this.height=N,h||this.setPositionByOrigin({x:$,y:k},"left","top")},_toSVG:function(f){for(var p=["<g ","COMMON_PARTS",` >
  161. `],h=0,b=this._objects.length;h<b;h++)p.push(" ",this._objects[h].toSVG(f));return p.push(`</g>
  162. `),p},getSvgStyles:function(){var f=typeof this.opacity<"u"&&this.opacity!==1?"opacity: "+this.opacity+";":"",p=this.visible?"":" visibility: hidden;";return[f,this.getSvgFilter(),p].join("")},toClipPathSVG:function(f){for(var p=[],h=0,b=this._objects.length;h<b;h++)p.push(" ",this._objects[h].toClipPathSVG(f));return this._createBaseClipPathSVGMarkup(p,{reviver:f})}}),d.Group.fromObject=function(f,p){var h=f.objects,b=d.util.object.clone(f,!0);if(delete b.objects,typeof h=="string"){d.loadSVGFromURL(h,function(w){var k=d.util.groupSVGElements(w,f,h);k.set(b),p&&p(k)});return}d.util.enlivenObjects(h,function(w){d.util.enlivenObjects([f.clipPath],function(k){var $=d.util.object.clone(f,!0);$.clipPath=k[0],delete $.objects,p&&p(new d.Group(w,$,!0))})})})}(u),function(y){var d=y.fabric||(y.fabric={});d.ActiveSelection||(d.ActiveSelection=d.util.createClass(d.Group,{type:"activeSelection",initialize:function(v,m){m=m||{},this._objects=v||[];for(var f=this._objects.length;f--;)this._objects[f].group=this;m.originX&&(this.originX=m.originX),m.originY&&(this.originY=m.originY),this._calcBounds(),this._updateObjectsCoords(),d.Object.prototype.initialize.call(this,m),this.setCoords()},toGroup:function(){var v=this._objects.concat();this._objects=[];var m=d.Object.prototype.toObject.call(this),f=new d.Group([]);if(delete m.type,f.set(m),v.forEach(function(h){h.canvas.remove(h),h.group=f}),f._objects=v,!this.canvas)return f;var p=this.canvas;return p.add(f),p._activeObject=f,f.setCoords(),f},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(v,m,f){v.save(),v.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,this.callSuper("_renderControls",v,m),f=f||{},typeof f.hasControls>"u"&&(f.hasControls=!1),f.forActiveSelection=!0;for(var p=0,h=this._objects.length;p<h;p++)this._objects[p]._renderControls(v,f);v.restore()}}),d.ActiveSelection.fromObject=function(v,m){d.util.enlivenObjects(v.objects,function(f){delete v.objects,m&&m(new d.ActiveSelection(f,v,!0))})})}(u),function(y){var d=l.util.object.extend;if(y.fabric||(y.fabric={}),y.fabric.Image){l.warn("fabric.Image is already defined.");return}l.Image=l.util.createClass(l.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:l.Object.prototype.stateProperties.concat("cropX","cropY"),cacheProperties:l.Object.prototype.cacheProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(v,m){m||(m={}),this.filters=[],this.cacheKey="texture"+l.Object.__uid++,this.callSuper("initialize",m),this._initElement(v,m)},getElement:function(){return this._element||{}},setElement:function(v,m){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=v,this._originalElement=v,this._initConfig(m),this.filters.length!==0&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(v){var m=l.filterBackend;m&&m.evictCachesForKey&&m.evictCachesForKey(v)},dispose:function(){this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(function(v){l.util.cleanUpJsdomNode(this[v]),this[v]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var v=this.getElement();return{width:v.naturalWidth||v.width,height:v.naturalHeight||v.height}},_stroke:function(v){if(!(!this.stroke||this.strokeWidth===0)){var m=this.width/2,f=this.height/2;v.beginPath(),v.moveTo(-m,-f),v.lineTo(m,-f),v.lineTo(m,f),v.lineTo(-m,f),v.lineTo(-m,-f),v.closePath()}},toObject:function(v){var m=[];this.filters.forEach(function(p){p&&m.push(p.toObject())});var f=d(this.callSuper("toObject",["cropX","cropY"].concat(v)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:m});return this.resizeFilter&&(f.resizeFilter=this.resizeFilter.toObject()),f},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var v=[],m=[],f,p=this._element,h=-this.width/2,b=-this.height/2,w="",k="";if(!p)return[];if(this.hasCrop()){var $=l.Object.__uid++;v.push('<clipPath id="imageCrop_'+$+`">
  163. `,' <rect x="'+h+'" y="'+b+'" width="'+this.width+'" height="'+this.height+`" />
  164. `,`</clipPath>
  165. `),w=' clip-path="url(#imageCrop_'+$+')" '}if(this.imageSmoothing||(k='" image-rendering="optimizeSpeed'),m.push(" <image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',h-this.cropX,'" y="',b-this.cropY,'" width="',p.width||p.naturalWidth,'" height="',p.height||p.height,k,'"',w,`></image>
  166. `),this.stroke||this.strokeDashArray){var E=this.fill;this.fill=null,f=[" <rect ",'x="',h,'" y="',b,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),`"/>
  167. `],this.fill=E}return this.paintFirst!=="fill"?v=v.concat(f,m):v=v.concat(m,f),v},getSrc:function(v){var m=v?this._element:this._originalElement;return m?m.toDataURL?m.toDataURL():this.srcFromAttribute?m.getAttribute("src"):m.src:this.src||""},setSrc:function(v,m,f){return l.util.loadImage(v,function(p,h){this.setElement(p,f),this._setWidthHeight(),m&&m(this,h)},this,f&&f.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var v=this.resizeFilter,m=this.minimumScaleTrigger,f=this.getTotalObjectScaling(),p=f.scaleX,h=f.scaleY,b=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!v||p>m&&h>m){this._element=b,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=p,this._lastScaleY=h;return}l.filterBackend||(l.filterBackend=l.initFilterBackend());var w=l.util.createCanvasElement(),k=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,$=b.width,E=b.height;w.width=$,w.height=E,this._element=w,this._lastScaleX=v.scaleX=p,this._lastScaleY=v.scaleY=h,l.filterBackend.applyFilters([v],b,$,E,this._element,k),this._filterScalingX=w.width/this._originalElement.width,this._filterScalingY=w.height/this._originalElement.height},applyFilters:function(v){if(v=v||this.filters||[],v=v.filter(function(b){return b&&!b.isNeutralState()}),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),v.length===0)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var m=this._originalElement,f=m.naturalWidth||m.width,p=m.naturalHeight||m.height;if(this._element===this._originalElement){var h=l.util.createCanvasElement();h.width=f,h.height=p,this._element=h,this._filteredEl=h}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,f,p),this._lastScaleX=1,this._lastScaleY=1;return l.filterBackend||(l.filterBackend=l.initFilterBackend()),l.filterBackend.applyFilters(v,this._originalElement,f,p,this._element,this.cacheKey),(this._originalElement.width!==this._element.width||this._originalElement.height!==this._element.height)&&(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(v){l.util.setImageSmoothing(v,this.imageSmoothing),this.isMoving!==!0&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(v),this._renderPaintInOrder(v)},drawCacheOnCanvas:function(v){l.util.setImageSmoothing(v,this.imageSmoothing),l.Object.prototype.drawCacheOnCanvas.call(this,v)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(v){var m=this._element;if(m){var f=this._filterScalingX,p=this._filterScalingY,h=this.width,b=this.height,w=Math.min,k=Math.max,$=k(this.cropX,0),E=k(this.cropY,0),N=m.naturalWidth||m.width,j=m.naturalHeight||m.height,z=$*f,V=E*p,W=w(h*f,N-z),H=w(b*p,j-V),U=-h/2,Q=-b/2,q=w(h,N/f-$),ae=w(b,j/p-E);m&&v.drawImage(m,z,V,W,H,U,Q,q,ae)}},_needsResize:function(){var v=this.getTotalObjectScaling();return v.scaleX!==this._lastScaleX||v.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(v,m){this.setElement(l.util.getById(v),m),l.util.addClass(this.getElement(),l.Image.CSS_CANVAS)},_initConfig:function(v){v||(v={}),this.setOptions(v),this._setWidthHeight(v)},_initFilters:function(v,m){v&&v.length?l.util.enlivenObjects(v,function(f){m&&m(f)},"fabric.Image.filters"):m&&m()},_setWidthHeight:function(v){v||(v={});var m=this.getElement();this.width=v.width||m.naturalWidth||m.width||0,this.height=v.height||m.naturalHeight||m.height||0},parsePreserveAspectRatioAttribute:function(){var v=l.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),m=this._element.width,f=this._element.height,p=1,h=1,b=0,w=0,k=0,$=0,E,N=this.width,j=this.height,z={width:N,height:j};return v&&(v.alignX!=="none"||v.alignY!=="none")?(v.meetOrSlice==="meet"&&(p=h=l.util.findScaleToFit(this._element,z),E=(N-m*p)/2,v.alignX==="Min"&&(b=-E),v.alignX==="Max"&&(b=E),E=(j-f*h)/2,v.alignY==="Min"&&(w=-E),v.alignY==="Max"&&(w=E)),v.meetOrSlice==="slice"&&(p=h=l.util.findScaleToCover(this._element,z),E=m-N/p,v.alignX==="Mid"&&(k=E/2),v.alignX==="Max"&&(k=E),E=f-j/h,v.alignY==="Mid"&&($=E/2),v.alignY==="Max"&&($=E),m=N/p,f=j/h)):(p=N/m,h=j/f),{width:m,height:f,scaleX:p,scaleY:h,offsetLeft:b,offsetTop:w,cropX:k,cropY:$}}}),l.Image.CSS_CANVAS="canvas-img",l.Image.prototype.getSvgSrc=l.Image.prototype.getSrc,l.Image.fromObject=function(v,m){var f=l.util.object.clone(v);l.util.loadImage(f.src,function(p,h){if(h){m&&m(null,!0);return}l.Image.prototype._initFilters.call(f,f.filters,function(b){f.filters=b||[],l.Image.prototype._initFilters.call(f,[f.resizeFilter],function(w){f.resizeFilter=w[0],l.util.enlivenObjects([f.clipPath],function(k){f.clipPath=k[0];var $=new l.Image(p,f);m($,!1)})})})},null,f.crossOrigin)},l.Image.fromURL=function(v,m,f){l.util.loadImage(v,function(p,h){m&&m(new l.Image(p,f),h)},null,f&&f.crossOrigin)},l.Image.ATTRIBUTE_NAMES=l.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),l.Image.fromElement=function(v,m,f){var p=l.parseAttributes(v,l.Image.ATTRIBUTE_NAMES);l.Image.fromURL(p["xlink:href"],m,d(f?l.util.object.clone(f):{},p))}}(u),l.util.object.extend(l.Object.prototype,{_getAngleValueForStraighten:function(){var y=this.angle%360;return y>0?Math.round((y-1)/90)*90:Math.round(y/90)*90},straighten:function(){return this.rotate(this._getAngleValueForStraighten()),this},fxStraighten:function(y){y=y||{};var d=function(){},v=y.onComplete||d,m=y.onChange||d,f=this;return l.util.animate({startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(p){f.rotate(p),m()},onComplete:function(){f.setCoords(),v()}}),this}}),l.util.object.extend(l.StaticCanvas.prototype,{straightenObject:function(y){return y.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(y){return y.fxStraighten({onChange:this.requestRenderAllBound}),this}}),function(){function y(v,m){var f="precision "+m+` float;
  168. void main(){}`,p=v.createShader(v.FRAGMENT_SHADER);return v.shaderSource(p,f),v.compileShader(p),!!v.getShaderParameter(p,v.COMPILE_STATUS)}l.isWebglSupported=function(v){if(l.isLikelyNode)return!1;v=v||l.WebglFilterBackend.prototype.tileSize;var m=document.createElement("canvas"),f=m.getContext("webgl")||m.getContext("experimental-webgl"),p=!1;if(f){l.maxTextureSize=f.getParameter(f.MAX_TEXTURE_SIZE),p=l.maxTextureSize>=v;for(var h=["highp","mediump","lowp"],b=0;b<3;b++)if(y(f,h[b])){l.webGlPrecision=h[b];break}}return this.isSupported=p,p},l.WebglFilterBackend=d;function d(v){v&&v.tileSize&&(this.tileSize=v.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}d.prototype={tileSize:2048,resources:{},setupGLContext:function(v,m){this.dispose(),this.createWebGLCanvas(v,m),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(v,m)},chooseFastestCopyGLTo2DMethod:function(v,m){var f=typeof window.performance<"u",p;try{new ImageData(1,1),p=!0}catch{p=!1}var h=typeof ArrayBuffer<"u",b=typeof Uint8ClampedArray<"u";if(f&&p&&h&&b){var w=l.util.createCanvasElement(),k=new ArrayBuffer(v*m*4);if(l.forceGLPutImageData){this.imageBuffer=k,this.copyGLTo2D=A;return}var $={imageBuffer:k,destinationWidth:v,destinationHeight:m,targetCanvas:w},E,N,j;w.width=v,w.height=m,E=window.performance.now(),_.call($,this.gl,$),N=window.performance.now()-E,E=window.performance.now(),A.call($,this.gl,$),j=window.performance.now()-E,N>j?(this.imageBuffer=k,this.copyGLTo2D=A):this.copyGLTo2D=_}},createWebGLCanvas:function(v,m){var f=l.util.createCanvasElement();f.width=v,f.height=m;var p={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},h=f.getContext("webgl",p);h||(h=f.getContext("experimental-webgl",p)),h&&(h.clearColor(0,0,0,0),this.canvas=f,this.gl=h)},applyFilters:function(v,m,f,p,h,b){var w=this.gl,k;b&&(k=this.getCachedTexture(b,m));var $={originalWidth:m.width||m.originalWidth,originalHeight:m.height||m.originalHeight,sourceWidth:f,sourceHeight:p,destinationWidth:f,destinationHeight:p,context:w,sourceTexture:this.createTexture(w,f,p,!k&&m),targetTexture:this.createTexture(w,f,p),originalTexture:k||this.createTexture(w,f,p,!k&&m),passes:v.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:h},E=w.createFramebuffer();return w.bindFramebuffer(w.FRAMEBUFFER,E),v.forEach(function(N){N&&N.applyTo($)}),S($),this.copyGLTo2D(w,$),w.bindTexture(w.TEXTURE_2D,null),w.deleteTexture($.sourceTexture),w.deleteTexture($.targetTexture),w.deleteFramebuffer(E),h.getContext("2d").setTransform(1,0,0,1,0,0),$},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(v,m,f,p){var h=v.createTexture();return v.bindTexture(v.TEXTURE_2D,h),v.texParameteri(v.TEXTURE_2D,v.TEXTURE_MAG_FILTER,v.NEAREST),v.texParameteri(v.TEXTURE_2D,v.TEXTURE_MIN_FILTER,v.NEAREST),v.texParameteri(v.TEXTURE_2D,v.TEXTURE_WRAP_S,v.CLAMP_TO_EDGE),v.texParameteri(v.TEXTURE_2D,v.TEXTURE_WRAP_T,v.CLAMP_TO_EDGE),p?v.texImage2D(v.TEXTURE_2D,0,v.RGBA,v.RGBA,v.UNSIGNED_BYTE,p):v.texImage2D(v.TEXTURE_2D,0,v.RGBA,m,f,0,v.RGBA,v.UNSIGNED_BYTE,null),h},getCachedTexture:function(v,m){if(this.textureCache[v])return this.textureCache[v];var f=this.createTexture(this.gl,m.width,m.height,m);return this.textureCache[v]=f,f},evictCachesForKey:function(v){this.textureCache[v]&&(this.gl.deleteTexture(this.textureCache[v]),delete this.textureCache[v])},copyGLTo2D:_,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var v=this.gl,m={renderer:"",vendor:""};if(!v)return m;var f=v.getExtension("WEBGL_debug_renderer_info");if(f){var p=v.getParameter(f.UNMASKED_RENDERER_WEBGL),h=v.getParameter(f.UNMASKED_VENDOR_WEBGL);p&&(m.renderer=p.toLowerCase()),h&&(m.vendor=h.toLowerCase())}return this.gpuInfo=m,m}}}();function S(y){var d=y.targetCanvas,v=d.width,m=d.height,f=y.destinationWidth,p=y.destinationHeight;(v!==f||m!==p)&&(d.width=f,d.height=p)}function _(y,d){var v=y.canvas,m=d.targetCanvas,f=m.getContext("2d");f.translate(0,m.height),f.scale(1,-1);var p=v.height-m.height;f.drawImage(v,0,p,m.width,m.height,0,0,m.width,m.height)}function A(y,d){var v=d.targetCanvas,m=v.getContext("2d"),f=d.destinationWidth,p=d.destinationHeight,h=f*p*4,b=new Uint8Array(this.imageBuffer,0,h),w=new Uint8ClampedArray(this.imageBuffer,0,h);y.readPixels(0,0,f,p,y.RGBA,y.UNSIGNED_BYTE,b);var k=new ImageData(w,f,p);m.putImageData(k,0,0)}(function(){var y=function(){};l.Canvas2dFilterBackend=d;function d(){}d.prototype={evictCachesForKey:y,dispose:y,clearWebGLCaches:y,resources:{},applyFilters:function(v,m,f,p,h){var b=h.getContext("2d");b.drawImage(m,0,0,f,p);var w=b.getImageData(0,0,f,p),k=b.getImageData(0,0,f,p),$={sourceWidth:f,sourceHeight:p,imageData:w,originalEl:m,originalImageData:k,canvasEl:h,ctx:b,filterBackend:this};return v.forEach(function(E){E.applyTo($)}),($.imageData.width!==f||$.imageData.height!==p)&&(h.width=$.imageData.width,h.height=$.imageData.height),b.putImageData($.imageData,0,0),$}}})(),l.Image=l.Image||{},l.Image.filters=l.Image.filters||{},l.Image.filters.BaseFilter=l.util.createClass({type:"BaseFilter",vertexSource:`attribute vec2 aPosition;
  169. varying vec2 vTexCoord;
  170. void main() {
  171. vTexCoord = aPosition;
  172. gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);
  173. }`,fragmentSource:`precision highp float;
  174. varying vec2 vTexCoord;
  175. uniform sampler2D uTexture;
  176. void main() {
  177. gl_FragColor = texture2D(uTexture, vTexCoord);
  178. }`,initialize:function(y){y&&this.setOptions(y)},setOptions:function(y){for(var d in y)this[d]=y[d]},createProgram:function(y,d,v){d=d||this.fragmentSource,v=v||this.vertexSource,l.webGlPrecision!=="highp"&&(d=d.replace(/precision highp float/g,"precision "+l.webGlPrecision+" float"));var m=y.createShader(y.VERTEX_SHADER);if(y.shaderSource(m,v),y.compileShader(m),!y.getShaderParameter(m,y.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+y.getShaderInfoLog(m));var f=y.createShader(y.FRAGMENT_SHADER);if(y.shaderSource(f,d),y.compileShader(f),!y.getShaderParameter(f,y.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+y.getShaderInfoLog(f));var p=y.createProgram();if(y.attachShader(p,m),y.attachShader(p,f),y.linkProgram(p),!y.getProgramParameter(p,y.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+y.getProgramInfoLog(p));var h=this.getAttributeLocations(y,p),b=this.getUniformLocations(y,p)||{};return b.uStepW=y.getUniformLocation(p,"uStepW"),b.uStepH=y.getUniformLocation(p,"uStepH"),{program:p,attributeLocations:h,uniformLocations:b}},getAttributeLocations:function(y,d){return{aPosition:y.getAttribLocation(d,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(y,d,v){var m=d.aPosition,f=y.createBuffer();y.bindBuffer(y.ARRAY_BUFFER,f),y.enableVertexAttribArray(m),y.vertexAttribPointer(m,2,y.FLOAT,!1,0,0),y.bufferData(y.ARRAY_BUFFER,v,y.STATIC_DRAW)},_setupFrameBuffer:function(y){var d=y.context,v,m;y.passes>1?(v=y.destinationWidth,m=y.destinationHeight,(y.sourceWidth!==v||y.sourceHeight!==m)&&(d.deleteTexture(y.targetTexture),y.targetTexture=y.filterBackend.createTexture(d,v,m)),d.framebufferTexture2D(d.FRAMEBUFFER,d.COLOR_ATTACHMENT0,d.TEXTURE_2D,y.targetTexture,0)):(d.bindFramebuffer(d.FRAMEBUFFER,null),d.finish())},_swapTextures:function(y){y.passes--,y.pass++;var d=y.targetTexture;y.targetTexture=y.sourceTexture,y.sourceTexture=d},isNeutralState:function(){var y=this.mainParameter,d=l.Image.filters[this.type].prototype;if(y)if(Array.isArray(d[y])){for(var v=d[y].length;v--;)if(this[y][v]!==d[y][v])return!1;return!0}else return d[y]===this[y];else return!1},applyTo:function(y){y.webgl?(this._setupFrameBuffer(y),this.applyToWebGL(y),this._swapTextures(y)):this.applyTo2d(y)},retrieveShader:function(y){return y.programCache.hasOwnProperty(this.type)||(y.programCache[this.type]=this.createProgram(y.context)),y.programCache[this.type]},applyToWebGL:function(y){var d=y.context,v=this.retrieveShader(y);y.pass===0&&y.originalTexture?d.bindTexture(d.TEXTURE_2D,y.originalTexture):d.bindTexture(d.TEXTURE_2D,y.sourceTexture),d.useProgram(v.program),this.sendAttributeData(d,v.attributeLocations,y.aPosition),d.uniform1f(v.uniformLocations.uStepW,1/y.sourceWidth),d.uniform1f(v.uniformLocations.uStepH,1/y.sourceHeight),this.sendUniformData(d,v.uniformLocations),d.viewport(0,0,y.destinationWidth,y.destinationHeight),d.drawArrays(d.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(y,d,v){y.activeTexture(v),y.bindTexture(y.TEXTURE_2D,d),y.activeTexture(y.TEXTURE0)},unbindAdditionalTexture:function(y,d){y.activeTexture(d),y.bindTexture(y.TEXTURE_2D,null),y.activeTexture(y.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(y){this[this.mainParameter]=y},sendUniformData:function(){},createHelpLayer:function(y){if(!y.helpLayer){var d=document.createElement("canvas");d.width=y.sourceWidth,d.height=y.sourceHeight,y.helpLayer=d}},toObject:function(){var y={type:this.type},d=this.mainParameter;return d&&(y[d]=this[d]),y},toJSON:function(){return this.toObject()}}),l.Image.filters.BaseFilter.fromObject=function(y,d){var v=new l.Image.filters[y.type](y);return d&&d(v),v},function(y){var d=y.fabric||(y.fabric={}),v=d.Image.filters,m=d.util.createClass;v.ColorMatrix=m(v.BaseFilter,{type:"ColorMatrix",fragmentSource:`precision highp float;
  179. uniform sampler2D uTexture;
  180. varying vec2 vTexCoord;
  181. uniform mat4 uColorMatrix;
  182. uniform vec4 uConstants;
  183. void main() {
  184. vec4 color = texture2D(uTexture, vTexCoord);
  185. color *= uColorMatrix;
  186. color += uConstants;
  187. gl_FragColor = color;
  188. }`,matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(f){this.callSuper("initialize",f),this.matrix=this.matrix.slice(0)},applyTo2d:function(f){var p=f.imageData,h=p.data,b=h.length,w=this.matrix,k,$,E,N,j,z=this.colorsOnly;for(j=0;j<b;j+=4)k=h[j],$=h[j+1],E=h[j+2],z?(h[j]=k*w[0]+$*w[1]+E*w[2]+w[4]*255,h[j+1]=k*w[5]+$*w[6]+E*w[7]+w[9]*255,h[j+2]=k*w[10]+$*w[11]+E*w[12]+w[14]*255):(N=h[j+3],h[j]=k*w[0]+$*w[1]+E*w[2]+N*w[3]+w[4]*255,h[j+1]=k*w[5]+$*w[6]+E*w[7]+N*w[8]+w[9]*255,h[j+2]=k*w[10]+$*w[11]+E*w[12]+N*w[13]+w[14]*255,h[j+3]=k*w[15]+$*w[16]+E*w[17]+N*w[18]+w[19]*255)},getUniformLocations:function(f,p){return{uColorMatrix:f.getUniformLocation(p,"uColorMatrix"),uConstants:f.getUniformLocation(p,"uConstants")}},sendUniformData:function(f,p){var h=this.matrix,b=[h[0],h[1],h[2],h[3],h[5],h[6],h[7],h[8],h[10],h[11],h[12],h[13],h[15],h[16],h[17],h[18]],w=[h[4],h[9],h[14],h[19]];f.uniformMatrix4fv(p.uColorMatrix,!1,b),f.uniform4fv(p.uConstants,w)}}),d.Image.filters.ColorMatrix.fromObject=d.Image.filters.BaseFilter.fromObject}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.Image.filters,m=d.util.createClass;v.Brightness=m(v.BaseFilter,{type:"Brightness",fragmentSource:`precision highp float;
  189. uniform sampler2D uTexture;
  190. uniform float uBrightness;
  191. varying vec2 vTexCoord;
  192. void main() {
  193. vec4 color = texture2D(uTexture, vTexCoord);
  194. color.rgb += uBrightness;
  195. gl_FragColor = color;
  196. }`,brightness:0,mainParameter:"brightness",applyTo2d:function(f){if(this.brightness!==0){var p=f.imageData,h=p.data,b,w=h.length,k=Math.round(this.brightness*255);for(b=0;b<w;b+=4)h[b]=h[b]+k,h[b+1]=h[b+1]+k,h[b+2]=h[b+2]+k}},getUniformLocations:function(f,p){return{uBrightness:f.getUniformLocation(p,"uBrightness")}},sendUniformData:function(f,p){f.uniform1f(p.uBrightness,this.brightness)}}),d.Image.filters.Brightness.fromObject=d.Image.filters.BaseFilter.fromObject}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.util.object.extend,m=d.Image.filters,f=d.util.createClass;m.Convolute=f(m.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:`precision highp float;
  197. uniform sampler2D uTexture;
  198. uniform float uMatrix[9];
  199. uniform float uStepW;
  200. uniform float uStepH;
  201. varying vec2 vTexCoord;
  202. void main() {
  203. vec4 color = vec4(0, 0, 0, 0);
  204. for (float h = 0.0; h < 3.0; h+=1.0) {
  205. for (float w = 0.0; w < 3.0; w+=1.0) {
  206. vec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));
  207. color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];
  208. }
  209. }
  210. gl_FragColor = color;
  211. }`,Convolute_3_0:`precision highp float;
  212. uniform sampler2D uTexture;
  213. uniform float uMatrix[9];
  214. uniform float uStepW;
  215. uniform float uStepH;
  216. varying vec2 vTexCoord;
  217. void main() {
  218. vec4 color = vec4(0, 0, 0, 1);
  219. for (float h = 0.0; h < 3.0; h+=1.0) {
  220. for (float w = 0.0; w < 3.0; w+=1.0) {
  221. vec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));
  222. color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];
  223. }
  224. }
  225. float alpha = texture2D(uTexture, vTexCoord).a;
  226. gl_FragColor = color;
  227. gl_FragColor.a = alpha;
  228. }`,Convolute_5_1:`precision highp float;
  229. uniform sampler2D uTexture;
  230. uniform float uMatrix[25];
  231. uniform float uStepW;
  232. uniform float uStepH;
  233. varying vec2 vTexCoord;
  234. void main() {
  235. vec4 color = vec4(0, 0, 0, 0);
  236. for (float h = 0.0; h < 5.0; h+=1.0) {
  237. for (float w = 0.0; w < 5.0; w+=1.0) {
  238. vec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));
  239. color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];
  240. }
  241. }
  242. gl_FragColor = color;
  243. }`,Convolute_5_0:`precision highp float;
  244. uniform sampler2D uTexture;
  245. uniform float uMatrix[25];
  246. uniform float uStepW;
  247. uniform float uStepH;
  248. varying vec2 vTexCoord;
  249. void main() {
  250. vec4 color = vec4(0, 0, 0, 1);
  251. for (float h = 0.0; h < 5.0; h+=1.0) {
  252. for (float w = 0.0; w < 5.0; w+=1.0) {
  253. vec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));
  254. color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];
  255. }
  256. }
  257. float alpha = texture2D(uTexture, vTexCoord).a;
  258. gl_FragColor = color;
  259. gl_FragColor.a = alpha;
  260. }`,Convolute_7_1:`precision highp float;
  261. uniform sampler2D uTexture;
  262. uniform float uMatrix[49];
  263. uniform float uStepW;
  264. uniform float uStepH;
  265. varying vec2 vTexCoord;
  266. void main() {
  267. vec4 color = vec4(0, 0, 0, 0);
  268. for (float h = 0.0; h < 7.0; h+=1.0) {
  269. for (float w = 0.0; w < 7.0; w+=1.0) {
  270. vec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));
  271. color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];
  272. }
  273. }
  274. gl_FragColor = color;
  275. }`,Convolute_7_0:`precision highp float;
  276. uniform sampler2D uTexture;
  277. uniform float uMatrix[49];
  278. uniform float uStepW;
  279. uniform float uStepH;
  280. varying vec2 vTexCoord;
  281. void main() {
  282. vec4 color = vec4(0, 0, 0, 1);
  283. for (float h = 0.0; h < 7.0; h+=1.0) {
  284. for (float w = 0.0; w < 7.0; w+=1.0) {
  285. vec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));
  286. color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];
  287. }
  288. }
  289. float alpha = texture2D(uTexture, vTexCoord).a;
  290. gl_FragColor = color;
  291. gl_FragColor.a = alpha;
  292. }`,Convolute_9_1:`precision highp float;
  293. uniform sampler2D uTexture;
  294. uniform float uMatrix[81];
  295. uniform float uStepW;
  296. uniform float uStepH;
  297. varying vec2 vTexCoord;
  298. void main() {
  299. vec4 color = vec4(0, 0, 0, 0);
  300. for (float h = 0.0; h < 9.0; h+=1.0) {
  301. for (float w = 0.0; w < 9.0; w+=1.0) {
  302. vec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));
  303. color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];
  304. }
  305. }
  306. gl_FragColor = color;
  307. }`,Convolute_9_0:`precision highp float;
  308. uniform sampler2D uTexture;
  309. uniform float uMatrix[81];
  310. uniform float uStepW;
  311. uniform float uStepH;
  312. varying vec2 vTexCoord;
  313. void main() {
  314. vec4 color = vec4(0, 0, 0, 1);
  315. for (float h = 0.0; h < 9.0; h+=1.0) {
  316. for (float w = 0.0; w < 9.0; w+=1.0) {
  317. vec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));
  318. color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];
  319. }
  320. }
  321. float alpha = texture2D(uTexture, vTexCoord).a;
  322. gl_FragColor = color;
  323. gl_FragColor.a = alpha;
  324. }`},retrieveShader:function(p){var h=Math.sqrt(this.matrix.length),b=this.type+"_"+h+"_"+(this.opaque?1:0),w=this.fragmentSource[b];return p.programCache.hasOwnProperty(b)||(p.programCache[b]=this.createProgram(p.context,w)),p.programCache[b]},applyTo2d:function(p){var h=p.imageData,b=h.data,w=this.matrix,k=Math.round(Math.sqrt(w.length)),$=Math.floor(k/2),E=h.width,N=h.height,j=p.ctx.createImageData(E,N),z=j.data,V=this.opaque?1:0,W,H,U,Q,q,ae,ne,be,te,Ie,$e,Me,ge;for($e=0;$e<N;$e++)for(Ie=0;Ie<E;Ie++){for(q=($e*E+Ie)*4,W=0,H=0,U=0,Q=0,ge=0;ge<k;ge++)for(Me=0;Me<k;Me++)ne=$e+ge-$,ae=Ie+Me-$,!(ne<0||ne>=N||ae<0||ae>=E)&&(be=(ne*E+ae)*4,te=w[ge*k+Me],W+=b[be]*te,H+=b[be+1]*te,U+=b[be+2]*te,V||(Q+=b[be+3]*te));z[q]=W,z[q+1]=H,z[q+2]=U,V?z[q+3]=b[q+3]:z[q+3]=Q}p.imageData=j},getUniformLocations:function(p,h){return{uMatrix:p.getUniformLocation(h,"uMatrix"),uOpaque:p.getUniformLocation(h,"uOpaque"),uHalfSize:p.getUniformLocation(h,"uHalfSize"),uSize:p.getUniformLocation(h,"uSize")}},sendUniformData:function(p,h){p.uniform1fv(h.uMatrix,this.matrix)},toObject:function(){return v(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),d.Image.filters.Convolute.fromObject=d.Image.filters.BaseFilter.fromObject}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.Image.filters,m=d.util.createClass;v.Grayscale=m(v.BaseFilter,{type:"Grayscale",fragmentSource:{average:`precision highp float;
  325. uniform sampler2D uTexture;
  326. varying vec2 vTexCoord;
  327. void main() {
  328. vec4 color = texture2D(uTexture, vTexCoord);
  329. float average = (color.r + color.b + color.g) / 3.0;
  330. gl_FragColor = vec4(average, average, average, color.a);
  331. }`,lightness:`precision highp float;
  332. uniform sampler2D uTexture;
  333. uniform int uMode;
  334. varying vec2 vTexCoord;
  335. void main() {
  336. vec4 col = texture2D(uTexture, vTexCoord);
  337. float average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;
  338. gl_FragColor = vec4(average, average, average, col.a);
  339. }`,luminosity:`precision highp float;
  340. uniform sampler2D uTexture;
  341. uniform int uMode;
  342. varying vec2 vTexCoord;
  343. void main() {
  344. vec4 col = texture2D(uTexture, vTexCoord);
  345. float average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;
  346. gl_FragColor = vec4(average, average, average, col.a);
  347. }`},mode:"average",mainParameter:"mode",applyTo2d:function(f){var p=f.imageData,h=p.data,b,w=h.length,k,$=this.mode;for(b=0;b<w;b+=4)$==="average"?k=(h[b]+h[b+1]+h[b+2])/3:$==="lightness"?k=(Math.min(h[b],h[b+1],h[b+2])+Math.max(h[b],h[b+1],h[b+2]))/2:$==="luminosity"&&(k=.21*h[b]+.72*h[b+1]+.07*h[b+2]),h[b]=k,h[b+1]=k,h[b+2]=k},retrieveShader:function(f){var p=this.type+"_"+this.mode;if(!f.programCache.hasOwnProperty(p)){var h=this.fragmentSource[this.mode];f.programCache[p]=this.createProgram(f.context,h)}return f.programCache[p]},getUniformLocations:function(f,p){return{uMode:f.getUniformLocation(p,"uMode")}},sendUniformData:function(f,p){var h=1;f.uniform1i(p.uMode,h)},isNeutralState:function(){return!1}}),d.Image.filters.Grayscale.fromObject=d.Image.filters.BaseFilter.fromObject}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.Image.filters,m=d.util.createClass;v.Invert=m(v.BaseFilter,{type:"Invert",fragmentSource:`precision highp float;
  348. uniform sampler2D uTexture;
  349. uniform int uInvert;
  350. varying vec2 vTexCoord;
  351. void main() {
  352. vec4 color = texture2D(uTexture, vTexCoord);
  353. if (uInvert == 1) {
  354. gl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);
  355. } else {
  356. gl_FragColor = color;
  357. }
  358. }`,invert:!0,mainParameter:"invert",applyTo2d:function(f){var p=f.imageData,h=p.data,b,w=h.length;for(b=0;b<w;b+=4)h[b]=255-h[b],h[b+1]=255-h[b+1],h[b+2]=255-h[b+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(f,p){return{uInvert:f.getUniformLocation(p,"uInvert")}},sendUniformData:function(f,p){f.uniform1i(p.uInvert,this.invert)}}),d.Image.filters.Invert.fromObject=d.Image.filters.BaseFilter.fromObject}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.util.object.extend,m=d.Image.filters,f=d.util.createClass;m.Noise=f(m.BaseFilter,{type:"Noise",fragmentSource:`precision highp float;
  359. uniform sampler2D uTexture;
  360. uniform float uStepH;
  361. uniform float uNoise;
  362. uniform float uSeed;
  363. varying vec2 vTexCoord;
  364. float rand(vec2 co, float seed, float vScale) {
  365. return fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);
  366. }
  367. void main() {
  368. vec4 color = texture2D(uTexture, vTexCoord);
  369. color.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;
  370. gl_FragColor = color;
  371. }`,mainParameter:"noise",noise:0,applyTo2d:function(p){if(this.noise!==0){var h=p.imageData,b=h.data,w,k=b.length,$=this.noise,E;for(w=0,k=b.length;w<k;w+=4)E=(.5-Math.random())*$,b[w]+=E,b[w+1]+=E,b[w+2]+=E}},getUniformLocations:function(p,h){return{uNoise:p.getUniformLocation(h,"uNoise"),uSeed:p.getUniformLocation(h,"uSeed")}},sendUniformData:function(p,h){p.uniform1f(h.uNoise,this.noise/255),p.uniform1f(h.uSeed,Math.random())},toObject:function(){return v(this.callSuper("toObject"),{noise:this.noise})}}),d.Image.filters.Noise.fromObject=d.Image.filters.BaseFilter.fromObject}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.Image.filters,m=d.util.createClass;v.Pixelate=m(v.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:`precision highp float;
  372. uniform sampler2D uTexture;
  373. uniform float uBlocksize;
  374. uniform float uStepW;
  375. uniform float uStepH;
  376. varying vec2 vTexCoord;
  377. void main() {
  378. float blockW = uBlocksize * uStepW;
  379. float blockH = uBlocksize * uStepW;
  380. int posX = int(vTexCoord.x / blockW);
  381. int posY = int(vTexCoord.y / blockH);
  382. float fposX = float(posX);
  383. float fposY = float(posY);
  384. vec2 squareCoords = vec2(fposX * blockW, fposY * blockH);
  385. vec4 color = texture2D(uTexture, squareCoords);
  386. gl_FragColor = color;
  387. }`,applyTo2d:function(f){var p=f.imageData,h=p.data,b=p.height,w=p.width,k,$,E,N,j,z,V,W,H,U,Q;for($=0;$<b;$+=this.blocksize)for(E=0;E<w;E+=this.blocksize)for(k=$*4*w+E*4,N=h[k],j=h[k+1],z=h[k+2],V=h[k+3],U=Math.min($+this.blocksize,b),Q=Math.min(E+this.blocksize,w),W=$;W<U;W++)for(H=E;H<Q;H++)k=W*4*w+H*4,h[k]=N,h[k+1]=j,h[k+2]=z,h[k+3]=V},isNeutralState:function(){return this.blocksize===1},getUniformLocations:function(f,p){return{uBlocksize:f.getUniformLocation(p,"uBlocksize"),uStepW:f.getUniformLocation(p,"uStepW"),uStepH:f.getUniformLocation(p,"uStepH")}},sendUniformData:function(f,p){f.uniform1f(p.uBlocksize,this.blocksize)}}),d.Image.filters.Pixelate.fromObject=d.Image.filters.BaseFilter.fromObject}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.util.object.extend,m=d.Image.filters,f=d.util.createClass;m.RemoveColor=f(m.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:`precision highp float;
  388. uniform sampler2D uTexture;
  389. uniform vec4 uLow;
  390. uniform vec4 uHigh;
  391. varying vec2 vTexCoord;
  392. void main() {
  393. gl_FragColor = texture2D(uTexture, vTexCoord);
  394. if(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {
  395. gl_FragColor.a = 0.0;
  396. }
  397. }`,distance:.02,useAlpha:!1,applyTo2d:function(p){var h=p.imageData,b=h.data,w,k=this.distance*255,$,E,N,j=new d.Color(this.color).getSource(),z=[j[0]-k,j[1]-k,j[2]-k],V=[j[0]+k,j[1]+k,j[2]+k];for(w=0;w<b.length;w+=4)$=b[w],E=b[w+1],N=b[w+2],$>z[0]&&E>z[1]&&N>z[2]&&$<V[0]&&E<V[1]&&N<V[2]&&(b[w+3]=0)},getUniformLocations:function(p,h){return{uLow:p.getUniformLocation(h,"uLow"),uHigh:p.getUniformLocation(h,"uHigh")}},sendUniformData:function(p,h){var b=new d.Color(this.color).getSource(),w=parseFloat(this.distance),k=[0+b[0]/255-w,0+b[1]/255-w,0+b[2]/255-w,1],$=[b[0]/255+w,b[1]/255+w,b[2]/255+w,1];p.uniform4fv(h.uLow,k),p.uniform4fv(h.uHigh,$)},toObject:function(){return v(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),d.Image.filters.RemoveColor.fromObject=d.Image.filters.BaseFilter.fromObject}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.Image.filters,m=d.util.createClass,f={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var p in f)v[p]=m(v.ColorMatrix,{type:p,matrix:f[p],mainParameter:!1,colorsOnly:!0}),d.Image.filters[p].fromObject=d.Image.filters.BaseFilter.fromObject}(u),function(y){var d=y.fabric,v=d.Image.filters,m=d.util.createClass;v.BlendColor=m(v.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{multiply:`gl_FragColor.rgb *= uColor.rgb;
  398. `,screen:`gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);
  399. `,add:`gl_FragColor.rgb += uColor.rgb;
  400. `,diff:`gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);
  401. `,subtract:`gl_FragColor.rgb -= uColor.rgb;
  402. `,lighten:`gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);
  403. `,darken:`gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);
  404. `,exclusion:`gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);
  405. `,overlay:`if (uColor.r < 0.5) {
  406. gl_FragColor.r *= 2.0 * uColor.r;
  407. } else {
  408. gl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);
  409. }
  410. if (uColor.g < 0.5) {
  411. gl_FragColor.g *= 2.0 * uColor.g;
  412. } else {
  413. gl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);
  414. }
  415. if (uColor.b < 0.5) {
  416. gl_FragColor.b *= 2.0 * uColor.b;
  417. } else {
  418. gl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);
  419. }
  420. `,tint:`gl_FragColor.rgb *= (1.0 - uColor.a);
  421. gl_FragColor.rgb += uColor.rgb;
  422. `},buildSource:function(f){return`precision highp float;
  423. uniform sampler2D uTexture;
  424. uniform vec4 uColor;
  425. varying vec2 vTexCoord;
  426. void main() {
  427. vec4 color = texture2D(uTexture, vTexCoord);
  428. gl_FragColor = color;
  429. if (color.a > 0.0) {
  430. `+this.fragmentSource[f]+`}
  431. }`},retrieveShader:function(f){var p=this.type+"_"+this.mode,h;return f.programCache.hasOwnProperty(p)||(h=this.buildSource(this.mode),f.programCache[p]=this.createProgram(f.context,h)),f.programCache[p]},applyTo2d:function(f){var p=f.imageData,h=p.data,b=h.length,w,k,$,E,N,j,z,V=1-this.alpha;z=new d.Color(this.color).getSource(),w=z[0]*this.alpha,k=z[1]*this.alpha,$=z[2]*this.alpha;for(var W=0;W<b;W+=4)switch(E=h[W],N=h[W+1],j=h[W+2],this.mode){case"multiply":h[W]=E*w/255,h[W+1]=N*k/255,h[W+2]=j*$/255;break;case"screen":h[W]=255-(255-E)*(255-w)/255,h[W+1]=255-(255-N)*(255-k)/255,h[W+2]=255-(255-j)*(255-$)/255;break;case"add":h[W]=E+w,h[W+1]=N+k,h[W+2]=j+$;break;case"diff":case"difference":h[W]=Math.abs(E-w),h[W+1]=Math.abs(N-k),h[W+2]=Math.abs(j-$);break;case"subtract":h[W]=E-w,h[W+1]=N-k,h[W+2]=j-$;break;case"darken":h[W]=Math.min(E,w),h[W+1]=Math.min(N,k),h[W+2]=Math.min(j,$);break;case"lighten":h[W]=Math.max(E,w),h[W+1]=Math.max(N,k),h[W+2]=Math.max(j,$);break;case"overlay":h[W]=w<128?2*E*w/255:255-2*(255-E)*(255-w)/255,h[W+1]=k<128?2*N*k/255:255-2*(255-N)*(255-k)/255,h[W+2]=$<128?2*j*$/255:255-2*(255-j)*(255-$)/255;break;case"exclusion":h[W]=w+E-2*w*E/255,h[W+1]=k+N-2*k*N/255,h[W+2]=$+j-2*$*j/255;break;case"tint":h[W]=w+E*V,h[W+1]=k+N*V,h[W+2]=$+j*V}},getUniformLocations:function(f,p){return{uColor:f.getUniformLocation(p,"uColor")}},sendUniformData:function(f,p){var h=new d.Color(this.color).getSource();h[0]=this.alpha*h[0]/255,h[1]=this.alpha*h[1]/255,h[2]=this.alpha*h[2]/255,h[3]=this.alpha,f.uniform4fv(p.uColor,h)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),d.Image.filters.BlendColor.fromObject=d.Image.filters.BaseFilter.fromObject}(u),function(y){var d=y.fabric,v=d.Image.filters,m=d.util.createClass;v.BlendImage=m(v.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:`attribute vec2 aPosition;
  432. varying vec2 vTexCoord;
  433. varying vec2 vTexCoord2;
  434. uniform mat3 uTransformMatrix;
  435. void main() {
  436. vTexCoord = aPosition;
  437. vTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;
  438. gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);
  439. }`,fragmentSource:{multiply:`precision highp float;
  440. uniform sampler2D uTexture;
  441. uniform sampler2D uImage;
  442. uniform vec4 uColor;
  443. varying vec2 vTexCoord;
  444. varying vec2 vTexCoord2;
  445. void main() {
  446. vec4 color = texture2D(uTexture, vTexCoord);
  447. vec4 color2 = texture2D(uImage, vTexCoord2);
  448. color.rgba *= color2.rgba;
  449. gl_FragColor = color;
  450. }`,mask:`precision highp float;
  451. uniform sampler2D uTexture;
  452. uniform sampler2D uImage;
  453. uniform vec4 uColor;
  454. varying vec2 vTexCoord;
  455. varying vec2 vTexCoord2;
  456. void main() {
  457. vec4 color = texture2D(uTexture, vTexCoord);
  458. vec4 color2 = texture2D(uImage, vTexCoord2);
  459. color.a = color2.a;
  460. gl_FragColor = color;
  461. }`},retrieveShader:function(f){var p=this.type+"_"+this.mode,h=this.fragmentSource[this.mode];return f.programCache.hasOwnProperty(p)||(f.programCache[p]=this.createProgram(f.context,h)),f.programCache[p]},applyToWebGL:function(f){var p=f.context,h=this.createTexture(f.filterBackend,this.image);this.bindAdditionalTexture(p,h,p.TEXTURE1),this.callSuper("applyToWebGL",f),this.unbindAdditionalTexture(p,p.TEXTURE1)},createTexture:function(f,p){return f.getCachedTexture(p.cacheKey,p._element)},calculateMatrix:function(){var f=this.image,p=f._element.width,h=f._element.height;return[1/f.scaleX,0,0,0,1/f.scaleY,0,-f.left/p,-f.top/h,1]},applyTo2d:function(f){var p=f.imageData,h=f.filterBackend.resources,b=p.data,w=b.length,k=p.width,$=p.height,E,N,j,z,V,W,H,U,Q,q,ae=this.image,ne;h.blendImage||(h.blendImage=d.util.createCanvasElement()),Q=h.blendImage,q=Q.getContext("2d"),Q.width!==k||Q.height!==$?(Q.width=k,Q.height=$):q.clearRect(0,0,k,$),q.setTransform(ae.scaleX,0,0,ae.scaleY,ae.left,ae.top),q.drawImage(ae._element,0,0,k,$),ne=q.getImageData(0,0,k,$).data;for(var be=0;be<w;be+=4)switch(V=b[be],W=b[be+1],H=b[be+2],U=b[be+3],E=ne[be],N=ne[be+1],j=ne[be+2],z=ne[be+3],this.mode){case"multiply":b[be]=V*E/255,b[be+1]=W*N/255,b[be+2]=H*j/255,b[be+3]=U*z/255;break;case"mask":b[be+3]=z;break}},getUniformLocations:function(f,p){return{uTransformMatrix:f.getUniformLocation(p,"uTransformMatrix"),uImage:f.getUniformLocation(p,"uImage")}},sendUniformData:function(f,p){var h=this.calculateMatrix();f.uniform1i(p.uImage,1),f.uniformMatrix3fv(p.uTransformMatrix,!1,h)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),d.Image.filters.BlendImage.fromObject=function(f,p){d.Image.fromObject(f.image,function(h){var b=d.util.object.clone(f);b.image=h,p(new d.Image.filters.BlendImage(b))})}}(u),function(y){var d=y.fabric||(y.fabric={}),v=Math.pow,m=Math.floor,f=Math.sqrt,p=Math.abs,h=Math.round,b=Math.sin,w=Math.ceil,k=d.Image.filters,$=d.util.createClass;k.Resize=$(k.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(E,N){return{uDelta:E.getUniformLocation(N,"uDelta"),uTaps:E.getUniformLocation(N,"uTaps")}},sendUniformData:function(E,N){E.uniform2fv(N.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),E.uniform1fv(N.uTaps,this.taps)},retrieveShader:function(E){var N=this.getFilterWindow(),j=this.type+"_"+N;if(!E.programCache.hasOwnProperty(j)){var z=this.generateShader(N);E.programCache[j]=this.createProgram(E.context,z)}return E.programCache[j]},getFilterWindow:function(){var E=this.tempScale;return Math.ceil(this.lanczosLobes/E)},getTaps:function(){for(var E=this.lanczosCreate(this.lanczosLobes),N=this.tempScale,j=this.getFilterWindow(),z=new Array(j),V=1;V<=j;V++)z[V-1]=E(V*N);return z},generateShader:function(z){for(var N=new Array(z),j=this.fragmentSourceTOP,z,V=1;V<=z;V++)N[V-1]=V+".0 * uDelta";return j+="uniform float uTaps["+z+`];
  462. `,j+=`void main() {
  463. `,j+=` vec4 color = texture2D(uTexture, vTexCoord);
  464. `,j+=` float sum = 1.0;
  465. `,N.forEach(function(W,H){j+=" color += texture2D(uTexture, vTexCoord + "+W+") * uTaps["+H+`];
  466. `,j+=" color += texture2D(uTexture, vTexCoord - "+W+") * uTaps["+H+`];
  467. `,j+=" sum += 2.0 * uTaps["+H+`];
  468. `}),j+=` gl_FragColor = color / sum;
  469. `,j+="}",j},fragmentSourceTOP:`precision highp float;
  470. uniform sampler2D uTexture;
  471. uniform vec2 uDelta;
  472. varying vec2 vTexCoord;
  473. `,applyTo:function(E){E.webgl?(E.passes++,this.width=E.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=E.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),E.destinationWidth=this.dW,this._setupFrameBuffer(E),this.applyToWebGL(E),this._swapTextures(E),E.sourceWidth=E.destinationWidth,this.height=E.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),E.destinationHeight=this.dH,this._setupFrameBuffer(E),this.applyToWebGL(E),this._swapTextures(E),E.sourceHeight=E.destinationHeight):this.applyTo2d(E)},isNeutralState:function(){return this.scaleX===1&&this.scaleY===1},lanczosCreate:function(E){return function(N){if(N>=E||N<=-E)return 0;if(N<11920929e-14&&N>-11920929e-14)return 1;N*=Math.PI;var j=N/E;return b(N)/N*b(j)/j}},applyTo2d:function(E){var N=E.imageData,j=this.scaleX,z=this.scaleY;this.rcpScaleX=1/j,this.rcpScaleY=1/z;var V=N.width,W=N.height,H=h(V*j),U=h(W*z),Q;this.resizeType==="sliceHack"?Q=this.sliceByTwo(E,V,W,H,U):this.resizeType==="hermite"?Q=this.hermiteFastResize(E,V,W,H,U):this.resizeType==="bilinear"?Q=this.bilinearFiltering(E,V,W,H,U):this.resizeType==="lanczos"&&(Q=this.lanczosResize(E,V,W,H,U)),E.imageData=Q},sliceByTwo:function(E,N,j,z,V){var W=E.imageData,H=.5,U=!1,Q=!1,q=N*H,ae=j*H,ne=d.filterBackend.resources,be,te,Ie=0,$e=0,Me=N,ge=0;for(ne.sliceByTwo||(ne.sliceByTwo=document.createElement("canvas")),be=ne.sliceByTwo,(be.width<N*1.5||be.height<j)&&(be.width=N*1.5,be.height=j),te=be.getContext("2d"),te.clearRect(0,0,N*1.5,j),te.putImageData(W,0,0),z=m(z),V=m(V);!U||!Q;)N=q,j=ae,z<m(q*H)?q=m(q*H):(q=z,U=!0),V<m(ae*H)?ae=m(ae*H):(ae=V,Q=!0),te.drawImage(be,Ie,$e,N,j,Me,ge,q,ae),Ie=Me,$e=ge,ge+=ae;return te.getImageData(Ie,$e,z,V)},lanczosResize:function(E,N,j,z,V){function W(fe){var pe,je,Y,Z,ee,ce,xe,re,le,ve,De;for(ge.x=(fe+.5)*ae,Se.x=m(ge.x),pe=0;pe<V;pe++){for(ge.y=(pe+.5)*ne,Se.y=m(ge.y),ee=0,ce=0,xe=0,re=0,le=0,je=Se.x-Ie;je<=Se.x+Ie;je++)if(!(je<0||je>=N)){ve=m(1e3*p(je-ge.x)),Me[ve]||(Me[ve]={});for(var Ee=Se.y-$e;Ee<=Se.y+$e;Ee++)Ee<0||Ee>=j||(De=m(1e3*p(Ee-ge.y)),Me[ve][De]||(Me[ve][De]=q(f(v(ve*be,2)+v(De*te,2))/1e3)),Y=Me[ve][De],Y>0&&(Z=(Ee*N+je)*4,ee+=Y,ce+=Y*H[Z],xe+=Y*H[Z+1],re+=Y*H[Z+2],le+=Y*H[Z+3]))}Z=(pe*z+fe)*4,Q[Z]=ce/ee,Q[Z+1]=xe/ee,Q[Z+2]=re/ee,Q[Z+3]=le/ee}return++fe<z?W(fe):U}var H=E.imageData.data,U=E.ctx.createImageData(z,V),Q=U.data,q=this.lanczosCreate(this.lanczosLobes),ae=this.rcpScaleX,ne=this.rcpScaleY,be=2/this.rcpScaleX,te=2/this.rcpScaleY,Ie=w(ae*this.lanczosLobes/2),$e=w(ne*this.lanczosLobes/2),Me={},ge={},Se={};return W(0)},bilinearFiltering:function(E,N,j,z,V){var W,H,U,Q,q,ae,ne,be,te,Ie,$e,Me,ge=0,Se,fe=this.rcpScaleX,pe=this.rcpScaleY,je=4*(N-1),Y=E.imageData,Z=Y.data,ee=E.ctx.createImageData(z,V),ce=ee.data;for(ne=0;ne<V;ne++)for(be=0;be<z;be++)for(q=m(fe*be),ae=m(pe*ne),te=fe*be-q,Ie=pe*ne-ae,Se=4*(ae*N+q),$e=0;$e<4;$e++)W=Z[Se+$e],H=Z[Se+4+$e],U=Z[Se+je+$e],Q=Z[Se+je+4+$e],Me=W*(1-te)*(1-Ie)+H*te*(1-Ie)+U*Ie*(1-te)+Q*te*Ie,ce[ge++]=Me;return ee},hermiteFastResize:function(E,N,j,z,V){for(var W=this.rcpScaleX,H=this.rcpScaleY,U=w(W/2),Q=w(H/2),q=E.imageData,ae=q.data,ne=E.ctx.createImageData(z,V),be=ne.data,te=0;te<V;te++)for(var Ie=0;Ie<z;Ie++){for(var $e=(Ie+te*z)*4,Me=0,ge=0,Se=0,fe=0,pe=0,je=0,Y=0,Z=(te+.5)*H,ee=m(te*H);ee<(te+1)*H;ee++)for(var ce=p(Z-(ee+.5))/Q,xe=(Ie+.5)*W,re=ce*ce,le=m(Ie*W);le<(Ie+1)*W;le++){var ve=p(xe-(le+.5))/U,De=f(re+ve*ve);De>1&&De<-1||(Me=2*De*De*De-3*De*De+1,Me>0&&(ve=4*(le+ee*N),Y+=Me*ae[ve+3],Se+=Me,ae[ve+3]<255&&(Me=Me*ae[ve+3]/250),fe+=Me*ae[ve],pe+=Me*ae[ve+1],je+=Me*ae[ve+2],ge+=Me))}be[$e]=fe/ge,be[$e+1]=pe/ge,be[$e+2]=je/ge,be[$e+3]=Y/Se}return ne},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),d.Image.filters.Resize.fromObject=d.Image.filters.BaseFilter.fromObject}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.Image.filters,m=d.util.createClass;v.Contrast=m(v.BaseFilter,{type:"Contrast",fragmentSource:`precision highp float;
  474. uniform sampler2D uTexture;
  475. uniform float uContrast;
  476. varying vec2 vTexCoord;
  477. void main() {
  478. vec4 color = texture2D(uTexture, vTexCoord);
  479. float contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));
  480. color.rgb = contrastF * (color.rgb - 0.5) + 0.5;
  481. gl_FragColor = color;
  482. }`,contrast:0,mainParameter:"contrast",applyTo2d:function(f){if(this.contrast!==0){var p=f.imageData,h,w,b=p.data,w=b.length,k=Math.floor(this.contrast*255),$=259*(k+255)/(255*(259-k));for(h=0;h<w;h+=4)b[h]=$*(b[h]-128)+128,b[h+1]=$*(b[h+1]-128)+128,b[h+2]=$*(b[h+2]-128)+128}},getUniformLocations:function(f,p){return{uContrast:f.getUniformLocation(p,"uContrast")}},sendUniformData:function(f,p){f.uniform1f(p.uContrast,this.contrast)}}),d.Image.filters.Contrast.fromObject=d.Image.filters.BaseFilter.fromObject}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.Image.filters,m=d.util.createClass;v.Saturation=m(v.BaseFilter,{type:"Saturation",fragmentSource:`precision highp float;
  483. uniform sampler2D uTexture;
  484. uniform float uSaturation;
  485. varying vec2 vTexCoord;
  486. void main() {
  487. vec4 color = texture2D(uTexture, vTexCoord);
  488. float rgMax = max(color.r, color.g);
  489. float rgbMax = max(rgMax, color.b);
  490. color.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;
  491. color.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;
  492. color.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;
  493. gl_FragColor = color;
  494. }`,saturation:0,mainParameter:"saturation",applyTo2d:function(f){if(this.saturation!==0){var p=f.imageData,h=p.data,b=h.length,w=-this.saturation,k,$;for(k=0;k<b;k+=4)$=Math.max(h[k],h[k+1],h[k+2]),h[k]+=$!==h[k]?($-h[k])*w:0,h[k+1]+=$!==h[k+1]?($-h[k+1])*w:0,h[k+2]+=$!==h[k+2]?($-h[k+2])*w:0}},getUniformLocations:function(f,p){return{uSaturation:f.getUniformLocation(p,"uSaturation")}},sendUniformData:function(f,p){f.uniform1f(p.uSaturation,-this.saturation)}}),d.Image.filters.Saturation.fromObject=d.Image.filters.BaseFilter.fromObject}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.Image.filters,m=d.util.createClass;v.Vibrance=m(v.BaseFilter,{type:"Vibrance",fragmentSource:`precision highp float;
  495. uniform sampler2D uTexture;
  496. uniform float uVibrance;
  497. varying vec2 vTexCoord;
  498. void main() {
  499. vec4 color = texture2D(uTexture, vTexCoord);
  500. float max = max(color.r, max(color.g, color.b));
  501. float avg = (color.r + color.g + color.b) / 3.0;
  502. float amt = (abs(max - avg) * 2.0) * uVibrance;
  503. color.r += max != color.r ? (max - color.r) * amt : 0.00;
  504. color.g += max != color.g ? (max - color.g) * amt : 0.00;
  505. color.b += max != color.b ? (max - color.b) * amt : 0.00;
  506. gl_FragColor = color;
  507. }`,vibrance:0,mainParameter:"vibrance",applyTo2d:function(f){if(this.vibrance!==0){var p=f.imageData,h=p.data,b=h.length,w=-this.vibrance,k,$,E,N;for(k=0;k<b;k+=4)$=Math.max(h[k],h[k+1],h[k+2]),E=(h[k]+h[k+1]+h[k+2])/3,N=Math.abs($-E)*2/255*w,h[k]+=$!==h[k]?($-h[k])*N:0,h[k+1]+=$!==h[k+1]?($-h[k+1])*N:0,h[k+2]+=$!==h[k+2]?($-h[k+2])*N:0}},getUniformLocations:function(f,p){return{uVibrance:f.getUniformLocation(p,"uVibrance")}},sendUniformData:function(f,p){f.uniform1f(p.uVibrance,-this.vibrance)}}),d.Image.filters.Vibrance.fromObject=d.Image.filters.BaseFilter.fromObject}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.Image.filters,m=d.util.createClass;v.Blur=m(v.BaseFilter,{type:"Blur",fragmentSource:`precision highp float;
  508. uniform sampler2D uTexture;
  509. uniform vec2 uDelta;
  510. varying vec2 vTexCoord;
  511. const float nSamples = 15.0;
  512. vec3 v3offset = vec3(12.9898, 78.233, 151.7182);
  513. float random(vec3 scale) {
  514. return fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);
  515. }
  516. void main() {
  517. vec4 color = vec4(0.0);
  518. float total = 0.0;
  519. float offset = random(v3offset);
  520. for (float t = -nSamples; t <= nSamples; t++) {
  521. float percent = (t + offset - 0.5) / nSamples;
  522. float weight = 1.0 - abs(percent);
  523. color += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;
  524. total += weight;
  525. }
  526. gl_FragColor = color / total;
  527. }`,blur:0,mainParameter:"blur",applyTo:function(f){f.webgl?(this.aspectRatio=f.sourceWidth/f.sourceHeight,f.passes++,this._setupFrameBuffer(f),this.horizontal=!0,this.applyToWebGL(f),this._swapTextures(f),this._setupFrameBuffer(f),this.horizontal=!1,this.applyToWebGL(f),this._swapTextures(f)):this.applyTo2d(f)},applyTo2d:function(f){f.imageData=this.simpleBlur(f)},simpleBlur:function(f){var p=f.filterBackend.resources,h,b,w=f.imageData.width,k=f.imageData.height;p.blurLayer1||(p.blurLayer1=d.util.createCanvasElement(),p.blurLayer2=d.util.createCanvasElement()),h=p.blurLayer1,b=p.blurLayer2,(h.width!==w||h.height!==k)&&(b.width=h.width=w,b.height=h.height=k);var $=h.getContext("2d"),E=b.getContext("2d"),N=15,j,z,V,W,H=this.blur*.06*.5;for($.putImageData(f.imageData,0,0),E.clearRect(0,0,w,k),W=-N;W<=N;W++)j=(Math.random()-.5)/4,z=W/N,V=H*z*w+j,E.globalAlpha=1-Math.abs(z),E.drawImage(h,V,j),$.drawImage(b,0,0),E.globalAlpha=1,E.clearRect(0,0,b.width,b.height);for(W=-N;W<=N;W++)j=(Math.random()-.5)/4,z=W/N,V=H*z*k+j,E.globalAlpha=1-Math.abs(z),E.drawImage(h,j,V),$.drawImage(b,0,0),E.globalAlpha=1,E.clearRect(0,0,b.width,b.height);f.ctx.drawImage(h,0,0);var U=f.ctx.getImageData(0,0,h.width,h.height);return $.globalAlpha=1,$.clearRect(0,0,h.width,h.height),U},getUniformLocations:function(f,p){return{delta:f.getUniformLocation(p,"uDelta")}},sendUniformData:function(f,p){var h=this.chooseRightDelta();f.uniform2fv(p.delta,h)},chooseRightDelta:function(){var f=1,p=[0,0],h;return this.horizontal?this.aspectRatio>1&&(f=1/this.aspectRatio):this.aspectRatio<1&&(f=this.aspectRatio),h=f*this.blur*.12,this.horizontal?p[0]=h:p[1]=h,p}}),v.Blur.fromObject=d.Image.filters.BaseFilter.fromObject}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.Image.filters,m=d.util.createClass;v.Gamma=m(v.BaseFilter,{type:"Gamma",fragmentSource:`precision highp float;
  528. uniform sampler2D uTexture;
  529. uniform vec3 uGamma;
  530. varying vec2 vTexCoord;
  531. void main() {
  532. vec4 color = texture2D(uTexture, vTexCoord);
  533. vec3 correction = (1.0 / uGamma);
  534. color.r = pow(color.r, correction.r);
  535. color.g = pow(color.g, correction.g);
  536. color.b = pow(color.b, correction.b);
  537. gl_FragColor = color;
  538. gl_FragColor.rgb *= color.a;
  539. }`,gamma:[1,1,1],mainParameter:"gamma",initialize:function(f){this.gamma=[1,1,1],v.BaseFilter.prototype.initialize.call(this,f)},applyTo2d:function(f){var p=f.imageData,h=p.data,b=this.gamma,w=h.length,k=1/b[0],$=1/b[1],E=1/b[2],N;for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),N=0,w=256;N<w;N++)this.rVals[N]=Math.pow(N/255,k)*255,this.gVals[N]=Math.pow(N/255,$)*255,this.bVals[N]=Math.pow(N/255,E)*255;for(N=0,w=h.length;N<w;N+=4)h[N]=this.rVals[h[N]],h[N+1]=this.gVals[h[N+1]],h[N+2]=this.bVals[h[N+2]]},getUniformLocations:function(f,p){return{uGamma:f.getUniformLocation(p,"uGamma")}},sendUniformData:function(f,p){f.uniform3fv(p.uGamma,this.gamma)}}),d.Image.filters.Gamma.fromObject=d.Image.filters.BaseFilter.fromObject}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.Image.filters,m=d.util.createClass;v.Composed=m(v.BaseFilter,{type:"Composed",subFilters:[],initialize:function(f){this.callSuper("initialize",f),this.subFilters=this.subFilters.slice(0)},applyTo:function(f){f.passes+=this.subFilters.length-1,this.subFilters.forEach(function(p){p.applyTo(f)})},toObject:function(){return d.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map(function(f){return f.toObject()})})},isNeutralState:function(){return!this.subFilters.some(function(f){return!f.isNeutralState()})}}),d.Image.filters.Composed.fromObject=function(f,p){var h=f.subFilters||[],b=h.map(function(k){return new d.Image.filters[k.type](k)}),w=new d.Image.filters.Composed({subFilters:b});return p&&p(w),w}}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.Image.filters,m=d.util.createClass;v.HueRotation=m(v.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var f=this.rotation*Math.PI,p=d.util.cos(f),h=d.util.sin(f),b=1/3,w=Math.sqrt(b)*h,k=1-p;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=p+k/3,this.matrix[1]=b*k-w,this.matrix[2]=b*k+w,this.matrix[5]=b*k+w,this.matrix[6]=p+b*k,this.matrix[7]=b*k-w,this.matrix[10]=b*k-w,this.matrix[11]=b*k+w,this.matrix[12]=p+b*k},isNeutralState:function(f){return this.calculateMatrix(),v.BaseFilter.prototype.isNeutralState.call(this,f)},applyTo:function(f){this.calculateMatrix(),v.BaseFilter.prototype.applyTo.call(this,f)}}),d.Image.filters.HueRotation.fromObject=d.Image.filters.BaseFilter.fromObject}(u),function(y){var d=y.fabric||(y.fabric={}),v=d.util.object.clone;if(d.Text){d.warn("fabric.Text is already defined");return}var m="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide".split(" ");d.Text=d.util.createClass(d.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:d.Object.prototype.stateProperties.concat(m),cacheProperties:d.Object.prototype.cacheProperties.concat(m),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:"left",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:"ltr",_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(f,p){this.styles=p?p.styles||{}:{},this.text=f,this.__skipDimension=!0,this.callSuper("initialize",p),this.path&&this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},setPathInfo:function(){var f=this.path;f&&(f.segmentsInfo=d.util.getPathSegmentsInfo(f.path))},getMeasuringContext:function(){return d._measuringContext||(d._measuringContext=this.canvas&&this.canvas.contextCache||d.util.createCanvasElement().getContext("2d")),d._measuringContext},_splitText:function(){var f=this._splitTextIntoLines(this.text);return this.textLines=f.lines,this._textLines=f.graphemeLines,this._unwrappedTextLines=f._unwrappedLines,this._text=f.graphemeText,f},initDimensions:function(){this.__skipDimension||(this._splitText(),this._clearCache(),this.path?(this.width=this.path.width,this.height=this.path.height):(this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight()),this.textAlign.indexOf("justify")!==-1&&this.enlargeSpaces(),this.saveState({propertySet:"_dimensionAffectingProps"}))},enlargeSpaces:function(){for(var f,p,h,b,w,k,$,E=0,N=this._textLines.length;E<N;E++)if(!(this.textAlign!=="justify"&&(E===N-1||this.isEndOfWrapping(E)))&&(b=0,w=this._textLines[E],p=this.getLineWidth(E),p<this.width&&($=this.textLines[E].match(this._reSpacesAndTabs)))){h=$.length,f=(this.width-p)/h;for(var j=0,z=w.length;j<=z;j++)k=this.__charBounds[E][j],this._reSpaceAndTab.test(w[j])?(k.width+=f,k.kernedWidth+=f,k.left+=b,b+=f):k.left+=b}},isEndOfWrapping:function(f){return f===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var f=this.callSuper("_getCacheCanvasDimensions"),p=this.fontSize;return f.width+=p*f.zoomX,f.height+=p*f.zoomY,f},_render:function(f){var p=this.path;p&&!p.isNotVisible()&&p._render(f),this._setTextStyles(f),this._renderTextLinesBackground(f),this._renderTextDecoration(f,"underline"),this._renderText(f),this._renderTextDecoration(f,"overline"),this._renderTextDecoration(f,"linethrough")},_renderText:function(f){this.paintFirst==="stroke"?(this._renderTextStroke(f),this._renderTextFill(f)):(this._renderTextFill(f),this._renderTextStroke(f))},_setTextStyles:function(f,p,h){f.textBaseline="alphabetic",f.font=this._getFontDeclaration(p,h)},calcTextWidth:function(){for(var f=this.getLineWidth(0),p=1,h=this._textLines.length;p<h;p++){var b=this.getLineWidth(p);b>f&&(f=b)}return f},_renderTextLine:function(f,p,h,b,w,k){this._renderChars(f,p,h,b,w,k)},_renderTextLinesBackground:function(f){if(!(!this.textBackgroundColor&&!this.styleHas("textBackgroundColor"))){for(var p,h,b=f.fillStyle,w,k,$=this._getLeftOffset(),E=this._getTopOffset(),N=0,j=0,z,V,W=this.path,H,U=0,Q=this._textLines.length;U<Q;U++){if(p=this.getHeightOfLine(U),!this.textBackgroundColor&&!this.styleHas("textBackgroundColor",U)){E+=p;continue}w=this._textLines[U],h=this._getLineLeftOffset(U),j=0,N=0,k=this.getValueOfPropertyAt(U,0,"textBackgroundColor");for(var q=0,ae=w.length;q<ae;q++)z=this.__charBounds[U][q],V=this.getValueOfPropertyAt(U,q,"textBackgroundColor"),W?(f.save(),f.translate(z.renderLeft,z.renderTop),f.rotate(z.angle),f.fillStyle=V,V&&f.fillRect(-z.width/2,-p/this.lineHeight*(1-this._fontSizeFraction),z.width,p/this.lineHeight),f.restore()):V!==k?(H=$+h+N,this.direction==="rtl"&&(H=this.width-H-j),f.fillStyle=k,k&&f.fillRect(H,E,j,p/this.lineHeight),N=z.left,j=z.width,k=V):j+=z.kernedWidth;V&&!W&&(H=$+h+N,this.direction==="rtl"&&(H=this.width-H-j),f.fillStyle=V,f.fillRect(H,E,j,p/this.lineHeight)),E+=p}f.fillStyle=b,this._removeShadow(f)}},getFontCache:function(f){var p=f.fontFamily.toLowerCase();d.charWidthsCache[p]||(d.charWidthsCache[p]={});var h=d.charWidthsCache[p],b=f.fontStyle.toLowerCase()+"_"+(f.fontWeight+"").toLowerCase();return h[b]||(h[b]={}),h[b]},_measureChar:function(f,p,h,b){var w=this.getFontCache(p),k=this._getFontDeclaration(p),$=this._getFontDeclaration(b),E=h+f,N=k===$,j,z,V,W=p.fontSize/this.CACHE_FONT_SIZE,H;if(h&&w[h]!==void 0&&(V=w[h]),w[f]!==void 0&&(H=j=w[f]),N&&w[E]!==void 0&&(z=w[E],H=z-V),j===void 0||V===void 0||z===void 0){var U=this.getMeasuringContext();this._setTextStyles(U,p,!0)}return j===void 0&&(H=j=U.measureText(f).width,w[f]=j),V===void 0&&N&&h&&(V=U.measureText(h).width,w[h]=V),N&&z===void 0&&(z=U.measureText(E).width,w[E]=z,H=z-V),{width:j*W,kernedWidth:H*W}},getHeightOfChar:function(f,p){return this.getValueOfPropertyAt(f,p,"fontSize")},measureLine:function(f){var p=this._measureLine(f);return this.charSpacing!==0&&(p.width-=this._getWidthOfCharSpacing()),p.width<0&&(p.width=0),p},_measureLine:function(f){var p=0,h,b,w=this._textLines[f],k,$,E=0,N=new Array(w.length),j=0,z,V,W=this.path,H=this.pathSide==="right";for(this.__charBounds[f]=N,h=0;h<w.length;h++)b=w[h],$=this._getGraphemeBox(b,f,h,k),N[h]=$,p+=$.kernedWidth,k=b;if(N[h]={left:$?$.left+$.width:0,width:0,kernedWidth:0,height:this.fontSize},W){switch(V=W.segmentsInfo[W.segmentsInfo.length-1].length,z=d.util.getPointOnPath(W.path,0,W.segmentsInfo),z.x+=W.pathOffset.x,z.y+=W.pathOffset.y,this.textAlign){case"left":j=H?V-p:0;break;case"center":j=(V-p)/2;break;case"right":j=H?0:V-p;break}for(j+=this.pathStartOffset*(H?-1:1),h=H?w.length-1:0;H?h>=0:h<w.length;H?h--:h++)$=N[h],j>V?j%=V:j<0&&(j+=V),this._setGraphemeOnPath(j,$,z),j+=$.kernedWidth}return{width:p,numOfSpaces:E}},_setGraphemeOnPath:function(f,p,h){var b=f+p.kernedWidth/2,w=this.path,k=d.util.getPointOnPath(w.path,b,w.segmentsInfo);p.renderLeft=k.x-h.x,p.renderTop=k.y-h.y,p.angle=k.angle+(this.pathSide==="right"?Math.PI:0)},_getGraphemeBox:function(f,p,h,b,w){var k=this.getCompleteStyleDeclaration(p,h),$=b?this.getCompleteStyleDeclaration(p,h-1):{},E=this._measureChar(f,k,b,$),N=E.kernedWidth,j=E.width,z;this.charSpacing!==0&&(z=this._getWidthOfCharSpacing(),j+=z,N+=z);var V={width:j,left:0,height:k.fontSize,kernedWidth:N,deltaY:k.deltaY};if(h>0&&!w){var W=this.__charBounds[p][h-1];V.left=W.left+W.width+E.kernedWidth-E.width}return V},getHeightOfLine:function(f){if(this.__lineHeights[f])return this.__lineHeights[f];for(var p=this._textLines[f],h=this.getHeightOfChar(f,0),b=1,w=p.length;b<w;b++)h=Math.max(this.getHeightOfChar(f,b),h);return this.__lineHeights[f]=h*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var f,p=0,h=0,b=this._textLines.length;h<b;h++)f=this.getHeightOfLine(h),p+=h===b-1?f/this.lineHeight:f;return p},_getLeftOffset:function(){return this.direction==="ltr"?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(f,p){f.save();for(var h=0,b=this._getLeftOffset(),w=this._getTopOffset(),k=0,$=this._textLines.length;k<$;k++){var E=this.getHeightOfLine(k),N=E/this.lineHeight,j=this._getLineLeftOffset(k);this._renderTextLine(p,f,this._textLines[k],b+j,w+h+N,k),h+=E}f.restore()},_renderTextFill:function(f){!this.fill&&!this.styleHas("fill")||this._renderTextCommon(f,"fillText")},_renderTextStroke:function(f){(!this.stroke||this.strokeWidth===0)&&this.isEmptyStyles()||(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(f),f.save(),this._setLineDash(f,this.strokeDashArray),f.beginPath(),this._renderTextCommon(f,"strokeText"),f.closePath(),f.restore())},_renderChars:function(f,p,h,b,w,k){var $=this.getHeightOfLine(k),E=this.textAlign.indexOf("justify")!==-1,N,j,z="",V,W=0,H,U=this.path,Q=!E&&this.charSpacing===0&&this.isEmptyStyles(k)&&!U,q=this.direction==="ltr",ae=this.direction==="ltr"?1:-1,ne;if(p.save(),w-=$*this._fontSizeFraction/this.lineHeight,Q){p.canvas.setAttribute("dir",q?"ltr":"rtl"),p.direction=q?"ltr":"rtl",p.textAlign=q?"left":"right",this._renderChar(f,p,k,0,h.join(""),b,w,$),p.restore();return}for(var be=0,te=h.length-1;be<=te;be++)H=be===te||this.charSpacing||U,z+=h[be],V=this.__charBounds[k][be],W===0?(b+=ae*(V.kernedWidth-V.width),W+=V.width):W+=V.kernedWidth,E&&!H&&this._reSpaceAndTab.test(h[be])&&(H=!0),H||(N=N||this.getCompleteStyleDeclaration(k,be),j=this.getCompleteStyleDeclaration(k,be+1),H=this._hasStyleChanged(N,j)),H&&(U?(p.save(),p.translate(V.renderLeft,V.renderTop),p.rotate(V.angle),this._renderChar(f,p,k,be,z,-W/2,0,$),p.restore()):(ne=b,p.canvas.setAttribute("dir",q?"ltr":"rtl"),p.direction=q?"ltr":"rtl",p.textAlign=q?"left":"right",this._renderChar(f,p,k,be,z,ne,w,$)),z="",N=j,b+=ae*W,W=0);p.restore()},_applyPatternGradientTransformText:function(f){var p=d.util.createCanvasElement(),h,b=this.width+this.strokeWidth,w=this.height+this.strokeWidth;return p.width=b,p.height=w,h=p.getContext("2d"),h.beginPath(),h.moveTo(0,0),h.lineTo(b,0),h.lineTo(b,w),h.lineTo(0,w),h.closePath(),h.translate(b/2,w/2),h.fillStyle=f.toLive(h),this._applyPatternGradientTransform(h,f),h.fill(),h.createPattern(p,"no-repeat")},handleFiller:function(f,p,h){var b,w;return h.toLive?h.gradientUnits==="percentage"||h.gradientTransform||h.patternTransform?(b=-this.width/2,w=-this.height/2,f.translate(b,w),f[p]=this._applyPatternGradientTransformText(h),{offsetX:b,offsetY:w}):(f[p]=h.toLive(f,this),this._applyPatternGradientTransform(f,h)):(f[p]=h,{offsetX:0,offsetY:0})},_setStrokeStyles:function(f,p){return f.lineWidth=p.strokeWidth,f.lineCap=this.strokeLineCap,f.lineDashOffset=this.strokeDashOffset,f.lineJoin=this.strokeLineJoin,f.miterLimit=this.strokeMiterLimit,this.handleFiller(f,"strokeStyle",p.stroke)},_setFillStyles:function(f,p){return this.handleFiller(f,"fillStyle",p.fill)},_renderChar:function(f,p,h,b,w,k,$){var E=this._getStyleDeclaration(h,b),N=this.getCompleteStyleDeclaration(h,b),j=f==="fillText"&&N.fill,z=f==="strokeText"&&N.stroke&&N.strokeWidth,V,W;!z&&!j||(p.save(),j&&(V=this._setFillStyles(p,N)),z&&(W=this._setStrokeStyles(p,N)),p.font=this._getFontDeclaration(N),E&&E.textBackgroundColor&&this._removeShadow(p),E&&E.deltaY&&($+=E.deltaY),j&&p.fillText(w,k-V.offsetX,$-V.offsetY),z&&p.strokeText(w,k-W.offsetX,$-W.offsetY),p.restore())},setSuperscript:function(f,p){return this._setScript(f,p,this.superscript)},setSubscript:function(f,p){return this._setScript(f,p,this.subscript)},_setScript:function(f,p,h){var b=this.get2DCursorLocation(f,!0),w=this.getValueOfPropertyAt(b.lineIndex,b.charIndex,"fontSize"),k=this.getValueOfPropertyAt(b.lineIndex,b.charIndex,"deltaY"),$={fontSize:w*h.size,deltaY:k+w*h.baseline};return this.setSelectionStyles($,f,p),this},_hasStyleChanged:function(f,p){return f.fill!==p.fill||f.stroke!==p.stroke||f.strokeWidth!==p.strokeWidth||f.fontSize!==p.fontSize||f.fontFamily!==p.fontFamily||f.fontWeight!==p.fontWeight||f.fontStyle!==p.fontStyle||f.deltaY!==p.deltaY},_hasStyleChangedForSvg:function(f,p){return this._hasStyleChanged(f,p)||f.overline!==p.overline||f.underline!==p.underline||f.linethrough!==p.linethrough},_getLineLeftOffset:function(f){var p=this.getLineWidth(f),h=this.width-p,b=this.textAlign,w=this.direction,$,k=0,$=this.isEndOfWrapping(f);return b==="justify"||b==="justify-center"&&!$||b==="justify-right"&&!$||b==="justify-left"&&!$?0:(b==="center"&&(k=h/2),b==="right"&&(k=h),b==="justify-center"&&(k=h/2),b==="justify-right"&&(k=h),w==="rtl"&&(k-=h),k)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var f=this._forceClearCache;return f||(f=this.hasStateChanged("_dimensionAffectingProps")),f&&(this.dirty=!0,this._forceClearCache=!1),f},getLineWidth:function(f){if(this.__lineWidths[f])return this.__lineWidths[f];var p,h=this._textLines[f],b;return h===""?p=0:(b=this.measureLine(f),p=b.width),this.__lineWidths[f]=p,p},_getWidthOfCharSpacing:function(){return this.charSpacing!==0?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(f,p,h){var b=this._getStyleDeclaration(f,p);return b&&typeof b[h]<"u"?b[h]:this[h]},_renderTextDecoration:function(f,p){if(!(!this[p]&&!this.styleHas(p))){for(var h,b,w,k,$,E,N,j,z=this._getLeftOffset(),V=this._getTopOffset(),W,H,U,Q,q,ae,ne,be,te=this.path,Ie=this._getWidthOfCharSpacing(),$e=this.offsets[p],Me=0,ge=this._textLines.length;Me<ge;Me++){if(h=this.getHeightOfLine(Me),!this[p]&&!this.styleHas(p,Me)){V+=h;continue}N=this._textLines[Me],ae=h/this.lineHeight,k=this._getLineLeftOffset(Me),H=0,U=0,j=this.getValueOfPropertyAt(Me,0,p),be=this.getValueOfPropertyAt(Me,0,"fill"),W=V+ae*(1-this._fontSizeFraction),b=this.getHeightOfChar(Me,0),$=this.getValueOfPropertyAt(Me,0,"deltaY");for(var Se=0,fe=N.length;Se<fe;Se++)if(Q=this.__charBounds[Me][Se],q=this.getValueOfPropertyAt(Me,Se,p),ne=this.getValueOfPropertyAt(Me,Se,"fill"),w=this.getHeightOfChar(Me,Se),E=this.getValueOfPropertyAt(Me,Se,"deltaY"),te&&q&&ne)f.save(),f.fillStyle=be,f.translate(Q.renderLeft,Q.renderTop),f.rotate(Q.angle),f.fillRect(-Q.kernedWidth/2,$e*w+E,Q.kernedWidth,this.fontSize/15),f.restore();else if((q!==j||ne!==be||w!==b||E!==$)&&U>0){var pe=z+k+H;this.direction==="rtl"&&(pe=this.width-pe-U),j&&be&&(f.fillStyle=be,f.fillRect(pe,W+$e*b+$,U,this.fontSize/15)),H=Q.left,U=Q.width,j=q,be=ne,b=w,$=E}else U+=Q.kernedWidth;var pe=z+k+H;this.direction==="rtl"&&(pe=this.width-pe-U),f.fillStyle=ne,q&&ne&&f.fillRect(pe,W+$e*b+$,U-Ie,this.fontSize/15),V+=h}this._removeShadow(f)}},_getFontDeclaration:function(f,p){var h=f||this,b=this.fontFamily,w=d.Text.genericFonts.indexOf(b.toLowerCase())>-1,k=b===void 0||b.indexOf("'")>-1||b.indexOf(",")>-1||b.indexOf('"')>-1||w?h.fontFamily:'"'+h.fontFamily+'"';return[d.isLikelyNode?h.fontWeight:h.fontStyle,d.isLikelyNode?h.fontStyle:h.fontWeight,p?this.CACHE_FONT_SIZE+"px":h.fontSize+"px",k].join(" ")},render:function(f){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",f)))},_splitTextIntoLines:function(f){for(var p=f.split(this._reNewline),h=new Array(p.length),b=[`
  540. `],w=[],k=0;k<p.length;k++)h[k]=d.util.string.graphemeSplit(p[k]),w=w.concat(h[k],b);return w.pop(),{_unwrappedLines:h,lines:p,graphemeText:w,graphemeLines:h}},toObject:function(f){var p=m.concat(f),h=this.callSuper("toObject",p);return h.styles=v(this.styles,!0),h.path&&(h.path=this.path.toObject()),h},set:function(f,p){this.callSuper("set",f,p);var h=!1,b=!1;if(typeof f=="object")for(var w in f)w==="path"&&this.setPathInfo(),h=h||this._dimensionAffectingProps.indexOf(w)!==-1,b=b||w==="path";else h=this._dimensionAffectingProps.indexOf(f)!==-1,b=f==="path";return b&&this.setPathInfo(),h&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),d.Text.ATTRIBUTE_NAMES=d.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),d.Text.DEFAULT_SVG_FONT_SIZE=16,d.Text.fromElement=function(f,p,h){if(!f)return p(null);var b=d.parseAttributes(f,d.Text.ATTRIBUTE_NAMES),w=b.textAnchor||"left";if(h=d.util.object.extend(h?v(h):{},b),h.top=h.top||0,h.left=h.left||0,b.textDecoration){var k=b.textDecoration;k.indexOf("underline")!==-1&&(h.underline=!0),k.indexOf("overline")!==-1&&(h.overline=!0),k.indexOf("line-through")!==-1&&(h.linethrough=!0),delete h.textDecoration}"dx"in b&&(h.left+=b.dx),"dy"in b&&(h.top+=b.dy),"fontSize"in h||(h.fontSize=d.Text.DEFAULT_SVG_FONT_SIZE);var $="";"textContent"in f?$=f.textContent:"firstChild"in f&&f.firstChild!==null&&"data"in f.firstChild&&f.firstChild.data!==null&&($=f.firstChild.data),$=$.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var E=h.strokeWidth;h.strokeWidth=0;var N=new d.Text($,h),j=N.getScaledHeight()/N.height,z=(N.height+N.strokeWidth)*N.lineHeight-N.height,V=z*j,W=N.getScaledHeight()+V,H=0;w==="center"&&(H=N.getScaledWidth()/2),w==="right"&&(H=N.getScaledWidth()),N.set({left:N.left-H,top:N.top-(W-N.fontSize*(.07+N._fontSizeFraction))/N.lineHeight,strokeWidth:typeof E<"u"?E:1}),p(N)},d.Text.fromObject=function(f,p){var h=v(f),b=f.path;return delete h.path,d.Object._fromObject("Text",h,function(w){b?d.Object._fromObject("Path",b,function(k){w.set("path",k),p(w)},"path"):p(w)},"text")},d.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],d.util.createAccessors&&d.util.createAccessors(d.Text)}(u),function(){l.util.object.extend(l.Text.prototype,{isEmptyStyles:function(y){if(!this.styles||typeof y<"u"&&!this.styles[y])return!0;var d=typeof y>"u"?this.styles:{line:this.styles[y]};for(var v in d)for(var m in d[v])for(var f in d[v][m])return!1;return!0},styleHas:function(y,d){if(!this.styles||!y||y===""||typeof d<"u"&&!this.styles[d])return!1;var v=typeof d>"u"?this.styles:{0:this.styles[d]};for(var m in v)for(var f in v[m])if(typeof v[m][f][y]<"u")return!0;return!1},cleanStyle:function(y){if(!this.styles||!y||y==="")return!1;var d=this.styles,v=0,m,f,p=!0,h=0,b;for(var w in d){m=0;for(var k in d[w]){var b=d[w][k],$=b.hasOwnProperty(y);v++,$?(f?b[y]!==f&&(p=!1):f=b[y],b[y]===this[y]&&delete b[y]):p=!1,Object.keys(b).length!==0?m++:delete d[w][k]}m===0&&delete d[w]}for(var E=0;E<this._textLines.length;E++)h+=this._textLines[E].length;p&&v===h&&(this[y]=f,this.removeStyle(y))},removeStyle:function(y){if(!(!this.styles||!y||y==="")){var d=this.styles,v,m,f;for(m in d){v=d[m];for(f in v)delete v[f][y],Object.keys(v[f]).length===0&&delete v[f];Object.keys(v).length===0&&delete d[m]}}},_extendStyles:function(y,d){var v=this.get2DCursorLocation(y);this._getLineStyle(v.lineIndex)||this._setLineStyle(v.lineIndex),this._getStyleDeclaration(v.lineIndex,v.charIndex)||this._setStyleDeclaration(v.lineIndex,v.charIndex,{}),l.util.object.extend(this._getStyleDeclaration(v.lineIndex,v.charIndex),d)},get2DCursorLocation:function(y,d){typeof y>"u"&&(y=this.selectionStart);for(var v=d?this._unwrappedTextLines:this._textLines,m=v.length,f=0;f<m;f++){if(y<=v[f].length)return{lineIndex:f,charIndex:y};y-=v[f].length+this.missingNewlineOffset(f)}return{lineIndex:f-1,charIndex:v[f-1].length<y?v[f-1].length:y}},getSelectionStyles:function(y,d,v){typeof y>"u"&&(y=this.selectionStart||0),typeof d>"u"&&(d=this.selectionEnd||y);for(var m=[],f=y;f<d;f++)m.push(this.getStyleAtPosition(f,v));return m},getStyleAtPosition:function(y,d){var v=this.get2DCursorLocation(y),m=d?this.getCompleteStyleDeclaration(v.lineIndex,v.charIndex):this._getStyleDeclaration(v.lineIndex,v.charIndex);return m||{}},setSelectionStyles:function(y,d,v){typeof d>"u"&&(d=this.selectionStart||0),typeof v>"u"&&(v=this.selectionEnd||d);for(var m=d;m<v;m++)this._extendStyles(m,y);return this._forceClearCache=!0,this},_getStyleDeclaration:function(y,d){var v=this.styles&&this.styles[y];return v?v[d]:null},getCompleteStyleDeclaration:function(y,d){for(var v=this._getStyleDeclaration(y,d)||{},m={},f,p=0;p<this._styleProperties.length;p++)f=this._styleProperties[p],m[f]=typeof v[f]>"u"?this[f]:v[f];return m},_setStyleDeclaration:function(y,d,v){this.styles[y][d]=v},_deleteStyleDeclaration:function(y,d){delete this.styles[y][d]},_getLineStyle:function(y){return!!this.styles[y]},_setLineStyle:function(y){this.styles[y]={}},_deleteLineStyle:function(y){delete this.styles[y]}})}(),function(){function y(d){d.textDecoration&&(d.textDecoration.indexOf("underline")>-1&&(d.underline=!0),d.textDecoration.indexOf("line-through")>-1&&(d.linethrough=!0),d.textDecoration.indexOf("overline")>-1&&(d.overline=!0),delete d.textDecoration)}l.IText=l.util.createClass(l.Text,l.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(d,v){this.callSuper("initialize",d,v),this.initBehavior()},setSelectionStart:function(d){d=Math.max(d,0),this._updateAndFire("selectionStart",d)},setSelectionEnd:function(d){d=Math.min(d,this.text.length),this._updateAndFire("selectionEnd",d)},_updateAndFire:function(d,v){this[d]!==v&&(this._fireSelectionChanged(),this[d]=v),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(d){this.clearContextTop(),this.callSuper("render",d),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(d){this.callSuper("_render",d)},clearContextTop:function(d){if(!(!this.isEditing||!this.canvas||!this.canvas.contextTop)){var v=this.canvas.contextTop,m=this.canvas.viewportTransform;v.save(),v.transform(m[0],m[1],m[2],m[3],m[4],m[5]),this.transform(v),this._clearTextArea(v),d||v.restore()}},renderCursorOrSelection:function(){if(!(!this.isEditing||!this.canvas||!this.canvas.contextTop)){var d=this._getCursorBoundaries(),v=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(d,v):this.renderSelection(d,v),v.restore()}},_clearTextArea:function(d){var v=this.width+4,m=this.height+4;d.clearRect(-v/2,-m/2,v,m)},_getCursorBoundaries:function(d){typeof d>"u"&&(d=this.selectionStart);var v=this._getLeftOffset(),m=this._getTopOffset(),f=this._getCursorBoundariesOffsets(d);return{left:v,top:m,leftOffset:f.left,topOffset:f.top}},_getCursorBoundariesOffsets:function(d){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var v,m,f,p=0,h=0,b,w=this.get2DCursorLocation(d);f=w.charIndex,m=w.lineIndex;for(var k=0;k<m;k++)p+=this.getHeightOfLine(k);v=this._getLineLeftOffset(m);var $=this.__charBounds[m][f];return $&&(h=$.left),this.charSpacing!==0&&f===this._textLines[m].length&&(h-=this._getWidthOfCharSpacing()),b={top:p,left:v+(h>0?h:0)},this.direction==="rtl"&&(b.left*=-1),this.cursorOffsetCache=b,this.cursorOffsetCache},renderCursor:function(d,v){var m=this.get2DCursorLocation(),f=m.lineIndex,p=m.charIndex>0?m.charIndex-1:0,h=this.getValueOfPropertyAt(f,p,"fontSize"),b=this.scaleX*this.canvas.getZoom(),w=this.cursorWidth/b,k=d.topOffset,$=this.getValueOfPropertyAt(f,p,"deltaY");k+=(1-this._fontSizeFraction)*this.getHeightOfLine(f)/this.lineHeight-h*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(d,v),v.fillStyle=this.cursorColor||this.getValueOfPropertyAt(f,p,"fill"),v.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,v.fillRect(d.left+d.leftOffset-w/2,k+d.top+$,w,h)},renderSelection:function(d,v){for(var m=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,f=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,p=this.textAlign.indexOf("justify")!==-1,h=this.get2DCursorLocation(m),b=this.get2DCursorLocation(f),w=h.lineIndex,k=b.lineIndex,$=h.charIndex<0?0:h.charIndex,E=b.charIndex<0?0:b.charIndex,N=w;N<=k;N++){var j=this._getLineLeftOffset(N)||0,z=this.getHeightOfLine(N),V=0,W=0,H=0;if(N===w&&(W=this.__charBounds[w][$].left),N>=w&&N<k)H=p&&!this.isEndOfWrapping(N)?this.width:this.getLineWidth(N)||5;else if(N===k)if(E===0)H=this.__charBounds[k][E].left;else{var U=this._getWidthOfCharSpacing();H=this.__charBounds[k][E-1].left+this.__charBounds[k][E-1].width-U}V=z,(this.lineHeight<1||N===k&&this.lineHeight>1)&&(z/=this.lineHeight);var Q=d.left+j+W,q=H-W,ae=z,ne=0;this.inCompositionMode?(v.fillStyle=this.compositionColor||"black",ae=1,ne=z):v.fillStyle=this.selectionColor,this.direction==="rtl"&&(Q=this.width-Q-q),v.fillRect(Q,d.top+d.topOffset+ne,q,ae),d.topOffset+=V}},getCurrentCharFontSize:function(){var d=this._getCurrentCharIndex();return this.getValueOfPropertyAt(d.l,d.c,"fontSize")},getCurrentCharColor:function(){var d=this._getCurrentCharIndex();return this.getValueOfPropertyAt(d.l,d.c,"fill")},_getCurrentCharIndex:function(){var d=this.get2DCursorLocation(this.selectionStart,!0),v=d.charIndex>0?d.charIndex-1:0;return{l:d.lineIndex,c:v}}}),l.IText.fromObject=function(d,v){if(y(d),d.styles)for(var m in d.styles)for(var f in d.styles[m])y(d.styles[m][f]);l.Object._fromObject("IText",d,v,"text")}}(),function(){var y=l.util.object.clone;l.util.object.extend(l.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var d=this;this.on("added",function(){var v=d.canvas;v&&(v._hasITextHandlers||(v._hasITextHandlers=!0,d._initCanvasHandlers(v)),v._iTextInstances=v._iTextInstances||[],v._iTextInstances.push(d))})},initRemovedHandler:function(){var d=this;this.on("removed",function(){var v=d.canvas;v&&(v._iTextInstances=v._iTextInstances||[],l.util.removeFromArray(v._iTextInstances,d),v._iTextInstances.length===0&&(v._hasITextHandlers=!1,d._removeCanvasHandlers(v)))})},_initCanvasHandlers:function(d){d._mouseUpITextHandler=function(){d._iTextInstances&&d._iTextInstances.forEach(function(v){v.__isMousedown=!1})},d.on("mouse:up",d._mouseUpITextHandler)},_removeCanvasHandlers:function(d){d.off("mouse:up",d._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(d,v,m,f){var p;return p={isAborted:!1,abort:function(){this.isAborted=!0}},d.animate("_currentCursorOpacity",v,{duration:m,onComplete:function(){p.isAborted||d[f]()},onChange:function(){d.canvas&&d.selectionStart===d.selectionEnd&&d.renderCursorOrSelection()},abort:function(){return p.isAborted}}),p},_onTickComplete:function(){var d=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout(function(){d._currentTickCompleteState=d._animateCursor(d,0,this.cursorDuration/2,"_tick")},100)},initDelayedCursor:function(d){var v=this,m=d?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout(function(){v._tick()},m)},abortCursorAnimation:function(){var d=this._currentTickState||this._currentTickCompleteState,v=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,d&&v&&v.clearContext(v.contextTop||v.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(d){var v=0,m=d-1;if(this._reSpace.test(this._text[m]))for(;this._reSpace.test(this._text[m]);)v++,m--;for(;/\S/.test(this._text[m])&&m>-1;)v++,m--;return d-v},findWordBoundaryRight:function(d){var v=0,m=d;if(this._reSpace.test(this._text[m]))for(;this._reSpace.test(this._text[m]);)v++,m++;for(;/\S/.test(this._text[m])&&m<this._text.length;)v++,m++;return d+v},findLineBoundaryLeft:function(d){for(var v=0,m=d-1;!/\n/.test(this._text[m])&&m>-1;)v++,m--;return d-v},findLineBoundaryRight:function(d){for(var v=0,m=d;!/\n/.test(this._text[m])&&m<this._text.length;)v++,m++;return d+v},searchWordBoundary:function(d,v){for(var m=this._text,f=this._reSpace.test(m[d])?d-1:d,p=m[f],h=l.reNonWord;!h.test(p)&&f>0&&f<m.length;)f+=v,p=m[f];return h.test(p)&&(f+=v===1?0:1),f},selectWord:function(d){d=d||this.selectionStart;var v=this.searchWordBoundary(d,-1),m=this.searchWordBoundary(d,1);this.selectionStart=v,this.selectionEnd=m,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(d){d=d||this.selectionStart;var v=this.findLineBoundaryLeft(d),m=this.findLineBoundaryRight(d);return this.selectionStart=v,this.selectionEnd=m,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(d){if(!(this.isEditing||!this.editable))return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(d),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(d){d._iTextInstances&&d._iTextInstances.forEach(function(v){v.selected=!1,v.isEditing&&v.exitEditing()})},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(d){if(!(!this.__isMousedown||!this.isEditing)){var v=this.getSelectionStartFromPointer(d.e),m=this.selectionStart,f=this.selectionEnd;(v!==this.__selectionStartOnMouseDown||m===f)&&(m===v||f===v)||(v>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=v):(this.selectionStart=v,this.selectionEnd=this.__selectionStartOnMouseDown),(this.selectionStart!==m||this.selectionEnd!==f)&&(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(d,v,m){var f=m.slice(0,d),p=l.util.string.graphemeSplit(f).length;if(d===v)return{selectionStart:p,selectionEnd:p};var h=m.slice(d,v),b=l.util.string.graphemeSplit(h).length;return{selectionStart:p,selectionEnd:p+b}},fromGraphemeToStringSelection:function(d,v,m){var f=m.slice(0,d),p=f.join("").length;if(d===v)return{selectionStart:p,selectionEnd:p};var h=m.slice(d,v),b=h.join("").length;return{selectionStart:p,selectionEnd:p+b}},_updateTextarea:function(){if(this.cursorOffsetCache={},!!this.hiddenTextarea){if(!this.inCompositionMode){var d=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=d.selectionStart,this.hiddenTextarea.selectionEnd=d.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var d=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=d.selectionEnd,this.inCompositionMode||(this.selectionStart=d.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var d=this._calcTextareaPosition();this.hiddenTextarea.style.left=d.left,this.hiddenTextarea.style.top=d.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var d=this.inCompositionMode?this.compositionStart:this.selectionStart,v=this._getCursorBoundaries(d),m=this.get2DCursorLocation(d),f=m.lineIndex,p=m.charIndex,h=this.getValueOfPropertyAt(f,p,"fontSize")*this.lineHeight,b=v.leftOffset,w=this.calcTransformMatrix(),k={x:v.left+b,y:v.top+v.topOffset+h},$=this.canvas.getRetinaScaling(),E=this.canvas.upperCanvasEl,N=E.width/$,j=E.height/$,z=N-h,V=j-h,W=E.clientWidth/N,H=E.clientHeight/j;return k=l.util.transformPoint(k,w),k=l.util.transformPoint(k,this.canvas.viewportTransform),k.x*=W,k.y*=H,k.x<0&&(k.x=0),k.x>z&&(k.x=z),k.y<0&&(k.y=0),k.y>V&&(k.y=V),k.x+=this.canvas._offset.left,k.y+=this.canvas._offset.top,{left:k.x+"px",top:k.y+"px",fontSize:h+"px",charHeight:h}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var d=this._textBeforeEdit!==this.text,v=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,v&&(v.blur&&v.blur(),v.parentNode&&v.parentNode.removeChild(v)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),d&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),d&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var d in this.styles)this._textLines[d]||delete this.styles[d]},removeStyleFromTo:function(d,v){var m=this.get2DCursorLocation(d,!0),f=this.get2DCursorLocation(v,!0),p=m.lineIndex,h=m.charIndex,b=f.lineIndex,w=f.charIndex,k,$;if(p!==b){if(this.styles[p])for(k=h;k<this._unwrappedTextLines[p].length;k++)delete this.styles[p][k];if(this.styles[b])for(k=w;k<this._unwrappedTextLines[b].length;k++)$=this.styles[b][k],$&&(this.styles[p]||(this.styles[p]={}),this.styles[p][h+k-w]=$);for(k=p+1;k<=b;k++)delete this.styles[k];this.shiftLineStyles(b,p-b)}else if(this.styles[p]){$=this.styles[p];var E=w-h,N,j;for(k=h;k<w;k++)delete $[k];for(j in this.styles[p])N=parseInt(j,10),N>=w&&($[N-E]=$[j],delete $[j])}},shiftLineStyles:function(d,v){var m=y(this.styles);for(var f in this.styles){var p=parseInt(f,10);p>d&&(this.styles[p+v]=m[p],m[p-v]||delete this.styles[p])}},restartCursorIfNeeded:function(){(!this._currentTickState||this._currentTickState.isAborted||!this._currentTickCompleteState||this._currentTickCompleteState.isAborted)&&this.initDelayedCursor()},insertNewlineStyleObject:function(d,v,m,f){var p,h={},b=!1,w=this._unwrappedTextLines[d].length===v;m||(m=1),this.shiftLineStyles(d,m),this.styles[d]&&(p=this.styles[d][v===0?v:v-1]);for(var k in this.styles[d]){var $=parseInt(k,10);$>=v&&(b=!0,h[$-v]=this.styles[d][k],w&&v===0||delete this.styles[d][k])}var E=!1;for(b&&!w&&(this.styles[d+m]=h,E=!0),E&&m--;m>0;)f&&f[m-1]?this.styles[d+m]={0:y(f[m-1])}:p?this.styles[d+m]={0:y(p)}:delete this.styles[d+m],m--;this._forceClearCache=!0},insertCharStyleObject:function(d,v,m,f){this.styles||(this.styles={});var p=this.styles[d],h=p?y(p):{};m||(m=1);for(var b in h){var w=parseInt(b,10);w>=v&&(p[w+m]=h[w],h[w-m]||delete p[w])}if(this._forceClearCache=!0,f){for(;m--;)Object.keys(f[m]).length&&(this.styles[d]||(this.styles[d]={}),this.styles[d][v+m]=y(f[m]));return}if(p)for(var k=p[v?v-1:1];k&&m--;)this.styles[d][v+m]=y(k)},insertNewStyleBlock:function(d,v,m){for(var f=this.get2DCursorLocation(v,!0),p=[0],h=0,b=0;b<d.length;b++)d[b]===`
  541. `?(h++,p[h]=0):p[h]++;p[0]>0&&(this.insertCharStyleObject(f.lineIndex,f.charIndex,p[0],m),m=m&&m.slice(p[0]+1)),h&&this.insertNewlineStyleObject(f.lineIndex,f.charIndex+p[0],h);for(var b=1;b<h;b++)p[b]>0?this.insertCharStyleObject(f.lineIndex+b,0,p[b],m):m&&(this.styles[f.lineIndex+b][0]=m[0]),m=m&&m.slice(p[b]+1);p[b]>0&&this.insertCharStyleObject(f.lineIndex+b,0,p[b],m)},setSelectionStartEndWithShift:function(d,v,m){m<=d?(v===d?this._selectionDirection="left":this._selectionDirection==="right"&&(this._selectionDirection="left",this.selectionEnd=d),this.selectionStart=m):m>d&&m<v?this._selectionDirection==="right"?this.selectionEnd=m:this.selectionStart=m:(v===d?this._selectionDirection="right":this._selectionDirection==="left"&&(this._selectionDirection="right",this.selectionStart=v),this.selectionEnd=m)},setSelectionInBoundaries:function(){var d=this.text.length;this.selectionStart>d?this.selectionStart=d:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>d?this.selectionEnd=d:this.selectionEnd<0&&(this.selectionEnd=0)}})}(),l.util.object.extend(l.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(y){if(this.canvas){this.__newClickTime=+new Date;var d=y.pointer;this.isTripleClick(d)&&(this.fire("tripleclick",y),this._stopEvent(y.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=d,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(y){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===y.x&&this.__lastPointer.y===y.y},_stopEvent:function(y){y.preventDefault&&y.preventDefault(),y.stopPropagation&&y.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(y){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(y.e))},tripleClickHandler:function(y){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(y.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(y){!this.canvas||!this.editable||y.e.button&&y.e.button!==1||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(y.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(y){!this.canvas||!this.editable||y.e.button&&y.e.button!==1||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(y){if(this.__isMousedown=!1,!(!this.editable||this.group||y.transform&&y.transform.actionPerformed||y.e.button&&y.e.button!==1)){if(this.canvas){var d=this.canvas._activeObject;if(d&&d!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(y.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(y){var d=this.getSelectionStartFromPointer(y),v=this.selectionStart,m=this.selectionEnd;y.shiftKey?this.setSelectionStartEndWithShift(v,m,d):(this.selectionStart=d,this.selectionEnd=d),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(y){for(var d=this.getLocalPointer(y),v=0,m=0,f=0,p=0,h=0,b,w,k=0,$=this._textLines.length;k<$&&f<=d.y;k++)f+=this.getHeightOfLine(k)*this.scaleY,h=k,k>0&&(p+=this._textLines[k-1].length+this.missingNewlineOffset(k-1));b=this._getLineLeftOffset(h),m=b*this.scaleX,w=this._textLines[h],this.direction==="rtl"&&(d.x=this.width*this.scaleX-d.x+m);for(var E=0,N=w.length;E<N&&(v=m,m+=this.__charBounds[h][E].kernedWidth*this.scaleX,m<=d.x);E++)p++;return this._getNewSelectionStartFromOffset(d,v,m,p,N)},_getNewSelectionStartFromOffset:function(y,d,v,m,f){var p=y.x-d,h=v-y.x,b=h>p||h<0?0:1,w=m+b;return this.flipX&&(w=f-w),w>this._text.length&&(w=this._text.length),w}}),l.util.object.extend(l.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=l.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var y=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+y.top+"; left: "+y.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; paddingーtop: "+y.fontSize+";",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):l.document.body.appendChild(this.hiddenTextarea),l.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),l.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),l.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),l.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),l.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),l.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),l.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),l.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),l.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(l.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},keysMapRtl:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorLeft",36:"moveCursorRight",37:"moveCursorRight",38:"moveCursorUp",39:"moveCursorLeft",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(y){if(this.isEditing){var d=this.direction==="rtl"?this.keysMapRtl:this.keysMap;if(y.keyCode in d)this[d[y.keyCode]](y);else if(y.keyCode in this.ctrlKeysMapDown&&(y.ctrlKey||y.metaKey))this[this.ctrlKeysMapDown[y.keyCode]](y);else return;y.stopImmediatePropagation(),y.preventDefault(),y.keyCode>=33&&y.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(y){if(!this.isEditing||this._copyDone||this.inCompositionMode){this._copyDone=!1;return}if(y.keyCode in this.ctrlKeysMapUp&&(y.ctrlKey||y.metaKey))this[this.ctrlKeysMapUp[y.keyCode]](y);else return;y.stopImmediatePropagation(),y.preventDefault(),this.canvas&&this.canvas.requestRenderAll()},onInput:function(y){var d=this.fromPaste;if(this.fromPaste=!1,y&&y.stopPropagation(),!!this.isEditing){var v=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,m=this._text.length,f=v.length,p,h,b=f-m,w=this.selectionStart,k=this.selectionEnd,$=w!==k,E,N,j;if(this.hiddenTextarea.value===""){this.styles={},this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll());return}var z=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),V=w>z.selectionStart;$?(p=this._text.slice(w,k),b+=k-w):f<m&&(V?p=this._text.slice(k+b,k):p=this._text.slice(w,w-b)),h=v.slice(z.selectionEnd-b,z.selectionEnd),p&&p.length&&(h.length&&(E=this.getSelectionStyles(w,w+1,!1),E=h.map(function(){return E[0]})),$?(N=w,j=k):V?(N=k-p.length,j=k):(N=k,j=k+p.length),this.removeStyleFromTo(N,j)),h.length&&(d&&h.join("")===l.copiedText&&!l.disableStyleCopyPaste&&(E=l.copiedTextStyle),this.insertNewStyleBlock(h,w,E)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(y){this.compositionStart=y.target.selectionStart,this.compositionEnd=y.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(l.copiedText=this.getSelectedText(),l.disableStyleCopyPaste?l.copiedTextStyle=null:l.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(y){return y&&y.clipboardData||l.window.clipboardData},_getWidthBeforeCursor:function(y,d){var v=this._getLineLeftOffset(y),m;return d>0&&(m=this.__charBounds[y][d-1],v+=m.left+m.width),v},getDownCursorOffset:function(y,d){var v=this._getSelectionForOffset(y,d),m=this.get2DCursorLocation(v),f=m.lineIndex;if(f===this._textLines.length-1||y.metaKey||y.keyCode===34)return this._text.length-v;var p=m.charIndex,h=this._getWidthBeforeCursor(f,p),b=this._getIndexOnLine(f+1,h),w=this._textLines[f].slice(p);return w.length+b+1+this.missingNewlineOffset(f)},_getSelectionForOffset:function(y,d){return y.shiftKey&&this.selectionStart!==this.selectionEnd&&d?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(y,d){var v=this._getSelectionForOffset(y,d),m=this.get2DCursorLocation(v),f=m.lineIndex;if(f===0||y.metaKey||y.keyCode===33)return-v;var p=m.charIndex,h=this._getWidthBeforeCursor(f,p),b=this._getIndexOnLine(f-1,h),w=this._textLines[f].slice(0,p),k=this.missingNewlineOffset(f-1);return-this._textLines[f-1].length+b-w.length+(1-k)},_getIndexOnLine:function(y,d){for(var v=this._textLines[y],m=this._getLineLeftOffset(y),f=m,p=0,h,b,w=0,k=v.length;w<k;w++)if(h=this.__charBounds[y][w].width,f+=h,f>d){b=!0;var $=f-h,E=f,N=Math.abs($-d),j=Math.abs(E-d);p=j<N?w:w-1;break}return b||(p=v.length-1),p},moveCursorDown:function(y){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",y)},moveCursorUp:function(y){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorUpOrDown("Up",y)},_moveCursorUpOrDown:function(y,d){var v="get"+y+"CursorOffset",m=this[v](d,this._selectionDirection==="right");d.shiftKey?this.moveCursorWithShift(m):this.moveCursorWithoutShift(m),m!==0&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(y){var d=this._selectionDirection==="left"?this.selectionStart+y:this.selectionEnd+y;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,d),y!==0},moveCursorWithoutShift:function(y){return y<0?(this.selectionStart+=y,this.selectionEnd=this.selectionStart):(this.selectionEnd+=y,this.selectionStart=this.selectionEnd),y!==0},moveCursorLeft:function(y){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorLeftOrRight("Left",y)},_move:function(y,d,v){var m;if(y.altKey)m=this["findWordBoundary"+v](this[d]);else if(y.metaKey||y.keyCode===35||y.keyCode===36)m=this["findLineBoundary"+v](this[d]);else return this[d]+=v==="Left"?-1:1,!0;if(typeof m!==void 0&&this[d]!==m)return this[d]=m,!0},_moveLeft:function(y,d){return this._move(y,d,"Left")},_moveRight:function(y,d){return this._move(y,d,"Right")},moveCursorLeftWithoutShift:function(y){var d=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&this.selectionStart!==0&&(d=this._moveLeft(y,"selectionStart")),this.selectionEnd=this.selectionStart,d},moveCursorLeftWithShift:function(y){if(this._selectionDirection==="right"&&this.selectionStart!==this.selectionEnd)return this._moveLeft(y,"selectionEnd");if(this.selectionStart!==0)return this._selectionDirection="left",this._moveLeft(y,"selectionStart")},moveCursorRight:function(y){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",y)},_moveCursorLeftOrRight:function(y,d){var v="moveCursor"+y+"With";this._currentCursorOpacity=1,d.shiftKey?v+="Shift":v+="outShift",this[v](d)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(y){if(this._selectionDirection==="left"&&this.selectionStart!==this.selectionEnd)return this._moveRight(y,"selectionStart");if(this.selectionEnd!==this._text.length)return this._selectionDirection="right",this._moveRight(y,"selectionEnd")},moveCursorRightWithoutShift:function(y){var d=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(d=this._moveRight(y,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,d},removeChars:function(y,d){typeof d>"u"&&(d=y+1),this.removeStyleFromTo(y,d),this._text.splice(y,d-y),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(y,d,v,m){typeof m>"u"&&(m=v),m>v&&this.removeStyleFromTo(v,m);var f=l.util.string.graphemeSplit(y);this.insertNewStyleBlock(f,v,d),this._text=[].concat(this._text.slice(0,v),f,this._text.slice(m)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var y=l.util.toFixed,d=/ +/g;l.util.object.extend(l.Text.prototype,{_toSVG:function(){var v=this._getSVGLeftTopOffsets(),m=this._getSVGTextAndBg(v.textTop,v.textLeft);return this._wrapSVGTextAndBg(m)},toSVG:function(v){return this._createBaseSVGMarkup(this._toSVG(),{reviver:v,noStyle:!0,withShadow:!0})},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(v){var m=!0,f=this.getSvgTextDecoration(this);return[v.textBgRects.join(""),' <text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",f?'text-decoration="'+f+'" ':"",'style="',this.getSvgStyles(m),'"',this.addPaintOrder()," >",v.textSpans.join(""),`</text>
  542. `]},_getSVGTextAndBg:function(v,m){var f=[],p=[],h=v,b;this._setSVGBg(p);for(var w=0,k=this._textLines.length;w<k;w++)b=this._getLineLeftOffset(w),(this.textBackgroundColor||this.styleHas("textBackgroundColor",w))&&this._setSVGTextLineBg(p,w,m+b,h),this._setSVGTextLineText(f,w,m+b,h),h+=this.getHeightOfLine(w);return{textSpans:f,textBgRects:p}},_createTextCharSpan:function(v,m,f,p){var h=v!==v.trim()||v.match(d),b=this.getSvgSpanStyles(m,h),w=b?'style="'+b+'"':"",k=m.deltaY,$="",E=l.Object.NUM_FRACTION_DIGITS;return k&&($=' dy="'+y(k,E)+'" '),['<tspan x="',y(f,E),'" y="',y(p,E),'" ',$,w,">",l.util.string.escapeXml(v),"</tspan>"].join("")},_setSVGTextLineText:function(v,m,f,p){var h=this.getHeightOfLine(m),b=this.textAlign.indexOf("justify")!==-1,w,k,$="",E,N,j=0,z=this._textLines[m],V;p+=h*(1-this._fontSizeFraction)/this.lineHeight;for(var W=0,H=z.length-1;W<=H;W++)V=W===H||this.charSpacing,$+=z[W],E=this.__charBounds[m][W],j===0?(f+=E.kernedWidth-E.width,j+=E.width):j+=E.kernedWidth,b&&!V&&this._reSpaceAndTab.test(z[W])&&(V=!0),V||(w=w||this.getCompleteStyleDeclaration(m,W),k=this.getCompleteStyleDeclaration(m,W+1),V=this._hasStyleChangedForSvg(w,k)),V&&(N=this._getStyleDeclaration(m,W)||{},v.push(this._createTextCharSpan($,N,f,p)),$="",w=k,f+=j,j=0)},_pushTextBgRect:function(v,m,f,p,h,b){var w=l.Object.NUM_FRACTION_DIGITS;v.push(" <rect ",this._getFillAttributes(m),' x="',y(f,w),'" y="',y(p,w),'" width="',y(h,w),'" height="',y(b,w),`"></rect>
  543. `)},_setSVGTextLineBg:function(v,m,f,p){for(var h=this._textLines[m],b=this.getHeightOfLine(m)/this.lineHeight,w=0,k=0,$,E,N=this.getValueOfPropertyAt(m,0,"textBackgroundColor"),j=0,z=h.length;j<z;j++)$=this.__charBounds[m][j],E=this.getValueOfPropertyAt(m,j,"textBackgroundColor"),E!==N?(N&&this._pushTextBgRect(v,N,f+k,p,w,b),k=$.left,w=$.width,N=E):w+=$.kernedWidth;E&&this._pushTextBgRect(v,E,f+k,p,w,b)},_getFillAttributes:function(v){var m=v&&typeof v=="string"?new l.Color(v):"";return!m||!m.getSource()||m.getAlpha()===1?'fill="'+v+'"':'opacity="'+m.getAlpha()+'" fill="'+m.setAlpha(1).toRgb()+'"'},_getSVGLineTopOffset:function(v){for(var m=0,f=0,p=0;p<v;p++)m+=this.getHeightOfLine(p);return f=this.getHeightOfLine(p),{lineTop:m,offset:(this._fontSizeMult-this._fontSizeFraction)*f/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(v){var m=l.Object.prototype.getSvgStyles.call(this,v);return m+" white-space: pre;"}})}(),function(y){var d=y.fabric||(y.fabric={});d.Textbox=d.util.createClass(d.IText,d.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:d.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),this.textAlign.indexOf("justify")!==-1&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(v){for(var m=0,f=0,p=0,h={},b=0;b<v.graphemeLines.length;b++)v.graphemeText[p]===`
  544. `&&b>0?(f=0,p++,m++):!this.splitByGrapheme&&this._reSpaceAndTab.test(v.graphemeText[p])&&b>0&&(f++,p++),h[b]={line:m,offset:f},p+=v.graphemeLines[b].length,f+=v.graphemeLines[b].length;return h},styleHas:function(v,m){if(this._styleMap&&!this.isWrapping){var f=this._styleMap[m];f&&(m=f.line)}return d.Text.prototype.styleHas.call(this,v,m)},isEmptyStyles:function(v){if(!this.styles)return!0;var m=0,f=v+1,p,h,b=!1,w=this._styleMap[v],k=this._styleMap[v+1];w&&(v=w.line,m=w.offset),k&&(f=k.line,b=f===v,p=k.offset),h=typeof v>"u"?this.styles:{line:this.styles[v]};for(var $ in h)for(var E in h[$])if(E>=m&&(!b||E<p))for(var N in h[$][E])return!1;return!0},_getStyleDeclaration:function(v,m){if(this._styleMap&&!this.isWrapping){var f=this._styleMap[v];if(!f)return null;v=f.line,m=f.offset+m}return this.callSuper("_getStyleDeclaration",v,m)},_setStyleDeclaration:function(v,m,f){var p=this._styleMap[v];v=p.line,m=p.offset+m,this.styles[v][m]=f},_deleteStyleDeclaration:function(v,m){var f=this._styleMap[v];v=f.line,m=f.offset+m,delete this.styles[v][m]},_getLineStyle:function(v){var m=this._styleMap[v];return!!this.styles[m.line]},_setLineStyle:function(v){var m=this._styleMap[v];this.styles[m.line]={}},_wrapText:function(v,m){var f=[],p;for(this.isWrapping=!0,p=0;p<v.length;p++)f=f.concat(this._wrapLine(v[p],p,m));return this.isWrapping=!1,f},_measureWord:function(v,m,f){var p=0,h,b=!0;f=f||0;for(var w=0,k=v.length;w<k;w++){var $=this._getGraphemeBox(v[w],m,w+f,h,b);p+=$.kernedWidth,h=v[w]}return p},_wrapLine:function(v,m,f,Q){var h=0,b=this.splitByGrapheme,w=[],k=[],$=b?d.util.string.graphemeSplit(v):v.split(this._wordJoiners),E="",N=0,j=b?"":" ",z=0,V=0,W=0,H=!0,U=this._getWidthOfCharSpacing(),Q=Q||0;$.length===0&&$.push([]),f-=Q;for(var q=0;q<$.length;q++)E=b?$[q]:d.util.string.graphemeSplit($[q]),z=this._measureWord(E,m,N),N+=E.length,h+=V+z-U,h>f&&!H?(w.push(k),k=[],h=z,H=!0):h+=U,!H&&!b&&k.push(j),k=k.concat(E),V=b?0:this._measureWord([j],m,N),N++,H=!1,z>W&&(W=z);return q&&w.push(k),W+Q>this.dynamicMinWidth&&(this.dynamicMinWidth=W-U+Q),w},isEndOfWrapping:function(v){return!this._styleMap[v+1]||this._styleMap[v+1].line!==this._styleMap[v].line},missingNewlineOffset:function(v){return this.splitByGrapheme?this.isEndOfWrapping(v)?1:0:1},_splitTextIntoLines:function(v){for(var m=d.Text.prototype._splitTextIntoLines.call(this,v),f=this._wrapText(m.lines,this.width),p=new Array(f.length),h=0;h<f.length;h++)p[h]=f[h].join("");return m.lines=p,m.graphemeLines=f,m},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var v={};for(var m in this._styleMap)this._textLines[m]&&(v[this._styleMap[m].line]=1);for(var m in this.styles)v[m]||delete this.styles[m]},toObject:function(v){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(v))}}),d.Textbox.fromObject=function(v,m){return d.Object._fromObject("Textbox",v,m,"text")}}(u),function(){var y=l.controlsUtils,d=y.scaleSkewCursorStyleHandler,v=y.scaleCursorStyleHandler,m=y.scalingEqually,f=y.scalingYOrSkewingX,p=y.scalingXOrSkewingY,h=y.scaleOrSkewActionName,b=l.Object.prototype.controls;if(b.ml=new l.Control({x:-.5,y:0,cursorStyleHandler:d,actionHandler:p,getActionName:h}),b.mr=new l.Control({x:.5,y:0,cursorStyleHandler:d,actionHandler:p,getActionName:h}),b.mb=new l.Control({x:0,y:.5,cursorStyleHandler:d,actionHandler:f,getActionName:h}),b.mt=new l.Control({x:0,y:-.5,cursorStyleHandler:d,actionHandler:f,getActionName:h}),b.tl=new l.Control({x:-.5,y:-.5,cursorStyleHandler:v,actionHandler:m}),b.tr=new l.Control({x:.5,y:-.5,cursorStyleHandler:v,actionHandler:m}),b.bl=new l.Control({x:-.5,y:.5,cursorStyleHandler:v,actionHandler:m}),b.br=new l.Control({x:.5,y:.5,cursorStyleHandler:v,actionHandler:m}),b.mtr=new l.Control({x:0,y:-.5,actionHandler:y.rotationWithSnapping,cursorStyleHandler:y.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),l.Textbox){var w=l.Textbox.prototype.controls={};w.mtr=b.mtr,w.tr=b.tr,w.br=b.br,w.tl=b.tl,w.bl=b.bl,w.mt=b.mt,w.mb=b.mb,w.mr=new l.Control({x:.5,y:0,actionHandler:y.changeWidth,cursorStyleHandler:d,actionName:"resizing"}),w.ml=new l.Control({x:-.5,y:0,actionHandler:y.changeWidth,cursorStyleHandler:d,actionName:"resizing"})}}()},3053:function(a,u,c){var l=c(602);function g(C,S,_){var A,y;if(_=_||0,!l(S))return-1;if(Array.prototype.indexOf)return Array.prototype.indexOf.call(S,C,_);for(y=S.length,A=_;_>=0&&A<y;A+=1)if(S[A]===C)return A;return-1}a.exports=g},8592:function(a,u,c){var l=c(602),g=c(6092),C=c(5573);function S(_,A,y){l(_)?g(_,A,y):C(_,A,y)}a.exports=S},6092:function(a){function u(c,l,g){var C=0,S=c.length;for(g=g||null;C<S&&l.call(g,c[C],C,c)!==!1;C+=1);}a.exports=u},5573:function(a){function u(c,l,g){var C;g=g||null;for(C in c)if(c.hasOwnProperty(C)&&l.call(g,c[C],C,c)===!1)break}a.exports=u},9052:function(a,u,c){var l=c(961),g=c(9886),C=c(2560),S=c(5393),_=c(602),A=c(5183),y=c(8592),d=/\s+/g;function v(){this.events=null,this.contexts=null}v.mixin=function(m){l(m.prototype,v.prototype)},v.prototype._getHandlerItem=function(m,f){var p={handler:m};return f&&(p.context=f),p},v.prototype._safeEvent=function(m){var f=this.events,p;return f||(f=this.events={}),m&&(p=f[m],p||(p=[],f[m]=p),f=p),f},v.prototype._safeContext=function(){var m=this.contexts;return m||(m=this.contexts=[]),m},v.prototype._indexOfContext=function(m){for(var f=this._safeContext(),p=0;f[p];){if(m===f[p][0])return p;p+=1}return-1},v.prototype._memorizeContext=function(m){var f,p;g(m)&&(f=this._safeContext(),p=this._indexOfContext(m),p>-1?f[p][1]+=1:f.push([m,1]))},v.prototype._forgetContext=function(m){var f,p;g(m)&&(f=this._safeContext(),p=this._indexOfContext(m),p>-1&&(f[p][1]-=1,f[p][1]<=0&&f.splice(p,1)))},v.prototype._bindEvent=function(m,f,p){var h=this._safeEvent(m);this._memorizeContext(p),h.push(this._getHandlerItem(f,p))},v.prototype.on=function(m,f,p){var h=this;C(m)?(m=m.split(d),y(m,function(b){h._bindEvent(b,f,p)})):S(m)&&(p=f,y(m,function(b,w){h.on(w,b,p)}))},v.prototype.once=function(m,f,p){var h=this;if(S(m)){p=f,y(m,function(w,k){h.once(k,w,p)});return}function b(){f.apply(p,arguments),h.off(m,b,p)}this.on(m,b,p)},v.prototype._spliceMatches=function(m,f){var p=0,h;if(_(m))for(h=m.length;p<h;p+=1)f(m[p])===!0&&(m.splice(p,1),h-=1,p-=1)},v.prototype._matchHandler=function(m){var f=this;return function(p){var h=m===p.handler;return h&&f._forgetContext(p.context),h}},v.prototype._matchContext=function(m){var f=this;return function(p){var h=m===p.context;return h&&f._forgetContext(p.context),h}},v.prototype._matchHandlerAndContext=function(m,f){var p=this;return function(h){var b=m===h.handler,w=f===h.context,k=b&&w;return k&&p._forgetContext(h.context),k}},v.prototype._offByEventName=function(m,f){var p=this,h=A(f),b=p._matchHandler(f);m=m.split(d),y(m,function(w){var k=p._safeEvent(w);h?p._spliceMatches(k,b):(y(k,function($){p._forgetContext($.context)}),p.events[w]=[])})},v.prototype._offByHandler=function(m){var f=this,p=this._matchHandler(m);y(this._safeEvent(),function(h){f._spliceMatches(h,p)})},v.prototype._offByObject=function(m,f){var p=this,h;this._indexOfContext(m)<0?y(m,function(b,w){p.off(w,b)}):C(f)?(h=this._matchContext(m),p._spliceMatches(this._safeEvent(f),h)):A(f)?(h=this._matchHandlerAndContext(f,m),y(this._safeEvent(),function(b){p._spliceMatches(b,h)})):(h=this._matchContext(m),y(this._safeEvent(),function(b){p._spliceMatches(b,h)}))},v.prototype.off=function(m,f){C(m)?this._offByEventName(m,f):arguments.length?A(m)?this._offByHandler(m):S(m)&&this._offByObject(m,f):(this.events={},this.contexts=[])},v.prototype.fire=function(m){this.invoke.apply(this,arguments)},v.prototype.invoke=function(m){var f,p,h,b;if(!this.hasListener(m))return!0;for(f=this._safeEvent(m),p=Array.prototype.slice.call(arguments,1),h=0;f[h];){if(b=f[h],b.handler.apply(b.context,p)===!1)return!1;h+=1}return!0},v.prototype.hasListener=function(m){return this.getListenerLength(m)>0},v.prototype.getListenerLength=function(m){var f=this._safeEvent(m);return f.length},a.exports=v},961:function(a){function u(c,l){var g=Object.prototype.hasOwnProperty,C,S,_,A;for(_=1,A=arguments.length;_<A;_+=1){C=arguments[_];for(S in C)g.call(C,S)&&(c[S]=C[S])}return c}a.exports=u},1610:function(a,u,c){var l=c(5695),g=c(3778);function C(S,_){for(var A=arguments,y=A[0],d=1,v=A.length;d<v;d+=1){if(l(y)||g(y))return;y=y[A[d]]}return y}a.exports=C},4564:function(a,u,c){var l=c(5573);function g(C,S){var _=document.createElement("img"),A="";return l(S,function(y,d){A+="&"+d+"="+y}),A=A.substring(1),_.src=C+"?"+A,_.style.display="none",document.body.appendChild(_),document.body.removeChild(_),_}a.exports=g},4729:function(a,u,c){var l=c(5695),g=c(4564),C=7*24*60*60*1e3;function S(A){var y=new Date().getTime();return y-A>C}function _(A,y){var d="https://www.google-analytics.com/collect",v=location.hostname,m="event",f="use",p="TOAST UI "+A+" for "+v+": Statistics",h=window.localStorage.getItem(p);!l(window.tui)&&window.tui.usageStatistics===!1||h&&!S(h)||(window.localStorage.setItem(p,new Date().getTime()),setTimeout(function(){(document.readyState==="interactive"||document.readyState==="complete")&&g(d,{v:1,t:m,tid:y,cid:v,dp:v,dh:A,el:A,ec:f})},1e3))}a.exports=_},602:function(a){function u(c){return c instanceof Array}a.exports=u},9886:function(a,u,c){var l=c(5695),g=c(3778);function C(S){return!l(S)&&!g(S)}a.exports=C},5183:function(a){function u(c){return c instanceof Function}a.exports=u},3778:function(a){function u(c){return c===null}a.exports=u},5393:function(a){function u(c){return c===Object(c)}a.exports=u},2560:function(a){function u(c){return typeof c=="string"||c instanceof String}a.exports=u},5695:function(a){function u(c){return c===void 0}a.exports=u},4426:function(a,u,c){a.exports=c(4486)},9406:function(a,u,c){a.exports=c(4877)},789:function(a,u,c){a.exports=c(7178)},381:function(a,u,c){a.exports=c(5603)},7636:function(a,u,c){a.exports=c(1206)},1899:function(a,u,c){a.exports=c(6174)},899:function(a,u,c){a.exports=c(57)},8005:function(a,u,c){a.exports=c(4741)},6562:function(a,u,c){a.exports=c(8368)},9131:function(a,u,c){a.exports=c(3739)},4383:function(a,u,c){a.exports=c(172)},6065:function(a,u,c){a.exports=c(4963)},1734:function(a,u,c){a.exports=c(7820)},2461:function(a,u,c){a.exports=c(5636)},5214:function(a,u,c){a.exports=c(5059)},6397:function(a,u,c){a.exports=c(3969)},8189:function(a,u,c){a.exports=c(6618)},9146:function(a,u,c){a.exports=c(5279)},4496:function(a,u,c){a.exports=c(9562)},3972:function(a,u,c){a.exports=c(652)},7172:function(a,u,c){a.exports=c(2813)},1845:function(a,u,c){a.exports=c(8664)},662:function(a,u,c){a.exports=c(1457)},711:function(a,u,c){a.exports=c(2937)},6623:function(a,u,c){a.exports=c(9297)},7077:function(a,u,c){a.exports=c(8026)},9856:function(a,u,c){a.exports=c(2044)},4230:function(a,u,c){a.exports=c(2214)},184:function(a,u,c){a.exports=c(9256)},3742:function(a,u,c){a.exports=c(5659)},1801:function(a){var u={rect:1,circle:2,triangle:1},c={rect:{w:"width",h:"height"},circle:{w:"rx",h:"ry"},triangle:{w:"width",h:"height"}};function l(d){var v=d.originX,m=d.originY,f=v.substring(0,1)+m.substring(0,1);d.startPoint=d.origins[f]}function g(d,v,m){var f=d.x,p=d.y,h=v.x,b=v.y,w=m*Math.PI/180,k=(h-f)*Math.cos(w)-(b-p)*Math.sin(w)+f,$=(h-f)*Math.sin(w)+(b-p)*Math.cos(w)+p;return{originX:f>k?"right":"left",originY:p>$?"bottom":"top"}}function C(d){return d.originX==="center"&&d.originY==="center"}function S(d,v){var m=v.getPointByOrigin("center","center"),f=-v.angle,p=g(m,d,f),h=p.originX,b=p.originY,w=v.getPointByOrigin(h,b),k=v.left-(m.x-w.x),$=v.top-(m.y-w.y);v.set({originX:h,originY:b,left:k,top:$}),v.setCoords()}function _(d,v){var m=v.startPoint,f=-v.angle,p=g(m,d,f),h=p.originX,b=p.originY;v.setPositionByOrigin(m,h,b),v.setCoords()}function A(d){var v=d.type,m=d.scaleX,f=d.scaleY,p=c[v],h=d[p.w]*m,b=d[p.h]*f;if(d.isRegular){var w=Math.max(m,f);h=d[p.w]*w,b=d[p.h]*w}var k={hasControls:!1,hasBorders:!1,scaleX:1,scaleY:1};k[p.w]=h,k[p.h]=b,d.set(k)}function y(d,v){var m=v.type,f=v.strokeWidth,p=v.startPoint,h=u[m],b=c[m],w=v.type==="triangle",k={},$=Math.abs(p.x-d.x)/h,E=Math.abs(p.y-d.y)/h;$>f&&($-=f/h),E>f&&(E-=f/h),v.isRegular&&($=E=Math.max($,E),w&&(E=Math.sqrt(3)/2*$)),k[b.w]=$,k[b.h]=E,v.set(k)}a.exports={setOrigins:function(v){var m=v.getPointByOrigin("left","top"),f=v.getPointByOrigin("right","top"),p=v.getPointByOrigin("right","bottom"),h=v.getPointByOrigin("left","bottom");v.origins={lt:m,rt:f,rb:p,lb:h}},resize:function(v,m,f){C(v)&&(S(m,v),l(v)),f?A(v):y(m,v),_(m,v)},adjustOriginToCenter:function(v){var m=v.getPointByOrigin("center","center"),f=v.originX,p=v.originY,h=v.getPointByOrigin(f,p),b=v.left+(m.x-h.x),w=v.top+(m.y-h.y);v.set({hasControls:!0,hasBorders:!0,originX:"center",originY:"center",left:b,top:w}),v.setCoords()}}},2221:function(a,u,c){c(5454),c(9173);var l=c(7545);a.exports=l.Array.from},5078:function(a,u,c){c(8118);var l=c(7545);a.exports=l.Array.isArray},6135:function(a,u,c){c(9106);var l=c(5607);a.exports=l("Array").concat},9510:function(a,u,c){c(1710);var l=c(5607);a.exports=l("Array").fill},3971:function(a,u,c){c(3436);var l=c(5607);a.exports=l("Array").filter},98:function(a,u,c){c(9823);var l=c(5607);a.exports=l("Array").forEach},2089:function(a,u,c){c(2276);var l=c(5607);a.exports=l("Array").indexOf},6209:function(a,u,c){c(3838);var l=c(5607);a.exports=l("Array").map},2671:function(a,u,c){c(5818);var l=c(5607);a.exports=l("Array").slice},1375:function(a,u,c){c(2178);var l=c(5607);a.exports=l("Array").splice},3528:function(a,u,c){c(665);var l=c(5607);a.exports=l("Function").bind},5739:function(a,u,c){c(8939),c(5454);var l=c(8703);a.exports=l},278:function(a,u,c){var l=c(3528),g=Function.prototype;a.exports=function(C){var S=C.bind;return C===g||C instanceof Function&&S===g.bind?l:S}},1484:function(a,u,c){var l=c(6135),g=Array.prototype;a.exports=function(C){var S=C.concat;return C===g||C instanceof Array&&S===g.concat?l:S}},7731:function(a,u,c){var l=c(9510),g=Array.prototype;a.exports=function(C){var S=C.fill;return C===g||C instanceof Array&&S===g.fill?l:S}},3669:function(a,u,c){var l=c(3971),g=Array.prototype;a.exports=function(C){var S=C.filter;return C===g||C instanceof Array&&S===g.filter?l:S}},2604:function(a,u,c){var l=c(2089),g=Array.prototype;a.exports=function(C){var S=C.indexOf;return C===g||C instanceof Array&&S===g.indexOf?l:S}},263:function(a,u,c){var l=c(6209),g=Array.prototype;a.exports=function(C){var S=C.map;return C===g||C instanceof Array&&S===g.map?l:S}},7663:function(a,u,c){var l=c(2671),g=Array.prototype;a.exports=function(C){var S=C.slice;return C===g||C instanceof Array&&S===g.slice?l:S}},5063:function(a,u,c){var l=c(1375),g=Array.prototype;a.exports=function(C){var S=C.splice;return C===g||C instanceof Array&&S===g.splice?l:S}},6813:function(a,u,c){var l=c(3842),g=String.prototype;a.exports=function(C){var S=C.trim;return typeof C=="string"||C===g||C instanceof String&&S===g.trim?l:S}},6285:function(a,u,c){c(2666);var l=c(7545);a.exports=l.Number.parseInt},3213:function(a,u,c){c(3113);var l=c(7545),g=l.Object;a.exports=function(S,_){return g.create(S,_)}},3512:function(a,u,c){c(297);var l=c(7545),g=l.Object,C=a.exports=function(_,A,y){return g.defineProperty(_,A,y)};g.defineProperty.sham&&(C.sham=!0)},8168:function(a,u,c){c(9234);var l=c(7545);a.exports=l.Object.getPrototypeOf},8651:function(a,u,c){c(2647);var l=c(7545);a.exports=l.Object.keys},3083:function(a,u,c){c(3222);var l=c(7545);a.exports=l.Object.setPrototypeOf},2987:function(a,u,c){c(4859);var l=c(7545);a.exports=l.parseFloat},2239:function(a,u,c){c(5706);var l=c(7545);a.exports=l.parseInt},3154:function(a,u,c){c(4242),c(8939),c(6663),c(9021),c(7884),c(8885),c(1868),c(5454);var l=c(7545);a.exports=l.Promise},6577:function(a,u,c){c(5397);var l=c(7545);a.exports=l.Reflect.construct},3842:function(a,u,c){c(957);var l=c(5607);a.exports=l("String").trim},5008:function(a,u,c){c(9106),c(6663),c(6187),c(9781),c(492),c(6681),c(9594),c(3665),c(9017),c(1250),c(9786),c(503),c(6565),c(9322),c(3610),c(6886),c(3514),c(8671),c(8556),c(1367);var l=c(7545);a.exports=l.Symbol},994:function(a,u,c){c(8939),c(6663),c(5454),c(3665);var l=c(9207);a.exports=l.f("iterator")},2813:function(a,u,c){var l=c(3822);a.exports=l},8664:function(a,u,c){var l=c(1434);a.exports=l},1457:function(a,u,c){var l=c(7710);a.exports=l},2937:function(a,u,c){var l=c(4741);a.exports=l},9297:function(a,u,c){var l=c(4963);a.exports=l},8026:function(a,u,c){var l=c(7820);a.exports=l},2044:function(a,u,c){var l=c(8980);a.exports=l},2214:function(a,u,c){var l=c(6672);a.exports=l},9256:function(a,u,c){var l=c(2285);c(177),c(9031),c(6658),c(1875),c(8658),c(4592),c(6680),a.exports=l},5659:function(a,u,c){var l=c(8535);a.exports=l},6235:function(a,u,c){var l=c(6447),g=c(9288);a.exports=function(C){if(l(C))return C;throw TypeError(g(C)+" is not a function")}},1404:function(a,u,c){var l=c(2091),g=c(9288);a.exports=function(C){if(l(C))return C;throw TypeError(g(C)+" is not a constructor")}},7757:function(a,u,c){var l=c(6447);a.exports=function(g){if(typeof g=="object"||l(g))return g;throw TypeError("Can't set "+String(g)+" as a prototype")}},7423:function(a){a.exports=function(){}},6961:function(a){a.exports=function(u,c,l){if(u instanceof c)return u;throw TypeError("Incorrect "+(l?l+" ":"")+"invocation")}},1138:function(a,u,c){var l=c(5744);a.exports=function(g){if(l(g))return g;throw TypeError(String(g)+" is not an object")}},2724:function(a,u,c){var l=c(1795),g=c(7739),C=c(4104);a.exports=function(_){for(var A=l(this),y=C(A),d=arguments.length,v=g(d>1?arguments[1]:void 0,y),m=d>2?arguments[2]:void 0,f=m===void 0?y:g(m,y);f>v;)A[v++]=_;return A}},7397:function(a,u,c){var l=c(454).forEach,g=c(424),C=g("forEach");a.exports=C?[].forEach:function(_){return l(this,_,arguments.length>1?arguments[1]:void 0)}},841:function(a,u,c){var l=c(8043),g=c(1795),C=c(1635),S=c(6109),_=c(2091),A=c(4104),y=c(9361),d=c(1669),v=c(8703);a.exports=function(f){var p=g(f),h=_(this),b=arguments.length,w=b>1?arguments[1]:void 0,k=w!==void 0;k&&(w=l(w,b>2?arguments[2]:void 0,2));var $=v(p),E=0,N,j,z,V,W,H;if($&&!(this==Array&&S($)))for(V=d(p,$),W=V.next,j=h?new this:[];!(z=W.call(V)).done;E++)H=k?C(V,w,[z.value,E],!0):z.value,y(j,E,H);else for(N=A(p),j=h?new this(N):Array(N);N>E;E++)H=k?w(p[E],E):p[E],y(j,E,H);return j.length=E,j}},8180:function(a,u,c){var l=c(101),g=c(7739),C=c(4104),S=function(_){return function(A,y,d){var v=l(A),m=C(v),f=g(d,m),p;if(_&&y!=y){for(;m>f;)if(p=v[f++],p!=p)return!0}else for(;m>f;f++)if((_||f in v)&&v[f]===y)return _||f||0;return!_&&-1}};a.exports={includes:S(!0),indexOf:S(!1)}},454:function(a,u,c){var l=c(8043),g=c(2202),C=c(1795),S=c(4104),_=c(1321),A=[].push,y=function(d){var v=d==1,m=d==2,f=d==3,p=d==4,h=d==6,b=d==7,w=d==5||h;return function(k,$,E,N){for(var j=C(k),z=g(j),V=l($,E,3),W=S(z),H=0,U=N||_,Q=v?U(k,W):m||b?U(k,0):void 0,q,ae;W>H;H++)if((w||H in z)&&(q=z[H],ae=V(q,H,j),d))if(v)Q[H]=ae;else if(ae)switch(d){case 3:return!0;case 5:return q;case 6:return H;case 2:A.call(Q,q)}else switch(d){case 4:return!1;case 7:A.call(Q,q)}return h?-1:f||p?p:Q}};a.exports={forEach:y(0),map:y(1),filter:y(2),some:y(3),every:y(4),find:y(5),findIndex:y(6),filterReject:y(7)}},242:function(a,u,c){var l=c(6192),g=c(8182),C=c(4218),S=g("species");a.exports=function(_){return C>=51||!l(function(){var A=[],y=A.constructor={};return y[S]=function(){return{foo:1}},A[_](Boolean).foo!==1})}},424:function(a,u,c){var l=c(6192);a.exports=function(g,C){var S=[][g];return!!S&&l(function(){S.call(null,C||function(){throw 1},1)})}},3712:function(a,u,c){var l=c(4770),g=c(2091),C=c(5744),S=c(8182),_=S("species");a.exports=function(A){var y;return l(A)&&(y=A.constructor,g(y)&&(y===Array||l(y.prototype))?y=void 0:C(y)&&(y=y[_],y===null&&(y=void 0))),y===void 0?Array:y}},1321:function(a,u,c){var l=c(3712);a.exports=function(g,C){return new(l(g))(C===0?0:C)}},1635:function(a,u,c){var l=c(1138),g=c(6639);a.exports=function(C,S,_,A){try{return A?S(l(_)[0],_[1]):S(_)}catch(y){g(C,"throw",y)}}},9770:function(a,u,c){var l=c(8182),g=l("iterator"),C=!1;try{var S=0,_={next:function(){return{done:!!S++}},return:function(){C=!0}};_[g]=function(){return this},Array.from(_,function(){throw 2})}catch{}a.exports=function(A,y){if(!y&&!C)return!1;var d=!1;try{var v={};v[g]=function(){return{next:function(){return{done:d=!0}}}},A(v)}catch{}return d}},9272:function(a){var u={}.toString;a.exports=function(c){return u.call(c).slice(8,-1)}},4696:function(a,u,c){var l=c(3471),g=c(6447),C=c(9272),S=c(8182),_=S("toStringTag"),A=C(function(){return arguments}())=="Arguments",y=function(d,v){try{return d[v]}catch{}};a.exports=l?C:function(d){var v,m,f;return d===void 0?"Undefined":d===null?"Null":typeof(m=y(v=Object(d),_))=="string"?m:A?C(v):(f=C(v))=="Object"&&g(v.callee)?"Arguments":f}},4635:function(a,u,c){var l=c(6192);a.exports=!l(function(){function g(){}return g.prototype.constructor=null,Object.getPrototypeOf(new g)!==g.prototype})},5148:function(a,u,c){var l=c(4413).IteratorPrototype,g=c(2853),C=c(774),S=c(1284),_=c(7771),A=function(){return this};a.exports=function(y,d,v){var m=d+" Iterator";return y.prototype=g(l,{next:C(1,v)}),S(y,m,!1,!0),_[m]=A,y}},8711:function(a,u,c){var l=c(69),g=c(2760),C=c(774);a.exports=l?function(S,_,A){return g.f(S,_,C(1,A))}:function(S,_,A){return S[_]=A,S}},774:function(a){a.exports=function(u,c){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:c}}},9361:function(a,u,c){var l=c(77),g=c(2760),C=c(774);a.exports=function(S,_,A){var y=l(_);y in S?g.f(S,y,C(0,A)):S[y]=A}},7218:function(a,u,c){var l=c(3085),g=c(5546),C=c(2282),S=c(6447),_=c(5148),A=c(9341),y=c(4469),d=c(1284),v=c(8711),m=c(9482),f=c(8182),p=c(7771),h=c(4413),b=C.PROPER,w=C.CONFIGURABLE,k=h.IteratorPrototype,$=h.BUGGY_SAFARI_ITERATORS,E=f("iterator"),N="keys",j="values",z="entries",V=function(){return this};a.exports=function(W,H,U,Q,q,ae,ne){_(U,H,Q);var be=function(Y){if(Y===q&&ge)return ge;if(!$&&Y in $e)return $e[Y];switch(Y){case N:return function(){return new U(this,Y)};case j:return function(){return new U(this,Y)};case z:return function(){return new U(this,Y)}}return function(){return new U(this)}},te=H+" Iterator",Ie=!1,$e=W.prototype,Me=$e[E]||$e["@@iterator"]||q&&$e[q],ge=!$&&Me||be(q),Se=H=="Array"&&$e.entries||Me,fe,pe,je;if(Se&&(fe=A(Se.call(new W)),fe!==Object.prototype&&fe.next&&(!g&&A(fe)!==k&&(y?y(fe,k):S(fe[E])||m(fe,E,V)),d(fe,te,!0,!0),g&&(p[te]=V))),b&&q==j&&Me&&Me.name!==j&&(!g&&w?v($e,"name",j):(Ie=!0,ge=function(){return Me.call(this)})),q)if(pe={values:be(j),keys:ae?ge:be(N),entries:be(z)},ne)for(je in pe)($||Ie||!(je in $e))&&m($e,je,pe[je]);else l({target:H,proto:!0,forced:$||Ie},pe);return(!g||ne)&&$e[E]!==ge&&m($e,E,ge,{name:q}),p[H]=ge,pe}},1488:function(a,u,c){var l=c(7545),g=c(4500),C=c(9207),S=c(2760).f;a.exports=function(_){var A=l.Symbol||(l.Symbol={});g(A,_)||S(A,_,{value:C.f(_)})}},69:function(a,u,c){var l=c(6192);a.exports=!l(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},7449:function(a,u,c){var l=c(8576),g=c(5744),C=l.document,S=g(C)&&g(C.createElement);a.exports=function(_){return S?C.createElement(_):{}}},7365:function(a){a.exports={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}},2957:function(a){a.exports=typeof window=="object"},9347:function(a,u,c){var l=c(8989),g=c(8576);a.exports=/ipad|iphone|ipod/i.test(l)&&g.Pebble!==void 0},9536:function(a,u,c){var l=c(8989);a.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(l)},224:function(a,u,c){var l=c(9272),g=c(8576);a.exports=l(g.process)=="process"},5914:function(a,u,c){var l=c(8989);a.exports=/web0s(?!.*chrome)/i.test(l)},8989:function(a,u,c){var l=c(150);a.exports=l("navigator","userAgent")||""},4218:function(a,u,c){var l=c(8576),g=c(8989),C=l.process,S=l.Deno,_=C&&C.versions||S&&S.version,A=_&&_.v8,y,d;A?(y=A.split("."),d=y[0]<4?1:y[0]+y[1]):g&&(y=g.match(/Edge\/(\d+)/),(!y||y[1]>=74)&&(y=g.match(/Chrome\/(\d+)/),y&&(d=y[1]))),a.exports=d&&+d},5607:function(a,u,c){var l=c(7545);a.exports=function(g){return l[g+"Prototype"]}},2952:function(a){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3085:function(a,u,c){var l=c(8576),g=c(6447),C=c(5141).f,S=c(9245),_=c(7545),A=c(8043),y=c(8711),d=c(4500),v=function(m){var f=function(p,h,b){if(this instanceof m){switch(arguments.length){case 0:return new m;case 1:return new m(p);case 2:return new m(p,h)}return new m(p,h,b)}return m.apply(this,arguments)};return f.prototype=m.prototype,f};a.exports=function(m,f){var p=m.target,h=m.global,b=m.stat,w=m.proto,k=h?l:b?l[p]:(l[p]||{}).prototype,$=h?_:_[p]||y(_,p,{})[p],E=$.prototype,N,j,z,V,W,H,U,Q,q;for(V in f)N=S(h?V:p+(b?".":"#")+V,m.forced),j=!N&&k&&d(k,V),H=$[V],j&&(m.noTargetGet?(q=C(k,V),U=q&&q.value):U=k[V]),W=j&&U?U:f[V],!(j&&typeof H==typeof W)&&(m.bind&&j?Q=A(W,l):m.wrap&&j?Q=v(W):w&&g(W)?Q=A(Function.call,W):Q=W,(m.sham||W&&W.sham||H&&H.sham)&&y(Q,"sham",!0),y($,V,Q),w&&(z=p+"Prototype",d(_,z)||y(_,z,{}),y(_[z],V,W),m.real&&E&&!E[V]&&y(E,V,W)))}},6192:function(a){a.exports=function(u){try{return!!u()}catch{return!0}}},8043:function(a,u,c){var l=c(6235);a.exports=function(g,C,S){if(l(g),C===void 0)return g;switch(S){case 0:return function(){return g.call(C)};case 1:return function(_){return g.call(C,_)};case 2:return function(_,A){return g.call(C,_,A)};case 3:return function(_,A,y){return g.call(C,_,A,y)}}return function(){return g.apply(C,arguments)}}},6782:function(a,u,c){var l=c(6235),g=c(5744),C=[].slice,S={},_=function(A,y,d){if(!(y in S)){for(var v=[],m=0;m<y;m++)v[m]="a["+m+"]";S[y]=Function("C,a","return new C("+v.join(",")+")")}return S[y](A,d)};a.exports=Function.bind||function(y){var d=l(this),v=C.call(arguments,1),m=function(){var p=v.concat(C.call(arguments));return this instanceof m?_(d,p.length,p):d.apply(y,p)};return g(d.prototype)&&(m.prototype=d.prototype),m}},2282:function(a,u,c){var l=c(69),g=c(4500),C=Function.prototype,S=l&&Object.getOwnPropertyDescriptor,_=g(C,"name"),A=_&&function(){}.name==="something",y=_&&(!l||l&&S(C,"name").configurable);a.exports={EXISTS:_,PROPER:A,CONFIGURABLE:y}},150:function(a,u,c){var l=c(7545),g=c(8576),C=c(6447),S=function(_){return C(_)?_:void 0};a.exports=function(_,A){return arguments.length<2?S(l[_])||S(g[_]):l[_]&&l[_][A]||g[_]&&g[_][A]}},8703:function(a,u,c){var l=c(4696),g=c(5037),C=c(7771),S=c(8182),_=S("iterator");a.exports=function(A){if(A!=null)return g(A,_)||g(A,"@@iterator")||C[l(A)]}},1669:function(a,u,c){var l=c(6235),g=c(1138),C=c(8703);a.exports=function(S,_){var A=arguments.length<2?C(S):_;if(l(A))return g(A.call(S));throw TypeError(String(S)+" is not iterable")}},5037:function(a,u,c){var l=c(6235);a.exports=function(g,C){var S=g[C];return S==null?void 0:l(S)}},8576:function(a,u,c){var l=function(g){return g&&g.Math==Math&&g};a.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof c.g=="object"&&c.g)||function(){return this}()||Function("return this")()},4500:function(a,u,c){var l=c(1795),g={}.hasOwnProperty;a.exports=Object.hasOwn||function(S,_){return g.call(l(S),_)}},4535:function(a){a.exports={}},3681:function(a,u,c){var l=c(8576);a.exports=function(g,C){var S=l.console;S&&S.error&&(arguments.length===1?S.error(g):S.error(g,C))}},7403:function(a,u,c){var l=c(150);a.exports=l("document","documentElement")},188:function(a,u,c){var l=c(69),g=c(6192),C=c(7449);a.exports=!l&&!g(function(){return Object.defineProperty(C("div"),"a",{get:function(){return 7}}).a!=7})},2202:function(a,u,c){var l=c(6192),g=c(9272),C="".split;a.exports=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(S){return g(S)=="String"?C.call(S,""):Object(S)}:Object},9516:function(a,u,c){var l=c(6447),g=c(6434),C=Function.toString;l(g.inspectSource)||(g.inspectSource=function(S){return C.call(S)}),a.exports=g.inspectSource},273:function(a,u,c){var l=c(5744),g=c(8711);a.exports=function(C,S){l(S)&&"cause"in S&&g(C,"cause",C.cause)}},3326:function(a,u,c){var l=c(8921),g=c(8576),C=c(5744),S=c(8711),_=c(4500),A=c(6434),y=c(9766),d=c(4535),v="Object already initialized",m=g.WeakMap,f,p,h,b=function(z){return h(z)?p(z):f(z,{})},w=function(z){return function(V){var W;if(!C(V)||(W=p(V)).type!==z)throw TypeError("Incompatible receiver, "+z+" required");return W}};if(l||A.state){var k=A.state||(A.state=new m),$=k.get,E=k.has,N=k.set;f=function(z,V){if(E.call(k,z))throw new TypeError(v);return V.facade=z,N.call(k,z,V),V},p=function(z){return $.call(k,z)||{}},h=function(z){return E.call(k,z)}}else{var j=y("state");d[j]=!0,f=function(z,V){if(_(z,j))throw new TypeError(v);return V.facade=z,S(z,j,V),V},p=function(z){return _(z,j)?z[j]:{}},h=function(z){return _(z,j)}}a.exports={set:f,get:p,has:h,enforce:b,getterFor:w}},6109:function(a,u,c){var l=c(8182),g=c(7771),C=l("iterator"),S=Array.prototype;a.exports=function(_){return _!==void 0&&(g.Array===_||S[C]===_)}},4770:function(a,u,c){var l=c(9272);a.exports=Array.isArray||function(C){return l(C)=="Array"}},6447:function(a){a.exports=function(u){return typeof u=="function"}},2091:function(a,u,c){var l=c(6192),g=c(6447),C=c(4696),S=c(150),_=c(9516),A=[],y=S("Reflect","construct"),d=/^\s*(?:class|function)\b/,v=d.exec,m=!d.exec(function(){}),f=function(h){if(!g(h))return!1;try{return y(Object,A,h),!0}catch{return!1}},p=function(h){if(!g(h))return!1;switch(C(h)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return m||!!v.call(d,_(h))};a.exports=!y||l(function(){var h;return f(f.call)||!f(Object)||!f(function(){h=!0})||h})?p:f},9245:function(a,u,c){var l=c(6192),g=c(6447),C=/#|\.prototype\./,S=function(v,m){var f=A[_(v)];return f==d?!0:f==y?!1:g(m)?l(m):!!m},_=S.normalize=function(v){return String(v).replace(C,".").toLowerCase()},A=S.data={},y=S.NATIVE="N",d=S.POLYFILL="P";a.exports=S},5744:function(a,u,c){var l=c(6447);a.exports=function(g){return typeof g=="object"?g!==null:l(g)}},5546:function(a){a.exports=!0},3236:function(a,u,c){var l=c(6447),g=c(150),C=c(615);a.exports=C?function(S){return typeof S=="symbol"}:function(S){var _=g("Symbol");return l(_)&&Object(S)instanceof _}},3442:function(a,u,c){var l=c(1138),g=c(6109),C=c(4104),S=c(8043),_=c(1669),A=c(8703),y=c(6639),d=function(v,m){this.stopped=v,this.result=m};a.exports=function(v,m,f){var p=f&&f.that,h=!!(f&&f.AS_ENTRIES),b=!!(f&&f.IS_ITERATOR),w=!!(f&&f.INTERRUPTED),k=S(m,p,1+h+w),$,E,N,j,z,V,W,H=function(Q){return $&&y($,"normal",Q),new d(!0,Q)},U=function(Q){return h?(l(Q),w?k(Q[0],Q[1],H):k(Q[0],Q[1])):w?k(Q,H):k(Q)};if(b)$=v;else{if(E=A(v),!E)throw TypeError(String(v)+" is not iterable");if(g(E)){for(N=0,j=C(v);j>N;N++)if(z=U(v[N]),z&&z instanceof d)return z;return new d(!1)}$=_(v,E)}for(V=$.next;!(W=V.call($)).done;){try{z=U(W.value)}catch(Q){y($,"throw",Q)}if(typeof z=="object"&&z&&z instanceof d)return z}return new d(!1)}},6639:function(a,u,c){var l=c(1138),g=c(5037);a.exports=function(C,S,_){var A,y;l(C);try{if(A=g(C,"return"),!A){if(S==="throw")throw _;return _}A=A.call(C)}catch(d){y=!0,A=d}if(S==="throw")throw _;if(y)throw A;return l(A),_}},4413:function(a,u,c){var l=c(6192),g=c(6447),C=c(2853),S=c(9341),_=c(9482),A=c(8182),y=c(5546),d=A("iterator"),v=!1,m,f,p;[].keys&&(p=[].keys(),"next"in p?(f=S(S(p)),f!==Object.prototype&&(m=f)):v=!0);var h=m==null||l(function(){var b={};return m[d].call(b)!==b});h?m={}:y&&(m=C(m)),g(m[d])||_(m,d,function(){return this}),a.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:v}},7771:function(a){a.exports={}},4104:function(a,u,c){var l=c(8445);a.exports=function(g){return l(g.length)}},2950:function(a,u,c){var l=c(8576),g=c(5141).f,C=c(7160).set,S=c(9536),_=c(9347),A=c(5914),y=c(224),d=l.MutationObserver||l.WebKitMutationObserver,v=l.document,m=l.process,f=l.Promise,p=g(l,"queueMicrotask"),h=p&&p.value,b,w,k,$,E,N,j,z;h||(b=function(){var V,W;for(y&&(V=m.domain)&&V.exit();w;){W=w.fn,w=w.next;try{W()}catch(H){throw w?$():k=void 0,H}}k=void 0,V&&V.enter()},!S&&!y&&!A&&d&&v?(E=!0,N=v.createTextNode(""),new d(b).observe(N,{characterData:!0}),$=function(){N.data=E=!E}):!_&&f&&f.resolve?(j=f.resolve(void 0),j.constructor=f,z=j.then,$=function(){z.call(j,b)}):y?$=function(){m.nextTick(b)}:$=function(){C.call(l,b)}),a.exports=h||function(V){var W={fn:V,next:void 0};k&&(k.next=W),w||(w=W,$()),k=W}},4471:function(a,u,c){var l=c(8576);a.exports=l.Promise},3045:function(a,u,c){var l=c(4218),g=c(6192);a.exports=!!Object.getOwnPropertySymbols&&!g(function(){var C=Symbol();return!String(C)||!(Object(C)instanceof Symbol)||!Symbol.sham&&l&&l<41})},4551:function(a,u,c){var l=c(6192),g=c(8182),C=c(5546),S=g("iterator");a.exports=!l(function(){var _=new URL("b?a=1&b=2&c=3","http://a"),A=_.searchParams,y="";return _.pathname="c%20d",A.forEach(function(d,v){A.delete("b"),y+=v+d}),C&&!_.toJSON||!A.sort||_.href!=="http://a/c%20d?a=1&c=3"||A.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!A[S]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||y!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8921:function(a,u,c){var l=c(8576),g=c(6447),C=c(9516),S=l.WeakMap;a.exports=g(S)&&/native code/.test(C(S))},9438:function(a,u,c){var l=c(6235),g=function(C){var S,_;this.promise=new C(function(A,y){if(S!==void 0||_!==void 0)throw TypeError("Bad Promise constructor");S=A,_=y}),this.resolve=l(S),this.reject=l(_)};a.exports.f=function(C){return new g(C)}},15:function(a,u,c){var l=c(8576),g=c(6192),C=c(4845),S=c(4277).trim,_=c(1450),A=l.parseFloat,y=l.Symbol,d=y&&y.iterator,v=1/A(_+"-0")!==-1/0||d&&!g(function(){A(Object(d))});a.exports=v?function(f){var p=S(C(f)),h=A(p);return h===0&&p.charAt(0)=="-"?-0:h}:A},2558:function(a,u,c){var l=c(8576),g=c(6192),C=c(4845),S=c(4277).trim,_=c(1450),A=l.parseInt,y=l.Symbol,d=y&&y.iterator,v=/^[+-]?0[Xx]/,m=A(_+"08")!==8||A(_+"0x16")!==22||d&&!g(function(){A(Object(d))});a.exports=m?function(p,h){var b=S(C(p));return A(b,h>>>0||(v.test(b)?16:10))}:A},2503:function(a,u,c){var l=c(69),g=c(6192),C=c(7653),S=c(4750),_=c(6007),A=c(1795),y=c(2202),d=Object.assign,v=Object.defineProperty;a.exports=!d||g(function(){if(l&&d({b:1},d(v({},"a",{enumerable:!0,get:function(){v(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var m={},f={},p=Symbol(),h="abcdefghijklmnopqrst";return m[p]=7,h.split("").forEach(function(b){f[b]=b}),d({},m)[p]!=7||C(d({},f)).join("")!=h})?function(f,p){for(var h=A(f),b=arguments.length,w=1,k=S.f,$=_.f;b>w;)for(var E=y(arguments[w++]),N=k?C(E).concat(k(E)):C(E),j=N.length,z=0,V;j>z;)V=N[z++],(!l||$.call(E,V))&&(h[V]=E[V]);return h}:d},2853:function(a,u,c){var l=c(1138),g=c(1187),C=c(2952),S=c(4535),_=c(7403),A=c(7449),y=c(9766),d=">",v="<",m="prototype",f="script",p=y("IE_PROTO"),h=function(){},b=function(N){return v+f+d+N+v+"/"+f+d},w=function(N){N.write(b("")),N.close();var j=N.parentWindow.Object;return N=null,j},k=function(){var N=A("iframe"),j="java"+f+":",z;return N.style.display="none",_.appendChild(N),N.src=String(j),z=N.contentWindow.document,z.open(),z.write(b("document.F=Object")),z.close(),z.F},$,E=function(){try{$=new ActiveXObject("htmlfile")}catch{}E=typeof document<"u"?document.domain&&$?w($):k():w($);for(var N=C.length;N--;)delete E[m][C[N]];return E()};S[p]=!0,a.exports=Object.create||function(j,z){var V;return j!==null?(h[m]=l(j),V=new h,h[m]=null,V[p]=j):V=E(),z===void 0?V:g(V,z)}},1187:function(a,u,c){var l=c(69),g=c(2760),C=c(1138),S=c(7653);a.exports=l?Object.defineProperties:function(A,y){C(A);for(var d=S(y),v=d.length,m=0,f;v>m;)g.f(A,f=d[m++],y[f]);return A}},2760:function(a,u,c){var l=c(69),g=c(188),C=c(1138),S=c(77),_=Object.defineProperty;u.f=l?_:function(y,d,v){if(C(y),d=S(d),C(v),g)try{return _(y,d,v)}catch{}if("get"in v||"set"in v)throw TypeError("Accessors not supported");return"value"in v&&(y[d]=v.value),y}},5141:function(a,u,c){var l=c(69),g=c(6007),C=c(774),S=c(101),_=c(77),A=c(4500),y=c(188),d=Object.getOwnPropertyDescriptor;u.f=l?d:function(m,f){if(m=S(m),f=_(f),y)try{return d(m,f)}catch{}if(A(m,f))return C(!g.f.call(m,f),m[f])}},4052:function(a,u,c){var l=c(101),g=c(2092).f,C={}.toString,S=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_=function(A){try{return g(A)}catch{return S.slice()}};a.exports.f=function(y){return S&&C.call(y)=="[object Window]"?_(y):g(l(y))}},2092:function(a,u,c){var l=c(7934),g=c(2952),C=g.concat("length","prototype");u.f=Object.getOwnPropertyNames||function(_){return l(_,C)}},4750:function(a,u){u.f=Object.getOwnPropertySymbols},9341:function(a,u,c){var l=c(4500),g=c(6447),C=c(1795),S=c(9766),_=c(4635),A=S("IE_PROTO"),y=Object.prototype;a.exports=_?Object.getPrototypeOf:function(d){var v=C(d);if(l(v,A))return v[A];var m=v.constructor;return g(m)&&v instanceof m?m.prototype:v instanceof Object?y:null}},7934:function(a,u,c){var l=c(4500),g=c(101),C=c(8180).indexOf,S=c(4535);a.exports=function(_,A){var y=g(_),d=0,v=[],m;for(m in y)!l(S,m)&&l(y,m)&&v.push(m);for(;A.length>d;)l(y,m=A[d++])&&(~C(v,m)||v.push(m));return v}},7653:function(a,u,c){var l=c(7934),g=c(2952);a.exports=Object.keys||function(S){return l(S,g)}},6007:function(a,u){var c={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,g=l&&!c.call({1:2},1);u.f=g?function(S){var _=l(this,S);return!!_&&_.enumerable}:c},4469:function(a,u,c){var l=c(1138),g=c(7757);a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var C=!1,S={},_;try{_=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,_.call(S,[]),C=S instanceof Array}catch{}return function(y,d){return l(y),g(d),C?_.call(y,d):y.__proto__=d,y}}():void 0)},158:function(a,u,c){var l=c(3471),g=c(4696);a.exports=l?{}.toString:function(){return"[object "+g(this)+"]"}},380:function(a,u,c){var l=c(6447),g=c(5744);a.exports=function(C,S){var _,A;if(S==="string"&&l(_=C.toString)&&!g(A=_.call(C))||l(_=C.valueOf)&&!g(A=_.call(C))||S!=="string"&&l(_=C.toString)&&!g(A=_.call(C)))return A;throw TypeError("Can't convert object to primitive value")}},7545:function(a){a.exports={}},892:function(a){a.exports=function(u){try{return{error:!1,value:u()}}catch(c){return{error:!0,value:c}}}},9126:function(a,u,c){var l=c(1138),g=c(5744),C=c(9438);a.exports=function(S,_){if(l(S),g(_)&&_.constructor===S)return _;var A=C.f(S),y=A.resolve;return y(_),A.promise}},533:function(a,u,c){var l=c(9482);a.exports=function(g,C,S){for(var _ in C)S&&S.unsafe&&g[_]?g[_]=C[_]:l(g,_,C[_],S);return g}},9482:function(a,u,c){var l=c(8711);a.exports=function(g,C,S,_){_&&_.enumerable?g[C]=S:l(g,C,S)}},3209:function(a){a.exports=function(u){if(u==null)throw TypeError("Can't call method on "+u);return u}},7613:function(a,u,c){var l=c(8576);a.exports=function(g,C){try{Object.defineProperty(l,g,{value:C,configurable:!0,writable:!0})}catch{l[g]=C}return C}},3656:function(a,u,c){var l=c(150),g=c(2760),C=c(8182),S=c(69),_=C("species");a.exports=function(A){var y=l(A),d=g.f;S&&y&&!y[_]&&d(y,_,{configurable:!0,get:function(){return this}})}},1284:function(a,u,c){var l=c(3471),g=c(2760).f,C=c(8711),S=c(4500),_=c(158),A=c(8182),y=A("toStringTag");a.exports=function(d,v,m,f){if(d){var p=m?d:d.prototype;S(p,y)||g(p,y,{configurable:!0,value:v}),f&&!l&&C(p,"toString",_)}}},9766:function(a,u,c){var l=c(8717),g=c(2759),C=l("keys");a.exports=function(S){return C[S]||(C[S]=g(S))}},6434:function(a,u,c){var l=c(8576),g=c(7613),C="__core-js_shared__",S=l[C]||g(C,{});a.exports=S},8717:function(a,u,c){var l=c(5546),g=c(6434);(a.exports=function(C,S){return g[C]||(g[C]=S!==void 0?S:{})})("versions",[]).push({version:"3.18.2",mode:l?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},4743:function(a,u,c){var l=c(1138),g=c(1404),C=c(8182),S=C("species");a.exports=function(_,A){var y=l(_).constructor,d;return y===void 0||(d=l(y)[S])==null?A:g(d)}},863:function(a,u,c){var l=c(1941),g=c(4845),C=c(3209),S=function(_){return function(A,y){var d=g(C(A)),v=l(y),m=d.length,f,p;return v<0||v>=m?_?"":void 0:(f=d.charCodeAt(v),f<55296||f>56319||v+1===m||(p=d.charCodeAt(v+1))<56320||p>57343?_?d.charAt(v):f:_?d.slice(v,v+2):(f-55296<<10)+(p-56320)+65536)}};a.exports={codeAt:S(!1),charAt:S(!0)}},7977:function(a){var u=2147483647,c=36,l=1,g=26,C=38,S=700,_=72,A=128,y="-",d=/[^\0-\u007E]/,v=/[.\u3002\uFF0E\uFF61]/g,m="Overflow: input needs wider integers to process",f=c-l,p=Math.floor,h=String.fromCharCode,b=function(E){for(var N=[],j=0,z=E.length;j<z;){var V=E.charCodeAt(j++);if(V>=55296&&V<=56319&&j<z){var W=E.charCodeAt(j++);(W&64512)==56320?N.push(((V&1023)<<10)+(W&1023)+65536):(N.push(V),j--)}else N.push(V)}return N},w=function(E){return E+22+75*(E<26)},k=function(E,N,j){var z=0;for(E=j?p(E/S):E>>1,E+=p(E/N);E>f*g>>1;z+=c)E=p(E/f);return p(z+(f+1)*E/(E+C))},$=function(E){var N=[];E=b(E);var j=E.length,z=A,V=0,W=_,H,U;for(H=0;H<E.length;H++)U=E[H],U<128&&N.push(h(U));var Q=N.length,q=Q;for(Q&&N.push(y);q<j;){var ae=u;for(H=0;H<E.length;H++)U=E[H],U>=z&&U<ae&&(ae=U);var ne=q+1;if(ae-z>p((u-V)/ne))throw RangeError(m);for(V+=(ae-z)*ne,z=ae,H=0;H<E.length;H++){if(U=E[H],U<z&&++V>u)throw RangeError(m);if(U==z){for(var be=V,te=c;;te+=c){var Ie=te<=W?l:te>=W+g?g:te-W;if(be<Ie)break;var $e=be-Ie,Me=c-Ie;N.push(h(w(Ie+$e%Me))),be=p($e/Me)}N.push(h(w(be))),W=k(V,ne,q==Q),V=0,++q}}++V,++z}return N.join("")};a.exports=function(E){var N=[],j=E.toLowerCase().replace(v,".").split("."),z,V;for(z=0;z<j.length;z++)V=j[z],N.push(d.test(V)?"xn--"+$(V):V);return N.join(".")}},6815:function(a,u,c){var l=c(2282).PROPER,g=c(6192),C=c(1450),S="​…᠎";a.exports=function(_){return g(function(){return!!C[_]()||S[_]()!==S||l&&C[_].name!==_})}},4277:function(a,u,c){var l=c(3209),g=c(4845),C=c(1450),S="["+C+"]",_=RegExp("^"+S+S+"*"),A=RegExp(S+S+"*$"),y=function(d){return function(v){var m=g(l(v));return d&1&&(m=m.replace(_,"")),d&2&&(m=m.replace(A,"")),m}};a.exports={start:y(1),end:y(2),trim:y(3)}},7160:function(a,u,c){var l=c(8576),g=c(6447),C=c(6192),S=c(8043),_=c(7403),A=c(7449),y=c(9536),d=c(224),v=l.setImmediate,m=l.clearImmediate,f=l.process,p=l.MessageChannel,h=l.Dispatch,b=0,w={},k="onreadystatechange",$,E,N,j;try{$=l.location}catch{}var z=function(U){if(w.hasOwnProperty(U)){var Q=w[U];delete w[U],Q()}},V=function(U){return function(){z(U)}},W=function(U){z(U.data)},H=function(U){l.postMessage(String(U),$.protocol+"//"+$.host)};(!v||!m)&&(v=function(Q){for(var q=[],ae=arguments.length,ne=1;ae>ne;)q.push(arguments[ne++]);return w[++b]=function(){(g(Q)?Q:Function(Q)).apply(void 0,q)},E(b),b},m=function(Q){delete w[Q]},d?E=function(U){f.nextTick(V(U))}:h&&h.now?E=function(U){h.now(V(U))}:p&&!y?(N=new p,j=N.port2,N.port1.onmessage=W,E=S(j.postMessage,j,1)):l.addEventListener&&g(l.postMessage)&&!l.importScripts&&$&&$.protocol!=="file:"&&!C(H)?(E=H,l.addEventListener("message",W,!1)):k in A("script")?E=function(U){_.appendChild(A("script"))[k]=function(){_.removeChild(this),z(U)}}:E=function(U){setTimeout(V(U),0)}),a.exports={set:v,clear:m}},7739:function(a,u,c){var l=c(1941),g=Math.max,C=Math.min;a.exports=function(S,_){var A=l(S);return A<0?g(A+_,0):C(A,_)}},101:function(a,u,c){var l=c(2202),g=c(3209);a.exports=function(C){return l(g(C))}},1941:function(a){var u=Math.ceil,c=Math.floor;a.exports=function(l){var g=+l;return g!==g||g===0?0:(g>0?c:u)(g)}},8445:function(a,u,c){var l=c(1941),g=Math.min;a.exports=function(C){return C>0?g(l(C),9007199254740991):0}},1795:function(a,u,c){var l=c(3209);a.exports=function(g){return Object(l(g))}},7888:function(a,u,c){var l=c(5744),g=c(3236),C=c(5037),S=c(380),_=c(8182),A=_("toPrimitive");a.exports=function(y,d){if(!l(y)||g(y))return y;var v=C(y,A),m;if(v){if(d===void 0&&(d="default"),m=v.call(y,d),!l(m)||g(m))return m;throw TypeError("Can't convert object to primitive value")}return d===void 0&&(d="number"),S(y,d)}},77:function(a,u,c){var l=c(7888),g=c(3236);a.exports=function(C){var S=l(C,"string");return g(S)?S:String(S)}},3471:function(a,u,c){var l=c(8182),g=l("toStringTag"),C={};C[g]="z",a.exports=String(C)==="[object z]"},4845:function(a,u,c){var l=c(4696);a.exports=function(g){if(l(g)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return String(g)}},9288:function(a){a.exports=function(u){try{return String(u)}catch{return"Object"}}},2759:function(a){var u=0,c=Math.random();a.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++u+c).toString(36)}},615:function(a,u,c){var l=c(3045);a.exports=l&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},9207:function(a,u,c){var l=c(8182);u.f=l},8182:function(a,u,c){var l=c(8576),g=c(8717),C=c(4500),S=c(2759),_=c(3045),A=c(615),y=g("wks"),d=l.Symbol,v=A?d:d&&d.withoutSetter||S;a.exports=function(m){return(!C(y,m)||!(_||typeof y[m]=="string"))&&(_&&C(d,m)?y[m]=d[m]:y[m]=v("Symbol."+m)),y[m]}},1450:function(a){a.exports=`
  545. \v\f\r                 \u2028\u2029\uFEFF`},4242:function(a,u,c){var l=c(3085),g=c(9341),C=c(4469),S=c(2853),_=c(8711),A=c(774),y=c(273),d=c(3442),v=c(4845),m=function(p,h){var b=this,w=arguments.length>2?arguments[2]:void 0;if(!(b instanceof m))return new m(p,h,w);C&&(b=C(new Error(void 0),g(b))),h!==void 0&&_(b,"message",v(h)),y(b,w);var k=[];return d(p,k.push,{that:k}),_(b,"errors",k),b};m.prototype=S(Error.prototype,{constructor:A(5,m),message:A(5,""),name:A(5,"AggregateError")}),l({global:!0},{AggregateError:m})},9106:function(a,u,c){var l=c(3085),g=c(6192),C=c(4770),S=c(5744),_=c(1795),A=c(4104),y=c(9361),d=c(1321),v=c(242),m=c(8182),f=c(4218),p=m("isConcatSpreadable"),h=9007199254740991,b="Maximum allowed index exceeded",w=f>=51||!g(function(){var N=[];return N[p]=!1,N.concat()[0]!==N}),k=v("concat"),$=function(N){if(!S(N))return!1;var j=N[p];return j!==void 0?!!j:C(N)},E=!w||!k;l({target:"Array",proto:!0,forced:E},{concat:function(j){var z=_(this),V=d(z,0),W=0,H,U,Q,q,ae;for(H=-1,Q=arguments.length;H<Q;H++)if(ae=H===-1?z:arguments[H],$(ae)){if(q=A(ae),W+q>h)throw TypeError(b);for(U=0;U<q;U++,W++)U in ae&&y(V,W,ae[U])}else{if(W>=h)throw TypeError(b);y(V,W++,ae)}return V.length=W,V}})},1710:function(a,u,c){var l=c(3085),g=c(2724),C=c(7423);l({target:"Array",proto:!0},{fill:g}),C("fill")},3436:function(a,u,c){var l=c(3085),g=c(454).filter,C=c(242),S=C("filter");l({target:"Array",proto:!0,forced:!S},{filter:function(A){return g(this,A,arguments.length>1?arguments[1]:void 0)}})},9823:function(a,u,c){var l=c(3085),g=c(7397);l({target:"Array",proto:!0,forced:[].forEach!=g},{forEach:g})},9173:function(a,u,c){var l=c(3085),g=c(841),C=c(9770),S=!C(function(_){Array.from(_)});l({target:"Array",stat:!0,forced:S},{from:g})},2276:function(a,u,c){var l=c(3085),g=c(8180).indexOf,C=c(424),S=[].indexOf,_=!!S&&1/[1].indexOf(1,-0)<0,A=C("indexOf");l({target:"Array",proto:!0,forced:_||!A},{indexOf:function(d){return _?S.apply(this,arguments)||0:g(this,d,arguments.length>1?arguments[1]:void 0)}})},8118:function(a,u,c){var l=c(3085),g=c(4770);l({target:"Array",stat:!0},{isArray:g})},8939:function(a,u,c){var l=c(101),g=c(7423),C=c(7771),S=c(3326),_=c(7218),A="Array Iterator",y=S.set,d=S.getterFor(A);a.exports=_(Array,"Array",function(v,m){y(this,{type:A,target:l(v),index:0,kind:m})},function(){var v=d(this),m=v.target,f=v.kind,p=v.index++;return!m||p>=m.length?(v.target=void 0,{value:void 0,done:!0}):f=="keys"?{value:p,done:!1}:f=="values"?{value:m[p],done:!1}:{value:[p,m[p]],done:!1}},"values"),C.Arguments=C.Array,g("keys"),g("values"),g("entries")},3838:function(a,u,c){var l=c(3085),g=c(454).map,C=c(242),S=C("map");l({target:"Array",proto:!0,forced:!S},{map:function(A){return g(this,A,arguments.length>1?arguments[1]:void 0)}})},5818:function(a,u,c){var l=c(3085),g=c(4770),C=c(2091),S=c(5744),_=c(7739),A=c(4104),y=c(101),d=c(9361),v=c(8182),m=c(242),f=m("slice"),p=v("species"),h=[].slice,b=Math.max;l({target:"Array",proto:!0,forced:!f},{slice:function(k,$){var E=y(this),N=A(E),j=_(k,N),z=_($===void 0?N:$,N),V,W,H;if(g(E)&&(V=E.constructor,C(V)&&(V===Array||g(V.prototype))?V=void 0:S(V)&&(V=V[p],V===null&&(V=void 0)),V===Array||V===void 0))return h.call(E,j,z);for(W=new(V===void 0?Array:V)(b(z-j,0)),H=0;j<z;j++,H++)j in E&&d(W,H,E[j]);return W.length=H,W}})},2178:function(a,u,c){var l=c(3085),g=c(7739),C=c(1941),S=c(4104),_=c(1795),A=c(1321),y=c(9361),d=c(242),v=d("splice"),m=Math.max,f=Math.min,p=9007199254740991,h="Maximum allowed length exceeded";l({target:"Array",proto:!0,forced:!v},{splice:function(w,k){var $=_(this),E=S($),N=g(w,E),j=arguments.length,z,V,W,H,U,Q;if(j===0?z=V=0:j===1?(z=0,V=E-N):(z=j-2,V=f(m(C(k),0),E-N)),E+z-V>p)throw TypeError(h);for(W=A($,V),H=0;H<V;H++)U=N+H,U in $&&y(W,H,$[U]);if(W.length=V,z<V){for(H=N;H<E-V;H++)U=H+V,Q=H+z,U in $?$[Q]=$[U]:delete $[Q];for(H=E;H>E-V+z;H--)delete $[H-1]}else if(z>V)for(H=E-V;H>N;H--)U=H+V-1,Q=H+z-1,U in $?$[Q]=$[U]:delete $[Q];for(H=0;H<z;H++)$[H+N]=arguments[H+2];return $.length=E-V+z,W}})},665:function(a,u,c){var l=c(3085),g=c(6782);l({target:"Function",proto:!0},{bind:g})},8671:function(a,u,c){var l=c(8576),g=c(1284);g(l.JSON,"JSON",!0)},8556:function(){},2666:function(a,u,c){var l=c(3085),g=c(2558);l({target:"Number",stat:!0,forced:Number.parseInt!=g},{parseInt:g})},3113:function(a,u,c){var l=c(3085),g=c(69),C=c(2853);l({target:"Object",stat:!0,sham:!g},{create:C})},297:function(a,u,c){var l=c(3085),g=c(69),C=c(2760);l({target:"Object",stat:!0,forced:!g,sham:!g},{defineProperty:C.f})},9234:function(a,u,c){var l=c(3085),g=c(6192),C=c(1795),S=c(9341),_=c(4635),A=g(function(){S(1)});l({target:"Object",stat:!0,forced:A,sham:!_},{getPrototypeOf:function(d){return S(C(d))}})},2647:function(a,u,c){var l=c(3085),g=c(1795),C=c(7653),S=c(6192),_=S(function(){C(1)});l({target:"Object",stat:!0,forced:_},{keys:function(y){return C(g(y))}})},3222:function(a,u,c){var l=c(3085),g=c(4469);l({target:"Object",stat:!0},{setPrototypeOf:g})},6663:function(){},4859:function(a,u,c){var l=c(3085),g=c(15);l({global:!0,forced:parseFloat!=g},{parseFloat:g})},5706:function(a,u,c){var l=c(3085),g=c(2558);l({global:!0,forced:parseInt!=g},{parseInt:g})},7884:function(a,u,c){var l=c(3085),g=c(6235),C=c(9438),S=c(892),_=c(3442);l({target:"Promise",stat:!0},{allSettled:function(y){var d=this,v=C.f(d),m=v.resolve,f=v.reject,p=S(function(){var h=g(d.resolve),b=[],w=0,k=1;_(y,function($){var E=w++,N=!1;b.push(void 0),k++,h.call(d,$).then(function(j){N||(N=!0,b[E]={status:"fulfilled",value:j},--k||m(b))},function(j){N||(N=!0,b[E]={status:"rejected",reason:j},--k||m(b))})}),--k||m(b)});return p.error&&f(p.value),v.promise}})},8885:function(a,u,c){var l=c(3085),g=c(6235),C=c(150),S=c(9438),_=c(892),A=c(3442),y="No one promise resolved";l({target:"Promise",stat:!0},{any:function(v){var m=this,f=S.f(m),p=f.resolve,h=f.reject,b=_(function(){var w=g(m.resolve),k=[],$=0,E=1,N=!1;A(v,function(j){var z=$++,V=!1;k.push(void 0),E++,w.call(m,j).then(function(W){V||N||(N=!0,p(W))},function(W){V||N||(V=!0,k[z]=W,--E||h(new(C("AggregateError"))(k,y)))})}),--E||h(new(C("AggregateError"))(k,y))});return b.error&&h(b.value),f.promise}})},1868:function(a,u,c){var l=c(3085),g=c(5546),C=c(4471),S=c(6192),_=c(150),A=c(6447),y=c(4743),d=c(9126),v=c(9482),m=!!C&&S(function(){C.prototype.finally.call({then:function(){}},function(){})});if(l({target:"Promise",proto:!0,real:!0,forced:m},{finally:function(p){var h=y(this,_("Promise")),b=A(p);return this.then(b?function(w){return d(h,p()).then(function(){return w})}:p,b?function(w){return d(h,p()).then(function(){throw w})}:p)}}),!g&&A(C)){var f=_("Promise").prototype.finally;C.prototype.finally!==f&&v(C.prototype,"finally",f,{unsafe:!0})}},9021:function(a,u,c){var l=c(3085),g=c(5546),C=c(8576),S=c(150),_=c(4471),A=c(9482),y=c(533),d=c(4469),v=c(1284),m=c(3656),f=c(6235),p=c(6447),h=c(5744),b=c(6961),w=c(9516),k=c(3442),$=c(9770),E=c(4743),N=c(7160).set,j=c(2950),z=c(9126),V=c(3681),W=c(9438),H=c(892),U=c(3326),Q=c(9245),q=c(8182),ae=c(2957),ne=c(224),be=c(4218),te=q("species"),Ie="Promise",$e=U.get,Me=U.set,ge=U.getterFor(Ie),Se=_&&_.prototype,fe=_,pe=Se,je=C.TypeError,Y=C.document,Z=C.process,ee=W.f,ce=ee,xe=!!(Y&&Y.createEvent&&C.dispatchEvent),re=p(C.PromiseRejectionEvent),le="unhandledrejection",ve="rejectionhandled",De=0,Ee=1,we=2,me=1,Ae=2,Fe=!1,Ne,ze,Ue,et,Xe=Q(Ie,function(){var dt=w(fe),ht=dt!==String(fe);if(!ht&&be===66||g&&!pe.finally)return!0;if(be>=51&&/native code/.test(dt))return!1;var $t=new fe(function(kt){kt(1)}),Pt=function(kt){kt(function(){},function(){})},zt=$t.constructor={};return zt[te]=Pt,Fe=$t.then(function(){})instanceof Pt,Fe?!ht&&ae&&!re:!0}),yt=Xe||!$(function(dt){fe.all(dt).catch(function(){})}),Et=function(dt){var ht;return h(dt)&&p(ht=dt.then)?ht:!1},nt=function(dt,ht){if(!dt.notified){dt.notified=!0;var $t=dt.reactions;j(function(){for(var Pt=dt.value,zt=dt.state==Ee,kt=0;$t.length>kt;){var At=$t[kt++],Gt=zt?At.ok:At.fail,Tt=At.resolve,st=At.reject,wn=At.domain,pn,bn,Ji;try{Gt?(zt||(dt.rejection===Ae&&Mt(dt),dt.rejection=me),Gt===!0?pn=Pt:(wn&&wn.enter(),pn=Gt(Pt),wn&&(wn.exit(),Ji=!0)),pn===At.promise?st(je("Promise-chain cycle")):(bn=Et(pn))?bn.call(pn,Tt,st):Tt(pn)):st(Pt)}catch(yi){wn&&!Ji&&wn.exit(),st(yi)}}dt.reactions=[],dt.notified=!1,ht&&!dt.rejection&&bt(dt)})}},St=function(dt,ht,$t){var Pt,zt;xe?(Pt=Y.createEvent("Event"),Pt.promise=ht,Pt.reason=$t,Pt.initEvent(dt,!1,!0),C.dispatchEvent(Pt)):Pt={promise:ht,reason:$t},!re&&(zt=C["on"+dt])?zt(Pt):dt===le&&V("Unhandled promise rejection",$t)},bt=function(dt){N.call(C,function(){var ht=dt.facade,$t=dt.value,Pt=It(dt),zt;if(Pt&&(zt=H(function(){ne?Z.emit("unhandledRejection",$t,ht):St(le,ht,$t)}),dt.rejection=ne||It(dt)?Ae:me,zt.error))throw zt.value})},It=function(dt){return dt.rejection!==me&&!dt.parent},Mt=function(dt){N.call(C,function(){var ht=dt.facade;ne?Z.emit("rejectionHandled",ht):St(ve,ht,dt.value)})},Rt=function(dt,ht,$t){return function(Pt){dt(ht,Pt,$t)}},mn=function(dt,ht,$t){dt.done||(dt.done=!0,$t&&(dt=$t),dt.value=ht,dt.state=we,nt(dt,!0))},xn=function(dt,ht,$t){if(!dt.done){dt.done=!0,$t&&(dt=$t);try{if(dt.facade===ht)throw je("Promise can't be resolved itself");var Pt=Et(ht);Pt?j(function(){var zt={done:!1};try{Pt.call(ht,Rt(xn,zt,dt),Rt(mn,zt,dt))}catch(kt){mn(zt,kt,dt)}}):(dt.value=ht,dt.state=Ee,nt(dt,!1))}catch(zt){mn({done:!1},zt,dt)}}};if(Xe&&(fe=function(ht){b(this,fe,Ie),f(ht),Ne.call(this);var $t=$e(this);try{ht(Rt(xn,$t),Rt(mn,$t))}catch(Pt){mn($t,Pt)}},pe=fe.prototype,Ne=function(ht){Me(this,{type:Ie,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:De,value:void 0})},Ne.prototype=y(pe,{then:function(ht,$t){var Pt=ge(this),zt=ee(E(this,fe));return zt.ok=p(ht)?ht:!0,zt.fail=p($t)&&$t,zt.domain=ne?Z.domain:void 0,Pt.parent=!0,Pt.reactions.push(zt),Pt.state!=De&&nt(Pt,!1),zt.promise},catch:function(dt){return this.then(void 0,dt)}}),ze=function(){var dt=new Ne,ht=$e(dt);this.promise=dt,this.resolve=Rt(xn,ht),this.reject=Rt(mn,ht)},W.f=ee=function(dt){return dt===fe||dt===Ue?new ze(dt):ce(dt)},!g&&p(_)&&Se!==Object.prototype)){et=Se.then,Fe||(A(Se,"then",function(ht,$t){var Pt=this;return new fe(function(zt,kt){et.call(Pt,zt,kt)}).then(ht,$t)},{unsafe:!0}),A(Se,"catch",pe.catch,{unsafe:!0}));try{delete Se.constructor}catch{}d&&d(Se,pe)}l({global:!0,wrap:!0,forced:Xe},{Promise:fe}),v(fe,Ie,!1,!0),m(Ie),Ue=S(Ie),l({target:Ie,stat:!0,forced:Xe},{reject:function(ht){var $t=ee(this);return $t.reject.call(void 0,ht),$t.promise}}),l({target:Ie,stat:!0,forced:g||Xe},{resolve:function(ht){return z(g&&this===Ue?fe:this,ht)}}),l({target:Ie,stat:!0,forced:yt},{all:function(ht){var $t=this,Pt=ee($t),zt=Pt.resolve,kt=Pt.reject,At=H(function(){var Gt=f($t.resolve),Tt=[],st=0,wn=1;k(ht,function(pn){var bn=st++,Ji=!1;Tt.push(void 0),wn++,Gt.call($t,pn).then(function(yi){Ji||(Ji=!0,Tt[bn]=yi,--wn||zt(Tt))},kt)}),--wn||zt(Tt)});return At.error&&kt(At.value),Pt.promise},race:function(ht){var $t=this,Pt=ee($t),zt=Pt.reject,kt=H(function(){var At=f($t.resolve);k(ht,function(Gt){At.call($t,Gt).then(Pt.resolve,zt)})});return kt.error&&zt(kt.value),Pt.promise}})},5397:function(a,u,c){var l=c(3085),g=c(150),C=c(1404),S=c(1138),_=c(5744),A=c(2853),y=c(6782),d=c(6192),v=g("Reflect","construct"),m=d(function(){function h(){}return!(v(function(){},[],h)instanceof h)}),f=!d(function(){v(function(){})}),p=m||f;l({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(b,w){C(b),S(w);var k=arguments.length<3?b:C(arguments[2]);if(f&&!m)return v(b,w,k);if(b==k){switch(w.length){case 0:return new b;case 1:return new b(w[0]);case 2:return new b(w[0],w[1]);case 3:return new b(w[0],w[1],w[2]);case 4:return new b(w[0],w[1],w[2],w[3])}var $=[null];return $.push.apply($,w),new(y.apply(b,$))}var E=k.prototype,N=A(_(E)?E:Object.prototype),j=Function.apply.call(b,N,w);return _(j)?j:N}})},1367:function(){},5454:function(a,u,c){var l=c(863).charAt,g=c(4845),C=c(3326),S=c(7218),_="String Iterator",A=C.set,y=C.getterFor(_);S(String,"String",function(d){A(this,{type:_,string:g(d),index:0})},function(){var v=y(this),m=v.string,f=v.index,p;return f>=m.length?{value:void 0,done:!0}:(p=l(m,f),v.index+=p.length,{value:p,done:!1})})},957:function(a,u,c){var l=c(3085),g=c(4277).trim,C=c(6815);l({target:"String",proto:!0,forced:C("trim")},{trim:function(){return g(this)}})},9781:function(a,u,c){var l=c(1488);l("asyncIterator")},492:function(){},6681:function(a,u,c){var l=c(1488);l("hasInstance")},9594:function(a,u,c){var l=c(1488);l("isConcatSpreadable")},3665:function(a,u,c){var l=c(1488);l("iterator")},6187:function(a,u,c){var l=c(3085),g=c(8576),C=c(150),S=c(5546),_=c(69),A=c(3045),y=c(6192),d=c(4500),v=c(4770),m=c(6447),f=c(5744),p=c(3236),h=c(1138),b=c(1795),w=c(101),k=c(77),$=c(4845),E=c(774),N=c(2853),j=c(7653),z=c(2092),V=c(4052),W=c(4750),H=c(5141),U=c(2760),Q=c(6007),q=c(9482),ae=c(8717),ne=c(9766),be=c(4535),te=c(2759),Ie=c(8182),$e=c(9207),Me=c(1488),ge=c(1284),Se=c(3326),fe=c(454).forEach,pe=ne("hidden"),je="Symbol",Y="prototype",Z=Ie("toPrimitive"),ee=Se.set,ce=Se.getterFor(je),xe=Object[Y],re=g.Symbol,le=C("JSON","stringify"),ve=H.f,De=U.f,Ee=V.f,we=Q.f,me=ae("symbols"),Ae=ae("op-symbols"),Fe=ae("string-to-symbol-registry"),Ne=ae("symbol-to-string-registry"),ze=ae("wks"),Ue=g.QObject,et=!Ue||!Ue[Y]||!Ue[Y].findChild,Xe=_&&y(function(){return N(De({},"a",{get:function(){return De(this,"a",{value:7}).a}})).a!=7})?function(dt,ht,$t){var Pt=ve(xe,ht);Pt&&delete xe[ht],De(dt,ht,$t),Pt&&dt!==xe&&De(xe,ht,Pt)}:De,yt=function(dt,ht){var $t=me[dt]=N(re[Y]);return ee($t,{type:je,tag:dt,description:ht}),_||($t.description=ht),$t},Et=function(ht,$t,Pt){ht===xe&&Et(Ae,$t,Pt),h(ht);var zt=k($t);return h(Pt),d(me,zt)?(Pt.enumerable?(d(ht,pe)&&ht[pe][zt]&&(ht[pe][zt]=!1),Pt=N(Pt,{enumerable:E(0,!1)})):(d(ht,pe)||De(ht,pe,E(1,{})),ht[pe][zt]=!0),Xe(ht,zt,Pt)):De(ht,zt,Pt)},nt=function(ht,$t){h(ht);var Pt=w($t),zt=j(Pt).concat(Rt(Pt));return fe(zt,function(kt){(!_||bt.call(Pt,kt))&&Et(ht,kt,Pt[kt])}),ht},St=function(ht,$t){return $t===void 0?N(ht):nt(N(ht),$t)},bt=function(ht){var $t=k(ht),Pt=we.call(this,$t);return this===xe&&d(me,$t)&&!d(Ae,$t)?!1:Pt||!d(this,$t)||!d(me,$t)||d(this,pe)&&this[pe][$t]?Pt:!0},It=function(ht,$t){var Pt=w(ht),zt=k($t);if(!(Pt===xe&&d(me,zt)&&!d(Ae,zt))){var kt=ve(Pt,zt);return kt&&d(me,zt)&&!(d(Pt,pe)&&Pt[pe][zt])&&(kt.enumerable=!0),kt}},Mt=function(ht){var $t=Ee(w(ht)),Pt=[];return fe($t,function(zt){!d(me,zt)&&!d(be,zt)&&Pt.push(zt)}),Pt},Rt=function(ht){var $t=ht===xe,Pt=Ee($t?Ae:w(ht)),zt=[];return fe(Pt,function(kt){d(me,kt)&&(!$t||d(xe,kt))&&zt.push(me[kt])}),zt};if(A||(re=function(){if(this instanceof re)throw TypeError("Symbol is not a constructor");var ht=!arguments.length||arguments[0]===void 0?void 0:$(arguments[0]),$t=te(ht),Pt=function(zt){this===xe&&Pt.call(Ae,zt),d(this,pe)&&d(this[pe],$t)&&(this[pe][$t]=!1),Xe(this,$t,E(1,zt))};return _&&et&&Xe(xe,$t,{configurable:!0,set:Pt}),yt($t,ht)},q(re[Y],"toString",function(){return ce(this).tag}),q(re,"withoutSetter",function(dt){return yt(te(dt),dt)}),Q.f=bt,U.f=Et,H.f=It,z.f=V.f=Mt,W.f=Rt,$e.f=function(dt){return yt(Ie(dt),dt)},_&&(De(re[Y],"description",{configurable:!0,get:function(){return ce(this).description}}),S||q(xe,"propertyIsEnumerable",bt,{unsafe:!0}))),l({global:!0,wrap:!0,forced:!A,sham:!A},{Symbol:re}),fe(j(ze),function(dt){Me(dt)}),l({target:je,stat:!0,forced:!A},{for:function(dt){var ht=$(dt);if(d(Fe,ht))return Fe[ht];var $t=re(ht);return Fe[ht]=$t,Ne[$t]=ht,$t},keyFor:function(ht){if(!p(ht))throw TypeError(ht+" is not a symbol");if(d(Ne,ht))return Ne[ht]},useSetter:function(){et=!0},useSimple:function(){et=!1}}),l({target:"Object",stat:!0,forced:!A,sham:!_},{create:St,defineProperty:Et,defineProperties:nt,getOwnPropertyDescriptor:It}),l({target:"Object",stat:!0,forced:!A},{getOwnPropertyNames:Mt,getOwnPropertySymbols:Rt}),l({target:"Object",stat:!0,forced:y(function(){W.f(1)})},{getOwnPropertySymbols:function(ht){return W.f(b(ht))}}),le){var mn=!A||y(function(){var dt=re();return le([dt])!="[null]"||le({a:dt})!="{}"||le(Object(dt))!="{}"});l({target:"JSON",stat:!0,forced:mn},{stringify:function(ht,$t,Pt){for(var zt=[ht],kt=1,At;arguments.length>kt;)zt.push(arguments[kt++]);if(At=$t,!(!f($t)&&ht===void 0||p(ht)))return v($t)||($t=function(Gt,Tt){if(m(At)&&(Tt=At.call(this,Gt,Tt)),!p(Tt))return Tt}),zt[1]=$t,le.apply(null,zt)}})}if(!re[Y][Z]){var xn=re[Y].valueOf;q(re[Y],Z,function(){return xn.apply(this,arguments)})}ge(re,je),be[pe]=!0},1250:function(a,u,c){var l=c(1488);l("matchAll")},9017:function(a,u,c){var l=c(1488);l("match")},9786:function(a,u,c){var l=c(1488);l("replace")},503:function(a,u,c){var l=c(1488);l("search")},6565:function(a,u,c){var l=c(1488);l("species")},9322:function(a,u,c){var l=c(1488);l("split")},3610:function(a,u,c){var l=c(1488);l("toPrimitive")},6886:function(a,u,c){var l=c(1488);l("toStringTag")},3514:function(a,u,c){var l=c(1488);l("unscopables")},177:function(a,u,c){var l=c(1488);l("asyncDispose")},9031:function(a,u,c){var l=c(1488);l("dispose")},6658:function(a,u,c){var l=c(1488);l("matcher")},1875:function(a,u,c){var l=c(1488);l("metadata")},8658:function(a,u,c){var l=c(1488);l("observable")},4592:function(a,u,c){var l=c(1488);l("patternMatch")},6680:function(a,u,c){var l=c(1488);l("replaceAll")},162:function(a,u,c){c(8939);var l=c(7365),g=c(8576),C=c(4696),S=c(8711),_=c(7771),A=c(8182),y=A("toStringTag");for(var d in l){var v=g[d],m=v&&v.prototype;m&&C(m)!==y&&S(m,y,d),_[d]=_.Array}},2906:function(a,u,c){var l=c(3085),g=c(8576),C=c(6447),S=c(8989),_=[].slice,A=/MSIE .\./.test(S),y=function(d){return function(v,m){var f=arguments.length>2,p=f?_.call(arguments,2):void 0;return d(f?function(){(C(v)?v:Function(v)).apply(this,p)}:v,m)}};l({global:!0,bind:!0,forced:A},{setTimeout:y(g.setTimeout),setInterval:y(g.setInterval)})},9336:function(a,u,c){c(8939);var l=c(3085),g=c(150),C=c(4551),S=c(9482),_=c(533),A=c(1284),y=c(5148),d=c(3326),v=c(6961),m=c(6447),f=c(4500),p=c(8043),h=c(4696),b=c(1138),w=c(5744),k=c(4845),$=c(2853),E=c(774),N=c(1669),j=c(8703),z=c(8182),V=g("fetch"),W=g("Request"),H=W&&W.prototype,U=g("Headers"),Q=z("iterator"),q="URLSearchParams",ae=q+"Iterator",ne=d.set,be=d.getterFor(q),te=d.getterFor(ae),Ie=/\+/g,$e=Array(4),Me=function(Ee){return $e[Ee-1]||($e[Ee-1]=RegExp("((?:%[\\da-f]{2}){"+Ee+"})","gi"))},ge=function(Ee){try{return decodeURIComponent(Ee)}catch{return Ee}},Se=function(Ee){var we=Ee.replace(Ie," "),me=4;try{return decodeURIComponent(we)}catch{for(;me;)we=we.replace(Me(me--),ge);return we}},fe=/[!'()~]|%20/g,pe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},je=function(Ee){return pe[Ee]},Y=function(Ee){return encodeURIComponent(Ee).replace(fe,je)},Z=function(Ee,we){if(we)for(var me=we.split("&"),Ae=0,Fe,Ne;Ae<me.length;)Fe=me[Ae++],Fe.length&&(Ne=Fe.split("="),Ee.push({key:Se(Ne.shift()),value:Se(Ne.join("="))}))},ee=function(Ee){this.entries.length=0,Z(this.entries,Ee)},ce=function(Ee,we){if(Ee<we)throw TypeError("Not enough arguments")},xe=y(function(we,me){ne(this,{type:ae,iterator:N(be(we).entries),kind:me})},"Iterator",function(){var we=te(this),me=we.kind,Ae=we.iterator.next(),Fe=Ae.value;return Ae.done||(Ae.value=me==="keys"?Fe.key:me==="values"?Fe.value:[Fe.key,Fe.value]),Ae}),re=function(){v(this,re,q);var we=arguments.length>0?arguments[0]:void 0,me=this,Ae=[],Fe,Ne,ze,Ue,et,Xe,yt,Et,nt;if(ne(me,{type:q,entries:Ae,updateURL:function(){},updateSearchParams:ee}),we!==void 0)if(w(we))if(Fe=j(we),Fe)for(Ne=N(we,Fe),ze=Ne.next;!(Ue=ze.call(Ne)).done;){if(et=N(b(Ue.value)),Xe=et.next,(yt=Xe.call(et)).done||(Et=Xe.call(et)).done||!Xe.call(et).done)throw TypeError("Expected sequence with length 2");Ae.push({key:k(yt.value),value:k(Et.value)})}else for(nt in we)f(we,nt)&&Ae.push({key:nt,value:k(we[nt])});else Z(Ae,typeof we=="string"?we.charAt(0)==="?"?we.slice(1):we:k(we))},le=re.prototype;if(_(le,{append:function(we,me){ce(arguments.length,2);var Ae=be(this);Ae.entries.push({key:k(we),value:k(me)}),Ae.updateURL()},delete:function(Ee){ce(arguments.length,1);for(var we=be(this),me=we.entries,Ae=k(Ee),Fe=0;Fe<me.length;)me[Fe].key===Ae?me.splice(Fe,1):Fe++;we.updateURL()},get:function(we){ce(arguments.length,1);for(var me=be(this).entries,Ae=k(we),Fe=0;Fe<me.length;Fe++)if(me[Fe].key===Ae)return me[Fe].value;return null},getAll:function(we){ce(arguments.length,1);for(var me=be(this).entries,Ae=k(we),Fe=[],Ne=0;Ne<me.length;Ne++)me[Ne].key===Ae&&Fe.push(me[Ne].value);return Fe},has:function(we){ce(arguments.length,1);for(var me=be(this).entries,Ae=k(we),Fe=0;Fe<me.length;)if(me[Fe++].key===Ae)return!0;return!1},set:function(we,me){ce(arguments.length,1);for(var Ae=be(this),Fe=Ae.entries,Ne=!1,ze=k(we),Ue=k(me),et=0,Xe;et<Fe.length;et++)Xe=Fe[et],Xe.key===ze&&(Ne?Fe.splice(et--,1):(Ne=!0,Xe.value=Ue));Ne||Fe.push({key:ze,value:Ue}),Ae.updateURL()},sort:function(){var we=be(this),me=we.entries,Ae=me.slice(),Fe,Ne,ze;for(me.length=0,ze=0;ze<Ae.length;ze++){for(Fe=Ae[ze],Ne=0;Ne<ze;Ne++)if(me[Ne].key>Fe.key){me.splice(Ne,0,Fe);break}Ne===ze&&me.push(Fe)}we.updateURL()},forEach:function(we){for(var me=be(this).entries,Ae=p(we,arguments.length>1?arguments[1]:void 0,3),Fe=0,Ne;Fe<me.length;)Ne=me[Fe++],Ae(Ne.value,Ne.key,this)},keys:function(){return new xe(this,"keys")},values:function(){return new xe(this,"values")},entries:function(){return new xe(this,"entries")}},{enumerable:!0}),S(le,Q,le.entries,{name:"entries"}),S(le,"toString",function(){for(var we=be(this).entries,me=[],Ae=0,Fe;Ae<we.length;)Fe=we[Ae++],me.push(Y(Fe.key)+"="+Y(Fe.value));return me.join("&")},{enumerable:!0}),A(re,q),l({global:!0,forced:!C},{URLSearchParams:re}),!C&&m(U)){var ve=function(Ee){if(w(Ee)){var we=Ee.body,me;if(h(we)===q)return me=Ee.headers?new U(Ee.headers):new U,me.has("content-type")||me.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),$(Ee,{body:E(0,String(we)),headers:E(0,me)})}return Ee};if(m(V)&&l({global:!0,enumerable:!0,forced:!0},{fetch:function(we){return V(we,arguments.length>1?ve(arguments[1]):{})}}),m(W)){var De=function(we){return v(this,De,"Request"),new W(we,arguments.length>1?ve(arguments[1]):{})};H.constructor=De,De.prototype=H,l({global:!0,forced:!0},{Request:De})}}a.exports={URLSearchParams:re,getState:be}},4948:function(a,u,c){c(5454);var l=c(3085),g=c(69),C=c(4551),S=c(8576),_=c(1187),A=c(9482),y=c(6961),d=c(4500),v=c(2503),m=c(841),f=c(863).codeAt,p=c(7977),h=c(4845),b=c(1284),w=c(9336),k=c(3326),$=S.URL,E=w.URLSearchParams,N=w.getState,j=k.set,z=k.getterFor("URL"),V=Math.floor,W=Math.pow,H="Invalid authority",U="Invalid scheme",Q="Invalid host",q="Invalid port",ae=/[A-Za-z]/,ne=/[\d+-.A-Za-z]/,be=/\d/,te=/^0x/i,Ie=/^[0-7]+$/,$e=/^\d+$/,Me=/^[\dA-Fa-f]+$/,ge=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Se=/[\0\t\n\r #/:<>?@[\\\]^|]/,fe=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,pe=/[\t\n\r]/g,je,Y=function(Be,rt){var at,mt,wt;if(rt.charAt(0)=="["){if(rt.charAt(rt.length-1)!="]"||(at=ee(rt.slice(1,-1)),!at))return Q;Be.host=at}else if(me(Be)){if(rt=p(rt),ge.test(rt)||(at=Z(rt),at===null))return Q;Be.host=at}else{if(Se.test(rt))return Q;for(at="",mt=m(rt),wt=0;wt<mt.length;wt++)at+=Ee(mt[wt],re);Be.host=at}},Z=function(Be){var rt=Be.split("."),at,mt,wt,Qt,Zt,Ln,$n;if(rt.length&&rt[rt.length-1]==""&&rt.pop(),at=rt.length,at>4)return Be;for(mt=[],wt=0;wt<at;wt++){if(Qt=rt[wt],Qt=="")return Be;if(Zt=10,Qt.length>1&&Qt.charAt(0)=="0"&&(Zt=te.test(Qt)?16:8,Qt=Qt.slice(Zt==8?1:2)),Qt==="")Ln=0;else{if(!(Zt==10?$e:Zt==8?Ie:Me).test(Qt))return Be;Ln=parseInt(Qt,Zt)}mt.push(Ln)}for(wt=0;wt<at;wt++)if(Ln=mt[wt],wt==at-1){if(Ln>=W(256,5-at))return null}else if(Ln>255)return null;for($n=mt.pop(),wt=0;wt<mt.length;wt++)$n+=mt[wt]*W(256,3-wt);return $n},ee=function(Be){var rt=[0,0,0,0,0,0,0,0],at=0,mt=null,wt=0,Qt,Zt,Ln,$n,ci,Hi,_t,Ci=function(){return Be.charAt(wt)};if(Ci()==":"){if(Be.charAt(1)!=":")return;wt+=2,at++,mt=at}for(;Ci();){if(at==8)return;if(Ci()==":"){if(mt!==null)return;wt++,at++,mt=at;continue}for(Qt=Zt=0;Zt<4&&Me.test(Ci());)Qt=Qt*16+parseInt(Ci(),16),wt++,Zt++;if(Ci()=="."){if(Zt==0||(wt-=Zt,at>6))return;for(Ln=0;Ci();){if($n=null,Ln>0)if(Ci()=="."&&Ln<4)wt++;else return;if(!be.test(Ci()))return;for(;be.test(Ci());){if(ci=parseInt(Ci(),10),$n===null)$n=ci;else{if($n==0)return;$n=$n*10+ci}if($n>255)return;wt++}rt[at]=rt[at]*256+$n,Ln++,(Ln==2||Ln==4)&&at++}if(Ln!=4)return;break}else if(Ci()==":"){if(wt++,!Ci())return}else if(Ci())return;rt[at++]=Qt}if(mt!==null)for(Hi=at-mt,at=7;at!=0&&Hi>0;)_t=rt[at],rt[at--]=rt[mt+Hi-1],rt[mt+--Hi]=_t;else if(at!=8)return;return rt},ce=function(Be){for(var rt=null,at=1,mt=null,wt=0,Qt=0;Qt<8;Qt++)Be[Qt]!==0?(wt>at&&(rt=mt,at=wt),mt=null,wt=0):(mt===null&&(mt=Qt),++wt);return wt>at&&(rt=mt,at=wt),rt},xe=function(Be){var rt,at,mt,wt;if(typeof Be=="number"){for(rt=[],at=0;at<4;at++)rt.unshift(Be%256),Be=V(Be/256);return rt.join(".")}else if(typeof Be=="object"){for(rt="",mt=ce(Be),at=0;at<8;at++)wt&&Be[at]===0||(wt&&(wt=!1),mt===at?(rt+=at?":":"::",wt=!0):(rt+=Be[at].toString(16),at<7&&(rt+=":")));return"["+rt+"]"}return Be},re={},le=v({},re,{" ":1,'"':1,"<":1,">":1,"`":1}),ve=v({},le,{"#":1,"?":1,"{":1,"}":1}),De=v({},ve,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Ee=function(Be,rt){var at=f(Be,0);return at>32&&at<127&&!d(rt,Be)?Be:encodeURIComponent(Be)},we={ftp:21,file:null,http:80,https:443,ws:80,wss:443},me=function(Be){return d(we,Be.scheme)},Ae=function(Be){return Be.username!=""||Be.password!=""},Fe=function(Be){return!Be.host||Be.cannotBeABaseURL||Be.scheme=="file"},Ne=function(Be,rt){var at;return Be.length==2&&ae.test(Be.charAt(0))&&((at=Be.charAt(1))==":"||!rt&&at=="|")},ze=function(Be){var rt;return Be.length>1&&Ne(Be.slice(0,2))&&(Be.length==2||(rt=Be.charAt(2))==="/"||rt==="\\"||rt==="?"||rt==="#")},Ue=function(Be){var rt=Be.path,at=rt.length;at&&(Be.scheme!="file"||at!=1||!Ne(rt[0],!0))&&rt.pop()},et=function(Be){return Be==="."||Be.toLowerCase()==="%2e"},Xe=function(Be){return Be=Be.toLowerCase(),Be===".."||Be==="%2e."||Be===".%2e"||Be==="%2e%2e"},yt={},Et={},nt={},St={},bt={},It={},Mt={},Rt={},mn={},xn={},dt={},ht={},$t={},Pt={},zt={},kt={},At={},Gt={},Tt={},st={},wn={},pn=function(Be,rt,at,mt){var wt=at||yt,Qt=0,Zt="",Ln=!1,$n=!1,ci=!1,Hi,_t,Ci,fo;for(at||(Be.scheme="",Be.username="",Be.password="",Be.host=null,Be.port=null,Be.path=[],Be.query=null,Be.fragment=null,Be.cannotBeABaseURL=!1,rt=rt.replace(fe,"")),rt=rt.replace(pe,""),Hi=m(rt);Qt<=Hi.length;){switch(_t=Hi[Qt],wt){case yt:if(_t&&ae.test(_t))Zt+=_t.toLowerCase(),wt=Et;else{if(at)return U;wt=nt;continue}break;case Et:if(_t&&(ne.test(_t)||_t=="+"||_t=="-"||_t=="."))Zt+=_t.toLowerCase();else if(_t==":"){if(at&&(me(Be)!=d(we,Zt)||Zt=="file"&&(Ae(Be)||Be.port!==null)||Be.scheme=="file"&&!Be.host))return;if(Be.scheme=Zt,at){me(Be)&&we[Be.scheme]==Be.port&&(Be.port=null);return}Zt="",Be.scheme=="file"?wt=Pt:me(Be)&&mt&&mt.scheme==Be.scheme?wt=St:me(Be)?wt=Rt:Hi[Qt+1]=="/"?(wt=bt,Qt++):(Be.cannotBeABaseURL=!0,Be.path.push(""),wt=Tt)}else{if(at)return U;Zt="",wt=nt,Qt=0;continue}break;case nt:if(!mt||mt.cannotBeABaseURL&&_t!="#")return U;if(mt.cannotBeABaseURL&&_t=="#"){Be.scheme=mt.scheme,Be.path=mt.path.slice(),Be.query=mt.query,Be.fragment="",Be.cannotBeABaseURL=!0,wt=wn;break}wt=mt.scheme=="file"?Pt:It;continue;case St:if(_t=="/"&&Hi[Qt+1]=="/")wt=mn,Qt++;else{wt=It;continue}break;case bt:if(_t=="/"){wt=xn;break}else{wt=Gt;continue}case It:if(Be.scheme=mt.scheme,_t==je)Be.username=mt.username,Be.password=mt.password,Be.host=mt.host,Be.port=mt.port,Be.path=mt.path.slice(),Be.query=mt.query;else if(_t=="/"||_t=="\\"&&me(Be))wt=Mt;else if(_t=="?")Be.username=mt.username,Be.password=mt.password,Be.host=mt.host,Be.port=mt.port,Be.path=mt.path.slice(),Be.query="",wt=st;else if(_t=="#")Be.username=mt.username,Be.password=mt.password,Be.host=mt.host,Be.port=mt.port,Be.path=mt.path.slice(),Be.query=mt.query,Be.fragment="",wt=wn;else{Be.username=mt.username,Be.password=mt.password,Be.host=mt.host,Be.port=mt.port,Be.path=mt.path.slice(),Be.path.pop(),wt=Gt;continue}break;case Mt:if(me(Be)&&(_t=="/"||_t=="\\"))wt=mn;else if(_t=="/")wt=xn;else{Be.username=mt.username,Be.password=mt.password,Be.host=mt.host,Be.port=mt.port,wt=Gt;continue}break;case Rt:if(wt=mn,_t!="/"||Zt.charAt(Qt+1)!="/")continue;Qt++;break;case mn:if(_t!="/"&&_t!="\\"){wt=xn;continue}break;case xn:if(_t=="@"){Ln&&(Zt="%40"+Zt),Ln=!0,Ci=m(Zt);for(var fu=0;fu<Ci.length;fu++){var Si=Ci[fu];if(Si==":"&&!ci){ci=!0;continue}var yf=Ee(Si,De);ci?Be.password+=yf:Be.username+=yf}Zt=""}else if(_t==je||_t=="/"||_t=="?"||_t=="#"||_t=="\\"&&me(Be)){if(Ln&&Zt=="")return H;Qt-=m(Zt).length+1,Zt="",wt=dt}else Zt+=_t;break;case dt:case ht:if(at&&Be.scheme=="file"){wt=kt;continue}else if(_t==":"&&!$n){if(Zt=="")return Q;if(fo=Y(Be,Zt),fo)return fo;if(Zt="",wt=$t,at==ht)return}else if(_t==je||_t=="/"||_t=="?"||_t=="#"||_t=="\\"&&me(Be)){if(me(Be)&&Zt=="")return Q;if(at&&Zt==""&&(Ae(Be)||Be.port!==null))return;if(fo=Y(Be,Zt),fo)return fo;if(Zt="",wt=At,at)return;continue}else _t=="["?$n=!0:_t=="]"&&($n=!1),Zt+=_t;break;case $t:if(be.test(_t))Zt+=_t;else if(_t==je||_t=="/"||_t=="?"||_t=="#"||_t=="\\"&&me(Be)||at){if(Zt!=""){var Li=parseInt(Zt,10);if(Li>65535)return q;Be.port=me(Be)&&Li===we[Be.scheme]?null:Li,Zt=""}if(at)return;wt=At;continue}else return q;break;case Pt:if(Be.scheme="file",_t=="/"||_t=="\\")wt=zt;else if(mt&&mt.scheme=="file")if(_t==je)Be.host=mt.host,Be.path=mt.path.slice(),Be.query=mt.query;else if(_t=="?")Be.host=mt.host,Be.path=mt.path.slice(),Be.query="",wt=st;else if(_t=="#")Be.host=mt.host,Be.path=mt.path.slice(),Be.query=mt.query,Be.fragment="",wt=wn;else{ze(Hi.slice(Qt).join(""))||(Be.host=mt.host,Be.path=mt.path.slice(),Ue(Be)),wt=Gt;continue}else{wt=Gt;continue}break;case zt:if(_t=="/"||_t=="\\"){wt=kt;break}mt&&mt.scheme=="file"&&!ze(Hi.slice(Qt).join(""))&&(Ne(mt.path[0],!0)?Be.path.push(mt.path[0]):Be.host=mt.host),wt=Gt;continue;case kt:if(_t==je||_t=="/"||_t=="\\"||_t=="?"||_t=="#"){if(!at&&Ne(Zt))wt=Gt;else if(Zt==""){if(Be.host="",at)return;wt=At}else{if(fo=Y(Be,Zt),fo)return fo;if(Be.host=="localhost"&&(Be.host=""),at)return;Zt="",wt=At}continue}else Zt+=_t;break;case At:if(me(Be)){if(wt=Gt,_t!="/"&&_t!="\\")continue}else if(!at&&_t=="?")Be.query="",wt=st;else if(!at&&_t=="#")Be.fragment="",wt=wn;else if(_t!=je&&(wt=Gt,_t!="/"))continue;break;case Gt:if(_t==je||_t=="/"||_t=="\\"&&me(Be)||!at&&(_t=="?"||_t=="#")){if(Xe(Zt)?(Ue(Be),_t!="/"&&!(_t=="\\"&&me(Be))&&Be.path.push("")):et(Zt)?_t!="/"&&!(_t=="\\"&&me(Be))&&Be.path.push(""):(Be.scheme=="file"&&!Be.path.length&&Ne(Zt)&&(Be.host&&(Be.host=""),Zt=Zt.charAt(0)+":"),Be.path.push(Zt)),Zt="",Be.scheme=="file"&&(_t==je||_t=="?"||_t=="#"))for(;Be.path.length>1&&Be.path[0]==="";)Be.path.shift();_t=="?"?(Be.query="",wt=st):_t=="#"&&(Be.fragment="",wt=wn)}else Zt+=Ee(_t,ve);break;case Tt:_t=="?"?(Be.query="",wt=st):_t=="#"?(Be.fragment="",wt=wn):_t!=je&&(Be.path[0]+=Ee(_t,re));break;case st:!at&&_t=="#"?(Be.fragment="",wt=wn):_t!=je&&(_t=="'"&&me(Be)?Be.query+="%27":_t=="#"?Be.query+="%23":Be.query+=Ee(_t,re));break;case wn:_t!=je&&(Be.fragment+=Ee(_t,le));break}Qt++}},bn=function(rt){var at=y(this,bn,"URL"),mt=arguments.length>1?arguments[1]:void 0,wt=h(rt),Qt=j(at,{type:"URL"}),Zt,Ln;if(mt!==void 0){if(mt instanceof bn)Zt=z(mt);else if(Ln=pn(Zt={},h(mt)),Ln)throw TypeError(Ln)}if(Ln=pn(Qt,wt,null,Zt),Ln)throw TypeError(Ln);var $n=Qt.searchParams=new E,ci=N($n);ci.updateSearchParams(Qt.query),ci.updateURL=function(){Qt.query=String($n)||null},g||(at.href=yi.call(at),at.origin=Zn.call(at),at.protocol=Vi.call(at),at.username=kn.call(at),at.password=Go.call(at),at.host=zl.call(at),at.hostname=Rl.call(at),at.port=Oa.call(at),at.pathname=bi.call(at),at.search=Dr.call(at),at.searchParams=hs.call(at),at.hash=uo.call(at))},Ji=bn.prototype,yi=function(){var Be=z(this),rt=Be.scheme,at=Be.username,mt=Be.password,wt=Be.host,Qt=Be.port,Zt=Be.path,Ln=Be.query,$n=Be.fragment,ci=rt+":";return wt!==null?(ci+="//",Ae(Be)&&(ci+=at+(mt?":"+mt:"")+"@"),ci+=xe(wt),Qt!==null&&(ci+=":"+Qt)):rt=="file"&&(ci+="//"),ci+=Be.cannotBeABaseURL?Zt[0]:Zt.length?"/"+Zt.join("/"):"",Ln!==null&&(ci+="?"+Ln),$n!==null&&(ci+="#"+$n),ci},Zn=function(){var Be=z(this),rt=Be.scheme,at=Be.port;if(rt=="blob")try{return new bn(rt.path[0]).origin}catch{return"null"}return rt=="file"||!me(Be)?"null":rt+"://"+xe(Be.host)+(at!==null?":"+at:"")},Vi=function(){return z(this).scheme+":"},kn=function(){return z(this).username},Go=function(){return z(this).password},zl=function(){var Be=z(this),rt=Be.host,at=Be.port;return rt===null?"":at===null?xe(rt):xe(rt)+":"+at},Rl=function(){var Be=z(this).host;return Be===null?"":xe(Be)},Oa=function(){var Be=z(this).port;return Be===null?"":String(Be)},bi=function(){var Be=z(this),rt=Be.path;return Be.cannotBeABaseURL?rt[0]:rt.length?"/"+rt.join("/"):""},Dr=function(){var Be=z(this).query;return Be?"?"+Be:""},hs=function(){return z(this).searchParams},uo=function(){var Be=z(this).fragment;return Be?"#"+Be:""},hi=function(Be,rt){return{get:Be,set:rt,configurable:!0,enumerable:!0}};if(g&&_(Ji,{href:hi(yi,function(Be){var rt=z(this),at=h(Be),mt=pn(rt,at);if(mt)throw TypeError(mt);N(rt.searchParams).updateSearchParams(rt.query)}),origin:hi(Zn),protocol:hi(Vi,function(Be){var rt=z(this);pn(rt,h(Be)+":",yt)}),username:hi(kn,function(Be){var rt=z(this),at=m(h(Be));if(!Fe(rt)){rt.username="";for(var mt=0;mt<at.length;mt++)rt.username+=Ee(at[mt],De)}}),password:hi(Go,function(Be){var rt=z(this),at=m(h(Be));if(!Fe(rt)){rt.password="";for(var mt=0;mt<at.length;mt++)rt.password+=Ee(at[mt],De)}}),host:hi(zl,function(Be){var rt=z(this);rt.cannotBeABaseURL||pn(rt,h(Be),dt)}),hostname:hi(Rl,function(Be){var rt=z(this);rt.cannotBeABaseURL||pn(rt,h(Be),ht)}),port:hi(Oa,function(Be){var rt=z(this);Fe(rt)||(Be=h(Be),Be==""?rt.port=null:pn(rt,Be,$t))}),pathname:hi(bi,function(Be){var rt=z(this);rt.cannotBeABaseURL||(rt.path=[],pn(rt,h(Be),At))}),search:hi(Dr,function(Be){var rt=z(this);Be=h(Be),Be==""?rt.query=null:(Be.charAt(0)=="?"&&(Be=Be.slice(1)),rt.query="",pn(rt,Be,st)),N(rt.searchParams).updateSearchParams(rt.query)}),searchParams:hi(hs),hash:hi(uo,function(Be){var rt=z(this);if(Be=h(Be),Be==""){rt.fragment=null;return}Be.charAt(0)=="#"&&(Be=Be.slice(1)),rt.fragment="",pn(rt,Be,wn)})}),A(Ji,"toJSON",function(){return yi.call(this)},{enumerable:!0}),A(Ji,"toString",function(){return yi.call(this)},{enumerable:!0}),$){var xt=$.createObjectURL,Ht=$.revokeObjectURL;xt&&A(bn,"createObjectURL",function(rt){return xt.apply($,arguments)}),Ht&&A(bn,"revokeObjectURL",function(rt){return Ht.apply($,arguments)})}b(bn,"URL"),l({global:!0,forced:!C,sham:!g},{URL:bn})},9801:function(){},3822:function(a,u,c){var l=c(2221);a.exports=l},1434:function(a,u,c){var l=c(5078);a.exports=l},6899:function(a,u,c){var l=c(98);a.exports=l},7710:function(a,u,c){var l=c(5739);c(162),a.exports=l},4486:function(a,u,c){var l=c(278);a.exports=l},4877:function(a,u,c){var l=c(1484);a.exports=l},7178:function(a,u,c){var l=c(7731);a.exports=l},5603:function(a,u,c){var l=c(3669);a.exports=l},1206:function(a,u,c){c(162);var l=c(6899),g=c(4696),C=Array.prototype,S={DOMTokenList:!0,NodeList:!0};a.exports=function(_){var A=_.forEach;return _===C||_ instanceof Array&&A===C.forEach||S.hasOwnProperty(g(_))?l:A}},6174:function(a,u,c){var l=c(2604);a.exports=l},57:function(a,u,c){var l=c(263);a.exports=l},4741:function(a,u,c){var l=c(7663);a.exports=l},8368:function(a,u,c){var l=c(5063);a.exports=l},3739:function(a,u,c){var l=c(6813);a.exports=l},172:function(a,u,c){var l=c(6285);a.exports=l},4963:function(a,u,c){var l=c(3213);a.exports=l},7820:function(a,u,c){var l=c(3512);a.exports=l},8980:function(a,u,c){var l=c(8168);a.exports=l},5636:function(a,u,c){var l=c(8651);a.exports=l},6672:function(a,u,c){var l=c(3083);a.exports=l},5059:function(a,u,c){var l=c(2987);a.exports=l},3969:function(a,u,c){var l=c(2239);a.exports=l},6618:function(a,u,c){var l=c(3154);c(162),a.exports=l},5279:function(a,u,c){var l=c(6577);a.exports=l},9562:function(a,u,c){c(2906);var l=c(7545);a.exports=l.setTimeout},2285:function(a,u,c){var l=c(5008);c(162),a.exports=l},8535:function(a,u,c){var l=c(994);c(162),a.exports=l},652:function(a,u,c){var l=c(5668);a.exports=l},5668:function(a,u,c){c(4948),c(9801),c(9336);var l=c(7545);a.exports=l.URL},2534:function(a){a.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyBkaXNwbGF5PSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KPGRlZnMgaWQ9InR1aS1pbWFnZS1lZGl0b3Itc3ZnLWRlZmF1bHQtaWNvbnMiPgo8c3ltYm9sIGlkPSJpYy1hcHBseSIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIHN0cm9rZT0ibm9uZSIgZmlsbD0ibm9uZSIvPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0IiBkPSJNNCAxMi4wMTFsNSA1TDIwLjAxMSA2Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1jYW5jZWwiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiLz4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iaW5oZXJpdCIgZD0iTTYgNmwxMiAxMk0xOCA2TDYgMTgiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWNyb3AiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBzdHJva2U9Im5vbmUiIGZpbGw9Im5vbmUiIC8+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik00IDBoMXYyMGExIDEgMCAwIDEtMS0xVjB6TTIwIDE3aC0xVjVoMXYxMnptMCAydjVoLTF2LTVoMXoiLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTUgMTloMTl2MUg1ek00Ljc2MiA0djFIMFY0aDQuNzYyek03IDRoMTJhMSAxIDAgMCAxIDEgMUg3VjR6Ii8+Cjwvc3ltYm9sPgo8IS0tIFRoaXMgaWNvbiBtYWRlIGJ5IFBpeGVsIHBlcmZlY3QgZnJvbSB3d3cuZmxhdGljb24uY29tIC0tPgo8c3ltYm9sIGlkPSJpYy1yZXNpemUiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgc3Ryb2tlPSJub25lIiBmaWxsPSJub25lIi8+CiAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNIDE4Ljk4ODI4MSAzLjAxMTcxOSBDIDE4LjgwMDc4MSAyLjgyNDIxOSAxOC41IDIuODI0MjE5IDE4LjMxMjUgMy4wMTE3MTkgTCAxMS42MjEwOTQgOS43MDcwMzEgQyAxMS40Mjk2ODggOS44OTQ1MzEgMTEuNDI5Njg4IDEwLjE5NTMxMiAxMS42MjEwOTQgMTAuMzc4OTA2IEMgMTEuNzEwOTM4IDEwLjQ3MjY1NiAxMS44MzU5MzggMTAuNTE5NTMxIDExLjk1NzAzMSAxMC41MTk1MzEgQyAxMi4wNzgxMjUgMTAuNTE5NTMxIDEyLjIwMzEyNSAxMC40NzI2NTYgMTIuMjkyOTY5IDEwLjM3ODkwNiBMIDE4Ljk4ODI4MSAzLjY4NzUgQyAxOS4xNzU3ODEgMy41IDE5LjE3NTc4MSAzLjE5OTIxOSAxOC45ODgyODEgMy4wMTE3MTkgWiBNIDE4Ljk4ODI4MSAzLjAxMTcxOSAiLz4KICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0gMTguNjUyMzQ0IDIuODY3MTg4IEMgMTguMzg2NzE5IDIuODY3MTg4IDE4LjE3MTg3NSAzLjA4MjAzMSAxOC4xNzE4NzUgMy4zNDc2NTYgTCAxOC4xNzE4NzUgOS4wODU5MzggQyAxOC4xNzE4NzUgOS4zNDc2NTYgMTguMzg2NzE5IDkuNTYyNSAxOC42NTIzNDQgOS41NjI1IEMgMTguOTE3OTY5IDkuNTYyNSAxOS4xMzI4MTIgOS4zNDc2NTYgMTkuMTMyODEyIDkuMDg1OTM4IEwgMTkuMTMyODEyIDMuMzQ3NjU2IEMgMTkuMTMyODEyIDMuMDgyMDMxIDE4LjkxNzk2OSAyLjg2NzE4OCAxOC42NTIzNDQgMi44NjcxODggWiBNIDE4LjY1MjM0NCAyLjg2NzE4OCAiLz4KICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0gMTguNjUyMzQ0IDIuODY3MTg4IEwgMTIuOTE0MDYyIDIuODY3MTg4IEMgMTIuNjUyMzQ0IDIuODY3MTg4IDEyLjQzNzUgMy4wODIwMzEgMTIuNDM3NSAzLjM0NzY1NiBDIDEyLjQzNzUgMy42MTMyODEgMTIuNjUyMzQ0IDMuODI4MTI1IDEyLjkxNDA2MiAzLjgyODEyNSBMIDE4LjY1MjM0NCAzLjgyODEyNSBDIDE4LjkxNzk2OSAzLjgyODEyNSAxOS4xMzI4MTIgMy42MTMyODEgMTkuMTMyODEyIDMuMzQ3NjU2IEMgMTkuMTMyODEyIDMuMDgyMDMxIDE4LjkxNzk2OSAyLjg2NzE4OCAxOC42NTIzNDQgMi44NjcxODggWiBNIDE4LjY1MjM0NCAyLjg2NzE4OCAiLz4KICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0gMTAuMzc4OTA2IDExLjYyMTA5NCBDIDEwLjE5NTMxMiAxMS40MzM1OTQgOS44OTA2MjUgMTEuNDMzNTk0IDkuNzAzMTI1IDExLjYyMTA5NCBMIDMuMDA3ODEyIDE4LjMxNjQwNiBDIDIuODIwMzEyIDE4LjUgMi44MjAzMTIgMTguODA0Njg4IDMuMDA3ODEyIDE4Ljk5MjE4OCBDIDMuMTA1NDY5IDE5LjA4NTkzOCAzLjIyNjU2MiAxOS4xMzI4MTIgMy4zNDc2NTYgMTkuMTMyODEyIEMgMy40Njg3NSAxOS4xMzI4MTIgMy41ODk4NDQgMTkuMDg1OTM4IDMuNjgzNTk0IDE4Ljk5MjE4OCBMIDEwLjM3ODkwNiAxMi4yOTY4NzUgQyAxMC41NjY0MDYgMTIuMTA5Mzc1IDEwLjU2NjQwNiAxMS44MDQ2ODggMTAuMzc4OTA2IDExLjYyMTA5NCBaIE0gMTAuMzc4OTA2IDExLjYyMTA5NCAiLz4KICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0gMy4zNDc2NTYgMTIuNDM3NSBDIDMuMDgyMDMxIDEyLjQzNzUgMi44NjcxODggMTIuNjUyMzQ0IDIuODY3MTg4IDEyLjkxNDA2MiBMIDIuODY3MTg4IDE4LjY1MjM0NCBDIDIuODY3MTg4IDE4LjkxNzk2OSAzLjA4MjAzMSAxOS4xMzI4MTIgMy4zNDc2NTYgMTkuMTMyODEyIEMgMy42MTMyODEgMTkuMTMyODEyIDMuODI4MTI1IDE4LjkxNzk2OSAzLjgyODEyNSAxOC42NTIzNDQgTCAzLjgyODEyNSAxMi45MTQwNjIgQyAzLjgyODEyNSAxMi42NTIzNDQgMy42MTMyODEgMTIuNDM3NSAzLjM0NzY1NiAxMi40Mzc1IFogTSAzLjM0NzY1NiAxMi40Mzc1ICIvPgogIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTSA5LjA4NTkzOCAxOC4xNzE4NzUgTCAzLjM0NzY1NiAxOC4xNzE4NzUgQyAzLjA4MjAzMSAxOC4xNzE4NzUgMi44NjcxODggMTguMzg2NzE5IDIuODY3MTg4IDE4LjY1MjM0NCBDIDIuODY3MTg4IDE4LjkxNzk2OSAzLjA4MjAzMSAxOS4xMzI4MTIgMy4zNDc2NTYgMTkuMTMyODEyIEwgOS4wODU5MzggMTkuMTMyODEyIEMgOS4zNDc2NTYgMTkuMTMyODEyIDkuNTYyNSAxOC45MTc5NjkgOS41NjI1IDE4LjY1MjM0NCBDIDkuNTYyNSAxOC4zODY3MTkgOS4zNDc2NTYgMTguMTcxODc1IDkuMDg1OTM4IDE4LjE3MTg3NSBaIE0gOS4wODU5MzggMTguMTcxODc1ICIvPgogIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTSAyMC41NjI1IDAgTCAxLjQzNzUgMCBDIDAuNjQ0NTMxIDAgMCAwLjY0NDUzMSAwIDEuNDM3NSBMIDAgMjAuNTYyNSBDIDAgMjEuMzU1NDY5IDAuNjQ0NTMxIDIyIDEuNDM3NSAyMiBMIDIwLjU2MjUgMjIgQyAyMS4zNTU0NjkgMjIgMjIgMjEuMzU1NDY5IDIyIDIwLjU2MjUgTCAyMiAxLjQzNzUgQyAyMiAwLjY0NDUzMSAyMS4zNTU0NjkgMCAyMC41NjI1IDAgWiBNIDIxLjA0Mjk2OSAyMC41NjI1IEMgMjEuMDQyOTY5IDIwLjgyODEyNSAyMC44MjgxMjUgMjEuMDQyOTY5IDIwLjU2MjUgMjEuMDQyOTY5IEwgMS40Mzc1IDIxLjA0Mjk2OSBDIDEuMTcxODc1IDIxLjA0Mjk2OSAwLjk1NzAzMSAyMC44MjgxMjUgMC45NTcwMzEgMjAuNTYyNSBMIDAuOTU3MDMxIDEuNDM3NSBDIDAuOTU3MDMxIDEuMTcxODc1IDEuMTcxODc1IDAuOTU3MDMxIDEuNDM3NSAwLjk1NzAzMSBMIDIwLjU2MjUgMC45NTcwMzEgQyAyMC44MjgxMjUgMC45NTcwMzEgMjEuMDQyOTY5IDEuMTcxODc1IDIxLjA0Mjk2OSAxLjQzNzUgWiBNIDIxLjA0Mjk2OSAyMC41NjI1ICIvPgo8L3N5bWJvbD4KPCEtLSAgLS0+CjxzeW1ib2wgaWQ9ImljLWRlbGV0ZS1hbGwiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik01IDIzSDNhMSAxIDAgMCAxLTEtMVY2aDF2MTZoMnYxem0xNi0xMGgtMVY2aDF2N3pNOSAxM0g4di0zaDF2M3ptMyAwaC0xdi0zaDF2M3ptMyAwaC0xdi0zaDF2M3pNMTQuNzk0IDMuNzk0TDEzIDJoLTNMOC4yMDYgMy43OTRBLjk2My45NjMgMCAwIDEgOCAyLjVsLjcwMy0xLjA1NUExIDEgMCAwIDEgOS41MzUgMWgzLjkzYTEgMSAwIDAgMSAuODMyLjQ0NUwxNSAyLjVhLjk2NS45NjUgMCAwIDEtLjIwNiAxLjI5NHpNMTQuMTk3IDRIOC44MDNoNS4zOTR6Ii8+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0wIDNoMjN2MUgwek0xMS4yODYgMjFIOC43MTRMOCAyM0g3bDEtMi44VjIwaC4wNzFMOS41IDE2aDFsMS40MjkgNEgxMnYuMmwxIDIuOGgtMWwtLjcxNC0yem0tLjM1Ny0xTDEwIDE3LjQgOS4wNzEgMjBoMS44NTh6TTIwIDIyaDN2MWgtNHYtN2gxdjZ6bS01IDBoM3YxaC00di03aDF2NnoiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWRlbGV0ZSIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTMgNnYxNmgxN1Y2aDF2MTZhMSAxIDAgMCAxLTEgMUgzYTEgMSAwIDAgMS0xLTFWNmgxek0xNC43OTQgMy43OTRMMTMgMmgtM0w4LjIwNiAzLjc5NEEuOTYzLjk2MyAwIDAgMSA4IDIuNWwuNzAzLTEuMDU1QTEgMSAwIDAgMSA5LjUzNSAxaDMuOTNhMSAxIDAgMCAxIC44MzIuNDQ1TDE1IDIuNWEuOTY1Ljk2NSAwIDAgMS0uMjA2IDEuMjk0ek0xNC4xOTcgNEg4LjgwM2g1LjM5NHoiLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTAgM2gyM3YxSDB6TTggMTBoMXY2SDh2LTZ6bTMgMGgxdjZoLTF2LTZ6bTMgMGgxdjZoLTF2LTZ6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1kcmF3LWZyZWUiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIGQ9Ik0yLjUgMjAuOTI5QzIuNTk0IDEwLjk3NiA0LjMyMyA2IDcuNjg2IDZjNS44NzIgMCAyLjUyNCAxOSA3LjY5NyAxOXMxLjg5LTE0LjkyOSA2LjQxNC0xNC45MjkgMS4zNTcgMTAuODU4IDUuMTMgMTAuODU4YzEuODAyIDAgMi42NTctMi4yNjIgMi41NjYtNi43ODYiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWRyYXctbGluZSIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iaW5oZXJpdCIgZD0iTTIgMTUuNWgyOCIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtZHJhdyIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iaW5oZXJpdCIgZD0iTTIuNSAyMS41SDVjLjI0NSAwIC40OC0uMDU4LjY5MS0uMTY4bC4xMjQtLjA2NS4xNC4wMWMuNDI5LjAyOC44NS0uMTI3IDEuMTYtLjQzN0wyMi41NSA1LjQwNWEuNS41IDAgMCAwIDAtLjcwN2wtMy4yNDYtMy4yNDVhLjUuNSAwIDAgMC0uNzA3IDBMMy4xNjIgMTYuODg4YTEuNDk1IDEuNDk1IDAgMCAwLS40MzcgMS4xNTVsLjAxLjE0LS4wNjUuMTIzYy0uMTExLjIxMi0uMTcuNDQ4LS4xNy42OTR2Mi41eiIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMTYuNDE0IDMuNzA3bDMuODkgMy44OS0uNzA4LjcwNi0zLjg4OS0zLjg4OXoiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWZpbHRlciIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiIHN0cm9rZT0ibm9uZSIgLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTEyIDd2MUgyVjdoMTB6bTYgMGg0djFoLTRWN3pNMTIgMTZ2MWgxMHYtMUgxMnptLTYgMEgydjFoNHYtMXoiLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTguNSAyMGEzLjUgMy41IDAgMSAxIDAtNyAzLjUgMy41IDAgMCAxIDAgN3ptMC0xYTIuNSAyLjUgMCAxIDAgMC01IDIuNSAyLjUgMCAwIDAgMCA1ek0xNS41IDExYTMuNSAzLjUgMCAxIDEgMC03IDMuNSAzLjUgMCAwIDEgMCA3em0wLTFhMi41IDIuNSAwIDEgMCAwLTUgMi41IDIuNSAwIDAgMCAwIDV6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1mbGlwLXJlc2V0IiB2aWV3Qm94PSIwIDAgMzEgMzIiPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiBkPSJNMzEgMEgwdjMyaDMxeiIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMjggMTZhOCA4IDAgMCAxLTggOEgzdi0xaDF2LTdIM2E4IDggMCAwIDEgOC04aDE3djFoLTF2N2gxek0xMSA5YTcgNyAwIDAgMC03IDd2N2gxNmE3IDcgMCAwIDAgNy03VjlIMTF6Ii8+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiIGQ9Ik0yNCA1bDMuNSAzLjVMMjQgMTJNNyAyMGwtMy41IDMuNUw3IDI3Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1mbGlwLXgiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiIGQ9Ik0zMiAzMkgwVjBoMzJ6Ii8+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0xNyAzMmgtMVYwaDF6TTI3LjE2NyAxMWwuNSAzaC0xLjAzbC0uNTQ2LTNoMS4wNzZ6bS0uNS0zaC0xLjEyMkwyNSA1aC01VjRoNS4xNTNhMSAxIDAgMCAxIC45ODYuODM2TDI2LjY2NyA4em0xLjUgOWwuNSAzaC0uOTRsLS41NDUtM2guOTg1em0xIDZsLjYzOSAzLjgzNkExIDEgMCAwIDEgMjguODE5IDI4SDI2di0xaDNsLS43MjYtNGguODk0ek0yMyAyOGgtM3YtMWgzdjF6TTEzIDR2MUg3TDMgMjdoMTB2MUgzLjE4YTEgMSAwIDAgMS0uOTg2LTEuMTY0bDMuNjY2LTIyQTEgMSAwIDAgMSA2Ljg0NyA0SDEzeiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtZmxpcC15IiB2aWV3Qm94PSIwIDAgMzIgMzIiPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiBkPSJNMCAwdjMyaDMyVjB6Ii8+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0wIDE2djFoMzJ2LTF6TTExIDI3LjE2N2wzIC41di0xLjAzbC0zLS41NDZ2MS4wNzZ6bS0zLS41di0xLjEyMkw1IDI1di01SDR2NS4xNTNhMSAxIDAgMCAwIC44MzYuOTg2TDggMjYuNjY3em05IDEuNWwzIC41di0uOTRsLTMtLjU0NXYuOTg1em02IDFsMy44MzYuNjM5QTEgMSAwIDAgMCAyOCAyOC44MlYyNmgtMXYzbC00LS43Mjd2Ljg5NHpNMjggMjN2LTNoLTF2M2gxek00IDEzaDFWN2wyMi00djEwaDFWMy4xOGExIDEgMCAwIDAtMS4xNjQtLjk4NmwtMjIgMy42NjdBMSAxIDAgMCAwIDQgNi44NDdWMTN6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1mbGlwIiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiAvPgogICAgPHBhdGggZmlsbD0iaW5oZXJpdCIgc3Ryb2tlPSJub25lIiBkPSJNMTEgMGgxdjI0aC0xek0xOSAyMXYtMWgydi0yaDF2MmExIDEgMCAwIDEtMSAxaC0yem0tMiAwaC0zdi0xaDN2MXptNS01aC0xdi0zaDF2M3ptMC01aC0xVjhoMXYzem0wLTVoLTFWNGgtMlYzaDJhMSAxIDAgMCAxIDEgMXYyem0tNS0zdjFoLTNWM2gzek05IDN2MUgydjE2aDd2MUgyYTEgMSAwIDAgMS0xLTFWNGExIDEgMCAwIDEgMS0xaDd6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1oaXN0b3J5IiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiBkPSJNMCAwSDI0VjI0SDB6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNzQwIC0xNikgdHJhbnNsYXRlKDU0NyA4KSB0cmFuc2xhdGUoMTkzIDgpIi8+CiAgICA8cGF0aCBmaWxsPSJpbmhlcml0IiBzdHJva2U9Im5vbmUiIGQ9Ik0xMi41IDFDMTguMjk5IDEgMjMgNS43MDEgMjMgMTEuNVMxOC4yOTkgMjIgMTIuNSAyMmMtNS4yOSAwLTkuNjY1LTMuOTExLTEwLjM5NC04Ljk5OWgxLjAxMkMzLjgzOCAxNy41MzQgNy43NjQgMjEgMTIuNSAyMWM1LjI0NyAwIDkuNS00LjI1MyA5LjUtOS41UzE3Ljc0NyAyIDEyLjUgMkM4LjQ5IDIgNS4wNiA0LjQ4NSAzLjY2NiA4SDNoNHYxSDJWNGgxdjMuMDIyQzQuNjggMy40NjIgOC4zMDMgMSAxMi41IDF6bS41IDVsLS4wMDEgNS4yOTEgMi41MzcgMi41MzctLjcwOC43MDhMMTIuMjkyIDEySDEyVjZoMXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC03NDAgLTE2KSB0cmFuc2xhdGUoNTQ3IDgpIHRyYW5zbGF0ZSgxOTMgOCkiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWhpc3RvcnktY2hlY2siIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiID4KICAgICAgICA8cGF0aCBzdHJva2U9IiM1NTU1NTUiIGQ9Ik00LjUgLTFMMS41IDIgNi41IDciIHRyYW5zZm9ybT0idHJhbnNsYXRlKC02MCAtODA0KSB0cmFuc2xhdGUoNjAgODA0KSB0cmFuc2xhdGUoMiAzKSByb3RhdGUoLTkwIDQgMykiIC8+CiAgICA8L2c+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1oaXN0b3J5LWNyb3AiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8ZyBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgPgogICAgICAgIDxwYXRoIGQ9Ik0wIDBIMTJWMTJIMHoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC04NCAtODA0KSB0cmFuc2xhdGUoODQgODA0KSIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik0yIDBoMXYxMGMtLjU1MiAwLTEtLjQ0OC0xLTFWMHpNMTAgOXYzSDlWOWgxek05IDJoMXY2SDlWMnoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC04NCAtODA0KSB0cmFuc2xhdGUoODQgODA0KSIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik0yIDlIMTJWMTBIMnpNOSAyYy41MTMgMCAuOTM2LjM4Ni45OTMuODgzTDEwIDNIM1YyaDZ6TTIgM0gwVjJoMnYxeiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTg0IC04MDQpIHRyYW5zbGF0ZSg4NCA4MDQpIi8+CiAgICA8L2c+Cjwvc3ltYm9sPgo8IS0tIFRoaXMgaWNvbiBtYWRlIGJ5IFBpeGVsIHBlcmZlY3QgZnJvbSB3d3cuZmxhdGljb24uY29tIC0tPgo8c3ltYm9sIGlkPSJpYy1oaXN0b3J5LXJlc2l6ZSIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8ZyBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgPgogICAgPHBhdGggZmlsbD0iIzQzNDM0MyIgZD0iTSA5LjQ5MjE4OCAxLjUwNzgxMiBDIDkuMzk4NDM4IDEuNDE0MDYyIDkuMjUgMS40MTQwNjIgOS4xNTYyNSAxLjUwNzgxMiBMIDUuODEyNSA0Ljg1MTU2MiBDIDUuNzE0ODQ0IDQuOTQ1MzEyIDUuNzE0ODQ0IDUuMDk3NjU2IDUuODEyNSA1LjE4NzUgQyA1Ljg1NTQ2OSA1LjIzNDM3NSA1LjkxNzk2OSA1LjI1NzgxMiA1Ljk3NjU2MiA1LjI1NzgxMiBDIDYuMDM5MDYyIDUuMjU3ODEyIDYuMTAxNTYyIDUuMjM0Mzc1IDYuMTQ4NDM4IDUuMTg3NSBMIDkuNDkyMTg4IDEuODQzNzUgQyA5LjU4NTkzOCAxLjc1IDkuNTg1OTM4IDEuNjAxNTYyIDkuNDkyMTg4IDEuNTA3ODEyIFogTSA5LjQ5MjE4OCAxLjUwNzgxMiAiLz4KICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik0gOS4zMjgxMjUgMS40MzM1OTQgQyA5LjE5NTMxMiAxLjQzMzU5NCA5LjA4NTkzOCAxLjUzOTA2MiA5LjA4NTkzOCAxLjY3MTg3NSBMIDkuMDg1OTM4IDQuNTQyOTY5IEMgOS4wODU5MzggNC42NzE4NzUgOS4xOTUzMTIgNC43ODEyNSA5LjMyODEyNSA0Ljc4MTI1IEMgOS40NjA5MzggNC43ODEyNSA5LjU2NjQwNiA0LjY3MTg3NSA5LjU2NjQwNiA0LjU0Mjk2OSBMIDkuNTY2NDA2IDEuNjcxODc1IEMgOS41NjY0MDYgMS41MzkwNjIgOS40NjA5MzggMS40MzM1OTQgOS4zMjgxMjUgMS40MzM1OTQgWiBNIDkuMzI4MTI1IDEuNDMzNTk0ICIvPgogICAgPHBhdGggZmlsbD0iIzQzNDM0MyIgZD0iTSA5LjMyODEyNSAxLjQzMzU5NCBMIDYuNDU3MDMxIDEuNDMzNTk0IEMgNi4zMjgxMjUgMS40MzM1OTQgNi4yMTg3NSAxLjUzOTA2MiA2LjIxODc1IDEuNjcxODc1IEMgNi4yMTg3NSAxLjgwNDY4OCA2LjMyODEyNSAxLjkxNDA2MiA2LjQ1NzAzMSAxLjkxNDA2MiBMIDkuMzI4MTI1IDEuOTE0MDYyIEMgOS40NjA5MzggMS45MTQwNjIgOS41NjY0MDYgMS44MDQ2ODggOS41NjY0MDYgMS42NzE4NzUgQyA5LjU2NjQwNiAxLjUzOTA2MiA5LjQ2MDkzOCAxLjQzMzU5NCA5LjMyODEyNSAxLjQzMzU5NCBaIE0gOS4zMjgxMjUgMS40MzM1OTQgIi8+CiAgICA8cGF0aCBmaWxsPSIjNDM0MzQzIiBkPSJNIDUuMTg3NSA1LjgxMjUgQyA1LjA5NzY1NiA1LjcxODc1IDQuOTQ1MzEyIDUuNzE4NzUgNC44NTE1NjIgNS44MTI1IEwgMS41MDM5MDYgOS4xNTYyNSBDIDEuNDEwMTU2IDkuMjUgMS40MTAxNTYgOS40MDIzNDQgMS41MDM5MDYgOS40OTYwOTQgQyAxLjU1NDY4OCA5LjU0Mjk2OSAxLjYxMzI4MSA5LjU2NjQwNiAxLjY3MTg3NSA5LjU2NjQwNiBDIDEuNzM0Mzc1IDkuNTY2NDA2IDEuNzk2ODc1IDkuNTQyOTY5IDEuODQzNzUgOS40OTYwOTQgTCA1LjE4NzUgNi4xNDg0MzggQyA1LjI4MTI1IDYuMDU0Njg4IDUuMjgxMjUgNS45MDIzNDQgNS4xODc1IDUuODEyNSBaIE0gNS4xODc1IDUuODEyNSAiLz4KICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik0gMS42NzE4NzUgNi4yMTg3NSBDIDEuNTM5MDYyIDYuMjE4NzUgMS40MzM1OTQgNi4zMjgxMjUgMS40MzM1OTQgNi40NTcwMzEgTCAxLjQzMzU5NCA5LjMyODEyNSBDIDEuNDMzNTk0IDkuNDYwOTM4IDEuNTM5MDYyIDkuNTY2NDA2IDEuNjcxODc1IDkuNTY2NDA2IEMgMS44MDQ2ODggOS41NjY0MDYgMS45MTQwNjIgOS40NjA5MzggMS45MTQwNjIgOS4zMjgxMjUgTCAxLjkxNDA2MiA2LjQ1NzAzMSBDIDEuOTE0MDYyIDYuMzI4MTI1IDEuODA0Njg4IDYuMjE4NzUgMS42NzE4NzUgNi4yMTg3NSBaIE0gMS42NzE4NzUgNi4yMTg3NSAiLz4KICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik0gNC41NDI5NjkgOS4wODU5MzggTCAxLjY3MTg3NSA5LjA4NTkzOCBDIDEuNTM5MDYyIDkuMDg1OTM4IDEuNDMzNTk0IDkuMTk1MzEyIDEuNDMzNTk0IDkuMzI4MTI1IEMgMS40MzM1OTQgOS40NjA5MzggMS41MzkwNjIgOS41NjY0MDYgMS42NzE4NzUgOS41NjY0MDYgTCA0LjU0Mjk2OSA5LjU2NjQwNiBDIDQuNjcxODc1IDkuNTY2NDA2IDQuNzgxMjUgOS40NjA5MzggNC43ODEyNSA5LjMyODEyNSBDIDQuNzgxMjUgOS4xOTUzMTIgNC42NzE4NzUgOS4wODU5MzggNC41NDI5NjkgOS4wODU5MzggWiBNIDQuNTQyOTY5IDkuMDg1OTM4ICIvPgogICAgPHBhdGggZmlsbD0iIzQzNDM0MyIgZD0iTSAxMC4yODEyNSAwIEwgMC43MTg3NSAwIEMgMC4zMjAzMTIgMCAwIDAuMzIwMzEyIDAgMC43MTg3NSBMIDAgMTAuMjgxMjUgQyAwIDEwLjY3OTY4OCAwLjMyMDMxMiAxMSAwLjcxODc1IDExIEwgMTAuMjgxMjUgMTEgQyAxMC42Nzk2ODggMTEgMTEgMTAuNjc5Njg4IDExIDEwLjI4MTI1IEwgMTEgMC43MTg3NSBDIDExIDAuMzIwMzEyIDEwLjY3OTY4OCAwIDEwLjI4MTI1IDAgWiBNIDEwLjUyMzQzOCAxMC4yODEyNSBDIDEwLjUyMzQzOCAxMC40MTQwNjIgMTAuNDE0MDYyIDEwLjUyMzQzOCAxMC4yODEyNSAxMC41MjM0MzggTCAwLjcxODc1IDEwLjUyMzQzOCBDIDAuNTg1OTM4IDEwLjUyMzQzOCAwLjQ3NjU2MiAxMC40MTQwNjIgMC40NzY1NjIgMTAuMjgxMjUgTCAwLjQ3NjU2MiAwLjcxODc1IEMgMC40NzY1NjIgMC41ODU5MzggMC41ODU5MzggMC40NzY1NjIgMC43MTg3NSAwLjQ3NjU2MiBMIDEwLjI4MTI1IDAuNDc2NTYyIEMgMTAuNDE0MDYyIDAuNDc2NTYyIDEwLjUyMzQzOCAwLjU4NTkzOCAxMC41MjM0MzggMC43MTg3NSBaIE0gMTAuNTIzNDM4IDEwLjI4MTI1ICIvPgogIDwvZz4KPC9zeW1ib2w+CjwhLS0gIC0tPgo8c3ltYm9sIGlkPSJpYy1oaXN0b3J5LWRyYXciIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8ZyBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgPgogICAgICAgIDxwYXRoIGQ9Ik0wIDFIMTJWMTNIMHoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNTYgLTgwNCkgdHJhbnNsYXRlKDE1NiA4MDMpIi8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjNDM0MzQzIiBkPSJNOS42MjIgMS41ODRsMS44MzUgMS42NTgtOC4zMSA4LjQwN0wuNSAxMi41VjExbDkuMTIyLTkuNDE2eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE1NiAtODA0KSB0cmFuc2xhdGUoMTU2IDgwMykiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjNDM0MzQzIiBkPSJNNy42MjggMy43NTNMMTAuMzc4IDMuNzUzIDEwLjM3OCA0LjI1MyA3LjYyOCA0LjI1M3oiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNTYgLTgwNCkgdHJhbnNsYXRlKDE1NiA4MDMpIHJvdGF0ZSg0NSA5LjAwMyA0LjAwMykiLz4KICAgIDwvZz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWhpc3RvcnktZmlsdGVyIiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiID4KICAgICAgICA8cGF0aCBkPSJNMCAwSDEyVjEySDB6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjc2IC04MDQpIHRyYW5zbGF0ZSgyNzYgODA0KSIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik0xMiAzdjFIOVYzaDN6TTcgNEgwVjNoN3YxeiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI3NiAtODA0KSB0cmFuc2xhdGUoMjc2IDgwNCkiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjNDM0MzQzIiBkPSJNMTIgOHYxSDlWOGgzek03IDlIMFY4aDd2MXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yNzYgLTgwNCkgdHJhbnNsYXRlKDI3NiA4MDQpIG1hdHJpeCgtMSAwIDAgMSAxMiAwKSIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik04IDFjMS4xMDUgMCAyIC44OTUgMiAycy0uODk1IDItMiAyLTItLjg5NS0yLTIgLjg5NS0yIDItMnptMCAxYy0uNTUyIDAtMSAuNDQ4LTEgMXMuNDQ4IDEgMSAxIDEtLjQ0OCAxLTEtLjQ0OC0xLTEtMXpNNCA3YzEuMTA1IDAgMiAuODk1IDIgMnMtLjg5NSAyLTIgMi0yLS44OTUtMi0yIC44OTUtMiAyLTJ6bTAgMWMtLjU1MiAwLTEgLjQ0OC0xIDFzLjQ0OCAxIDEgMSAxLS40NDggMS0xLS40NDgtMS0xLTF6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjc2IC04MDQpIHRyYW5zbGF0ZSgyNzYgODA0KSIvPgogICAgPC9nPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaGlzdG9yeS1mbGlwIiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiID4KICAgICAgICA8cGF0aCBkPSJNMCAwSDEyVjEySDB6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTA4IC04MDQpIHRyYW5zbGF0ZSgxMDggODA0KSIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik02IDBMNyAwIDcgMTIgNiAxMnpNMTEgMTBWOWgxdjEuNWMwIC4yNzYtLjIyNC41LS41LjVIMTB2LTFoMXpNNSAxdjFIMXY4aDR2MUguNWMtLjI3NiAwLS41LS4yMjQtLjUtLjV2LTljMC0uMjc2LjIyNC0uNS41LS41SDV6bTcgNXYyaC0xVjZoMXptMC0zdjJoLTFWM2gxek05IDF2MUg3VjFoMnptMi41IDBjLjI3NiAwIC41LjIyNC41LjVWMmgtMlYxaDEuNXpNOSAxMUg3di0xaDJ2MXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMDggLTgwNCkgdHJhbnNsYXRlKDEwOCA4MDQpIi8+CiAgICA8L2c+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1oaXN0b3J5LWljb24iIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8ZyBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgPgogICAgICAgIDxwYXRoIGQ9Ik0wIDBIMTJWMTJIMHoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMDQgLTgwNCkgdHJhbnNsYXRlKDIwNCA4MDQpIi8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjNDM0MzQzIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS4xIiBkPSJNNiA5LjU2OEwyLjYwMSAxMSAyLjk3NSA3LjQ2NyAwLjUgNC44MiA0LjEzIDQuMDY4IDYgMSA3Ljg3IDQuMDY4IDExLjUgNC44MiA5LjAyNSA3LjQ2NyA5LjM5OSAxMXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMDQgLTgwNCkgdHJhbnNsYXRlKDIwNCA4MDQpIi8+CiAgICA8L2c+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1oaXN0b3J5LW1hc2siIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8ZyBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yNTIgLTgwNCkgdHJhbnNsYXRlKDI1MiA4MDQpIj4KICAgICAgICAgICAgPHBhdGggZD0iTTAgMEgxMlYxMkgweiIvPgogICAgICAgICAgICA8Y2lyY2xlIGN4PSI2IiBjeT0iNiIgcj0iMi41IiBzdHJva2U9IiM0NDQiLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iIzQzNDM0MyIgZD0iTTExLjUgMGMuMjc2IDAgLjUuMjI0LjUuNXYxMWMwIC4yNzYtLjIyNC41LS41LjVILjVjLS4yNzYgMC0uNS0uMjI0LS41LS41Vi41QzAgLjIyNC4yMjQgMCAuNSAwaDExek0xMSAxSDF2MTBoMTBWMXoiLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1oaXN0b3J5LXJvdGF0ZSIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxkZWZzPgogICAgICAgIDxwYXRoIGlkPSJyZm40cnlsZmZhIiBkPSJNNyAxMmMtLjMzNSAwLS42NjMtLjAyNS0uOTgzLS4wNzRDMy4xNzEgMTEuNDkyIDEgOS4yMDUgMSA2LjQ0NGMwLTEuMzYzLjUzNC0yLjYxMyAxLjQxNS0zLjU4Ii8+CiAgICAgICAgPG1hc2sgaWQ9IjZmOWduMmR5c2IiIHdpZHRoPSI2IiBoZWlnaHQ9IjkuMTM2IiB4PSIwIiB5PSIwIiBtYXNrVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94Ij4KICAgICAgICAgICAgPHVzZSB4bGluazpocmVmPSIjcmZuNHJ5bGZmYSIgc3Ryb2tlPSI0MzQzNDMiLz4KICAgICAgICA8L21hc2s+CiAgICA8L2RlZnM+CiAgICA8ZyBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTgwNCkgdHJhbnNsYXRlKDEzMiA4MDQpIj4KICAgICAgICAgICAgPHBhdGggZD0iTTAgMC41SDEyVjEyLjVIMHoiLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iIzQzNDM0MyIgZD0iTTYuNSAxQzkuNTM4IDEgMTIgMy40NjIgMTIgNi41YzAgMi4zNy0xLjUgNC4zOS0zLjYgNS4xNjNsLS40MDctLjkxNkM5Ljc0NCAxMC4xMyAxMSA4LjQ2MiAxMSA2LjUgMTEgNC4wMTUgOC45ODUgMiA2LjUgMmMtLjc3NyAwLTEuNTA5LjE5Ny0yLjE0Ny41NDRMNCAxLjc1bC0uMjA1LS4wNEM0LjU5NCAxLjI1OCA1LjUxNyAxIDYuNSAxeiIvPgogICAgICAgICAgICA8dXNlIHN0cm9rZT0iIzQzNDM0MyIgc3Ryb2tlLWRhc2hhcnJheT0iMiAxLjI1IiBzdHJva2Utd2lkdGg9IjEiIG1hc2s9InVybCgjNmY5Z24yZHlzYikiIHhsaW5rOmhyZWY9IiNyZm40cnlsZmZhIi8+CiAgICAgICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik00LjI3OSAwTDYgMS43NSA0LjI1IDMuNTcxIDMuNTQzIDIuODY0IDQuNTg2IDEuNzUgMy41NzIgMC43MDd6IiB0cmFuc2Zvcm09Im1hdHJpeCgtMSAwIDAgMSA5LjU0MyAwKSIvPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWhpc3Rvcnktc2hhcGUiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8ZyBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgPgogICAgICAgIDxwYXRoIGQ9Ik0wIDBIMTJWMTJIMHoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xODAgLTgwNCkgdHJhbnNsYXRlKDE4MCA4MDQpIi8+CiAgICAgICAgPHBhdGggZmlsbD0iIzQzNDM0MyIgZD0iTTExLjUgNGMuMjc2IDAgLjUuMjI0LjUuNXY3YzAgLjI3Ni0uMjI0LjUtLjUuNWgtN2MtLjI3NiAwLS41LS4yMjQtLjUtLjVWOC44aDFWMTFoNlY1SDguMzQxbC0uNTY4LTFIMTEuNXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xODAgLTgwNCkgdHJhbnNsYXRlKDE4MCA4MDQpIi8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjNDM0MzQzIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGQ9Ik00LjUgMC41TDguNSA3LjYxMSAwLjUgNy42MTF6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTgwIC04MDQpIHRyYW5zbGF0ZSgxODAgODA0KSIvPgogICAgPC9nPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaGlzdG9yeS10ZXh0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiID4KICAgICAgICA8cGF0aCBkPSJNMCAwSDEyVjEySDB6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjI4IC04MDQpIHRyYW5zbGF0ZSgyMjggODA0KSIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik0yIDFoOGMuNTUyIDAgMSAuNDQ4IDEgMUgxYzAtLjU1Mi40NDgtMSAxLTF6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjI4IC04MDQpIHRyYW5zbGF0ZSgyMjggODA0KSIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik0xIDFIMlYzSDF6TTEwIDFIMTFWM0gxMHpNNS41IDFMNi41IDEgNi41IDExIDUuNSAxMXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMjggLTgwNCkgdHJhbnNsYXRlKDIyOCA4MDQpIi8+CiAgICAgICAgPHBhdGggZmlsbD0iIzQzNDM0MyIgZD0iTTQgMTBIOFYxMUg0eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIyOCAtODA0KSB0cmFuc2xhdGUoMjI4IDgwNCkiLz4KICAgIDwvZz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWhpc3RvcnktbG9hZCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxnIGZpbGw9Im5vbmUiIHN0cm9rZT0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMCAwSDEyVjEySDB6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMzI0IC04MDUpIHRyYW5zbGF0ZSgzMjQgODA1KSIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik01IDBjLjU1MiAwIDEgLjQ0OCAxIDF2MWg1LjVjLjI3NiAwIC41LjIyNC41LjV2OGMwIC4yNzYtLjIyNC41LS41LjVILjVjLS4yNzYgMC0uNS0uMjI0LS41LS41VjFjMC0uNTUyLjQ0OC0xIDEtMWg0em0wIDFIMXY5aDEwVjNINVYxeiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMyNCAtODA1KSB0cmFuc2xhdGUoMzI0IDgwNSkiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjNDM0MzQzIiBkPSJNMSAyTDUgMiA1IDMgMSAzeiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMyNCAtODA1KSB0cmFuc2xhdGUoMzI0IDgwNSkiLz4KICAgIDwvZz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWhpc3RvcnktZGVsZXRlIiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGZpbGw9IiM0MzQzNDMiPgogICAgICAgICAgICA8cGF0aCBkPSJNMiA5aDhWMWgxdjguNWMwIC4yNzYtLjIyNC41LS41LjVoLTljLS4yNzYgMC0uNS0uMjI0LS41LS41VjFoMXY4ek0wIDBIMTJWMUgweiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMwMCAtODA0KSB0cmFuc2xhdGUoMzAwIDgwNCkgdHJhbnNsYXRlKDAgMikiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTQgM0g1VjdINHpNNyAzSDhWN0g3eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMwMCAtODA0KSB0cmFuc2xhdGUoMzAwIDgwNCkgdHJhbnNsYXRlKDAgMikiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTQgMWg0VjBoMXYxLjVjMCAuMjc2LS4yMjQuNS0uNS41aC01Yy0uMjc2IDAtLjUtLjIyNC0uNS0uNVYwaDF2MXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0zMDAgLTgwNCkgdHJhbnNsYXRlKDMwMCA4MDQpIG1hdHJpeCgxIDAgMCAtMSAwIDIpIi8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaGlzdG9yeS1ncm91cCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxnIGZpbGw9Im5vbmUiIHN0cm9rZT0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMzQ4IC04MDQpIHRyYW5zbGF0ZSgzNDggODA0KSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wIDBIMTJWMTJIMHoiLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iIzQzNDM0MyIgZD0iTTEgOXYyaDF2MUguNWMtLjI3NiAwLS41LS4yMjQtLjUtLjVWOWgxem0xMSAxdjEuNWMwIC4yNzYtLjIyNC41LS41LjVIOXYtMWgydi0xaDF6bS00IDF2MUg2di0xaDJ6bS0zIDB2MUgzdi0xaDJ6bTctNHYyaC0xVjdoMXpNMSA2djJIMFY2aDF6bTExLTJ2MmgtMVY0aDF6TTEgM3YySDBWM2gxem0xMC41LTNjLjI3NiAwIC41LjIyNC41LjVWM2gtMVYxaC0xVjBoMS41ek02IDB2MUg0VjBoMnptMyAwdjFIN1YwaDJ6TTAgLjVDMCAuMjI0LjIyNCAwIC41IDBIM3YxSDF2MUgwVi41ek05LjUgNGMuMjc2IDAgLjUuMjI0LjUuNXY1YzAgLjI3Ni0uMjI0LjUtLjUuNWgtNWMtLjI3NiAwLS41LS4yMjQtLjUtLjVWOC4zNTVjLjMxNy4wOTQuNjUyLjE0NSAxIC4xNDVWOWg0VjVoLS41YzAtLjM0OC0uMDUtLjY4My0uMTQ1LTFIOS41eiIvPgogICAgICAgICAgICA8Y2lyY2xlIGN4PSI1IiBjeT0iNSIgcj0iMi41IiBzdHJva2U9IiM0MzQzNDMiLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1pY29uLWFycm93LTIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTIxLjc5MyAxOC41SDIuNXYtNWgxOC45MzVsLTcuNi04aDUuODcybDEwLjUgMTAuNS0xMC41IDEwLjVoLTUuOTE0bDgtOHoiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWljb24tYXJyb3ctMyIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iaW5oZXJpdCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkPSJNMjUuMjg4IDE2LjQyTDE0LjIwOCAyNy41SDYuNzkybDExLjI5MS0xMS4yOTFMNi44MjYgNC41aDcuMzgxbDExLjY2MSAxMS42NjEtLjU4LjI1OHoiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWljb24tYXJyb3ciIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIGQ9Ik0yLjUgMTEuNXY5aDE4djUuMjkzTDMwLjI5MyAxNiAyMC41IDYuMjA3VjExLjVoLTE4eiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaWNvbi1idWJibGUiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTIyLjIwNyAyNC41TDE2LjUgMzAuMjA3VjI0LjVIOEE2LjUgNi41IDAgMCAxIDEuNSAxOFY5QTYuNSA2LjUgMCAwIDEgOCAyLjVoMTZBNi41IDYuNSAwIDAgMSAzMC41IDl2OWE2LjUgNi41IDAgMCAxLTYuNSA2LjVoLTEuNzkzeiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaWNvbi1oZWFydCIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIGZpbGwtcnVsZT0ibm9uemVybyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0IiBkPSJNMTUuOTk2IDMwLjY3NWwxLjk4MS0xLjc5YzcuODk4LTcuMTc3IDEwLjM2NS05LjcxOCAxMi4xMzUtMTMuMDEyLjkyMi0xLjcxNiAxLjM3Ny0zLjM3IDEuMzc3LTUuMDc2IDAtNC42NS0zLjY0Ny04LjI5Ny04LjI5Ny04LjI5Ny0yLjMzIDAtNC44NiAxLjUyNy02LjgxNyAzLjgyNGwtLjM4LjQ0Ny0uMzgxLS40NDdDMTMuNjU4IDQuMDI3IDExLjEyNiAyLjUgOC43OTcgMi41IDQuMTQ3IDIuNS41IDYuMTQ3LjUgMTAuNzk3YzAgMS43MTQuNDYgMy4zNzUgMS4zODkgNS4wOTggMS43NzUgMy4yODggNC4yNiA1Ljg0MyAxMi4xMjMgMTIuOTc0bDEuOTg0IDEuODA2eiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaWNvbi1sb2FkIiB2aWV3Qm94PSIwIDAgMzIgMzIiPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGQ9Ik0xNy4zMTQgMTguODY3bDEuOTUxLTIuNTMgNCA1LjE4NGgtMTdsNi41LTguODQgNC41NDkgNi4xODZ6Ii8+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0xOC4wMSA0YTExLjc5OCAxMS43OTggMCAwIDAgMCAxSDN2MjRoMjRWMTQuOTg2YTguNzM4IDguNzM4IDAgMCAwIDEgMFYyOWExIDEgMCAwIDEtMSAxSDNhMSAxIDAgMCAxLTEtMVY1YTEgMSAwIDAgMSAxLTFoMTUuMDF6Ii8+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0yNSAzaDF2OWgtMXoiLz4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iaW5oZXJpdCIgZD0iTTIyIDZsMy41LTMuNUwyOSA2Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1pY29uLWxvY2F0aW9uIiB2aWV3Qm94PSIwIDAgMzIgMzIiPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0IiBkPSJNMTYgMzEuMjhDMjMuNjc1IDIzLjMwMiAyNy41IDE3LjE4MSAyNy41IDEzYzAtNi4zNTEtNS4xNDktMTEuNS0xMS41LTExLjVTNC41IDYuNjQ5IDQuNSAxM2MwIDQuMTgxIDMuODI1IDEwLjMwMiAxMS41IDE4LjI4eiIvPgogICAgPGNpcmNsZSBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIGN4PSIxNiIgY3k9IjEzIiByPSI0LjUiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWljb24tcG9seWdvbiIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iaW5oZXJpdCIgZD0iTS41NzYgMTZMOC4yOSAyOS41aDE1LjQyTDMxLjQyNCAxNiAyMy43MSAyLjVIOC4yOUwuNTc2IDE2eiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaWNvbi1zdGFyLTIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIGQ9Ik0xOS40NDYgMzEuNTkybDIuMjY1LTMuMjcyIDMuOTQ2LjI1LjYzNi0zLjk0IDMuNjY1LTEuNTA1LTEuMTItMy44MzIgMi42NTUtMi45NjItMi42NTYtMi45NjIgMS4xMi0zLjgzMi0zLjY2NC0xLjUwNS0uNjM2LTMuOTQxLTMuOTQ2LjI1LTIuMjY1LTMuMjcxTDE2IDMuMDI0IDEyLjU1NCAxLjA3IDEwLjI4OSA0LjM0bC0zLjk0Ni0uMjUtLjYzNiAzLjk0MS0zLjY2NSAxLjUwNSAxLjEyIDMuODMyTC41MDggMTYuMzNsMi42NTYgMi45NjItMS4xMiAzLjgzMiAzLjY2NCAxLjUwNC42MzYgMy45NDIgMy45NDYtLjI1IDIuMjY1IDMuMjdMMTYgMjkuNjM4bDMuNDQ2IDEuOTU1eiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaWNvbi1zdGFyIiB2aWV3Qm94PSIwIDAgMzIgMzIiPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0IiBkPSJNMjUuMjkyIDI5Ljg3OGwtMS43NzUtMTAuMzQ2IDcuNTE3LTcuMzI3LTEwLjM4OC0xLjUxTDE2IDEuMjgybC00LjY0NiA5LjQxMy0xMC4zODggMS41MSA3LjUxNyA3LjMyNy0xLjc3NSAxMC4zNDZMMTYgMjQuOTkzbDkuMjkyIDQuODg1eiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaWNvbiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iaW5oZXJpdCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkPSJNMTEuOTIzIDE5LjEzNkw1LjQyNCAyMmwuNzE1LTcuMDY1LTQuNzMxLTUuMjk2IDYuOTQtMS41MDNMMTEuOTIzIDJsMy41NzQgNi4xMzYgNi45NCAxLjUwMy00LjczMSA1LjI5NkwxOC40MiAyMnoiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLW1hc2stbG9hZCIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0ibm9uZSIgZD0iTTAgMGgzMnYzMkgweiIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMTguMDEgNGExMS43OTggMTEuNzk4IDAgMCAwIDAgMUgzdjI0aDI0VjE0Ljk4NmE4LjczOCA4LjczOCAwIDAgMCAxIDBWMjlhMSAxIDAgMCAxLTEgMUgzYTEgMSAwIDAgMS0xLTFWNWExIDEgMCAwIDEgMS0xaDE1LjAxek0xNSAyM2E2IDYgMCAxIDEgMC0xMiA2IDYgMCAwIDEgMCAxMnptMC0xYTUgNSAwIDEgMCAwLTEwIDUgNSAwIDAgMCAwIDEweiIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMjUgM2gxdjloLTF6Ii8+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIGQ9Ik0yMiA2bDMuNS0zLjVMMjkgNiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtbWFzayIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjQuNSIgc3Ryb2tlPSJpbmhlcml0IiBmaWxsPSJub25lIi8+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0yIDFoMjBhMSAxIDAgMCAxIDEgMXYyMGExIDEgMCAwIDEtMSAxSDJhMSAxIDAgMCAxLTEtMVYyYTEgMSAwIDAgMSAxLTF6bTAgMXYyMGgyMFYySDJ6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1yZWRvIiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgb3BhY2l0eT0iLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0ibm9uZSIgLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTIxIDZIOWE2IDYgMCAxIDAgMCAxMmgxMnYxSDlBNyA3IDAgMCAxIDkgNWgxMnYxeiIvPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0IiBzdHJva2UtbGluZWNhcD0ic3F1YXJlIiBkPSJNMTkgM2wyLjUgMi41TDE5IDgiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLXJlc2V0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgb3BhY2l0eT0iLjUiIHN0cm9rZT0ibm9uZSIgZmlsbD0ibm9uZSIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMiAxM3YtMWE3IDcgMCAwIDEgNy03aDEzdjFoLTF2NWgxdjFhNyA3IDAgMCAxLTcgN0gydi0xaDF2LTVIMnptNy03YTYgNiAwIDAgMC02IDZ2NmgxMmE2IDYgMCAwIDAgNi02VjZIOXoiLz4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iaW5oZXJpdCIgc3Ryb2tlLWxpbmVjYXA9InNxdWFyZSIgZD0iTTE5IDNsMi41IDIuNUwxOSA4TTUgMTZsLTIuNSAyLjVMNSAyMSIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtcm90YXRlLWNsb2Nrd2lzZSIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTI5IDE3aC0uOTI0YzAgNi42MjctNS4zNzMgMTItMTIgMTItNi42MjggMC0xMi01LjM3My0xMi0xMkM0LjA3NiAxMC4zOTggOS40MDcgNS4wNDEgMTYgNVY0QzguODIgNCAzIDkuODIgMyAxN3M1LjgyIDEzIDEzIDEzIDEzLTUuODIgMTMtMTN6Ii8+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiIGQ9Ik0xNiAxLjVsNCAzLTQgMyIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBmaWxsLXJ1bGU9Im5vbnplcm8iIGQ9Ik0xNiA0aDR2MWgtNHoiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLXJvdGF0ZS1jb3VudGVyY2xvY2t3aXNlIiB2aWV3Qm94PSIwIDAgMzIgMzIiPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBkPSJNMyAxN2guOTI0YzAgNi42MjcgNS4zNzMgMTIgMTIgMTIgNi42MjggMCAxMi01LjM3MyAxMi0xMiAwLTYuNjAyLTUuMzMxLTExLjk2LTExLjkyNC0xMlY0YzcuMTggMCAxMyA1LjgyIDEzIDEzcy01LjgyIDEzLTEzIDEzUzMgMjQuMTggMyAxN3oiLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMTIgNGg0djFoLTR6Ii8+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiIGQ9Ik0xNiAxLjVsLTQgMyA0IDMiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLXJvdGF0ZSIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiIHN0cm9rZT0ibm9uZSIgLz4KICAgIDxwYXRoIGZpbGw9ImluaGVyaXQiIHN0cm9rZT0ibm9uZSIgZD0iTTguMzQ5IDIyLjI1NGExMC4wMDIgMTAuMDAyIDAgMCAxLTIuNzc4LTEuNzE5bC42NS0uNzZhOS4wMDIgOS4wMDIgMCAwIDAgMi40OTUgMS41NDhsLS4zNjcuOTMxem0yLjg3My43MDRsLjA3OC0uOTk3YTkgOSAwIDEgMC0uNTU3LTE3Ljg1MmwtLjE0LS45OUExMC4wNzYgMTAuMDc2IDAgMCAxIDEyLjE0NSAzYzUuNTIzIDAgMTAgNC40NzcgMTAgMTBzLTQuNDc3IDEwLTEwIDEwYy0uMzEyIDAtLjYyLS4wMTQtLjkyNC0uMDQyem0tNy41NTYtNC42NTVhOS45NDIgOS45NDIgMCAwIDEtMS4yNTMtMi45OTZsLjk3My0uMjM0YTguOTQ4IDguOTQ4IDAgMCAwIDEuMTI0IDIuNjkzbC0uODQ0LjUzN3ptLTEuNTAyLTUuOTFBOS45NDkgOS45NDkgMCAwIDEgMi44OCA5LjIzbC45MjUuMzgyYTguOTU0IDguOTU0IDAgMCAwLS42NDQgMi44NDRsLS45OTgtLjA2MnptMi4yMS01LjY4NmMuNjg3LS44NDggMS41MS0xLjU4IDIuNDM2LTIuMTY2bC41MjMuODUyYTkuMDQ4IDkuMDQ4IDAgMCAwLTIuMTg4IDEuOTVsLS43NzEtLjYzNnoiLz4KICAgIDxwYXRoIHN0cm9rZT0iaW5oZXJpdCIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InNxdWFyZSIgZD0iTTEzIDFsLTIuNSAyLjVMMTMgNiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtc2hhcGUtY2lyY2xlIiB2aWV3Qm94PSIwIDAgMzIgMzIiPgogICAgPGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iMTQuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1zaGFwZS1yZWN0YW5nbGUiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cmVjdCB3aWR0aD0iMjciIGhlaWdodD0iMjciIHg9IjIuNSIgeT0iMi41IiBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIHJ4PSIxIi8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1zaGFwZS10cmlhbmdsZSIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTE2IDIuNWwxNS41IDI3SC41eiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtc2hhcGUiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0xNC43MDYgOEgyMWExIDEgMCAwIDEgMSAxdjEyYTEgMSAwIDAgMS0xIDFIOWExIDEgMCAwIDEtMS0xdi00aDF2NGgxMlY5aC01LjcwNmwtLjU4OC0xeiIvPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGQ9Ik04LjUgMS41bDcuNSAxM0gxeiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtdGV4dC1hbGlnbi1jZW50ZXIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9Im5vbmUiIGQ9Ik0wIDBoMzJ2MzJIMHoiLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTIgNWgyOHYxSDJ6TTggMTJoMTZ2MUg4ek0yIDE5aDI4djFIMnpNOCAyNmgxNnYxSDh6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy10ZXh0LWFsaWduLWxlZnQiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9Im5vbmUiIGQ9Ik0wIDBoMzJ2MzJIMHoiLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTIgNWgyOHYxSDJ6TTIgMTJoMTZ2MUgyek0yIDE5aDI4djFIMnpNMiAyNmgxNnYxSDJ6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy10ZXh0LWFsaWduLXJpZ2h0IiB2aWV3Qm94PSIwIDAgMzIgMzIiPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJub25lIiBkPSJNMCAwaDMydjMySDB6Ii8+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0yIDVoMjh2MUgyek0xNCAxMmgxNnYxSDE0ek0yIDE5aDI4djFIMnpNMTQgMjZoMTZ2MUgxNHoiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLXRleHQtYm9sZCIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0ibm9uZSIgZD0iTTAgMGgzMnYzMkgweiIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNNyAyaDJ2Mkg3ek03IDI4aDJ2Mkg3eiIvPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0IiBzdHJva2Utd2lkdGg9IjIiIGQ9Ik05IDN2MTJoOWE2IDYgMCAxIDAgMC0xMkg5ek05IDE1djE0aDEwYTcgNyAwIDAgMCAwLTE0SDl6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy10ZXh0LWl0YWxpYyIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0ibm9uZSIgZD0iTTAgMGgzMnYzMkgweiIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMTUgMmg1djFoLTV6TTExIDI5aDV2MWgtNXpNMTcgM2gxbC00IDI2aC0xeiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtdGV4dC11bmRlcmxpbmUiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9Im5vbmUiIGQ9Ik0wIDBoMzJ2MzJIMHoiLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTggMnYxNGE4IDggMCAxIDAgMTYgMFYyaDF2MTRhOSA5IDAgMCAxLTE4IDBWMmgxek0zIDI5aDI2djFIM3oiLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTUgMmg1djFINXpNMjIgMmg1djFoLTV6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy10ZXh0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNNCAzaDE1YTEgMSAwIDAgMSAxIDFIM2ExIDEgMCAwIDEgMS0xek0zIDRoMXYxSDN6TTE5IDRoMXYxaC0xeiIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMTEgM2gxdjE4aC0xeiIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMTAgMjBoM3YxaC0zeiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtdW5kbyIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGQ9Ik0yNCAwSDB2MjRoMjR6IiBvcGFjaXR5PSIuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiAvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMyA2aDEyYTYgNiAwIDEgMSAwIDEySDN2MWgxMmE3IDcgMCAwIDAgMC0xNEgzdjF6Ii8+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiIGQ9Ik01IDNMMi41IDUuNSA1IDgiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLXpvb20taW4iIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjI5IC0yOTApIHRyYW5zbGF0ZSgyMjkgMjkwKSI+CiAgICAgICAgPGNpcmNsZSBjeD0iMTAuNSIgY3k9IjEwLjUiIHI9IjkiIHN0cm9rZT0iaW5oZXJpdCIgZmlsbD0ibm9uZSIvPgogICAgICAgIDxwYXRoIGZpbGw9ImluaGVyaXQiIGQ9Ik0xOC44MjggMTUuODI4SDE5LjgyOFYyMi44MjhIMTguODI4eiIgdHJhbnNmb3JtPSJyb3RhdGUoLTQ1IDE5LjMyOCAxOS4zMjgpIi8+CiAgICAgICAgPHBhdGggZmlsbD0iaW5oZXJpdCIgZD0iTTcgMTBIMTRWMTFIN3oiLz4KICAgICAgICA8cGF0aCBmaWxsPSJpbmhlcml0IiBkPSJNMTAgN0gxMVYxNEgxMHoiLz4KICAgIDwvZz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLXpvb20tb3V0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI2MyAtMjkwKSB0cmFuc2xhdGUoMjYzIDI5MCkiPgogICAgICAgIDxjaXJjbGUgY3g9IjEwLjUiIGN5PSIxMC41IiByPSI5IiBzdHJva2U9ImluaGVyaXQiIGZpbGw9Im5vbmUiLz4KICAgICAgICA8cGF0aCBmaWxsPSJpbmhlcml0IiBkPSJNMTguODI4IDE1LjgyOEgxOS44MjhWMjIuODI4SDE4LjgyOHoiIHRyYW5zZm9ybT0icm90YXRlKC00NSAxOS4zMjggMTkuMzI4KSIvPgogICAgICAgIDxwYXRoIGZpbGw9ImluaGVyaXQiIGQ9Ik03IDEwSDE0VjExSDd6Ii8+CiAgICA8L2c+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1oYW5kIiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICAgICAgICA8cGF0aCBmaWxsPSJpbmhlcml0IiBmaWxsLXJ1bGU9Im5vbnplcm8iIGQ9Ik04LjY3MiAzLjM2YzEuMzI4IDAgMi4xMTQuNzggMi4yOSAxLjg2OWwuMDE0LjEwMS4wMjMuMDA2djEuMDQybC0uNjM4LS4xODVjLS4xODctLjA1NS0uMzIzLS4yMTEtLjM1NC0uMzk5TDEwIDUuNzEzYzAtLjgyNS0uNDItMS4zNTMtMS4zMjgtMS4zNTNDNy42OTUgNC4zNiA3IDUuMDQxIDcgNS43MTN2Ny45NDFjMCAuNDM5LS41MjQuNjY1LS44NDMuMzY0bC0xLjg2OC0xLjc2MWMtLjU5NS0uNTI4LTEuMzE2LS42MTctMS45MTgtLjIxNi0uNTIyLjM0OC0uNTYyIDEuMjAzLS4xOCAxLjhMNy43MzggMjJoMTEuMDEzbC4yODUtLjUxOGMxLjI0Ny0yLjMyNiAxLjg5Ny00LjI1OSAxLjk2LTUuNzg1bC4wMDQtLjIzOVY4LjAzNWMwLS42NTYtLjUtMS4xNy0xLTEuMTctLjUwMyAwLTEgLjQ1Ni0xIDEuMTcgMCAuMzMzLS4zMi41NzMtLjY0LjQ4TDE4IDguNDFWNy4zNjhsLjA4Ni4wMjYuMDQyLS4xMzZjLjI3OS0uODA1Ljk3OC0xLjMzMiAxLjczOC0xLjM4OEwyMCA1Ljg2NWMxLjA1NyAwIDIgLjk2NyAyIDIuMTd2Ny40MjNjMCAxLjkyOS0uODQ1IDQuMzUyLTIuNTIxIDcuMjktLjA5LjE1Ni0uMjU1LjI1Mi0uNDM1LjI1Mkg3LjQ3NGMtLjE2NiAwLS4zMjEtLjA4Mi0uNDE0LS4yMTlsLTUuNzA0LTguMzljLS42NTMtMS4wMTktLjU4NC0yLjQ4Ni40Ni0zLjE4MiAxLS42NjYgMi4yMTYtLjUxNiAzLjE0OC4zMUw2IDEyLjQ5NVY1LjcxM2MwLTEuMTggMS4wNTgtMi4yNjMgMi40OS0yLjM0OHoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yOTcgLTI5MCkgdHJhbnNsYXRlKDI5NyAyOTApIi8+CiAgICAgICAgPHBhdGggZmlsbD0iaW5oZXJpdCIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMTIuNSAxLjVjMS4zMjUgMCAyLjQxIDEuMDMyIDIuNDk1IDIuMzM2TDE1IDR2Ny4yMmgtMVY0YzAtLjgyOC0uNjcyLTEuNS0xLjUtMS41LS43OCAwLTEuNDIuNTk1LTEuNDkzIDEuMzU2TDExIDR2Ny4yMmgtMVY0YzAtMS4zOCAxLjEyLTIuNSAyLjUtMi41eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI5NyAtMjkwKSB0cmFuc2xhdGUoMjk3IDI5MCkiLz4KICAgICAgICA8cGF0aCBmaWxsPSJpbmhlcml0IiBmaWxsLXJ1bGU9Im5vbnplcm8iIGQ9Ik0xNi41IDMuNWMxLjMyNSAwIDIuNDEgMS4wMzIgMi40OTUgMi4zMzZMMTkgNnY2LjNoLTFWNmMwLS44MjgtLjY3Mi0xLjUtMS41LTEuNS0uNzggMC0xLjQyLjU5NS0xLjQ5MyAxLjM1NkwxNSA2djIuNDRoLTFWNmMwLTEuMzggMS4xMi0yLjUgMi41LTIuNXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yOTcgLTI5MCkgdHJhbnNsYXRlKDI5NyAyOTApIi8+CiAgICA8L2c+Cjwvc3ltYm9sPgo8L2RlZnM+Cjwvc3ZnPgo="},4858:function(a){a.exports=n},4960:function(){},6759:function(){},6272:function(){}},o={};function s(a){var u=o[a];if(u!==void 0)return u.exports;var c=o[a]={exports:{}};return i[a](c,c.exports,s),c.exports}(function(){s.n=function(a){var u=a&&a.__esModule?function(){return a.default}:function(){return a};return s.d(u,{a:u}),u}})(),function(){s.d=function(a,u){for(var c in u)s.o(u,c)&&!s.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:u[c]})}}(),function(){s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){s.o=function(a,u){return Object.prototype.hasOwnProperty.call(a,u)}}();var r={};return function(){s.d(r,{default:function(){return Oq}});var a=s(9131),u=s.n(a),c=s(1899),l=s.n(c),g=s(6562),C=s.n(g),S=s(1734),_=s.n(S),A=s(8005),y=s.n(A),d=s(6065),v=s.n(d),m=s(4496),f=s.n(m);Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(J){var L=this;do{if(Element.prototype.matches.call(L,J))return L;L=L.parentElement||L.parentNode}while(L!==null&&L.nodeType===1);return null});/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(J){if("Element"in J){var L="classList",x="prototype",M=J.Element[x],I=Object,T=u()(String[x])||function(){return this.replace(/^\s+|\s+$/g,"")},F=l()(Array[x])||function(Ge){for(var Je=0,Ke=this.length;Je<Ke;Je++)if(Je in this&&this[Je]===Ge)return Je;return-1},K=function(Je,Ke){this.name=Je,this.code=DOMException[Je],this.message=Ke},oe=function(Je,Ke){if(Ke==="")throw new K("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(Ke))throw new K("INVALID_CHARACTER_ERR","The token must not contain space characters.");return F.call(Je,Ke)},ie=function(Je){for(var Ke=T.call(Je.getAttribute("class")||""),qe=Ke?Ke.split(/\s+/):[],vt=0,qt=qe.length;vt<qt;vt++)this.push(qe[vt]);this._updateClassName=function(){Je.setAttribute("class",this.toString())}},ke=ie[x]=[],Oe=function(){return new ie(this)};if(K[x]=Error[x],ke.item=function(Ge){return this[Ge]||null},ke.contains=function(Ge){return~oe(this,Ge+"")},ke.add=function(){var Ge=arguments,Je=0,Ke=Ge.length,qe,vt=!1;do qe=Ge[Je]+"",~oe(this,qe)||(this.push(qe),vt=!0);while(++Je<Ke);vt&&this._updateClassName()},ke.remove=function(){var Ge=arguments,Je=0,Ke=Ge.length,qe,vt=!1,qt;do for(qe=Ge[Je]+"",qt=oe(this,qe);~qt;){var tn;C()(tn=this).call(tn,qt,1),vt=!0,qt=oe(this,qe)}while(++Je<Ke);vt&&this._updateClassName()},ke.toggle=function(Ge,Je){var Ke=this.contains(Ge),qe=Ke?Je!==!0&&"remove":Je!==!1&&"add";return qe&&this[qe](Ge),Je===!0||Je===!1?Je:!Ke},ke.replace=function(Ge,Je){var Ke=oe(Ge+"");if(~Ke){var qe;C()(qe=this).call(qe,Ke,1,Je),this._updateClassName()}},ke.toString=function(){return this.join(" ")},_()){var Ze={get:Oe,enumerable:!0,configurable:!0};try{_()(M,L,Ze)}catch(Ge){(Ge.number===void 0||Ge.number===-2146823252)&&(Ze.enumerable=!1,_()(M,L,Ze))}}else I[x].__defineGetter__&&M.__defineGetter__(L,Oe)}}(self),function(){var J=document.createElement("_");if(J.classList.add("c1","c2"),!J.classList.contains("c2")){var L=function(I){var T=DOMTokenList.prototype[I];DOMTokenList.prototype[I]=function(F){var K,oe=arguments.length;for(K=0;K<oe;K++)F=arguments[K],T.call(this,F)}};L("add"),L("remove")}if(J.classList.toggle("c3",!1),J.classList.contains("c3")){var x=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(M,I){return 1 in arguments&&!this.contains(M)==!I?I:x.call(this,M)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(M,I){var T=this.toString().split(" "),F=l()(T).call(T,M+"");~F&&(T=y()(T).call(T,F),this.remove.apply(this,T),this.add(I),this.add.apply(this,y()(T).call(T,1)))}),J=null}());/*!
  546. * @copyright Copyright (c) 2017 IcoMoon.io
  547. * @license Licensed under MIT license
  548. * See https://github.com/Keyamoon/svgxuse
  549. * @version 1.2.6
  550. */(function(){if(typeof window<"u"&&window.addEventListener){var J=v()(null),L,x,M=function(){clearTimeout(x),x=f()(L,100)},I=function(){},T=function(){var ke;window.addEventListener("resize",M,!1),window.addEventListener("orientationchange",M,!1),window.MutationObserver?(ke=new MutationObserver(M),ke.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),I=function(){try{ke.disconnect(),window.removeEventListener("resize",M,!1),window.removeEventListener("orientationchange",M,!1)}catch{}}):(document.documentElement.addEventListener("DOMSubtreeModified",M,!1),I=function(){document.documentElement.removeEventListener("DOMSubtreeModified",M,!1),window.removeEventListener("resize",M,!1),window.removeEventListener("orientationchange",M,!1)})},F=function(ke){function Oe(Ke){var qe;return Ke.protocol!==void 0?qe=Ke:(qe=document.createElement("a"),qe.href=Ke),qe.protocol.replace(/:/g,"")+qe.host}var Ze,Ge,Je;return window.XMLHttpRequest&&(Ze=new XMLHttpRequest,Ge=Oe(location),Je=Oe(ke),Ze.withCredentials===void 0&&Je!==""&&Je!==Ge?Ze=XDomainRequest||void 0:Ze=XMLHttpRequest),Ze},K="http://www.w3.org/1999/xlink";L=function(){var ke,Oe,Ze,Ge,Je,Ke=0,qe,vt,qt,tn,on;function Lt(){Ke-=1,Ke===0&&(I(),T())}function Rn(Ei){return function(){J[Ei.base]!==!0&&(Ei.useEl.setAttributeNS(K,"xlink:href","#"+Ei.hash),Ei.useEl.hasAttribute("href")&&Ei.useEl.setAttribute("href","#"+Ei.hash))}}function wr(Ei){return function(){var vs=document.body,Hl=document.createElement("x"),po;Ei.onload=null,Hl.innerHTML=Ei.responseText,po=Hl.getElementsByTagName("svg")[0],po&&(po.setAttribute("aria-hidden","true"),po.style.position="absolute",po.style.width=0,po.style.height=0,po.style.overflow="hidden",vs.insertBefore(po,vs.firstChild)),Lt()}}function ho(Ei){return function(){Ei.onerror=null,Ei.ontimeout=null,Lt()}}for(I(),tn=document.getElementsByTagName("use"),Je=0;Je<tn.length;Je+=1){try{Oe=tn[Je].getBoundingClientRect()}catch{Oe=!1}Ge=tn[Je].getAttribute("href")||tn[Je].getAttributeNS(K,"href")||tn[Je].getAttribute("xlink:href"),Ge&&Ge.split?qt=Ge.split("#"):qt=["",""],ke=qt[0],Ze=qt[1],qe=Oe&&Oe.left===0&&Oe.right===0&&Oe.top===0&&Oe.bottom===0,Oe&&Oe.width===0&&Oe.height===0&&!qe?(tn[Je].hasAttribute("href")&&tn[Je].setAttributeNS(K,"xlink:href",Ge),ke.length&&(on=J[ke],on!==!0&&f()(Rn({useEl:tn[Je],base:ke,hash:Ze}),0),on===void 0&&(vt=F(ke),vt!==void 0&&(on=new vt,J[ke]=on,on.onload=wr(on),on.onerror=ho(on),on.ontimeout=ho(on),on.open("GET",ke),on.send(),Ke+=1)))):qe?ke.length&&J[ke]&&f()(Rn({useEl:tn[Je],base:ke,hash:Ze}),0):J[ke]===void 0?J[ke]=!0:J[ke].onload&&(J[ke].abort(),delete J[ke].onload,J[ke]=!0)}tn="",Ke+=1,Lt()};var oe;oe=function(){window.removeEventListener("load",oe,!1),x=f()(L,0)},document.readyState!=="complete"?window.addEventListener("load",oe,!1):oe()}})();var p=s(1845);function h(J,L){(L==null||L>J.length)&&(L=J.length);for(var x=0,M=new Array(L);x<L;x++)M[x]=J[x];return M}function b(J){if(p(J))return h(J)}var w=s(184),k=s(662),$=s(7172);function E(J){if(typeof w<"u"&&k(J)!=null||J["@@iterator"]!=null)return $(J)}var N=s(711);function j(J,L){var x;if(J){if(typeof J=="string")return h(J,L);var M=N(x=Object.prototype.toString.call(J)).call(x,8,-1);if(M==="Object"&&J.constructor&&(M=J.constructor.name),M==="Map"||M==="Set")return $(J);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return h(J,L)}}function z(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  551. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V(J){return b(J)||E(J)||j(J)||z()}var W=s(7077);function H(J,L,x){return L in J?W(J,L,{value:x,enumerable:!0,configurable:!0,writable:!0}):J[L]=x,J}function U(J,L){if(!(J instanceof L))throw new TypeError("Cannot call a class as a function")}function Q(J,L){for(var x=0;x<L.length;x++){var M=L[x];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),W(J,M.key,M)}}function q(J,L,x){return L&&Q(J.prototype,L),x&&Q(J,x),J}var ae=s(4426),ne=s.n(ae),be=s(9406),te=s.n(be),Ie=s(8189),$e=s.n(Ie),Me=s(3972),ge=s.n(Me),Se=s(2777),fe=s(961),pe=s.n(fe),je=s(5695),Y=s.n(je),Z=s(8592),ee=s.n(Z),ce=s(9052),xe=s.n(ce),re=s(2560),le=s.n(re),ve=s(2461),De=s.n(ve);function Ee(J){if(p(J))return J}function we(J,L){var x=J==null?null:typeof w<"u"&&k(J)||J["@@iterator"];if(x!=null){var M=[],I=!0,T=!1,F,K;try{for(x=x.call(J);!(I=(F=x.next()).done)&&(M.push(F.value),!(L&&M.length===L));I=!0);}catch(oe){T=!0,K=oe}finally{try{!I&&x.return!=null&&x.return()}finally{if(T)throw K}}return M}}function me(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  552. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ae(J,L){return Ee(J)||we(J,L)||j(J,L)||me()}var Fe=s(6397),Ne=s.n(Fe),ze=s(7636),Ue=s.n(ze),et=s(789),Xe=s.n(et),yt=s(4729),Et=s.n(yt),nt=s(1610),St=s.n(nt),bt=s(3053),It=s.n(bt),Mt,Rt=["zoomIn","zoomOut","hand"],mn=["history","undo","redo","reset"],xn=["delete","deleteAll"],dt=te()(Mt=[]).call(Mt,Rt,mn,xn),ht={FILTER:"filter",COLOR:"color"},$t=["rect","circle","triangle"],Pt={CROPZONE:"cropzone"},zt={VINTAGE:"vintage",SEPIA2:"sepia2",REMOVE_COLOR:"removeColor",COLOR_FILTER:"colorFilter",REMOVE_WHITE:"removeWhite",BLEND_COLOR:"blendColor",BLEND:"blend"},kt=Zt("IMAGE_LOADER","CROPPER","FLIP","ROTATION","FREE_DRAWING","LINE","TEXT","ICON","FILTER","SHAPE","ZOOM","RESIZE"),At={lockSkewingX:!0,lockSkewingY:!0,bringForward:!0,isRegular:!1},Gt={hasRotatingPoint:!1,hasBorders:!1,lockScalingFlip:!0,lockRotation:!0,lockSkewingX:!0,lockSkewingY:!0},Tt={CLEAR_OBJECTS:"clearObjects",LOAD_IMAGE:"loadImage",FLIP_IMAGE:"flip",ROTATE_IMAGE:"rotate",ADD_OBJECT:"addObject",REMOVE_OBJECT:"removeObject",APPLY_FILTER:"applyFilter",REMOVE_FILTER:"removeFilter",ADD_ICON:"addIcon",CHANGE_ICON_COLOR:"changeIconColor",ADD_SHAPE:"addShape",CHANGE_SHAPE:"changeShape",ADD_TEXT:"addText",CHANGE_TEXT:"changeText",CHANGE_TEXT_STYLE:"changeTextStyle",ADD_IMAGE_OBJECT:"addImageObject",RESIZE_CANVAS_DIMENSION:"resizeCanvasDimension",SET_OBJECT_PROPERTIES:"setObjectProperties",SET_OBJECT_POSITION:"setObjectPosition",CHANGE_SELECTION:"changeSelection",RESIZE_IMAGE:"resize"},st={OBJECT_ACTIVATED:"objectActivated",OBJECT_MOVED:"objectMoved",OBJECT_SCALED:"objectScaled",OBJECT_CREATED:"objectCreated",OBJECT_ROTATED:"objectRotated",OBJECT_ADDED:"objectAdded",OBJECT_MODIFIED:"objectModified",TEXT_EDITING:"textEditing",TEXT_CHANGED:"textChanged",ICON_CREATE_RESIZE:"iconCreateResize",ICON_CREATE_END:"iconCreateEnd",ADD_TEXT:"addText",ADD_OBJECT:"addObject",ADD_OBJECT_AFTER:"addObjectAfter",MOUSE_DOWN:"mousedown",MOUSE_UP:"mouseup",MOUSE_MOVE:"mousemove",REDO_STACK_CHANGED:"redoStackChanged",UNDO_STACK_CHANGED:"undoStackChanged",SELECTION_CLEARED:"selectionCleared",SELECTION_CREATED:"selectionCreated",EXECUTE_COMMAND:"executeCommand",AFTER_UNDO:"afterUndo",AFTER_REDO:"afterRedo",ZOOM_CHANGED:"zoomChanged",HAND_STARTED:"handStarted",HAND_STOPPED:"handStopped",KEY_DOWN:"keydown",KEY_UP:"keyup",INPUT_BOX_EDITING_STARTED:"inputBoxEditingStarted",INPUT_BOX_EDITING_STOPPED:"inputBoxEditingStopped",FOCUS:"focus",BLUR:"blur",IMAGE_RESIZED:"imageResized"},wn={COLOR_PICKER_INPUT_BOX:".tui-colorpicker-palette-hex"},pn={LOAD_IMAGE:"Load",LOAD_MASK_IMAGE:"Mask",ADD_MASK_IMAGE:"Mask",ADD_IMAGE_OBJECT:"Mask",CROP:"Crop",RESIZE:"Resize",APPLY_FILTER:"Filter",REMOVE_FILTER:"Filter",CHANGE_SHAPE:"Shape",CHANGE_ICON_COLOR:"Icon",ADD_TEXT:"Text",CHANGE_TEXT_STYLE:"Text",REMOVE_OBJECT:"Delete",CLEAR_OBJECTS:"Delete"},bn=Zt("NORMAL","CROPPER","FREE_DRAWING","LINE_DRAWING","TEXT","SHAPE","ICON","ZOOM","RESIZE"),Ji={TEXT:"text",CROP:"crop",RESIZE:"resize",SHAPE:"shape",ZOOM:"zoom"},yi={DEFAULT:"normal",ZOOM:"zoom",HAND:"hand"},Zn={Z:90,Y:89,C:67,V:86,SHIFT:16,BACKSPACE:8,DEL:46,ARROW_DOWN:40,ARROW_UP:38,SPACE:32,DIGIT_0:48,DIGIT_9:57},Vi={SELECTION_STYLE:{borderColor:"red",cornerColor:"green",cornerSize:10,originX:"center",originY:"center",transparentCorners:!1}},kn={addedObject:"The object is already added.",flip:"The flipX and flipY setting values are not changed.",invalidDrawingMode:"This operation is not supported in the drawing mode.",invalidParameters:"Invalid parameters.",isLock:"The executing command state is locked.",loadImage:"The background image is empty.",loadingImageFailed:"Invalid image loaded.",noActiveObject:"There is no active object.",noObject:"The object is not in canvas.",redo:"The promise of redo command is reject.",rotation:"The current angle is same the old angle.",undo:"The promise of undo command is reject.",unsupportedOperation:"Unsupported operation.",unsupportedType:"Unsupported object type."},Go={"icon-arrow":"M40 12V0l24 24-24 24V36H0V12h40z","icon-arrow-2":"M49,32 H3 V22 h46 l-18,-18 h12 l23,23 L43,50 h-12 l18,-18 z ","icon-arrow-3":"M43.349998,27 L17.354,53 H1.949999 l25.996,-26 L1.949999,1 h15.404 L43.349998,27 z ","icon-star":"M35,54.557999 l-19.912001,10.468 l3.804,-22.172001 l-16.108,-15.7 l22.26,-3.236 L35,3.746 l9.956,20.172001 l22.26,3.236 l-16.108,15.7 l3.804,22.172001 z ","icon-star-2":"M17,31.212 l-7.194,4.08 l-4.728,-6.83 l-8.234,0.524 l-1.328,-8.226 l-7.644,-3.14 l2.338,-7.992 l-5.54,-6.18 l5.54,-6.176 l-2.338,-7.994 l7.644,-3.138 l1.328,-8.226 l8.234,0.522 l4.728,-6.83 L17,-24.312 l7.194,-4.08 l4.728,6.83 l8.234,-0.522 l1.328,8.226 l7.644,3.14 l-2.338,7.992 l5.54,6.178 l-5.54,6.178 l2.338,7.992 l-7.644,3.14 l-1.328,8.226 l-8.234,-0.524 l-4.728,6.83 z ","icon-polygon":"M3,31 L19,3 h32 l16,28 l-16,28 H19 z ","icon-location":"M24 62C8 45.503 0 32.837 0 24 0 10.745 10.745 0 24 0s24 10.745 24 24c0 8.837-8 21.503-24 38zm0-28c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10z","icon-heart":"M49.994999,91.349998 l-6.96,-6.333 C18.324001,62.606995 2.01,47.829002 2.01,29.690998 C2.01,14.912998 13.619999,3.299999 28.401001,3.299999 c8.349,0 16.362,5.859 21.594,12 c5.229,-6.141 13.242001,-12 21.591,-12 c14.778,0 26.390999,11.61 26.390999,26.390999 c0,18.138 -16.314001,32.916 -41.025002,55.374001 l-6.96,6.285 z ","icon-bubble":"M44 48L34 58V48H12C5.373 48 0 42.627 0 36V12C0 5.373 5.373 0 12 0h40c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12h-8z"},zl={realTimeEvent:!0,min:-360,max:360,value:0},Rl={min:5,max:30,value:12},Oa={realTimeEvent:!0,min:2,max:300,value:3},bi={realTimeEvent:!0,min:10,max:100,value:50},Dr={tintOpacityRange:{realTimeEvent:!0,min:0,max:1,value:.7,useDecimal:!0},removewhiteDistanceRange:{realTimeEvent:!0,min:0,max:1,value:.2,useDecimal:!0},brightnessRange:{realTimeEvent:!0,min:-1,max:1,value:0,useDecimal:!0},noiseRange:{realTimeEvent:!0,min:0,max:1e3,value:100},pixelateRange:{realTimeEvent:!0,min:2,max:20,value:4},colorfilterThresholdRange:{realTimeEvent:!0,min:0,max:1,value:.2,useDecimal:!0},blurFilterRange:{value:.1}},hs={LEFT:0,TOP:0,WIDTH:.5,HEIGHT:.5},uo={realTimeEvent:!0,min:32,max:4088,value:800},hi=2,xt="tui-image-editor-",Ht=Math.min,Be=Math.max,rt=!1,at=0;function mt(J){return J.__fe_id||(at+=1,J.__fe_id=at),J.__fe_id}function wt(J){return typeof J=="function"}function Qt(J,L,x){if(L>x){var M=[x,L];L=M[0],x=M[1]}return Be(L,Ht(J,x))}function Zt(){for(var J={},L=arguments.length,x=new Array(L),M=0;M<L;M++)x[M]=arguments[M];return ee()(x,function(I){J[I]=I}),J}function Ln(J,L){var x={},M=L.length,I=0,T;for(I=0;I<M;I+=1)T=L[I],x[T]=J[T];return x}function $n(J){return Ne()(J,10)}function ci(J){return J.replace(/-([a-z])/g,function(L,x){return x.toUpperCase()})}function Hi(){return!!(window.File&&window.FileList&&window.FileReader)}function _t(J,L){var x,M,I;if(J.length===4){var T;J=te()(T="".concat(J)).call(T,y()(J).call(J,1,4))}var F=Ne()(y()(J).call(J,1,3),16),K=Ne()(y()(J).call(J,3,5),16),oe=Ne()(y()(J).call(J,5,7),16),ie=L||1;return te()(x=te()(M=te()(I="rgba(".concat(F,", ")).call(I,K,", ")).call(M,oe,", ")).call(x,ie,")")}function Ci(){rt||(rt=!0,Et()("image-editor","UA-129999381-1"))}function fo(J,L){var x=document.getElementsByTagName("head"),M=Ae(x,1),I=M[0],T=document.createElement("link"),F=encodeURIComponent(J);L&&(T.id=L),T.setAttribute("rel","stylesheet"),T.setAttribute("type","text/css"),T.setAttribute("href","data:text/css;charset=UTF-8,".concat(F)),I.appendChild(T)}function fu(J){return function(L){return J.querySelector(L)}}function Si(J){var L=/data:(image\/.+);base64,/,x="",M,I,T;M=J.replace(L,function(K,oe){return x=oe,""}),M=atob(M);var F=M.length;for(I=new Uint8Array(F),T=0;T<F;T+=1)I[T]=M.charCodeAt(T);return new Blob([I],{type:x})}function yf(J){return Number(J.toFixed(hi))}function Li(J){ee()(J,function(L,x){J[x]=null})}function om(){var J,L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(L.charAt(0)==="."){var M;return te()(M=".".concat(xt).concat(x)).call(M,y()(L).call(L,1))}return te()(J="".concat(xt).concat(x)).call(J,L)}function jO(J,L){var x=L.originX,M=L.originY,I=J.getPointByOrigin(x,M),T=I.x,F=I.y;J.set({left:T,top:F,originX:x,originY:M}),J.setCoords()}function A1(J){var L,x={};return Ue()(L=De()(J)).call(L,function(M){x[J[M]]=M}),x}function sm(J,L){J.customProps=J.customProps||{},pe()(J.customProps,L)}function hu(J,L){var x={};return le()(L)&&(L=[L]),ee()(L,function(M){x[M]=J.customProps[M]}),x}function bf(J){return J.charAt(0).toUpperCase()+y()(J).call(J,1)}function Bl(J,L){return l()(J).call(J,L)>=0}function am(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return St()(J,"type")||ht.COLOR}function La(J){var L=Xe()(J),x=L===void 0?{}:L;return x.source?ht.FILTER:ht.COLOR}function lm(J){return It()(J.get("type"),$t)>=0}function cm(J){if(Bl($t,J))return"Shape";switch(J){case"i-text":return"Text";case"path":case"line":return"Draw";case"activeSelection":return"Group";default:return T1(J)}}function jw(J){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=L.useAlpha,M=x===void 0?!0:x,I=L.mode,T=zt.VINTAGE,F=zt.REMOVE_COLOR,K=zt.BLEND_COLOR,oe=zt.SEPIA2,ie=zt.COLOR_FILTER,ke=zt.REMOVE_WHITE,Oe=zt.BLEND,Ze;switch(J){case T:Ze=oe;break;case F:Ze=M?ie:ke;break;case K:Ze=I==="add"?Oe:I;break;default:Ze=J}return T1(Ze)}function E1(J){var L=Tt.LOAD_IMAGE;return typeof J=="string"?L===J:L===J.name}function zw(J){var L,x,M=Tt.FLIP_IMAGE,I=Tt.ROTATE_IMAGE,T=Tt.ADD_TEXT,F=Tt.APPLY_FILTER,K=Tt.REMOVE_FILTER,oe=Tt.CHANGE_SHAPE,ie=Tt.CHANGE_ICON_COLOR,ke=Tt.CHANGE_TEXT_STYLE,Oe=Tt.CLEAR_OBJECTS,Ze=Tt.ADD_IMAGE_OBJECT,Ge=Tt.REMOVE_OBJECT,Je=Tt.RESIZE_IMAGE,Ke=J.name,qe=J.args,vt;switch(Ke){case M:vt={name:Ke,detail:qe[1]==="reset"?qe[1]:y()(L=qe[1]).call(L,4)};break;case I:vt={name:Ke,detail:qe[2]};break;case F:vt={name:pn.APPLY_FILTER,detail:jw(qe[1],qe[2])};break;case K:vt={name:pn.REMOVE_FILTER,detail:"Remove"};break;case oe:vt={name:pn.CHANGE_SHAPE,detail:"Change"};break;case ie:vt={name:pn.CHANGE_ICON_COLOR,detail:"Change"};break;case ke:vt={name:pn.CHANGE_TEXT_STYLE,detail:"Change"};break;case Ge:vt={name:pn.REMOVE_OBJECT,detail:qe[2]};break;case Oe:vt={name:pn.CLEAR_OBJECTS,detail:"All"};break;case Ze:vt={name:pn.ADD_IMAGE_OBJECT,detail:"Add"};break;case T:vt={name:pn.ADD_TEXT};break;case Je:vt={name:pn.RESIZE,detail:te()(x="".concat(~~qe[1].width,"x")).call(x,~~qe[1].height)};break;default:vt={name:Ke};break}return qe[1]==="mask"&&(vt={name:pn.LOAD_MASK_IMAGE,detail:"Apply"}),vt}function M1(J){return J==="top"?"bottom":J==="left"?"right":J==="right"?"left":"top"}function T1(J){return J.replace(/[a-z]/,function(L){return L.toUpperCase()})}function P1(J){var L=J.left,x=J.top,M=J.width,I=J.height,T=hs.LEFT,F=hs.TOP,K=hs.WIDTH,oe=hs.HEIGHT;return L===T&&x===F&&M===K&&I===oe}var O1=Zt("UN_IMPLEMENTATION","NO_COMPONENT_NAME"),um={UN_IMPLEMENTATION:"Should implement a method: ",NO_COMPONENT_NAME:"Should set a component name"},L1={UN_IMPLEMENTATION:function(L){return um.UN_IMPLEMENTATION+L},NO_COMPONENT_NAME:function(){return um.NO_COMPONENT_NAME}},Da={types:pe()({},O1),create:function(L){L=L.toLowerCase();for(var x=L1[L],M=arguments.length,I=new Array(M>1?M-1:0),T=1;T<M;T++)I[T-1]=arguments[T];return x.apply(void 0,I)}},D1=Da.create,dm=Da.types,N1=function(){function J(L,x){U(this,J),this.name=L.name,this.args=x,this.execute=L.execute,this.undo=L.undo,this.executeCallback=L.executeCallback||null,this.undoCallback=L.undoCallback||null,this.undoData={}}return q(J,[{key:"execute",value:function(){throw new Error(D1(dm.UN_IMPLEMENTATION,"execute"))}},{key:"undo",value:function(){throw new Error(D1(dm.UN_IMPLEMENTATION,"undo"))}},{key:"isRedo",get:function(){return De()(this.undoData).length>0}},{key:"setUndoData",value:function(x,M,I){return M&&(x=M),I?M||(M=x):(pe()(this.undoData,x),M=null),M}},{key:"setExecuteCallback",value:function(x){return this.executeCallback=x,this}},{key:"setUndoCallback",value:function(x){return this.undoCallback=x,this}}]),J}(),Rw=N1,kf={};function j1(J){var L=kf[J];if(L){for(var x=arguments.length,M=new Array(x>1?x-1:0),I=1;I<x;I++)M[I-1]=arguments[I];return new Rw(L,M)}return null}function z1(J){kf[J.name]=J}var ri={create:j1,register:z1},fm=function(){function J(){U(this,J),this._undoStack=[],this._redoStack=[],this._isLocked=!1,this._isSilent=!1}return q(J,[{key:"_invokeExecution",value:function(x){var M=this,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this.lock();var T=x.args;return T||(T=[]),x.execute.apply(x,V(T)).then(function(F){return M._isSilent||(M.pushUndoStack(x),M.fire(I?st.AFTER_REDO:st.EXECUTE_COMMAND,x)),M.unlock(),wt(x.executeCallback)&&x.executeCallback(F),F}).catch(function(F){return M.unlock(),$e().reject(F)})}},{key:"_invokeUndo",value:function(x){var M=this;this.lock();var I=x.args;return I||(I=[]),x.undo.apply(x,V(I)).then(function(T){return M.pushRedoStack(x),M.fire(st.AFTER_UNDO,x),M.unlock(),wt(x.undoCallback)&&x.undoCallback(T),T}).catch(function(T){return M.unlock(),$e().reject(T)})}},{key:"_fireRedoStackChanged",value:function(){this.fire(st.REDO_STACK_CHANGED,this._redoStack.length)}},{key:"_fireUndoStackChanged",value:function(){this.fire(st.UNDO_STACK_CHANGED,this._undoStack.length)}},{key:"lock",value:function(){this._isLocked=!0}},{key:"unlock",value:function(){this._isLocked=!1}},{key:"executeSilent",value:function(){var x=this;this._isSilent=!0;for(var M=arguments.length,I=new Array(M),T=0;T<M;T++)I[T]=arguments[T];return this.execute.apply(this,te()(I).call(I,[this._isSilent])).then(function(){x._isSilent=!1})}},{key:"execute",value:function(){var x=this;if(this._isLocked)return $e().reject(kn.isLock);for(var M=arguments.length,I=new Array(M),T=0;T<M;T++)I[T]=arguments[T];var F=I[0];return le()(F)&&(F=ri.create.apply(ri,I)),this._invokeExecution(F).then(function(K){return x.clearRedoStack(),K})}},{key:"undo",value:function(){var x=this._undoStack.pop(),M,I="";if(x&&this._isLocked&&(this.pushUndoStack(x,!0),x=null),x)this.isEmptyUndoStack()&&this._fireUndoStackChanged(),M=this._invokeUndo(x);else{if(I=kn.undo,this._isLocked){var T;I=te()(T="".concat(I," Because ")).call(T,kn.isLock)}M=$e().reject(I)}return M}},{key:"redo",value:function(){var x=this._redoStack.pop(),M,I="";if(x&&this._isLocked&&(this.pushRedoStack(x,!0),x=null),x)this.isEmptyRedoStack()&&this._fireRedoStackChanged(),M=this._invokeExecution(x,!0);else{if(I=kn.redo,this._isLocked){var T;I=te()(T="".concat(I," Because ")).call(T,kn.isLock)}M=$e().reject(I)}return M}},{key:"pushUndoStack",value:function(x,M){this._undoStack.push(x),M||this._fireUndoStackChanged()}},{key:"pushRedoStack",value:function(x,M){this._redoStack.push(x),M||this._fireRedoStackChanged()}},{key:"isEmptyRedoStack",value:function(){return this._redoStack.length===0}},{key:"isEmptyUndoStack",value:function(){return this._undoStack.length===0}},{key:"clearUndoStack",value:function(){this.isEmptyUndoStack()||(this._undoStack=[],this._fireUndoStackChanged())}},{key:"clearRedoStack",value:function(){this.isEmptyRedoStack()||(this._redoStack=[],this._fireRedoStackChanged())}}]),J}();xe().mixin(fm);var R1=fm,Bw=s(5214),Na=s.n(Bw),Ye=function(J){var L,x,M,I,T,F,K,oe=J.locale,ie=J.biImage,ke=J.commonStyle,Oe=J.headerStyle,Ze=J.loadButtonStyle,Ge=J.downloadButtonStyle,Je=J.submenuStyle;return te()(L=te()(x=te()(M=te()(I=te()(T=te()(F=te()(K=`
  553. <div class="tui-image-editor-main-container" style="`.concat(ke,`">
  554. <div class="tui-image-editor-header" style="`)).call(K,Oe,`">
  555. <div class="tui-image-editor-header-logo">
  556. <img src="`)).call(F,ie,`" />
  557. </div>
  558. <div class="tui-image-editor-header-buttons">
  559. <div style="`)).call(T,Ze,`">
  560. `)).call(I,oe.localize("Load"),`
  561. <input type="file" class="tui-image-editor-load-btn" />
  562. </div>
  563. <button class="tui-image-editor-download-btn" style="`)).call(M,Ge,`">
  564. `)).call(x,oe.localize("Download"),`
  565. </button>
  566. </div>
  567. </div>
  568. <div class="tui-image-editor-main">
  569. <div class="tui-image-editor-submenu">
  570. <div class="tui-image-editor-submenu-style" style="`)).call(L,Je,`"></div>
  571. </div>
  572. <div class="tui-image-editor-wrap">
  573. <div class="tui-image-editor-size-wrap">
  574. <div class="tui-image-editor-align-wrap">
  575. <div class="tui-image-editor"></div>
  576. </div>
  577. </div>
  578. </div>
  579. </div>
  580. </div>
  581. `)},ot=function(J){var L,x,M,I,T,F=J.locale,K=J.biImage,oe=J.loadButtonStyle,ie=J.downloadButtonStyle,ke=J.menuBarPosition;return te()(L=te()(x=te()(M=te()(I=te()(T=`
  582. <ul class="tui-image-editor-help-menu `.concat(M1(ke),`"></ul>
  583. <div class="tui-image-editor-controls">
  584. <div class="tui-image-editor-controls-logo">
  585. <img src="`)).call(T,K,`" />
  586. </div>
  587. <ul class="tui-image-editor-menu"></ul>
  588. <div class="tui-image-editor-controls-buttons">
  589. <div style="`)).call(I,oe,`">
  590. `)).call(M,F.localize("Load"),`
  591. <input type="file" class="tui-image-editor-load-btn" />
  592. </div>
  593. <button class="tui-image-editor-download-btn" style="`)).call(x,ie,`">
  594. `)).call(L,F.localize("Download"),`
  595. </button>
  596. </div>
  597. </div>
  598. `)},Ct=s(899),Ot=s.n(Ct),Bt=function(J){var L,x,M,I,T,F,K,oe,ie,ke,Oe,Ze,Ge,Je,Ke,qe,vt,qt,tn,on,Lt,Rn,wr,ho,Ei,vs,Hl,po,gm,Z1=J.subMenuLabelActive,G1=J.subMenuLabelNormal,Y1=J.subMenuRangeTitle,X1=J.submenuPartitionVertical,K1=J.submenuPartitionHorizontal,J1=J.submenuCheckbox,q1=J.submenuRangePointer,Q1=J.submenuRangeValue,ey=J.submenuColorpickerTitle,ty=J.submenuColorpickerButton,ny=J.submenuRangeBar,iy=J.submenuRangeSubbar,ry=J.submenuDisabledRangePointer,oy=J.submenuDisabledRangeBar,sy=J.submenuDisabledRangeSubbar,ay=J.submenuIconSize,ly=J.menuIconSize,cy=J.biSize,gs=J.menuIconStyle,mu=J.submenuIconStyle;return te()(L=te()(x=te()(M=te()(I=te()(T=te()(F=te()(K=te()(oe=te()(ie=te()(ke=te()(Oe=te()(Ze=te()(Ge=te()(Je=te()(Ke=te()(qe=te()(vt=te()(qt=te()(tn=te()(on=te()(Lt=te()(Rn=te()(wr=te()(ho=te()(Ei=te()(vs=te()(Hl=te()(po=te()(gm=`
  599. .tie-icon-add-button.icon-bubble .tui-image-editor-button[data-icontype="icon-bubble"] label,
  600. .tie-icon-add-button.icon-heart .tui-image-editor-button[data-icontype="icon-heart"] label,
  601. .tie-icon-add-button.icon-location .tui-image-editor-button[data-icontype="icon-location"] label,
  602. .tie-icon-add-button.icon-polygon .tui-image-editor-button[data-icontype="icon-polygon"] label,
  603. .tie-icon-add-button.icon-star .tui-image-editor-button[data-icontype="icon-star"] label,
  604. .tie-icon-add-button.icon-star-2 .tui-image-editor-button[data-icontype="icon-star-2"] label,
  605. .tie-icon-add-button.icon-arrow-3 .tui-image-editor-button[data-icontype="icon-arrow-3"] label,
  606. .tie-icon-add-button.icon-arrow-2 .tui-image-editor-button[data-icontype="icon-arrow-2"] label,
  607. .tie-icon-add-button.icon-arrow .tui-image-editor-button[data-icontype="icon-arrow"] label,
  608. .tie-icon-add-button.icon-bubble .tui-image-editor-button[data-icontype="icon-bubble"] label,
  609. .tie-draw-line-select-button.line .tui-image-editor-button.line label,
  610. .tie-draw-line-select-button.free .tui-image-editor-button.free label,
  611. .tie-flip-button.flipX .tui-image-editor-button.flipX label,
  612. .tie-flip-button.flipY .tui-image-editor-button.flipY label,
  613. .tie-flip-button.resetFlip .tui-image-editor-button.resetFlip label,
  614. .tie-crop-button .tui-image-editor-button.apply.active label,
  615. .tie-crop-preset-button .tui-image-editor-button.preset.active label,
  616. .tie-resize-button .tui-image-editor-button.apply.active label,
  617. .tie-resize-preset-button .tui-image-editor-button.preset.active label,
  618. .tie-shape-button.rect .tui-image-editor-button.rect label,
  619. .tie-shape-button.circle .tui-image-editor-button.circle label,
  620. .tie-shape-button.triangle .tui-image-editor-button.triangle label,
  621. .tie-text-effect-button .tui-image-editor-button.active label,
  622. .tie-text-align-button.tie-text-align-left .tui-image-editor-button.left label,
  623. .tie-text-align-button.tie-text-align-center .tui-image-editor-button.center label,
  624. .tie-text-align-button.tie-text-align-right .tui-image-editor-button.right label,
  625. .tie-mask-apply.apply.active .tui-image-editor-button.apply label,
  626. .tui-image-editor-container .tui-image-editor-submenu .tui-image-editor-button:hover > label,
  627. .tui-image-editor-container .tui-image-editor-checkbox label > span {
  628. `.concat(Z1,`
  629. }
  630. .tui-image-editor-container .tui-image-editor-submenu .tui-image-editor-button > label,
  631. .tui-image-editor-container .tui-image-editor-range-wrap.tui-image-editor-newline.short label,
  632. .tui-image-editor-container .tui-image-editor-range-wrap.tui-image-editor-newline.short label > span {
  633. `)).call(gm,G1,`
  634. }
  635. .tui-image-editor-container .tui-image-editor-range-wrap label > span {
  636. `)).call(po,Y1,`
  637. }
  638. .tui-image-editor-container .tui-image-editor-partition > div {
  639. `)).call(Hl,X1,`
  640. }
  641. .tui-image-editor-container.left .tui-image-editor-submenu .tui-image-editor-partition > div,
  642. .tui-image-editor-container.right .tui-image-editor-submenu .tui-image-editor-partition > div {
  643. `)).call(vs,K1,`
  644. }
  645. .tui-image-editor-container .tui-image-editor-checkbox label > span:before {
  646. `)).call(Ei,J1,`
  647. }
  648. .tui-image-editor-container .tui-image-editor-checkbox label > input:checked + span:before {
  649. border: 0;
  650. }
  651. .tui-image-editor-container .tui-image-editor-virtual-range-pointer {
  652. `)).call(ho,q1,`
  653. }
  654. .tui-image-editor-container .tui-image-editor-virtual-range-bar {
  655. `)).call(wr,ny,`
  656. }
  657. .tui-image-editor-container .tui-image-editor-virtual-range-subbar {
  658. `)).call(Rn,iy,`
  659. }
  660. .tui-image-editor-container .tui-image-editor-disabled .tui-image-editor-virtual-range-pointer {
  661. `)).call(Lt,ry,`
  662. }
  663. .tui-image-editor-container .tui-image-editor-disabled .tui-image-editor-virtual-range-subbar {
  664. `)).call(on,sy,`
  665. }
  666. .tui-image-editor-container .tui-image-editor-disabled .tui-image-editor-virtual-range-bar {
  667. `)).call(tn,oy,`
  668. }
  669. .tui-image-editor-container .tui-image-editor-range-value {
  670. `)).call(qt,Q1,`
  671. }
  672. .tui-image-editor-container .tui-image-editor-submenu .tui-image-editor-button .color-picker-value + label {
  673. `)).call(vt,ey,`
  674. }
  675. .tui-image-editor-container .tui-image-editor-submenu .tui-image-editor-button .color-picker-value {
  676. `)).call(qe,ty,`
  677. }
  678. .tui-image-editor-container .svg_ic-menu {
  679. `)).call(Ke,ly,`
  680. }
  681. .tui-image-editor-container .svg_ic-submenu {
  682. `)).call(Je,ay,`
  683. }
  684. .tui-image-editor-container .tui-image-editor-controls-logo > img,
  685. .tui-image-editor-container .tui-image-editor-header-logo > img {
  686. `)).call(Ge,cy,`
  687. }
  688. .tui-image-editor-menu use.normal.use-default,
  689. .tui-image-editor-help-menu use.normal.use-default {
  690. fill-rule: evenodd;
  691. fill: `)).call(Ze,gs.normal.color,`;
  692. stroke: `)).call(Oe,gs.normal.color,`;
  693. }
  694. .tui-image-editor-menu use.active.use-default,
  695. .tui-image-editor-help-menu use.active.use-default {
  696. fill-rule: evenodd;
  697. fill: `)).call(ke,gs.active.color,`;
  698. stroke: `)).call(ie,gs.active.color,`;
  699. }
  700. .tui-image-editor-menu use.hover.use-default,
  701. .tui-image-editor-help-menu use.hover.use-default {
  702. fill-rule: evenodd;
  703. fill: `)).call(oe,gs.hover.color,`;
  704. stroke: `)).call(K,gs.hover.color,`;
  705. }
  706. .tui-image-editor-menu use.disabled.use-default,
  707. .tui-image-editor-help-menu use.disabled.use-default {
  708. fill-rule: evenodd;
  709. fill: `)).call(F,gs.disabled.color,`;
  710. stroke: `)).call(T,gs.disabled.color,`;
  711. }
  712. .tui-image-editor-submenu use.normal.use-default {
  713. fill-rule: evenodd;
  714. fill: `)).call(I,mu.normal.color,`;
  715. stroke: `)).call(M,mu.normal.color,`;
  716. }
  717. .tui-image-editor-submenu use.active.use-default {
  718. fill-rule: evenodd;
  719. fill: `)).call(x,mu.active.color,`;
  720. stroke: `)).call(L,mu.active.color,`;
  721. }
  722. `)},Jt={"common.bi.image":"https://uicdn.toast.com/toastui/img/tui-image-editor-bi.png","common.bisize.width":"251px","common.bisize.height":"21px","common.backgroundImage":"none","common.backgroundColor":"#1e1e1e","common.border":"0px","header.backgroundImage":"none","header.backgroundColor":"transparent","header.border":"0px","loadButton.backgroundColor":"#fff","loadButton.border":"1px solid #ddd","loadButton.color":"#222","loadButton.fontFamily":"'Noto Sans', sans-serif","loadButton.fontSize":"12px","downloadButton.backgroundColor":"#fdba3b","downloadButton.border":"1px solid #fdba3b","downloadButton.color":"#fff","downloadButton.fontFamily":"'Noto Sans', sans-serif","downloadButton.fontSize":"12px","menu.normalIcon.color":"#8a8a8a","menu.activeIcon.color":"#555555","menu.disabledIcon.color":"#434343","menu.hoverIcon.color":"#e9e9e9","submenu.normalIcon.color":"#8a8a8a","submenu.activeIcon.color":"#e9e9e9","menu.iconSize.width":"24px","menu.iconSize.height":"24px","submenu.iconSize.width":"32px","submenu.iconSize.height":"32px","submenu.backgroundColor":"#1e1e1e","submenu.partition.color":"#3c3c3c","submenu.normalLabel.color":"#8a8a8a","submenu.normalLabel.fontWeight":"lighter","submenu.activeLabel.color":"#fff","submenu.activeLabel.fontWeight":"lighter","checkbox.border":"0px","checkbox.backgroundColor":"#fff","range.pointer.color":"#fff","range.bar.color":"#666","range.subbar.color":"#d1d1d1","range.disabledPointer.color":"#414141","range.disabledBar.color":"#282828","range.disabledSubbar.color":"#414141","range.value.color":"#fff","range.value.fontWeight":"lighter","range.value.fontSize":"11px","range.value.border":"1px solid #353535","range.value.backgroundColor":"#151515","range.title.color":"#fff","range.title.fontWeight":"lighter","colorpicker.button.border":"1px solid #1e1e1e","colorpicker.title.color":"#fff"},ln=s(2534),Dn=function(){function J(L){U(this,J),this.styles=this._changeToObject(pe()({},Jt,L)),fo(this._styleMaker()),this._loadDefaultSvgIcon()}return q(J,[{key:"getStyle",value:function(x){var M=null,I=x.replace(/\..+$/,""),T=this.styles[x];switch(x){case"common.bi":M=this.styles[x].image;break;case"menu.icon":M={active:this.styles["".concat(I,".activeIcon")],normal:this.styles["".concat(I,".normalIcon")],hover:this.styles["".concat(I,".hoverIcon")],disabled:this.styles["".concat(I,".disabledIcon")]};break;case"submenu.icon":M={active:this.styles["".concat(I,".activeIcon")],normal:this.styles["".concat(I,".normalIcon")]};break;case"submenu.label":M={active:this._makeCssText(this.styles["".concat(I,".activeLabel")]),normal:this._makeCssText(this.styles["".concat(I,".normalLabel")])};break;case"submenu.partition":M={vertical:this._makeCssText(pe()({},T,{borderLeft:"1px solid ".concat(T.color)})),horizontal:this._makeCssText(pe()({},T,{borderBottom:"1px solid ".concat(T.color)}))};break;case"range.disabledPointer":case"range.disabledBar":case"range.disabledSubbar":case"range.pointer":case"range.bar":case"range.subbar":T.backgroundColor=T.color,M=this._makeCssText(T);break;default:M=this._makeCssText(T);break}return M}},{key:"_styleMaker",value:function(){var x=this.getStyle("submenu.label"),M=this.getStyle("submenu.partition");return Bt({subMenuLabelActive:x.active,subMenuLabelNormal:x.normal,submenuPartitionVertical:M.vertical,submenuPartitionHorizontal:M.horizontal,biSize:this.getStyle("common.bisize"),subMenuRangeTitle:this.getStyle("range.title"),submenuRangePointer:this.getStyle("range.pointer"),submenuRangeBar:this.getStyle("range.bar"),submenuRangeSubbar:this.getStyle("range.subbar"),submenuDisabledRangePointer:this.getStyle("range.disabledPointer"),submenuDisabledRangeBar:this.getStyle("range.disabledBar"),submenuDisabledRangeSubbar:this.getStyle("range.disabledSubbar"),submenuRangeValue:this.getStyle("range.value"),submenuColorpickerTitle:this.getStyle("colorpicker.title"),submenuColorpickerButton:this.getStyle("colorpicker.button"),submenuCheckbox:this.getStyle("checkbox"),menuIconSize:this.getStyle("menu.iconSize"),submenuIconSize:this.getStyle("submenu.iconSize"),menuIconStyle:this.getStyle("menu.icon"),submenuIconStyle:this.getStyle("submenu.icon")})}},{key:"_changeToObject",value:function(x){var M={};return ee()(x,function(I,T){var F=T.match(/^(.+)\.([a-z]+)$/i),K=Ae(F,3),oe=K[1],ie=K[2];M[oe]||(M[oe]={}),M[oe][ie]=I}),M}},{key:"_makeCssText",value:function(x){var M=this,I=[];return ee()(x,function(T,F){var K,oe;l()(K=["backgroundImage"]).call(K,F)>-1&&T!=="none"&&(T="url(".concat(T,")")),I.push(te()(oe="".concat(M._toUnderScore(F),": ")).call(oe,T))}),I.join(";")}},{key:"_toUnderScore",value:function(x){return x.replace(/([A-Z])/g,function(M,I){return"-".concat(I.toLowerCase())})}},{key:"_loadDefaultSvgIcon",value:function(){if(!document.getElementById("tui-image-editor-svg-default-icons")){var x=new DOMParser,M=ln.replace(/data:image\/svg\+xml;base64,/,""),I=x.parseFromString(atob(M),"text/xml");document.body.appendChild(I.documentElement)}}},{key:"_makeIconClassName",value:function(x,M){var I=M?this.getStyle("submenu.icon"):this.getStyle("menu.icon"),T=I[x],F=T.path,K=T.name;return F&&K?x:"".concat(x," use-default")}},{key:"_makeSvgIconPrefix",value:function(x,M){var I,T=M?this.getStyle("submenu.icon"):this.getStyle("menu.icon"),F=T[x],K=F.path,oe=F.name;return K&&oe?te()(I="".concat(K,"#")).call(I,oe,"-"):"#"}},{key:"_makeSvgItem",value:function(x,M,I){var T=this;return Ot()(x).call(x,function(F){var K,oe,ie=T._makeSvgIconPrefix(F,I),ke=T._toUnderScore(M),Oe=T._makeIconClassName(F,I);return te()(K=te()(oe='<use xlink:href="'.concat(ie,"ic-")).call(oe,ke,'" class="')).call(K,Oe,'"/>')}).join("")}},{key:"makeMenSvgIconSet",value:function(x,M){var I,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return te()(I='<svg class="svg_ic-'.concat(T?"submenu":"menu",'">')).call(I,this._makeSvgItem(x,M,T),"</svg>")}}]),J}(),Gn=Dn,Di=s(9146),ct=s.n(Di),ps=s(6623),Cf=s(4230);function zn(J,L){return zn=Cf||function(M,I){return M.__proto__=I,M},zn(J,L)}function vn(J,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");J.prototype=ps(L&&L.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),L&&zn(J,L)}var pu=s(3742);function Js(J){"@babel/helpers - typeof";return typeof w=="function"&&typeof pu=="symbol"?Js=function(x){return typeof x}:Js=function(x){return x&&typeof w=="function"&&x.constructor===w&&x!==w.prototype?"symbol":typeof x},Js(J)}function _n(J){if(J===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J}function Mn(J,L){if(L&&(Js(L)==="object"||typeof L=="function"))return L;if(L!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _n(J)}var Sf=s(9856);function Xt(J){return Xt=Cf?Sf:function(x){return x.__proto__||Sf(x)},Xt(J)}var ms=s(6092),hm=s.n(ms),BG=s(4858),FG=s.n(BG),VG=["#000000","#2a2a2a","#545454","#7e7e7e","#a8a8a8","#d2d2d2","#ffffff","","#ff4040","#ff6518","#ffbb3b","#03bd9e","#00a9ff","#515ce6","#9e5fff","#ff5583"],zO=function(){function J(L,x){var M=x.defaultColor,I=M===void 0?"#7e7e7e":M,T=x.toggleDirection,F=T===void 0?"up":T,K=x.usageStatistics;U(this,J),this.colorpickerElement=L,this.usageStatistics=K,this._show=!1,this._colorpickerElement=L,this._toggleDirection=F,this._makePickerButtonElement(I),this._makePickerLayerElement(L,L.getAttribute("title")),this._color=I,this.picker=FG().create({container:this.pickerElement,preset:VG,color:I,usageStatistics:this.usageStatistics}),this._addEvent()}return q(J,[{key:"destroy",value:function(){var x=this;this._removeEvent(),this.picker.destroy(),this.colorpickerElement.innerHTML="",ee()(this,function(M,I){x[I]=null})}},{key:"color",get:function(){return this._color},set:function(x){this._color=x,this._changeColorElement(x)}},{key:"_changeColorElement",value:function(x){x?(this.colorElement.classList.remove("transparent"),this.colorElement.style.backgroundColor=x):(this.colorElement.style.backgroundColor="#fff",this.colorElement.classList.add("transparent"))}},{key:"_makePickerButtonElement",value:function(x){this.colorpickerElement.classList.add("tui-image-editor-button"),this.colorElement=document.createElement("div"),this.colorElement.className="color-picker-value",x?this.colorElement.style.backgroundColor=x:this.colorElement.classList.add("transparent")}},{key:"_makePickerLayerElement",value:function(x,M){var I=document.createElement("label"),T=document.createElement("div");this.pickerControl=document.createElement("div"),this.pickerControl.className="color-picker-control",this.pickerElement=document.createElement("div"),this.pickerElement.className="color-picker",I.innerHTML=M,T.className="triangle",this.pickerControl.appendChild(this.pickerElement),this.pickerControl.appendChild(T),x.appendChild(this.pickerControl),x.appendChild(this.colorElement),x.appendChild(I)}},{key:"_addEvent",value:function(){var x=this,M;this.picker.on("selectColor",function(I){x._changeColorElement(I.color),x._color=I.color,x.fire("change",I.color)}),this.eventHandler={pickerToggle:ne()(M=this._pickerToggleEventHandler).call(M,this),pickerHide:function(){return x.hide()}},this.colorpickerElement.addEventListener("click",this.eventHandler.pickerToggle),document.body.addEventListener("click",this.eventHandler.pickerHide)}},{key:"_removeEvent",value:function(){this.colorpickerElement.removeEventListener("click",this.eventHandler.pickerToggle),document.body.removeEventListener("click",this.eventHandler.pickerHide),this.picker.off()}},{key:"_pickerToggleEventHandler",value:function(x){var M=x.target,I=M&&this._isElementInColorPickerControl(M);(!I||I&&this._isPaletteButton(M))&&(this._show=!this._show,this.pickerControl.style.display=this._show?"block":"none",this._setPickerControlPosition(),this.fire("changeShow",this)),x.stopPropagation()}},{key:"_isPaletteButton",value:function(x){return x.className==="tui-colorpicker-palette-button"}},{key:"_isElementInColorPickerControl",value:function(x){for(var M=x;M!==document.body&&M;){if(M===this.pickerControl)return!0;M=M.parentNode}return!1}},{key:"hide",value:function(){this._show=!1,this.pickerControl.style.display="none"}},{key:"_setPickerControlPosition",value:function(){var x=this.pickerControl.style,M=this._colorpickerElement.clientWidth/2+2,I=this.pickerControl.offsetWidth/2-M,T=(this.pickerControl.offsetHeight+10)*-1;this._toggleDirection==="down"&&(T=30),x.top="".concat(T,"px"),x.left="-".concat(I,"px")}}]),J}();xe().mixin(zO);var Fl=zO,HG=/(-?)([0-9]*)[^0-9]*([0-9]*)/g,RO=function(){function J(L){var x,M,I,T,F,K,oe,ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};U(this,J),this._value=ie.value||0,this.rangeElement=L.slider,this.rangeInputElement=L.input,this._drawRangeElement(),this.rangeWidth=this._getRangeWidth(),this._min=ie.min||0,this._max=ie.max||100,this._useDecimal=ie.useDecimal,this._absMax=this._min*-1+this._max,this.realTimeEvent=ie.realTimeEvent||!1,this._userInputTimer=null,this.eventHandler={startChangingSlide:ne()(x=this._startChangingSlide).call(x,this),stopChangingSlide:ne()(M=this._stopChangingSlide).call(M,this),changeSlide:ne()(I=this._changeSlide).call(I,this),changeSlideFinally:ne()(T=this._changeSlideFinally).call(T,this),changeInput:ne()(F=this._changeInput).call(F,this),changeInputFinally:ne()(K=this._changeValueWithInput).call(K,this,!0),changeInputWithArrow:ne()(oe=this._changeValueWithInputKeyEvent).call(oe,this)},this._addClickEvent(),this._addDragEvent(),this._addInputEvent(),this.value=ie.value,this.trigger("change")}return q(J,[{key:"destroy",value:function(){var x=this;this._removeClickEvent(),this._removeDragEvent(),this._removeInputEvent(),this.rangeElement.innerHTML="",ee()(this,function(M,I){x[I]=null})}},{key:"max",get:function(){return this._max},set:function(x){this._max=x,this._absMax=this._min*-1+this._max,this.value=this._value}},{key:"min",get:function(){return this._min},set:function(x){this._min=x,this.max=this._max}},{key:"value",get:function(){return this._value},set:function(x){x=this._useDecimal?x:$n(x);var M=x-this._min,I=M*this.rangeWidth/this._absMax;this.rangeWidth<I&&(I=this.rangeWidth),this.pointer.style.left="".concat(I,"px"),this.subbar.style.right="".concat(this.rangeWidth-I,"px"),this._value=x,this.rangeInputElement&&(this.rangeInputElement.value=x)}},{key:"trigger",value:function(x){this.fire(x,this._value)}},{key:"_getRangeWidth",value:function(){var x=function(I){return $n(window.getComputedStyle(I,null).width)};return x(this.rangeElement)-x(this.pointer)}},{key:"_drawRangeElement",value:function(){this.rangeElement.classList.add("tui-image-editor-range"),this.bar=document.createElement("div"),this.bar.className="tui-image-editor-virtual-range-bar",this.subbar=document.createElement("div"),this.subbar.className="tui-image-editor-virtual-range-subbar",this.pointer=document.createElement("div"),this.pointer.className="tui-image-editor-virtual-range-pointer",this.bar.appendChild(this.subbar),this.bar.appendChild(this.pointer),this.rangeElement.appendChild(this.bar)}},{key:"_addInputEvent",value:function(){this.rangeInputElement&&(this.rangeInputElement.addEventListener("keydown",this.eventHandler.changeInputWithArrow),this.rangeInputElement.addEventListener("keydown",this.eventHandler.changeInput),this.rangeInputElement.addEventListener("blur",this.eventHandler.changeInputFinally))}},{key:"_removeInputEvent",value:function(){this.rangeInputElement&&(this.rangeInputElement.removeEventListener("keydown",this.eventHandler.changeInputWithArrow),this.rangeInputElement.removeEventListener("keydown",this.eventHandler.changeInput),this.rangeInputElement.removeEventListener("blur",this.eventHandler.changeInputFinally))}},{key:"_changeValueWithInputKeyEvent",value:function(x){var M,I=x.keyCode,T=x.target;if(!(l()(M=[Zn.ARROW_UP,Zn.ARROW_DOWN]).call(M,I)<0)){var F=Number(T.value);F=this._valueUpDownForKeyEvent(F,I);var K=F<this._min||F>this._max;if(!K){var oe=Qt(F,this._min,this.max);this.value=oe,this.fire("change",oe,!1)}}}},{key:"_valueUpDownForKeyEvent",value:function(x,M){var I=this._useDecimal?.1:1;return M===Zn.ARROW_UP?x+=I:M===Zn.ARROW_DOWN&&(x-=I),x}},{key:"_changeInput",value:function(x){var M=this;clearTimeout(this._userInputTimer);var I=x.keyCode;if(I<Zn.DIGIT_0||I>Zn.DIGIT_9){x.preventDefault();return}this._userInputTimer=f()(function(){M._inputSetValue(x.target.value)},350)}},{key:"_inputSetValue",value:function(x){var M=this._useDecimal?Number(x):$n(x);M=Qt(M,this._min,this.max),this.value=M,this.fire("change",M,!0)}},{key:"_changeValueWithInput",value:function(x,M){var I,T=M.keyCode,F=M.target;if(!(l()(I=[Zn.ARROW_UP,Zn.ARROW_DOWN]).call(I,T)>=0)){var K=this._filterForInputText(F.value),oe=!K||isNaN(K);F.value=K,oe||this._inputSetValue(K)}}},{key:"_addClickEvent",value:function(){this.rangeElement.addEventListener("click",this.eventHandler.changeSlideFinally)}},{key:"_removeClickEvent",value:function(){this.rangeElement.removeEventListener("click",this.eventHandler.changeSlideFinally)}},{key:"_addDragEvent",value:function(){this.pointer.addEventListener("mousedown",this.eventHandler.startChangingSlide)}},{key:"_removeDragEvent",value:function(){this.pointer.removeEventListener("mousedown",this.eventHandler.startChangingSlide)}},{key:"_changeSlide",value:function(x){var M=x.screenX,I=M-this.firstPosition,T=this.firstLeft+I;T=T>this.rangeWidth?this.rangeWidth:T,T=T<0?0:T,this.pointer.style.left="".concat(T,"px"),this.subbar.style.right="".concat(this.rangeWidth-T,"px");var F=T/this.rangeWidth,K=this._absMax*F+this._min,oe=this._useDecimal?K:$n(K),ie=this.value!==oe;ie&&(this.value=oe,this.realTimeEvent&&this.fire("change",this._value,!1))}},{key:"_changeSlideFinally",value:function(x){if(x.stopPropagation(),x.target.className==="tui-image-editor-range"){var M=x.offsetX,I=M/this.rangeWidth,T=this._absMax*I+this._min;this.pointer.style.left="".concat(I*this.rangeWidth,"px"),this.subbar.style.right="".concat((1-I)*this.rangeWidth,"px"),this.value=T,this.fire("change",T,!0)}}},{key:"_startChangingSlide",value:function(x){this.firstPosition=x.screenX,this.firstLeft=$n(this.pointer.style.left)||0,document.addEventListener("mousemove",this.eventHandler.changeSlide),document.addEventListener("mouseup",this.eventHandler.stopChangingSlide)}},{key:"_stopChangingSlide",value:function(){this.fire("change",this._value,!0),document.removeEventListener("mousemove",this.eventHandler.changeSlide),document.removeEventListener("mouseup",this.eventHandler.stopChangingSlide)}},{key:"_filterForInputText",value:function(x){return x.replace(HG,"$1$2$3")}}]),J}();xe().mixin(RO);var Yo=RO,BO=function(){function J(L,x){var M=x.locale,I=x.name,T=x.makeSvgIcon,F=x.menuBarPosition,K=x.templateHtml,oe=x.usageStatistics;U(this,J),this.subMenuElement=L,this.menuBarPosition=F,this.toggleDirection=F==="top"?"down":"up",this.colorPickerControls=[],this.usageStatistics=oe,this.eventHandler={},this._makeSubMenuElement({locale:M,name:I,makeSvgIcon:T,templateHtml:K})}return q(J,[{key:"selector",value:function(x){return this.subMenuElement.querySelector(x)}},{key:"colorPickerChangeShow",value:function(x){var M;Ue()(M=this.colorPickerControls).call(M,function(I){x!==I&&I.hide()})}},{key:"getButtonType",value:function(x,M){return x.className.match(RegExp("(".concat(M.join("|"),")")))[0]}},{key:"changeClass",value:function(x,M,I){x.classList.remove(M),x.classList.add(I)}},{key:"changeStandbyMode",value:function(){}},{key:"changeStartMode",value:function(){}},{key:"_makeSubMenuElement",value:function(x){var M=x.locale,I=x.name,T=x.iconStyle,F=x.makeSvgIcon,K=x.templateHtml,oe=document.createElement("div");oe.className="tui-image-editor-menu-".concat(I),oe.innerHTML=K({locale:M,iconStyle:T,makeSvgIcon:F}),this.subMenuElement.appendChild(oe)}},{key:"_onStartEditingInputBox",value:function(){this.fire(st.INPUT_BOX_EDITING_STARTED)}},{key:"_onStopEditingInputBox",value:function(){this.fire(st.INPUT_BOX_EDITING_STOPPED)}}]),J}();xe().mixin(BO);var qs=BO,WG=function(J){var L,x,M,I,T,F,K,oe,ie=J.locale,ke=J.makeSvgIcon;return te()(L=te()(x=te()(M=te()(I=te()(T=te()(F=te()(K=te()(oe=`
  723. <ul class="tui-image-editor-submenu-item">
  724. <li class="tie-shape-button">
  725. <div class="tui-image-editor-button rect">
  726. <div>
  727. `.concat(ke(["normal","active"],"shape-rectangle",!0),`
  728. </div>
  729. <label> `)).call(oe,ie.localize("Rectangle"),` </label>
  730. </div>
  731. <div class="tui-image-editor-button circle">
  732. <div>
  733. `)).call(K,ke(["normal","active"],"shape-circle",!0),`
  734. </div>
  735. <label> `)).call(F,ie.localize("Circle"),` </label>
  736. </div>
  737. <div class="tui-image-editor-button triangle">
  738. <div>
  739. `)).call(T,ke(["normal","active"],"shape-triangle",!0),`
  740. </div>
  741. <label> `)).call(I,ie.localize("Triangle"),` </label>
  742. </div>
  743. </li>
  744. <li class="tui-image-editor-partition">
  745. <div></div>
  746. </li>
  747. <li class="tie-shape-color-button">
  748. <div class="tie-color-fill" title="`)).call(M,ie.localize("Fill"),`"></div>
  749. <div class="tie-color-stroke" title="`)).call(x,ie.localize("Stroke"),`"></div>
  750. </li>
  751. <li class="tui-image-editor-partition only-left-right">
  752. <div></div>
  753. </li>
  754. <li class="tui-image-editor-newline tui-image-editor-range-wrap">
  755. <label class="range">`)).call(L,ie.localize("Stroke"),`</label>
  756. <div class="tie-stroke-range"></div>
  757. <input class="tie-stroke-range-value tui-image-editor-range-value" value="0" />
  758. </li>
  759. </ul>
  760. `)};function UG(J){var L=ZG();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function ZG(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var GG={stroke:"#ffbb3b",fill:"",strokeWidth:3},YG=function(J){vn(x,J);var L=UG(x);function x(M,I){var T,F=I.locale,K=I.makeSvgIcon,oe=I.menuBarPosition,ie=I.usageStatistics;return U(this,x),T=L.call(this,M,{locale:F,name:"shape",makeSvgIcon:K,menuBarPosition:oe,templateHtml:WG,usageStatistics:ie}),T.type=null,T.options=GG,T._els={shapeSelectButton:T.selector(".tie-shape-button"),shapeColorButton:T.selector(".tie-shape-color-button"),strokeRange:new Yo({slider:T.selector(".tie-stroke-range"),input:T.selector(".tie-stroke-range-value")},Oa),fillColorpicker:new Fl(T.selector(".tie-color-fill"),{defaultColor:"",toggleDirection:T.toggleDirection,usageStatistics:T.usageStatistics}),strokeColorpicker:new Fl(T.selector(".tie-color-stroke"),{defaultColor:"#ffbb3b",toggleDirection:T.toggleDirection,usageStatistics:T.usageStatistics})},T.colorPickerControls.push(T._els.fillColorpicker),T.colorPickerControls.push(T._els.strokeColorpicker),T.colorPickerInputBoxes=[],T.colorPickerInputBoxes.push(T._els.fillColorpicker.colorpickerElement.querySelector(wn.COLOR_PICKER_INPUT_BOX)),T.colorPickerInputBoxes.push(T._els.strokeColorpicker.colorpickerElement.querySelector(wn.COLOR_PICKER_INPUT_BOX)),T}return q(x,[{key:"destroy",value:function(){this._removeEvent(),this._els.strokeRange.destroy(),this._els.fillColorpicker.destroy(),this._els.strokeColorpicker.destroy(),Li(this)}},{key:"addEvent",value:function(I){var T,F,K,oe,ie,ke,Oe=this;this.eventHandler.shapeTypeSelected=ne()(T=this._changeShapeHandler).call(T,this),this.actions=I,this._els.shapeSelectButton.addEventListener("click",this.eventHandler.shapeTypeSelected),this._els.strokeRange.on("change",ne()(F=this._changeStrokeRangeHandler).call(F,this)),this._els.fillColorpicker.on("change",ne()(K=this._changeFillColorHandler).call(K,this)),this._els.strokeColorpicker.on("change",ne()(oe=this._changeStrokeColorHandler).call(oe,this)),this._els.fillColorpicker.on("changeShow",ne()(ie=this.colorPickerChangeShow).call(ie,this)),this._els.strokeColorpicker.on("changeShow",ne()(ke=this.colorPickerChangeShow).call(ke,this)),hm()(this.colorPickerInputBoxes,function(Ze){var Ge,Je;Ze.addEventListener(st.FOCUS,ne()(Ge=Oe._onStartEditingInputBox).call(Ge,Oe)),Ze.addEventListener(st.BLUR,ne()(Je=Oe._onStopEditingInputBox).call(Je,Oe))},this)}},{key:"_removeEvent",value:function(){var I=this;this._els.shapeSelectButton.removeEventListener("click",this.eventHandler.shapeTypeSelected),this._els.strokeRange.off(),this._els.fillColorpicker.off(),this._els.strokeColorpicker.off(),hm()(this.colorPickerInputBoxes,function(T){var F,K;T.removeEventListener(st.FOCUS,ne()(F=I._onStartEditingInputBox).call(F,I)),T.removeEventListener(st.BLUR,ne()(K=I._onStopEditingInputBox).call(K,I))},this)}},{key:"setShapeStatus",value:function(I){var T=I.strokeWidth,F=I.strokeColor,K=I.fillColor;this._els.strokeRange.value=T,this._els.strokeColorpicker.color=F,this._els.fillColorpicker.color=K,this.options.stroke=F,this.options.fill=K,this.options.strokeWidth=T,this.actions.setDrawingShape(this.type,{strokeWidth:T})}},{key:"changeStartMode",value:function(){this.actions.stopDrawingMode()}},{key:"changeStandbyMode",value:function(){this.type=null,this.actions.changeSelectableAll(!0),this._els.shapeSelectButton.classList.remove("circle"),this._els.shapeSelectButton.classList.remove("triangle"),this._els.shapeSelectButton.classList.remove("rect")}},{key:"setMaxStrokeValue",value:function(I){var T=I;T<=0&&(T=Oa.max),this._els.strokeRange.max=T}},{key:"setStrokeValue",value:function(I){this._els.strokeRange.value=I,this._els.strokeRange.trigger("change")}},{key:"getStrokeValue",value:function(){return this._els.strokeRange.value}},{key:"_changeShapeHandler",value:function(I){var T=I.target.closest(".tui-image-editor-button");if(T){this.actions.stopDrawingMode(),this.actions.discardSelection();var F=this.getButtonType(T,["circle","triangle","rect"]);if(this.type===F){this.changeStandbyMode();return}this.changeStandbyMode(),this.type=F,I.currentTarget.classList.add(F),this.actions.changeSelectableAll(!1),this.actions.modeChange("shape")}}},{key:"_changeStrokeRangeHandler",value:function(I,T){this.options.strokeWidth=$n(I),this.actions.changeShape({strokeWidth:I},!T),this.actions.setDrawingShape(this.type,this.options)}},{key:"_changeFillColorHandler",value:function(I){I=I||"transparent",this.options.fill=I,this.actions.changeShape({fill:I})}},{key:"_changeStrokeColorHandler",value:function(I){I=I||"transparent",this.options.stroke=I,this.actions.changeShape({stroke:I})}}]),x}(qs),XG=YG,KG=function(J){var L,x,M,I,T,F,K,oe,ie,ke,Oe,Ze,Ge,Je,Ke,qe,vt,qt=J.locale,tn=J.makeSvgIcon;return te()(L=te()(x=te()(M=te()(I=te()(T=te()(F=te()(K=te()(oe=te()(ie=te()(ke=te()(Oe=te()(Ze=te()(Ge=te()(Je=te()(Ke=te()(qe=te()(vt=`
  761. <ul class="tui-image-editor-submenu-item">
  762. <li class="tie-crop-preset-button">
  763. <div class="tui-image-editor-button preset preset-none active">
  764. <div>
  765. `.concat(tn(["normal","active"],"shape-rectangle",!0),`
  766. </div>
  767. <label> `)).call(vt,qt.localize("Custom"),` </label>
  768. </div>
  769. <div class="tui-image-editor-button preset preset-square">
  770. <div>
  771. `)).call(qe,tn(["normal","active"],"crop",!0),`
  772. </div>
  773. <label> `)).call(Ke,qt.localize("Square"),` </label>
  774. </div>
  775. <div class="tui-image-editor-button preset preset-3-2">
  776. <div>
  777. `)).call(Je,tn(["normal","active"],"crop",!0),`
  778. </div>
  779. <label> `)).call(Ge,qt.localize("3:2"),` </label>
  780. </div>
  781. <div class="tui-image-editor-button preset preset-4-3">
  782. <div>
  783. `)).call(Ze,tn(["normal","active"],"crop",!0),`
  784. </div>
  785. <label> `)).call(Oe,qt.localize("4:3"),` </label>
  786. </div>
  787. <div class="tui-image-editor-button preset preset-5-4">
  788. <div>
  789. `)).call(ke,tn(["normal","active"],"crop",!0),`
  790. </div>
  791. <label> `)).call(ie,qt.localize("5:4"),` </label>
  792. </div>
  793. <div class="tui-image-editor-button preset preset-7-5">
  794. <div>
  795. `)).call(oe,tn(["normal","active"],"crop",!0),`
  796. </div>
  797. <label> `)).call(K,qt.localize("7:5"),` </label>
  798. </div>
  799. <div class="tui-image-editor-button preset preset-16-9">
  800. <div>
  801. `)).call(F,tn(["normal","active"],"crop",!0),`
  802. </div>
  803. <label> `)).call(T,qt.localize("16:9"),` </label>
  804. </div>
  805. </li>
  806. <li class="tui-image-editor-partition tui-image-editor-newline">
  807. </li>
  808. <li class="tui-image-editor-partition only-left-right">
  809. <div></div>
  810. </li>
  811. <li class="tie-crop-button action">
  812. <div class="tui-image-editor-button apply">
  813. `)).call(I,tn(["normal","active"],"apply"),`
  814. <label>
  815. `)).call(M,qt.localize("Apply"),`
  816. </label>
  817. </div>
  818. <div class="tui-image-editor-button cancel">
  819. `)).call(x,tn(["normal","active"],"cancel"),`
  820. <label>
  821. `)).call(L,qt.localize("Cancel"),`
  822. </label>
  823. </div>
  824. </li>
  825. </ul>
  826. `)};function JG(J){var L=qG();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function qG(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var QG=function(J){vn(x,J);var L=JG(x);function x(M,I){var T,F=I.locale,K=I.makeSvgIcon,oe=I.menuBarPosition,ie=I.usageStatistics;return U(this,x),T=L.call(this,M,{locale:F,name:"crop",makeSvgIcon:K,menuBarPosition:oe,templateHtml:KG,usageStatistics:ie}),T.status="active",T._els={apply:T.selector(".tie-crop-button .apply"),cancel:T.selector(".tie-crop-button .cancel"),preset:T.selector(".tie-crop-preset-button")},T.defaultPresetButton=T._els.preset.querySelector(".preset-none"),T}return q(x,[{key:"destroy",value:function(){this._removeEvent(),Li(this)}},{key:"addEvent",value:function(I){var T,F,K,oe=ne()(T=this._applyEventHandler).call(T,this),ie=ne()(F=this._cancelEventHandler).call(F,this),ke=ne()(K=this._cropzonePresetEventHandler).call(K,this);this.eventHandler={apply:oe,cancel:ie,cropzonePreset:ke},this.actions=I,this._els.apply.addEventListener("click",oe),this._els.cancel.addEventListener("click",ie),this._els.preset.addEventListener("click",ke)}},{key:"_removeEvent",value:function(){this._els.apply.removeEventListener("click",this.eventHandler.apply),this._els.cancel.removeEventListener("click",this.eventHandler.cancel),this._els.preset.removeEventListener("click",this.eventHandler.cropzonePreset)}},{key:"_applyEventHandler",value:function(){this.actions.crop(),this._els.apply.classList.remove("active")}},{key:"_cancelEventHandler",value:function(){this.actions.cancel(),this._els.apply.classList.remove("active")}},{key:"_cropzonePresetEventHandler",value:function(I){var T=I.target.closest(".tui-image-editor-button.preset");if(T){var F=T.className.match(/preset-[^\s]+/),K=Ae(F,1),oe=K[0];this._setPresetButtonActive(T),this.actions.preset(oe)}}},{key:"changeStartMode",value:function(){this.actions.modeChange("crop")}},{key:"changeStandbyMode",value:function(){this.actions.stopDrawingMode(),this._setPresetButtonActive()}},{key:"changeApplyButtonStatus",value:function(I){I?this._els.apply.classList.add("active"):this._els.apply.classList.remove("active")}},{key:"_setPresetButtonActive",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.defaultPresetButton;ee()(this._els.preset.querySelectorAll(".preset"),function(T){T.classList.remove("active")}),I&&I.classList.add("active")}}]),x}(qs),eY=QG,tY=function(J){var L,x,M,I,T,F,K=J.locale,oe=J.makeSvgIcon;return te()(L=te()(x=te()(M=te()(I=te()(T=te()(F=`
  827. <ul class="tui-image-editor-submenu-item">
  828. <li class="tui-image-editor-submenu-align">
  829. <div class="tui-image-editor-range-wrap tui-image-editor-newline">
  830. <label class="range">`.concat(K.localize("Width"),`&nbsp;</label>
  831. <div class="tie-width-range"></div>
  832. <input class="tie-width-range-value tui-image-editor-range-value" value="0" /> <label>px</label>
  833. <div class="tui-image-editor-partition tui-image-editor-newline"></div>
  834. <label class="range">`)).call(F,K.localize("Height"),`</label>
  835. <div class="tie-height-range"></div>
  836. <input class="tie-height-range-value tui-image-editor-range-value" value="0" /> <label>px</label>
  837. </div>
  838. </li>
  839. <li class="tui-image-editor-partition tui-image-editor-newline"></li>
  840. <li class="tui-image-editor-partition only-left-right">
  841. <div></div>
  842. </li>
  843. <li class="tui-image-editor-submenu-align">
  844. <div class="tui-image-editor-checkbox-wrap">
  845. <div class="tui-image-editor-checkbox">
  846. <label>
  847. <input type="checkbox" class="tie-lock-aspect-ratio">
  848. <span>`)).call(T,K.localize("Lock Aspect Ratio"),`</span>
  849. </label>
  850. </div>
  851. </div>
  852. </li>
  853. <li class="tui-image-editor-partition tui-image-editor-newline"></li>
  854. <li class="tui-image-editor-partition only-left-right">
  855. <div></div>
  856. </li>
  857. <li class="tui-image-editor-partition tui-image-editor-newline"></li>
  858. <li class="tie-resize-button action">
  859. <div class="tui-image-editor-button apply">
  860. `)).call(I,oe(["normal","active"],"apply"),`
  861. <label>
  862. `)).call(M,K.localize("Apply"),`
  863. </label>
  864. </div>
  865. <div class="tui-image-editor-button cancel">
  866. `)).call(x,oe(["normal","active"],"cancel"),`
  867. <label>
  868. `)).call(L,K.localize("Cancel"),`
  869. </label>
  870. </div>
  871. </li>
  872. </ul>
  873. `)};function nY(J){var L=iY();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function iY(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var rY=function(J){vn(x,J);var L=nY(x);function x(M,I){var T,F=I.locale,K=I.makeSvgIcon,oe=I.menuBarPosition,ie=I.usageStatistics;return U(this,x),T=L.call(this,M,{locale:F,name:"resize",makeSvgIcon:K,menuBarPosition:oe,templateHtml:tY,usageStatistics:ie}),T.status="active",T._lockState=!1,T._originalDimensions=null,T._els={widthRange:new Yo({slider:T.selector(".tie-width-range"),input:T.selector(".tie-width-range-value")},uo),heightRange:new Yo({slider:T.selector(".tie-height-range"),input:T.selector(".tie-height-range-value")},uo),lockAspectRatio:T.selector(".tie-lock-aspect-ratio"),apply:T.selector(".tie-resize-button .apply"),cancel:T.selector(".tie-resize-button .cancel")},T}return q(x,[{key:"changeStartMode",value:function(){this.actions.modeChange("resize");var I=this.actions.getCurrentDimensions();this._originalDimensions=I,this.setWidthValue(I.width),this.setHeightValue(I.height)}},{key:"changeStandbyMode",value:function(){this.actions.stopDrawingMode(),this.actions.reset(!0)}},{key:"setLimit",value:function(I){this._els.widthRange.min=this.calcMinValue(I.minWidth),this._els.heightRange.min=this.calcMinValue(I.minHeight),this._els.widthRange.max=this.calcMaxValue(I.maxWidth),this._els.heightRange.max=this.calcMaxValue(I.maxHeight)}},{key:"calcMaxValue",value:function(I){return I<=0&&(I=uo.max),I}},{key:"calcMinValue",value:function(I){return I<=0&&(I=uo.min),I}},{key:"setWidthValue",value:function(I){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this._els.widthRange.value=I,T&&this._els.widthRange.trigger("change")}},{key:"setHeightValue",value:function(I){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this._els.heightRange.value=I,T&&this._els.heightRange.trigger("change")}},{key:"destroy",value:function(){this._removeEvent(),Li(this)}},{key:"addEvent",value:function(I){var T,F,K,oe,ie;this._els.widthRange.on("change",ne()(T=this._changeWidthRangeHandler).call(T,this)),this._els.heightRange.on("change",ne()(F=this._changeHeightRangeHandler).call(F,this)),this._els.lockAspectRatio.addEventListener("change",ne()(K=this._changeLockAspectRatio).call(K,this));var ke=ne()(oe=this._applyEventHandler).call(oe,this),Oe=ne()(ie=this._cancelEventHandler).call(ie,this);this.eventHandler={apply:ke,cancel:Oe},this.actions=I,this._els.apply.addEventListener("click",ke),this._els.cancel.addEventListener("click",Oe)}},{key:"_changeWidthRangeHandler",value:function(I){this.actions.preview("width",$n(I),this._lockState)}},{key:"_changeHeightRangeHandler",value:function(I){this.actions.preview("height",$n(I),this._lockState)}},{key:"_changeLockAspectRatio",value:function(I){this._lockState=I.target.checked,this.actions.lockAspectRatio(this._lockState,uo.min,uo.max)}},{key:"_removeEvent",value:function(){this._els.apply.removeEventListener("click",this.eventHandler.apply),this._els.cancel.removeEventListener("click",this.eventHandler.cancel)}},{key:"_applyEventHandler",value:function(){this.actions.resize(),this._els.apply.classList.remove("active")}},{key:"_cancelEventHandler",value:function(){this.actions.reset(),this._els.cancel.classList.remove("active")}},{key:"changeApplyButtonStatus",value:function(I){I?this._els.apply.classList.add("active"):this._els.apply.classList.remove("active")}}]),x}(qs),oY=rY,sY=function(J){var L,x,M,I,T,F=J.locale,K=J.makeSvgIcon;return te()(L=te()(x=te()(M=te()(I=te()(T=`
  874. <ul class="tie-flip-button tui-image-editor-submenu-item">
  875. <li>
  876. <div class="tui-image-editor-button flipX">
  877. <div>
  878. `.concat(K(["normal","active"],"flip-x",!0),`
  879. </div>
  880. <label>
  881. `)).call(T,F.localize("Flip X"),`
  882. </label>
  883. </div>
  884. <div class="tui-image-editor-button flipY">
  885. <div>
  886. `)).call(I,K(["normal","active"],"flip-y",!0),`
  887. </div>
  888. <label>
  889. `)).call(M,F.localize("Flip Y"),`
  890. </label>
  891. </div>
  892. </li>
  893. <li class="tui-image-editor-partition">
  894. <div></div>
  895. </li>
  896. <li>
  897. <div class="tui-image-editor-button resetFlip">
  898. <div>
  899. `)).call(x,K(["normal","active"],"flip-reset",!0),`
  900. </div>
  901. <label>
  902. `)).call(L,F.localize("Reset"),`
  903. </label>
  904. </div>
  905. </li>
  906. </ul>
  907. `)};function aY(J){var L=lY();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function lY(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var cY=function(J){vn(x,J);var L=aY(x);function x(M,I){var T,F=I.locale,K=I.makeSvgIcon,oe=I.menuBarPosition,ie=I.usageStatistics;return U(this,x),T=L.call(this,M,{locale:F,name:"flip",makeSvgIcon:K,menuBarPosition:oe,templateHtml:sY,usageStatistics:ie}),T.flipStatus=!1,T._els={flipButton:T.selector(".tie-flip-button")},T}return q(x,[{key:"destroy",value:function(){this._removeEvent(),Li(this)}},{key:"addEvent",value:function(I){var T;this.eventHandler.changeFlip=ne()(T=this._changeFlip).call(T,this),this._actions=I,this._els.flipButton.addEventListener("click",this.eventHandler.changeFlip)}},{key:"_removeEvent",value:function(){this._els.flipButton.removeEventListener("click",this.eventHandler.changeFlip)}},{key:"_changeFlip",value:function(I){var T=this,F=I.target.closest(".tui-image-editor-button");if(F){var K=this.getButtonType(F,["flipX","flipY","resetFlip"]);if(!this.flipStatus&&K==="resetFlip")return;this._actions.flip(K).then(function(oe){var ie=T._els.flipButton.classList;T.flipStatus=!1,ie.remove("resetFlip"),ee()(["flipX","flipY"],function(ke){ie.remove(ke),oe[ke]&&(ie.add(ke),ie.add("resetFlip"),T.flipStatus=!0)})})}}}]),x}(qs),uY=cY,dY=function(J){var L,x,M=J.locale,I=J.makeSvgIcon;return te()(L=te()(x=`
  908. <ul class="tui-image-editor-submenu-item">
  909. <li class="tie-rotate-button">
  910. <div class="tui-image-editor-button clockwise">
  911. <div>
  912. `.concat(I(["normal","active"],"rotate-clockwise",!0),`
  913. </div>
  914. <label> 30 </label>
  915. </div>
  916. <div class="tui-image-editor-button counterclockwise">
  917. <div>
  918. `)).call(x,I(["normal","active"],"rotate-counterclockwise",!0),`
  919. </div>
  920. <label> -30 </label>
  921. </div>
  922. </li>
  923. <li class="tui-image-editor-partition only-left-right">
  924. <div></div>
  925. </li>
  926. <li class="tui-image-editor-newline tui-image-editor-range-wrap">
  927. <label class="range">`)).call(L,M.localize("Range"),`</label>
  928. <div class="tie-rotate-range"></div>
  929. <input class="tie-rotate-range-value tui-image-editor-range-value" value="0" />
  930. </li>
  931. </ul>
  932. `)};function fY(J){var L=hY();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function hY(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var pY=30,mY=-30,vY=function(J){vn(x,J);var L=fY(x);function x(M,I){var T,F=I.locale,K=I.makeSvgIcon,oe=I.menuBarPosition,ie=I.usageStatistics;return U(this,x),T=L.call(this,M,{locale:F,name:"rotate",makeSvgIcon:K,menuBarPosition:oe,templateHtml:dY,usageStatistics:ie}),T._value=0,T._els={rotateButton:T.selector(".tie-rotate-button"),rotateRange:new Yo({slider:T.selector(".tie-rotate-range"),input:T.selector(".tie-rotate-range-value")},zl)},T}return q(x,[{key:"destroy",value:function(){this._removeEvent(),this._els.rotateRange.destroy(),Li(this)}},{key:"setRangeBarAngle",value:function(I,T){var F=T;I==="rotate"&&(F=Ne()(this._els.rotateRange.value,10)+T),this._setRangeBarRatio(F)}},{key:"_setRangeBarRatio",value:function(I){this._els.rotateRange.value=I}},{key:"addEvent",value:function(I){var T,F;this.eventHandler.rotationAngleChanged=ne()(T=this._changeRotateForButton).call(T,this),this.actions=I,this._els.rotateButton.addEventListener("click",this.eventHandler.rotationAngleChanged),this._els.rotateRange.on("change",ne()(F=this._changeRotateForRange).call(F,this))}},{key:"_removeEvent",value:function(){this._els.rotateButton.removeEventListener("click",this.eventHandler.rotationAngleChanged),this._els.rotateRange.off()}},{key:"_changeRotateForRange",value:function(I,T){var F=$n(I);this.actions.setAngle(F,!T),this._value=F}},{key:"_changeRotateForButton",value:function(I){var T=I.target.closest(".tui-image-editor-button"),F=this._els.rotateRange.value;if(T){var K=this.getButtonType(T,["counterclockwise","clockwise"]),oe={clockwise:pY,counterclockwise:mY}[K],ie=Ne()(F,10)+oe,ke=ie>=-360&&ie<=360;ke&&this.actions.rotate(oe)}}}]),x}(qs),gY=vY,yY=function(J){var L,x,M,I,T,F,K,oe,ie,ke,Oe,Ze,Ge,Je=J.locale,Ke=J.makeSvgIcon;return te()(L=te()(x=te()(M=te()(I=te()(T=te()(F=te()(K=te()(oe=te()(ie=te()(ke=te()(Oe=te()(Ze=te()(Ge=`
  933. <ul class="tui-image-editor-submenu-item">
  934. <li class="tie-text-effect-button">
  935. <div class="tui-image-editor-button bold">
  936. <div>
  937. `.concat(Ke(["normal","active"],"text-bold",!0),`
  938. </div>
  939. <label> `)).call(Ge,Je.localize("Bold"),` </label>
  940. </div>
  941. <div class="tui-image-editor-button italic">
  942. <div>
  943. `)).call(Ze,Ke(["normal","active"],"text-italic",!0),`
  944. </div>
  945. <label> `)).call(Oe,Je.localize("Italic"),` </label>
  946. </div>
  947. <div class="tui-image-editor-button underline">
  948. <div>
  949. `)).call(ke,Ke(["normal","active"],"text-underline",!0),`
  950. </div>
  951. <label> `)).call(ie,Je.localize("Underline"),` </label>
  952. </div>
  953. </li>
  954. <li class="tui-image-editor-partition">
  955. <div></div>
  956. </li>
  957. <li class="tie-text-align-button">
  958. <div class="tui-image-editor-button left">
  959. <div>
  960. `)).call(oe,Ke(["normal","active"],"text-align-left",!0),`
  961. </div>
  962. <label> `)).call(K,Je.localize("Left"),` </label>
  963. </div>
  964. <div class="tui-image-editor-button center">
  965. <div>
  966. `)).call(F,Ke(["normal","active"],"text-align-center",!0),`
  967. </div>
  968. <label> `)).call(T,Je.localize("Center"),` </label>
  969. </div>
  970. <div class="tui-image-editor-button right">
  971. <div>
  972. `)).call(I,Ke(["normal","active"],"text-align-right",!0),`
  973. </div>
  974. <label> `)).call(M,Je.localize("Right"),` </label>
  975. </div>
  976. </li>
  977. <li class="tui-image-editor-partition">
  978. <div></div>
  979. </li>
  980. <li>
  981. <div class="tie-text-color" title="`)).call(x,Je.localize("Color"),`"></div>
  982. </li>
  983. <li class="tui-image-editor-partition only-left-right">
  984. <div></div>
  985. </li>
  986. <li class="tui-image-editor-newline tui-image-editor-range-wrap">
  987. <label class="range">`)).call(L,Je.localize("Text size"),`</label>
  988. <div class="tie-text-range"></div>
  989. <input class="tie-text-range-value tui-image-editor-range-value" value="0" />
  990. </li>
  991. </ul>
  992. `)};function bY(J){var L=kY();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function kY(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var CY=function(J){vn(x,J);var L=bY(x);function x(M,I){var T,F=I.locale,K=I.makeSvgIcon,oe=I.menuBarPosition,ie=I.usageStatistics;return U(this,x),T=L.call(this,M,{locale:F,name:"text",makeSvgIcon:K,menuBarPosition:oe,templateHtml:yY,usageStatistics:ie}),T.effect={bold:!1,italic:!1,underline:!1},T.align="tie-text-align-left",T._els={textEffectButton:T.selector(".tie-text-effect-button"),textAlignButton:T.selector(".tie-text-align-button"),textColorpicker:new Fl(T.selector(".tie-text-color"),{defaultColor:"#ffbb3b",toggleDirection:T.toggleDirection,usageStatistics:T.usageStatistics}),textRange:new Yo({slider:T.selector(".tie-text-range"),input:T.selector(".tie-text-range-value")},bi)},T.colorPickerInputBox=T._els.textColorpicker.colorpickerElement.querySelector(wn.COLOR_PICKER_INPUT_BOX),T}return q(x,[{key:"destroy",value:function(){this._removeEvent(),this._els.textColorpicker.destroy(),this._els.textRange.destroy(),Li(this)}},{key:"addEvent",value:function(I){var T,F,K,oe,ie,ke,Oe=ne()(T=this._setTextEffectHandler).call(T,this),Ze=ne()(F=this._setTextAlignHandler).call(F,this);this.eventHandler={setTextEffect:Oe,setTextAlign:Ze},this.actions=I,this._els.textEffectButton.addEventListener("click",Oe),this._els.textAlignButton.addEventListener("click",Ze),this._els.textRange.on("change",ne()(K=this._changeTextRnageHandler).call(K,this)),this._els.textColorpicker.on("change",ne()(oe=this._changeColorHandler).call(oe,this)),this.colorPickerInputBox.addEventListener(st.FOCUS,ne()(ie=this._onStartEditingInputBox).call(ie,this)),this.colorPickerInputBox.addEventListener(st.BLUR,ne()(ke=this._onStopEditingInputBox).call(ke,this))}},{key:"_removeEvent",value:function(){var I,T,F=this.eventHandler,K=F.setTextEffect,oe=F.setTextAlign;this._els.textEffectButton.removeEventListener("click",K),this._els.textAlignButton.removeEventListener("click",oe),this._els.textRange.off(),this._els.textColorpicker.off(),this.colorPickerInputBox.removeEventListener(st.FOCUS,ne()(I=this._onStartEditingInputBox).call(I,this)),this.colorPickerInputBox.removeEventListener(st.BLUR,ne()(T=this._onStopEditingInputBox).call(T,this))}},{key:"changeStandbyMode",value:function(){this.actions.stopDrawingMode()}},{key:"changeStartMode",value:function(){this.actions.modeChange("text")}},{key:"textColor",get:function(){return this._els.textColorpicker.color},set:function(I){this._els.textColorpicker.color=I}},{key:"fontSize",get:function(){return this._els.textRange.value},set:function(I){this._els.textRange.value=I}},{key:"fontStyle",get:function(){return this.effect.italic?"italic":"normal"}},{key:"fontWeight",get:function(){return this.effect.bold?"bold":"normal"}},{key:"underline",get:function(){return this.effect.underline}},{key:"setTextStyleStateOnAction",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=Xe()(I),F=I.fontSize,K=I.fontStyle,oe=I.fontWeight,ie=I.textDecoration,ke=I.textAlign;this.textColor=T,this.fontSize=F,this.setEffectState("italic",K),this.setEffectState("bold",oe),this.setEffectState("underline",ie),this.setAlignState("tie-text-align-".concat(ke))}},{key:"setEffectState",value:function(I,T){var F=T==="italic"||T==="bold"||T==="underline",K=this._els.textEffectButton.querySelector(".tui-image-editor-button.".concat(I));this.effect[I]=F,K.classList[F?"add":"remove"]("active")}},{key:"setAlignState",value:function(I){var T=this._els.textAlignButton;T.classList.remove(this.align),T.classList.add(I),this.align=I}},{key:"_setTextEffectHandler",value:function(I){var T=I.target.closest(".tui-image-editor-button");if(T){var F=T.className.match(/(bold|italic|underline)/),K=Ae(F,1),oe=K[0],ie={bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},underline:{textDecoration:"underline"}}[oe];this.effect[oe]=!this.effect[oe],T.classList.toggle("active"),this.actions.changeTextStyle(ie)}}},{key:"_setTextAlignHandler",value:function(I){var T=I.target.closest(".tui-image-editor-button");if(T){var F=this.getButtonType(T,["left","center","right"]),K="tie-text-align-".concat(F);I.currentTarget.classList.remove(this.align),this.align!==K&&I.currentTarget.classList.add(K),this.actions.changeTextStyle({textAlign:F}),this.align=K}}},{key:"_changeTextRnageHandler",value:function(I,T){this.actions.changeTextStyle({fontSize:I},!T)}},{key:"_changeColorHandler",value:function(I){I=I||"transparent",this.actions.changeTextStyle({fill:I})}}]),x}(qs),SY=CY,wY=function(J){var L,x,M,I=J.locale,T=J.makeSvgIcon;return te()(L=te()(x=te()(M=`
  993. <ul class="tui-image-editor-submenu-item">
  994. <li>
  995. <div class="tui-image-editor-button">
  996. <div>
  997. <input type="file" accept="image/*" class="tie-mask-image-file">
  998. `.concat(T(["normal","active"],"mask-load",!0),`
  999. </div>
  1000. <label> `)).call(M,I.localize("Load Mask Image"),` </label>
  1001. </div>
  1002. </li>
  1003. <li class="tui-image-editor-partition only-left-right">
  1004. <div></div>
  1005. </li>
  1006. <li class="tie-mask-apply tui-image-editor-newline apply" style="margin-top: 22px;margin-bottom: 5px">
  1007. <div class="tui-image-editor-button apply">
  1008. `)).call(x,T(["normal","active"],"apply"),`
  1009. <label>
  1010. `)).call(L,I.localize("Apply"),`
  1011. </label>
  1012. </div>
  1013. </li>
  1014. </ul>
  1015. `)};function _Y(J){var L=IY();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function IY(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var xY=function(J){vn(x,J);var L=_Y(x);function x(M,I){var T,F=I.locale,K=I.makeSvgIcon,oe=I.menuBarPosition,ie=I.usageStatistics;return U(this,x),T=L.call(this,M,{locale:F,name:"mask",makeSvgIcon:K,menuBarPosition:oe,templateHtml:wY,usageStatistics:ie}),T._els={applyButton:T.selector(".tie-mask-apply"),maskImageButton:T.selector(".tie-mask-image-file")},T}return q(x,[{key:"destroy",value:function(){this._removeEvent(),Li(this)}},{key:"addEvent",value:function(I){var T,F,K=ne()(T=this._loadMaskFile).call(T,this),oe=ne()(F=this._applyMask).call(F,this);this.eventHandler={loadMaskFile:K,applyMask:oe},this.actions=I,this._els.maskImageButton.addEventListener("change",K),this._els.applyButton.addEventListener("click",oe)}},{key:"_removeEvent",value:function(){this._els.maskImageButton.removeEventListener("change",this.eventHandler.loadMaskFile),this._els.applyButton.removeEventListener("click",this.eventHandler.applyMask)}},{key:"_applyMask",value:function(){this.actions.applyFilter(),this._els.applyButton.classList.remove("active")}},{key:"_loadMaskFile",value:function(I){var T;Hi()||alert("This browser does not support file-api");var F=Ae(I.target.files,1),K=F[0];K&&(T=ge().createObjectURL(K),this.actions.loadImageFromURL(T,K),this._els.applyButton.classList.add("active"))}}]),x}(qs),$Y=xY,AY=function(J){var L,x,M,I,T,F,K,oe,ie,ke,Oe,Ze,Ge,Je,Ke,qe,vt,qt,tn,on,Lt=J.locale,Rn=J.makeSvgIcon;return te()(L=te()(x=te()(M=te()(I=te()(T=te()(F=te()(K=te()(oe=te()(ie=te()(ke=te()(Oe=te()(Ze=te()(Ge=te()(Je=te()(Ke=te()(qe=te()(vt=te()(qt=te()(tn=te()(on=`
  1016. <ul class="tui-image-editor-submenu-item">
  1017. <li class="tie-icon-add-button">
  1018. <div class="tui-image-editor-button" data-icontype="icon-arrow">
  1019. <div>
  1020. `.concat(Rn(["normal","active"],"icon-arrow",!0),`
  1021. </div>
  1022. <label>
  1023. `)).call(on,Lt.localize("Arrow"),`
  1024. </label>
  1025. </div>
  1026. <div class="tui-image-editor-button" data-icontype="icon-arrow-2">
  1027. <div>
  1028. `)).call(tn,Rn(["normal","active"],"icon-arrow-2",!0),`
  1029. </div>
  1030. <label>
  1031. `)).call(qt,Lt.localize("Arrow-2"),`
  1032. </label>
  1033. </div>
  1034. <div class="tui-image-editor-button" data-icontype="icon-arrow-3">
  1035. <div>
  1036. `)).call(vt,Rn(["normal","active"],"icon-arrow-3",!0),`
  1037. </div>
  1038. <label>
  1039. `)).call(qe,Lt.localize("Arrow-3"),`
  1040. </label>
  1041. </div>
  1042. <div class="tui-image-editor-button" data-icontype="icon-star">
  1043. <div>
  1044. `)).call(Ke,Rn(["normal","active"],"icon-star",!0),`
  1045. </div>
  1046. <label>
  1047. `)).call(Je,Lt.localize("Star-1"),`
  1048. </label>
  1049. </div>
  1050. <div class="tui-image-editor-button" data-icontype="icon-star-2">
  1051. <div>
  1052. `)).call(Ge,Rn(["normal","active"],"icon-star-2",!0),`
  1053. </div>
  1054. <label>
  1055. `)).call(Ze,Lt.localize("Star-2"),`
  1056. </label>
  1057. </div>
  1058. <div class="tui-image-editor-button" data-icontype="icon-polygon">
  1059. <div>
  1060. `)).call(Oe,Rn(["normal","active"],"icon-polygon",!0),`
  1061. </div>
  1062. <label>
  1063. `)).call(ke,Lt.localize("Polygon"),`
  1064. </label>
  1065. </div>
  1066. <div class="tui-image-editor-button" data-icontype="icon-location">
  1067. <div>
  1068. `)).call(ie,Rn(["normal","active"],"icon-location",!0),`
  1069. </div>
  1070. <label>
  1071. `)).call(oe,Lt.localize("Location"),`
  1072. </label>
  1073. </div>
  1074. <div class="tui-image-editor-button" data-icontype="icon-heart">
  1075. <div>
  1076. `)).call(K,Rn(["normal","active"],"icon-heart",!0),`
  1077. </div>
  1078. <label>
  1079. `)).call(F,Lt.localize("Heart"),`
  1080. </label>
  1081. </div>
  1082. <div class="tui-image-editor-button" data-icontype="icon-bubble">
  1083. <div>
  1084. `)).call(T,Rn(["normal","active"],"icon-bubble",!0),`
  1085. </div>
  1086. <label>
  1087. `)).call(I,Lt.localize("Bubble"),`
  1088. </label>
  1089. </div>
  1090. </li>
  1091. <li class="tui-image-editor-partition">
  1092. <div></div>
  1093. </li>
  1094. <li class="tie-icon-add-button">
  1095. <div class="tui-image-editor-button" style="margin:0">
  1096. <div>
  1097. <input type="file" accept="image/*" class="tie-icon-image-file">
  1098. `)).call(M,Rn(["normal","active"],"icon-load",!0),`
  1099. </div>
  1100. <label>
  1101. `)).call(x,Lt.localize("Custom icon"),`
  1102. </label>
  1103. </div>
  1104. </li>
  1105. <li class="tui-image-editor-partition">
  1106. <div></div>
  1107. </li>
  1108. <li>
  1109. <div class="tie-icon-color" title="`)).call(L,Lt.localize("Color"),`"></div>
  1110. </li>
  1111. </ul>
  1112. `)};function EY(J){var L=MY();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function MY(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var TY=function(J){vn(x,J);var L=EY(x);function x(M,I){var T,F=I.locale,K=I.makeSvgIcon,oe=I.menuBarPosition,ie=I.usageStatistics;return U(this,x),T=L.call(this,M,{locale:F,name:"icon",makeSvgIcon:K,menuBarPosition:oe,templateHtml:AY,usageStatistics:ie}),T.iconType=null,T._iconMap={},T._els={registerIconButton:T.selector(".tie-icon-image-file"),addIconButton:T.selector(".tie-icon-add-button"),iconColorpicker:new Fl(T.selector(".tie-icon-color"),{defaultColor:"#ffbb3b",toggleDirection:T.toggleDirection,usageStatistics:T.usageStatistics})},T.colorPickerInputBox=T._els.iconColorpicker.colorpickerElement.querySelector(wn.COLOR_PICKER_INPUT_BOX),T}return q(x,[{key:"destroy",value:function(){this._removeEvent(),this._els.iconColorpicker.destroy(),Li(this)}},{key:"addEvent",value:function(I){var T,F,K,oe,ie,ke=ne()(T=this._registerIconHandler).call(T,this),Oe=ne()(F=this._addIconHandler).call(F,this);this.eventHandler={registerIcon:ke,addIcon:Oe},this.actions=I,this._els.iconColorpicker.on("change",ne()(K=this._changeColorHandler).call(K,this)),this._els.registerIconButton.addEventListener("change",ke),this._els.addIconButton.addEventListener("click",Oe),this.colorPickerInputBox.addEventListener(st.FOCUS,ne()(oe=this._onStartEditingInputBox).call(oe,this)),this.colorPickerInputBox.addEventListener(st.BLUR,ne()(ie=this._onStopEditingInputBox).call(ie,this))}},{key:"_removeEvent",value:function(){var I,T;this._els.iconColorpicker.off(),this._els.registerIconButton.removeEventListener("change",this.eventHandler.registerIcon),this._els.addIconButton.removeEventListener("click",this.eventHandler.addIcon),this.colorPickerInputBox.removeEventListener(st.FOCUS,ne()(I=this._onStartEditingInputBox).call(I,this)),this.colorPickerInputBox.removeEventListener(st.BLUR,ne()(T=this._onStopEditingInputBox).call(T,this))}},{key:"clearIconType",value:function(){this._els.addIconButton.classList.remove(this.iconType),this.iconType=null}},{key:"registerDefaultIcon",value:function(){var I=this;ee()(Go,function(T,F){I.actions.registerDefaultIcons(F,T)})}},{key:"setIconPickerColor",value:function(I){this._els.iconColorpicker.color=I}},{key:"changeStandbyMode",value:function(){this.clearIconType(),this.actions.cancelAddIcon()}},{key:"_changeColorHandler",value:function(I){I=I||"transparent",this.actions.changeColor(I)}},{key:"_addIconHandler",value:function(I){var T=I.target.closest(".tui-image-editor-button");if(T){var F=T.getAttribute("data-icontype"),K=this._els.iconColorpicker.color;this.actions.discardSelection(),this.actions.changeSelectableAll(!1),this._els.addIconButton.classList.remove(this.iconType),this._els.addIconButton.classList.add(F),this.iconType===F?this.changeStandbyMode():(this.actions.addIcon(F,K),this.iconType=F)}}},{key:"_registerIconHandler",value:function(I){var T;Hi||alert("This browser does not support file-api");var F=Ae(I.target.files,1),K=F[0];K&&(T=ge().createObjectURL(K),this.actions.registerCustomIcon(T,K))}}]),x}(qs),PY=TY,OY=function(J){var L,x,M,I,T,F=J.locale,K=J.makeSvgIcon;return te()(L=te()(x=te()(M=te()(I=te()(T=`
  1113. <ul class="tui-image-editor-submenu-item">
  1114. <li class="tie-draw-line-select-button">
  1115. <div class="tui-image-editor-button free">
  1116. <div>
  1117. `.concat(K(["normal","active"],"draw-free",!0),`
  1118. </div>
  1119. <label>
  1120. `)).call(T,F.localize("Free"),`
  1121. </label>
  1122. </div>
  1123. <div class="tui-image-editor-button line">
  1124. <div>
  1125. `)).call(I,K(["normal","active"],"draw-line",!0),`
  1126. </div>
  1127. <label>
  1128. `)).call(M,F.localize("Straight"),`
  1129. </label>
  1130. </div>
  1131. </li>
  1132. <li class="tui-image-editor-partition">
  1133. <div></div>
  1134. </li>
  1135. <li>
  1136. <div class="tie-draw-color" title="`)).call(x,F.localize("Color"),`"></div>
  1137. </li>
  1138. <li class="tui-image-editor-partition only-left-right">
  1139. <div></div>
  1140. </li>
  1141. <li class="tui-image-editor-newline tui-image-editor-range-wrap">
  1142. <label class="range">`)).call(L,F.localize("Range"),`</label>
  1143. <div class="tie-draw-range"></div>
  1144. <input class="tie-draw-range-value tui-image-editor-range-value" value="0" />
  1145. </li>
  1146. </ul>
  1147. `)};function LY(J){var L=DY();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function DY(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var NY=.7,jY=function(J){vn(x,J);var L=LY(x);function x(M,I){var T,F=I.locale,K=I.makeSvgIcon,oe=I.menuBarPosition,ie=I.usageStatistics;return U(this,x),T=L.call(this,M,{locale:F,name:"draw",makeSvgIcon:K,menuBarPosition:oe,templateHtml:OY,usageStatistics:ie}),T._els={lineSelectButton:T.selector(".tie-draw-line-select-button"),drawColorPicker:new Fl(T.selector(".tie-draw-color"),{defaultColor:"#00a9ff",toggleDirection:T.toggleDirection,usageStatistics:T.usageStatistics}),drawRange:new Yo({slider:T.selector(".tie-draw-range"),input:T.selector(".tie-draw-range-value")},Rl)},T.type=null,T.color=T._els.drawColorPicker.color,T.width=T._els.drawRange.value,T.colorPickerInputBox=T._els.drawColorPicker.colorpickerElement.querySelector(wn.COLOR_PICKER_INPUT_BOX),T}return q(x,[{key:"destroy",value:function(){this._removeEvent(),this._els.drawColorPicker.destroy(),this._els.drawRange.destroy(),Li(this)}},{key:"addEvent",value:function(I){var T,F,K,oe,ie;this.eventHandler.changeDrawType=ne()(T=this._changeDrawType).call(T,this),this.actions=I,this._els.lineSelectButton.addEventListener("click",this.eventHandler.changeDrawType),this._els.drawColorPicker.on("change",ne()(F=this._changeDrawColor).call(F,this)),this._els.drawRange.on("change",ne()(K=this._changeDrawRange).call(K,this)),this.colorPickerInputBox.addEventListener(st.FOCUS,ne()(oe=this._onStartEditingInputBox).call(oe,this)),this.colorPickerInputBox.addEventListener(st.BLUR,ne()(ie=this._onStopEditingInputBox).call(ie,this))}},{key:"_removeEvent",value:function(){var I,T;this._els.lineSelectButton.removeEventListener("click",this.eventHandler.changeDrawType),this._els.drawColorPicker.off(),this._els.drawRange.off(),this.colorPickerInputBox.removeEventListener(st.FOCUS,ne()(I=this._onStartEditingInputBox).call(I,this)),this.colorPickerInputBox.removeEventListener(st.BLUR,ne()(T=this._onStopEditingInputBox).call(T,this))}},{key:"setDrawMode",value:function(){this.actions.setDrawMode(this.type,{width:this.width,color:_t(this.color,NY)})}},{key:"changeStandbyMode",value:function(){this.type=null,this.actions.stopDrawingMode(),this.actions.changeSelectableAll(!0),this._els.lineSelectButton.classList.remove("free"),this._els.lineSelectButton.classList.remove("line")}},{key:"changeStartMode",value:function(){this.type="free",this._els.lineSelectButton.classList.add("free"),this.setDrawMode()}},{key:"_changeDrawType",value:function(I){var T=I.target.closest(".tui-image-editor-button");if(T){var F=this.getButtonType(T,["free","line"]);if(this.actions.discardSelection(),this.type===F){this.changeStandbyMode();return}this.changeStandbyMode(),this.type=F,this._els.lineSelectButton.classList.add(F),this.setDrawMode()}}},{key:"_changeDrawColor",value:function(I){this.color=I||"transparent",this.type?this.setDrawMode():this.changeStartMode()}},{key:"_changeDrawRange",value:function(I){this.width=I,this.type?this.setDrawMode():this.changeStartMode()}}]),x}(qs),zY=jY,RY=s(9886),FO=s.n(RY),BY=function(J){var L,x,M,I,T,F,K,oe,ie,ke,Oe,Ze,Ge,Je,Ke,qe,vt=J.locale;return te()(L=te()(x=te()(M=te()(I=te()(T=te()(F=te()(K=te()(oe=te()(ie=te()(ke=te()(Oe=te()(Ze=te()(Ge=te()(Je=te()(Ke=te()(qe=`
  1148. <ul class="tui-image-editor-submenu-item">
  1149. <li class="tui-image-editor-submenu-align">
  1150. <div class="tui-image-editor-checkbox-wrap fixed-width">
  1151. <div class="tui-image-editor-checkbox">
  1152. <label>
  1153. <input type="checkbox" class="tie-grayscale">
  1154. <span>`.concat(vt.localize("Grayscale"),`</span>
  1155. </label>
  1156. </div>
  1157. <div class="tui-image-editor-checkbox">
  1158. <label>
  1159. <input type="checkbox" class="tie-invert">
  1160. <span>`)).call(qe,vt.localize("Invert"),`</span>
  1161. </label>
  1162. </div>
  1163. <div class="tui-image-editor-checkbox">
  1164. <label>
  1165. <input type="checkbox" class="tie-sepia">
  1166. <span>`)).call(Ke,vt.localize("Sepia"),`</span>
  1167. </label>
  1168. </div>
  1169. <div class="tui-image-editor-checkbox">
  1170. <label>
  1171. <input type="checkbox" class="tie-vintage">
  1172. <span>`)).call(Je,vt.localize("Sepia2"),`</span>
  1173. </label>
  1174. </div>
  1175. <div class="tui-image-editor-checkbox">
  1176. <label>
  1177. <input type="checkbox" class="tie-blur">
  1178. <span>`)).call(Ge,vt.localize("Blur"),`</span>
  1179. </label>
  1180. </div>
  1181. <div class="tui-image-editor-checkbox">
  1182. <label>
  1183. <input type="checkbox" class="tie-sharpen">
  1184. <span>`)).call(Ze,vt.localize("Sharpen"),`</span>
  1185. </label>
  1186. </div>
  1187. <div class="tui-image-editor-checkbox">
  1188. <label>
  1189. <input type="checkbox" class="tie-emboss">
  1190. <span>`)).call(Oe,vt.localize("Emboss"),`</span>
  1191. </label>
  1192. </div>
  1193. </div>
  1194. </li>
  1195. <li class="tui-image-editor-partition">
  1196. <div></div>
  1197. </li>
  1198. <li class="tui-image-editor-submenu-align">
  1199. <div class="tui-image-editor-checkbox-group tui-image-editor-disabled" style="margin-bottom: 7px;">
  1200. <div class="tui-image-editor-checkbox-wrap">
  1201. <div class="tui-image-editor-checkbox">
  1202. <label>
  1203. <input type="checkbox" class="tie-remove-white">
  1204. <span>`)).call(ke,vt.localize("Remove White"),`</span>
  1205. </label>
  1206. </div>
  1207. </div>
  1208. <div class="tui-image-editor-newline tui-image-editor-range-wrap short">
  1209. <label>`)).call(ie,vt.localize("Distance"),`</label>
  1210. <div class="tie-removewhite-distance-range"></div>
  1211. </div>
  1212. </div>
  1213. <div class="tui-image-editor-checkbox-group tui-image-editor-disabled">
  1214. <div class="tui-image-editor-checkbox">
  1215. <label>
  1216. <input type="checkbox" class="tie-brightness">
  1217. <span>`)).call(oe,vt.localize("Brightness"),`</span>
  1218. </label>
  1219. </div>
  1220. <div class="tui-image-editor-range-wrap short">
  1221. <div class="tie-brightness-range"></div>
  1222. </div>
  1223. </div>
  1224. <div class="tui-image-editor-checkbox-group tui-image-editor-disabled">
  1225. <div class="tui-image-editor-checkbox">
  1226. <label>
  1227. <input type="checkbox" class="tie-noise">
  1228. <span>`)).call(K,vt.localize("Noise"),`</span>
  1229. </label>
  1230. </div>
  1231. <div class="tui-image-editor-range-wrap short">
  1232. <div class="tie-noise-range"></div>
  1233. </div>
  1234. </div>
  1235. </li>
  1236. <li class="tui-image-editor-partition only-left-right">
  1237. <div></div>
  1238. </li>
  1239. <li class="tui-image-editor-submenu-align">
  1240. <div class="tui-image-editor-checkbox-group tui-image-editor-disabled">
  1241. <div class="tui-image-editor-checkbox">
  1242. <label>
  1243. <input type="checkbox" class="tie-pixelate">
  1244. <span>`)).call(F,vt.localize("Pixelate"),`</span>
  1245. </label>
  1246. </div>
  1247. <div class="tui-image-editor-range-wrap short">
  1248. <div class="tie-pixelate-range"></div>
  1249. </div>
  1250. </div>
  1251. <div class="tui-image-editor-checkbox-group tui-image-editor-disabled">
  1252. <div class="tui-image-editor-newline tui-image-editor-checkbox-wrap">
  1253. <div class="tui-image-editor-checkbox">
  1254. <label>
  1255. <input type="checkbox" class="tie-color-filter">
  1256. <span>`)).call(T,vt.localize("Color Filter"),`</span>
  1257. </label>
  1258. </div>
  1259. </div>
  1260. <div class="tui-image-editor-newline tui-image-editor-range-wrap short">
  1261. <label>`)).call(I,vt.localize("Threshold"),`</label>
  1262. <div class="tie-colorfilter-threshold-range"></div>
  1263. </div>
  1264. </div>
  1265. </li>
  1266. <li class="tui-image-editor-partition">
  1267. <div></div>
  1268. </li>
  1269. <li>
  1270. <div class="filter-color-item">
  1271. <div class="tie-filter-tint-color" title="`)).call(M,vt.localize("Tint"),`"></div>
  1272. <div class="tui-image-editor-checkbox">
  1273. <label>
  1274. <input type="checkbox" class="tie-tint">
  1275. <span></span>
  1276. </label>
  1277. </div>
  1278. </div>
  1279. <div class="filter-color-item">
  1280. <div class="tie-filter-multiply-color" title="`)).call(x,vt.localize("Multiply"),`"></div>
  1281. <div class="tui-image-editor-checkbox">
  1282. <label>
  1283. <input type="checkbox" class="tie-multiply">
  1284. <span></span>
  1285. </label>
  1286. </div>
  1287. </div>
  1288. <div class="filter-color-item">
  1289. <div class="tie-filter-blend-color" title="`)).call(L,vt.localize("Blend"),`"></div>
  1290. <div class="tui-image-editor-checkbox">
  1291. <label>
  1292. <input type="checkbox" class="tie-blend">
  1293. <span></span>
  1294. </label>
  1295. </div>
  1296. </div>
  1297. </li>
  1298. </ul>
  1299. `)};function FY(J){var L=VY();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function VY(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var VO="130px",HY=["add","diff","subtract","multiply","screen","lighten","darken"],HO=["grayscale","invert","sepia","vintage","blur","sharpen","emboss","remove-white","brightness","noise","pixelate","color-filter","tint","multiply","blend"],WY={grayscale:"grayscale",invert:"invert",sepia:"sepia",blur:"blur",sharpen:"sharpen",emboss:"emboss",removeWhite:"removeColor",brightness:"brightness",contrast:"contrast",saturation:"saturation",vintage:"vintage",polaroid:"polaroid",noise:"noise",pixelate:"pixelate",colorFilter:"removeColor",tint:"blendColor",multiply:"blendColor",blend:"blendColor",hue:"hue",gamma:"gamma"},WO=["removewhiteDistanceRange","colorfilterThresholdRange","pixelateRange","noiseRange","brightnessRange","tintOpacity"],UO=["filterBlendColor","filterMultiplyColor","filterTintColor"],UY=function(J){vn(x,J);var L=FY(x);function x(M,I){var T,F=I.locale,K=I.menuBarPosition,oe=I.usageStatistics;return U(this,x),T=L.call(this,M,{locale:F,name:"filter",menuBarPosition:K,templateHtml:BY,usageStatistics:oe}),T.selectBoxShow=!1,T.checkedMap={},T._makeControlElement(),T}return q(x,[{key:"destroy",value:function(){this._removeEvent(),this._destroyToolInstance(),Li(this)}},{key:"_removeEvent",value:function(){var I=this,T;ee()(HO,function(F){var K=I.selector(".tie-".concat(F)),oe=ci(F);K.removeEventListener("change",I.eventHandler[oe])}),ee()(te()(T=[]).call(T,WO,UO),function(F){I._els[F].off()}),this._els.blendType.removeEventListener("change",this.eventHandler.changeBlendFilter),this._els.blendType.removeEventListener("click",this.eventHandler.changeBlendFilter),hm()(this.colorPickerInputBoxes,function(F){var K,oe;F.removeEventListener(st.FOCUS,ne()(K=I._onStartEditingInputBox).call(K,I)),F.removeEventListener(st.BLUR,ne()(oe=I._onStopEditingInputBox).call(oe,I))},this)}},{key:"_destroyToolInstance",value:function(){var I,T=this;ee()(te()(I=[]).call(I,WO,UO),function(F){T._els[F].destroy()})}},{key:"addEvent",value:function(I){var T=this,F,K,oe,ie=I.applyFilter,ke=function(Ge){var Je;return ne()(Je=T._changeFilterState).call(Je,T,ie,Ge)},Oe=function(Ge){return function(Je,Ke){return T._changeFilterState(ie,Ge,Ke)}};this.eventHandler={changeBlendFilter:ke("blend"),blandTypeClick:function(Ge){return Ge.stopPropagation()}},ee()(HO,function(Ze){var Ge=T.selector(".tie-".concat(Ze)),Je=ci(Ze);T.checkedMap[Je]=Ge,T.eventHandler[Je]=ke(Je),Ge.addEventListener("change",T.eventHandler[Je])}),this._els.removewhiteDistanceRange.on("change",Oe("removeWhite")),this._els.colorfilterThresholdRange.on("change",Oe("colorFilter")),this._els.pixelateRange.on("change",Oe("pixelate")),this._els.noiseRange.on("change",Oe("noise")),this._els.brightnessRange.on("change",Oe("brightness")),this._els.filterBlendColor.on("change",this.eventHandler.changeBlendFilter),this._els.filterMultiplyColor.on("change",ke("multiply")),this._els.filterTintColor.on("change",ke("tint")),this._els.tintOpacity.on("change",Oe("tint")),this._els.filterMultiplyColor.on("changeShow",ne()(F=this.colorPickerChangeShow).call(F,this)),this._els.filterTintColor.on("changeShow",ne()(K=this.colorPickerChangeShow).call(K,this)),this._els.filterBlendColor.on("changeShow",ne()(oe=this.colorPickerChangeShow).call(oe,this)),this._els.blendType.addEventListener("change",this.eventHandler.changeBlendFilter),this._els.blendType.addEventListener("click",this.eventHandler.blandTypeClick),hm()(this.colorPickerInputBoxes,function(Ze){var Ge,Je;Ze.addEventListener(st.FOCUS,ne()(Ge=T._onStartEditingInputBox).call(Ge,T)),Ze.addEventListener(st.BLUR,ne()(Je=T._onStopEditingInputBox).call(Je,T))},this)}},{key:"setFilterState",value:function(I){var T=I.type,F=I.options,K=I.action,oe=this._getFilterNameFromOptions(T,F),ie=K==="remove";ie||this._setFilterState(oe,F),this.checkedMap[oe].checked=!ie}},{key:"initFilterCheckBoxState",value:function(){ee()(this.checkedMap,function(I){I.checked=!1},this)}},{key:"_setFilterState",value:function(I,T){I==="colorFilter"?this._els.colorfilterThresholdRange.value=T.distance:I==="removeWhite"?this._els.removewhiteDistanceRange.value=T.distance:I==="pixelate"?this._els.pixelateRange.value=T.blocksize:I==="brightness"?this._els.brightnessRange.value=T.brightness:I==="noise"?this._els.noiseRange.value=T.noise:I==="tint"?(this._els.tintOpacity.value=T.alpha,this._els.filterTintColor.color=T.color):I==="blend"?this._els.filterBlendColor.color=T.color:I==="multiply"&&(this._els.filterMultiplyColor.color=T.color)}},{key:"_getFilterNameFromOptions",value:function(I,T){var F=I;return I==="removeColor"?F=FO()(T.useAlpha)?"removeWhite":"colorFilter":I==="blendColor"&&(F={add:"blend",multiply:"multiply",tint:"tint"}[T.mode]),F}},{key:"_changeFilterState",value:function(I,T){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,K=this.checkedMap[T].checked,oe=WY[T],ie=this.checkedMap[T].closest(".tui-image-editor-checkbox-group");ie&&(K?ie.classList.remove("tui-image-editor-disabled"):ie.classList.add("tui-image-editor-disabled")),I(K,oe,this._getFilterOption(T),!F)}},{key:"_getFilterOption",value:function(I){var T={};switch(I){case"removeWhite":T.color="#FFFFFF",T.useAlpha=!1,T.distance=Na()(this._els.removewhiteDistanceRange.value);break;case"colorFilter":T.color="#FFFFFF",T.distance=Na()(this._els.colorfilterThresholdRange.value);break;case"pixelate":T.blocksize=$n(this._els.pixelateRange.value);break;case"noise":T.noise=$n(this._els.noiseRange.value);break;case"brightness":T.brightness=Na()(this._els.brightnessRange.value);break;case"blend":T.mode="add",T.color=this._els.filterBlendColor.color,T.mode=this._els.blendType.value;break;case"multiply":T.mode="multiply",T.color=this._els.filterMultiplyColor.color;break;case"tint":T.mode="tint",T.color=this._els.filterTintColor.color,T.alpha=this._els.tintOpacity.value;break;case"blur":T.blur=this._els.blurRange.value;break}return T}},{key:"_makeControlElement",value:function(){this._els={removewhiteDistanceRange:new Yo({slider:this.selector(".tie-removewhite-distance-range")},Dr.removewhiteDistanceRange),brightnessRange:new Yo({slider:this.selector(".tie-brightness-range")},Dr.brightnessRange),noiseRange:new Yo({slider:this.selector(".tie-noise-range")},Dr.noiseRange),pixelateRange:new Yo({slider:this.selector(".tie-pixelate-range")},Dr.pixelateRange),colorfilterThresholdRange:new Yo({slider:this.selector(".tie-colorfilter-threshold-range")},Dr.colorfilterThresholdRange),filterTintColor:new Fl(this.selector(".tie-filter-tint-color"),{defaultColor:"#03bd9e",toggleDirection:this.toggleDirection,usageStatistics:this.usageStatistics}),filterMultiplyColor:new Fl(this.selector(".tie-filter-multiply-color"),{defaultColor:"#515ce6",toggleDirection:this.toggleDirection,usageStatistics:this.usageStatistics}),filterBlendColor:new Fl(this.selector(".tie-filter-blend-color"),{defaultColor:"#ffbb3b",toggleDirection:this.toggleDirection,usageStatistics:this.usageStatistics}),blurRange:Dr.blurFilterRange},this._els.tintOpacity=this._pickerWithRange(this._els.filterTintColor.pickerControl),this._els.blendType=this._pickerWithSelectbox(this._els.filterBlendColor.pickerControl),this.colorPickerControls.push(this._els.filterTintColor),this.colorPickerControls.push(this._els.filterMultiplyColor),this.colorPickerControls.push(this._els.filterBlendColor),this.colorPickerInputBoxes=[],this.colorPickerInputBoxes.push(this._els.filterTintColor.colorpickerElement.querySelector(wn.COLOR_PICKER_INPUT_BOX)),this.colorPickerInputBoxes.push(this._els.filterMultiplyColor.colorpickerElement.querySelector(wn.COLOR_PICKER_INPUT_BOX)),this.colorPickerInputBoxes.push(this._els.filterBlendColor.colorpickerElement.querySelector(wn.COLOR_PICKER_INPUT_BOX))}},{key:"_pickerWithRange",value:function(I){var T=document.createElement("div"),F=document.createElement("label"),K=document.createElement("div");return K.id="tie-filter-tint-opacity",F.innerHTML="Opacity",T.appendChild(F),T.appendChild(K),I.appendChild(T),I.style.height=VO,new Yo({slider:K},Dr.tintOpacityRange)}},{key:"_pickerWithSelectbox",value:function(I){var T=document.createElement("div"),F=document.createElement("select"),K=document.createElement("ul");return T.className="tui-image-editor-selectlist-wrap",K.className="tui-image-editor-selectlist",T.appendChild(F),T.appendChild(K),this._makeSelectOptionList(F),I.appendChild(T),I.style.height=VO,this._drawSelectOptionList(F,K),this._pickerWithSelectboxForAddEvent(F,K),F}},{key:"_drawSelectOptionList",value:function(I,T){var F=I.querySelectorAll("option");ee()(F,function(K){var oe=document.createElement("li");oe.innerHTML=K.innerHTML,oe.setAttribute("data-item",K.value),T.appendChild(oe)})}},{key:"_pickerWithSelectboxForAddEvent",value:function(I,T){var F=this;T.addEventListener("click",function(K){var oe=K.target.getAttribute("data-item"),ie=document.createEvent("HTMLEvents");I.querySelector('[value="'.concat(oe,'"]')).selected=!0,ie.initEvent("change",!0,!0),I.dispatchEvent(ie),F.selectBoxShow=!1,T.style.display="none"}),I.addEventListener("mousedown",function(K){K.preventDefault(),F.selectBoxShow=!F.selectBoxShow,T.style.display=F.selectBoxShow?"block":"none",T.setAttribute("data-selectitem",I.value),T.querySelector("[data-item='".concat(I.value,"']")).classList.add("active")})}},{key:"_makeSelectOptionList",value:function(I){ee()(HY,function(T){var F=document.createElement("option");F.setAttribute("value",T),F.innerHTML=T.replace(/^[a-z]/,function(K){return K.toUpperCase()}),I.appendChild(F)})}}]),x}(qs),ZY=UY,GY=s(4383),YY=s.n(GY),XY=function(){function J(L,x){var M=x.name;U(this,J),this.name=M,this.items=[],this.panelElement=this._makePanelElement(),this.listElement=this._makeListElement(),this.panelElement.appendChild(this.listElement),L.appendChild(this.panelElement)}return q(J,[{key:"_makePanelElement",value:function(){var x=document.createElement("div");return x.className="tie-panel-".concat(this.name),x}},{key:"_makeListElement",value:function(){var x=document.createElement("ol");return x.className="".concat(this.name,"-list"),x}},{key:"makeListItemElement",value:function(x){var M=document.createElement("li");return M.innerHTML=x,M.className="".concat(this.name,"-item"),M.setAttribute("data-index",this.items.length),M}},{key:"pushListItemElement",value:function(x){this.listElement.appendChild(x),this.listElement.scrollTop+=x.offsetHeight,this.items.push(x)}},{key:"deleteListItemElement",value:function(x,M){for(var I=this.items,T=x;T<M;T+=1)this.listElement.removeChild(I[T]);C()(I).call(I,x,M-x+1)}},{key:"getListLength",value:function(){return this.items.length}},{key:"addClass",value:function(x,M){this.items[x]&&this.items[x].classList.add(M)}},{key:"removeClass",value:function(x,M){this.items[x]&&this.items[x].classList.remove(M)}},{key:"toggleClass",value:function(x,M){this.items[x]&&this.items[x].classList.toggle(M)}}]),J}(),KY=XY,JY=function(J){var L,x,M,I=J.locale,T=J.makeSvgIcon,F=J.name,K=J.detail;return te()(L=te()(x=te()(M=`
  1300. <div class="tui-image-editor-history-item history">
  1301. <div class="history-item-icon">
  1302. `.concat(T(["normal","active"],"history-".concat(F.toLowerCase()),!0),`
  1303. </div>
  1304. <span>
  1305. `)).call(M,I.localize(F),`
  1306. `)).call(x,K?"(".concat(I.localize(K),")"):"",`
  1307. </span>
  1308. <div class="history-item-checkbox">
  1309. `)).call(L,T(["normal"],"history-check",!0),`
  1310. </div>
  1311. </div>
  1312. `)};function qY(J){var L=QY();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function QY(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var eX="history-item",ZO="selected-item",GO="disabled-item",tX=function(J){vn(x,J);var L=qY(x);function x(M,I){var T,F=I.locale,K=I.makeSvgIcon;return U(this,x),T=L.call(this,M,{name:"history"}),M.classList.add("enabled"),T.locale=F,T.makeSvgIcon=K,T._eventHandler={},T._historyIndex=T.getListLength(),T}return q(x,[{key:"add",value:function(I){var T=I.name,F=I.detail;this._hasDisabledItem()&&this.deleteListItemElement(this._historyIndex+1,this.getListLength());var K=JY({locale:this.locale,makeSvgIcon:this.makeSvgIcon,name:T,detail:F}),oe=this.makeListItemElement(K);this.pushListItemElement(oe),this._historyIndex=this.getListLength()-1,this._selectItem(this._historyIndex)}},{key:"init",value:function(){this.deleteListItemElement(1,this.getListLength()),this._historyIndex=0,this._selectItem(this._historyIndex)}},{key:"clear",value:function(){this.deleteListItemElement(0,this.getListLength()),this._historyIndex=-1}},{key:"prev",value:function(){this._historyIndex-=1,this._selectItem(this._historyIndex)}},{key:"next",value:function(){this._historyIndex+=1,this._selectItem(this._historyIndex)}},{key:"_hasDisabledItem",value:function(){return this.getListLength()-1>this._historyIndex}},{key:"_addHistoryEventListener",value:function(){var I=this;this._eventHandler.history=function(T){return I._clickHistoryItem(T)},this.listElement.addEventListener("click",this._eventHandler.history)}},{key:"_removeHistoryEventListener",value:function(){this.listElement.removeEventListener("click",this._eventHandler.history)}},{key:"_clickHistoryItem",value:function(I){var T=I.target,F=T.closest(".".concat(eX));if(F){var K=YY()(F.getAttribute("data-index"),10);if(K!==this._historyIndex){var oe=Math.abs(K-this._historyIndex);K<this._historyIndex?this._actions.undo(oe):this._actions.redo(oe)}}}},{key:"_selectItem",value:function(I){for(var T=0;T<this.getListLength();T+=1)this.removeClass(T,ZO),this.removeClass(T,GO),T>I&&this.addClass(T,GO);this.addClass(I,ZO)}},{key:"destroy",value:function(){this.removeEvent(),Li(this)}},{key:"addEvent",value:function(I){this._actions=I,this._addHistoryEventListener()}},{key:"removeEvent",value:function(){this._removeHistoryEventListener()}}]),x}(KY),nX=tX,iX=function(){function J(L){U(this,J),this._locale=L}return q(J,[{key:"localize",value:function(x){return this._locale[x]||x}}]),J}(),rX=iX,oX={Shape:XG,Crop:eY,Resize:oY,Flip:uY,Rotate:gY,Text:SY,Mask:$Y,Icon:PY,Draw:zY,Filter:ZY},sX="1300",YO="history",aX="tie-panel-history",pm="on",mm={ZOOM_IN:"zoomIn",HAND:"hand"},XO=function(){function J(L,x,M){U(this,J),this.options=this._initializeOption(x),this._actions=M,this.submenu=!1,this.imageSize={},this.uiSize={},this._locale=new rX(this.options.locale),this.theme=new Gn(this.options.theme),this.eventHandler={},this._submenuChangeTransection=!1,this._selectedElement=null,this._mainElement=null,this._editorElementWrap=null,this._editorElement=null,this._menuBarElement=null,this._subMenuElement=null,this._makeUiElement(L),this._setUiSize(),this._initMenuEvent=!1,this._makeSubMenu(),this._attachHistoryEvent(),this._attachZoomEvent()}return q(J,[{key:"destroy",value:function(){this._removeUiEvent(),this._destroyAllMenu(),this._selectedElement.innerHTML="",Li(this)}},{key:"setUiDefaultSelectionStyle",value:function(x){return pe()({applyCropSelectionStyle:!0,applyGroupSelectionStyle:!0,selectionStyle:{cornerStyle:"circle",cornerSize:16,cornerColor:"#fff",cornerStrokeColor:"#fff",transparentCorners:!1,lineWidth:2,borderColor:"#fff"}},x)}},{key:"resizeEditor",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=x.uiSize,I=x.imageSize,T=I===void 0?this.imageSize:I;T!==this.imageSize&&(this.imageSize=T),M&&this._setUiSize(M);var F=this._getCanvasMaxDimension(),K=F.width,oe=F.height,ie=this._editorElement.style,ke=this.options.menuBarPosition;ie.height="".concat(oe,"px"),ie.width="".concat(K,"px"),this._setEditorPosition(ke),this._editorElementWrap.style.bottom="0px",this._editorElementWrap.style.top="0px",this._editorElementWrap.style.left="0px",this._editorElementWrap.style.width="100%";var Oe=this._selectedElement.classList;ke==="top"&&this._selectedElement.offsetWidth<sX?Oe.add("tui-image-editor-top-optimization"):Oe.remove("tui-image-editor-top-optimization")}},{key:"toggleZoomButtonStatus",value:function(x){var M=this._buttonElements[x].classList;M.toggle(pm),x===mm.ZOOM_IN?this._buttonElements[mm.HAND].classList.remove(pm):this._buttonElements[mm.ZOOM_IN].classList.remove(pm)}},{key:"offZoomInButtonStatus",value:function(){var x=this._buttonElements[mm.ZOOM_IN].classList;x.remove(pm)}},{key:"changeHandButtonStatus",value:function(x){var M=this._buttonElements[mm.HAND].classList;M[x?"add":"remove"](pm)}},{key:"changeHelpButtonEnabled",value:function(x,M){var I=this._buttonElements[x].classList;I[M?"add":"remove"]("enabled")}},{key:"_initializeOption",value:function(x){return pe()({loadImage:{path:"",name:""},locale:{},menuIconPath:"",menu:["resize","crop","flip","rotate","draw","shape","icon","text","mask","filter"],initMenu:"",uiSize:{width:"100%",height:"100%"},menuBarPosition:"bottom"},x)}},{key:"_setUiSize",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.uiSize,M=this._selectedElement.style;M.width=x.width,M.height=x.height}},{key:"_makeSubMenu",value:function(){var x=this;ee()(this.options.menu,function(M){var I,T=oX[M.replace(/^[a-z]/,function(F){return F.toUpperCase()})];x._makeMenuElement(M),x._buttonElements[M]=x._menuBarElement.querySelector(".tie-btn-".concat(M)),x[M]=new T(x._subMenuElement,{locale:x._locale,makeSvgIcon:ne()(I=x.theme.makeMenSvgIconSet).call(I,x.theme),menuBarPosition:x.options.menuBarPosition,usageStatistics:x.options.usageStatistics})})}},{key:"_attachHistoryEvent",value:function(){var x,M,I;this.on(st.EXECUTE_COMMAND,ne()(x=this._addHistory).call(x,this)),this.on(st.AFTER_UNDO,ne()(M=this._selectPrevHistory).call(M,this)),this.on(st.AFTER_REDO,ne()(I=this._selectNextHistory).call(I,this))}},{key:"_attachZoomEvent",value:function(){var x=this;this.on(st.HAND_STARTED,function(){x.offZoomInButtonStatus(),x.changeHandButtonStatus(!0)}),this.on(st.HAND_STOPPED,function(){return x.changeHandButtonStatus(!1)})}},{key:"_makeUiElement",value:function(x){var M,I;x.nodeType?I=x:I=document.querySelector(x);var T=fu(I);I.classList.add("tui-image-editor-container"),I.innerHTML=ot({locale:this._locale,biImage:this.theme.getStyle("common.bi"),loadButtonStyle:this.theme.getStyle("loadButton"),downloadButtonStyle:this.theme.getStyle("downloadButton"),menuBarPosition:this.options.menuBarPosition})+Ye({locale:this._locale,biImage:this.theme.getStyle("common.bi"),commonStyle:this.theme.getStyle("common"),headerStyle:this.theme.getStyle("header"),loadButtonStyle:this.theme.getStyle("loadButton"),downloadButtonStyle:this.theme.getStyle("downloadButton"),submenuStyle:this.theme.getStyle("submenu")}),this._selectedElement=I,this._selectedElement.classList.add(this.options.menuBarPosition),this._mainElement=T(".tui-image-editor-main"),this._editorElementWrap=T(".tui-image-editor-wrap"),this._editorElement=T(".tui-image-editor"),this._helpMenuBarElement=T(".tui-image-editor-help-menu"),this._menuBarElement=T(".tui-image-editor-menu"),this._subMenuElement=T(".tui-image-editor-submenu"),this._buttonElements={download:this._selectedElement.querySelectorAll(".tui-image-editor-download-btn"),load:this._selectedElement.querySelectorAll(".tui-image-editor-load-btn")},this._addHelpMenus(),this._historyMenu=new nX(this._buttonElements[YO],{locale:this._locale,makeSvgIcon:ne()(M=this.theme.makeMenSvgIconSet).call(M,this.theme)}),this._activateZoomMenus()}},{key:"_activateZoomMenus",value:function(){var x=this;ee()(Rt,function(M){x.changeHelpButtonEnabled(M,!0)})}},{key:"_makeHelpMenuWithPartition",value:function(){var x;return te()(x=[]).call(x,V(Rt),[""],V(mn),[""],V(xn))}},{key:"_addHelpMenus",value:function(){var x=this,M=this._makeHelpMenuWithPartition();ee()(M,function(I){I?(x._makeMenuElement(I,["normal","disabled","hover"],"help"),x._buttonElements[I]=x._helpMenuBarElement.querySelector(".tie-btn-".concat(I))):x._makeMenuPartitionElement()})}},{key:"_makeMenuPartitionElement",value:function(){var x=document.createElement("li"),M=document.createElement("div");x.className=om("item"),M.className=om("icpartition"),x.appendChild(M),this._helpMenuBarElement.appendChild(x)}},{key:"_makeMenuElement",value:function(x){var M,I,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:["normal","active","hover"],F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal",K=document.createElement("li"),oe=this.theme.makeMenSvgIconSet(T,x);this._addTooltipAttribute(K,x),K.className=te()(M=te()(I="tie-btn-".concat(x," ")).call(I,om("item")," ")).call(M,F),K.innerHTML=oe,F==="normal"?this._menuBarElement.appendChild(K):this._helpMenuBarElement.appendChild(K)}},{key:"_addHelpActionEvent",value:function(){var x=this;ee()(dt,function(M){x.eventHandler[M]=function(I){return x._actions.main[M](I)},x._buttonElements[M].addEventListener("click",x.eventHandler[M])})}},{key:"_removeHelpActionEvent",value:function(){var x=this;ee()(dt,function(M){x._buttonElements[M].removeEventListener("click",x.eventHandler[M])})}},{key:"_addHistory",value:function(x){if(!E1(x)){var M=typeof x=="string"?{name:x}:zw(x);this._historyMenu.add(M)}}},{key:"initHistory",value:function(){this._historyMenu.init()}},{key:"clearHistory",value:function(){this._historyMenu.clear()}},{key:"_selectPrevHistory",value:function(){this._historyMenu.prev()}},{key:"_selectNextHistory",value:function(){this._historyMenu.next()}},{key:"toggleHistoryMenu",value:function(x){var M=x.target,I=M.closest(".".concat(aX));if(!I){var T=this._buttonElements[YO].classList;T.toggle("opened")}}},{key:"_addTooltipAttribute",value:function(x,M){x.setAttribute("tooltip-content",this._locale.localize(M.replace(/^[a-z]/g,function(I){return I.toUpperCase()})))}},{key:"_addDownloadEvent",value:function(){var x=this;this.eventHandler.download=function(){return x._actions.main.download()},ee()(this._buttonElements.download,function(M){M.addEventListener("click",x.eventHandler.download)})}},{key:"_removeDownloadEvent",value:function(){var x=this;ee()(this._buttonElements.download,function(M){M.removeEventListener("click",x.eventHandler.download)})}},{key:"_addLoadEvent",value:function(){var x=this;this.eventHandler.loadImage=function(M){return x._actions.main.load(M.target.files[0])},ee()(this._buttonElements.load,function(M){M.addEventListener("change",x.eventHandler.loadImage)})}},{key:"_removeLoadEvent",value:function(){var x=this;ee()(this._buttonElements.load,function(M){M.removeEventListener("change",x.eventHandler.loadImage)})}},{key:"_addMainMenuEvent",value:function(x){var M=this;this.eventHandler[x]=function(){return M.changeMenu(x)},this._buttonElements[x].addEventListener("click",this.eventHandler[x])}},{key:"_addSubMenuEvent",value:function(x){var M=this;this[x].addEvent(this._actions[x]),this[x].on(st.INPUT_BOX_EDITING_STARTED,function(){return M.fire(st.INPUT_BOX_EDITING_STARTED)}),this[x].on(st.INPUT_BOX_EDITING_STOPPED,function(){return M.fire(st.INPUT_BOX_EDITING_STOPPED)})}},{key:"_addMenuEvent",value:function(){var x=this;ee()(this.options.menu,function(M){x._addMainMenuEvent(M),x._addSubMenuEvent(M)})}},{key:"_removeMainMenuEvent",value:function(){var x=this;ee()(this.options.menu,function(M){x._buttonElements[M].removeEventListener("click",x.eventHandler[M]),x[M].off(st.INPUT_BOX_EDITING_STARTED),x[M].off(st.INPUT_BOX_EDITING_STOPPED)})}},{key:"getEditorArea",value:function(){return this._editorElement}},{key:"activeMenuEvent",value:function(){this._initMenuEvent||(this._addHelpActionEvent(),this._addDownloadEvent(),this._addMenuEvent(),this._initMenu(),this._historyMenu.addEvent(this._actions.history),this._initMenuEvent=!0)}},{key:"_removeUiEvent",value:function(){this._removeHelpActionEvent(),this._removeDownloadEvent(),this._removeLoadEvent(),this._removeMainMenuEvent(),this._historyMenu.removeEvent()}},{key:"_destroyAllMenu",value:function(){var x=this;ee()(this.options.menu,function(M){x[M].destroy()}),this._historyMenu.destroy()}},{key:"initCanvas",value:function(){var x=this,M=this._getLoadImage();M.path&&this._actions.main.initLoadImage(M.path,M.name).then(function(){x.activeMenuEvent()}),this._addLoadEvent();var I=document.createElement("div");I.className=om("grid-visual");var T=`<table>
  1313. <tr><td class="dot left-top"></td><td></td><td class="dot right-top"></td></tr>
  1314. <tr><td></td><td></td><td></td></tr>
  1315. <tr><td class="dot left-bottom"></td><td></td><td class="dot right-bottom"></td></tr>
  1316. </table>`;I.innerHTML=T,this._editorContainerElement=this._editorElement.querySelector(".tui-image-editor-canvas-container"),this._editorContainerElement.appendChild(I)}},{key:"_getLoadImage",value:function(){return this.options.loadImage}},{key:"changeMenu",value:function(x){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;this._submenuChangeTransection||(this._submenuChangeTransection=!0,this._changeMenu(x,M,I),this._submenuChangeTransection=!1)}},{key:"_changeMenu",value:function(x,M,I){this.submenu&&(this._buttonElements[this.submenu].classList.remove("active"),this._mainElement.classList.remove("tui-image-editor-menu-".concat(this.submenu)),I&&this._actions.main.discardSelection(),this._actions.main.changeSelectableAll(!0),this[this.submenu].changeStandbyMode()),this.submenu===x&&M?this.submenu=null:(this._buttonElements[x].classList.add("active"),this._mainElement.classList.add("tui-image-editor-menu-".concat(x)),this.submenu=x,this[this.submenu].changeStartMode()),this.resizeEditor()}},{key:"_initMenu",value:function(){if(this.options.initMenu){var x=document.createEvent("MouseEvents");x.initEvent("click",!0,!1),this._buttonElements[this.options.initMenu].dispatchEvent(x)}this.icon&&this.icon.registerDefaultIcon()}},{key:"_getCanvasMaxDimension",value:function(){var x=this._editorContainerElement.style,M=x.maxWidth,I=x.maxHeight,T=Na()(M),F=Na()(I);return{width:T,height:F}}},{key:"_setEditorPosition",value:function(x){var M=this._getCanvasMaxDimension(),I=M.width,T=M.height,F=this._editorElement.style,K=0,oe=0;this.submenu&&(x==="bottom"?T>this._editorElementWrap.scrollHeight-150?K=(T-this._editorElementWrap.scrollHeight)/2:K=150/2*-1:x==="top"?T>this._editorElementWrap.offsetHeight-150?K=150/2-(T-(this._editorElementWrap.offsetHeight-150))/2:K=150/2:x==="left"?I>this._editorElementWrap.offsetWidth-248?oe=248/2-(I-(this._editorElementWrap.offsetWidth-248))/2:oe=248/2:x==="right"&&(I>this._editorElementWrap.scrollWidth-248?oe=(I-this._editorElementWrap.scrollWidth)/2:oe=248/2*-1)),F.top="".concat(K,"px"),F.left="".concat(oe,"px")}}]),J}();xe().mixin(XO);var lX=XO,cX=s(381),wf=s.n(cX),KO=function(){function J(){U(this,J),this.versionnumber="1.2.4",this.optionpresets={default:{corsenabled:!1,ltres:1,qtres:1,pathomit:8,rightangleenhance:!0,colorsampling:2,numberofcolors:16,mincolorratio:0,colorquantcycles:3,layering:0,strokewidth:1,linefilter:!1,scale:1,roundcoords:1,viewbox:!1,desc:!1,lcpr:0,qcpr:0,blurradius:0,blurdelta:20},posterized1:{colorsampling:0,numberofcolors:2},posterized2:{numberofcolors:4,blurradius:5},curvy:{ltres:.01,linefilter:!0,rightangleenhance:!1},sharp:{qtres:.01,linefilter:!1},detailed:{pathomit:0,roundcoords:2,ltres:.5,qtres:.5,numberofcolors:64},smoothed:{blurradius:5,blurdelta:64},grayscale:{colorsampling:0,colorquantcycles:1,numberofcolors:7},fixedpalette:{colorsampling:0,colorquantcycles:1,numberofcolors:27},randomsampling1:{colorsampling:1,numberofcolors:8},randomsampling2:{colorsampling:1,numberofcolors:64},artistic1:{colorsampling:0,colorquantcycles:1,pathomit:0,blurradius:5,blurdelta:64,ltres:.01,linefilter:!0,numberofcolors:16,strokewidth:2},artistic2:{qtres:.01,colorsampling:0,colorquantcycles:1,numberofcolors:4,strokewidth:0},artistic3:{qtres:10,ltres:10,numberofcolors:8},artistic4:{qtres:10,ltres:10,numberofcolors:64,blurradius:5,blurdelta:256,strokewidth:2},posterized3:{ltres:1,qtres:1,pathomit:20,rightangleenhance:!0,colorsampling:0,numberofcolors:3,mincolorratio:0,colorquantcycles:3,blurradius:3,blurdelta:20,strokewidth:0,linefilter:!1,roundcoords:1,pal:[{r:0,g:0,b:100,a:255},{r:255,g:255,b:255,a:255}]}},this.pathscan_combined_lookup=[[[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1]],[[0,1,0,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],[0,2,-1,0]],[[-1,-1,-1,-1],[-1,-1,-1,-1],[0,1,0,-1],[0,0,1,0]],[[0,0,1,0],[-1,-1,-1,-1],[0,2,-1,0],[-1,-1,-1,-1]],[[-1,-1,-1,-1],[0,0,1,0],[0,3,0,1],[-1,-1,-1,-1]],[[13,3,0,1],[13,2,-1,0],[7,1,0,-1],[7,0,1,0]],[[-1,-1,-1,-1],[0,1,0,-1],[-1,-1,-1,-1],[0,3,0,1]],[[0,3,0,1],[0,2,-1,0],[-1,-1,-1,-1],[-1,-1,-1,-1]],[[0,3,0,1],[0,2,-1,0],[-1,-1,-1,-1],[-1,-1,-1,-1]],[[-1,-1,-1,-1],[0,1,0,-1],[-1,-1,-1,-1],[0,3,0,1]],[[11,1,0,-1],[14,0,1,0],[14,3,0,1],[11,2,-1,0]],[[-1,-1,-1,-1],[0,0,1,0],[0,3,0,1],[-1,-1,-1,-1]],[[0,0,1,0],[-1,-1,-1,-1],[0,2,-1,0],[-1,-1,-1,-1]],[[-1,-1,-1,-1],[-1,-1,-1,-1],[0,1,0,-1],[0,0,1,0]],[[0,1,0,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],[0,2,-1,0]],[[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1]]],this.gks=[[.27901,.44198,.27901],[.135336,.228569,.272192,.228569,.135336],[.086776,.136394,.178908,.195843,.178908,.136394,.086776],[.063327,.093095,.122589,.144599,.152781,.144599,.122589,.093095,.063327],[.049692,.069304,.089767,.107988,.120651,.125194,.120651,.107988,.089767,.069304,.049692]],this.specpalette=[{r:0,g:0,b:0,a:255},{r:128,g:128,b:128,a:255},{r:0,g:0,b:128,a:255},{r:64,g:64,b:128,a:255},{r:192,g:192,b:192,a:255},{r:255,g:255,b:255,a:255},{r:128,g:128,b:192,a:255},{r:0,g:0,b:192,a:255},{r:128,g:0,b:0,a:255},{r:128,g:64,b:64,a:255},{r:128,g:0,b:128,a:255},{r:168,g:168,b:168,a:255},{r:192,g:128,b:128,a:255},{r:192,g:0,b:0,a:255},{r:255,g:255,b:255,a:255},{r:0,g:128,b:0,a:255}]}return q(J,[{key:"imageToSVG",value:function(x,M,I){var T=this;I=this.checkoptions(I),this.loadImage(x,function(F){M(T.imagedataToSVG(T.getImgdata(F),I))},I)}},{key:"imagedataToSVG",value:function(x,M){M=this.checkoptions(M);var I=this.imagedataToTracedata(x,M);return this.getsvgstring(I,M)}},{key:"imageToTracedata",value:function(x,M,I){var T=this;I=this.checkoptions(I),this.loadImage(x,function(F){M(T.imagedataToTracedata(T.getImgdata(F),I))},I)}},{key:"imagedataToTracedata",value:function(x,M){M=this.checkoptions(M);var I=this.colorquantization(x,M),T;if(M.layering===0){T={layers:[],palette:I.palette,width:I.array[0].length-2,height:I.array.length-2};for(var F=0;F<I.palette.length;F+=1){var K=this.batchtracepaths(this.internodes(this.pathscan(this.layeringstep(I,F),M.pathomit),M),M.ltres,M.qtres);T.layers.push(K)}}else{var oe=this.layering(I);M.layercontainerid&&this.drawLayers(oe,this.specpalette,M.scale,M.layercontainerid);var ie=this.batchpathscan(oe,M.pathomit),ke=this.batchinternodes(ie,M);T={layers:this.batchtracelayers(ke,M.ltres,M.qtres),palette:I.palette,width:x.width,height:x.height}}return T}},{key:"checkoptions",value:function(x){x=x||{},typeof x=="string"&&(x=x.toLowerCase(),this.optionpresets[x]?x=this.optionpresets[x]:x={});for(var M=De()(this.optionpresets.default),I=0;I<M.length;I+=1)x.hasOwnProperty(M[I])||(x[M[I]]=this.optionpresets.default[M[I]]);return x}},{key:"colorquantization",value:function(x,M){var I=[],T=0,F,K,oe,ie=[],ke=x.width*x.height,Oe,Ze,Ge,Je,Ke;for(Ze=0;Ze<x.height+2;Ze+=1)for(I[Ze]=[],Oe=0;Oe<x.width+2;Oe+=1)I[Ze][Oe]=-1;for(M.pal?Ke=M.pal:M.colorsampling===0?Ke=this.generatepalette(M.numberofcolors):M.colorsampling===1?Ke=this.samplepalette(M.numberofcolors,x):Ke=this.samplepalette2(M.numberofcolors,x),M.blurradius>0&&(x=this.blur(x,M.blurradius,M.blurdelta)),Je=0;Je<M.colorquantcycles;Je+=1){if(Je>0)for(Ge=0;Ge<Ke.length;Ge+=1)ie[Ge].n>0&&(Ke[Ge]={r:Math.floor(ie[Ge].r/ie[Ge].n),g:Math.floor(ie[Ge].g/ie[Ge].n),b:Math.floor(ie[Ge].b/ie[Ge].n),a:Math.floor(ie[Ge].a/ie[Ge].n)}),ie[Ge].n/ke<M.mincolorratio&&Je<M.colorquantcycles-1&&(Ke[Ge]={r:Math.floor(Math.random()*255),g:Math.floor(Math.random()*255),b:Math.floor(Math.random()*255),a:Math.floor(Math.random()*255)});for(Oe=0;Oe<Ke.length;Oe+=1)ie[Oe]={r:0,g:0,b:0,a:0,n:0};for(Ze=0;Ze<x.height;Ze+=1)for(Oe=0;Oe<x.width;Oe+=1){for(T=(Ze*x.width+Oe)*4,oe=0,K=1024,Ge=0;Ge<Ke.length;Ge+=1)F=Math.abs(Ke[Ge].r-x.data[T])+Math.abs(Ke[Ge].g-x.data[T+1])+Math.abs(Ke[Ge].b-x.data[T+2])+Math.abs(Ke[Ge].a-x.data[T+3]),F<K&&(K=F,oe=Ge);ie[oe].r+=x.data[T],ie[oe].g+=x.data[T+1],ie[oe].b+=x.data[T+2],ie[oe].a+=x.data[T+3],ie[oe].n+=1,I[Ze+1][Oe+1]=oe}}return{array:I,palette:Ke}}},{key:"samplepalette",value:function(x,M){for(var I,T=[],F=0;F<x;F+=1)I=Math.floor(Math.random()*M.data.length/4)*4,T.push({r:M.data[I],g:M.data[I+1],b:M.data[I+2],a:M.data[I+3]});return T}},{key:"samplepalette2",value:function(x,M){for(var I,T=[],F=Math.ceil(Math.sqrt(x)),K=Math.ceil(x/F),oe=M.width/(F+1),ie=M.height/(K+1),ke=0;ke<K;ke+=1)for(var Oe=0;Oe<F&&T.length!==x;Oe+=1)I=Math.floor((ke+1)*ie*M.width+(Oe+1)*oe)*4,T.push({r:M.data[I],g:M.data[I+1],b:M.data[I+2],a:M.data[I+3]});return T}},{key:"generatepalette",value:function(x){var M=[],I,T,F;if(x<8)for(var K=Math.floor(255/(x-1)),oe=0;oe<x;oe+=1)M.push({r:oe*K,g:oe*K,b:oe*K,a:255});else{var ie=Math.floor(Math.pow(x,.3333333333333333)),ke=Math.floor(255/(ie-1)),Oe=x-ie*ie*ie;for(I=0;I<ie;I+=1)for(T=0;T<ie;T+=1)for(F=0;F<ie;F+=1)M.push({r:I*ke,g:T*ke,b:F*ke,a:255});for(I=0;I<Oe;I+=1)M.push({r:Math.floor(Math.random()*255),g:Math.floor(Math.random()*255),b:Math.floor(Math.random()*255),a:Math.floor(Math.random()*255)})}return M}},{key:"layering",value:function(x){var M=[],I=0,T=x.array.length,F=x.array[0].length,K,oe,ie,ke,Oe,Ze,Ge,Je,Ke,qe,vt;for(vt=0;vt<x.palette.length;vt+=1)for(M[vt]=[],qe=0;qe<T;qe+=1)for(M[vt][qe]=[],Ke=0;Ke<F;Ke+=1)M[vt][qe][Ke]=0;for(qe=1;qe<T-1;qe+=1)for(Ke=1;Ke<F-1;Ke+=1)I=x.array[qe][Ke],K=x.array[qe-1][Ke-1]===I?1:0,oe=x.array[qe-1][Ke]===I?1:0,ie=x.array[qe-1][Ke+1]===I?1:0,ke=x.array[qe][Ke-1]===I?1:0,Oe=x.array[qe][Ke+1]===I?1:0,Ze=x.array[qe+1][Ke-1]===I?1:0,Ge=x.array[qe+1][Ke]===I?1:0,Je=x.array[qe+1][Ke+1]===I?1:0,M[I][qe+1][Ke+1]=1+Oe*2+Je*4+Ge*8,ke||(M[I][qe+1][Ke]=0+2+Ge*4+Ze*8),oe||(M[I][qe][Ke+1]=0+ie*2+Oe*4+8),K||(M[I][qe][Ke]=0+oe*2+4+ke*8);return M}},{key:"layeringstep",value:function(x,M){var I=[],T=x.array.length,F=x.array[0].length,K,oe;for(oe=0;oe<T;oe+=1)for(I[oe]=[],K=0;K<F;K+=1)I[oe][K]=0;for(oe=1;oe<T;oe+=1)for(K=1;K<F;K+=1)I[oe][K]=(x.array[oe-1][K-1]===M?1:0)+(x.array[oe-1][K]===M?2:0)+(x.array[oe][K-1]===M?8:0)+(x.array[oe][K]===M?4:0);return I}},{key:"pathscan",value:function(x,M){for(var I=[],T=0,F=0,K=0,oe=0,ie=x[0].length,ke=x.length,Oe=0,Ze=!0,Ge=!1,Je,Ke=0;Ke<ke;Ke+=1)for(var qe=0;qe<ie;qe+=1)if(x[Ke][qe]===4||x[Ke][qe]===11)for(K=qe,oe=Ke,I[T]={},I[T].points=[],I[T].boundingbox=[K,oe,K,oe],I[T].holechildren=[],Ze=!1,F=0,Ge=x[Ke][qe]===11,Oe=1;!Ze;){if(I[T].points[F]={},I[T].points[F].x=K-1,I[T].points[F].y=oe-1,I[T].points[F].t=x[oe][K],K-1<I[T].boundingbox[0]&&(I[T].boundingbox[0]=K-1),K-1>I[T].boundingbox[2]&&(I[T].boundingbox[2]=K-1),oe-1<I[T].boundingbox[1]&&(I[T].boundingbox[1]=oe-1),oe-1>I[T].boundingbox[3]&&(I[T].boundingbox[3]=oe-1),Je=this.pathscan_combined_lookup[x[oe][K]][Oe],x[oe][K]=Je[0],Oe=Je[1],K+=Je[2],oe+=Je[3],K-1===I[T].points[0].x&&oe-1===I[T].points[0].y)if(Ze=!0,I[T].points.length<M)I.pop();else{if(I[T].isholepath=!!Ge,Ge){for(var vt=0,qt=[-1,-1,ie+1,ke+1],tn=0;tn<T;tn++)!I[tn].isholepath&&this.boundingboxincludes(I[tn].boundingbox,I[T].boundingbox)&&this.boundingboxincludes(qt,I[tn].boundingbox)&&(vt=tn,qt=I[tn].boundingbox);I[vt].holechildren.push(T)}T+=1}F+=1}return I}},{key:"boundingboxincludes",value:function(x,M){return x[0]<M[0]&&x[1]<M[1]&&x[2]>M[2]&&x[3]>M[3]}},{key:"batchpathscan",value:function(x,M){var I=[];for(var T in x)x.hasOwnProperty(T)&&(I[T]=this.pathscan(x[T],M));return I}},{key:"internodes",value:function(x,M){var I=[],T=0,F=0,K=0,oe=0,ie=0,ke,Oe;for(ke=0;ke<x.length;ke+=1)for(I[ke]={},I[ke].points=[],I[ke].boundingbox=x[ke].boundingbox,I[ke].holechildren=x[ke].holechildren,I[ke].isholepath=x[ke].isholepath,T=x[ke].points.length,Oe=0;Oe<T;Oe+=1)F=(Oe+1)%T,K=(Oe+2)%T,oe=(Oe-1+T)%T,ie=(Oe-2+T)%T,M.rightangleenhance&&this.testrightangle(x[ke],ie,oe,Oe,F,K)&&(I[ke].points.length>0&&(I[ke].points[I[ke].points.length-1].linesegment=this.getdirection(I[ke].points[I[ke].points.length-1].x,I[ke].points[I[ke].points.length-1].y,x[ke].points[Oe].x,x[ke].points[Oe].y)),I[ke].points.push({x:x[ke].points[Oe].x,y:x[ke].points[Oe].y,linesegment:this.getdirection(x[ke].points[Oe].x,x[ke].points[Oe].y,(x[ke].points[Oe].x+x[ke].points[F].x)/2,(x[ke].points[Oe].y+x[ke].points[F].y)/2)})),I[ke].points.push({x:(x[ke].points[Oe].x+x[ke].points[F].x)/2,y:(x[ke].points[Oe].y+x[ke].points[F].y)/2,linesegment:this.getdirection((x[ke].points[Oe].x+x[ke].points[F].x)/2,(x[ke].points[Oe].y+x[ke].points[F].y)/2,(x[ke].points[F].x+x[ke].points[K].x)/2,(x[ke].points[F].y+x[ke].points[K].y)/2)});return I}},{key:"testrightangle",value:function(x,M,I,T,F,K){return x.points[T].x===x.points[M].x&&x.points[T].x===x.points[I].x&&x.points[T].y===x.points[F].y&&x.points[T].y===x.points[K].y||x.points[T].y===x.points[M].y&&x.points[T].y===x.points[I].y&&x.points[T].x===x.points[F].x&&x.points[T].x===x.points[K].x}},{key:"getdirection",value:function(x,M,I,T){var F=8;return x<I?M<T?F=1:M>T?F=7:F=0:x>I?M<T?F=3:M>T?F=5:F=4:M<T?F=2:M>T?F=6:F=8,F}},{key:"batchinternodes",value:function(x,M){var I=[];for(var T in x)x.hasOwnProperty(T)&&(I[T]=this.internodes(x[T],M));return I}},{key:"tracepath",value:function(x,M,I){var T=0,F,K,oe,ie={};for(ie.segments=[],ie.boundingbox=x.boundingbox,ie.holechildren=x.holechildren,ie.isholepath=x.isholepath;T<x.points.length;){var ke;for(F=x.points[T].linesegment,K=-1,oe=T+1;(x.points[oe].linesegment===F||x.points[oe].linesegment===K||K===-1)&&oe<x.points.length-1;)x.points[oe].linesegment!==F&&K===-1&&(K=x.points[oe].linesegment),oe+=1;oe===x.points.length-1&&(oe=0),ie.segments=te()(ke=ie.segments).call(ke,this.fitseq(x,M,I,T,oe)),oe>0?T=oe:T=x.points.length}return ie}},{key:"fitseq",value:function(x,M,I,T,F){var K;if(F>x.points.length||F<0)return[];var oe=T,ie=0,ke=!0,Oe,Ze,Ge,Je=F-T;Je<0&&(Je+=x.points.length);for(var Ke=(x.points[F].x-x.points[T].x)/Je,qe=(x.points[F].y-x.points[T].y)/Je,vt=(T+1)%x.points.length,qt;vt!=F;)qt=vt-T,qt<0&&(qt+=x.points.length),Oe=x.points[T].x+Ke*qt,Ze=x.points[T].y+qe*qt,Ge=(x.points[vt].x-Oe)*(x.points[vt].x-Oe)+(x.points[vt].y-Ze)*(x.points[vt].y-Ze),Ge>M&&(ke=!1),Ge>ie&&(oe=vt,ie=Ge),vt=(vt+1)%x.points.length;if(ke)return[{type:"L",x1:x.points[T].x,y1:x.points[T].y,x2:x.points[F].x,y2:x.points[F].y}];var tn=oe;ke=!0,ie=0;var on=(tn-T)/Je,Lt=(1-on)*(1-on),Rn=2*(1-on)*on,wr=on*on,ho=(Lt*x.points[T].x+wr*x.points[F].x-x.points[tn].x)/-Rn,Ei=(Lt*x.points[T].y+wr*x.points[F].y-x.points[tn].y)/-Rn;for(vt=T+1;vt!=F;)on=(vt-T)/Je,Lt=(1-on)*(1-on),Rn=2*(1-on)*on,wr=on*on,Oe=Lt*x.points[T].x+Rn*ho+wr*x.points[F].x,Ze=Lt*x.points[T].y+Rn*Ei+wr*x.points[F].y,Ge=(x.points[vt].x-Oe)*(x.points[vt].x-Oe)+(x.points[vt].y-Ze)*(x.points[vt].y-Ze),Ge>I&&(ke=!1),Ge>ie&&(oe=vt,ie=Ge),vt=(vt+1)%x.points.length;if(ke)return[{type:"Q",x1:x.points[T].x,y1:x.points[T].y,x2:ho,y2:Ei,x3:x.points[F].x,y3:x.points[F].y}];var vs=tn;return te()(K=this.fitseq(x,M,I,T,vs)).call(K,this.fitseq(x,M,I,vs,F))}},{key:"batchtracepaths",value:function(x,M,I){var T=[];for(var F in x)x.hasOwnProperty(F)&&T.push(this.tracepath(x[F],M,I));return T}},{key:"batchtracelayers",value:function(x,M,I){var T=[];for(var F in x)x.hasOwnProperty(F)&&(T[F]=this.batchtracepaths(x[F],M,I));return T}},{key:"roundtodec",value:function(x,M){return Number(x.toFixed(M))}},{key:"svgpathstring",value:function(x,M,I,T){var F,K,oe=x.layers[M],ie=oe[I],ke="",Oe;if(T.linefilter&&ie.segments.length<3)return ke;if(ke=te()(F="<path ".concat(T.desc?te()(K='desc="l '.concat(M," p ")).call(K,I,'" '):"")).call(F,this.tosvgcolorstr(x.palette[M],T),'d="'),T.roundcoords===-1){var Ze;for(ke+=te()(Ze="M ".concat(ie.segments[0].x1*T.scale," ")).call(Ze,ie.segments[0].y1*T.scale," "),Oe=0;Oe<ie.segments.length;Oe++){var Ge,Je;if(ke+=te()(Ge=te()(Je="".concat(ie.segments[Oe].type," ")).call(Je,ie.segments[Oe].x2*T.scale," ")).call(Ge,ie.segments[Oe].y2*T.scale," "),ie.segments[Oe].hasOwnProperty("x3")){var Ke;ke+=te()(Ke="".concat(ie.segments[Oe].x3*T.scale," ")).call(Ke,ie.segments[Oe].y3*T.scale," ")}}ke+="Z "}else{var qe;for(ke+=te()(qe="M ".concat(this.roundtodec(ie.segments[0].x1*T.scale,T.roundcoords)," ")).call(qe,this.roundtodec(ie.segments[0].y1*T.scale,T.roundcoords)," "),Oe=0;Oe<ie.segments.length;Oe++){var vt,qt;if(ke+=te()(vt=te()(qt="".concat(ie.segments[Oe].type," ")).call(qt,this.roundtodec(ie.segments[Oe].x2*T.scale,T.roundcoords)," ")).call(vt,this.roundtodec(ie.segments[Oe].y2*T.scale,T.roundcoords)," "),ie.segments[Oe].hasOwnProperty("x3")){var tn;ke+=te()(tn="".concat(this.roundtodec(ie.segments[Oe].x3*T.scale,T.roundcoords)," ")).call(tn,this.roundtodec(ie.segments[Oe].y3*T.scale,T.roundcoords)," ")}}ke+="Z "}for(var on=0;on<ie.holechildren.length;on++){var Lt=oe[ie.holechildren[on]];if(T.roundcoords===-1){if(Lt.segments[Lt.segments.length-1].hasOwnProperty("x3")){var Rn;ke+=te()(Rn="M ".concat(Lt.segments[Lt.segments.length-1].x3*T.scale," ")).call(Rn,Lt.segments[Lt.segments.length-1].y3*T.scale," ")}else{var wr;ke+=te()(wr="M ".concat(Lt.segments[Lt.segments.length-1].x2*T.scale," ")).call(wr,Lt.segments[Lt.segments.length-1].y2*T.scale," ")}for(Oe=Lt.segments.length-1;Oe>=0;Oe--){var ho;if(ke+="".concat(Lt.segments[Oe].type," "),Lt.segments[Oe].hasOwnProperty("x3")){var Ei;ke+=te()(Ei="".concat(Lt.segments[Oe].x2*T.scale," ")).call(Ei,Lt.segments[Oe].y2*T.scale," ")}ke+=te()(ho="".concat(Lt.segments[Oe].x1*T.scale," ")).call(ho,Lt.segments[Oe].y1*T.scale," ")}}else{if(Lt.segments[Lt.segments.length-1].hasOwnProperty("x3")){var vs;ke+=te()(vs="M ".concat(this.roundtodec(Lt.segments[Lt.segments.length-1].x3*T.scale)," ")).call(vs,this.roundtodec(Lt.segments[Lt.segments.length-1].y3*T.scale)," ")}else{var Hl;ke+=te()(Hl="M ".concat(this.roundtodec(Lt.segments[Lt.segments.length-1].x2*T.scale)," ")).call(Hl,this.roundtodec(Lt.segments[Lt.segments.length-1].y2*T.scale)," ")}for(Oe=Lt.segments.length-1;Oe>=0;Oe--){var po;if(ke+="".concat(Lt.segments[Oe].type," "),Lt.segments[Oe].hasOwnProperty("x3")){var gm;ke+=te()(gm="".concat(this.roundtodec(Lt.segments[Oe].x2*T.scale)," ")).call(gm,this.roundtodec(Lt.segments[Oe].y2*T.scale)," ")}ke+=te()(po="".concat(this.roundtodec(Lt.segments[Oe].x1*T.scale)," ")).call(po,this.roundtodec(Lt.segments[Oe].y1*T.scale)," ")}}ke+="Z "}if(ke+='" />',T.lcpr||T.qcpr){for(Oe=0;Oe<ie.segments.length;Oe++){if(ie.segments[Oe].hasOwnProperty("x3")&&T.qcpr){var Z1,G1,Y1,X1,K1,J1,q1,Q1,ey,ty,ny,iy,ry,oy;ke+=te()(Z1=te()(G1=te()(Y1='<circle cx="'.concat(ie.segments[Oe].x2*T.scale,'" cy="')).call(Y1,ie.segments[Oe].y2*T.scale,'" r="')).call(G1,T.qcpr,'" fill="cyan" stroke-width="')).call(Z1,T.qcpr*.2,'" stroke="black" />'),ke+=te()(X1=te()(K1=te()(J1='<circle cx="'.concat(ie.segments[Oe].x3*T.scale,'" cy="')).call(J1,ie.segments[Oe].y3*T.scale,'" r="')).call(K1,T.qcpr,'" fill="white" stroke-width="')).call(X1,T.qcpr*.2,'" stroke="black" />'),ke+=te()(q1=te()(Q1=te()(ey=te()(ty='<line x1="'.concat(ie.segments[Oe].x1*T.scale,'" y1="')).call(ty,ie.segments[Oe].y1*T.scale,'" x2="')).call(ey,ie.segments[Oe].x2*T.scale,'" y2="')).call(Q1,ie.segments[Oe].y2*T.scale,'" stroke-width="')).call(q1,T.qcpr*.2,'" stroke="cyan" />'),ke+=te()(ny=te()(iy=te()(ry=te()(oy='<line x1="'.concat(ie.segments[Oe].x2*T.scale,'" y1="')).call(oy,ie.segments[Oe].y2*T.scale,'" x2="')).call(ry,ie.segments[Oe].x3*T.scale,'" y2="')).call(iy,ie.segments[Oe].y3*T.scale,'" stroke-width="')).call(ny,T.qcpr*.2,'" stroke="cyan" />')}if(!ie.segments[Oe].hasOwnProperty("x3")&&T.lcpr){var sy,ay,ly;ke+=te()(sy=te()(ay=te()(ly='<circle cx="'.concat(ie.segments[Oe].x2*T.scale,'" cy="')).call(ly,ie.segments[Oe].y2*T.scale,'" r="')).call(ay,T.lcpr,'" fill="white" stroke-width="')).call(sy,T.lcpr*.2,'" stroke="black" />')}}for(var on=0;on<ie.holechildren.length;on++){var Lt=oe[ie.holechildren[on]];for(Oe=0;Oe<Lt.segments.length;Oe++){if(Lt.segments[Oe].hasOwnProperty("x3")&&T.qcpr){var cy,gs,mu,L8,D8,N8,j8,z8,R8,B8,F8,V8,H8,W8;ke+=te()(cy=te()(gs=te()(mu='<circle cx="'.concat(Lt.segments[Oe].x2*T.scale,'" cy="')).call(mu,Lt.segments[Oe].y2*T.scale,'" r="')).call(gs,T.qcpr,'" fill="cyan" stroke-width="')).call(cy,T.qcpr*.2,'" stroke="black" />'),ke+=te()(L8=te()(D8=te()(N8='<circle cx="'.concat(Lt.segments[Oe].x3*T.scale,'" cy="')).call(N8,Lt.segments[Oe].y3*T.scale,'" r="')).call(D8,T.qcpr,'" fill="white" stroke-width="')).call(L8,T.qcpr*.2,'" stroke="black" />'),ke+=te()(j8=te()(z8=te()(R8=te()(B8='<line x1="'.concat(Lt.segments[Oe].x1*T.scale,'" y1="')).call(B8,Lt.segments[Oe].y1*T.scale,'" x2="')).call(R8,Lt.segments[Oe].x2*T.scale,'" y2="')).call(z8,Lt.segments[Oe].y2*T.scale,'" stroke-width="')).call(j8,T.qcpr*.2,'" stroke="cyan" />'),ke+=te()(F8=te()(V8=te()(H8=te()(W8='<line x1="'.concat(Lt.segments[Oe].x2*T.scale,'" y1="')).call(W8,Lt.segments[Oe].y2*T.scale,'" x2="')).call(H8,Lt.segments[Oe].x3*T.scale,'" y2="')).call(V8,Lt.segments[Oe].y3*T.scale,'" stroke-width="')).call(F8,T.qcpr*.2,'" stroke="cyan" />')}if(!Lt.segments[Oe].hasOwnProperty("x3")&&T.lcpr){var U8,Z8,G8;ke+=te()(U8=te()(Z8=te()(G8='<circle cx="'.concat(Lt.segments[Oe].x2*T.scale,'" cy="')).call(G8,Lt.segments[Oe].y2*T.scale,'" r="')).call(Z8,T.lcpr,'" fill="white" stroke-width="')).call(U8,T.lcpr*.2,'" stroke="black" />')}}}}return ke}},{key:"getsvgstring",value:function(x,M){var I,T,F;M=this.checkoptions(M);for(var K=x.width*M.scale,oe=x.height*M.scale,ie=te()(I="<svg ".concat(M.viewbox?te()(T='viewBox="0 0 '.concat(K," ")).call(T,oe,'" '):te()(F='width="'.concat(K,'" height="')).call(F,oe,'" '),'version="1.1" xmlns="http://www.w3.org/2000/svg" desc="Created with imagetracer.js version ')).call(I,this.versionnumber,'" >'),ke=0;ke<x.layers.length;ke+=1)for(var Oe=0;Oe<x.layers[ke].length;Oe+=1)x.layers[ke][Oe].isholepath||(ie+=this.svgpathstring(x,ke,Oe,M));return ie+="</svg>",ie}},{key:"compareNumbers",value:function(x,M){return x-M}},{key:"torgbastr",value:function(x){var M,I,T;return te()(M=te()(I=te()(T="rgba(".concat(x.r,",")).call(T,x.g,",")).call(I,x.b,",")).call(M,x.a,")")}},{key:"tosvgcolorstr",value:function(x,M){var I,T,F,K,oe,ie,ke;return te()(I=te()(T=te()(F=te()(K=te()(oe=te()(ie=te()(ke='fill="rgb('.concat(x.r,",")).call(ke,x.g,",")).call(ie,x.b,')" stroke="rgb(')).call(oe,x.r,",")).call(K,x.g,",")).call(F,x.b,')" stroke-width="')).call(T,M.strokewidth,'" opacity="')).call(I,x.a/255,'" ')}},{key:"appendSVGString",value:function(x,M){var I;M?(I=document.getElementById(M),I||(I=document.createElement("div"),I.id=M,document.body.appendChild(I))):(I=document.createElement("div"),document.body.appendChild(I)),I.innerHTML+=x}},{key:"blur",value:function(x,M,I){var T,F,K,oe,ie,ke,Oe,Ze,Ge,Je,Ke={width:x.width,height:x.height,data:[]};if(M=Math.floor(M),M<1)return x;M>5&&(M=5),I=Math.abs(I),I>1024&&(I=1024);var qe=this.gks[M-1];for(F=0;F<x.height;F++)for(T=0;T<x.width;T++){for(ke=0,Oe=0,Ze=0,Ge=0,Je=0,K=-M;K<M+1;K++)T+K>0&&T+K<x.width&&(ie=(F*x.width+T+K)*4,ke+=x.data[ie]*qe[K+M],Oe+=x.data[ie+1]*qe[K+M],Ze+=x.data[ie+2]*qe[K+M],Ge+=x.data[ie+3]*qe[K+M],Je+=qe[K+M]);ie=(F*x.width+T)*4,Ke.data[ie]=Math.floor(ke/Je),Ke.data[ie+1]=Math.floor(Oe/Je),Ke.data[ie+2]=Math.floor(Ze/Je),Ke.data[ie+3]=Math.floor(Ge/Je)}var vt=new Uint8ClampedArray(Ke.data);for(F=0;F<x.height;F++)for(T=0;T<x.width;T++){for(ke=0,Oe=0,Ze=0,Ge=0,Je=0,K=-M;K<M+1;K++)F+K>0&&F+K<x.height&&(ie=((F+K)*x.width+T)*4,ke+=vt[ie]*qe[K+M],Oe+=vt[ie+1]*qe[K+M],Ze+=vt[ie+2]*qe[K+M],Ge+=vt[ie+3]*qe[K+M],Je+=qe[K+M]);ie=(F*x.width+T)*4,Ke.data[ie]=Math.floor(ke/Je),Ke.data[ie+1]=Math.floor(Oe/Je),Ke.data[ie+2]=Math.floor(Ze/Je),Ke.data[ie+3]=Math.floor(Ge/Je)}for(F=0;F<x.height;F++)for(T=0;T<x.width;T++)ie=(F*x.width+T)*4,oe=Math.abs(Ke.data[ie]-x.data[ie])+Math.abs(Ke.data[ie+1]-x.data[ie+1])+Math.abs(Ke.data[ie+2]-x.data[ie+2])+Math.abs(Ke.data[ie+3]-x.data[ie+3]),oe>I&&(Ke.data[ie]=x.data[ie],Ke.data[ie+1]=x.data[ie+1],Ke.data[ie+2]=x.data[ie+2],Ke.data[ie+3]=x.data[ie+3]);return Ke}},{key:"loadImage",value:function(x,M,I){var T=new Image;I&&I.corsenabled&&(T.crossOrigin="Anonymous"),T.src=x,T.onload=function(){var F=document.createElement("canvas");F.width=T.width,F.height=T.height;var K=F.getContext("2d");K.drawImage(T,0,0),M(F)}}},{key:"getImgdata",value:function(x){var M=x.getContext("2d");return M.getImageData(0,0,x.width,x.height)}},{key:"drawLayers",value:function(x,M,I,T){I=I||1;var F,K,oe,ie,ke,Oe;T?(Oe=document.getElementById(T),Oe||(Oe=document.createElement("div"),Oe.id=T,document.body.appendChild(Oe))):(Oe=document.createElement("div"),document.body.appendChild(Oe));for(ke in x)if(x.hasOwnProperty(ke)){F=x[ke][0].length,K=x[ke].length;var Ze=document.createElement("canvas");Ze.width=F*I,Ze.height=K*I;var Ge=Ze.getContext("2d");for(ie=0;ie<K;ie+=1)for(oe=0;oe<F;oe+=1)Ge.fillStyle=this.torgbastr(M[x[ke][ie][oe]%M.length]),Ge.fillRect(oe*I,ie*I,I,I);Oe.appendChild(Ze)}}}],[{key:"tracerDefaultOption",value:function(){return{pathomit:100,ltres:.1,qtres:1,scale:1,strokewidth:5,viewbox:!1,linefilter:!0,desc:!1,rightangleenhance:!1,pal:[{r:0,g:0,b:0,a:255},{r:255,g:255,b:255,a:255}]}}}]),J}(),uX={getActions:function(){return{main:this._mainAction(),shape:this._shapeAction(),crop:this._cropAction(),resize:this._resizeAction(),flip:this._flipAction(),rotate:this._rotateAction(),text:this._textAction(),mask:this._maskAction(),draw:this._drawAction(),icon:this._iconAction(),filter:this._filterAction(),history:this._historyAction()}},_mainAction:function(){var L=this,x=function(){L.ui.submenu==="crop"&&(L.stopDrawingMode(),L.ui.changeMenu("crop"))},M=function(ke){L.ui.submenu==="rotate"&&L.ui.rotate.setRangeBarAngle("setAngle",ke)},I=function(ke){L.ui.submenu==="filter"&&wf()(L.ui).setFilterState(ke)},T=function(ke){return M(ke),I(ke),ke},F=function(){var ke=L._graphics.getZoomMode();L.stopDrawingMode(),ke!==yi.ZOOM?(L.startDrawingMode(bn.ZOOM),L._graphics.startZoomInMode()):L._graphics.endZoomInMode()},K=function(){var ke=L._graphics.getZoomMode();L.stopDrawingMode(),ke!==yi.HAND?(L.startDrawingMode(bn.ZOOM),L._graphics.startHandMode()):L._graphics.endHandMode()},oe=function(){wf()(L.ui)&&wf()(L.ui).initFilterCheckBoxState()};return pe()({initLoadImage:function(ke,Oe){return L.loadImageFromURL(ke,Oe).then(function(Ze){x(),L.ui.initializeImgUrl=ke,L.ui.resizeEditor({imageSize:Ze}),L.clearUndoStack(),L._invoker.fire(st.EXECUTE_COMMAND,pn.LOAD_IMAGE)})},undo:function(){L.isEmptyUndoStack()||(x(),L.deactivateAll(),L.undo().then(T))},redo:function(){L.isEmptyRedoStack()||(x(),L.deactivateAll(),L.redo().then(T))},reset:function(){x(),L.loadImageFromURL(L.ui.initializeImgUrl,"resetImage").then(function(ke){x(),oe(),L.ui.resizeEditor({imageSize:ke}),L.clearUndoStack(),L._initHistory()})},delete:function(){L.ui.changeHelpButtonEnabled("delete",!1),x(),L.removeActiveObject(),L.activeObjectId=null},deleteAll:function(){x(),L.clearObjects(),L.ui.changeHelpButtonEnabled("delete",!1),L.ui.changeHelpButtonEnabled("deleteAll",!1)},load:function(ke){Hi()||alert("This browser does not support file-api"),L.ui.initializeImgUrl=ge().createObjectURL(ke),L.loadImageFromFile(ke).then(function(Oe){x(),oe(),L.clearUndoStack(),L.ui.activeMenuEvent(),L.ui.resizeEditor({imageSize:Oe}),L._clearHistory(),L._invoker.fire(st.EXECUTE_COMMAND,pn.LOAD_IMAGE)}).catch(function(Oe){return $e().reject(Oe)})},download:function(){var ke=L.toDataURL(),Oe=L.getImageName(),Ze,Ge,Je;Hi()&&window.saveAs?(Ze=Si(ke),Ge=Ze.type.split("/")[1],Oe.split(".").pop()!==Ge&&(Oe+=".".concat(Ge)),saveAs(Ze,Oe)):(Je=window.open(),Je.document.body.innerHTML="<img src='".concat(ke,"'>"))},history:function(ke){L.ui.toggleHistoryMenu(ke)},zoomIn:function(){L.ui.toggleZoomButtonStatus("zoomIn"),L.deactivateAll(),F()},zoomOut:function(){L._graphics.zoomOut()},hand:function(){L.ui.offZoomInButtonStatus(),L.ui.toggleZoomButtonStatus("hand"),L.deactivateAll(),K()}},this._commonAction())},_iconAction:function(){var L=this;return pe()({changeColor:function(M){L.activeObjectId&&L.changeIconColor(L.activeObjectId,M)},addIcon:function(M,I){L.startDrawingMode("ICON"),L.setDrawingIcon(M,I)},cancelAddIcon:function(){L.ui.icon.clearIconType(),L.changeSelectableAll(!0),L.changeCursor("default"),L.stopDrawingMode()},registerDefaultIcons:function(M,I){var T={};T[M]=I,L.registerIcons(T)},registerCustomIcon:function(M,I){var T=new KO;T.imageToSVG(M,function(F){var K=F.match(/path[^>]*d="([^"]*)"/),oe=Ae(K,2),ie=oe[1],ke={};ke[I.name]=ie,L.registerIcons(ke),L.addIcon(I.name,{left:100,top:100})},KO.tracerDefaultOption())}},this._commonAction())},_drawAction:function(){var L=this;return pe()({setDrawMode:function(M,I){L.stopDrawingMode(),M==="free"?L.startDrawingMode("FREE_DRAWING",I):L.startDrawingMode("LINE_DRAWING",I)},setColor:function(M){L.setBrush({color:M})}},this._commonAction())},_maskAction:function(){var L=this;return pe()({loadImageFromURL:function(M,I){return L.loadImageFromURL(L.toDataURL(),"FilterImage").then(function(){L.addImageObject(M).then(function(){ge().revokeObjectURL(I)}),L._invoker.fire(st.EXECUTE_COMMAND,pn.LOAD_MASK_IMAGE)})},applyFilter:function(){L.applyFilter("mask",{maskObjId:L.activeObjectId})}},this._commonAction())},_textAction:function(){var L=this;return pe()({changeTextStyle:function(M,I){L.activeObjectId&&L.changeTextStyle(L.activeObjectId,M,I)}},this._commonAction())},_rotateAction:function(){var L=this;return pe()({rotate:function(M,I){L.rotate(M,I),L.ui.resizeEditor(),L.ui.rotate.setRangeBarAngle("rotate",M)},setAngle:function(M,I){L.setAngle(M,I),L.ui.resizeEditor(),L.ui.rotate.setRangeBarAngle("setAngle",M)}},this._commonAction())},_shapeAction:function(){var L=this;return pe()({changeShape:function(M,I){L.activeObjectId&&L.changeShape(L.activeObjectId,M,I)},setDrawingShape:function(M){L.setDrawingShape(M)}},this._commonAction())},_cropAction:function(){var L=this;return pe()({crop:function(){var M=L.getCropzoneRect();M&&!P1(M)&&L.crop(M).then(function(){L.stopDrawingMode(),L.ui.resizeEditor(),L.ui.changeMenu("crop"),L._invoker.fire(st.EXECUTE_COMMAND,pn.CROP)}).catch(function(I){return $e().reject(I)})},cancel:function(){L.stopDrawingMode(),L.ui.changeMenu("crop")},preset:function(M){switch(M){case"preset-square":L.setCropzoneRect(1/1);break;case"preset-3-2":L.setCropzoneRect(3/2);break;case"preset-4-3":L.setCropzoneRect(4/3);break;case"preset-5-4":L.setCropzoneRect(5/4);break;case"preset-7-5":L.setCropzoneRect(7/5);break;case"preset-16-9":L.setCropzoneRect(16/9);break;default:L.setCropzoneRect(),L.ui.crop.changeApplyButtonStatus(!1);break}}},this._commonAction())},_resizeAction:function(){var L=this;return pe()({getCurrentDimensions:function(){return L._graphics.getCurrentDimensions()},preview:function(M,I,T){var F=L._graphics.getCurrentDimensions(),K=function(){return F.width/F.height},oe={};switch(M){case"width":oe.width=I,T?oe.height=I/K():oe.height=F.height;break;case"height":oe.height=I,T?oe.width=I*K():oe.width=F.width;break;default:oe=F}L._graphics.resize(oe).then(function(){L.ui.resizeEditor()}),T&&(L.ui.resize.setWidthValue(oe.width),L.ui.resize.setHeightValue(oe.height))},lockAspectRatio:function(M,I,T){var F=L._graphics.getCurrentDimensions(),K=F.width,oe=F.height,ie=K/oe;if(M)if(K>oe){var ke=T/ie,Oe=I*ie;L.ui.resize.setLimit({minWidth:Oe>I?Oe:I,minHeight:I,maxWidth:T,maxHeight:ke<T?ke:T})}else{var Ze=T*ie,Ge=I/ie;L.ui.resize.setLimit({minWidth:I,minHeight:Ge>I?Ge:I,maxWidth:Ze<T?Ze:T,maxHeight:T})}else L.ui.resize.setLimit({minWidth:I,minHeight:I,maxWidth:T,maxHeight:T})},resize:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;M||(M=L._graphics.getCurrentDimensions()),L.resize(M).then(function(){L._graphics.setOriginalDimensions(M),L.stopDrawingMode(),L.ui.resizeEditor(),L.ui.changeMenu("resize")}).catch(function(I){return $e().reject(I)})},reset:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,I=L._graphics.getOriginalDimensions();L.ui.resize.setWidthValue(I.width,!0),L.ui.resize.setHeightValue(I.height,!0),L._graphics.resize(I).then(function(){M||(L.stopDrawingMode(),L.ui.resizeEditor(),L.ui.changeMenu("resize"))})}},this._commonAction())},_flipAction:function(){var L=this;return pe()({flip:function(M){return L[M]()}},this._commonAction())},_filterAction:function(){var L=this;return pe()({applyFilter:function(M,I,T,F){M?L.applyFilter(I,T,F):L.hasFilter(I)&&L.removeFilter(I)}},this._commonAction())},setReAction:function(){var L=this;this.on({undoStackChanged:function(M){M?(L.ui.changeHelpButtonEnabled("undo",!0),L.ui.changeHelpButtonEnabled("reset",!0)):(L.ui.changeHelpButtonEnabled("undo",!1),L.ui.changeHelpButtonEnabled("reset",!1)),L.ui.resizeEditor()},redoStackChanged:function(M){M?L.ui.changeHelpButtonEnabled("redo",!0):L.ui.changeHelpButtonEnabled("redo",!1),L.ui.resizeEditor()},objectActivated:function(M){var I,T;L.activeObjectId=M.id,L.ui.changeHelpButtonEnabled("delete",!0),L.ui.changeHelpButtonEnabled("deleteAll",!0),M.type==="cropzone"?L.ui.crop.changeApplyButtonStatus(!0):l()(I=["rect","circle","triangle"]).call(I,M.type)>-1?(L.stopDrawingMode(),L.ui.submenu!=="shape"&&L.ui.changeMenu("shape",!1,!1),L.ui.shape.setShapeStatus({strokeColor:M.stroke,strokeWidth:M.strokeWidth,fillColor:Xe()(M)}),L.ui.shape.setMaxStrokeValue(Math.min(M.width,M.height))):M.type==="path"||M.type==="line"?L.ui.submenu!=="draw"&&(L.ui.changeMenu("draw",!1,!1),L.ui.draw.changeStandbyMode()):l()(T=["i-text","text"]).call(T,M.type)>-1?(L.ui.submenu!=="text"&&L.ui.changeMenu("text",!1,!1),L.ui.text.setTextStyleStateOnAction(M)):M.type==="icon"&&(L.stopDrawingMode(),L.ui.submenu!=="icon"&&L.ui.changeMenu("icon",!1,!1),L.ui.icon.setIconPickerColor(Xe()(M)))},addText:function(M){var I=L.ui.text,T=I.textColor,F=I.fontSize,K=I.fontStyle,oe=I.fontWeight,ie=I.underline,ke="Noto Sans";L.addText("Double Click",{position:M.originPosition,styles:{fill:T,fontSize:F,fontFamily:ke,fontStyle:K,fontWeight:oe,underline:ie}}).then(function(){L.changeCursor("default")})},addObjectAfter:function(M){var I;M.type==="icon"?L.ui.icon.changeStandbyMode():l()(I=["rect","circle","triangle"]).call(I,M.type)>-1&&(L.ui.shape.setMaxStrokeValue(Math.min(M.width,M.height)),L.ui.shape.changeStandbyMode())},objectScaled:function(M){var I,T;if(l()(I=["i-text","text"]).call(I,M.type)>-1)L.ui.text.fontSize=$n(M.fontSize);else if(l()(T=["rect","circle","triangle"]).call(T,M.type)>=0){var F=M.width,K=M.height,oe=L.ui.shape.getStrokeValue();F<oe&&L.ui.shape.setStrokeValue(F),K<oe&&L.ui.shape.setStrokeValue(K)}},selectionCleared:function(){L.activeObjectId=null,L.ui.submenu==="text"?L.changeCursor("text"):Bl(["draw","crop","resize"],L.ui.submenu)||L.stopDrawingMode()}})},_historyAction:function(){var L=this;return{undo:function(M){return L.undo(M)},redo:function(M){return L.redo(M)}}},_commonAction:function(){var L=this,x,M,I,T,F=bn.TEXT,K=bn.CROPPER,oe=bn.SHAPE,ie=bn.ZOOM,ke=bn.RESIZE;return{modeChange:function(Ze){switch(Ze){case Ji.TEXT:L._changeActivateMode(F);break;case Ji.CROP:L.startDrawingMode(K);break;case Ji.SHAPE:L._changeActivateMode(oe),L.setDrawingShape(L.ui.shape.type,L.ui.shape.options);break;case Ji.ZOOM:L.startDrawingMode(ie);break;case Ji.RESIZE:L.startDrawingMode(ke);break}},deactivateAll:ne()(x=this.deactivateAll).call(x,this),changeSelectableAll:ne()(M=this.changeSelectableAll).call(M,this),discardSelection:ne()(I=this.discardSelection).call(I,this),stopDrawingMode:ne()(T=this.stopDrawingMode).call(T,this)}},mixin:function(L){pe()(L.prototype,this)}},dX=s(602),JO=s.n(dX),fX=s(5573),B1=s.n(fX),hX=function(){function J(L,x){U(this,J),this.name=L,this.graphics=x}return q(J,[{key:"fire",value:function(){for(var x=this.graphics,M=arguments.length,I=new Array(M),T=0;T<M;T++)I[T]=arguments[T];return this.graphics.fire.apply(x,I)}},{key:"setCanvasImage",value:function(x,M){this.graphics.setCanvasImage(x,M)}},{key:"getCanvasElement",value:function(){return this.graphics.getCanvasElement()}},{key:"getCanvas",value:function(){return this.graphics.getCanvas()}},{key:"getCanvasImage",value:function(){return this.graphics.getCanvasImage()}},{key:"getImageName",value:function(){return this.graphics.getImageName()}},{key:"getEditor",value:function(){return this.graphics.getEditor()}},{key:"getName",value:function(){return this.name}},{key:"setImageProperties",value:function(x,M){this.graphics.setImageProperties(x,M)}},{key:"setCanvasCssDimension",value:function(x){this.graphics.setCanvasCssDimension(x)}},{key:"setCanvasBackstoreDimension",value:function(x){this.graphics.setCanvasBackstoreDimension(x)}},{key:"adjustCanvasDimension",value:function(){this.graphics.adjustCanvasDimension()}},{key:"adjustCanvasDimensionBase",value:function(){this.graphics.adjustCanvasDimensionBase()}}]),J}(),Xo=hX;function pX(J){var L=mX();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function mX(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var vX={padding:0,crossOrigin:"Anonymous"},gX=function(J){vn(x,J);var L=pX(x);function x(M){return U(this,x),L.call(this,kt.IMAGE_LOADER,M)}return q(x,[{key:"load",value:function(I,T){var F=this,K;if(!I&&!T){var oe=this.getCanvas();oe.backgroundImage=null,oe.renderAll(),K=new($e())(function(ie){F.setCanvasImage("",null),ie()})}else K=this._setBackgroundImage(T).then(function(ie){return F.setCanvasImage(I,ie),F.adjustCanvasDimension(),ie});return K}},{key:"_setBackgroundImage",value:function(I){var T=this;return I?new($e())(function(F,K){var oe=T.getCanvas();oe.setBackgroundImage(I,function(){var ie=oe.backgroundImage;ie&&ie.getElement()?F(ie):K(kn.loadingImageFailed)},vX)}):$e().reject(kn.loadImage)}}]),x}(Xo),yX=gX,bX="tl",kX="tr",CX="mt",SX="ml",wX="mr",_X="mb",IX="bl",xX="br",qO=[bX,kX,CX,SX,wX,_X,IX,xX],Fw=function(){};function $X(J){return l()(qO).call(qO,J)>=0}function F1(J,L){return J>L?"width":"height"}var AX=Se.fabric.util.createClass(Se.fabric.Rect,{initialize:function(L,x,M){x=pe()(x,M),x.type="cropzone",this.callSuper("initialize",x),this._addEventHandler(),this.canvas=L,this.options=x},canvasEventDelegation:function(L){var x,M="unregistered",I=this.canvasEventTrigger[L]!==Fw;return I?M="registered":l()(x=[st.OBJECT_MOVED,st.OBJECT_SCALED]).call(x,L)<0&&(M="none"),M},canvasEventRegister:function(L,x){this.canvasEventTrigger[L]=x},_addEventHandler:function(){var L,x,M,I,T;this.canvasEventTrigger=(L={},H(L,st.OBJECT_MOVED,Fw),H(L,st.OBJECT_SCALED,Fw),L),this.on({moving:ne()(x=this._onMoving).call(x,this),scaling:ne()(M=this._onScaling).call(M,this)}),Se.fabric.util.addListener(document,"keydown",ne()(I=this._onKeyDown).call(I,this)),Se.fabric.util.addListener(document,"keyup",ne()(T=this._onKeyUp).call(T,this))},_renderCropzone:function(L){var x=7,M=7,I=this.flipX?-1:1,T=this.flipY?-1:1,F=I/this.scaleX,K=T/this.scaleY;L.scale(F,K),this._fillOuterRect(L,"rgba(0, 0, 0, 0.5)"),this.options.lineWidth?(this._fillInnerRect(L),this._strokeBorder(L,"rgb(255, 255, 255)",{lineWidth:this.options.lineWidth})):(this._strokeBorder(L,"rgb(0, 0, 0)",{lineDashWidth:x}),this._strokeBorder(L,"rgb(255, 255, 255)",{lineDashWidth:x,lineDashOffset:M})),L.scale(1/F,1/K)},_render:function(L){this.callSuper("_render",L),this._renderCropzone(L)},_fillOuterRect:function(L,x){var M=this._getCoordinates(),I=M.x,T=M.y;L.save(),L.fillStyle=x,L.beginPath(),L.moveTo(I[0]-1,T[0]-1),L.lineTo(I[3]+1,T[0]-1),L.lineTo(I[3]+1,T[3]+1),L.lineTo(I[0]-1,T[3]+1),L.lineTo(I[0]-1,T[0]-1),L.closePath(),L.moveTo(I[1],T[1]),L.lineTo(I[1],T[2]),L.lineTo(I[2],T[2]),L.lineTo(I[2],T[1]),L.lineTo(I[1],T[1]),L.closePath(),Xe()(L).call(L),L.restore()},_fillInnerRect:function(L){var x=this._getCoordinates(),M=x.x,I=x.y,T=this._caculateInnerPosition(M,(M[2]-M[1])/3),F=this._caculateInnerPosition(I,(I[2]-I[1])/3);L.save(),L.strokeStyle="rgba(255, 255, 255, 0.7)",L.lineWidth=this.options.lineWidth,L.beginPath(),L.moveTo(T[0],F[1]),L.lineTo(T[3],F[1]),L.moveTo(T[0],F[2]),L.lineTo(T[3],F[2]),L.moveTo(T[1],F[0]),L.lineTo(T[1],F[3]),L.moveTo(T[2],F[0]),L.lineTo(T[2],F[3]),L.stroke(),L.closePath(),L.restore()},_caculateInnerPosition:function(L,x){var M=[];return M[0]=L[1],M[1]=L[1]+x,M[2]=L[1]+x*2,M[3]=L[2],M},_getCoordinates:function(){var L,x,M=this.canvas,I=this.width,T=this.height,F=this.left,K=this.top,oe=I/2,ie=T/2,ke=M.getHeight(),Oe=M.getWidth();return{x:Ot()(L=[-(oe+F),-oe,oe,oe+(Oe-F-I)]).call(L,Math.ceil),y:Ot()(x=[-(ie+K),-ie,ie,ie+(ke-K-T)]).call(x,Math.ceil)}},_strokeBorder:function(L,x,M){var I=M.lineDashWidth,T=M.lineDashOffset,F=M.lineWidth,K=this.width/2,oe=this.height/2;L.save(),L.strokeStyle=x,L.setLineDash&&L.setLineDash([I,I]),T&&(L.lineDashOffset=T),F&&(L.lineWidth=F),L.beginPath(),L.moveTo(-K,-oe),L.lineTo(K,-oe),L.lineTo(K,oe),L.lineTo(-K,oe),L.lineTo(-K,-oe),L.stroke(),L.restore()},_onMoving:function(){var L=this.height,x=this.width,M=this.left,I=this.top,T=this.canvas.getWidth()-x,F=this.canvas.getHeight()-L;this.left=Qt(M,0,T),this.top=Qt(I,0,F),this.canvasEventTrigger[st.OBJECT_MOVED](this)},_onScaling:function(L){var x=L.transform.corner,M=this.canvas.getPointer(L.e),I=this._calcScalingSizeFromPointer(M,x);this.scale(1).set(I),this.canvasEventTrigger[st.OBJECT_SCALED](this)},_calcScalingSizeFromPointer:function(L,x){var M=$X(x);return M&&this._resizeCropZone(L,x)},adjustRatioCropzoneSize:function(L){var x=L.width,M=L.height,I=L.leftMaker,T=L.topMaker,F=L.maxWidth,K=L.maxHeight,oe=L.scaleTo;if(x=F?Qt(x,1,F):x,M=K?Qt(M,1,K):M,!this.presetRatio)return this._withShiftKey&&(x>M?M=x:M>x&&(x=M)),{width:x,height:M,left:I(x),top:T(M)};oe==="width"?M=x/this.presetRatio:x=M*this.presetRatio;var ie=Math.min(F/x,K/M);if(ie<=1){var ke,Oe=Ot()(ke=[x,M]).call(ke,function(Ge){return Ge*ie}),Ze=Ae(Oe,2);x=Ze[0],M=Ze[1]}return{width:x,height:M,left:I(x),top:T(M)}},_getCropzoneRectInfo:function(){var L=this.canvas,x=L.width,M=L.height,I=this.getBoundingRect(!1,!0),T=I.top,F=I.left,K=I.width,oe=I.height;return{rectTop:T,rectLeft:F,rectWidth:K,rectHeight:oe,rectRight:F+K,rectBottom:T+oe,canvasWidth:x,canvasHeight:M}},_resizeCropZone:function(L,x){var M=L.x,I=L.y,T=this._getCropzoneRectInfo(),F=T.rectWidth,K=T.rectHeight,oe=T.rectTop,ie=T.rectLeft,ke=T.rectBottom,Oe=T.rectRight,Ze=T.canvasWidth,Ge=T.canvasHeight,Je={tl:{width:Oe-M,height:ke-I,leftMaker:function(qe){return Oe-qe},topMaker:function(qe){return ke-qe},maxWidth:Oe,maxHeight:ke,scaleTo:F1(ie-M,oe-I)},tr:{width:M-ie,height:ke-I,leftMaker:function(){return ie},topMaker:function(qe){return ke-qe},maxWidth:Ze-ie,maxHeight:ke,scaleTo:F1(M-Oe,oe-I)},mt:{width:F,height:ke-I,leftMaker:function(){return ie},topMaker:function(qe){return ke-qe},maxWidth:Ze-ie,maxHeight:ke,scaleTo:"height"},ml:{width:Oe-M,height:K,leftMaker:function(qe){return Oe-qe},topMaker:function(){return oe},maxWidth:Oe,maxHeight:Ge-oe,scaleTo:"width"},mr:{width:M-ie,height:K,leftMaker:function(){return ie},topMaker:function(){return oe},maxWidth:Ze-ie,maxHeight:Ge-oe,scaleTo:"width"},mb:{width:F,height:I-oe,leftMaker:function(){return ie},topMaker:function(){return oe},maxWidth:Ze-ie,maxHeight:Ge-oe,scaleTo:"height"},bl:{width:Oe-M,height:I-oe,leftMaker:function(qe){return Oe-qe},topMaker:function(){return oe},maxWidth:Oe,maxHeight:Ge-oe,scaleTo:F1(ie-M,I-ke)},br:{width:M-ie,height:I-oe,leftMaker:function(){return ie},topMaker:function(){return oe},maxWidth:Ze-ie,maxHeight:Ge-oe,scaleTo:F1(M-Oe,I-ke)}};return this.adjustRatioCropzoneSize(Je[x])},isValid:function(){return this.left>=0&&this.top>=0&&this.width>0&&this.height>0},_onKeyDown:function(L){var x=L.keyCode;x===Zn.SHIFT&&(this._withShiftKey=!0)},_onKeyUp:function(L){var x=L.keyCode;x===Zn.SHIFT&&(this._withShiftKey=!1)}}),EX=AX;function MX(J){var L=TX();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function TX(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var PX=10,OX={presetRatio:null,top:-10,left:-10,height:1,width:1},LX=function(J){vn(x,J);var L=MX(x);function x(M){var I,T,F,K,oe,ie;return U(this,x),ie=L.call(this,kt.CROPPER,M),ie._cropzone=null,ie._startX=null,ie._startY=null,ie._withShiftKey=!1,ie._listeners={keydown:ne()(I=ie._onKeyDown).call(I,_n(ie)),keyup:ne()(T=ie._onKeyUp).call(T,_n(ie)),mousedown:ne()(F=ie._onFabricMouseDown).call(F,_n(ie)),mousemove:ne()(K=ie._onFabricMouseMove).call(K,_n(ie)),mouseup:ne()(oe=ie._onFabricMouseUp).call(oe,_n(ie))},ie}return q(x,[{key:"start",value:function(){if(!this._cropzone){var I=this.getCanvas();I.forEachObject(function(T){T.evented=!1}),this._cropzone=new EX(I,pe()({left:0,top:0,width:.5,height:.5,strokeWidth:0,cornerSize:10,cornerColor:"black",fill:"transparent"},Gt,this.graphics.cropSelectionStyle)),I.discardActiveObject(),I.add(this._cropzone),I.on("mouse:down",this._listeners.mousedown),I.selection=!1,I.defaultCursor="crosshair",Se.fabric.util.addListener(document,"keydown",this._listeners.keydown),Se.fabric.util.addListener(document,"keyup",this._listeners.keyup)}}},{key:"end",value:function(){var I=this.getCanvas(),T=this._cropzone;T&&(I.remove(T),I.selection=!0,I.defaultCursor="default",I.off("mouse:down",this._listeners.mousedown),I.forEachObject(function(F){F.evented=!0}),this._cropzone=null,Se.fabric.util.removeListener(document,"keydown",this._listeners.keydown),Se.fabric.util.removeListener(document,"keyup",this._listeners.keyup))}},{key:"changeVisibility",value:function(I){this._cropzone&&this._cropzone.set({visible:I})}},{key:"_onFabricMouseDown",value:function(I){var T=this.getCanvas();if(!I.target){T.selection=!1;var F=T.getPointer(I.e);this._startX=F.x,this._startY=F.y,T.on({"mouse:move":this._listeners.mousemove,"mouse:up":this._listeners.mouseup})}}},{key:"_onFabricMouseMove",value:function(I){var T=this.getCanvas(),F=T.getPointer(I.e),K=F.x,oe=F.y,ie=this._cropzone;Math.abs(K-this._startX)+Math.abs(oe-this._startY)>PX&&(T.remove(ie),ie.set(this._calcRectDimensionFromPoint(K,oe,ie.presetRatio)),T.add(ie),T.setActiveObject(ie))}},{key:"_calcRectDimensionFromPoint",value:function(I,T){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,K=this.getCanvas(),oe=K.getWidth(),ie=K.getHeight(),ke=this._startX,Oe=this._startY,Ze=Qt(I,0,ke),Ge=Qt(T,0,Oe),Je=Qt(I,ke,oe)-Ze,Ke=Qt(T,Oe,ie)-Ge;return this._withShiftKey&&!F?(Je>Ke?Ke=Je:Ke>Je&&(Je=Ke),ke>=I&&(Ze=ke-Je),Oe>=T&&(Ge=Oe-Ke)):F&&(Ke=Je/F,ke>=I&&(Ze=Qt(ke-Je,0,oe)),Oe>=T&&(Ge=Qt(Oe-Ke,0,ie)),Ge+Ke>ie&&(Ke=ie-Ge,Je=Ke*F,ke>=I&&(Ze=Qt(ke-Je,0,oe)),Oe>=T&&(Ge=Qt(Oe-Ke,0,ie)))),{left:Ze,top:Ge,width:Je,height:Ke}}},{key:"_onFabricMouseUp",value:function(){var I=this._cropzone,T=this._listeners,F=this.getCanvas();F.setActiveObject(I),F.off({"mouse:move":T.mousemove,"mouse:up":T.mouseup})}},{key:"getCroppedImageData",value:function(I){var T=this.getCanvas(),F=T.contains(this._cropzone);if(!I)return null;F&&T.remove(this._cropzone);var K={imageName:this.getImageName(),url:T.toDataURL(I)};return F&&T.add(this._cropzone),K}},{key:"getCropzoneRect",value:function(){var I=this._cropzone;return I.isValid()?{left:I.left,top:I.top,width:I.width,height:I.height}:null}},{key:"setCropzoneRect",value:function(I){var T=this.getCanvas(),F=this._cropzone;T.discardActiveObject(),T.selection=!1,T.remove(F),F.set(I?this._getPresetPropertiesForCropSize(I):OX),T.add(F),T.selection=!0,I&&T.setActiveObject(F)}},{key:"_getPresetPropertiesForCropSize",value:function(I){var T,F,K=this.getCanvas(),oe=K.getWidth(),ie=K.getHeight(),ke=oe>=ie?oe:ie,Oe=function(Lt,Rn){return Lt>Rn?Rn/Lt:1},Ze=ke*I,Ge=ke,Je=Oe(Ze,oe),Ke=Ot()(T=[Ze,Ge]).call(T,function(on){return on*Je}),qe=Ae(Ke,2);Ze=qe[0],Ge=qe[1];var vt=Oe(Ge,ie),qt=Ot()(F=[Ze,Ge]).call(F,function(on){return yf(on*vt)}),tn=Ae(qt,2);return Ze=tn[0],Ge=tn[1],{presetRatio:I,top:(ie-Ge)/2,left:(oe-Ze)/2,width:Ze,height:Ge}}},{key:"_onKeyDown",value:function(I){I.keyCode===Zn.SHIFT&&(this._withShiftKey=!0)}},{key:"_onKeyUp",value:function(I){I.keyCode===Zn.SHIFT&&(this._withShiftKey=!1)}}]),x}(Xo),DX=LX;function NX(J){var L=jX();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function jX(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var zX=function(J){vn(x,J);var L=NX(x);function x(M){return U(this,x),L.call(this,kt.FLIP,M)}return q(x,[{key:"getCurrentSetting",value:function(){var I=this.getCanvasImage();return{flipX:I.flipX,flipY:I.flipY}}},{key:"set",value:function(I){var T=this.getCurrentSetting(),F=T.flipX!==I.flipX,K=T.flipY!==I.flipY;return!F&&!K?$e().reject(kn.flip):(pe()(T,I),this.setImageProperties(T,!0),this._invertAngle(F,K),this._flipObjects(F,K),$e().resolve({flipX:T.flipX,flipY:T.flipY,angle:this.getCanvasImage().angle}))}},{key:"_invertAngle",value:function(I,T){var F=this.getCanvasImage(),K=F.angle;I&&(K*=-1),T&&(K*=-1),F.rotate(Na()(K)).setCoords()}},{key:"_flipObjects",value:function(I,T){var F=this.getCanvas();I&&F.forEachObject(function(K){K.set({angle:Na()(K.angle*-1),flipX:!K.flipX,left:F.width-K.left}).setCoords()}),T&&F.forEachObject(function(K){K.set({angle:Na()(K.angle*-1),flipY:!K.flipY,top:F.height-K.top}).setCoords()}),F.renderAll()}},{key:"reset",value:function(){return this.set({flipX:!1,flipY:!1})}},{key:"flipX",value:function(){var I=this.getCurrentSetting();return this.set({flipX:!I.flipX,flipY:I.flipY})}},{key:"flipY",value:function(){var I=this.getCurrentSetting();return this.set({flipX:I.flipX,flipY:!I.flipY})}}]),x}(Xo),RX=zX;function BX(J){var L=FX();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function FX(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var VX=function(J){vn(x,J);var L=BX(x);function x(M){return U(this,x),L.call(this,kt.ROTATION,M)}return q(x,[{key:"getCurrentAngle",value:function(){return this.getCanvasImage().angle}},{key:"setAngle",value:function(I){var T=this.getCurrentAngle()%360;I%=360;var F=this.getCanvasImage(),K=F.getCenterPoint();F.set({angle:I}).setCoords(),this.adjustCanvasDimension();var oe=F.getCenterPoint();return this._rotateForEachObject(K,oe,I-T),$e().resolve(I)}},{key:"_rotateForEachObject",value:function(I,T,F){var K=this.getCanvas(),oe={x:I.x-T.x,y:I.y-T.y};K.forEachObject(function(ie){var ke=ie.getCenterPoint(),Oe=Se.fabric.util.degreesToRadians(F),Ze=Se.fabric.util.rotatePoint(ke,I,Oe);ie.set({left:Ze.x-oe.x,top:Ze.y-oe.y,angle:(ie.angle+F)%360}),ie.setCoords()}),K.renderAll()}},{key:"rotate",value:function(I){var T=this.getCurrentAngle();return this.setAngle(T+I)}}]),x}(Xo),HX=VX;function WX(J){var L=UX();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function UX(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var ZX=function(J){vn(x,J);var L=WX(x);function x(M){var I;return U(this,x),I=L.call(this,kt.FREE_DRAWING,M),I.width=12,I.oColor=new Se.fabric.Color("rgba(0, 0, 0, 0.5)"),I}return q(x,[{key:"start",value:function(I){var T=this.getCanvas();T.isDrawingMode=!0,this.setBrush(I)}},{key:"setBrush",value:function(I){var T=this.getCanvas().freeDrawingBrush;I=I||{},this.width=I.width||this.width,I.color&&(this.oColor=new Se.fabric.Color(I.color)),T.width=this.width,T.color=this.oColor.toRgba()}},{key:"end",value:function(){var I=this.getCanvas();I.isDrawingMode=!1}}]),x}(Xo),GX=ZX,QO=30,YX=2.7,XX=1.7,e8=180,KX=Se.fabric.util.createClass(Se.fabric.Line,{type:"line",initialize:function(L){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.callSuper("initialize",L,x),this.arrowType=x.arrowType},_render:function(L){var x=this.calcLinePoints(),M=x.x1,I=x.y1,T=x.x2,F=x.y2,K={fromX:M,fromY:I,toX:T,toY:F};this.ctx=L,L.lineWidth=this.strokeWidth,this._renderBasicLinePath(K),this._drawDecoratorPath(K),this._renderStroke(L)},_renderBasicLinePath:function(L){var x=L.fromX,M=L.fromY,I=L.toX,T=L.toY;this.ctx.beginPath(),this.ctx.moveTo(x,M),this.ctx.lineTo(I,T)},_drawDecoratorPath:function(L){this._drawDecoratorPathType("head",L),this._drawDecoratorPathType("tail",L)},_drawDecoratorPathType:function(L,x){switch(this.arrowType[L]){case"triangle":this._drawTrianglePath(L,x);break;case"chevron":this._drawChevronPath(L,x);break}},_drawTrianglePath:function(L,x){var M=this.ctx.lineWidth*XX;this._drawChevronPath(L,x,M),this.ctx.closePath()},_drawChevronPath:function(L,x,M){var I=this,T=x.fromX,F=x.fromY,K=x.toX,oe=x.toY,ie=this.ctx;M||(M=this.ctx.lineWidth*YX);var ke=L==="head"?[T,F]:[K,oe],Oe=Ae(ke,2),Ze=Oe[0],Ge=Oe[1],Je=L==="head"?[K,oe]:[T,F],Ke=Ae(Je,2),qe=Ke[0],vt=Ke[1],qt=Math.atan2(vt-Ge,qe-Ze)*e8/Math.PI,tn=function(Lt){return I.getRotatePosition(M,Lt,{x:Ze,y:Ge})};ie.moveTo.apply(ie,V(tn(qt+QO))),ie.lineTo(Ze,Ge),ie.lineTo.apply(ie,V(tn(qt-QO)))},getRotatePosition:function(L,x,M){var I=x*Math.PI/e8,T=M.x,F=M.y;return[L*Math.cos(I)+T,L*Math.sin(I)+F]}}),JX=KX;function qX(J){var L=QX();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function QX(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var eK=function(J){vn(x,J);var L=qX(x);function x(M){var I,T,F,K;return U(this,x),K=L.call(this,kt.LINE,M),K._width=12,K._oColor=new Se.fabric.Color("rgba(0, 0, 0, 0.5)"),K._listeners={mousedown:ne()(I=K._onFabricMouseDown).call(I,_n(K)),mousemove:ne()(T=K._onFabricMouseMove).call(T,_n(K)),mouseup:ne()(F=K._onFabricMouseUp).call(F,_n(K))},K}return q(x,[{key:"setHeadOption",value:function(I){var T=I.arrowType,F=T===void 0?{head:null,tail:null}:T;this._arrowType=F}},{key:"start",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=this.getCanvas();T.defaultCursor="crosshair",T.selection=!1,this.setHeadOption(I),this.setBrush(I),T.forEachObject(function(F){F.set({evented:!1})}),T.on({"mouse:down":this._listeners.mousedown})}},{key:"setBrush",value:function(I){var T=this.getCanvas().freeDrawingBrush;I=I||{},this._width=I.width||this._width,I.color&&(this._oColor=new Se.fabric.Color(I.color)),T.width=this._width,T.color=this._oColor.toRgba()}},{key:"end",value:function(){var I=this.getCanvas();I.defaultCursor="default",I.selection=!0,I.forEachObject(function(T){T.set({evented:!0})}),I.off("mouse:down",this._listeners.mousedown)}},{key:"_onFabricMouseDown",value:function(I){var T=this.getCanvas(),F=T.getPointer(I.e),K=F.x,oe=F.y,ie=[K,oe,K,oe];this._line=new JX(ie,{stroke:this._oColor.toRgba(),strokeWidth:this._width,arrowType:this._arrowType,evented:!1}),this._line.set(Vi.SELECTION_STYLE),T.add(this._line),T.on({"mouse:move":this._listeners.mousemove,"mouse:up":this._listeners.mouseup}),this.fire(st.ADD_OBJECT,this._createLineEventObjectProperties())}},{key:"_onFabricMouseMove",value:function(I){var T=this.getCanvas(),F=T.getPointer(I.e);this._line.set({x2:F.x,y2:F.y}),this._line.setCoords(),T.renderAll()}},{key:"_onFabricMouseUp",value:function(){var I=this.getCanvas();this.fire(st.OBJECT_ADDED,this._createLineEventObjectProperties()),this._line=null,I.off({"mouse:move":this._listeners.mousemove,"mouse:up":this._listeners.mouseup})}},{key:"_createLineEventObjectProperties",value:function(){var I=this.graphics.createObjectProperties(this._line),T=this._line,F=T.x1,K=T.x2,oe=T.y1,ie=T.y2;return pe()({},I,{startPosition:{x:F,y:oe},endPosition:{x:K,y:ie}})}}]),x}(Xo),tK=eK;function nK(J){var L=iK();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function iK(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var rK={fill:"#000000",left:0,top:0},oK={fill:"#000000",fontStyle:"normal",fontWeight:"normal",textAlign:"tie-text-align-left",underline:!1},sK=500,aK=function(J){vn(x,J);var L=nK(x);function x(M){var I,T,F,K,oe,ie;return U(this,x),ie=L.call(this,kt.TEXT,M),ie._defaultStyles=rK,ie._isSelected=!1,ie._selectedObj={},ie._editingObj={},ie._listeners={mousedown:ne()(I=ie._onFabricMouseDown).call(I,_n(ie)),select:ne()(T=ie._onFabricSelect).call(T,_n(ie)),selectClear:ne()(F=ie._onFabricSelectClear).call(F,_n(ie)),scaling:ne()(K=ie._onFabricScaling).call(K,_n(ie)),textChanged:ne()(oe=ie._onFabricTextChanged).call(oe,_n(ie))},ie._textarea=null,ie._ratio=1,ie._lastClickTime=new Date().getTime(),ie._editingObjInfos={},ie.isPrevEditing=!1,ie}return q(x,[{key:"start",value:function(){var I=this,T=this.getCanvas();T.selection=!1,T.defaultCursor="text",T.on({"mouse:down":this._listeners.mousedown,"selection:created":this._listeners.select,"selection:updated":this._listeners.select,"before:selection:cleared":this._listeners.selectClear,"object:scaling":this._listeners.scaling,"text:changed":this._listeners.textChanged}),T.forEachObject(function(F){F.type==="i-text"&&I.adjustOriginPosition(F,"start")}),this.setCanvasRatio()}},{key:"end",value:function(){var I=this,T=this.getCanvas();T.selection=!0,T.defaultCursor="default",T.forEachObject(function(F){F.type==="i-text"&&(F.text===""?T.remove(F):I.adjustOriginPosition(F,"end"))}),T.off({"mouse:down":this._listeners.mousedown,"selection:created":this._listeners.select,"selection:updated":this._listeners.select,"before:selection:cleared":this._listeners.selectClear,"object:selected":this._listeners.select,"object:scaling":this._listeners.scaling,"text:changed":this._listeners.textChanged})}},{key:"adjustOriginPosition",value:function(I,T){var F="center",K="center";T==="start"&&(F="left",K="top");var oe=I.getPointByOrigin(F,K),ie=oe.x,ke=oe.y;I.set({left:ie,top:ke,originX:F,originY:K}),I.setCoords()}},{key:"add",value:function(I,T){var F=this;return new($e())(function(K){var oe,ie=F.getCanvas(),ke=null,Oe=Vi.SELECTION_STYLE,Ze=F._defaultStyles;F._setInitPos(T.position),T.styles&&(Ze=pe()(Ze,T.styles)),FO()(T.autofocus)||(T.autofocus=!0),ke=new Se.fabric.IText(I,Ze),Oe=pe()({},Oe,{originX:"left",originY:"top"}),ke.set(Oe),ke.on({mouseup:ne()(oe=F._onFabricMouseUp).call(oe,F)}),ie.add(ke),T.autofocus&&(ke.enterEditing(),ke.selectAll()),ie.getActiveObject()||ie.setActiveObject(ke),F.isPrevEditing=!0,K(F.graphics.createObjectProperties(ke))})}},{key:"change",value:function(I,T){var F=this;return new($e())(function(K){I.set("text",T),F.getCanvas().renderAll(),K()})}},{key:"setStyle",value:function(I,T){var F=this;return new($e())(function(K){ee()(T,function(oe,ie){I[ie]===oe&&ie!=="fontSize"&&(T[ie]=oK[ie]||"")},F),"textDecoration"in T&&pe()(T,F._getTextDecorationAdaptObject(T.textDecoration)),I.set(T),F.getCanvas().renderAll(),K()})}},{key:"getText",value:function(I){return I.text}},{key:"setSelectedInfo",value:function(I,T){this._selectedObj=I,this._isSelected=T}},{key:"isSelected",value:function(){return this._isSelected}},{key:"getSelectedObj",value:function(){return this._selectedObj}},{key:"setCanvasRatio",value:function(){var I=this.getCanvasElement(),T=Ne()(I.style.maxWidth,10),F=I.width;this._ratio=F/T}},{key:"getCanvasRatio",value:function(){return this._ratio}},{key:"_getTextDecorationAdaptObject",value:function(I){return{underline:I==="underline",linethrough:I==="line-through",overline:I==="overline"}}},{key:"_setInitPos",value:function(I){I=I||this.getCanvasImage().getCenterPoint(),this._defaultStyles.left=I.x,this._defaultStyles.top=I.y}},{key:"_onInput",value:function(){var I=this.getCanvasRatio(),T=this._editingObj,F=this._textarea.style;F.width="".concat(Math.ceil(T.width/I),"px"),F.height="".concat(Math.ceil(T.height/I),"px")}},{key:"_onKeyDown",value:function(){var I=this,T=this.getCanvasRatio(),F=this._editingObj,K=this._textarea.style;f()(function(){F.text(I._textarea.value),K.width="".concat(Math.ceil(F.width/T),"px"),K.height="".concat(Math.ceil(F.height/T),"px")},0)}},{key:"_onBlur",value:function(){var I=this.getCanvasRatio(),T=this._editingObj,F=this._editingObjInfos,K=this._textarea.value,oe=T.width/I-F.width/I,ie=T.height/I-F.height/I;if(I===1&&(oe/=2,ie/=2),this._textarea.style.display="none",T.set({left:F.left+oe,top:F.top+ie}),K.length){this.getCanvas().add(T);var ke={id:mt(T),type:T.type,text:K};this.fire(st.TEXT_CHANGED,ke)}}},{key:"_onScroll",value:function(){this._textarea.scrollLeft=0,this._textarea.scrollTop=0}},{key:"_onFabricScaling",value:function(I){var T=I.target;T.fontSize=T.fontSize*T.scaleY,T.scaleX=1,T.scaleY=1}},{key:"_onFabricTextChanged",value:function(I){this.fire(st.TEXT_CHANGED,I.target)}},{key:"_onFabricSelectClear",value:function(I){var T=this.getSelectedObj();this.isPrevEditing=!0,this.setSelectedInfo(I.target,!1),T&&T.text===""&&this.getCanvas().remove(T)}},{key:"_onFabricSelect",value:function(I){this.isPrevEditing=!0,this.setSelectedInfo(I.target,!0)}},{key:"_onFabricMouseDown",value:function(I){var T=I.target;if(!(T&&!T.isType("text"))){if(this.isPrevEditing){this.isPrevEditing=!1;return}this._fireAddText(I)}}},{key:"_fireAddText",value:function(I){var T=I.target,F=I.e||{},K=this.getCanvas().getPointer(F);T||this.fire(st.ADD_TEXT,{originPosition:{x:K.x,y:K.y},clientPosition:{x:F.clientX||0,y:F.clientY||0}})}},{key:"_onFabricMouseUp",value:function(I){var T=I.target,F=new Date().getTime();this._isDoubleClick(F)&&!T.isEditing&&T.enterEditing(),T.isEditing&&this.fire(st.TEXT_EDITING),this._lastClickTime=F}},{key:"_isDoubleClick",value:function(I){return I-this._lastClickTime<sK}}]),x}(Xo),lK=aK;function cK(J){var L=uK();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function uK(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var dK={arrow:"M 0 90 H 105 V 120 L 160 60 L 105 0 V 30 H 0 Z",cancel:"M 0 30 L 30 60 L 0 90 L 30 120 L 60 90 L 90 120 L 120 90 L 90 60 L 120 30 L 90 0 L 60 30 L 30 0 Z"},fK=function(J){vn(x,J);var L=cK(x);function x(M){var I,T,F,K;return U(this,x),K=L.call(this,kt.ICON,M),K._oColor="#000000",K._pathMap=dK,K._type=null,K._iconColor=null,K._handlers={mousedown:ne()(I=K._onFabricMouseDown).call(I,_n(K)),mousemove:ne()(T=K._onFabricMouseMove).call(T,_n(K)),mouseup:ne()(F=K._onFabricMouseUp).call(F,_n(K))},K}return q(x,[{key:"setStates",value:function(I,T){this._type=I,this._iconColor=T}},{key:"start",value:function(){var I=this.getCanvas();I.selection=!1,I.on("mouse:down",this._handlers.mousedown)}},{key:"end",value:function(){var I=this.getCanvas();I.selection=!0,I.off({"mouse:down":this._handlers.mousedown})}},{key:"add",value:function(I,T){var F=this;return new($e())(function(K,oe){var ie=F.getCanvas(),ke=F._pathMap[I],Oe=Vi.SELECTION_STYLE,Ze=ke?F._createIcon(ke):null;F._icon=Ze,Ze||oe(kn.invalidParameters),Ze.set(pe()({type:"icon",fill:F._oColor},Oe,T,F.graphics.controlStyle)),ie.add(Ze).setActiveObject(Ze),K(F.graphics.createObjectProperties(Ze))})}},{key:"registerPaths",value:function(I){var T=this;ee()(I,function(F,K){T._pathMap[K]=F},this)}},{key:"setColor",value:function(I,T){this._oColor=I,T&&T.get("type")==="icon"&&(T.set({fill:this._oColor}),this.getCanvas().renderAll())}},{key:"getColor",value:function(I){return Xe()(I)}},{key:"_createIcon",value:function(I){return new Se.fabric.Path(I)}},{key:"_onFabricMouseDown",value:function(I){var T=this,F=this.getCanvas();this._startPoint=F.getPointer(I.e);var K=this._startPoint,oe=K.x,ie=K.y;this.add(this._type,{left:oe,top:ie,fill:this._iconColor}).then(function(){T.fire(st.ADD_OBJECT,T.graphics.createObjectProperties(T._icon)),F.on("mouse:move",T._handlers.mousemove),F.on("mouse:up",T._handlers.mouseup)})}},{key:"_onFabricMouseMove",value:function(I){var T=this.getCanvas();if(this._icon){var F=T.getPointer(I.e),K=(F.x-this._startPoint.x)/this._icon.width,oe=(F.y-this._startPoint.y)/this._icon.height;this._icon.set({scaleX:Math.abs(K*2),scaleY:Math.abs(oe*2)}),this._icon.setCoords(),T.renderAll()}}},{key:"_onFabricMouseUp",value:function(){var I=this.getCanvas();this.fire(st.OBJECT_ADDED,this.graphics.createObjectProperties(this._icon)),this._icon=null,I.off("mouse:down",this._handlers.mousedown),I.off("mouse:move",this._handlers.mousemove),I.off("mouse:up",this._handlers.mouseup)}}]),x}(Xo),hK=fK,pK=Se.fabric.util.createClass(Se.fabric.Image.filters.BlendImage,{applyTo:function(L){if(this.mask){var x=L.canvasEl,M=x.width,I=x.height,T=this._createCanvasOfMask(M,I),F=x.getContext("2d"),K=T.getContext("2d"),oe=F.getImageData(0,0,M,I);this._drawMask(K,x,F),this._mapData(K,oe,M,I),L.imageData=oe}},_createCanvasOfMask:function(L,x){var M=Se.fabric.util.createCanvasElement();return M.width=L,M.height=x,M},_drawMask:function(L){var x=this.mask,M=x.getElement(),I=x.angle,T=x.left,F=x.scaleX,K=x.scaleY,oe=x.top;L.save(),L.translate(T,oe),L.rotate(I*Math.PI/180),L.scale(F,K),L.drawImage(M,-M.width/2,-M.height/2),L.restore()},_mapData:function(L,x,M,I){for(var T=x.data,F=x.height,K=x.width,oe=T,ie=K*F*4,ke=L.getImageData(0,0,M,I).data,Oe=0;Oe<ie;Oe+=4)oe[Oe+3]=ke[Oe]}}),mK=pK,vK=Se.fabric.util.createClass(Se.fabric.Image.filters.Convolute,{type:"Sharpen",initialize:function(){this.matrix=[0,-1,0,-1,5,-1,0,-1,0]}}),gK=vK,yK=Se.fabric.util.createClass(Se.fabric.Image.filters.Convolute,{type:"Emboss",initialize:function(){this.matrix=[1,1,1,1,.7,-1,-1,-1,-1]}}),bK=yK,kK=Se.fabric.util.createClass(Se.fabric.Image.filters.BaseFilter,{type:"ColorFilter",initialize:function(L){L||(L={}),this.color=L.color||"#FFFFFF",this.threshold=L.threshold||45,this.x=L.x||null,this.y=L.y||null},applyTo:function(L){var x=L.canvasEl,M=x.getContext("2d"),I=M.getImageData(0,0,x.width,x.height),T=I.data,F=this.threshold,K=Se.fabric.Color.sourceFromHex(this.color),oe,ie;for(this.x&&this.y&&(K=this._getColor(I,this.x,this.y)),oe=0,ie=T.length;oe<ie;oe+=4)this._isOutsideThreshold(T[oe],K[0],F)||this._isOutsideThreshold(T[oe+1],K[1],F)||this._isOutsideThreshold(T[oe+2],K[2],F)||(T[oe]=T[oe+1]=T[oe+2]=T[oe+3]=0);M.putImageData(I,0,0)},_isOutsideThreshold:function(L,x,M){var I=L-x;return Math.abs(I)>M},_getColor:function(L,x,M){var I=[0,0,0,0],T=L.data,F=L.width,K=4,oe=(F*M+x)*K;return I[0]=T[oe],I[1]=T[oe+1],I[2]=T[oe+2],I[3]=T[oe+3],I}}),CK=kK;function SK(J){var L=wK();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function wK(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var V1=Se.fabric.Image.filters;V1.Mask=mK,V1.Sharpen=gK,V1.Emboss=bK,V1.ColorFilter=CK;var _K=function(J){vn(x,J);var L=SK(x);function x(M){return U(this,x),L.call(this,kt.FILTER,M)}return q(x,[{key:"add",value:function(I,T){var F=this;return new($e())(function(K,oe){var ie=F._getSourceImage(),ke=F.getCanvas(),Oe=F._getFilter(ie,I);Oe||(Oe=F._createFilter(ie,I,T)),Oe||oe(kn.invalidParameters),F._changeFilterValues(Oe,T),F._apply(ie,function(){ke.renderAll(),K({type:I,action:"add",options:T})})})}},{key:"remove",value:function(I){var T=this;return new($e())(function(F,K){var oe=T._getSourceImage(),ie=T.getCanvas(),ke=T.getOptions(I);oe.filters.length||K(kn.unsupportedOperation),T._removeFilter(oe,I),T._apply(oe,function(){ie.renderAll(),F({type:I,action:"remove",options:ke})})})}},{key:"hasFilter",value:function(I){return!!this._getFilter(this._getSourceImage(),I)}},{key:"getOptions",value:function(I){var T=this._getSourceImage(),F=this._getFilter(T,I);return F?pe()({},F.options):null}},{key:"_changeFilterValues",value:function(I,T){ee()(T,function(F,K){Y()(I[K])||(I[K]=F)}),ee()(I.options,function(F,K){Y()(T[K])||(I.options[K]=T[K])})}},{key:"_apply",value:function(I,T){I.filters.push();var F=I.applyFilters();F&&T()}},{key:"_getSourceImage",value:function(){return this.getCanvasImage()}},{key:"_createFilter",value:function(I,T,F){var K,oe=this._getFabricFilterType(T),ie=Se.fabric.Image.filters[oe];return ie&&(K=new ie(F),K.options=F,I.filters.push(K)),K}},{key:"_getFilter",value:function(I,T){var F=null;if(I){var K=this._getFabricFilterType(T),oe=I.filters.length,ie,ke;for(ke=0;ke<oe;ke+=1)if(ie=I.filters[ke],ie.type===K){F=ie;break}}return F}},{key:"_removeFilter",value:function(I,T){var F,K=this._getFabricFilterType(T);I.filters=wf()(F=I.filters).call(F,function(oe){return oe.type!==K})}},{key:"_getFabricFilterType",value:function(I){return I.charAt(0).toUpperCase()+y()(I).call(I,1)}}]),x}(Xo),IK=_K,xK=s(1801),ja=s.n(xK),t8={pixelate:"blocksize",blur:"blur"},Vw={x:"width",y:"height"},$K=A1(t8),vm=null;function H1(J){var L=hu(J,"patternSourceCanvas"),x=L.patternSourceCanvas,M=x.getObjects(),I=Ae(M,1),T=I[0];return T}function AK(J){var L=J.angle,x=J.flipX,M=J.flipY,I=H1(J),T=BK(J),F=T.right,K=T.bottom,oe=T.width,ie=T.height,ke=(oe-J.width)/2,Oe=(ie-J.height)/2,Ze=J.left-J.width/2-ke,Ge=J.top-J.height/2-Oe,Je=oe/2-ke,Ke=ie/2-Oe,qe=Math.max(oe,ie)+Math.max(ke,Oe),vt=EK({shapeObj:J,left:Je,top:Ke,width:oe,height:ie,cropX:Ze,cropY:Ge,flipX:x,flipY:M,right:F,bottom:K}),qt=Ae(vt,4);Je=qt[0],Ke=qt[1],oe=qt[2],ie=qt[3],I.set({angle:x===M?-L:L,left:Je,top:Ke,width:oe,height:ie,cropX:Ze,cropY:Ge,flipX:x,flipY:M}),sm(I,{fillImageMaxSize:qe})}function Hw(J){var L;return Ot()(L=J.filters).call(L,function(x){var M=De()(x),I=Ae(M,1),T=I[0];return H({},$K[T],x[T])})}function EK(J){var L=J.shapeObj,x=J.left,M=J.top,I=J.width,T=J.height,F=J.cropX,K=J.cropY,oe=J.flipX,ie=J.flipY,ke=J.right,Oe=J.bottom,Ze=function(on,Lt,Rn,wr){return LK({type:on,outDistance:Lt,shapeObj:L,flipX:oe,flipY:ie,left:Rn,top:wr})},Ge=I,Je=T,Ke=TK(Ze,{left:x,top:M,width:I,height:T,cropX:F,cropY:K}),qe=Ae(Ke,4);x=qe[0],M=qe[1],I=qe[2],T=qe[3];var vt=MK(Ze,{left:x,top:M,insideCanvasRealImageWidth:I,insideCanvasRealImageHeight:T,right:ke,bottom:Oe,cropX:F,cropY:K,originalWidth:Ge,originalHeight:Je}),qt=Ae(vt,4);return x=qt[0],M=qt[1],I=qt[2],T=qt[3],[x,M,I,T]}function MK(J,L){var x=L.left,M=L.top,I=L.insideCanvasRealImageWidth,T=L.insideCanvasRealImageHeight,F=L.right,K=L.bottom,oe=L.cropX,ie=L.cropY,ke=L.originalWidth,Oe=L.originalHeight,Ze=I,Ge=T,Je=vm,Ke=Je.width,qe=Je.height;F>Ke&&oe>0&&(Ze=ke-Math.abs(F-Ke)),K>qe&&ie>0&&(Ge=Oe-Math.abs(K-qe));var vt={x:(I-Ze)/2,y:(T-Ge)/2};return ee()(["x","y"],function(qt){var tn=vt[qt];if(tn>0){var on=J(qt,tn,x,M),Lt=Ae(on,2);x=Lt[0],M=Lt[1]}}),[x,M,Ze,Ge]}function TK(J,L){var x=L.left,M=L.top,I=L.width,T=L.height,F=L.cropX,K=L.cropY,oe={width:I,height:T};return ee()(["x","y"],function(ie){var ke=ie==="x"?F:K,Oe=oe[Vw[ie]],Ze=vm[Vw[ie]];if(Oe>Ze){var Ge=(Oe-Ze)/2;oe[Vw[ie]]=Ze;var Je=J(ie,Ge,x,M),Ke=Ae(Je,2);x=Ke[0],M=Ke[1]}if(ke<0){var qe=J(ie,ke,x,M),vt=Ae(qe,2);x=vt[0],M=vt[1]}}),[x,M,oe.width,oe.height]}function n8(J,L,x){var M=i8(J),I=o8(M,J.angle,L);x.add(I);var T={fill:new Se.fabric.Pattern({source:x.getElement(),repeat:"no-repeat"})};return sm(T,{patternSourceCanvas:x}),T}function PK(J){var L=J.getObjects(),x=Ae(L,1),M=x[0],I=hu(M,"fillImageMaxSize"),T=I.fillImageMaxSize;T=Math.max(1,T),J.setDimensions({width:T,height:T}),J.renderAll()}function OK(J,L){var x=hu(J,"patternSourceCanvas"),M=x.patternSourceCanvas,I=M.getObjects(),T=Ae(I,1),F=T[0],K=Hw(F);M.remove(F);var oe=i8(L,!0),ie=o8(oe,L.angle,K);M.add(ie)}function i8(J){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(!vm||L)&&(vm=J.toCanvasElement()),vm}function LK(J){var L=J.type,x=J.shapeObj,M=J.outDistance,I=J.left,T=J.top,F=J.flipX,K=J.flipY,oe=r8(x),ie=[[1,2],[0,3],[0,3],[1,2]],ke=NK(L,oe,ie),Oe=jK(L,oe,ke),Ze=ke.startPointIndex,Ge=DK({outDistance:M,startPointIndex:Ze,flipX:F,flipY:K,reatAngles:Oe});return[I+Ge.left,T+Ge.top]}function DK(J){var L=J.outDistance,x=J.startPointIndex,M=J.flipX,I=J.flipY,T=J.reatAngles,F=L*Math.cos(T[0]*Math.PI/180),K=L*Math.cos(T[1]*Math.PI/180),oe=x===2||x===3,ie={top:oe?F:K,left:oe?K:F};return zK(x,M,I)&&(ie.left=ie.left*-1),RK(x,M,I)&&(ie.top=ie.top*-1),ie}function NK(J,L,x){var M=0,I=0;ee()(L,function(oe,ie){oe[J]<M&&(M=oe[J],I=ie)});var T=Ae(x[I],2),F=T[0],K=T[1];return{startPointIndex:I,endPointIndex1:F,endPointIndex2:K}}function jK(J,L,x){var M,I=x.startPointIndex,T=x.endPointIndex1,F=x.endPointIndex2,K=J==="x"?180:270;return Ot()(M=[T,F]).call(M,function(oe){var ie=L[I],ke=L[oe],Oe=ie.y-ke.y,Ze=ie.x-ke.x;return Math.atan2(Oe,Ze)*180/Math.PI-K})}function zK(J,L,x){return(!L&&x||!L&&!x)&&J===0||(L&&x||L&&!x)&&J===1||(!L&&!x||!L&&x)&&J===2||(L&&!x||L&&x)&&J===3}function RK(J,L,x){return(L&&!x||!L&&!x)&&J===0||(!L&&!x||L&&!x)&&J===1||(L&&x||!L&&x)&&J===2||(!L&&x||L&&x)&&J===3}function r8(J){return[J.getPointByOrigin("left","top"),J.getPointByOrigin("right","top"),J.getPointByOrigin("left","bottom"),J.getPointByOrigin("right","bottom")]}function BK(J){var L=r8(J),x=Ae(L,4),M=x[0],I=M.x,T=M.y,F=x[1],K=F.x,oe=F.y,ie=x[2],ke=ie.x,Oe=ie.y,Ze=x[3],Ge=Ze.x,Je=Ze.y,Ke=Math.min(I,K,ke,Ge),qe=Math.min(T,oe,Oe,Je),vt=Math.max(I,K,ke,Ge),qt=Math.max(T,oe,Oe,Je);return{left:Ke,top:qe,right:vt,bottom:qt,width:vt-Ke,height:qt-qe}}function o8(J,L,x){var M,I=new Se.fabric.Image(J);return ee()(pe().apply(void 0,te()(M=[{}]).call(M,V(x))),function(T,F){var K=bf(F),oe=new Se.fabric.Image.filters[K](H({},t8[F],T));I.filters.push(oe)}),I.applyFilters(),sm(I,{originalAngle:L,fillImageMaxSize:Math.max(I.width,I.height)}),ja().adjustOriginToCenter(I),I}function FK(J){var L=VK();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function VK(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var s8=pe()({strokeWidth:1,stroke:"#000000",fill:"#ffffff",width:1,height:1,rx:0,ry:0},At),HK="rect",WK=20,UK=20;function a8(J,L,x){var M=Xe()(J),I=am(Xe()(J)),T=M;M.color&&(T=M.color);var F=null;if(I==="filter"){var K=x();F=n8(L,wf()(M),K)}else F={fill:T};return pe()({},J,F)}var ZK=function(J){vn(x,J);var L=FK(x);function x(M){var I,T,F,K,oe,ie;return U(this,x),ie=L.call(this,kt.SHAPE,M),ie._shapeObj=null,ie._type=HK,ie._options=pe()({},s8),ie._isSelected=!1,ie._startPoint={},ie._withShiftKey=!1,ie._handlers={mousedown:ne()(I=ie._onFabricMouseDown).call(I,_n(ie)),mousemove:ne()(T=ie._onFabricMouseMove).call(T,_n(ie)),mouseup:ne()(F=ie._onFabricMouseUp).call(F,_n(ie)),keydown:ne()(K=ie._onKeyDown).call(K,_n(ie)),keyup:ne()(oe=ie._onKeyUp).call(oe,_n(ie))},ie}return q(x,[{key:"start",value:function(){var I=this.getCanvas();this._isSelected=!1,I.defaultCursor="crosshair",I.selection=!1,I.uniformScaling=!0,I.on({"mouse:down":this._handlers.mousedown}),Se.fabric.util.addListener(document,"keydown",this._handlers.keydown),Se.fabric.util.addListener(document,"keyup",this._handlers.keyup)}},{key:"end",value:function(){var I=this.getCanvas();this._isSelected=!1,I.defaultCursor="default",I.selection=!0,I.uniformScaling=!1,I.off({"mouse:down":this._handlers.mousedown}),Se.fabric.util.removeListener(document,"keydown",this._handlers.keydown),Se.fabric.util.removeListener(document,"keyup",this._handlers.keyup)}},{key:"setStates",value:function(I,T){this._type=I,T&&(this._options=pe()(this._options,T))}},{key:"add",value:function(I,T){var F=this;return new($e())(function(K){var oe=F.getCanvas(),ie=F._extendOptions(T),ke=F._createInstance(I,ie),Oe=F.graphics.createObjectProperties(ke);F._bindEventOnShape(ke),oe.add(ke).setActiveObject(ke),F._resetPositionFillFilter(ke),K(Oe)})}},{key:"change",value:function(I,T){var F=this;return new($e())(function(K,oe){lm(I)||oe(kn.unsupportedType);var ie=am(Xe()(T))==="filter",ke=F.graphics,Oe=ke.canvasImage,Ze=ke.createStaticCanvas;I.set(ie?a8(T,Oe,Ze):T),ie&&F._resetPositionFillFilter(I),F.getCanvas().renderAll(),K()})}},{key:"makeFillPropertyForUserEvent",value:function(I){var T=La(I),F={};if(T===ht.FILTER){var K=H1(I),oe=Hw(K);F.type=T,F.filter=oe}else F.type=ht.COLOR,F.color=Xe()(I)||"transparent";return F}},{key:"processForCopiedObject",value:function(I,T){if(this._bindEventOnShape(I),La(I)==="filter"){var F=H1(T),K=Hw(F),oe=this.graphics.createStaticCanvas();I.set(n8(this.graphics.canvasImage,K,oe)),this._resetPositionFillFilter(I)}}},{key:"_createInstance",value:function(I,T){var F;switch(I){case"rect":F=new Se.fabric.Rect(T);break;case"circle":F=new Se.fabric.Ellipse(pe()({type:"circle"},T));break;case"triangle":F=new Se.fabric.Triangle(T);break;default:F={}}return F}},{key:"_extendOptions",value:function(I){var T=Vi.SELECTION_STYLE,F=this.graphics,K=F.canvasImage,oe=F.createStaticCanvas;return I=pe()({},s8,this._options,T,I),a8(I,K,oe)}},{key:"_bindEventOnShape",value:function(I){var T=this,F=this.getCanvas();I.on({added:function(){T._shapeObj=this,ja().setOrigins(T._shapeObj)},selected:function(){T._isSelected=!0,T._shapeObj=this,F.uniformScaling=!0,F.defaultCursor="default",ja().setOrigins(T._shapeObj)},deselected:function(){T._isSelected=!1,T._shapeObj=null,F.defaultCursor="crosshair",F.uniformScaling=!1},modified:function(){var oe=T._shapeObj;ja().adjustOriginToCenter(oe),ja().setOrigins(oe)},modifiedInGroup:function(oe){T._fillFilterRePositionInGroupSelection(I,oe)},moving:function(){T._resetPositionFillFilter(this)},rotating:function(){T._resetPositionFillFilter(this)},scaling:function(oe){var ie=F.getPointer(oe.e),ke=T._shapeObj;F.setCursor("crosshair"),ja().resize(ke,ie,!0),T._resetPositionFillFilter(this)}})}},{key:"_onFabricMouseDown",value:function(I){if(I.target||(this._isSelected=!1,this._shapeObj=!1),!this._isSelected&&!this._shapeObj){var T=this.getCanvas();this._startPoint=T.getPointer(I.e),T.on({"mouse:move":this._handlers.mousemove,"mouse:up":this._handlers.mouseup})}}},{key:"_onFabricMouseMove",value:function(I){var T=this,F=this.getCanvas(),K=F.getPointer(I.e),oe=this._startPoint.x,ie=this._startPoint.y,ke=oe-K.x,Oe=ie-K.y,Ze=this._shapeObj;Ze?(this._shapeObj.set({isRegular:this._withShiftKey}),ja().resize(Ze,K),F.renderAll(),this._resetPositionFillFilter(Ze)):this.add(this._type,{left:oe,top:ie,width:ke,height:Oe}).then(function(Ge){T.fire(st.ADD_OBJECT,Ge)})}},{key:"_onFabricMouseUp",value:function(){var I=this,T=this.getCanvas(),F=this._startPoint.x,K=this._startPoint.y,oe=this._shapeObj;oe?oe&&(ja().adjustOriginToCenter(oe),this.fire(st.OBJECT_ADDED,this.graphics.createObjectProperties(oe))):this.add(this._type,{left:F,top:K,width:WK,height:UK}).then(function(ie){I.fire(st.ADD_OBJECT,ie)}),T.off({"mouse:move":this._handlers.mousemove,"mouse:up":this._handlers.mouseup})}},{key:"_onKeyDown",value:function(I){I.keyCode===Zn.SHIFT&&(this._withShiftKey=!0,this._shapeObj&&(this._shapeObj.isRegular=!0))}},{key:"_onKeyUp",value:function(I){I.keyCode===Zn.SHIFT&&(this._withShiftKey=!1,this._shapeObj&&(this._shapeObj.isRegular=!1))}},{key:"_resetPositionFillFilter",value:function(I){if(La(I)==="filter"){var T=hu(I,"patternSourceCanvas"),F=T.patternSourceCanvas,K=H1(I),oe=hu(K,"originalAngle"),ie=oe.originalAngle;this.graphics.canvasImage.angle!==ie&&OK(I,this.graphics.canvasImage);var ke=I.originX,Oe=I.originY;ja().adjustOriginToCenter(I),I.width*=I.scaleX,I.height*=I.scaleY,I.rx*=I.scaleX,I.ry*=I.scaleY,I.scaleX=1,I.scaleY=1,AK(I),jO(I,{originX:ke,originY:Oe}),PK(F)}}},{key:"_fillFilterRePositionInGroupSelection",value:function(I,T){(T.scaleX!==1||T.scaleY!==1)&&T.addWithUpdate();var F=I.angle,K=I.left,oe=I.top;Se.fabric.util.addTransformToObject(I,T.calcTransformMatrix()),this._resetPositionFillFilter(I),I.set({angle:F,left:K,top:oe})}}]),x}(Xo);function GK(J){var L=YK();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function YK(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var Ww=10,l8={left:0,top:0,width:0,height:0,stroke:"#000000",strokeWidth:0,fill:"#000000",opacity:.4,evented:!1,selectable:!1,hoverCursor:"auto"},Uw={SIZE:.0045,MARGIN:.003,BORDER_RADIUS:.003},Zw={SIZE:.0066,MARGIN:.0044,BORDER_RADIUS:.003},W1=1,c8=st.ZOOM_CHANGED,XK=st.ADD_TEXT,KK=st.TEXT_EDITING,JK=st.OBJECT_MODIFIED,u8=st.KEY_DOWN,d8=st.KEY_UP,qK=st.HAND_STARTED,QK=st.HAND_STOPPED,eJ=function(J){vn(x,J);var L=GK(x);function x(M){var I,T,F,K,oe,ie,ke,Oe,Ze,Ge,Je,Ke,qe;U(this,x),qe=L.call(this,kt.ZOOM,M),qe.zoomArea=null,qe._startPoint=null,qe._centerPoints=[],qe.zoomLevel=W1,qe.zoomMode=yi.DEFAULT,qe._listeners={startZoom:ne()(I=qe._onMouseDownWithZoomMode).call(I,_n(qe)),moveZoom:ne()(T=qe._onMouseMoveWithZoomMode).call(T,_n(qe)),stopZoom:ne()(F=qe._onMouseUpWithZoomMode).call(F,_n(qe)),startHand:ne()(K=qe._onMouseDownWithHandMode).call(K,_n(qe)),moveHand:ne()(oe=qe._onMouseMoveWithHandMode).call(oe,_n(qe)),stopHand:ne()(ie=qe._onMouseUpWithHandMode).call(ie,_n(qe)),zoomChanged:ne()(ke=qe._changeScrollState).call(ke,_n(qe)),keydown:ne()(Oe=qe._startHandModeWithSpaceBar).call(Oe,_n(qe)),keyup:ne()(Ze=qe._endHandModeWithSpaceBar).call(Ze,_n(qe))};var vt=qe.getCanvas();return qe.aspectRatio=vt.width/vt.height,qe._verticalScroll=new Se.fabric.Rect(l8),qe._horizontalScroll=new Se.fabric.Rect(l8),vt.on(c8,qe._listeners.zoomChanged),qe.graphics.on(XK,ne()(Ge=qe._startTextEditingHandler).call(Ge,_n(qe))),qe.graphics.on(KK,ne()(Je=qe._startTextEditingHandler).call(Je,_n(qe))),qe.graphics.on(JK,ne()(Ke=qe._stopTextEditingHandler).call(Ke,_n(qe))),qe}return q(x,[{key:"attachKeyboardZoomEvents",value:function(){Se.fabric.util.addListener(document,u8,this._listeners.keydown),Se.fabric.util.addListener(document,d8,this._listeners.keyup)}},{key:"detachKeyboardZoomEvents",value:function(){Se.fabric.util.removeListener(document,u8,this._listeners.keydown),Se.fabric.util.removeListener(document,d8,this._listeners.keyup)}},{key:"_startTextEditingHandler",value:function(){this.isTextEditing=!0}},{key:"_stopTextEditingHandler",value:function(){this.isTextEditing=!1}},{key:"_startHandModeWithSpaceBar",value:function(I){this.withSpace||this.isTextEditing||I.keyCode===Zn.SPACE&&(this.withSpace=!0,this.startHandMode())}},{key:"_endHandModeWithSpaceBar",value:function(I){I.keyCode===Zn.SPACE&&(this.withSpace=!1,this.endHandMode())}},{key:"startZoomInMode",value:function(){if(!this.zoomArea){this.endHandMode(),this.zoomMode=yi.ZOOM;var I=this.getCanvas();this._changeObjectsEventedState(!1),this.zoomArea=new Se.fabric.Rect({left:0,top:0,width:.5,height:.5,stroke:"black",strokeWidth:1,fill:"transparent",hoverCursor:"zoom-in"}),I.discardActiveObject(),I.add(this.zoomArea),I.on("mouse:down",this._listeners.startZoom),I.selection=!1,I.defaultCursor="zoom-in"}}},{key:"endZoomInMode",value:function(){this.zoomMode=yi.DEFAULT;var I=this.getCanvas(),T=this._listeners,F=T.startZoom,K=T.moveZoom,oe=T.stopZoom;I.selection=!0,I.defaultCursor="auto",I.off({"mouse:down":F,"mouse:move":K,"mouse:up":oe}),this._changeObjectsEventedState(!0),I.remove(this.zoomArea),this.zoomArea=null}},{key:"start",value:function(){this.zoomArea=null,this._startPoint=null,this._startHandPoint=null}},{key:"end",value:function(){this.endZoomInMode(),this.endHandMode()}},{key:"startHandMode",value:function(){this.endZoomInMode(),this.zoomMode=yi.HAND;var I=this.getCanvas();this._changeObjectsEventedState(!1),I.discardActiveObject(),I.off("mouse:down",this._listeners.startHand),I.on("mouse:down",this._listeners.startHand),I.selection=!1,I.defaultCursor="grab",I.fire(qK)}},{key:"endHandMode",value:function(){this.zoomMode=yi.DEFAULT;var I=this.getCanvas();this._changeObjectsEventedState(!0),I.off("mouse:down",this._listeners.startHand),I.selection=!0,I.defaultCursor="auto",this._startHandPoint=null,I.fire(QK)}},{key:"_onMouseDownWithZoomMode",value:function(I){var T=I.target,F=I.e;if(!T){var K=this.getCanvas();K.selection=!1,this._startPoint=K.getPointer(F),this.zoomArea.set({width:0,height:0});var oe=this._listeners,ie=oe.moveZoom,ke=oe.stopZoom;K.on({"mouse:move":ie,"mouse:up":ke})}}},{key:"_onMouseMoveWithZoomMode",value:function(I){var T=I.e,F=this.getCanvas(),K=F.getPointer(T),oe=K.x,ie=K.y,ke=this.zoomArea,Oe=this._startPoint,Ze=Math.abs(oe-Oe.x),Ge=Math.abs(ie-Oe.y);Ze+Ge>Ww&&(F.remove(ke),ke.set(this._calcRectDimensionFromPoint(oe,ie)),F.add(ke))}},{key:"_calcRectDimensionFromPoint",value:function(I,T){var F=this.getCanvas(),K=F.getWidth(),oe=F.getHeight(),ie=this._startPoint,ke=ie.x,Oe=ie.y,Ze=Math.min,Ge=Ze(ke,I),Je=Ze(Oe,T),Ke=Qt(I,ke,K)-Ge,qe=Qt(T,Oe,oe)-Je;return{left:Ge,top:Je,width:Ke,height:qe}}},{key:"_onMouseUpWithZoomMode",value:function(){var I=this.zoomLevel,T=this.zoomArea,F=this._listeners,K=F.moveZoom,oe=F.stopZoom,ie=this.getCanvas(),ke=this._getCenterPoint(),Oe=ke.x,Ze=ke.y;this._isMaxZoomLevel()||(this._centerPoints.push({x:Oe,y:Ze,prevZoomLevel:I,zoomLevel:I+1}),I+=1,ie.zoomToPoint({x:Oe,y:Ze},I),this._fireZoomChanged(ie,I),this.zoomLevel=I),ie.off({"mouse:move":K,"mouse:up":oe}),ie.remove(T),this._startPoint=null}},{key:"_getCenterPoint",value:function(){var I=this.zoomArea,T=I.left,F=I.top,K=I.width,oe=I.height,ie=this._startPoint,ke=ie.x,Oe=ie.y,Ze=this.aspectRatio;return K<Ww&&oe<Ww?{x:ke,y:Oe}:K>oe?{x:T+Ze*oe/2,y:F+oe/2}:{x:T+K/2,y:F+K/Ze/2}}},{key:"zoom",value:function(I){for(var T=I.x,F=I.y,K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.zoomLevel,oe=this.getCanvas(),ie=this._centerPoints,ke=ie.length-1;ke>=0&&!(ie[ke].zoomLevel<K);ke-=1){var Oe=ie.pop(),Ze=Oe.x,Ge=Oe.y,Je=Oe.prevZoomLevel;oe.zoomToPoint({x:Ze,y:Ge},Je),this.zoomLevel=Je}oe.zoomToPoint({x:T,y:F},K),this._isDefaultZoomLevel(K)||this._centerPoints.push({x:T,y:F,zoomLevel:K,prevZoomLevel:this.zoomLevel}),this.zoomLevel=K,this._fireZoomChanged(oe,K)}},{key:"zoomOut",value:function(){var I=this._centerPoints;if(I.length){var T=this.getCanvas(),F=I.pop(),K=F.x,oe=F.y,ie=F.prevZoomLevel;this._isDefaultZoomLevel(ie)?T.setViewportTransform([1,0,0,1,0,0]):T.zoomToPoint({x:K,y:oe},ie),this.zoomLevel=ie,this._fireZoomChanged(T,this.zoomLevel)}}},{key:"resetZoom",value:function(){var I=this.getCanvas();I.setViewportTransform([1,0,0,1,0,0]),this.zoomLevel=W1,this._centerPoints=[],this._fireZoomChanged(I,this.zoomLevel)}},{key:"_isMaxZoomLevel",value:function(){return this.zoomLevel>=5}},{key:"_movePointOfZoom",value:function(I){var T=I.x,F=I.y,K=this._centerPoints;if(K.length){var oe=this.getCanvas(),ie=this.zoomLevel,ke=K.pop(),Oe=ke.x,Ze=ke.y,Ge=ke.prevZoomLevel,Je=Oe-T,Ke=Ze-F;oe.zoomToPoint({x:Oe,y:Ze},Ge),oe.zoomToPoint({x:Je,y:Ke},ie),K.push({x:Je,y:Ke,prevZoomLevel:Ge,zoomLevel:ie}),this._fireZoomChanged(oe,ie)}}},{key:"_onMouseDownWithHandMode",value:function(I){var T=I.target,F=I.e;if(!T){var K=this.getCanvas();if(!(this.zoomLevel<=W1)){K.selection=!1,this._startHandPoint=K.getPointer(F);var oe=this._listeners,ie=oe.moveHand,ke=oe.stopHand;K.on({"mouse:move":ie,"mouse:up":ke})}}}},{key:"_onMouseMoveWithHandMode",value:function(I){var T=I.e,F=this.getCanvas(),K=F.getPointer(T),oe=K.x,ie=K.y,ke=oe-this._startHandPoint.x,Oe=ie-this._startHandPoint.y;this._movePointOfZoom({x:ke,y:Oe})}},{key:"_onMouseUpWithHandMode",value:function(){var I=this.getCanvas(),T=this._listeners,F=T.moveHand,K=T.stopHand;I.off({"mouse:move":F,"mouse:up":K}),this._startHandPoint=null}},{key:"_changeScrollState",value:function(I){var T=I.viewport,F=I.zoomLevel,K=this.getCanvas();if(K.remove(this._verticalScroll),K.remove(this._horizontalScroll),!this._isDefaultZoomLevel(F)){var oe=K.width,ie=K.height,ke=T.tl,Oe=T.tr,Ze=T.bl,Ge=Oe.x-ke.x,Je=Ze.y-ke.y,Ke=Ge*Ge/oe,qe=Je*Zw.SIZE,vt=Qt(ke.x+ke.x/oe*Ge,ke.x,Oe.x-Ke),qt=Je*Zw.MARGIN,tn=Je*Zw.BORDER_RADIUS;this._horizontalScroll.set({left:vt,top:Ze.y-qe-qt,width:Ke,height:qe,rx:tn,ry:tn});var on=Ge*Uw.SIZE,Lt=Je*Je/ie,Rn=Qt(ke.y+ke.y/ie*Je,Oe.y,Ze.y-Lt),wr=Ge*Uw.MARGIN,ho=Ge*Uw.BORDER_RADIUS;this._verticalScroll.set({left:Oe.x-on-wr,top:Rn,width:on,height:Lt,rx:ho,ry:ho}),this._addScrollBar()}}},{key:"_changeObjectsEventedState",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,T=this.getCanvas();T.forEachObject(function(F){F.evented=I})}},{key:"_addScrollBar",value:function(){var I=this,T=this.getCanvas();T.add(this._horizontalScroll),T.add(this._verticalScroll),this.scrollBarTid&&clearTimeout(this.scrollBarTid),this.scrollBarTid=f()(function(){T.remove(I._horizontalScroll),T.remove(I._verticalScroll)},3e3)}},{key:"_isDefaultZoomLevel",value:function(I){return I===W1}},{key:"_fireZoomChanged",value:function(I,T){I.fire(c8,{viewport:I.calcViewportBoundaries(),zoomLevel:T})}},{key:"mode",get:function(){return this.zoomMode}}]),x}(Xo),tJ=eJ,f8=Da.create,h8=Da.types,nJ=function(){function J(L){U(this,J),this.name=L}return q(J,[{key:"getName",value:function(){return this.name}},{key:"start",value:function(){throw new Error(f8(h8.UN_IMPLEMENTATION,"start"))}},{key:"end",value:function(){throw new Error(f8(h8.UN_IMPLEMENTATION,"stop"))}}]),J}(),Vl=nJ;function iJ(J){var L=rJ();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function rJ(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var oJ=function(J){vn(x,J);var L=iJ(x);function x(){return U(this,x),L.call(this,bn.CROPPER)}return q(x,[{key:"start",value:function(I){var T=I.getComponent(kt.CROPPER);T.start()}},{key:"end",value:function(I){var T=I.getComponent(kt.CROPPER);T.end()}}]),x}(Vl),sJ=oJ;function aJ(J){var L=lJ();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function lJ(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var cJ=function(J){vn(x,J);var L=aJ(x);function x(){return U(this,x),L.call(this,bn.FREE_DRAWING)}return q(x,[{key:"start",value:function(I,T){var F=I.getComponent(kt.FREE_DRAWING);F.start(T)}},{key:"end",value:function(I){var T=I.getComponent(kt.FREE_DRAWING);T.end()}}]),x}(Vl),uJ=cJ;function dJ(J){var L=fJ();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function fJ(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var hJ=function(J){vn(x,J);var L=dJ(x);function x(){return U(this,x),L.call(this,bn.LINE_DRAWING)}return q(x,[{key:"start",value:function(I,T){var F=I.getComponent(kt.LINE);F.start(T)}},{key:"end",value:function(I){var T=I.getComponent(kt.LINE);T.end()}}]),x}(Vl),pJ=hJ;function mJ(J){var L=vJ();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function vJ(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var gJ=function(J){vn(x,J);var L=mJ(x);function x(){return U(this,x),L.call(this,bn.SHAPE)}return q(x,[{key:"start",value:function(I){var T=I.getComponent(kt.SHAPE);T.start()}},{key:"end",value:function(I){var T=I.getComponent(kt.SHAPE);T.end()}}]),x}(Vl),yJ=gJ;function bJ(J){var L=kJ();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function kJ(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var CJ=function(J){vn(x,J);var L=bJ(x);function x(){return U(this,x),L.call(this,bn.TEXT)}return q(x,[{key:"start",value:function(I){var T=I.getComponent(kt.TEXT);T.start()}},{key:"end",value:function(I){var T=I.getComponent(kt.TEXT);T.end()}}]),x}(Vl),SJ=CJ;function wJ(J){var L=_J();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function _J(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var IJ=function(J){vn(x,J);var L=wJ(x);function x(){return U(this,x),L.call(this,bn.ICON)}return q(x,[{key:"start",value:function(I){var T=I.getComponent(kt.ICON);T.start()}},{key:"end",value:function(I){var T=I.getComponent(kt.ICON);T.end()}}]),x}(Vl),xJ=IJ;function $J(J){var L=AJ();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function AJ(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var EJ=function(J){vn(x,J);var L=$J(x);function x(){return U(this,x),L.call(this,bn.ZOOM)}return q(x,[{key:"start",value:function(I){var T=I.getComponent(kt.ZOOM);T.start()}},{key:"end",value:function(I){var T=I.getComponent(kt.ZOOM);T.end()}}]),x}(Vl),MJ=EJ,p8=null;function m8(J){p8=J}function TJ(){return p8}function Gw(J,L){var x;if(J.type==="activeSelection"){var M;x=Ot()(M=J.getObjects()).call(M,function(I){var T=I.angle,F=I.left,K=I.top,oe=I.scaleX,ie=I.scaleY,ke=I.width,Oe=I.height;Se.fabric.util.addTransformToObject(I,J.calcTransformMatrix());var Ze=L(I);return I.set({angle:T,left:F,top:K,width:ke,height:Oe,scaleX:oe,scaleY:ie}),Ze})}else x=[L(J)];return x}function Yw(J,L,x){return x?{id:J,width:L.width,height:L.height,top:L.top,left:L.left,angle:L.angle,scaleX:L.scaleX,scaleY:L.scaleY}:pe()({id:J},L)}function PJ(J){var L=OJ();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function OJ(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var LJ=function(J){vn(x,J);var L=PJ(x);function x(M){var I;return U(this,x),I=L.call(this,kt.RESIZE,M),I._dimensions=null,I._originalDimensions=null,I}return q(x,[{key:"getCurrentDimensions",value:function(){var I=this.getCanvasImage();if(!this._dimensions&&I){var T=I.width,F=I.height;this._dimensions={width:T,height:F}}return this._dimensions}},{key:"getOriginalDimensions",value:function(){return this._originalDimensions}},{key:"setOriginalDimensions",value:function(I){this._originalDimensions=I}},{key:"resize",value:function(I){var T=this.getCanvasImage(),F=T.width,K=T.height,oe=T.scaleX,ie=T.scaleY,ke=I.width,Oe=I.height,Ze={scaleX:ke?ke/F:oe,scaleY:Oe?Oe/K:ie};return(oe!==Ze.scaleX||ie!==Ze.scaleY)&&(T.set(Ze).setCoords(),this._dimensions={width:T.width*T.scaleX,height:T.height*T.scaleY}),this.adjustCanvasDimensionBase(),$e().resolve()}},{key:"start",value:function(){var I=this.getCurrentDimensions();this.setOriginalDimensions(I)}},{key:"end",value:function(){}}]),x}(Xo),DJ=LJ;function NJ(J){var L=jJ();return function(){var M=Xt(J),I;if(L){var T=Xt(this).constructor;I=ct()(M,arguments,T)}else I=M.apply(this,arguments);return Mn(this,I)}}function jJ(){if(typeof Reflect>"u"||!ct()||ct().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ct()(Boolean,[],function(){})),!0}catch{return!1}}var zJ=function(J){vn(x,J);var L=NJ(x);function x(){return U(this,x),L.call(this,bn.RESIZE)}return q(x,[{key:"start",value:function(I){var T=I.getComponent(kt.RESIZE);T.start()}},{key:"end",value:function(I){var T=I.getComponent(kt.RESIZE);T.end()}}]),x}(Vl),RJ=zJ,BJ=1e3,FJ=800,U1=10,VJ={cssOnly:!0},HJ={backstoreOnly:!0},v8=function(){function J(L){var x,M,I,T,F,K,oe,ie,ke,Oe,Ze,Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Je=Ge.cssMaxWidth,Ke=Ge.cssMaxHeight;U(this,J),this.canvasImage=null,this.cssMaxWidth=Je||BJ,this.cssMaxHeight=Ke||FJ,this.cropSelectionStyle={},this.targetObjectForCopyPaste=null,this.imageName="",this._objects={},this._canvas=null,this._drawingMode=bn.NORMAL,this._drawingModeMap={},this._componentMap={},this._handler={onMouseDown:ne()(x=this._onMouseDown).call(x,this),onObjectAdded:ne()(M=this._onObjectAdded).call(M,this),onObjectRemoved:ne()(I=this._onObjectRemoved).call(I,this),onObjectMoved:ne()(T=this._onObjectMoved).call(T,this),onObjectScaled:ne()(F=this._onObjectScaled).call(F,this),onObjectModified:ne()(K=this._onObjectModified).call(K,this),onObjectRotated:ne()(oe=this._onObjectRotated).call(oe,this),onObjectSelected:ne()(ie=this._onObjectSelected).call(ie,this),onPathCreated:ne()(ke=this._onPathCreated).call(ke,this),onSelectionCleared:ne()(Oe=this._onSelectionCleared).call(Oe,this),onSelectionCreated:ne()(Ze=this._onSelectionCreated).call(Ze,this)},this._setObjectCachingToFalse(),this._setCanvasElement(L),this._createDrawingModeInstances(),this._createComponents(),this._attachCanvasEvents(),this._attachZoomEvents()}return q(J,[{key:"destroy",value:function(){var x=this._canvas.wrapperEl;this._canvas.clear(),x.parentNode.removeChild(x),this._detachZoomEvents()}},{key:"_attachZoomEvents",value:function(){var x=this.getComponent(kt.ZOOM);x.attachKeyboardZoomEvents()}},{key:"_detachZoomEvents",value:function(){var x=this.getComponent(kt.ZOOM);x.detachKeyboardZoomEvents()}},{key:"deactivateAll",value:function(){return this._canvas.discardActiveObject(),this}},{key:"renderAll",value:function(){return this._canvas.renderAll(),this}},{key:"add",value:function(x){var M,I=[];JO()(x)?I=x:I.push(x),(M=this._canvas).add.apply(M,V(I))}},{key:"contains",value:function(x){return this._canvas.contains(x)}},{key:"getObjects",value:function(){var x;return y()(x=this._canvas.getObjects()).call(x)}},{key:"getObject",value:function(x){return this._objects[x]}},{key:"remove",value:function(x){this._canvas.remove(x)}},{key:"removeAll",value:function(x){var M,I=this._canvas,T=y()(M=I.getObjects()).call(M);return I.remove.apply(I,V(this._canvas.getObjects())),x&&I.clear(),T}},{key:"removeObjectById",value:function(x){var M=[],I=this._canvas,T=this.getObject(x),F=T&&T.isType("group")&&!T.isEmpty();return F?(I.discardActiveObject(),T.forEachObject(function(K){M.push(K),I.remove(K)})):I.contains(T)&&(M.push(T),I.remove(T)),M}},{key:"getObjectId",value:function(x){var M=null;for(M in this._objects)if(this._objects.hasOwnProperty(M)&&x===this._objects[M])return M;return null}},{key:"getActiveObject",value:function(){return this._canvas._activeObject}},{key:"getActiveObjectIdForRemove",value:function(){var x=this.getActiveObject(),M=x.type,I=x.left,T=x.top,F=M==="activeSelection";if(F){var K=new Se.fabric.Group(V(x.getObjects()),{left:I,top:T});return this._addFabricObject(K)}return this.getObjectId(x)}},{key:"isReadyRemoveObject",value:function(){var x=this.getActiveObject();return x&&!x.isEditing}},{key:"getActiveObjects",value:function(){var x=this._canvas._activeObject;return x&&x.type==="activeSelection"?x:null}},{key:"getActiveSelectionFromObjects",value:function(x){var M=this.getCanvas();return new Se.fabric.ActiveSelection(x,{canvas:M})}},{key:"setActiveObject",value:function(x){this._canvas.setActiveObject(x)}},{key:"setCropSelectionStyle",value:function(x){this.cropSelectionStyle=x}},{key:"getComponent",value:function(x){return this._componentMap[x]}},{key:"getDrawingMode",value:function(){return this._drawingMode}},{key:"startDrawingMode",value:function(x,M){if(this._isSameDrawingMode(x))return!0;this.stopDrawingMode();var I=this._getDrawingModeInstance(x);return I&&I.start&&(I.start(this,M),this._drawingMode=x),!!I}},{key:"stopDrawingMode",value:function(){if(!this._isSameDrawingMode(bn.NORMAL)){var x=this._getDrawingModeInstance(this.getDrawingMode());x&&x.end&&x.end(this),this._drawingMode=bn.NORMAL}}},{key:"zoom",value:function(x,M){var I=x.x,T=x.y,F=this.getComponent(kt.ZOOM);F.zoom({x:I,y:T},M)}},{key:"getZoomMode",value:function(){var x=this.getComponent(kt.ZOOM);return x.mode}},{key:"startZoomInMode",value:function(){var x=this.getComponent(kt.ZOOM);x.startZoomInMode()}},{key:"endZoomInMode",value:function(){var x=this.getComponent(kt.ZOOM);x.endZoomInMode()}},{key:"zoomOut",value:function(){var x=this.getComponent(kt.ZOOM);x.zoomOut()}},{key:"startHandMode",value:function(){var x=this.getComponent(kt.ZOOM);x.startHandMode()}},{key:"endHandMode",value:function(){var x=this.getComponent(kt.ZOOM);x.endHandMode()}},{key:"resetZoom",value:function(){var x=this.getComponent(kt.ZOOM);x.resetZoom()}},{key:"toDataURL",value:function(x){var M=this.getComponent(kt.CROPPER);M.changeVisibility(!1);var I=this._canvas&&this._canvas.toDataURL(x);return M.changeVisibility(!0),I}},{key:"setCanvasImage",value:function(x,M){M&&mt(M),this.imageName=x,this.canvasImage=M}},{key:"setCssMaxDimension",value:function(x){this.cssMaxWidth=x.width||this.cssMaxWidth,this.cssMaxHeight=x.height||this.cssMaxHeight}},{key:"adjustCanvasDimension",value:function(){this.adjustCanvasDimensionBase(this.canvasImage.scale(1))}},{key:"adjustCanvasDimensionBase",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;x||(x=this.canvasImage);var M=x.getBoundingRect(),I=M.width,T=M.height,F=this._calcMaxDimension(I,T);this.setCanvasCssDimension({width:"100%",height:"100%","max-width":"".concat(F.width,"px"),"max-height":"".concat(F.height,"px")}),this.setCanvasBackstoreDimension({width:I,height:T}),this._canvas.centerObject(x)}},{key:"setCanvasCssDimension",value:function(x){this._canvas.setDimensions(x,VJ)}},{key:"setCanvasBackstoreDimension",value:function(x){this._canvas.setDimensions(x,HJ)}},{key:"setImageProperties",value:function(x,M){var I=this.canvasImage;I&&(I.set(x).setCoords(),M&&this._canvas.renderAll())}},{key:"getCanvasElement",value:function(){return this._canvas.getElement()}},{key:"getCanvas",value:function(){return this._canvas}},{key:"getCanvasImage",value:function(){return this.canvasImage}},{key:"getImageName",value:function(){return this.imageName}},{key:"addImageObject",value:function(x){var M,I=this,T=ne()(M=this._callbackAfterLoadingImageObject).call(M,this);return new($e())(function(F){Se.fabric.Image.fromURL(x,function(K){T(K),F(I.createObjectProperties(K))},{crossOrigin:"Anonymous"})})}},{key:"getCenter",value:function(){return this._canvas.getCenter()}},{key:"getCropzoneRect",value:function(){return this.getComponent(kt.CROPPER).getCropzoneRect()}},{key:"setCropzoneRect",value:function(x){this.getComponent(kt.CROPPER).setCropzoneRect(x)}},{key:"getCroppedImageData",value:function(x){return this.getComponent(kt.CROPPER).getCroppedImageData(x)}},{key:"setBrush",value:function(x){var M=this._drawingMode,I=kt.FREE_DRAWING;M===bn.LINE_DRAWING&&(I=kt.LINE),this.getComponent(I).setBrush(x)}},{key:"setDrawingShape",value:function(x,M){this.getComponent(kt.SHAPE).setStates(x,M)}},{key:"setIconStyle",value:function(x,M){this.getComponent(kt.ICON).setStates(x,M)}},{key:"registerPaths",value:function(x){this.getComponent(kt.ICON).registerPaths(x)}},{key:"changeCursor",value:function(x){var M=this.getCanvas();M.defaultCursor=x,M.renderAll()}},{key:"hasFilter",value:function(x){return this.getComponent(kt.FILTER).hasFilter(x)}},{key:"setSelectionStyle",value:function(x){pe()(Vi.SELECTION_STYLE,x)}},{key:"setObjectProperties",value:function(x,M){var I=this.getObject(x),T=pe()({},M);return I.set(T),I.setCoords(),this.getCanvas().renderAll(),T}},{key:"getObjectProperties",value:function(x,M){var I=this.getObject(x),T={};return le()(M)?T[M]=I[M]:JO()(M)?hm()(M,function(F){T[F]=I[F]}):B1()(M,function(F,K){T[K]=I[K]}),T}},{key:"getObjectPosition",value:function(x,M,I){var T=this.getObject(x);return T?T.getPointByOrigin(M,I):null}},{key:"setObjectPosition",value:function(x,M){var I=this.getObject(x),T=M.x,F=M.y,K=M.originX,oe=M.originY;if(!I)return!1;var ie=I.getPointByOrigin(K,oe),ke=I.getPointByOrigin("center","center"),Oe=ke.x-ie.x,Ze=ke.y-ie.y;return I.set({left:T+Oe,top:F+Ze}),I.setCoords(),!0}},{key:"getCanvasSize",value:function(){var x=this.getCanvasImage();return{width:x?x.width:0,height:x?x.height:0}}},{key:"createStaticCanvas",value:function(){var x=new Se.fabric.StaticCanvas;return x.set({enableRetinaScaling:!1}),x}},{key:"_getDrawingModeInstance",value:function(x){return this._drawingModeMap[x]}},{key:"_setObjectCachingToFalse",value:function(){Se.fabric.Object.prototype.objectCaching=!1}},{key:"_setCanvasElement",value:function(x){var M,I;x.nodeType?M=x:M=document.querySelector(x),M.nodeName.toUpperCase()!=="CANVAS"&&(I=document.createElement("canvas"),M.appendChild(I)),this._canvas=new Se.fabric.Canvas(I,{containerClass:"tui-image-editor-canvas-container",enableRetinaScaling:!1})}},{key:"_createDrawingModeInstances",value:function(){this._register(this._drawingModeMap,new sJ),this._register(this._drawingModeMap,new uJ),this._register(this._drawingModeMap,new pJ),this._register(this._drawingModeMap,new yJ),this._register(this._drawingModeMap,new SJ),this._register(this._drawingModeMap,new xJ),this._register(this._drawingModeMap,new MJ),this._register(this._drawingModeMap,new RJ)}},{key:"_createComponents",value:function(){this._register(this._componentMap,new yX(this)),this._register(this._componentMap,new DX(this)),this._register(this._componentMap,new RX(this)),this._register(this._componentMap,new HX(this)),this._register(this._componentMap,new GX(this)),this._register(this._componentMap,new tK(this)),this._register(this._componentMap,new lK(this)),this._register(this._componentMap,new hK(this)),this._register(this._componentMap,new IK(this)),this._register(this._componentMap,new ZK(this)),this._register(this._componentMap,new tJ(this)),this._register(this._componentMap,new DJ(this))}},{key:"_register",value:function(x,M){x[M.getName()]=M}},{key:"_isSameDrawingMode",value:function(x){return this.getDrawingMode()===x}},{key:"_calcMaxDimension",value:function(x,M){var I=this.cssMaxWidth/x,T=this.cssMaxHeight/M,F=Math.min(x,this.cssMaxWidth),K=Math.min(M,this.cssMaxHeight);return I<1&&I<T?(F=x*I,K=M*I):T<1&&T<I&&(F=x*T,K=M*T),{width:Math.floor(F),height:Math.floor(K)}}},{key:"_callbackAfterLoadingImageObject",value:function(x){var M=this.getCanvasImage().getCenterPoint();x.set(Vi.SELECTION_STYLE),x.set({left:M.x,top:M.y,crossOrigin:"Anonymous"}),this.getCanvas().add(x).setActiveObject(x)}},{key:"_attachCanvasEvents",value:function(){var x=this._canvas,M=this._handler;x.on({"mouse:down":M.onMouseDown,"object:added":M.onObjectAdded,"object:removed":M.onObjectRemoved,"object:moving":M.onObjectMoved,"object:scaling":M.onObjectScaled,"object:modified":M.onObjectModified,"object:rotating":M.onObjectRotated,"path:created":M.onPathCreated,"selection:cleared":M.onSelectionCleared,"selection:created":M.onSelectionCreated,"selection:updated":M.onObjectSelected})}},{key:"_onMouseDown",value:function(x){var M=this,I=x.e,T=x.target,F=this._canvas.getPointer(I);if(T){var K=T.type,oe=Gw(T,function(ie){return Yw(M.getObjectId(ie),ie,K==="activeSelection")});m8(oe)}this.fire(st.MOUSE_DOWN,I,F)}},{key:"_onObjectAdded",value:function(x){var M=x.target;M.isType("cropzone")||this._addFabricObject(M)}},{key:"_onObjectRemoved",value:function(x){var M=x.target;this._removeFabricObject(mt(M))}},{key:"_onObjectMoved",value:function(x){var M=this;this._lazyFire(st.OBJECT_MOVED,function(I){return M.createObjectProperties(I)},x.target)}},{key:"_onObjectScaled",value:function(x){var M=this;this._lazyFire(st.OBJECT_SCALED,function(I){return M.createObjectProperties(I)},x.target)}},{key:"_onObjectModified",value:function(x){var M=x.target;if(M.type==="activeSelection"){var I=M.getObjects();Ue()(I).call(I,function(T){return T.fire("modifiedInGroup",M)})}this.fire(st.OBJECT_MODIFIED,M,this.getObjectId(M))}},{key:"_onObjectRotated",value:function(x){var M=this;this._lazyFire(st.OBJECT_ROTATED,function(I){return M.createObjectProperties(I)},x.target)}},{key:"_lazyFire",value:function(x,M,I){var T=this,F=I&&I.canvasEventDelegation,K=F?I.canvasEventDelegation(x):"none";K==="unregistered"&&I.canvasEventRegister(x,function(oe){T.fire(x,M(oe))}),K==="none"&&this.fire(x,M(I))}},{key:"_onObjectSelected",value:function(x){var M=x.target,I=this.createObjectProperties(M);this.fire(st.OBJECT_ACTIVATED,I)}},{key:"_onPathCreated",value:function(x){var M=x.path.getCenterPoint(),I=M.x,T=M.y;x.path.set(pe()({left:I,top:T},Vi.SELECTION_STYLE));var F=this.createObjectProperties(x.path);this.fire(st.ADD_OBJECT,F)}},{key:"_onSelectionCleared",value:function(){this.fire(st.SELECTION_CLEARED)}},{key:"_onSelectionCreated",value:function(x){var M=x.target,I=this.createObjectProperties(M);this.fire(st.OBJECT_ACTIVATED,I),this.fire(st.SELECTION_CREATED,x.target)}},{key:"discardSelection",value:function(){this._canvas.discardActiveObject(),this._canvas.renderAll()}},{key:"changeSelectableAll",value:function(x){this._canvas.forEachObject(function(M){M.selectable=x,M.hoverCursor=x?"move":"crosshair"})}},{key:"createObjectProperties",value:function(x){var M=["left","top","width","height","fill","stroke","strokeWidth","opacity","angle"],I={id:mt(x),type:x.type};if(pe()(I,Ln(x,M)),Bl(["i-text","text"],x.type))pe()(I,this._createTextProperties(x,I));else if(Bl(["rect","triangle","circle"],x.type)){var T=this.getComponent(kt.SHAPE);pe()(I,{fill:T.makeFillPropertyForUserEvent(x)})}return I}},{key:"_createTextProperties",value:function(x){var M=["text","fontFamily","fontSize","fontStyle","textAlign","textDecoration","fontWeight"],I={};return pe()(I,Ln(x,M)),I}},{key:"_addFabricObject",value:function(x){var M=mt(x);return this._objects[M]=x,M}},{key:"_removeFabricObject",value:function(x){delete this._objects[x]}},{key:"resetTargetObjectForCopyPaste",value:function(){var x=this.getActiveObject();x&&(this.targetObjectForCopyPaste=x)}},{key:"pasteObject",value:function(){var x=this;if(!this.targetObjectForCopyPaste)return $e().resolve([]);var M=this.targetObjectForCopyPaste,I=M.type==="activeSelection",T=I?M.getObjects():[M],F=null;return this.discardSelection(),this._cloneObject(T).then(function(K){if(K.length>1)F=x.getActiveSelectionFromObjects(K);else{var oe=Ae(K,1);F=oe[0]}x.targetObjectForCopyPaste=F,x.setActiveObject(F)})}},{key:"_cloneObject",value:function(x){var M=this,I=Ot()(x).call(x,function(T){return M._cloneObjectItem(T)});return $e().all(I)}},{key:"_cloneObjectItem",value:function(x){var M=this;return this._copyFabricObjectForPaste(x).then(function(I){var T=M.createObjectProperties(I);return M.add(I),M.fire(st.ADD_OBJECT,T),I})}},{key:"_copyFabricObjectForPaste",value:function(x){var M=this,I=function(F,K){return K?F-U1:F+U1};return this._copyFabricObject(x).then(function(T){var F=T.left,K=T.top,oe=T.width,ie=T.height,ke=M.getCanvasSize(),Oe=ke.width,Ze=ke.height,Ge=F+oe/2,Je=K+ie/2;return T.set(pe()({left:I(F,Ge+U1>Oe),top:I(K,Je+U1>Ze)},Vi.SELECTION_STYLE)),T})}},{key:"_copyFabricObject",value:function(x){var M=this;return new($e())(function(I){x.clone(function(T){var F=M.getComponent(kt.SHAPE);lm(T)&&F.processForCopiedObject(T,x),I(T)})})}},{key:"getCurrentDimensions",value:function(){var x=this.getComponent(kt.RESIZE);return x.getCurrentDimensions()}},{key:"getOriginalDimensions",value:function(){var x=this.getComponent(kt.RESIZE);return x.getOriginalDimensions()}},{key:"setOriginalDimensions",value:function(x){var M=this.getComponent(kt.RESIZE);M.setOriginalDimensions(x)}},{key:"resize",value:function(x){var M=this.getComponent(kt.RESIZE);return M.resize(x)}}]),J}();xe().mixin(v8);var WJ=v8,UJ=st.MOUSE_DOWN,ZJ=st.OBJECT_MOVED,GJ=st.OBJECT_SCALED,YJ=st.OBJECT_ACTIVATED,XJ=st.OBJECT_ROTATED,g8=st.OBJECT_ADDED,KJ=st.OBJECT_MODIFIED,JJ=st.ADD_TEXT,qJ=st.ADD_OBJECT,QJ=st.TEXT_EDITING,eq=st.TEXT_CHANGED,tq=st.ICON_CREATE_RESIZE,nq=st.ICON_CREATE_END,y8=st.SELECTION_CLEARED,b8=st.SELECTION_CREATED,iq=st.ADD_OBJECT_AFTER,Xw=function(){function J(L,x){var M,I,T,F,K,oe,ie,ke,Oe,Ze,Ge,Je,Ke,qe,vt,qt;if(U(this,J),x=pe()({includeUI:!1,usageStatistics:!0},x),this.mode=null,this.activeObjectId=null,x.includeUI){var tn=x.includeUI;tn.usageStatistics=x.usageStatistics,this.ui=new lX(L,tn,this.getActions()),x=this.ui.setUiDefaultSelectionStyle(x)}this._invoker=new R1,this._graphics=new WJ(this.ui?this.ui.getEditorArea():L,{cssMaxWidth:x.cssMaxWidth,cssMaxHeight:x.cssMaxHeight}),this._handlers={keydown:ne()(M=this._onKeyDown).call(M,this),mousedown:ne()(I=this._onMouseDown).call(I,this),objectActivated:ne()(T=this._onObjectActivated).call(T,this),objectMoved:ne()(F=this._onObjectMoved).call(F,this),objectScaled:ne()(K=this._onObjectScaled).call(K,this),objectRotated:ne()(oe=this._onObjectRotated).call(oe,this),objectAdded:ne()(ie=this._onObjectAdded).call(ie,this),objectModified:ne()(ke=this._onObjectModified).call(ke,this),createdPath:this._onCreatedPath,addText:ne()(Oe=this._onAddText).call(Oe,this),addObject:ne()(Ze=this._onAddObject).call(Ze,this),textEditing:ne()(Ge=this._onTextEditing).call(Ge,this),textChanged:ne()(Je=this._onTextChanged).call(Je,this),iconCreateResize:ne()(Ke=this._onIconCreateResize).call(Ke,this),iconCreateEnd:ne()(qe=this._onIconCreateEnd).call(qe,this),selectionCleared:ne()(vt=this._selectionCleared).call(vt,this),selectionCreated:ne()(qt=this._selectionCreated).call(qt,this)},this._attachInvokerEvents(),this._attachGraphicsEvents(),this._attachDomEvents(),this._setSelectionStyle(x.selectionStyle,{applyCropSelectionStyle:x.applyCropSelectionStyle,applyGroupSelectionStyle:x.applyGroupSelectionStyle}),x.usageStatistics&&Ci(),this.ui&&(this.ui.initCanvas(),this.setReAction(),this._attachColorPickerInputBoxEvents()),Se.fabric.enableGLFiltering=!1}return q(J,[{key:"_attachColorPickerInputBoxEvents",value:function(){var x=this;this.ui.on(st.INPUT_BOX_EDITING_STARTED,function(){x.isColorPickerInputBoxEditing=!0}),this.ui.on(st.INPUT_BOX_EDITING_STOPPED,function(){x.isColorPickerInputBoxEditing=!1})}},{key:"_detachColorPickerInputBoxEvents",value:function(){this.ui.off(st.INPUT_BOX_EDITING_STARTED),this.ui.off(st.INPUT_BOX_EDITING_STOPPED)}},{key:"_setSelectionStyle",value:function(x,M){var I=M.applyCropSelectionStyle,T=M.applyGroupSelectionStyle;x&&this._graphics.setSelectionStyle(x),I&&this._graphics.setCropSelectionStyle(x),T&&this.on("selectionCreated",function(F){F.type==="activeSelection"&&F.set(x)})}},{key:"_attachInvokerEvents",value:function(){var x,M,I=this,T=st.UNDO_STACK_CHANGED,F=st.REDO_STACK_CHANGED,K=st.EXECUTE_COMMAND,oe=st.AFTER_UNDO,ie=st.AFTER_REDO,ke=st.HAND_STARTED,Oe=st.HAND_STOPPED;if(this._invoker.on(T,ne()(x=this.fire).call(x,this,T)),this._invoker.on(F,ne()(M=this.fire).call(M,this,F)),this.ui){var Ze=this._graphics.getCanvas();this._invoker.on(K,function(Ge){return I.ui.fire(K,Ge)}),this._invoker.on(oe,function(Ge){return I.ui.fire(oe,Ge)}),this._invoker.on(ie,function(Ge){return I.ui.fire(ie,Ge)}),Ze.on(ke,function(){return I.ui.fire(ke)}),Ze.on(Oe,function(){return I.ui.fire(Oe)})}}},{key:"_attachGraphicsEvents",value:function(){var x;this._graphics.on((x={},H(x,UJ,this._handlers.mousedown),H(x,ZJ,this._handlers.objectMoved),H(x,GJ,this._handlers.objectScaled),H(x,XJ,this._handlers.objectRotated),H(x,YJ,this._handlers.objectActivated),H(x,g8,this._handlers.objectAdded),H(x,KJ,this._handlers.objectModified),H(x,JJ,this._handlers.addText),H(x,qJ,this._handlers.addObject),H(x,QJ,this._handlers.textEditing),H(x,eq,this._handlers.textChanged),H(x,tq,this._handlers.iconCreateResize),H(x,nq,this._handlers.iconCreateEnd),H(x,y8,this._handlers.selectionCleared),H(x,b8,this._handlers.selectionCreated),x))}},{key:"_attachDomEvents",value:function(){document.addEventListener("keydown",this._handlers.keydown)}},{key:"_detachDomEvents",value:function(){document.removeEventListener("keydown",this._handlers.keydown)}},{key:"_onKeyDown",value:function(x){var M=x.ctrlKey,I=x.keyCode,T=x.metaKey,F=M||T;F&&(I===Zn.C?this._graphics.resetTargetObjectForCopyPaste():I===Zn.V?(this._graphics.pasteObject(),this.clearRedoStack()):I===Zn.Z?this.undo().catch(function(){}):I===Zn.Y&&this.redo().catch(function(){}));var K=I===Zn.BACKSPACE||I===Zn.DEL,oe=this._graphics.isReadyRemoveObject();!this.isColorPickerInputBoxEditing&&oe&&K&&(x.preventDefault(),this.removeActiveObject())}},{key:"removeActiveObject",value:function(){var x=this._graphics.getActiveObjectIdForRemove();this.removeObject(x)}},{key:"_onMouseDown",value:function(x,M){this.fire(st.MOUSE_DOWN,x,M)}},{key:"_pushAddObjectCommand",value:function(x){var M=ri.create(Tt.ADD_OBJECT,this._graphics,x);this._invoker.pushUndoStack(M)}},{key:"_pushModifyObjectCommand",value:function(x){var M=this,I=x.type,T=Gw(x,function(K){return Yw(M._graphics.getObjectId(K),K,I==="activeSelection")}),F=ri.create(Tt.CHANGE_SELECTION,this._graphics,T);F.execute(this._graphics,T),this._invoker.pushUndoStack(F)}},{key:"_onObjectActivated",value:function(x){this.fire(st.OBJECT_ACTIVATED,x)}},{key:"_onObjectMoved",value:function(x){this.fire(st.OBJECT_MOVED,x)}},{key:"_onObjectScaled",value:function(x){this.fire(st.OBJECT_SCALED,x)}},{key:"_onObjectRotated",value:function(x){this.fire(st.OBJECT_ROTATED,x)}},{key:"getDrawingMode",value:function(){return this._graphics.getDrawingMode()}},{key:"clearObjects",value:function(){return this.execute(Tt.CLEAR_OBJECTS)}},{key:"deactivateAll",value:function(){this._graphics.deactivateAll(),this._graphics.renderAll()}},{key:"discardSelection",value:function(){this._graphics.discardSelection()}},{key:"changeSelectableAll",value:function(x){this._graphics.changeSelectableAll(x)}},{key:"_initHistory",value:function(){this.ui&&this.ui.initHistory()}},{key:"_clearHistory",value:function(){this.ui&&this.ui.clearHistory()}},{key:"execute",value:function(x){for(var M,I,T,F=arguments.length,K=new Array(F>1?F-1:0),oe=1;oe<F;oe++)K[oe-1]=arguments[oe];var ie=te()(M=[this._graphics]).call(M,K);return(I=this._invoker).execute.apply(I,te()(T=[x]).call(T,V(ie)))}},{key:"executeSilent",value:function(x){for(var M,I,T,F=arguments.length,K=new Array(F>1?F-1:0),oe=1;oe<F;oe++)K[oe-1]=arguments[oe];var ie=te()(M=[this._graphics]).call(M,K);return(I=this._invoker).executeSilent.apply(I,te()(T=[x]).call(T,V(ie)))}},{key:"undo",value:function(){for(var x=this,M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,I=$e().resolve(),T=0;T<M;T+=1)I=I.then(function(){return x._invoker.undo()});return I}},{key:"redo",value:function(){for(var x=this,M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,I=$e().resolve(),T=0;T<M;T+=1)I=I.then(function(){return x._invoker.redo()});return I}},{key:"zoom",value:function(x){var M=x.x,I=x.y,T=x.zoomLevel;this._graphics.zoom({x:M,y:I},T)}},{key:"resetZoom",value:function(){this._graphics.resetZoom()}},{key:"loadImageFromFile",value:function(x,M){if(!x)return $e().reject(kn.invalidParameters);var I=ge().createObjectURL(x);return M=M||x.name,this.loadImageFromURL(I,M).then(function(T){return ge().revokeObjectURL(x),T})}},{key:"loadImageFromURL",value:function(x,M){return!M||!x?$e().reject(kn.invalidParameters):this.execute(Tt.LOAD_IMAGE,M,x)}},{key:"addImageObject",value:function(x){return x?this.execute(Tt.ADD_IMAGE_OBJECT,x):$e().reject(kn.invalidParameters)}},{key:"startDrawingMode",value:function(x,M){return this._graphics.startDrawingMode(x,M)}},{key:"stopDrawingMode",value:function(){this._graphics.stopDrawingMode()}},{key:"crop",value:function(x){var M=this._graphics.getCroppedImageData(x);return M?this.loadImageFromURL(M.url,M.imageName):$e().reject(kn.invalidParameters)}},{key:"getCropzoneRect",value:function(){return this._graphics.getCropzoneRect()}},{key:"setCropzoneRect",value:function(x){this._graphics.setCropzoneRect(x)}},{key:"_flip",value:function(x){return this.execute(Tt.FLIP_IMAGE,x)}},{key:"flipX",value:function(){return this._flip("flipX")}},{key:"flipY",value:function(){return this._flip("flipY")}},{key:"resetFlip",value:function(){return this._flip("reset")}},{key:"_rotate",value:function(x,M,I){var T=null;return I?T=this.executeSilent(Tt.ROTATE_IMAGE,x,M):T=this.execute(Tt.ROTATE_IMAGE,x,M),T}},{key:"rotate",value:function(x,M){return this._rotate("rotate",x,M)}},{key:"setAngle",value:function(x,M){return this._rotate("setAngle",x,M)}},{key:"setBrush",value:function(x){this._graphics.setBrush(x)}},{key:"setDrawingShape",value:function(x,M){this._graphics.setDrawingShape(x,M)}},{key:"setDrawingIcon",value:function(x,M){this._graphics.setIconStyle(x,M)}},{key:"addShape",value:function(x,M){return M=M||{},this._setPositions(M),this.execute(Tt.ADD_SHAPE,x,M)}},{key:"changeShape",value:function(x,M,I){var T=I?"executeSilent":"execute";return this[T](Tt.CHANGE_SHAPE,x,M)}},{key:"addText",value:function(x,M){return x=x||"",M=M||{},this.execute(Tt.ADD_TEXT,x,M)}},{key:"changeText",value:function(x,M){return M=M||"",this.execute(Tt.CHANGE_TEXT,x,M)}},{key:"changeTextStyle",value:function(x,M,I){var T=I?"executeSilent":"execute";return this[T](Tt.CHANGE_TEXT_STYLE,x,M)}},{key:"_changeActivateMode",value:function(x){x!=="ICON"&&this.getDrawingMode()!==x&&this.startDrawingMode(x)}},{key:"_onTextChanged",value:function(x){this.fire(st.TEXT_CHANGED,x)}},{key:"_onIconCreateResize",value:function(x){this.fire(st.ICON_CREATE_RESIZE,x)}},{key:"_onIconCreateEnd",value:function(x){this.fire(st.ICON_CREATE_END,x)}},{key:"_onTextEditing",value:function(){this.fire(st.TEXT_EDITING)}},{key:"_onAddText",value:function(x){this.fire(st.ADD_TEXT,{originPosition:x.originPosition,clientPosition:x.clientPosition})}},{key:"_onAddObject",value:function(x){var M=this._graphics.getObject(x.id);this._invoker.fire(st.EXECUTE_COMMAND,cm(M.type)),this._pushAddObjectCommand(M)}},{key:"_onObjectAdded",value:function(x){this.fire(g8,x),this.fire(iq,x)}},{key:"_onObjectModified",value:function(x){x.type!==Pt.CROPZONE&&(this._invoker.fire(st.EXECUTE_COMMAND,cm(x.type)),this._pushModifyObjectCommand(x))}},{key:"_selectionCleared",value:function(){this.fire(y8)}},{key:"_selectionCreated",value:function(x){this.fire(b8,x)}},{key:"registerIcons",value:function(x){this._graphics.registerPaths(x)}},{key:"changeCursor",value:function(x){this._graphics.changeCursor(x)}},{key:"addIcon",value:function(x,M){return M=M||{},this._setPositions(M),this.execute(Tt.ADD_ICON,x,M)}},{key:"changeIconColor",value:function(x,M){return this.execute(Tt.CHANGE_ICON_COLOR,x,M)}},{key:"removeObject",value:function(x){var M=this._graphics.getObject(x),I=M.type;return this.execute(Tt.REMOVE_OBJECT,x,cm(I))}},{key:"hasFilter",value:function(x){return this._graphics.hasFilter(x)}},{key:"removeFilter",value:function(x){return this.execute(Tt.REMOVE_FILTER,x)}},{key:"applyFilter",value:function(x,M,I){var T=I?"executeSilent":"execute";return this[T](Tt.APPLY_FILTER,x,M)}},{key:"toDataURL",value:function(x){return this._graphics.toDataURL(x)}},{key:"getImageName",value:function(){return this._graphics.getImageName()}},{key:"clearUndoStack",value:function(){this._invoker.clearUndoStack()}},{key:"clearRedoStack",value:function(){this._invoker.clearRedoStack()}},{key:"isEmptyUndoStack",value:function(){return this._invoker.isEmptyUndoStack()}},{key:"isEmptyRedoStack",value:function(){return this._invoker.isEmptyRedoStack()}},{key:"resizeCanvasDimension",value:function(x){return x?this.execute(Tt.RESIZE_CANVAS_DIMENSION,x):$e().reject(kn.invalidParameters)}},{key:"destroy",value:function(){var x=this;this.stopDrawingMode(),this._detachDomEvents(),this._graphics.destroy(),this._graphics=null,this.ui&&(this._detachColorPickerInputBoxEvents(),this.ui.destroy()),ee()(this,function(M,I){x[I]=null},this)}},{key:"_setPositions",value:function(x){var M=this._graphics.getCenter();Y()(x.left)&&(x.left=M.left),Y()(x.top)&&(x.top=M.top)}},{key:"setObjectProperties",value:function(x,M){return this.execute(Tt.SET_OBJECT_PROPERTIES,x,M)}},{key:"setObjectPropertiesQuietly",value:function(x,M){this._graphics.setObjectProperties(x,M)}},{key:"getObjectProperties",value:function(x,M){var I=this._graphics.getObject(x);return I?this._graphics.getObjectProperties(x,M):null}},{key:"getCanvasSize",value:function(){return this._graphics.getCanvasSize()}},{key:"getObjectPosition",value:function(x,M,I){return this._graphics.getObjectPosition(x,M,I)}},{key:"setObjectPosition",value:function(x,M){return this.execute(Tt.SET_OBJECT_POSITION,x,M)}},{key:"resize",value:function(x){return this.execute(Tt.RESIZE_IMAGE,x)}}]),J}();uX.mixin(Xw),xe().mixin(Xw);var rq=Xw,oq=kt.ICON,sq={name:Tt.ADD_ICON,execute:function(L,x,M){var I=this,T=L.getComponent(oq);return T.add(x,M).then(function(F){return I.undoData.object=L.getObject(F.id),F})},undo:function(L){return L.remove(this.undoData.object),$e().resolve()}};ri.register(sq);var aq={name:Tt.ADD_IMAGE_OBJECT,execute:function(L,x){var M=this;return L.addImageObject(x).then(function(I){return M.undoData.object=L.getObject(I.id),I})},undo:function(L){return L.remove(this.undoData.object),$e().resolve()}};ri.register(aq);var lq={name:Tt.ADD_OBJECT,execute:function(L,x){return new($e())(function(M,I){L.contains(x)?I(kn.addedObject):(L.add(x),M(x))})},undo:function(L,x){return new($e())(function(M,I){L.contains(x)?(L.remove(x),M(x)):I(kn.noObject)})}};ri.register(lq);var cq=kt.SHAPE,uq={name:Tt.ADD_SHAPE,execute:function(L,x,M){var I=this,T=L.getComponent(cq);return T.add(x,M).then(function(F){var K=F.id;return I.undoData.object=L.getObject(K),F})},undo:function(L){return L.remove(this.undoData.object),$e().resolve()}};ri.register(uq);var dq=kt.TEXT,fq={name:Tt.ADD_TEXT,execute:function(L,x,M){var I=this,T=L.getComponent(dq);if(this.undoData.object){var F=this.undoData.object;return new($e())(function(K,oe){L.contains(F)?oe(kn.redo):(L.add(F),K(F))})}return T.add(x,M).then(function(K){var oe=K.id,ie=L.getObject(oe);return I.undoData.object=ie,m8(Gw(ie,function(){return Yw(oe,ie,!1)})),K})},undo:function(L){return L.remove(this.undoData.object),$e().resolve()}};ri.register(fq);var k8=kt.FILTER,C8=null;function hq(J,L,x){var M={};return J==="mask"&&(M.object=x.mask),M.options=L,M}var pq={name:Tt.APPLY_FILTER,execute:function(L,x,M,I){var T=L.getComponent(k8);if(x==="mask"){var F=L.getObject(M.maskObjId);if(!(F&&F.isType("image")))return $e().reject(kn.invalidParameters);pe()(M,{mask:F}),L.remove(M.mask)}if(!this.isRedo){var K=T.getOptions(x),oe=hq(x,K,M);C8=this.setUndoData(oe,C8,I)}return T.add(x,M)},undo:function(L,x){var M=L.getComponent(k8);if(x==="mask"){var I=this.undoData.object;return L.add(I),L.setActiveObject(I),M.remove(x)}return this.undoData.options?M.add(x,this.undoData.options):M.remove(x)}};ri.register(pq);var S8=kt.ICON,mq={name:Tt.CHANGE_ICON_COLOR,execute:function(L,x,M){var I=this;return new($e())(function(T,F){var K=L.getComponent(S8),oe=L.getObject(x);oe||F(kn.noObject),I.undoData.object=oe,I.undoData.color=K.getColor(oe),K.setColor(M,oe),T()})},undo:function(L){var x=L.getComponent(S8),M=this.undoData,I=M.object,T=M.color;return x.setColor(T,I),$e().resolve()}};ri.register(mq);var w8=kt.SHAPE,_8=null;function vq(J,L){var x={object:L,options:{}};return B1()(J,function(M,I){x.options[I]=L[I]}),x}var gq={name:Tt.CHANGE_SHAPE,execute:function(L,x,M,I){var T=L.getComponent(w8),F=L.getObject(x);if(!F)return $e().reject(kn.noObject);if(!this.isRedo){var K=vq(M,F);_8=this.setUndoData(K,_8,I)}return T.change(F,M)},undo:function(L){var x=L.getComponent(w8),M=this.undoData,I=M.object,T=M.options;return x.change(I,T)}};ri.register(gq);var I8=kt.TEXT,yq={name:Tt.CHANGE_TEXT,execute:function(L,x,M){var I=L.getComponent(I8),T=L.getObject(x);return T?(this.undoData.object=T,this.undoData.text=I.getText(T),I.change(T,M)):$e().reject(kn.noObject)},undo:function(L){var x=L.getComponent(I8),M=this.undoData,I=M.object,T=M.text;return x.change(I,T)}};ri.register(yq);var x8=kt.TEXT,$8=null;function bq(J,L){var x={object:L,styles:{}};return B1()(J,function(M,I){var T=L[I];x.styles[I]=T}),x}var kq={name:Tt.CHANGE_TEXT_STYLE,execute:function(L,x,M,I){var T=L.getComponent(x8),F=L.getObject(x);if(!F)return $e().reject(kn.noObject);if(!this.isRedo){var K=bq(M,F);$8=this.setUndoData(K,$8,I)}return T.setStyle(F,M)},undo:function(L){var x=L.getComponent(x8),M=this.undoData,I=M.object,T=M.styles;return x.setStyle(I,T)}};ri.register(kq);var Cq={name:Tt.CLEAR_OBJECTS,execute:function(L){var x=this;return new($e())(function(M){x.undoData.objects=L.removeAll(),M()})},undo:function(L){return L.add(this.undoData.objects),$e().resolve()}};ri.register(Cq);var A8=kt.FLIP,Sq={name:Tt.FLIP_IMAGE,execute:function(L,x){var M=L.getComponent(A8);return this.undoData.setting=M.getCurrentSetting(),M[x]()},undo:function(L){var x=L.getComponent(A8);return x.set(this.undoData.setting)}};ri.register(Sq);var E8=kt.IMAGE_LOADER,wq={name:Tt.LOAD_IMAGE,execute:function(L,x,M){var I,T=L.getComponent(E8),F=T.getCanvasImage(),K=F?F.width:0,oe=F?F.height:0,ie=wf()(I=L.removeAll(!0)).call(I,function(ke){return ke.type!=="cropzone"});return Ue()(ie).call(ie,function(ke){ke.evented=!0}),this.undoData={name:T.getImageName(),image:F,objects:ie},T.load(x,M).then(function(ke){return{oldWidth:K,oldHeight:oe,newWidth:ke.width,newHeight:ke.height}})},undo:function(L){var x=L.getComponent(E8),M=this.undoData,I=M.objects,T=M.name,F=M.image;return L.removeAll(!0),L.add(I),x.load(T,F)}};ri.register(wq);var M8=kt.FILTER,_q={name:Tt.REMOVE_FILTER,execute:function(L,x){var M=L.getComponent(M8);return this.undoData.options=M.getOptions(x),M.remove(x)},undo:function(L,x){var M=L.getComponent(M8),I=this.undoData.options;return M.add(x,I)}};ri.register(_q);var Iq={name:Tt.REMOVE_OBJECT,execute:function(L,x){var M=this;return new($e())(function(I,T){M.undoData.objects=L.removeObjectById(x),M.undoData.objects.length?I():T(kn.noObject)})},undo:function(L){return L.add(this.undoData.objects),$e().resolve()}};ri.register(Iq);var xq={name:Tt.RESIZE_CANVAS_DIMENSION,execute:function(L,x){var M=this;return new($e())(function(I){M.undoData.size={width:L.cssMaxWidth,height:L.cssMaxHeight},L.setCssMaxDimension(x),L.adjustCanvasDimension(),I()})},undo:function(L){return L.setCssMaxDimension(this.undoData.size),L.adjustCanvasDimension(),$e().resolve()}};ri.register(xq);var T8=kt.ROTATION,P8=null;function $q(J){return{angle:J.getCurrentAngle()}}var Aq={name:Tt.ROTATE_IMAGE,execute:function(L,x,M,I){var T=L.getComponent(T8);if(!this.isRedo){var F=$q(T);P8=this.setUndoData(F,P8,I)}return T[x](M)},undo:function(L){var x=L.getComponent(T8),M=Ae(this.args,3),I=M[1],T=M[2];return I==="setAngle"?x[I](this.undoData.angle):x.rotate(-T)}};ri.register(Aq);var Eq={name:Tt.SET_OBJECT_PROPERTIES,execute:function(L,x,M){var I=this,T=L.getObject(x);return T?(this.undoData.props={},B1()(M,function(F,K){I.undoData.props[K]=T[K]}),L.setObjectProperties(x,M),$e().resolve()):$e().reject(kn.noObject)},undo:function(L,x){var M=this.undoData.props;return L.setObjectProperties(x,M),$e().resolve()}};ri.register(Eq);var Mq={name:Tt.SET_OBJECT_POSITION,execute:function(L,x,M){var I=L.getObject(x);return I?(this.undoData.objectId=x,this.undoData.props=L.getObjectProperties(x,["left","top"]),L.setObjectPosition(x,M),L.renderAll(),$e().resolve()):$e().reject(kn.noObject)},undo:function(L){var x=this.undoData,M=x.objectId,I=x.props;return L.setObjectProperties(M,I),L.renderAll(),$e().resolve()}};ri.register(Mq);var Tq={name:Tt.CHANGE_SELECTION,execute:function(L,x){return this.isRedo?Ue()(x).call(x,function(M){L.setObjectProperties(M.id,M)}):this.undoData=TJ(),$e().resolve()},undo:function(L){var x;return Ue()(x=this.undoData).call(x,function(M){L.setObjectProperties(M.id,M)}),$e().resolve()}};ri.register(Tq);var O8=kt.RESIZE,Pq={name:Tt.RESIZE_IMAGE,execute:function(L,x){var M=L.getComponent(O8),I=M.getOriginalDimensions();return I||(I=M.getCurrentDimensions()),this.undoData.dimensions=I,M.resize(x)},undo:function(L){var x=L.getComponent(O8);return x.resize(this.undoData.dimensions)}};ri.register(Pq);var Oq=rq}(),r=r.default,r}()})})(OZ);var qqe=OZ.exports;const Qqe=au(qqe);const eQe={__name:"TuiImageEditorVue3",props:{image_url:String},setup(e){const t=e,n=$S("editor");let i=null;const o={Crop:"裁剪",Load:"替换图片",DeleteAll:"全部删除",Delete:"删除",Undo:"撤销",Redo:"反撤销",Reset:"重置",Flip:"镜像",Rotate:"旋转",Draw:"画",Shape:"形状标注",Icon:"图标标注",Text:"文字标注",Mask:"遮罩",Filter:"滤镜",Bold:"加粗",Italic:"斜体",Underline:"下划线",Left:"左对齐",Center:"居中",Right:"右对齐",Color:"颜色","Text size":"字体大小",Custom:"自定义",Square:"正方形",Apply:"应用",Cancel:"取消","Flip X":"X 轴","Flip Y":"Y 轴",Range:"区间",Stroke:"描边",Fill:"填充",Circle:"圆",Triangle:"三角",Rectangle:"矩形",Free:"曲线",Straight:"直线",Arrow:"箭头","Arrow-2":"箭头2","Arrow-3":"箭头3","Star-1":"星星1","Star-2":"星星2",Polygon:"多边形",Location:"定位",Heart:"心形",Bubble:"气泡","Custom icon":"自定义图标","Load Mask Image":"加载蒙层图片",Grayscale:"灰度",Blur:"模糊",Sharpen:"锐化",Emboss:"浮雕","Remove White":"除去白色",Distance:"距离",Brightness:"亮度",Noise:"噪音","Color Filter":"彩色滤镜",Sepia:"棕色",Sepia2:"棕色2",Invert:"负片",Pixelate:"像素化",Threshold:"阈值",Tint:"色调",Multiply:"正片叠底",Blend:"混合色",Double:"双击",Download:"下载图片"},s={"common.bi.image":"","common.bisize.width":"0px","common.bisize.height":"0px","common.backgroundImage":"none","common.backgroundColor":"#f3f4f6","common.border":"1px solid #333","header.backgroundImage":"none","header.backgroundColor":"#f3f4f6","header.border":"0px","loadButton.backgroundColor":"#fff","loadButton.border":"1px solid #ddd","loadButton.color":"#222","loadButton.fontFamily":"NotoSans, sans-serif","loadButton.fontSize":"12px","downloadButton.backgroundColor":"#fdba3b","downloadButton.border":"1px solid #fdba3b","downloadButton.color":"#fff","downloadButton.fontFamily":"NotoSans, sans-serif","downloadButton.fontSize":"12px","menu.normalIcon.color":"#8a8a8a","menu.activeIcon.color":"#555555","menu.disabledIcon.color":"#ccc","menu.hoverIcon.color":"#e9e9e9","submenu.normalIcon.color":"#8a8a8a","submenu.activeIcon.color":"#e9e9e9","menu.iconSize.width":"24px","menu.iconSize.height":"24px","submenu.iconSize.width":"32px","submenu.iconSize.height":"32px","submenu.backgroundColor":"#1e1e1e","submenu.partition.color":"#858585","submenu.normalLabel.color":"#858585","submenu.normalLabel.fontWeight":"lighter","submenu.activeLabel.color":"#fff","submenu.activeLabel.fontWeight":"lighter","checkbox.border":"1px solid #ccc","checkbox.backgroundColor":"#fff","range.pointer.color":"#fff","range.bar.color":"#666","range.subbar.color":"#d1d1d1","range.disabledPointer.color":"#414141","range.disabledBar.color":"#282828","range.disabledSubbar.color":"#414141","range.value.color":"#fff","range.value.fontWeight":"lighter","range.value.fontSize":"11px","range.value.border":"1px solid #353535","range.value.backgroundColor":"#151515","range.title.color":"#fff","range.title.fontWeight":"lighter","colorpicker.button.border":"1px solid #1e1e1e","colorpicker.title.color":"#fff"};return Yt(()=>{const r={includeUI:{loadImage:{path:t.image_url,name:"image"},initMenu:"draw",menuBarPosition:"bottom",locale:o,theme:s},cssMaxWidth:1e3,cssMaxHeight:600};i=new Qqe(n.value,r)}),$i(()=>{i.destroy(),i=null}),(r,a)=>(R(),X("div",{ref_key:"editor",ref:n},null,512))}};const tQe={style:{padding:"20px",height:"100%"}},nQe={__name:"ImgEditBtn",props:{image_url:String},setup(e){const t=he(!1),n=()=>{t.value=!0},i=()=>{t.value=!1},o=()=>{t.value=!1};return(s,r)=>{const a=Pe("a-button"),u=Pe("a-modal");return R(),X(ft,null,[O(a,{onClick:n,class:"image-edit-btn"},{default:Ve(()=>r[1]||(r[1]=[pt(" 编辑图片 ")])),_:1}),O(u,{visible:t.value,"onUpdate:visible":r[0]||(r[0]=c=>t.value=c),onOk:i,onCancel:o,"modal-class":"image-editor-modal","body-class":"image-editor-body",width:"70%"},{title:Ve(()=>r[2]||(r[2]=[pt(" 编辑图片 ")])),default:Ve(()=>[B("div",tQe,[O(eQe,{image_url:e.image_url},null,8,["image_url"])])]),_:1},8,["visible"])],64)}}},LZ=jn(nQe,[["__scopeId","data-v-ce3595da"]]);const iQe={class:"anwser-pictures-container"},rQe={class:"anwser-pictures-images"},oQe={class:"anwser-info-container-with-edit"},sQe={__name:"AnwserPictureResult",props:{image_list:Array},setup(e){const t=he(1),n=e,i=n.image_list&&n.image_list.length||0,o=P(()=>i===0),s=()=>{const a=t.value-1;a<1||(t.value=a)},r=()=>{const a=t.value+1;if(a>i){console.log("已经是最后一张了");return}else t.value=a};return(a,u)=>{const c=Pe("a-image"),l=Pe("a-carousel-item"),g=Pe("a-carousel");return R(),X("div",iQe,[B("div",rQe,[O(g,{style:{width:"450px",height:"450px",borderRadius:"15px"},"auto-play":!1,current:t.value,"animation-name":"fade","show-arrow":"never","indicator-type":"never"},{default:Ve(()=>[(R(!0),X(ft,null,dn(e.image_list,C=>(R(),We(l,{key:C},{default:Ve(()=>[O(c,{"data-flag":"a-image-container",src:C,style:{width:"100%"},"hide-footer":!0},null,8,["src"])]),_:2},1024))),128))]),_:1},8,["current"])]),B("div",oQe,[o.value?Re("",!0):(R(),We(Kqe,{key:0,current:t.value,total:ji(i),onPre:s,onNext:r},null,8,["current","total"])),O(LZ,{image_url:e.image_list[t.value]},null,8,["image_url"])])])}}},aQe=jn(sQe,[["__scopeId","data-v-8fb5f79d"]]);const lQe=["src"],cQe=["src"],uQe="http://192.168.20.119:8188",dQe={__name:"ComfyuiBtn",setup(e){const t=he(!1),n=()=>{t.value=!0},i=()=>{t.value=!1},o=()=>{t.value=!1};return(s,r)=>{const a=Pe("a-button"),u=Pe("a-modal");return R(),X(ft,null,[O(a,{onClick:n,class:"comfyui-btn"},{default:Ve(()=>[B("img",{class:"comfyui-logo-img",src:ji(W7)},null,8,lQe),r[1]||(r[1]=pt(" ComfyUI "))]),_:1}),O(u,{visible:t.value,"onUpdate:visible":r[0]||(r[0]=c=>t.value=c),onOk:i,onCancel:o,"modal-class":"comfyui-container-modal","body-class":"comfyui-container-body",width:"90%"},{title:Ve(()=>[B("img",{class:"comfyui-logo-img",src:ji(W7)},null,8,cQe),r[2]||(r[2]=pt(" ComfyUI "))]),default:Ve(()=>[B("iframe",{src:uQe,class:"comfyui-iframe"})]),_:1},8,["visible"])],64)}}},fQe=jn(dQe,[["__scopeId","data-v-d7ea65df"]]),hQe="/assets/6-df56a5e6.svg",pQe="/assets/7-7baebbf8.svg",mQe="/assets/8-73f21da8.svg";const vQe=se({props:["data","hasUpload","hasSlider","uploadFile","isQuestion","agentId","agengtName"],components:{AnwserPictureResult:aQe,ComfyuiBtn:fQe,ImgEditBtn:LZ},setup(e){const t=he(!1),{helper:n,ajax:i}=Dt("$global"),o=30*1024*1024;let s=he([]);const r=it([]);let a=new FormData,u=he([]);const c=he(!1),l=he(""),g=he(!1),C=async(w,k)=>{if(w)if(e.uploadFile){const $=await i.message.createDialog(e.agentId);s.value.forEach(j=>{a.append("file",j)}),g.value=!0;const E=await i.file.uploadFile(e.agentId,$.chat_id,a);t.value=!1,n.dialogConfig={isQuestion:e.isQuestion,selectedKeys:v.value,type:k},g.value=!1,u.value.push({name:E.file_name,file_path:E.file_path,value:""});const N={chatHistory:[],chat_id:$.chat_id,agent_id:e.agentId,name:"小数绘图",description:"小数绘图",inputs:{report_name:u.value.map(j=>j.name).join(", "),id:"Report-PRcYL",data:u.value}};N&&n.write("sendData",N)}else s.value.forEach($=>{a.append("files",$)}),await i.file.uploadExcels(a),n.$bus.emit("open-dialog","合并Excel")},S=w=>{c.value=!0,l.value=w},_=w=>w.size>o?(n.message("error","上传文件大小不能超过10M"),!1):!0,A=()=>{n.message("error","最多上传50个文件")},y=async w=>{const{onSuccess:k,fileItem:$}=w,{file:E}=$;s.value.push(E),r.push({key:E.uid,name:E.name,type:E.type,size:n.formatSize(E.size),time:yr(E.lastModified).format("YYYY-MM-DD HH:mm:ss")}),k()},d=w=>(console.log("data",w),s.value=s.value.filter(k=>k.id!==w.uid),!0),v=he([]),m=it({type:"checkbox",showCheckedAll:!0,onlyCurrent:!1}),f=[{title:"文件名称",dataIndex:"name",ellipsis:!0,tooltip:!0,width:150},{title:"类型",dataIndex:"type",ellipsis:!0,tooltip:!0,width:150},{title:"大小",dataIndex:"size"},{title:"上传时间",dataIndex:"time",ellipsis:!0,tooltip:!0,width:150},{title:"操作",slotName:"methods"}],p=w=>{},h=()=>{const w=r.findIndex(k=>k.key===l.value);r.splice(w,1),s.value=s.value.filter(k=>k.uid!==l.value)},b=["https://s3.harix.iamidata.com/sd-txt2img-ningbo/20241121_4173677d-b021-4b3a-9535-b7e4de17cded?AWSAccessKeyId=mjf0vn4dlj76z7ph&Expires=2147483647&Signature=kBHLFhQKRUd%2F%2B1hnw0k5DZ8VuA4%3D","https://s3.harix.iamidata.com/sd-txt2img-ningbo/20241121_f0c4a724-ed43-4950-ade0-60190aa8eda4?AWSAccessKeyId=mjf0vn4dlj76z7ph&Expires=2147483647&Signature=Vd8Ja5X3W8qJFZl30NE8d%2B5GW40%3D","https://s3.harix.iamidata.com/sd-txt2img-ningbo/20241121_a969df4c-5b6f-4577-827d-f7459e1a1c69?AWSAccessKeyId=mjf0vn4dlj76z7ph&Expires=2147483647&Signature=CHVinI9kJWnToLXWZ5BHdj54nLM%3D"];return{agengtName:e.agengtName,buttonLoading:g,fileList:s,selectedKeys:v,getAssetURL:n.getAssetURL,showUpload:t,onBeforeUpload:_,onExceedLimit:A,onBeforeRemove:d,customRequest:y,columns:f,tableData:r,rowSelection:m,downloadDocument:p,deleteDocument:h,showDeleteTooltip:c,deleteId:l,handleDeleteButton:S,selectFiles:C,image_list:b}}}),gQe=["src"],yQe={key:0,class:"picture-upload-footer"},bQe={key:0,src:hQe,class:"img-normal"},kQe={key:1,src:pQe,class:"img-hover"},CQe={key:2,src:mQe,class:"img-active"},SQe={key:0},wQe=["onClick"],_Qe=["onClick"],IQe={class:"delete-buttons"},xQe={class:"bottom-buttons"};function $Qe(e,t,n,i,o,s){const r=Pe("AnwserPictureResult"),a=Pe("icon-close"),u=Pe("a-upload"),c=Pe("icon-cloud-download"),l=Pe("a-tooltip"),g=Pe("icon-delete"),C=Pe("a-button"),S=Pe("a-popover"),_=Pe("a-table"),A=Pe("ComfyuiBtn");return R(),X("main",null,[B("section",null,[(R(!0),X(ft,null,dn(e.data,(y,d)=>(R(),X("div",{key:d,style:Te({background:y.background})},[B("img",{src:e.getAssetURL(y.img)},null,8,gQe),B("div",{style:Te({color:y.color})},[pt(tt(y.title)+" ",1),B("span",null,tt(y.content),1)],4)],4))),128))]),O(r,{image_list:e.image_list},null,8,["image_list"]),e.hasUpload?(R(),X("footer",yQe,[O(S,{"popup-visible":e.showUpload,position:"tl",onPopupVisibleChange:t[6]||(t[6]=()=>{e.showDeleteTooltip=!1})},{content:Ve(()=>[B("div",{class:G({"upload-wrap":!0,"upload-wrap-narrow":e.uploadFile})},[B("header",null,[B("p",null,tt((e.uploadFile,"上传图片")),1),B("div",{onClick:t[1]||(t[1]=()=>{e.showUpload=!1})},[O(a,{size:"large"})])]),B("div",null,[B("section",null,[O(u,{draggable:"",multiple:!e.uploadFile,limit:50,"show-file-list":!1,onBeforeUpload:e.onBeforeUpload,onExceedLimit:e.onExceedLimit,onBeforeRemove:e.onBeforeRemove,"custom-request":e.customRequest,"show-upload-button":{showOnExceedLimit:!0},accept:".png,.jpg"},{"upload-button":Ve(()=>t[7]||(t[7]=[B("div",{class:"upload-main"},[B("p",null,[pt("拖拽图片到这里,或"),B("span",null,"点此上传")]),B("span",null," 支持上传 .png, .jpg,大小不超过10M ")],-1)])),_:1},8,["multiple","onBeforeUpload","onExceedLimit","onBeforeRemove","custom-request"])]),e.tableData.length>0?(R(),X("div",SQe,[B("p",null,[t[8]||(t[8]=B("span",null,"已选择图片列表",-1)),B("span",null,"共"+tt(e.tableData.length)+"个",1)]),B("div",null,[O(_,{pagination:!1,"row-key":"name",columns:e.columns,data:e.tableData,"row-selection":e.rowSelection,selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":t[3]||(t[3]=y=>e.selectedKeys=y)},{methods:Ve(({record:y})=>[O(l,{content:"下载"},{default:Ve(()=>[B("div",{class:"method-button",onClick:d=>e.downloadDocument(y)},[O(c)],8,wQe)]),_:2},1024),O(S,{"popup-visible":e.showDeleteTooltip&&e.deleteId===y.key},{content:Ve(()=>[B("div",null,[t[11]||(t[11]=B("p",null,"删除后无法恢复,您是否删除?",-1)),B("div",IQe,[B("div",null,[O(C,{size:"mini",type:"primary",style:{"margin-right":"10px"},onClick:e.deleteDocument},{default:Ve(()=>t[9]||(t[9]=[pt("确认")])),_:1},8,["onClick"]),O(C,{size:"mini",type:"outline",onClick:t[2]||(t[2]=()=>{e.showDeleteTooltip=!1})},{default:Ve(()=>t[10]||(t[10]=[pt("取消")])),_:1})])])])]),default:Ve(()=>[O(l,{content:"删除"},{default:Ve(()=>[B("div",{class:"method-button",onClick:d=>e.handleDeleteButton(y.key)},[O(g)],8,_Qe)]),_:2},1024)]),_:2},1032,["popup-visible"])]),_:1},8,["columns","data","row-selection","selectedKeys"])])])):Re("",!0)])],2),B("div",xQe,[B("div",null,[O(C,{type:"outline",style:{"margin-right":"10px"},onClick:t[4]||(t[4]=y=>e.selectFiles(!1))},{default:Ve(()=>t[12]||(t[12]=[pt("取消")])),_:1}),O(C,{loading:e.buttonLoading,type:"primary",onClick:t[5]||(t[5]=y=>e.selectFiles(!0,"paper"))},{default:Ve(()=>[pt("去"+tt((e.uploadFile,"提问"))+"("+tt(e.fileList.length)+")",1)]),_:1},8,["loading"])])])]),default:Ve(()=>[B("div",{class:G({"text-hide":e.showUpload})},[B("div",{onClick:t[0]||(t[0]=()=>{e.showUpload=!0})},[e.showUpload?Re("",!0):(R(),X("img",bQe)),e.showUpload?Re("",!0):(R(),X("img",kQe)),e.showUpload?(R(),X("img",CQe)):Re("",!0)]),B("p",null,"已选择 "+tt(e.fileList.length)+" 个图片",1)],2)]),_:1},8,["popup-visible"]),t[13]||(t[13]=B("span",{class:"placeholder-width-5px"},null,-1)),O(A)])):Re("",!0)])}const AQe=jn(vQe,[["render",$Qe],["__scopeId","data-v-50cd96f1"]]),EQe=se({components:{PictureCards:AQe},setup(){return{data:he([{background:"rgba(72, 177, 244, 0.06)",color:"rgb(72, 177, 244)",img:"/src/assets/gen/5.png",title:"上传图片",content:"支持支持PNG,JPG等格式图片,大小在10M以内"},{background:"rgba(158, 128, 255, 0.06)",color:"rgb(158, 128, 255)",img:"/src/assets/gen/6.png",title:"多轮问答",content:"基于图片内容,实现的多轮问答"}])}}});function MQe(e,t,n,i,o,s){const r=Pe("picture-cards");return R(),We(r,{data:e.data,hasUpload:!0,hasSlider:!1,uploadImg:!0},null,8,["data"])}const TQe=jn(EQe,[["render",MQe]]),PQe=se({components:{DocumentCards:cu},props:["agentId"],setup(){return{data:he([{background:"rgba(72, 177, 244, 0.06)",color:"rgb(72, 177, 244)",img:"/src/assets/answer/1-1.png",title:"自定义个人文档",content:"支持个人文档上传,以列表形式管理个人文档库"},{background:"rgba(158, 128, 255, 0.06)",color:"rgb(158, 128, 255)",img:"/src/assets/answer/1-2.png",title:"多文档问答",content:"支持勾选多个文档,实现基于限定文档的问答"}])}}});function OQe(e,t,n,i,o,s){const r=Pe("document-cards");return R(),We(r,{hasUpload:!1,uploadFile:!0,data:e.data,hasSlider:!1,agentId:e.agentId},null,8,["data","agentId"])}const LQe=jn(PQe,[["render",OQe]]),DQe=se({components:{DocumentCards:cu},props:["agentId"],setup(){return{data:he([])}}});function NQe(e,t,n,i,o,s){const r=Pe("document-cards");return R(),We(r,{hasUpload:!0,uploadFile:!0,data:e.data,hasSlider:!1,agentId:e.agentId,agengtName:"智能数据"},null,8,["data","agentId"])}const jQe=jn(DQe,[["render",NQe]]),zQe=se({components:{DocumentCards:cu},setup(){return{data:he([{background:"rgba(72, 177, 244, 0.06)",color:"rgb(72, 177, 244)",img:"/src/assets/answer/1.png",title:"多源多问答",content:"检索多个文档内容,通过大模型生成答案"},{background:"rgba(158, 128, 255, 0.06)",color:"rgb(158, 128, 255)",img:"/src/assets/answer/2.png",title:"垂域知识库",content:"通过后台管理平台,快速构建垂域的专业知识库"},{background:"rgba(24, 200, 138, 0.06)",color:"rgb(24, 200, 138)",img:"/src/assets/answer/3.png",title:"文档溯源",content:"答案引用的文档支持预览及文档内容高亮"},{background:"rgba(255, 110, 110, 0.06)",color:"rgb(255, 110, 110)",img:"/src/assets/answer/4.png",title:"文档检索",content:"支持用户查看问题相关的全量文档"}])}}});function RQe(e,t,n,i,o,s){const r=Pe("document-cards");return R(),We(r,{data:e.data,hasUpload:!1,hasSlider:!1,isQuestion:!0},null,8,["data"])}const BQe=jn(zQe,[["render",RQe]]),FQe=se({components:{DocumentCards:cu},setup(){return{data:he([{background:"rgba(72, 177, 244, 0.06)",color:"rgb(72, 177, 244)",img:"/src/assets/answer/1.png",title:"多类型题目",content:"支持生成单选、多选、判断、问答题等多种题目类型"},{background:"rgba(158, 128, 255, 0.06)",color:"rgb(158, 128, 255)",img:"/src/assets/answer/2.png",title:"文档管理",content:"支持生成单选、多选、判断、问答题等多种题目类型"}])}}});function VQe(e,t,n,i,o,s){const r=Pe("document-cards");return R(),We(r,{data:e.data,hasUpload:!1,isQuestion:!0},null,8,["data"])}const HQe=jn(FQe,[["render",VQe]]),WQe=se({components:{DocumentCards:cu},setup(){return{data:he([{background:"rgba(72, 177, 244, 0.06)",color:"rgb(72, 177, 244)",img:"/src/assets/answer/1.png",title:"多类型题目",content:"支持生成单选、多选、判断、问答题等多种题目类型"},{background:"rgba(158, 128, 255, 0.06)",color:"rgb(158, 128, 255)",img:"/src/assets/answer/2.png",title:"文档管理",content:"支持生成单选、多选、判断、问答题等多种题目类型"}])}}});function UQe(e,t,n,i,o,s){const r=Pe("document-cards");return R(),We(r,{data:e.data,hasUpload:!1,isQuestion:!0},null,8,["data"])}const ZQe=jn(WQe,[["render",UQe]]),GQe=se({components:{DocumentCards:cu},setup(){}});function YQe(e,t,n,i,o,s){const r=Pe("document-cards");return R(),We(r,{hasUpload:!0,hasSlider:!1})}const XQe=jn(GQe,[["render",YQe]]),KQe="/assets/open-d98d5c9a.svg",JQe="/assets/close-92dd2846.svg";const qQe={key:0,src:KQe,width:"20"},QQe={key:1,src:JQe,width:"20"},eet={__name:"ToggleBtn",props:{closeOthers:Boolean},emits:"toggle",setup(e,{emit:t}){const n=e,i=t,o=P(()=>n.closeOthers?"收起":"展开"),s=()=>{i("toggle")};return(r,a)=>{const u=Pe("a-tooltip");return R(),We(u,{content:o.value},{default:Ve(()=>[B("span",{onClick:s,class:"toggle-btn"},[e.closeOthers?(R(),X("img",qQe)):(R(),X("img",QQe))])]),_:1},8,["content"])}}},tet=jn(eet,[["__scopeId","data-v-2ed32137"]]),net="/assets/robot-f2c5174f.gif";const iet=se({components:{Right:uWe,Slider:qXe,History:dKe,Index:Aqe,Answer:Lqe,MessageInput:vKe,MessagePicUpload:CKe,DialogWrap:VXe,Document:PZ,PicArticle:TQe,DocumentAnswer:LQe,DocumentsmartData:jQe,DocumentInterlocution:BQe,DocumentQuestion:HQe,DocumentQuestion2:ZQe,Analysis:XQe,DocumentDetail:xKe,DocumentCombine:ZKe,ToggleBtn:tet},setup(){const e=["report","excel","knowledgeQuiz","report","normal","smartData","normal","question","question"],{config:t,helper:n,ajax:i}=Dt("$global"),o=t.defaultTitle,s=he(!1),r=he(5),a=he(-1),u=he(!1),c=he(!1),l=he(!1),g=he([]),C=he(""),S=he(!1),_=he(!1),A=he([]),y=he(""),d=he([]),v=he([]),m=he(""),f=he(!1),p=he(6e3);let h={},b={};const w=()=>{s.value=!s.value},k=async q=>{a.value=q.id,m.value=[],l.value=!1,u.value=!1,q.index===-1?r.value=5:r.value=4,n.$bus.emit("stop-writing"),c.value=!1,C.value=(b.find(ne=>ne.name===q.title)||{}).id||null;const ae=await i.message.getDialogs(C.value);if(a.value===0||a.value===3){const ne=await i.agent.getVariables(C.value);v.value=ne,h={}}ae&&Array.isArray(ae)&&(d.value=ae.map(ne=>({content:ne.name,id:ne.id,time:ne.update_date})))},$=q=>{u.value=q},E=q=>{f.value=q},N=()=>{a.value=-2,_.value=!0},j=()=>{a.value=0,_.value=!1},z=async q=>{c.value=!0,l.value=!0,u.value=!0,C.value=q,n.$bus.emit("set-loading",!0),n.$bus.emit("stop-writing"),S.value=!1;const ae=t.slider.find(te=>te.id===a.value).title,ne=b.find(te=>te.name===ae).id,be=await i.message.getHistoryLogs(ne,q);be&&Array.isArray(be)&&be.length>0?g.value=be:g.value=[],S.value=!0,n.$bus.emit("set-loading",!1)},V=async()=>{let q="",ae=[];for(let be in h){const te=h[be],Ie=te.key,$e=te.value,Me={id:be,name:Ie};typeof $e=="string"?(q+=`${Ie}:${$e}
  1317. `,Me.file_path="",Me.value=$e):(q+=`${Ie}:${$e.name}
  1318. `,Me.file_path=$e.url,Me.value=""),ae.push(Me)}if(!l.value){const be=await i.message.createDialog(C.value);be&&(y.value=be.chat_id)}g.value=[],c.value=!0,S.value=!0;const ne={chatHistory:[],message:m.value,name:"报告生成",description:"报告生成",inputs:{report_name:q,id:"Report-PRcYL",data:ae}};setTimeout(()=>{n.$bus.emit("send-message",ne)},500)},W=async()=>{const q={chatHistory:[],name:"报告生成",description:"报告生成",inputs:{report_name:m.value,id:"Report-PRcYL",query:m.value}};setTimeout(()=>{n.$bus.emit("send-message",q),m.value=""},500)},H=(q,ae,ne)=>{h[ae]={key:ne,value:q}},U=async(q,ae,ne)=>{const{onSuccess:be,fileItem:te}=q,{file:Ie,uid:$e,name:Me}=te,ge=[];ge.push({id:$e,file:Ie}),be();const Se=new FormData;ge.forEach(pe=>{Se.append("file",pe.file)});const fe=await i.file.uploadFiles(C.value,Se);h[ae]={key:ne,value:{name:Me,url:fe.file_path}}};Yt(async()=>{b=await i.agent.getAgents(),A.value=b&&Array.isArray(b)&&b.map(q=>q.id)||[],n.$bus.on("open-dialog",async q=>{if(!l.value){const ae=await i.message.createDialog(C.value);y.value=ae.chat_id}g.value=[],c.value=!0,S.value=!0,console.log("value",q),setTimeout(()=>{n.$bus.emit("send-message",q)},200)})}),ei(()=>{var q;(q=n.webSocket)==null||q.close(),n.$bus.off("open-dialog")});const Q=()=>{c.value=!1,l.value=!1,$(!1)};return{SYSTEM_NAME:o,customChange:H,customRequest:U,historyList:d,beginCombine:V,continueCombine:W,selectId:C,dialogId:y,navId:a,variables:v,selectNav:k,swiperNumber:r,slider:t.slider,readonly:u,setReadonly:$,showDialog:c,selectHistory:z,historyMode:l,closeOthers:s,openAll:w,dialogType:e,dialogList:g,initDialog:S,goDocument:N,goBack:j,changeParse:E,hideDialog:_,agentIds:A,textValue:m,parseStatus:f,maxLength:p,handelSetNewChat:Q}}}),ret={id:"app"},oet={class:"main"},set={class:"wrap"},aet={key:0},cet={key:1},uet={key:2,class:"upload-footer"},det={key:3,class:"upload-footer"},fet={key:4,class:"upload-footer"},het={key:5};function pet(e,t,n,i,o,s){const r=Pe("Slider"),a=Pe("History"),u=Pe("Index"),c=Pe("DocumentCombine"),l=Pe("Document"),g=Pe("DocumentInterlocution"),C=Pe("DocumentAnswer"),S=Pe("Answer"),_=Pe("DocumentsmartData"),A=Pe("PicArticle"),y=Pe("DocumentQuestion"),d=Pe("DocumentQuestion2"),v=Pe("DocumentDetail"),m=Pe("dialog-wrap"),f=Pe("message-input"),p=Pe("a-input"),h=Pe("a-upload"),b=Pe("a-textarea"),w=Pe("a-button"),k=Pe("MessagePicUpload"),$=Pe("ToggleBtn");return R(),X("div",ret,[gi(O(r,{onSelectNav:e.selectNav,navId:e.navId},null,8,["onSelectNav","navId"]),[[ki,!e.closeOthers]]),B("div",oet,[B("div",{class:G({"history-wrap":!0,"history-wrap-open":!e.closeOthers&&e.navId>-1})},[O(a,{list:e.historyList,selectId:e.selectId,onHandleClick:e.selectHistory,onSetNew:e.handelSetNewChat},null,8,["list","selectId","onHandleClick","onSetNew"])],2),B("div",set,[e.navId===-1?(R(),We(u,{key:0,number:e.swiperNumber,onSelectNav:e.selectNav},null,8,["number","onSelectNav"])):(R(),X("div",{key:1,class:G({"border-wrap":!0,"border-no-wrap":e.navId===-2})},[B("div",null,[e.showDialog?Re("",!0):(R(),X("header",aet,[B("div",null,[t[2]||(t[2]=B("img",{src:net,width:"52"},null,-1)),B("p",null,[pt(tt(e.SYSTEM_NAME),1),B("span",null,tt(e.slider.find(E=>E.id===e.navId).title),1)]),B("span",null,tt(e.slider.find(E=>E.id===e.navId).dialog),1)])])),B("section",{class:G({"section-padding":e.showDialog})},[e.navId==0&&!e.showDialog?(R(),We(c,{key:0})):Re("",!0),e.navId===1&&!e.showDialog?(R(),We(l,{key:1})):Re("",!0),e.navId===2&&!e.showDialog?(R(),We(g,{key:2})):Re("",!0),e.navId===3&&!e.showDialog?(R(),We(C,{key:3,agentId:e.selectId},null,8,["agentId"])):Re("",!0),e.navId===4&&!e.showDialog?(R(),We(S,{key:4})):Re("",!0),e.navId===5&&!e.showDialog?(R(),We(_,{key:5,agentId:e.selectId},null,8,["agentId"])):Re("",!0),e.navId===6&&!e.showDialog?(R(),We(A,{key:6,agentId:e.selectId},null,8,["agentId"])):Re("",!0),e.navId===7&&!e.showDialog?(R(),We(y,{key:7,agentId:e.selectId},null,8,["agentId"])):Re("",!0),e.navId===8&&!e.showDialog?(R(),We(d,{key:8,agentId:e.selectId},null,8,["agentId"])):Re("",!0),e.navId===-2?(R(),We(v,{key:9,onGoBack:e.goBack},null,8,["onGoBack"])):Re("",!0),e.showDialog&&e.initDialog?gi((R(),We(m,{key:10,type:e.dialogType[e.navId],isSetting:!1,readonly:e.readonly,agentId:e.selectId,dialogId:e.dialogId,list:e.dialogList,onSetReadonly:e.setReadonly,onChangeParse:e.changeParse,onGoDocument:e.goDocument},null,8,["type","readonly","agentId","dialogId","list","onSetReadonly","onChangeParse","onGoDocument"])),[[ki,!e.hideDialog]]):Re("",!0)],2),e.navId!==-2&&e.navId!==0&&e.navId!==3&&e.navId!==6&&!e.historyMode?(R(),X("footer",cet,[O(f,{readonly:e.readonly,eventName:"open-dialog"},null,8,["readonly"])])):Re("",!0),e.navId===0&&!e.showDialog?(R(),X("footer",uet,[(R(!0),X(ft,null,dn(e.variables,(E,N)=>(R(),X("section",{key:N},[B("div",null,[B("p",null,[B("span",null,tt(E.variable_name),1)])]),B("div",null,[E.value_type===1?(R(),We(p,{key:0,style:{flex:"1"},placeholder:`请输入${E.variable_name}`,"allow-clear":"",onChange:j=>{e.customChange(j,E.node_id,E.variable_name)}},null,8,["placeholder","onChange"])):(R(),We(h,{key:1,style:{width:"300px"},multiple:!1,limit:1,"custom-request":j=>{e.customRequest(j,E.node_id,E.variable_name)},"show-upload-button":{showOnExceedLimit:!0},accept:".pdf,.doc,.docx,.txt,.md,.ppt.pptx"},null,8,["custom-request"]))])]))),128)),O(b,{"max-length":e.maxLength,modelValue:e.textValue,"onUpdate:modelValue":t[0]||(t[0]=E=>e.textValue=E),"show-word-limit":e.textValue.length>e.maxLength/2,"auto-size":{maxRows:6},placeholder:"输入您想了解的内容,Shift+Enter换行",style:Te({flex:1,borderRadius:"12px",marginTop:"20px",padding:"0px 30px 0 16px",background:"transparent",border:"1px solid #e3e3e3",minHeight:"120px",paddingBottom:`${e.textValue.length>e.maxLength/2?"20px":""}`})},null,8,["max-length","modelValue","show-word-limit","style"]),O(w,{style:{width:"500px"},type:"primary",onClick:e.beginCombine},{default:Ve(()=>t[3]||(t[3]=[pt("开始")])),_:1},8,["onClick"])])):Re("",!0),e.navId===3&&!e.showDialog?(R(),X("footer",det,[(R(!0),X(ft,null,dn(e.variables,(E,N)=>(R(),X("section",{key:N},[B("div",null,[B("p",null,[B("span",null,tt(E.variable_name),1)])]),B("div",null,[E.value_type===1?(R(),We(p,{key:0,style:{flex:"1"},placeholder:`请输入${E.variable_name}`,"allow-clear":"",onChange:j=>{e.customChange(j,E.node_id,E.variable_name)}},null,8,["placeholder","onChange"])):(R(),We(h,{key:1,style:{width:"300px"},multiple:!1,limit:1,"custom-request":j=>{e.customRequest(j,E.node_id,E.variable_name)},"show-upload-button":{showOnExceedLimit:!0},accept:".pdf,.doc,.docx,.txt,.md,.ppt.pptx"},null,8,["custom-request"]))])]))),128)),O(w,{style:{width:"500px"},type:"primary",onClick:e.beginCombine},{default:Ve(()=>t[4]||(t[4]=[pt("开始")])),_:1},8,["onClick"])])):Re("",!0),e.navId===3&&e.showDialog&&!e.historyMode?(R(),X("footer",fet,[O(b,{"max-length":e.maxLength,modelValue:e.textValue,"onUpdate:modelValue":t[1]||(t[1]=E=>e.textValue=E),disabled:e.parseStatus,"show-word-limit":e.textValue.length>e.maxLength/2,"auto-size":{maxRows:6},placeholder:"输入您想了解的内容,Shift+Enter换行",style:Te({flex:1,borderRadius:"12px",marginTop:"20px",padding:"0px 30px 0 16px",background:"transparent",border:"1px solid #e3e3e3",minHeight:"120px",paddingBottom:`${e.textValue.length>e.maxLength/2?"20px":""}`})},null,8,["max-length","modelValue","disabled","show-word-limit","style"]),O(w,{style:{width:"500px"},type:"primary",onClick:e.continueCombine},{default:Ve(()=>t[5]||(t[5]=[pt("开始")])),_:1},8,["onClick"])])):Re("",!0),e.navId===6?(R(),X("footer",het,[O(k)])):Re("",!0),e.navId!==-2?(R(),We($,{key:6,closeOthers:e.closeOthers,onToggle:e.openAll},null,8,["closeOthers","onToggle"])):Re("",!0)])],2))])])])}const met=jn(iet,[["render",pet],["__scopeId","data-v-309f5380"]]),vet=()=>Gi(()=>import("./default-layout-b082fdc0.js"),["assets/default-layout-b082fdc0.js","assets/index-dea87f4f.js","assets/auth-54229761.js","assets/index-d8d817e0.js","assets/default-layout-e6e89fea.css"]),Iw=KHe({history:$He("/"),routes:[{path:"/",name:"home",component:met},{path:"/knowledge",name:"knowledge",component:()=>Gi(()=>import("./Knowledge-379fcf3a.js"),["assets/Knowledge-379fcf3a.js","assets/Knowledge-06792e0f.css"])},{path:"/document",name:"document",component:()=>Gi(()=>Promise.resolve().then(()=>jqe),void 0)},{path:"/login",name:"login",component:()=>Gi(()=>import("./Login-171e1402.js"),["assets/Login-171e1402.js","assets/login-bd96354f.js","assets/Login-e0bb957a.css"])},{path:"/register",name:"register",component:()=>Gi(()=>import("./Register-f1dfb531.js"),["assets/Register-f1dfb531.js","assets/login-bd96354f.js","assets/Register-c81dcc99.css"])},{path:"/console",name:"console",component:vet,children:[{path:"/console/sessionManager",name:"sessionManager",component:()=>Gi(()=>import("./index-b70e4bd5.js"),["assets/index-b70e4bd5.js","assets/Agent-25c87d4e.js","assets/icon-chart-38e5438e.js","assets/auth-54229761.js","assets/index-dea87f4f.js","assets/index-cbc968e7.css"])},{path:"/console/knowledgeLib",name:"knowledgeLib",component:()=>Gi(()=>import("./index-68b49daf.js"),["assets/index-68b49daf.js","assets/loading-11382d6b.js","assets/index-d8d817e0.js","assets/auth-54229761.js","assets/index-0a2c5785.css"])},{path:"/model",name:"model",component:()=>Gi(()=>import("./index-86225c93.js"),["assets/index-86225c93.js","assets/icon-chart-38e5438e.js","assets/index-6a7725d1.css"])},{path:"/agent",name:"agent",component:()=>Gi(()=>import("./index-cfd677cd.js"),["assets/index-cfd677cd.js","assets/index-8335849d.css"])},{path:"/console/authority/resource",name:"resource",component:()=>Gi(()=>import("./index-34db7870.js"),["assets/index-34db7870.js","assets/authheader.vue_vue_type_script_setup_true_lang-f7d732c0.js","assets/index-c8a9b12d.css"])},{path:"/console/authority/users",name:"users",component:()=>Gi(()=>import("./index-9ba8014b.js"),["assets/index-9ba8014b.js","assets/loading-11382d6b.js","assets/authheader.vue_vue_type_script_setup_true_lang-f7d732c0.js","assets/index-e533ab1b.css"])},{path:"/console/authority/organization",name:"organization",component:()=>Gi(()=>import("./index-fbe1fe35.js"),["assets/index-fbe1fe35.js","assets/authheader.vue_vue_type_script_setup_true_lang-f7d732c0.js","assets/index-40675dee.css"])},{path:"/console/authority/resource",name:"resource",component:()=>Gi(()=>import("./index-34db7870.js"),["assets/index-34db7870.js","assets/authheader.vue_vue_type_script_setup_true_lang-f7d732c0.js","assets/index-c8a9b12d.css"])},{path:"/console/authority/role",name:"role",component:()=>Gi(()=>import("./index-1e4e8a51.js"),["assets/index-1e4e8a51.js","assets/loading-11382d6b.js","assets/authheader.vue_vue_type_script_setup_true_lang-f7d732c0.js","assets/Agent-25c87d4e.js","assets/auth-54229761.js","assets/index-dfd87e06.css"])},{path:"/console/authority/group",name:"group",component:()=>Gi(()=>import("./index-ee5da3d4.js"),["assets/index-ee5da3d4.js","assets/authheader.vue_vue_type_script_setup_true_lang-f7d732c0.js","assets/loading-11382d6b.js","assets/index-51ac5838.css"])}]},[{path:"/agent",name:"agent",meta:{locale:"Agent",requiresAuth:!0,icon:"icon-robot",order:3.5,hideInMenu:!1},children:[{path:"/agent",name:"agent",meta:{requiresAuth:!0,hideInMenu:!0,roles:["*"]}}]},{path:"/authority",name:"authority",meta:{locale:"menu.authority",requiresAuth:!0,icon:"icon-lock",order:5,activeMenu:!1},children:[{path:"users",name:"users",meta:{locale:"menu.user.title",requiresAuth:!0,roles:["*"]}},{path:"organization",name:"organization",meta:{locale:"menu.organization.title",requiresAuth:!0,roles:["*"]}},{path:"resource",name:"resource",meta:{locale:"menu.resource.title",requiresAuth:!0,roles:["*"]}},{path:"role",name:"role",meta:{locale:"menu.role.title",requiresAuth:!0,roles:["*"]}},{path:"group",name:"group",meta:{locale:"menu.group.title",requiresAuth:!0,roles:["*"]}}]},{path:"/dashboard",name:"dashboard",meta:{locale:"menu.dashboard",requiresAuth:!0,icon:"icon-dashboard",order:0},children:[{path:"workplace",name:"Workplace",meta:{locale:"menu.dashboard.workplace",requiresAuth:!0,roles:["*"]}},{path:"monitor",name:"Monitor",meta:{locale:"menu.dashboard.monitor",requiresAuth:!0,roles:["admin"]}}]},{path:"/dmx",name:"dmx",meta:{locale:"大模型",icon:"icon-user",requiresAuth:!0,order:0,hideInMenu:!1},children:[{path:"knowledgeLib",name:"knowledgeLib",meta:{locale:"知识库管理",requiresAuth:!0,roles:["*"]}},{path:"model",name:"model",meta:{locale:"模型管理",requiresAuth:!0,roles:["*"]}},{path:"intelligentAgent",name:"intelligentAgent",meta:{locale:"智能体管理",requiresAuth:!0,roles:["*"]}}]},{path:"/intelligentAgent",name:"intelligentAgent",meta:{locale:"智能体管理",requiresAuth:!0,icon:"icon-robot",order:4,hideInMenu:!1},children:[{path:"/intelligentAgent",name:"intelligentAgent",meta:{requiresAuth:!0,hideInMenu:!0,roles:["*"]}}]},{path:"/knowledgeLib",name:"knowledgeLib",meta:{locale:"知识库管理",requiresAuth:!0,icon:"icon-storage",order:2,hideInMenu:!1},children:[{path:"/knowledgeLib",name:"knowledgeLib",meta:{requiresAuth:!0,hideInMenu:!0,roles:["*"]}}]},{path:"/model",name:"model",meta:{locale:"模型管理",requiresAuth:!0,icon:"icon-relation",order:3,hideInMenu:!1},children:[{path:"/model",name:"model",meta:{requiresAuth:!0,hideInMenu:!0,roles:["*"]}}]},{path:"/profile",name:"profile",meta:{locale:"menu.profile",requiresAuth:!0,icon:"icon-file",order:4},children:[{path:"basic",name:"Basic",meta:{locale:"menu.profile.basic",requiresAuth:!0,roles:["admin"]}}]},{path:"/sessionManager",name:"sessionManager",meta:{locale:"menu.session",requiresAuth:!0,icon:"icon-voice",order:1,hideInMenu:!1},children:[{path:"/sessionManager",name:"sessionManager",meta:{requiresAuth:!0,hideInMenu:!0,roles:["*"]}}]},{path:"/user",name:"user",meta:{locale:"menu.user",icon:"icon-user",requiresAuth:!0,order:7},children:[{path:"setting",name:"Setting",meta:{locale:"menu.user.setting",requiresAuth:!0,roles:["*"]}},{path:"account",name:"Account",meta:{locale:"menu.user.account",requiresAuth:!0,roles:["*"]}},{path:"menu",name:"Menu",meta:{locale:"菜单管理",requiresAuth:!0,roles:["*"]}}]}]]});Iw.beforeEach((e,t,n)=>{n()});function DZ(e){return{all:e=e||new Map,on:function(t,n){var i=e.get(t);i?i.push(n):e.set(t,[n])},off:function(t,n){var i=e.get(t);i&&(n?i.splice(i.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var i=e.get(t);i&&i.slice().map(function(o){o(n)}),(i=e.get("*"))&&i.slice().map(function(o){o(t,n)})}}}var $v="text/plain";function get(){(console.warn||console.log).apply(console,arguments)}get.bind("[clipboard-polyfill]");var fO=typeof window>"u"?void 0:window,yet=typeof globalThis>"u"?void 0:globalThis,Z7,G7,Y7,X7=(Y7=(Z7=fO)==null?void 0:Z7.Promise)!=null?Y7:(G7=yet)==null?void 0:G7.Promise;function bet(){if(!X7)throw new Error("No `Promise` implementation available for `clipboard-polyfill`. Consider using: https://github.com/lgarron/clipboard-polyfill#flat-file-version-with-promise-included");return X7}var K7=typeof navigator>"u"?void 0:navigator,cs=K7==null?void 0:K7.clipboard,J7;(J7=cs==null?void 0:cs.read)==null||J7.bind(cs);var q7;(q7=cs==null?void 0:cs.readText)==null||q7.bind(cs);var Q7;(Q7=cs==null?void 0:cs.write)==null||Q7.bind(cs);var ej,tj=(ej=cs==null?void 0:cs.writeText)==null?void 0:ej.bind(cs),nj;(nj=fO)==null||nj.ClipboardItem;var xw=bet(),Hf=fO;function ket(){return typeof ClipboardEvent>"u"&&typeof(Hf==null?void 0:Hf.clipboardData)<"u"&&typeof(Hf==null?void 0:Hf.clipboardData.setData)<"u"}function Cet(e){if(!Hf.clipboardData)return!1;var t=Hf.clipboardData.setData("Text",e);return t}function wet(e,t,n){e.success=!0;for(var i in t){var o=t[i],s=n.clipboardData;s.setData(i,o),i===$v&&s.getData(i)!==o&&(e.success=!1)}n.preventDefault()}function NZ(e){var t={success:!1},n=wet.bind(this,t,e);document.addEventListener("copy",n);try{document.execCommand("copy")}finally{document.removeEventListener("copy",n)}return t.success}function jZ(e,t){zZ(e);var n=NZ(t);return RZ(),n}function _et(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=jZ(t,e);return document.body.removeChild(t),n}function Iet(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(n=t.attachShadow({mode:"open"}));var i=document.createElement("span");i.innerText=e,n.appendChild(i),document.body.appendChild(t),zZ(i);var o=document.execCommand("copy");return RZ(),document.body.removeChild(t),o}function zZ(e){var t=document.getSelection();if(t){var n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}}function RZ(){var e=document.getSelection();e&&e.removeAllRanges()}function xet(e){var t=$v in e;if(ket()){if(!t)throw new Error("No `text/plain` value was specified.");if(Cet(e[$v]))return!0;throw new Error("Copying failed, possibly because the user rejected it.")}return!!(NZ(e)||navigator.userAgent.indexOf("Edge")>-1||jZ(document.body,e)||_et(e)||Iet(e[$v]))}xw.resolve();xw.resolve(!1);function $et(e){return new xw((t,n)=>{try{t(e())}catch(i){n(i)}})}function Aet(e){var t={};return t[$v]=e,t}function Eet(e){return tj?tj(e).catch(t=>{ij(e)}):ij(e)}function ij(e){return $et(()=>xw.resolve(Met(e)))}function Met(e){if(!xet(Aet(e)))throw new Error("writeText() failed")}function BZ(e,t){return function(){return e.apply(t,arguments)}}const{toString:Tet}=Object.prototype,{getPrototypeOf:hO}=Object,$w=(e=>t=>{const n=Tet.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ks=e=>(e=e.toLowerCase(),t=>$w(t)===e),Aw=e=>t=>typeof t===e,{isArray:im}=Array,Wv=Aw("undefined");function Pet(e){return e!==null&&!Wv(e)&&e.constructor!==null&&!Wv(e.constructor)&&Vo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const FZ=Ks("ArrayBuffer");function Oet(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&FZ(e.buffer),t}const Let=Aw("string"),Vo=Aw("function"),VZ=Aw("number"),Ew=e=>e!==null&&typeof e=="object",Det=e=>e===!0||e===!1,Ik=e=>{if($w(e)!=="object")return!1;const t=hO(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Net=Ks("Date"),jet=Ks("File"),zet=Ks("Blob"),Ret=Ks("FileList"),Bet=e=>Ew(e)&&Vo(e.pipe),Fet=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Vo(e.append)&&((t=$w(e))==="formdata"||t==="object"&&Vo(e.toString)&&e.toString()==="[object FormData]"))},Vet=Ks("URLSearchParams"),[Het,Wet,Uet,Zet]=["ReadableStream","Request","Response","Headers"].map(Ks),Get=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $1(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),im(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),r=s.length;let a;for(i=0;i<r;i++)a=s[i],t.call(null,e[a],a,e)}}function HZ(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,o;for(;i-- >0;)if(o=n[i],t===o.toLowerCase())return o;return null}const Au=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),WZ=e=>!Wv(e)&&e!==Au;function ZM(){const{caseless:e}=WZ(this)&&this||{},t={},n=(i,o)=>{const s=e&&HZ(t,o)||o;Ik(t[s])&&Ik(i)?t[s]=ZM(t[s],i):Ik(i)?t[s]=ZM({},i):im(i)?t[s]=i.slice():t[s]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&$1(arguments[i],n);return t}const Yet=(e,t,n,{allOwnKeys:i}={})=>($1(t,(o,s)=>{n&&Vo(o)?e[s]=BZ(o,n):e[s]=o},{allOwnKeys:i}),e),Xet=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ket=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Jet=(e,t,n,i)=>{let o,s,r;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)r=o[s],(!i||i(r,e,t))&&!a[r]&&(t[r]=e[r],a[r]=!0);e=n!==!1&&hO(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qet=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},Qet=e=>{if(!e)return null;if(im(e))return e;let t=e.length;if(!VZ(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ett=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hO(Uint8Array)),ttt=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=i.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},ntt=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},itt=Ks("HTMLFormElement"),rtt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),rj=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ott=Ks("RegExp"),UZ=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};$1(n,(o,s)=>{let r;(r=t(o,s,e))!==!1&&(i[s]=r||o)}),Object.defineProperties(e,i)},stt=e=>{UZ(e,(t,n)=>{if(Vo(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Vo(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},att=(e,t)=>{const n={},i=o=>{o.forEach(s=>{n[s]=!0})};return im(e)?i(e):i(String(e).split(t)),n},ltt=()=>{},ctt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,$A="abcdefghijklmnopqrstuvwxyz",oj="0123456789",ZZ={DIGIT:oj,ALPHA:$A,ALPHA_DIGIT:$A+$A.toUpperCase()+oj},utt=(e=16,t=ZZ.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function dtt(e){return!!(e&&Vo(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ftt=e=>{const t=new Array(10),n=(i,o)=>{if(Ew(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const s=im(i)?[]:{};return $1(i,(r,a)=>{const u=n(r,o+1);!Wv(u)&&(s[a]=u)}),t[o]=void 0,s}}return i};return n(e,0)},htt=Ks("AsyncFunction"),ptt=e=>e&&(Ew(e)||Vo(e))&&Vo(e.then)&&Vo(e.catch),GZ=((e,t)=>e?setImmediate:t?((n,i)=>(Au.addEventListener("message",({source:o,data:s})=>{o===Au&&s===n&&i.length&&i.shift()()},!1),o=>{i.push(o),Au.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Vo(Au.postMessage)),mtt=typeof queueMicrotask<"u"?queueMicrotask.bind(Au):typeof process<"u"&&process.nextTick||GZ,ut={isArray:im,isArrayBuffer:FZ,isBuffer:Pet,isFormData:Fet,isArrayBufferView:Oet,isString:Let,isNumber:VZ,isBoolean:Det,isObject:Ew,isPlainObject:Ik,isReadableStream:Het,isRequest:Wet,isResponse:Uet,isHeaders:Zet,isUndefined:Wv,isDate:Net,isFile:jet,isBlob:zet,isRegExp:ott,isFunction:Vo,isStream:Bet,isURLSearchParams:Vet,isTypedArray:ett,isFileList:Ret,forEach:$1,merge:ZM,extend:Yet,trim:Get,stripBOM:Xet,inherits:Ket,toFlatObject:Jet,kindOf:$w,kindOfTest:Ks,endsWith:qet,toArray:Qet,forEachEntry:ttt,matchAll:ntt,isHTMLForm:itt,hasOwnProperty:rj,hasOwnProp:rj,reduceDescriptors:UZ,freezeMethods:stt,toObjectSet:att,toCamelCase:rtt,noop:ltt,toFiniteNumber:ctt,findKey:HZ,global:Au,isContextDefined:WZ,ALPHABET:ZZ,generateString:utt,isSpecCompliantForm:dtt,toJSONObject:ftt,isAsyncFn:htt,isThenable:ptt,setImmediate:GZ,asap:mtt};function gn(e,t,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o,this.status=o.status?o.status:null)}ut.inherits(gn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ut.toJSONObject(this.config),code:this.code,status:this.status}}});const YZ=gn.prototype,XZ={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{XZ[e]={value:e}});Object.defineProperties(gn,XZ);Object.defineProperty(YZ,"isAxiosError",{value:!0});gn.from=(e,t,n,i,o,s)=>{const r=Object.create(YZ);return ut.toFlatObject(e,r,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),gn.call(r,e.message,t,n,i,o),r.cause=e,r.name=e.name,s&&Object.assign(r,s),r};const vtt=null;function GM(e){return ut.isPlainObject(e)||ut.isArray(e)}function KZ(e){return ut.endsWith(e,"[]")?e.slice(0,-2):e}function sj(e,t,n){return e?e.concat(t).map(function(o,s){return o=KZ(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function gtt(e){return ut.isArray(e)&&!e.some(GM)}const ytt=ut.toFlatObject(ut,{},null,function(t){return/^is[A-Z]/.test(t)});function Mw(e,t,n){if(!ut.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ut.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,y){return!ut.isUndefined(y[A])});const i=n.metaTokens,o=n.visitor||l,s=n.dots,r=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&ut.isSpecCompliantForm(t);if(!ut.isFunction(o))throw new TypeError("visitor must be a function");function c(_){if(_===null)return"";if(ut.isDate(_))return _.toISOString();if(!u&&ut.isBlob(_))throw new gn("Blob is not supported. Use a Buffer instead.");return ut.isArrayBuffer(_)||ut.isTypedArray(_)?u&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function l(_,A,y){let d=_;if(_&&!y&&typeof _=="object"){if(ut.endsWith(A,"{}"))A=i?A:A.slice(0,-2),_=JSON.stringify(_);else if(ut.isArray(_)&&gtt(_)||(ut.isFileList(_)||ut.endsWith(A,"[]"))&&(d=ut.toArray(_)))return A=KZ(A),d.forEach(function(m,f){!(ut.isUndefined(m)||m===null)&&t.append(r===!0?sj([A],f,s):r===null?A:A+"[]",c(m))}),!1}return GM(_)?!0:(t.append(sj(y,A,s),c(_)),!1)}const g=[],C=Object.assign(ytt,{defaultVisitor:l,convertValue:c,isVisitable:GM});function S(_,A){if(!ut.isUndefined(_)){if(g.indexOf(_)!==-1)throw Error("Circular reference detected in "+A.join("."));g.push(_),ut.forEach(_,function(d,v){(!(ut.isUndefined(d)||d===null)&&o.call(t,d,ut.isString(v)?v.trim():v,A,C))===!0&&S(d,A?A.concat(v):[v])}),g.pop()}}if(!ut.isObject(e))throw new TypeError("data must be an object");return S(e),t}function aj(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function pO(e,t){this._pairs=[],e&&Mw(e,this,t)}const JZ=pO.prototype;JZ.append=function(t,n){this._pairs.push([t,n])};JZ.toString=function(t){const n=t?function(i){return t.call(this,i,aj)}:aj;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function btt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function qZ(e,t,n){if(!t)return e;const i=n&&n.encode||btt,o=n&&n.serialize;let s;if(o?s=o(t,n):s=ut.isURLSearchParams(t)?t.toString():new pO(t,n).toString(i),s){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class ktt{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ut.forEach(this.handlers,function(i){i!==null&&t(i)})}}const lj=ktt,QZ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ctt=typeof URLSearchParams<"u"?URLSearchParams:pO,Stt=typeof FormData<"u"?FormData:null,wtt=typeof Blob<"u"?Blob:null,_tt={isBrowser:!0,classes:{URLSearchParams:Ctt,FormData:Stt,Blob:wtt},protocols:["http","https","file","blob","url","data"]},mO=typeof window<"u"&&typeof document<"u",YM=typeof navigator=="object"&&navigator||void 0,Itt=mO&&(!YM||["ReactNative","NativeScript","NS"].indexOf(YM.product)<0),xtt=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),$tt=mO&&window.location.href||"http://localhost",Att=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:mO,hasStandardBrowserEnv:Itt,hasStandardBrowserWebWorkerEnv:xtt,navigator:YM,origin:$tt},Symbol.toStringTag,{value:"Module"})),xo={...Att,..._tt};function Ett(e,t){return Mw(e,new xo.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,s){return xo.isNode&&ut.isBuffer(n)?(this.append(i,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Mtt(e){return ut.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ttt(e){const t={},n=Object.keys(e);let i;const o=n.length;let s;for(i=0;i<o;i++)s=n[i],t[s]=e[s];return t}function eG(e){function t(n,i,o,s){let r=n[s++];if(r==="__proto__")return!0;const a=Number.isFinite(+r),u=s>=n.length;return r=!r&&ut.isArray(o)?o.length:r,u?(ut.hasOwnProp(o,r)?o[r]=[o[r],i]:o[r]=i,!a):((!o[r]||!ut.isObject(o[r]))&&(o[r]=[]),t(n,i,o[r],s)&&ut.isArray(o[r])&&(o[r]=Ttt(o[r])),!a)}if(ut.isFormData(e)&&ut.isFunction(e.entries)){const n={};return ut.forEachEntry(e,(i,o)=>{t(Mtt(i),o,n,0)}),n}return null}function Ptt(e,t,n){if(ut.isString(e))try{return(t||JSON.parse)(e),ut.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const vO={transitional:QZ,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",o=i.indexOf("application/json")>-1,s=ut.isObject(t);if(s&&ut.isHTMLForm(t)&&(t=new FormData(t)),ut.isFormData(t))return o?JSON.stringify(eG(t)):t;if(ut.isArrayBuffer(t)||ut.isBuffer(t)||ut.isStream(t)||ut.isFile(t)||ut.isBlob(t)||ut.isReadableStream(t))return t;if(ut.isArrayBufferView(t))return t.buffer;if(ut.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Ett(t,this.formSerializer).toString();if((a=ut.isFileList(t))||i.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Mw(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Ptt(t)):t}],transformResponse:[function(t){const n=this.transitional||vO.transitional,i=n&&n.forcedJSONParsing,o=this.responseType==="json";if(ut.isResponse(t)||ut.isReadableStream(t))return t;if(t&&ut.isString(t)&&(i&&!this.responseType||o)){const r=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(r)throw a.name==="SyntaxError"?gn.from(a,gn.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xo.classes.FormData,Blob:xo.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ut.forEach(["delete","get","head","post","put","patch"],e=>{vO.headers[e]={}});const gO=vO,Ott=ut.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ltt=e=>{const t={};let n,i,o;return e&&e.split(`
  1319. `).forEach(function(r){o=r.indexOf(":"),n=r.substring(0,o).trim().toLowerCase(),i=r.substring(o+1).trim(),!(!n||t[n]&&Ott[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},cj=Symbol("internals");function Em(e){return e&&String(e).trim().toLowerCase()}function xk(e){return e===!1||e==null?e:ut.isArray(e)?e.map(xk):String(e)}function Dtt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const Ntt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function AA(e,t,n,i,o){if(ut.isFunction(i))return i.call(this,t,n);if(o&&(t=n),!!ut.isString(t)){if(ut.isString(i))return t.indexOf(i)!==-1;if(ut.isRegExp(i))return i.test(t)}}function jtt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function ztt(e,t){const n=ut.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(o,s,r){return this[i].call(this,t,o,s,r)},configurable:!0})})}class Tw{constructor(t){t&&this.set(t)}set(t,n,i){const o=this;function s(a,u,c){const l=Em(u);if(!l)throw new Error("header name must be a non-empty string");const g=ut.findKey(o,l);(!g||o[g]===void 0||c===!0||c===void 0&&o[g]!==!1)&&(o[g||u]=xk(a))}const r=(a,u)=>ut.forEach(a,(c,l)=>s(c,l,u));if(ut.isPlainObject(t)||t instanceof this.constructor)r(t,n);else if(ut.isString(t)&&(t=t.trim())&&!Ntt(t))r(Ltt(t),n);else if(ut.isHeaders(t))for(const[a,u]of t.entries())s(u,a,i);else t!=null&&s(n,t,i);return this}get(t,n){if(t=Em(t),t){const i=ut.findKey(this,t);if(i){const o=this[i];if(!n)return o;if(n===!0)return Dtt(o);if(ut.isFunction(n))return n.call(this,o,i);if(ut.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Em(t),t){const i=ut.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||AA(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let o=!1;function s(r){if(r=Em(r),r){const a=ut.findKey(i,r);a&&(!n||AA(i,i[a],a,n))&&(delete i[a],o=!0)}}return ut.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let i=n.length,o=!1;for(;i--;){const s=n[i];(!t||AA(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,i={};return ut.forEach(this,(o,s)=>{const r=ut.findKey(i,s);if(r){n[r]=xk(o),delete n[s];return}const a=t?jtt(s):String(s).trim();a!==s&&delete n[s],n[a]=xk(o),i[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ut.forEach(this,(i,o)=>{i!=null&&i!==!1&&(n[o]=t&&ut.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
  1320. `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(o=>i.set(o)),i}static accessor(t){const i=(this[cj]=this[cj]={accessors:{}}).accessors,o=this.prototype;function s(r){const a=Em(r);i[a]||(ztt(o,r),i[a]=!0)}return ut.isArray(t)?t.forEach(s):s(t),this}}Tw.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ut.reduceDescriptors(Tw.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});ut.freezeMethods(Tw);const Vs=Tw;function EA(e,t){const n=this||gO,i=t||n,o=Vs.from(i.headers);let s=i.data;return ut.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function tG(e){return!!(e&&e.__CANCEL__)}function rm(e,t,n){gn.call(this,e??"canceled",gn.ERR_CANCELED,t,n),this.name="CanceledError"}ut.inherits(rm,gn,{__CANCEL__:!0});function nG(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new gn("Request failed with status code "+n.status,[gn.ERR_BAD_REQUEST,gn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Rtt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Btt(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o=0,s=0,r;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),l=i[s];r||(r=c),n[o]=u,i[o]=c;let g=s,C=0;for(;g!==o;)C+=n[g++],g=g%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-r<t)return;const S=l&&c-l;return S?Math.round(C*1e3/S):void 0}}function Ftt(e,t){let n=0,i=1e3/t,o,s;const r=(c,l=Date.now())=>{n=l,o=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const l=Date.now(),g=l-n;g>=i?r(c,l):(o=c,s||(s=setTimeout(()=>{s=null,r(o)},i-g)))},()=>o&&r(o)]}const yC=(e,t,n=3)=>{let i=0;const o=Btt(50,250);return Ftt(s=>{const r=s.loaded,a=s.lengthComputable?s.total:void 0,u=r-i,c=o(u),l=r<=a;i=r;const g={loaded:r,total:a,progress:a?r/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&l?(a-r)/c:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(g)},n)},uj=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},dj=e=>(...t)=>ut.asap(()=>e(...t)),Vtt=xo.hasStandardBrowserEnv?function(){const t=xo.navigator&&/(msie|trident)/i.test(xo.navigator.userAgent),n=document.createElement("a");let i;function o(s){let r=s;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(r){const a=ut.isString(r)?o(r):r;return a.protocol===i.protocol&&a.host===i.host}}():function(){return function(){return!0}}(),Htt=xo.hasStandardBrowserEnv?{write(e,t,n,i,o,s){const r=[e+"="+encodeURIComponent(t)];ut.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),ut.isString(i)&&r.push("path="+i),ut.isString(o)&&r.push("domain="+o),s===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Wtt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Utt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function iG(e,t){return e&&!Wtt(t)?Utt(e,t):t}const fj=e=>e instanceof Vs?{...e}:e;function of(e,t){t=t||{};const n={};function i(c,l,g){return ut.isPlainObject(c)&&ut.isPlainObject(l)?ut.merge.call({caseless:g},c,l):ut.isPlainObject(l)?ut.merge({},l):ut.isArray(l)?l.slice():l}function o(c,l,g){if(ut.isUndefined(l)){if(!ut.isUndefined(c))return i(void 0,c,g)}else return i(c,l,g)}function s(c,l){if(!ut.isUndefined(l))return i(void 0,l)}function r(c,l){if(ut.isUndefined(l)){if(!ut.isUndefined(c))return i(void 0,c)}else return i(void 0,l)}function a(c,l,g){if(g in t)return i(c,l);if(g in e)return i(void 0,c)}const u={url:s,method:s,data:s,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:a,headers:(c,l)=>o(fj(c),fj(l),!0)};return ut.forEach(Object.keys(Object.assign({},e,t)),function(l){const g=u[l]||o,C=g(e[l],t[l],l);ut.isUndefined(C)&&g!==a||(n[l]=C)}),n}const rG=e=>{const t=of({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:r,auth:a}=t;t.headers=r=Vs.from(r),t.url=qZ(iG(t.baseURL,t.url),e.params,e.paramsSerializer),a&&r.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(ut.isFormData(n)){if(xo.hasStandardBrowserEnv||xo.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if((u=r.getContentType())!==!1){const[c,...l]=u?u.split(";").map(g=>g.trim()).filter(Boolean):[];r.setContentType([c||"multipart/form-data",...l].join("; "))}}if(xo.hasStandardBrowserEnv&&(i&&ut.isFunction(i)&&(i=i(t)),i||i!==!1&&Vtt(t.url))){const c=o&&s&&Htt.read(s);c&&r.set(o,c)}return t},Ztt=typeof XMLHttpRequest<"u",Gtt=Ztt&&function(e){return new Promise(function(n,i){const o=rG(e);let s=o.data;const r=Vs.from(o.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=o,l,g,C,S,_;function A(){S&&S(),_&&_(),o.cancelToken&&o.cancelToken.unsubscribe(l),o.signal&&o.signal.removeEventListener("abort",l)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function d(){if(!y)return;const m=Vs.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),p={data:!a||a==="text"||a==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:m,config:e,request:y};nG(function(b){n(b),A()},function(b){i(b),A()},p),y=null}"onloadend"in y?y.onloadend=d:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(d)},y.onabort=function(){y&&(i(new gn("Request aborted",gn.ECONNABORTED,e,y)),y=null)},y.onerror=function(){i(new gn("Network Error",gn.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let f=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const p=o.transitional||QZ;o.timeoutErrorMessage&&(f=o.timeoutErrorMessage),i(new gn(f,p.clarifyTimeoutError?gn.ETIMEDOUT:gn.ECONNABORTED,e,y)),y=null},s===void 0&&r.setContentType(null),"setRequestHeader"in y&&ut.forEach(r.toJSON(),function(f,p){y.setRequestHeader(p,f)}),ut.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),a&&a!=="json"&&(y.responseType=o.responseType),c&&([C,_]=yC(c,!0),y.addEventListener("progress",C)),u&&y.upload&&([g,S]=yC(u),y.upload.addEventListener("progress",g),y.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(l=m=>{y&&(i(!m||m.type?new rm(null,e,y):m),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(l),o.signal&&(o.signal.aborted?l():o.signal.addEventListener("abort",l)));const v=Rtt(o.url);if(v&&xo.protocols.indexOf(v)===-1){i(new gn("Unsupported protocol "+v+":",gn.ERR_BAD_REQUEST,e));return}y.send(s||null)})},Ytt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let i=new AbortController,o;const s=function(c){if(!o){o=!0,a();const l=c instanceof Error?c:this.reason;i.abort(l instanceof gn?l:new rm(l instanceof Error?l.message:l))}};let r=t&&setTimeout(()=>{r=null,s(new gn(`timeout ${t} of ms exceeded`,gn.ETIMEDOUT))},t);const a=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>c.addEventListener("abort",s));const{signal:u}=i;return u.unsubscribe=()=>ut.asap(a),u}},Xtt=Ytt,Ktt=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let i=0,o;for(;i<n;)o=i+t,yield e.slice(i,o),i=o},Jtt=async function*(e,t){for await(const n of qtt(e))yield*Ktt(n,t)},qtt=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:i}=await t.read();if(n)break;yield i}}finally{await t.cancel()}},hj=(e,t,n,i)=>{const o=Jtt(e,t);let s=0,r,a=u=>{r||(r=!0,i&&i(u))};return new ReadableStream({async pull(u){try{const{done:c,value:l}=await o.next();if(c){a(),u.close();return}let g=l.byteLength;if(n){let C=s+=g;n(C)}u.enqueue(new Uint8Array(l))}catch(c){throw a(c),c}},cancel(u){return a(u),o.return()}},{highWaterMark:2})},Pw=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",oG=Pw&&typeof ReadableStream=="function",Qtt=Pw&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),sG=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ent=oG&&sG(()=>{let e=!1;const t=new Request(xo.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),pj=64*1024,XM=oG&&sG(()=>ut.isReadableStream(new Response("").body)),bC={stream:XM&&(e=>e.body)};Pw&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!bC[t]&&(bC[t]=ut.isFunction(e[t])?n=>n[t]():(n,i)=>{throw new gn(`Response type '${t}' is not supported`,gn.ERR_NOT_SUPPORT,i)})})})(new Response);const tnt=async e=>{if(e==null)return 0;if(ut.isBlob(e))return e.size;if(ut.isSpecCompliantForm(e))return(await new Request(xo.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ut.isArrayBufferView(e)||ut.isArrayBuffer(e))return e.byteLength;if(ut.isURLSearchParams(e)&&(e=e+""),ut.isString(e))return(await Qtt(e)).byteLength},nnt=async(e,t)=>{const n=ut.toFiniteNumber(e.getContentLength());return n??tnt(t)},int=Pw&&(async e=>{let{url:t,method:n,data:i,signal:o,cancelToken:s,timeout:r,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:l,withCredentials:g="same-origin",fetchOptions:C}=rG(e);c=c?(c+"").toLowerCase():"text";let S=Xtt([o,s&&s.toAbortSignal()],r),_;const A=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let y;try{if(u&&ent&&n!=="get"&&n!=="head"&&(y=await nnt(l,i))!==0){let p=new Request(t,{method:"POST",body:i,duplex:"half"}),h;if(ut.isFormData(i)&&(h=p.headers.get("content-type"))&&l.setContentType(h),p.body){const[b,w]=uj(y,yC(dj(u)));i=hj(p.body,pj,b,w)}}ut.isString(g)||(g=g?"include":"omit");const d="credentials"in Request.prototype;_=new Request(t,{...C,signal:S,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:i,duplex:"half",credentials:d?g:void 0});let v=await fetch(_);const m=XM&&(c==="stream"||c==="response");if(XM&&(a||m&&A)){const p={};["status","statusText","headers"].forEach(k=>{p[k]=v[k]});const h=ut.toFiniteNumber(v.headers.get("content-length")),[b,w]=a&&uj(h,yC(dj(a),!0))||[];v=new Response(hj(v.body,pj,b,()=>{w&&w(),A&&A()}),p)}c=c||"text";let f=await bC[ut.findKey(bC,c)||"text"](v,e);return!m&&A&&A(),await new Promise((p,h)=>{nG(p,h,{data:f,headers:Vs.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:_})})}catch(d){throw A&&A(),d&&d.name==="TypeError"&&/fetch/i.test(d.message)?Object.assign(new gn("Network Error",gn.ERR_NETWORK,e,_),{cause:d.cause||d}):gn.from(d,d&&d.code,e,_)}}),KM={http:vtt,xhr:Gtt,fetch:int};ut.forEach(KM,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const mj=e=>`- ${e}`,rnt=e=>ut.isFunction(e)||e===null||e===!1,aG={getAdapter:e=>{e=ut.isArray(e)?e:[e];const{length:t}=e;let n,i;const o={};for(let s=0;s<t;s++){n=e[s];let r;if(i=n,!rnt(n)&&(i=KM[(r=String(n)).toLowerCase()],i===void 0))throw new gn(`Unknown adapter '${r}'`);if(i)break;o[r||"#"+s]=i}if(!i){const s=Object.entries(o).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=t?s.length>1?`since :
  1321. `+s.map(mj).join(`
  1322. `):" "+mj(s[0]):"as no adapter specified";throw new gn("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return i},adapters:KM};function MA(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rm(null,e)}function vj(e){return MA(e),e.headers=Vs.from(e.headers),e.data=EA.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),aG.getAdapter(e.adapter||gO.adapter)(e).then(function(i){return MA(e),i.data=EA.call(e,e.transformResponse,i),i.headers=Vs.from(i.headers),i},function(i){return tG(i)||(MA(e),i&&i.response&&(i.response.data=EA.call(e,e.transformResponse,i.response),i.response.headers=Vs.from(i.response.headers))),Promise.reject(i)})}const lG="1.7.7",yO={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yO[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const gj={};yO.transitional=function(t,n,i){function o(s,r){return"[Axios v"+lG+"] Transitional option '"+s+"'"+r+(i?". "+i:"")}return(s,r,a)=>{if(t===!1)throw new gn(o(r," has been removed"+(n?" in "+n:"")),gn.ERR_DEPRECATED);return n&&!gj[r]&&(gj[r]=!0,console.warn(o(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,r,a):!0}};function ont(e,t,n){if(typeof e!="object")throw new gn("options must be an object",gn.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const s=i[o],r=t[s];if(r){const a=e[s],u=a===void 0||r(a,s,e);if(u!==!0)throw new gn("option "+s+" must be "+u,gn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new gn("Unknown option "+s,gn.ERR_BAD_OPTION)}}const JM={assertOptions:ont,validators:yO},Xl=JM.validators;class kC{constructor(t){this.defaults=t,this.interceptors={request:new lj,response:new lj}}async request(t,n){try{return await this._request(t,n)}catch(i){if(i instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{i.stack?s&&!String(i.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(i.stack+=`
  1323. `+s):i.stack=s}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=of(this.defaults,n);const{transitional:i,paramsSerializer:o,headers:s}=n;i!==void 0&&JM.assertOptions(i,{silentJSONParsing:Xl.transitional(Xl.boolean),forcedJSONParsing:Xl.transitional(Xl.boolean),clarifyTimeoutError:Xl.transitional(Xl.boolean)},!1),o!=null&&(ut.isFunction(o)?n.paramsSerializer={serialize:o}:JM.assertOptions(o,{encode:Xl.function,serialize:Xl.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=s&&ut.merge(s.common,s[n.method]);s&&ut.forEach(["delete","get","head","post","put","patch","common"],_=>{delete s[_]}),n.headers=Vs.concat(r,s);const a=[];let u=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(n)===!1||(u=u&&A.synchronous,a.unshift(A.fulfilled,A.rejected))});const c=[];this.interceptors.response.forEach(function(A){c.push(A.fulfilled,A.rejected)});let l,g=0,C;if(!u){const _=[vj.bind(this),void 0];for(_.unshift.apply(_,a),_.push.apply(_,c),C=_.length,l=Promise.resolve(n);g<C;)l=l.then(_[g++],_[g++]);return l}C=a.length;let S=n;for(g=0;g<C;){const _=a[g++],A=a[g++];try{S=_(S)}catch(y){A.call(this,y);break}}try{l=vj.call(this,S)}catch(_){return Promise.reject(_)}for(g=0,C=c.length;g<C;)l=l.then(c[g++],c[g++]);return l}getUri(t){t=of(this.defaults,t);const n=iG(t.baseURL,t.url);return qZ(n,t.params,t.paramsSerializer)}}ut.forEach(["delete","get","head","options"],function(t){kC.prototype[t]=function(n,i){return this.request(of(i||{},{method:t,url:n,data:(i||{}).data}))}});ut.forEach(["post","put","patch"],function(t){function n(i){return function(s,r,a){return this.request(of(a||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:s,data:r}))}}kC.prototype[t]=n(),kC.prototype[t+"Form"]=n(!0)});const $k=kC;class bO{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const i=this;this.promise.then(o=>{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](o);i._listeners=null}),this.promise.then=o=>{let s;const r=new Promise(a=>{i.subscribe(a),s=a}).then(o);return r.cancel=function(){i.unsubscribe(s)},r},t(function(s,r,a){i.reason||(i.reason=new rm(s,r,a),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new bO(function(o){t=o}),cancel:t}}}const snt=bO;function ant(e){return function(n){return e.apply(null,n)}}function lnt(e){return ut.isObject(e)&&e.isAxiosError===!0}const qM={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qM).forEach(([e,t])=>{qM[t]=e});const cnt=qM;function cG(e){const t=new $k(e),n=BZ($k.prototype.request,t);return ut.extend(n,$k.prototype,t,{allOwnKeys:!0}),ut.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return cG(of(e,o))},n}const Ki=cG(gO);Ki.Axios=$k;Ki.CanceledError=rm;Ki.CancelToken=snt;Ki.isCancel=tG;Ki.VERSION=lG;Ki.toFormData=Mw;Ki.AxiosError=gn;Ki.Cancel=Ki.CanceledError;Ki.all=function(t){return Promise.all(t)};Ki.spread=ant;Ki.isAxiosError=lnt;Ki.mergeConfig=of;Ki.AxiosHeaders=Vs;Ki.formToJSON=e=>eG(ut.isHTMLForm(e)?new FormData(e):e);Ki.getAdapter=aG.getAdapter;Ki.HttpStatusCode=cnt;Ki.default=Ki;const unt=Ki,Fi=unt.create({withCredentials:!0,timeout:3e5,headers:{"Content-Type":"application/json"}});Fi.interceptors.request.use(e=>(Ol.setLoading(!0),Ol.read("token")&&(e.headers.Authorization=`Bearer ${Ol.read("token")}`),e),e=>(console.error(e),Promise.reject(e)));const dnt=e=>(e==null?void 0:e.status)==401?(Rp.Message.error({content:"登录已过期,请重新登录",duration:2e3}),setTimeout(()=>{Iw.push("/login")},2e3),Ol.setLoading(!1),!0):!1,fnt=e=>{if((e==null?void 0:e.status)!==403)return e};Fi.interceptors.response.use(e=>{const{code:t,data:n,msg:i}=e.data;return Ol.setLoading(!1),t===200?n:(Rp.Message.error({content:i,duration:1500}),!1)},e=>{dnt(e.response)||(fnt(e.response),Ol.setLoading(!1),Rp.Message.error({content:"网络异常,请稍后重试",duration:1500}))});const hnt=()=>Fi.get("/app-api/member/user/get"),pnt=(e,t)=>Fi.post("/api/auth/login",{username:e,password:t}),mnt=(e,t)=>Fi.post("/api/auth/register",{username:e,password:t}),vnt=()=>Fi.get("/api/auth/token"),gnt={login:pnt,register:mnt,getToken:vnt,getInfo:hnt},ynt=()=>Fi.get("/api/agent/list"),bnt=e=>Fi.get(`/api/report/variables/list?agent_id=${e}`),knt={getAgents:ynt,getVariables:bnt},Cnt=e=>Fi.post("/app-api/ai/knowledge-base/userPage",{current:e,size:10}),Snt=e=>Fi.get(`/app-api/ai/knowledge-base/detail/${e}`),wnt=e=>Fi.get(`/app-api/ai/knowledge-file/file/getUploadTaskData/${e}`),_nt=(e,t)=>Fi.post("/app-api/ai/knowledge-base/createKnowledge",{knowledgeType:e,name:t}),Int=(e,t)=>Fi.post("/app-api/ai/knowledge-file/file/uploadBatch",t,{params:{knowledgeId:e},headers:{"Content-Type":"multipart/form-data"}}),xnt={createKnowledge:_nt,getKnowledges:Cnt,getKnowledge:Snt,uploadFiles:Int,getTask:wnt},$nt=e=>Fi.get(`/app-api/ai/knowledge-file/file/getById/${e}`),Ant=e=>Fi.get(`/app-api/ai/dialogue/guideOrBrainMap/${e}`),Ent={getDocument:$nt,getGuideOrBrainMap:Ant},Mnt=(e,t,n,i)=>{const o=i==="report"?"report":"chat",s=i==="excel"?`ws://${location.host}/api/document/ws/excel`:`ws://${location.host}/api/${o}/ws/${t}/${n}?token=${e}`,r=new WebSocket(s);return r.onopen=function(a){console.log("WebSocket 连接已打开")},r.onclose=function(a){console.log(a.code)},r.onerror=function(a){console.error("WebSocket 出错: ",a)},r},Tnt=e=>Fi.get(`/api/agent/get-chat-id/${e}`),Pnt=e=>Fi.get(`/api/agent/${e}/sessions`),Ont=(e,t)=>Fi.get(`/api/agent/${e}/${t}/session_log`),Lnt={create:Mnt,createDialog:Tnt,getDialogs:Pnt,getHistoryLogs:Ont},Dnt=(e,t)=>Fi.post(`/api/files/upload/${e}`,t,{headers:{"Content-Type":"multipart/form-data"}}),Nnt=e=>Fi.post("/api/document/excel/upload",e,{headers:{"Content-Type":"multipart/form-data"}}),jnt=(e,t,n)=>Fi.post(`/api/files/upload/${e}?chat_id=${t}`,n,{headers:{"Content-Type":"multipart/form-data"}}),znt={uploadFile:jnt,uploadFiles:Dnt,uploadExcels:Nnt},uG={user:gnt,agent:knt,knowledge:xnt,document:Ent,message:Lnt,file:znt},yj=DZ(),dG=()=>{if(window.localStorage.tokenMap){const e=new Date().getTime(),t=JSON.parse(window.localStorage.tokenMap),n=t.expiresTime-e;setTimeout(async()=>{const i=await uG.user.refreshToken(t.refreshToken);i?(window.localStorage.tokenMap=JSON.stringify(i),dG()):(QM.goLink("login"),QM.message("error","请重新登录"))},n)}},Rnt=()=>{window.localStorage.xintongxiaoshu=""},Bnt=(e,t)=>{window.localStorage.xintongxiaoshu||(window.localStorage.xintongxiaoshu="{}");const n=JSON.parse(window.localStorage.xintongxiaoshu),i=typeof t=="string"?t:JSON.stringify(t);n[e]=i,window.localStorage.xintongxiaoshu=JSON.stringify(n)},Fnt=e=>{let t,n;try{n=JSON.parse(window.localStorage.xintongxiaoshu)[e],t=JSON.parse(n)}catch{t=n||null}return t},QM=(e,t)=>({webSocket:null,read:Fnt,write:Bnt,reset:Rnt,dialogConfig:{isQuestion:!1,selectedKeys:[],type:"answer"},$bus:yj,getToken:dG,goLink(n,i={}){e.push({path:n,query:i})},copyText(n,i){Eet(n).then(()=>{t.Message.success({content:i,duration:1500})})},shuffleArray(n){return n.sort(()=>Math.random()-.5),n},goBack(){e.go(-1)},message(n,i){t.Message[n]({content:i,duration:1500})},setLoading(n=!1){yj.emit("set-loading",n)},formatSize(n){return n<1024?n+"B":n<1048576?(n/1024).toFixed(2)+"KB":n<1073741824?(n/1048576).toFixed(2)+"MB":(n/1073741824).toFixed(2)+"GB"},getAssetURL(n){return new URL(n,import.meta.url).href},setDialog(n=!1,i,o=()=>{},s=()=>{}){if(n){const r=document.getRootNode().body,a=document.createElement("div");a.id="all-screen-dialog",a.style="width:100vw;height:100vh;z-index:9999;position:absolute;top:0",a.append(i),r.append(a),o(),a.addEventListener("click",u=>{i.contains(u.target)||(a.remove(),s())},!0)}else document.getElementById("all-screen-dialog").remove()}}),Ol=QM(Iw,Rp),Vnt={defaultTitle:"信通小数",defaultDesc:"大模型AI能力平台,为你的下一个创意助力",slider:[{id:2,title:"知识问答",icon:"5",img:"/src/assets/index/5.png",desc:"遍历已创建的文档知识库,生成完整和准确的答案,同时显示来源文档供您参考",dialog:"垂域知识的问答助手,针对你的提问,我们将遍历已创建的文档知识库,生成完整和准确的答案,同时显示来源文档供您参考。"},{id:3,title:"文档智能",icon:"7",img:"/src/assets/index/7.png",desc:"个人知识库的问答助手,基于您上传的文档进行问答,支持多文档",dialog:"个人知识库的问答助手,基于您上传的文档进行问答,支持多文档,大小在30M以内。"},{id:4,title:"智能问答",icon:"1",img:"/src/assets/index/1.png",desc:"能够理解和学习人类的语言,具备多轮对话的能力",dialog:"我可以理解和学习人类的语言,具备多轮对话的能力,现在和我开始交流吧~"},{id:5,title:"智能数据",icon:"8",img:"/src/assets/index/8.png",desc:"您可以上传文档或添加数据库地址,小数可针对你文档的数据进行分析,并生成指定的图表",dialog:"您可以上传文档或添加数据库地址,小数可针对你文档的数据进行分析,并生成指定的图表"},{id:6,title:"小数绘图",icon:"7",img:"/src/assets/index/7.png",desc:"基于您上传的图片,生成对应的文字描述并基于图片内容实现问答。",dialog:"基于您上传的图片,生成对应的文字描述并基于图片内容实现问答。"},{id:7,title:"文档出卷",icon:"6",img:"/src/assets/index/6.png",desc:"您可以上传文档,小数能针对单文档或多个文档内容自动出题,高效便捷的帮助你建立私人题库。",dialog:"您可以上传文档,小数能针对单文档或多个文档内容自动出题,高效便捷的帮助你建立私人题库。"},{id:8,title:"出题组卷",icon:"6",img:"/src/assets/index/6.png",desc:"您可以上传文档,小数能针对单文档或多个文档内容自动出题,高效便捷的帮助你建立私人题库。",dialog:"您可以上传文档,小数能针对单文档或多个文档内容自动出题,高效便捷的帮助你建立私人题库。"}]};var fG=!1,Hnt=!0,Wnt=void 0;function Unt(){}function Znt(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Gnt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}const yst=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:ST,BaseTransitionPropsValidators:xS,Comment:Pi,DeprecationTypes:aB,EffectScope:vS,ErrorCodes:Nz,ErrorTypeStrings:tB,Fragment:ft,KeepAlive:nR,ReactiveEffect:Pp,Static:Gc,Suspense:zR,Teleport:Yp,Text:xa,TrackOpTypes:Tz,Transition:Pr,TransitionGroup:lf,TriggerOpTypes:Pz,Vue:nte,Vue2:Wnt,VueElement:u1,assertNumber:Dz,callWithAsyncErrorHandling:Ho,callWithErrorHandling:af,camelize:br,capitalize:Zp,cloneVNode:Tr,compatUtils:sB,compile:TB,computed:P,createApp:Kc,createBlock:We,createCommentVNode:Re,createElementBlock:X,createElementVNode:B,createHydrationRenderer:NT,createPropsRestProxy:yR,createRenderer:DT,createSSRApp:KT,createSlots:ti,createStaticVNode:Xp,createTextVNode:pt,createVNode:O,customRef:bT,defineAsyncComponent:tR,defineComponent:se,defineCustomElement:ZT,defineEmits:aR,defineExpose:lR,defineModel:dR,defineOptions:cR,defineProps:sR,defineSSRCustomElement:gB,defineSlots:uR,del:Gnt,devtools:nB,effect:pz,effectScope:t1,getCurrentInstance:Vn,getCurrentScope:n1,getCurrentWatcher:Oz,getTransitionRawChildren:s1,guardReactiveProps:ir,h:Wn,handleError:iu,hasInjectionContext:OT,hydrate:$B,hydrateOnIdle:Jz,hydrateOnInteraction:eR,hydrateOnMediaQuery:Qz,hydrateOnVisible:qz,initCustomFormatter:qR,initDirectivesForSSR:MB,inject:Dt,install:Unt,isMemoSame:WT,isProxy:r1,isReactive:Bs,isReadonly:Ll,isRef:oi,isRuntimeOnly:XR,isShallow:Io,isVNode:On,isVue2:fG,isVue3:Hnt,markRaw:o1,mergeDefaults:vR,mergeModels:gR,mergeProps:Qe,nextTick:fn,normalizeClass:G,normalizeProps:Bn,normalizeStyle:Te,onActivated:_T,onBeforeMount:MS,onBeforeUnmount:ei,onBeforeUpdate:TS,onDeactivated:AS,onErrorCaptured:AT,onMounted:Yt,onRenderTracked:$T,onRenderTriggered:xT,onScopeDispose:gS,onServerPrefetch:IT,onUnmounted:$i,onUpdated:Bi,onWatcherCleanup:kT,openBlock:R,popScopeId:Vz,provide:cn,proxyRefs:wS,pushScopeId:Fz,queuePostFlushCb:Tv,reactive:it,readonly:i1,ref:he,registerRuntimeCompiler:YR,render:Ws,renderList:dn,renderSlot:He,resolveComponent:Pe,resolveDirective:PS,resolveDynamicComponent:Zr,resolveFilter:oB,resolveTransitionHooks:Gd,set:Znt,setBlockTracking:Rk,setDevtoolsHook:iB,setTransitionHooks:Aa,shallowReactive:CS,shallowReadonly:xz,shallowRef:Gp,ssrContextKey:zT,ssrUtils:rB,stop:mz,toDisplayString:tt,toHandlerKey:Xf,toHandlers:oR,toRaw:An,toRef:lo,toRefs:lt,toValue:Ez,transformVNodeArgs:HR,triggerRef:Az,unref:ji,useAttrs:pR,useCssModule:bB,useCssVars:vB,useHost:GT,useId:Kz,useModel:DR,useSSRContext:RT,useShadowRoot:yB,useSlots:hR,useTemplateRef:$S,useTransitionState:IS,vModelCheckbox:LS,vModelDynamic:XT,vModelRadio:DS,vModelSelect:YT,vModelText:Nv,vShow:ki,version:UT,warn:eB,watch:gt,watchEffect:Xi,watchPostEffect:BT,watchSyncEffect:FT,withAsyncContext:bR,withCtx:Ve,withDefaults:fR,withDirectives:gi,withKeys:_a,withMemo:QR,withModifiers:oo,withScopeId:Hz},Symbol.toStringTag,{value:"Module"}));/*!
  1324. * pinia v2.2.6
  1325. * (c) 2024 Eduardo San Martin Morote
  1326. * @license MIT
  1327. */let hG;const Ow=e=>hG=e,pG=Symbol();function eT(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Av;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Av||(Av={}));function Ynt(){const e=t1(!0),t=e.run(()=>he({}));let n=[],i=[];const o=o1({install(s){Ow(o),o._a=s,s.provide(pG,o),s.config.globalProperties.$pinia=o,i.forEach(r=>n.push(r)),i=[]},use(s){return!this._a&&!fG?i.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const mG=()=>{};function bj(e,t,n,i=mG){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),i())};return!n&&n1()&&gS(o),o}function $f(e,...t){e.slice().forEach(n=>{n(...t)})}const Xnt=e=>e(),kj=Symbol(),TA=Symbol();function tT(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,i)=>e.set(i,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const i=t[n],o=e[n];eT(o)&&eT(i)&&e.hasOwnProperty(n)&&!oi(i)&&!Bs(i)?e[n]=tT(o,i):e[n]=i}return e}const Knt=Symbol();function Jnt(e){return!eT(e)||!e.hasOwnProperty(Knt)}const{assign:tc}=Object;function qnt(e){return!!(oi(e)&&e.effect)}function Qnt(e,t,n,i){const{state:o,actions:s,getters:r}=t,a=n.state.value[e];let u;function c(){a||(n.state.value[e]=o?o():{});const l=lt(n.state.value[e]);return tc(l,s,Object.keys(r||{}).reduce((g,C)=>(g[C]=o1(P(()=>{Ow(n);const S=n._s.get(e);return r[C].call(S,S)})),g),{}))}return u=vG(e,c,t,n,i,!0),u}function vG(e,t,n={},i,o,s){let r;const a=tc({actions:{}},n),u={deep:!0};let c,l,g=[],C=[],S;const _=i.state.value[e];!s&&!_&&(i.state.value[e]={}),he({});let A;function y(w){let k;c=l=!1,typeof w=="function"?(w(i.state.value[e]),k={type:Av.patchFunction,storeId:e,events:S}):(tT(i.state.value[e],w),k={type:Av.patchObject,payload:w,storeId:e,events:S});const $=A=Symbol();fn().then(()=>{A===$&&(c=!0)}),l=!0,$f(g,k,i.state.value[e])}const d=s?function(){const{state:k}=n,$=k?k():{};this.$patch(E=>{tc(E,$)})}:mG;function v(){r.stop(),g=[],C=[],i._s.delete(e)}const m=(w,k="")=>{if(kj in w)return w[TA]=k,w;const $=function(){Ow(i);const E=Array.from(arguments),N=[],j=[];function z(H){N.push(H)}function V(H){j.push(H)}$f(C,{args:E,name:$[TA],store:p,after:z,onError:V});let W;try{W=w.apply(this&&this.$id===e?this:p,E)}catch(H){throw $f(j,H),H}return W instanceof Promise?W.then(H=>($f(N,H),H)).catch(H=>($f(j,H),Promise.reject(H))):($f(N,W),W)};return $[kj]=!0,$[TA]=k,$},f={_p:i,$id:e,$onAction:bj.bind(null,C),$patch:y,$reset:d,$subscribe(w,k={}){const $=bj(g,w,k.detached,()=>E()),E=r.run(()=>gt(()=>i.state.value[e],N=>{(k.flush==="sync"?l:c)&&w({storeId:e,type:Av.direct,events:S},N)},tc({},u,k)));return $},$dispose:v},p=it(f);i._s.set(e,p);const b=(i._a&&i._a.runWithContext||Xnt)(()=>i._e.run(()=>(r=t1()).run(()=>t({action:m}))));for(const w in b){const k=b[w];if(oi(k)&&!qnt(k)||Bs(k))s||(_&&Jnt(k)&&(oi(k)?k.value=_[w]:tT(k,_[w])),i.state.value[e][w]=k);else if(typeof k=="function"){const $=m(k,w);b[w]=$,a.actions[w]=k}}return tc(p,b),tc(An(p),b),Object.defineProperty(p,"$state",{get:()=>i.state.value[e],set:w=>{y(k=>{tc(k,w)})}}),i._p.forEach(w=>{tc(p,r.run(()=>w({store:p,app:i._a,pinia:i,options:a})))}),_&&s&&n.hydrate&&n.hydrate(p.$state,_),c=!0,l=!0,p}/*! #__NO_SIDE_EFFECTS__ */function eit(e,t,n){let i,o;const s=typeof t=="function";typeof e=="string"?(i=e,o=s?n:t):(o=e,i=e.id);function r(a,u){const c=OT();return a=a||(c?Dt(pG,null):null),a&&Ow(a),a=hG,a._s.has(i)||(s?vG(i,t,o,a):Qnt(i,o,a)),a._s.get(i)}return r.$id=i,r}const gG=DZ(),yG=Symbol("ROUTE_CHANGE");let Cj;function bst(e,t=!0){gG.on(yG,e),t&&Cj&&e(Cj)}function kst(){gG.off(yG)}const tit=eit("shareModel",{persist:!0,state:()=>({hrefUrl:""}),getters:{getkbObj(e){return{...e}}},actions:{getHrefUrl(e){this.hrefUrl=e}}}),Cst=tit,nit=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,iit=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,rit=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function oit(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){sit(e);return}return t}function sit(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function ait(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const i=n.toLowerCase();if(i==="true")return!0;if(i==="false")return!1;if(i==="undefined")return;if(i==="null")return null;if(i==="nan")return Number.NaN;if(i==="infinity")return Number.POSITIVE_INFINITY;if(i==="-infinity")return Number.NEGATIVE_INFINITY}if(!rit.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(nit.test(e)||iit.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,oit)}return JSON.parse(e)}catch(i){if(t.strict)throw i;return e}}function lit(e,t){if(e==null)return;let n=e;for(let i=0;i<t.length;i++){if(n==null||n[t[i]]==null)return;n=n[t[i]]}return n}function kO(e,t,n){if(n.length===0)return t;const i=n[0];return n.length>1&&(t=kO(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,i)?Number.isInteger(Number(n[1]))?[]:{}:e[i],t,Array.prototype.slice.call(n,1))),Number.isInteger(Number(i))&&Array.isArray(e)?e.slice()[i]:Object.assign({},e,{[i]:t})}function bG(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const n={};for(const i in e)n[i]=e[i];return delete n[t[0]],n}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const n={};for(const i in e)n[i]=e[i];return n}return kO(e,bG(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function kG(e,t){return t.map(n=>n.split(".")).map(n=>[n,lit(e,n)]).filter(n=>n[1]!==void 0).reduce((n,i)=>kO(n,i[1],i[0]),{})}function CG(e,t){return t.map(n=>n.split(".")).reduce((n,i)=>bG(n,i),e)}function Sj(e,{storage:t,serializer:n,key:i,debug:o,pick:s,omit:r,beforeHydrate:a,afterHydrate:u},c,l=!0){try{l&&(a==null||a(c));const g=t.getItem(i);if(g){const C=n.deserialize(g),S=s?kG(C,s):C,_=r?CG(S,r):S;e.$patch(_)}l&&(u==null||u(c))}catch(g){o&&console.error("[pinia-plugin-persistedstate]",g)}}function wj(e,{storage:t,serializer:n,key:i,debug:o,pick:s,omit:r}){try{const a=s?kG(e,s):e,u=r?CG(a,r):a,c=n.serialize(u);t.setItem(i,c)}catch(a){o&&console.error("[pinia-plugin-persistedstate]",a)}}function cit(e,t,n){const{pinia:i,store:o,options:{persist:s=n}}=e;if(!s)return;if(!(o.$id in i.state.value)){const u=i._s.get(o.$id.replace("__hot:",""));u&&Promise.resolve().then(()=>u.$persist());return}const a=(Array.isArray(s)?s:s===!0?[{}]:[s]).map(t);o.$hydrate=({runHooks:u=!0}={})=>{a.forEach(c=>{Sj(o,c,e,u)})},o.$persist=()=>{a.forEach(u=>{wj(o.$state,u)})},a.forEach(u=>{Sj(o,u,e),o.$subscribe((c,l)=>wj(l,u),{detached:!0})})}function uit(e={}){return function(t){cit(t,n=>({key:(e.key?e.key:i=>i)(n.key??t.store.$id),debug:n.debug??e.debug??!1,serializer:n.serializer??e.serializer??{serialize:i=>JSON.stringify(i),deserialize:i=>ait(i)},storage:n.storage??e.storage??window.localStorage,beforeHydrate:n.beforeHydrate,afterHydrate:n.afterHydrate,pick:n.pick,omit:n.omit}),e.auto??!1)}}var dit=uit();const SG=Ynt();SG.use(dit);/*!
  1328. * shared v10.0.4
  1329. * (c) 2024 kazuya kawaguchi
  1330. * Released under the MIT License.
  1331. */const CC=typeof window<"u",uu=(e,t=!1)=>t?Symbol.for(e):Symbol(e),fit=(e,t,n)=>hit({l:e,k:t,s:n}),hit=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),sr=e=>typeof e=="number"&&isFinite(e),pit=e=>CO(e)==="[object Date]",Vp=e=>CO(e)==="[object RegExp]",Lw=e=>Sn(e)&&Object.keys(e).length===0,lr=Object.assign;let _j;const Eu=()=>_j||(_j=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ij(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const mit=Object.prototype.hasOwnProperty;function SC(e,t){return mit.call(e,t)}const Oi=Array.isArray,pi=e=>typeof e=="function",Ut=e=>typeof e=="string",Fn=e=>typeof e=="boolean",Un=e=>e!==null&&typeof e=="object",vit=e=>Un(e)&&pi(e.then)&&pi(e.catch),wG=Object.prototype.toString,CO=e=>wG.call(e),Sn=e=>CO(e)==="[object Object]",git=e=>e==null?"":Oi(e)||Sn(e)&&e.toString===wG?JSON.stringify(e,null,2):String(e);function SO(e,t=""){return e.reduce((n,i,o)=>o===0?n+i:n+t+i,"")}function yit(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Ry=e=>!Un(e)||Oi(e);function Ak(e,t){if(Ry(e)||Ry(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:i,des:o}=n.pop();Object.keys(i).forEach(s=>{Un(i[s])&&!Un(o[s])&&(o[s]=Array.isArray(i[s])?[]:{}),Ry(o[s])||Ry(i[s])?o[s]=i[s]:n.push({src:i[s],des:o[s]})})}}/*!
  1332. * message-compiler v10.0.4
  1333. * (c) 2024 kazuya kawaguchi
  1334. * Released under the MIT License.
  1335. */function bit(e,t,n){return{line:e,column:t,offset:n}}function nT(e,t,n){const i={start:e,end:t};return n!=null&&(i.source=n),i}const Jn={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},kit=17;function Dw(e,t,n={}){const{domain:i,messages:o,args:s}=n,r=e,a=new SyntaxError(String(r));return a.code=e,t&&(a.location=t),a.domain=i,a}function Cit(e){throw e}const Fa=" ",Sit="\r",eo=`
  1336. `,wit=String.fromCharCode(8232),_it=String.fromCharCode(8233);function Iit(e){const t=e;let n=0,i=1,o=1,s=0;const r=b=>t[b]===Sit&&t[b+1]===eo,a=b=>t[b]===eo,u=b=>t[b]===_it,c=b=>t[b]===wit,l=b=>r(b)||a(b)||u(b)||c(b),g=()=>n,C=()=>i,S=()=>o,_=()=>s,A=b=>r(b)||u(b)||c(b)?eo:t[b],y=()=>A(n),d=()=>A(n+s);function v(){return s=0,l(n)&&(i++,o=0),r(n)&&n++,n++,o++,t[n]}function m(){return r(n+s)&&s++,s++,t[n+s]}function f(){n=0,i=1,o=1,s=0}function p(b=0){s=b}function h(){const b=n+s;for(;b!==n;)v();s=0}return{index:g,line:C,column:S,peekOffset:_,charAt:A,currentChar:y,currentPeek:d,next:v,peek:m,reset:f,resetPeek:p,skipToPeek:h}}const Kl=void 0,xit=".",xj="'",$it="tokenizer";function Ait(e,t={}){const n=t.location!==!1,i=Iit(e),o=()=>i.index(),s=()=>bit(i.line(),i.column(),i.index()),r=s(),a=o(),u={currentType:13,offset:a,startLoc:r,endLoc:r,lastType:13,lastOffset:a,lastStartLoc:r,lastEndLoc:r,braceNest:0,inLinked:!1,text:""},c=()=>u,{onError:l}=t;function g(re,le,ve,...De){const Ee=c();if(le.column+=ve,le.offset+=ve,l){const we=n?nT(Ee.startLoc,le):null,me=Dw(re,we,{domain:$it,args:De});l(me)}}function C(re,le,ve){re.endLoc=s(),re.currentType=le;const De={type:le};return n&&(De.loc=nT(re.startLoc,re.endLoc)),ve!=null&&(De.value=ve),De}const S=re=>C(re,13);function _(re,le){return re.currentChar()===le?(re.next(),le):(g(Jn.EXPECTED_TOKEN,s(),0,le),"")}function A(re){let le="";for(;re.currentPeek()===Fa||re.currentPeek()===eo;)le+=re.currentPeek(),re.peek();return le}function y(re){const le=A(re);return re.skipToPeek(),le}function d(re){if(re===Kl)return!1;const le=re.charCodeAt(0);return le>=97&&le<=122||le>=65&&le<=90||le===95}function v(re){if(re===Kl)return!1;const le=re.charCodeAt(0);return le>=48&&le<=57}function m(re,le){const{currentType:ve}=le;if(ve!==2)return!1;A(re);const De=d(re.currentPeek());return re.resetPeek(),De}function f(re,le){const{currentType:ve}=le;if(ve!==2)return!1;A(re);const De=re.currentPeek()==="-"?re.peek():re.currentPeek(),Ee=v(De);return re.resetPeek(),Ee}function p(re,le){const{currentType:ve}=le;if(ve!==2)return!1;A(re);const De=re.currentPeek()===xj;return re.resetPeek(),De}function h(re,le){const{currentType:ve}=le;if(ve!==7)return!1;A(re);const De=re.currentPeek()===".";return re.resetPeek(),De}function b(re,le){const{currentType:ve}=le;if(ve!==8)return!1;A(re);const De=d(re.currentPeek());return re.resetPeek(),De}function w(re,le){const{currentType:ve}=le;if(!(ve===7||ve===11))return!1;A(re);const De=re.currentPeek()===":";return re.resetPeek(),De}function k(re,le){const{currentType:ve}=le;if(ve!==9)return!1;const De=()=>{const we=re.currentPeek();return we==="{"?d(re.peek()):we==="@"||we==="|"||we===":"||we==="."||we===Fa||!we?!1:we===eo?(re.peek(),De()):E(re,!1)},Ee=De();return re.resetPeek(),Ee}function $(re){A(re);const le=re.currentPeek()==="|";return re.resetPeek(),le}function E(re,le=!0){const ve=(Ee=!1,we="")=>{const me=re.currentPeek();return me==="{"||me==="@"||!me?Ee:me==="|"?!(we===Fa||we===eo):me===Fa?(re.peek(),ve(!0,Fa)):me===eo?(re.peek(),ve(!0,eo)):!0},De=ve();return le&&re.resetPeek(),De}function N(re,le){const ve=re.currentChar();return ve===Kl?Kl:le(ve)?(re.next(),ve):null}function j(re){const le=re.charCodeAt(0);return le>=97&&le<=122||le>=65&&le<=90||le>=48&&le<=57||le===95||le===36}function z(re){return N(re,j)}function V(re){const le=re.charCodeAt(0);return le>=97&&le<=122||le>=65&&le<=90||le>=48&&le<=57||le===95||le===36||le===45}function W(re){return N(re,V)}function H(re){const le=re.charCodeAt(0);return le>=48&&le<=57}function U(re){return N(re,H)}function Q(re){const le=re.charCodeAt(0);return le>=48&&le<=57||le>=65&&le<=70||le>=97&&le<=102}function q(re){return N(re,Q)}function ae(re){let le="",ve="";for(;le=U(re);)ve+=le;return ve}function ne(re){let le="";for(;;){const ve=re.currentChar();if(ve==="{"||ve==="}"||ve==="@"||ve==="|"||!ve)break;if(ve===Fa||ve===eo)if(E(re))le+=ve,re.next();else{if($(re))break;le+=ve,re.next()}else le+=ve,re.next()}return le}function be(re){y(re);let le="",ve="";for(;le=W(re);)ve+=le;return re.currentChar()===Kl&&g(Jn.UNTERMINATED_CLOSING_BRACE,s(),0),ve}function te(re){y(re);let le="";return re.currentChar()==="-"?(re.next(),le+=`-${ae(re)}`):le+=ae(re),re.currentChar()===Kl&&g(Jn.UNTERMINATED_CLOSING_BRACE,s(),0),le}function Ie(re){return re!==xj&&re!==eo}function $e(re){y(re),_(re,"'");let le="",ve="";for(;le=N(re,Ie);)le==="\\"?ve+=Me(re):ve+=le;const De=re.currentChar();return De===eo||De===Kl?(g(Jn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),De===eo&&(re.next(),_(re,"'")),ve):(_(re,"'"),ve)}function Me(re){const le=re.currentChar();switch(le){case"\\":case"'":return re.next(),`\\${le}`;case"u":return ge(re,le,4);case"U":return ge(re,le,6);default:return g(Jn.UNKNOWN_ESCAPE_SEQUENCE,s(),0,le),""}}function ge(re,le,ve){_(re,le);let De="";for(let Ee=0;Ee<ve;Ee++){const we=q(re);if(!we){g(Jn.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${le}${De}${re.currentChar()}`);break}De+=we}return`\\${le}${De}`}function Se(re){return re!=="{"&&re!=="}"&&re!==Fa&&re!==eo}function fe(re){y(re);let le="",ve="";for(;le=N(re,Se);)ve+=le;return ve}function pe(re){let le="",ve="";for(;le=z(re);)ve+=le;return ve}function je(re){const le=ve=>{const De=re.currentChar();return De==="{"||De==="@"||De==="|"||De==="("||De===")"||!De||De===Fa?ve:(ve+=De,re.next(),le(ve))};return le("")}function Y(re){y(re);const le=_(re,"|");return y(re),le}function Z(re,le){let ve=null;switch(re.currentChar()){case"{":return le.braceNest>=1&&g(Jn.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),re.next(),ve=C(le,2,"{"),y(re),le.braceNest++,ve;case"}":return le.braceNest>0&&le.currentType===2&&g(Jn.EMPTY_PLACEHOLDER,s(),0),re.next(),ve=C(le,3,"}"),le.braceNest--,le.braceNest>0&&y(re),le.inLinked&&le.braceNest===0&&(le.inLinked=!1),ve;case"@":return le.braceNest>0&&g(Jn.UNTERMINATED_CLOSING_BRACE,s(),0),ve=ee(re,le)||S(le),le.braceNest=0,ve;default:{let Ee=!0,we=!0,me=!0;if($(re))return le.braceNest>0&&g(Jn.UNTERMINATED_CLOSING_BRACE,s(),0),ve=C(le,1,Y(re)),le.braceNest=0,le.inLinked=!1,ve;if(le.braceNest>0&&(le.currentType===4||le.currentType===5||le.currentType===6))return g(Jn.UNTERMINATED_CLOSING_BRACE,s(),0),le.braceNest=0,ce(re,le);if(Ee=m(re,le))return ve=C(le,4,be(re)),y(re),ve;if(we=f(re,le))return ve=C(le,5,te(re)),y(re),ve;if(me=p(re,le))return ve=C(le,6,$e(re)),y(re),ve;if(!Ee&&!we&&!me)return ve=C(le,12,fe(re)),g(Jn.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,ve.value),y(re),ve;break}}return ve}function ee(re,le){const{currentType:ve}=le;let De=null;const Ee=re.currentChar();switch((ve===7||ve===8||ve===11||ve===9)&&(Ee===eo||Ee===Fa)&&g(Jn.INVALID_LINKED_FORMAT,s(),0),Ee){case"@":return re.next(),De=C(le,7,"@"),le.inLinked=!0,De;case".":return y(re),re.next(),C(le,8,".");case":":return y(re),re.next(),C(le,9,":");default:return $(re)?(De=C(le,1,Y(re)),le.braceNest=0,le.inLinked=!1,De):h(re,le)||w(re,le)?(y(re),ee(re,le)):b(re,le)?(y(re),C(le,11,pe(re))):k(re,le)?(y(re),Ee==="{"?Z(re,le)||De:C(le,10,je(re))):(ve===7&&g(Jn.INVALID_LINKED_FORMAT,s(),0),le.braceNest=0,le.inLinked=!1,ce(re,le))}}function ce(re,le){let ve={type:13};if(le.braceNest>0)return Z(re,le)||S(le);if(le.inLinked)return ee(re,le)||S(le);switch(re.currentChar()){case"{":return Z(re,le)||S(le);case"}":return g(Jn.UNBALANCED_CLOSING_BRACE,s(),0),re.next(),C(le,3,"}");case"@":return ee(re,le)||S(le);default:{if($(re))return ve=C(le,1,Y(re)),le.braceNest=0,le.inLinked=!1,ve;if(E(re))return C(le,0,ne(re));break}}return ve}function xe(){const{currentType:re,offset:le,startLoc:ve,endLoc:De}=u;return u.lastType=re,u.lastOffset=le,u.lastStartLoc=ve,u.lastEndLoc=De,u.offset=o(),u.startLoc=s(),i.currentChar()===Kl?C(u,13):ce(i,u)}return{nextToken:xe,currentOffset:o,currentPosition:s,context:c}}const Eit="parser",Mit=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Tit(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const i=parseInt(t||n,16);return i<=55295||i>=57344?String.fromCodePoint(i):"�"}}}function Pit(e={}){const t=e.location!==!1,{onError:n}=e;function i(d,v,m,f,...p){const h=d.currentPosition();if(h.offset+=f,h.column+=f,n){const b=t?nT(m,h):null,w=Dw(v,b,{domain:Eit,args:p});n(w)}}function o(d,v,m){const f={type:d};return t&&(f.start=v,f.end=v,f.loc={start:m,end:m}),f}function s(d,v,m,f){t&&(d.end=v,d.loc&&(d.loc.end=m))}function r(d,v){const m=d.context(),f=o(3,m.offset,m.startLoc);return f.value=v,s(f,d.currentOffset(),d.currentPosition()),f}function a(d,v){const m=d.context(),{lastOffset:f,lastStartLoc:p}=m,h=o(5,f,p);return h.index=parseInt(v,10),d.nextToken(),s(h,d.currentOffset(),d.currentPosition()),h}function u(d,v){const m=d.context(),{lastOffset:f,lastStartLoc:p}=m,h=o(4,f,p);return h.key=v,d.nextToken(),s(h,d.currentOffset(),d.currentPosition()),h}function c(d,v){const m=d.context(),{lastOffset:f,lastStartLoc:p}=m,h=o(9,f,p);return h.value=v.replace(Mit,Tit),d.nextToken(),s(h,d.currentOffset(),d.currentPosition()),h}function l(d){const v=d.nextToken(),m=d.context(),{lastOffset:f,lastStartLoc:p}=m,h=o(8,f,p);return v.type!==11?(i(d,Jn.UNEXPECTED_EMPTY_LINKED_MODIFIER,m.lastStartLoc,0),h.value="",s(h,f,p),{nextConsumeToken:v,node:h}):(v.value==null&&i(d,Jn.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Qs(v)),h.value=v.value||"",s(h,d.currentOffset(),d.currentPosition()),{node:h})}function g(d,v){const m=d.context(),f=o(7,m.offset,m.startLoc);return f.value=v,s(f,d.currentOffset(),d.currentPosition()),f}function C(d){const v=d.context(),m=o(6,v.offset,v.startLoc);let f=d.nextToken();if(f.type===8){const p=l(d);m.modifier=p.node,f=p.nextConsumeToken||d.nextToken()}switch(f.type!==9&&i(d,Jn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Qs(f)),f=d.nextToken(),f.type===2&&(f=d.nextToken()),f.type){case 10:f.value==null&&i(d,Jn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Qs(f)),m.key=g(d,f.value||"");break;case 4:f.value==null&&i(d,Jn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Qs(f)),m.key=u(d,f.value||"");break;case 5:f.value==null&&i(d,Jn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Qs(f)),m.key=a(d,f.value||"");break;case 6:f.value==null&&i(d,Jn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Qs(f)),m.key=c(d,f.value||"");break;default:{i(d,Jn.UNEXPECTED_EMPTY_LINKED_KEY,v.lastStartLoc,0);const p=d.context(),h=o(7,p.offset,p.startLoc);return h.value="",s(h,p.offset,p.startLoc),m.key=h,s(m,p.offset,p.startLoc),{nextConsumeToken:f,node:m}}}return s(m,d.currentOffset(),d.currentPosition()),{node:m}}function S(d){const v=d.context(),m=v.currentType===1?d.currentOffset():v.offset,f=v.currentType===1?v.endLoc:v.startLoc,p=o(2,m,f);p.items=[];let h=null;do{const k=h||d.nextToken();switch(h=null,k.type){case 0:k.value==null&&i(d,Jn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Qs(k)),p.items.push(r(d,k.value||""));break;case 5:k.value==null&&i(d,Jn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Qs(k)),p.items.push(a(d,k.value||""));break;case 4:k.value==null&&i(d,Jn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Qs(k)),p.items.push(u(d,k.value||""));break;case 6:k.value==null&&i(d,Jn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Qs(k)),p.items.push(c(d,k.value||""));break;case 7:{const $=C(d);p.items.push($.node),h=$.nextConsumeToken||null;break}}}while(v.currentType!==13&&v.currentType!==1);const b=v.currentType===1?v.lastOffset:d.currentOffset(),w=v.currentType===1?v.lastEndLoc:d.currentPosition();return s(p,b,w),p}function _(d,v,m,f){const p=d.context();let h=f.items.length===0;const b=o(1,v,m);b.cases=[],b.cases.push(f);do{const w=S(d);h||(h=w.items.length===0),b.cases.push(w)}while(p.currentType!==13);return h&&i(d,Jn.MUST_HAVE_MESSAGES_IN_PLURAL,m,0),s(b,d.currentOffset(),d.currentPosition()),b}function A(d){const v=d.context(),{offset:m,startLoc:f}=v,p=S(d);return v.currentType===13?p:_(d,m,f,p)}function y(d){const v=Ait(d,lr({},e)),m=v.context(),f=o(0,m.offset,m.startLoc);return t&&f.loc&&(f.loc.source=d),f.body=A(v),e.onCacheKey&&(f.cacheKey=e.onCacheKey(d)),m.currentType!==13&&i(v,Jn.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,d[m.offset]||""),s(f,v.currentOffset(),v.currentPosition()),f}return{parse:y}}function Qs(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Oit(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function $j(e,t){for(let n=0;n<e.length;n++)wO(e[n],t)}function wO(e,t){switch(e.type){case 1:$j(e.cases,t),t.helper("plural");break;case 2:$j(e.items,t);break;case 6:{wO(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Lit(e,t={}){const n=Oit(e);n.helper("normalize"),e.body&&wO(e.body,n);const i=n.context();e.helpers=Array.from(i.helpers)}function Dit(e){const t=e.body;return t.type===2?Aj(t):t.cases.forEach(n=>Aj(n)),e}function Aj(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const i=e.items[n];if(!(i.type===3||i.type===9)||i.value==null)break;t.push(i.value)}if(t.length===e.items.length){e.static=SO(t);for(let n=0;n<e.items.length;n++){const i=e.items[n];(i.type===3||i.type===9)&&delete i.value}}}}function Rf(e){switch(e.t=e.type,e.type){case 0:{const t=e;Rf(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let i=0;i<n.length;i++)Rf(n[i]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let i=0;i<n.length;i++)Rf(n[i]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Rf(t.key),t.k=t.key,delete t.key,t.modifier&&(Rf(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Nit(e,t){const{sourceMap:n,filename:i,breakLineCode:o,needIndent:s}=t,r=t.location!==!1,a={filename:i,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:s,indentLevel:0};r&&e.loc&&(a.source=e.loc.source);const u=()=>a;function c(y,d){a.code+=y}function l(y,d=!0){const v=d?o:"";c(s?v+" ".repeat(y):v)}function g(y=!0){const d=++a.indentLevel;y&&l(d)}function C(y=!0){const d=--a.indentLevel;y&&l(d)}function S(){l(a.indentLevel)}return{context:u,push:c,indent:g,deindent:C,newline:S,helper:y=>`_${y}`,needIndent:()=>a.needIndent}}function jit(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Hp(e,t.key),t.modifier?(e.push(", "),Hp(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function zit(e,t){const{helper:n,needIndent:i}=e;e.push(`${n("normalize")}([`),e.indent(i());const o=t.items.length;for(let s=0;s<o&&(Hp(e,t.items[s]),s!==o-1);s++)e.push(", ");e.deindent(i()),e.push("])")}function Rit(e,t){const{helper:n,needIndent:i}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(i());const o=t.cases.length;for(let s=0;s<o&&(Hp(e,t.cases[s]),s!==o-1);s++)e.push(", ");e.deindent(i()),e.push("])")}}function Bit(e,t){t.body?Hp(e,t.body):e.push("null")}function Hp(e,t){const{helper:n}=e;switch(t.type){case 0:Bit(e,t);break;case 1:Rit(e,t);break;case 2:zit(e,t);break;case 6:jit(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const Fit=(e,t={})=>{const n=Ut(t.mode)?t.mode:"normal",i=Ut(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
  1337. `,r=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],u=Nit(e,{mode:n,filename:i,sourceMap:o,breakLineCode:s,needIndent:r});u.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),u.indent(r),a.length>0&&(u.push(`const { ${SO(a.map(g=>`${g}: _${g}`),", ")} } = ctx`),u.newline()),u.push("return "),Hp(u,e),u.deindent(r),u.push("}"),delete e.helpers;const{code:c,map:l}=u.context();return{ast:e,code:c,map:l?l.toJSON():void 0}};function Vit(e,t={}){const n=lr({},t),i=!!n.jit,o=!!n.minify,s=n.optimize==null?!0:n.optimize,a=Pit(n).parse(e);return i?(s&&Dit(a),o&&Rf(a),{ast:a,code:""}):(Lit(a,n),Fit(a,n))}/*!
  1338. * core-base v10.0.4
  1339. * (c) 2024 kazuya kawaguchi
  1340. * Released under the MIT License.
  1341. */function Hit(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Eu().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Eu().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function PA(e){return n=>Wit(n,e)}function Wit(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const i=n,o=i.c||i.cases;return e.plural(o.reduce((s,r)=>[...s,Ej(e,r)],[]))}else return Ej(e,n)}function Ej(e,t){const n=t.s||t.static;if(n!=null)return e.type==="text"?n:e.normalize([n]);{const i=(t.i||t.items).reduce((o,s)=>[...o,iT(e,s)],[]);return e.normalize(i)}}function iT(e,t){const n=t.t||t.type;switch(n){case 3:{const i=t;return i.v||i.value}case 9:{const i=t;return i.v||i.value}case 4:{const i=t;return e.interpolate(e.named(i.k||i.key))}case 5:{const i=t;return e.interpolate(e.list(i.i!=null?i.i:i.index))}case 6:{const i=t,o=i.m||i.modifier;return e.linked(iT(e,i.k||i.key),o?iT(e,o):void 0,e.type)}case 7:{const i=t;return i.v||i.value}case 8:{const i=t;return i.v||i.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const Uit=e=>e;let By=Object.create(null);const Wp=e=>Un(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function Zit(e,t={}){let n=!1;const i=t.onError||Cit;return t.onError=o=>{n=!0,i(o)},{...Vit(e,t),detectError:n}}function Git(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ut(e)){Fn(t.warnHtmlMessage)&&t.warnHtmlMessage;const i=(t.onCacheKey||Uit)(e),o=By[i];if(o)return o;const{ast:s,detectError:r}=Zit(e,{...t,location:!1,jit:!0}),a=PA(s);return r?a:By[i]=a}else{const n=e.cacheKey;if(n){const i=By[n];return i||(By[n]=PA(e))}else return PA(e)}}let Uv=null;function Yit(e){Uv=e}function Xit(e,t,n){Uv&&Uv.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Kit=Jit("function:translate");function Jit(e){return t=>Uv&&Uv.emit(e,t)}const Al={INVALID_ARGUMENT:kit,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},qit=24;function El(e){return Dw(e,null,void 0)}function _O(e,t){return t.locale!=null?Mj(t.locale):Mj(e.locale)}let OA;function Mj(e){if(Ut(e))return e;if(pi(e)){if(e.resolvedOnce&&OA!=null)return OA;if(e.constructor.name==="Function"){const t=e();if(vit(t))throw El(Al.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return OA=t}else throw El(Al.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw El(Al.NOT_SUPPORT_LOCALE_TYPE)}function Qit(e,t,n){return[...new Set([n,...Oi(t)?t:Un(t)?Object.keys(t):Ut(t)?[t]:[n]])]}function _G(e,t,n){const i=Ut(n)?n:Zv,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(i);if(!s){s=[];let r=[n];for(;Oi(r);)r=Tj(s,r,t);const a=Oi(t)||!Sn(t)?t:t.default?t.default:null;r=Ut(a)?[a]:a,Oi(r)&&Tj(s,r,!1),o.__localeChainCache.set(i,s)}return s}function Tj(e,t,n){let i=!0;for(let o=0;o<t.length&&Fn(i);o++){const s=t[o];Ut(s)&&(i=ert(e,t[o],n))}return i}function ert(e,t,n){let i;const o=t.split("-");do{const s=o.join("-");i=trt(e,s,n),o.splice(-1,1)}while(o.length&&i===!0);return i}function trt(e,t,n){let i=!1;if(!e.includes(t)&&(i=!0,t)){i=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(Oi(n)||Sn(n))&&n[o]&&(i=n[o])}return i}const du=[];du[0]={w:[0],i:[3,0],["["]:[4],o:[7]};du[1]={w:[1],["."]:[2],["["]:[4],o:[7]};du[2]={w:[2],i:[3,0],[0]:[3,0]};du[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};du[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};du[5]={["'"]:[4,0],o:8,l:[5,0]};du[6]={['"']:[4,0],o:8,l:[6,0]};const nrt=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function irt(e){return nrt.test(e)}function rrt(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function ort(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function srt(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:irt(t)?rrt(t):"*"+t}function art(e){const t=[];let n=-1,i=0,o=0,s,r,a,u,c,l,g;const C=[];C[0]=()=>{r===void 0?r=a:r+=a},C[1]=()=>{r!==void 0&&(t.push(r),r=void 0)},C[2]=()=>{C[0](),o++},C[3]=()=>{if(o>0)o--,i=4,C[0]();else{if(o=0,r===void 0||(r=srt(r),r===!1))return!1;C[1]()}};function S(){const _=e[n+1];if(i===5&&_==="'"||i===6&&_==='"')return n++,a="\\"+_,C[0](),!0}for(;i!==null;)if(n++,s=e[n],!(s==="\\"&&S())){if(u=ort(s),g=du[i],c=g[u]||g.l||8,c===8||(i=c[0],c[1]!==void 0&&(l=C[c[1]],l&&(a=s,l()===!1))))return;if(i===7)return t}}const Pj=new Map;function lrt(e,t){return Un(e)?e[t]:null}function crt(e,t){if(!Un(e))return null;let n=Pj.get(t);if(n||(n=art(t),n&&Pj.set(t,n)),!n)return null;const i=n.length;let o=e,s=0;for(;s<i;){const r=o[n[s]];if(r===void 0||pi(o))return null;o=r,s++}return o}const urt="10.0.4",Nw=-1,Zv="en-US",Oj="",Lj=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function drt(){return{upper:(e,t)=>t==="text"&&Ut(e)?e.toUpperCase():t==="vnode"&&Un(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ut(e)?e.toLowerCase():t==="vnode"&&Un(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ut(e)?Lj(e):t==="vnode"&&Un(e)&&"__v_isVNode"in e?Lj(e.children):e}}let IG;function frt(e){IG=e}let xG;function hrt(e){xG=e}let $G;function prt(e){$G=e}let AG=null;const mrt=e=>{AG=e},vrt=()=>AG;let EG=null;const Dj=e=>{EG=e},grt=()=>EG;let Nj=0;function yrt(e={}){const t=pi(e.onWarn)?e.onWarn:yit,n=Ut(e.version)?e.version:urt,i=Ut(e.locale)||pi(e.locale)?e.locale:Zv,o=pi(i)?Zv:i,s=Oi(e.fallbackLocale)||Sn(e.fallbackLocale)||Ut(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,r=Sn(e.messages)?e.messages:{[o]:{}},a=Sn(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},u=Sn(e.numberFormats)?e.numberFormats:{[o]:{}},c=lr({},e.modifiers||{},drt()),l=e.pluralRules||{},g=pi(e.missing)?e.missing:null,C=Fn(e.missingWarn)||Vp(e.missingWarn)?e.missingWarn:!0,S=Fn(e.fallbackWarn)||Vp(e.fallbackWarn)?e.fallbackWarn:!0,_=!!e.fallbackFormat,A=!!e.unresolving,y=pi(e.postTranslation)?e.postTranslation:null,d=Sn(e.processor)?e.processor:null,v=Fn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,m=!!e.escapeParameter,f=pi(e.messageCompiler)?e.messageCompiler:IG,p=pi(e.messageResolver)?e.messageResolver:xG||lrt,h=pi(e.localeFallbacker)?e.localeFallbacker:$G||Qit,b=Un(e.fallbackContext)?e.fallbackContext:void 0,w=e,k=Un(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,$=Un(w.__numberFormatters)?w.__numberFormatters:new Map,E=Un(w.__meta)?w.__meta:{};Nj++;const N={version:n,cid:Nj,locale:i,fallbackLocale:s,messages:r,modifiers:c,pluralRules:l,missing:g,missingWarn:C,fallbackWarn:S,fallbackFormat:_,unresolving:A,postTranslation:y,processor:d,warnHtmlMessage:v,escapeParameter:m,messageCompiler:f,messageResolver:p,localeFallbacker:h,fallbackContext:b,onWarn:t,__meta:E};return N.datetimeFormats=a,N.numberFormats=u,N.__datetimeFormatters=k,N.__numberFormatters=$,__INTLIFY_PROD_DEVTOOLS__&&Xit(N,n,E),N}function IO(e,t,n,i,o){const{missing:s,onWarn:r}=e;if(s!==null){const a=s(e,n,t,o);return Ut(a)?a:t}else return t}function Mm(e,t,n){const i=e;i.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function brt(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function krt(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let i=n+1;i<t.length;i++)if(brt(e,t[i]))return!0;return!1}function jj(e,...t){const{datetimeFormats:n,unresolving:i,fallbackLocale:o,onWarn:s,localeFallbacker:r}=e,{__datetimeFormatters:a}=e,[u,c,l,g]=rT(...t),C=Fn(l.missingWarn)?l.missingWarn:e.missingWarn;Fn(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn;const S=!!l.part,_=_O(e,l),A=r(e,o,_);if(!Ut(u)||u==="")return new Intl.DateTimeFormat(_,g).format(c);let y={},d,v=null;const m="datetime format";for(let h=0;h<A.length&&(d=A[h],y=n[d]||{},v=y[u],!Sn(v));h++)IO(e,u,d,C,m);if(!Sn(v)||!Ut(d))return i?Nw:u;let f=`${d}__${u}`;Lw(g)||(f=`${f}__${JSON.stringify(g)}`);let p=a.get(f);return p||(p=new Intl.DateTimeFormat(d,lr({},v,g)),a.set(f,p)),S?p.formatToParts(c):p.format(c)}const MG=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function rT(...e){const[t,n,i,o]=e,s={};let r={},a;if(Ut(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw El(Al.INVALID_ISO_DATE_ARGUMENT);const c=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();a=new Date(c);try{a.toISOString()}catch{throw El(Al.INVALID_ISO_DATE_ARGUMENT)}}else if(pit(t)){if(isNaN(t.getTime()))throw El(Al.INVALID_DATE_ARGUMENT);a=t}else if(sr(t))a=t;else throw El(Al.INVALID_ARGUMENT);return Ut(n)?s.key=n:Sn(n)&&Object.keys(n).forEach(u=>{MG.includes(u)?r[u]=n[u]:s[u]=n[u]}),Ut(i)?s.locale=i:Sn(i)&&(r=i),Sn(o)&&(r=o),[s.key||"",a,s,r]}function zj(e,t,n){const i=e;for(const o in n){const s=`${t}__${o}`;i.__datetimeFormatters.has(s)&&i.__datetimeFormatters.delete(s)}}function Rj(e,...t){const{numberFormats:n,unresolving:i,fallbackLocale:o,onWarn:s,localeFallbacker:r}=e,{__numberFormatters:a}=e,[u,c,l,g]=oT(...t),C=Fn(l.missingWarn)?l.missingWarn:e.missingWarn;Fn(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn;const S=!!l.part,_=_O(e,l),A=r(e,o,_);if(!Ut(u)||u==="")return new Intl.NumberFormat(_,g).format(c);let y={},d,v=null;const m="number format";for(let h=0;h<A.length&&(d=A[h],y=n[d]||{},v=y[u],!Sn(v));h++)IO(e,u,d,C,m);if(!Sn(v)||!Ut(d))return i?Nw:u;let f=`${d}__${u}`;Lw(g)||(f=`${f}__${JSON.stringify(g)}`);let p=a.get(f);return p||(p=new Intl.NumberFormat(d,lr({},v,g)),a.set(f,p)),S?p.formatToParts(c):p.format(c)}const TG=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function oT(...e){const[t,n,i,o]=e,s={};let r={};if(!sr(t))throw El(Al.INVALID_ARGUMENT);const a=t;return Ut(n)?s.key=n:Sn(n)&&Object.keys(n).forEach(u=>{TG.includes(u)?r[u]=n[u]:s[u]=n[u]}),Ut(i)?s.locale=i:Sn(i)&&(r=i),Sn(o)&&(r=o),[s.key||"",a,s,r]}function Bj(e,t,n){const i=e;for(const o in n){const s=`${t}__${o}`;i.__numberFormatters.has(s)&&i.__numberFormatters.delete(s)}}const Crt=e=>e,Srt=e=>"",wrt="text",_rt=e=>e.length===0?"":SO(e),Irt=git;function Fj(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function xrt(e){const t=sr(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(sr(e.named.count)||sr(e.named.n))?sr(e.named.count)?e.named.count:sr(e.named.n)?e.named.n:t:t}function $rt(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Art(e={}){const t=e.locale,n=xrt(e),i=Un(e.pluralRules)&&Ut(t)&&pi(e.pluralRules[t])?e.pluralRules[t]:Fj,o=Un(e.pluralRules)&&Ut(t)&&pi(e.pluralRules[t])?Fj:void 0,s=d=>d[i(n,d.length,o)],r=e.list||[],a=d=>r[d],u=e.named||{};sr(e.pluralIndex)&&$rt(n,u);const c=d=>u[d];function l(d,v){const m=pi(e.messages)?e.messages(d,!!v):Un(e.messages)?e.messages[d]:!1;return m||(e.parent?e.parent.message(d):Srt)}const g=d=>e.modifiers?e.modifiers[d]:Crt,C=Sn(e.processor)&&pi(e.processor.normalize)?e.processor.normalize:_rt,S=Sn(e.processor)&&pi(e.processor.interpolate)?e.processor.interpolate:Irt,_=Sn(e.processor)&&Ut(e.processor.type)?e.processor.type:wrt,y={list:a,named:c,plural:s,linked:(d,...v)=>{const[m,f]=v;let p="text",h="";v.length===1?Un(m)?(h=m.modifier||h,p=m.type||p):Ut(m)&&(h=m||h):v.length===2&&(Ut(m)&&(h=m||h),Ut(f)&&(p=f||p));const b=l(d,!0)(y),w=p==="vnode"&&Oi(b)&&h?b[0]:b;return h?g(h)(w,p):w},message:l,type:_,interpolate:S,normalize:C,values:lr({},r,u)};return y}const Vj=()=>"",is=e=>pi(e);function Hj(e,...t){const{fallbackFormat:n,postTranslation:i,unresolving:o,messageCompiler:s,fallbackLocale:r,messages:a}=e,[u,c]=sT(...t),l=Fn(c.missingWarn)?c.missingWarn:e.missingWarn,g=Fn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,C=Fn(c.escapeParameter)?c.escapeParameter:e.escapeParameter,S=!!c.resolvedMessage,_=Ut(c.default)||Fn(c.default)?Fn(c.default)?s?u:()=>u:c.default:n?s?u:()=>u:null,A=n||_!=null&&(Ut(_)||pi(_)),y=_O(e,c);C&&Ert(c);let[d,v,m]=S?[u,y,a[y]||{}]:PG(e,u,y,r,g,l),f=d,p=u;if(!S&&!(Ut(f)||Wp(f)||is(f))&&A&&(f=_,p=f),!S&&(!(Ut(f)||Wp(f)||is(f))||!Ut(v)))return o?Nw:u;let h=!1;const b=()=>{h=!0},w=is(f)?f:OG(e,u,v,f,p,b);if(h)return f;const k=Prt(e,v,m,c),$=Art(k),E=Mrt(e,w,$),N=i?i(E,u):E;if(__INTLIFY_PROD_DEVTOOLS__){const j={timestamp:Date.now(),key:Ut(u)?u:is(f)?f.key:"",locale:v||(is(f)?f.locale:""),format:Ut(f)?f:is(f)?f.source:"",message:N};j.meta=lr({},e.__meta,vrt()||{}),Kit(j)}return N}function Ert(e){Oi(e.list)?e.list=e.list.map(t=>Ut(t)?Ij(t):t):Un(e.named)&&Object.keys(e.named).forEach(t=>{Ut(e.named[t])&&(e.named[t]=Ij(e.named[t]))})}function PG(e,t,n,i,o,s){const{messages:r,onWarn:a,messageResolver:u,localeFallbacker:c}=e,l=c(e,i,n);let g={},C,S=null;const _="translate";for(let A=0;A<l.length&&(C=l[A],g=r[C]||{},(S=u(g,t))===null&&(S=g[t]),!(Ut(S)||Wp(S)||is(S)));A++)if(!krt(C,l)){const y=IO(e,t,C,s,_);y!==t&&(S=y)}return[S,C,g]}function OG(e,t,n,i,o,s){const{messageCompiler:r,warnHtmlMessage:a}=e;if(is(i)){const c=i;return c.locale=c.locale||n,c.key=c.key||t,c}if(r==null){const c=()=>i;return c.locale=n,c.key=t,c}const u=r(i,Trt(e,n,o,i,a,s));return u.locale=n,u.key=t,u.source=i,u}function Mrt(e,t,n){return t(n)}function sT(...e){const[t,n,i]=e,o={};if(!Ut(t)&&!sr(t)&&!is(t)&&!Wp(t))throw El(Al.INVALID_ARGUMENT);const s=sr(t)?String(t):(is(t),t);return sr(n)?o.plural=n:Ut(n)?o.default=n:Sn(n)&&!Lw(n)?o.named=n:Oi(n)&&(o.list=n),sr(i)?o.plural=i:Ut(i)?o.default=i:Sn(i)&&lr(o,i),[s,o]}function Trt(e,t,n,i,o,s){return{locale:t,key:n,warnHtmlMessage:o,onError:r=>{throw s&&s(r),r},onCacheKey:r=>fit(t,n,r)}}function Prt(e,t,n,i){const{modifiers:o,pluralRules:s,messageResolver:r,fallbackLocale:a,fallbackWarn:u,missingWarn:c,fallbackContext:l}=e,C={locale:t,modifiers:o,pluralRules:s,messages:(S,_)=>{let A=r(n,S);if(A==null&&(l||_)){const[,,y]=PG(l||e,S,t,a,u,c);A=r(y,S)}if(Ut(A)||Wp(A)){let y=!1;const v=OG(e,S,t,A,S,()=>{y=!0});return y?Vj:v}else return is(A)?A:Vj}};return e.processor&&(C.processor=e.processor),i.list&&(C.list=i.list),i.named&&(C.named=i.named),sr(i.plural)&&(C.pluralIndex=i.plural),C}Hit();/*!
  1342. * vue-i18n v10.0.4
  1343. * (c) 2024 kazuya kawaguchi
  1344. * Released under the MIT License.
  1345. */const Ort="10.0.4";function Lrt(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Eu().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Eu().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Eu().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Eu().__INTLIFY_PROD_DEVTOOLS__=!1)}const co={UNEXPECTED_RETURN_TYPE:qit,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function $o(e,...t){return Dw(e,null,void 0)}const aT=uu("__translateVNode"),lT=uu("__datetimeParts"),cT=uu("__numberParts"),LG=uu("__setPluralRules"),DG=uu("__injectWithOption"),uT=uu("__dispose");function Gv(e){if(!Un(e))return e;for(const t in e)if(SC(e,t))if(!t.includes("."))Un(e[t])&&Gv(e[t]);else{const n=t.split("."),i=n.length-1;let o=e,s=!1;for(let r=0;r<i;r++){if(n[r]in o||(o[n[r]]={}),!Un(o[n[r]])){s=!0;break}o=o[n[r]]}s||(o[n[i]]=e[t],delete e[t]),Un(o[n[i]])&&Gv(o[n[i]])}return e}function xO(e,t){const{messages:n,__i18n:i,messageResolver:o,flatJson:s}=t,r=Sn(n)?n:Oi(i)?{}:{[e]:{}};if(Oi(i)&&i.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:u,resource:c}=a;u?(r[u]=r[u]||{},Ak(c,r[u])):Ak(c,r)}else Ut(a)&&Ak(JSON.parse(a),r)}),o==null&&s)for(const a in r)SC(r,a)&&Gv(r[a]);return r}function NG(e){return e.type}function jG(e,t,n){let i=Un(t.messages)?t.messages:{};"__i18nGlobal"in n&&(i=xO(e.locale.value,{messages:i,__i18n:n.__i18nGlobal}));const o=Object.keys(i);o.length&&o.forEach(s=>{e.mergeLocaleMessage(s,i[s])});{if(Un(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(r=>{e.mergeDateTimeFormat(r,t.datetimeFormats[r])})}if(Un(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(r=>{e.mergeNumberFormat(r,t.numberFormats[r])})}}}function Wj(e){return O(xa,null,e,0)}const Uj="__INTLIFY_META__",Zj=()=>[],Drt=()=>!1;let Gj=0;function Yj(e){return(t,n,i,o)=>e(n,i,Vn()||void 0,o)}const Nrt=()=>{const e=Vn();let t=null;return e&&(t=NG(e)[Uj])?{[Uj]:t}:null};function $O(e={}){const{__root:t,__injectWithOption:n}=e,i=t===void 0,o=e.flatJson,s=CC?he:Gp;let r=Fn(e.inheritLocale)?e.inheritLocale:!0;const a=s(t&&r?t.locale.value:Ut(e.locale)?e.locale:Zv),u=s(t&&r?t.fallbackLocale.value:Ut(e.fallbackLocale)||Oi(e.fallbackLocale)||Sn(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),c=s(xO(a.value,e)),l=s(Sn(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),g=s(Sn(e.numberFormats)?e.numberFormats:{[a.value]:{}});let C=t?t.missingWarn:Fn(e.missingWarn)||Vp(e.missingWarn)?e.missingWarn:!0,S=t?t.fallbackWarn:Fn(e.fallbackWarn)||Vp(e.fallbackWarn)?e.fallbackWarn:!0,_=t?t.fallbackRoot:Fn(e.fallbackRoot)?e.fallbackRoot:!0,A=!!e.fallbackFormat,y=pi(e.missing)?e.missing:null,d=pi(e.missing)?Yj(e.missing):null,v=pi(e.postTranslation)?e.postTranslation:null,m=t?t.warnHtmlMessage:Fn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,f=!!e.escapeParameter;const p=t?t.modifiers:Sn(e.modifiers)?e.modifiers:{};let h=e.pluralRules||t&&t.pluralRules,b;b=(()=>{i&&Dj(null);const me={version:Ort,locale:a.value,fallbackLocale:u.value,messages:c.value,modifiers:p,pluralRules:h,missing:d===null?void 0:d,missingWarn:C,fallbackWarn:S,fallbackFormat:A,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:m,escapeParameter:f,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};me.datetimeFormats=l.value,me.numberFormats=g.value,me.__datetimeFormatters=Sn(b)?b.__datetimeFormatters:void 0,me.__numberFormatters=Sn(b)?b.__numberFormatters:void 0;const Ae=yrt(me);return i&&Dj(Ae),Ae})(),Mm(b,a.value,u.value);function k(){return[a.value,u.value,c.value,l.value,g.value]}const $=P({get:()=>a.value,set:me=>{a.value=me,b.locale=a.value}}),E=P({get:()=>u.value,set:me=>{u.value=me,b.fallbackLocale=u.value,Mm(b,a.value,me)}}),N=P(()=>c.value),j=P(()=>l.value),z=P(()=>g.value);function V(){return pi(v)?v:null}function W(me){v=me,b.postTranslation=me}function H(){return y}function U(me){me!==null&&(d=Yj(me)),y=me,b.missing=d}const Q=(me,Ae,Fe,Ne,ze,Ue)=>{k();let et;try{__INTLIFY_PROD_DEVTOOLS__&&mrt(Nrt()),i||(b.fallbackContext=t?grt():void 0),et=me(b)}finally{__INTLIFY_PROD_DEVTOOLS__,i||(b.fallbackContext=void 0)}if(Fe!=="translate exists"&&sr(et)&&et===Nw||Fe==="translate exists"&&!et){const[Xe,yt]=Ae();return t&&_?Ne(t):ze(Xe)}else{if(Ue(et))return et;throw $o(co.UNEXPECTED_RETURN_TYPE)}};function q(...me){return Q(Ae=>Reflect.apply(Hj,null,[Ae,...me]),()=>sT(...me),"translate",Ae=>Reflect.apply(Ae.t,Ae,[...me]),Ae=>Ae,Ae=>Ut(Ae))}function ae(...me){const[Ae,Fe,Ne]=me;if(Ne&&!Un(Ne))throw $o(co.INVALID_ARGUMENT);return q(Ae,Fe,lr({resolvedMessage:!0},Ne||{}))}function ne(...me){return Q(Ae=>Reflect.apply(jj,null,[Ae,...me]),()=>rT(...me),"datetime format",Ae=>Reflect.apply(Ae.d,Ae,[...me]),()=>Oj,Ae=>Ut(Ae))}function be(...me){return Q(Ae=>Reflect.apply(Rj,null,[Ae,...me]),()=>oT(...me),"number format",Ae=>Reflect.apply(Ae.n,Ae,[...me]),()=>Oj,Ae=>Ut(Ae))}function te(me){return me.map(Ae=>Ut(Ae)||sr(Ae)||Fn(Ae)?Wj(String(Ae)):Ae)}const $e={normalize:te,interpolate:me=>me,type:"vnode"};function Me(...me){return Q(Ae=>{let Fe;const Ne=Ae;try{Ne.processor=$e,Fe=Reflect.apply(Hj,null,[Ne,...me])}finally{Ne.processor=null}return Fe},()=>sT(...me),"translate",Ae=>Ae[aT](...me),Ae=>[Wj(Ae)],Ae=>Oi(Ae))}function ge(...me){return Q(Ae=>Reflect.apply(Rj,null,[Ae,...me]),()=>oT(...me),"number format",Ae=>Ae[cT](...me),Zj,Ae=>Ut(Ae)||Oi(Ae))}function Se(...me){return Q(Ae=>Reflect.apply(jj,null,[Ae,...me]),()=>rT(...me),"datetime format",Ae=>Ae[lT](...me),Zj,Ae=>Ut(Ae)||Oi(Ae))}function fe(me){h=me,b.pluralRules=h}function pe(me,Ae){return Q(()=>{if(!me)return!1;const Fe=Ut(Ae)?Ae:a.value,Ne=Z(Fe),ze=b.messageResolver(Ne,me);return Wp(ze)||is(ze)||Ut(ze)},()=>[me],"translate exists",Fe=>Reflect.apply(Fe.te,Fe,[me,Ae]),Drt,Fe=>Fn(Fe))}function je(me){let Ae=null;const Fe=_G(b,u.value,a.value);for(let Ne=0;Ne<Fe.length;Ne++){const ze=c.value[Fe[Ne]]||{},Ue=b.messageResolver(ze,me);if(Ue!=null){Ae=Ue;break}}return Ae}function Y(me){const Ae=je(me);return Ae??(t?t.tm(me)||{}:{})}function Z(me){return c.value[me]||{}}function ee(me,Ae){if(o){const Fe={[me]:Ae};for(const Ne in Fe)SC(Fe,Ne)&&Gv(Fe[Ne]);Ae=Fe[me]}c.value[me]=Ae,b.messages=c.value}function ce(me,Ae){c.value[me]=c.value[me]||{};const Fe={[me]:Ae};if(o)for(const Ne in Fe)SC(Fe,Ne)&&Gv(Fe[Ne]);Ae=Fe[me],Ak(Ae,c.value[me]),b.messages=c.value}function xe(me){return l.value[me]||{}}function re(me,Ae){l.value[me]=Ae,b.datetimeFormats=l.value,zj(b,me,Ae)}function le(me,Ae){l.value[me]=lr(l.value[me]||{},Ae),b.datetimeFormats=l.value,zj(b,me,Ae)}function ve(me){return g.value[me]||{}}function De(me,Ae){g.value[me]=Ae,b.numberFormats=g.value,Bj(b,me,Ae)}function Ee(me,Ae){g.value[me]=lr(g.value[me]||{},Ae),b.numberFormats=g.value,Bj(b,me,Ae)}Gj++,t&&CC&&(gt(t.locale,me=>{r&&(a.value=me,b.locale=me,Mm(b,a.value,u.value))}),gt(t.fallbackLocale,me=>{r&&(u.value=me,b.fallbackLocale=me,Mm(b,a.value,u.value))}));const we={id:Gj,locale:$,fallbackLocale:E,get inheritLocale(){return r},set inheritLocale(me){r=me,me&&t&&(a.value=t.locale.value,u.value=t.fallbackLocale.value,Mm(b,a.value,u.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:N,get modifiers(){return p},get pluralRules(){return h||{}},get isGlobal(){return i},get missingWarn(){return C},set missingWarn(me){C=me,b.missingWarn=C},get fallbackWarn(){return S},set fallbackWarn(me){S=me,b.fallbackWarn=S},get fallbackRoot(){return _},set fallbackRoot(me){_=me},get fallbackFormat(){return A},set fallbackFormat(me){A=me,b.fallbackFormat=A},get warnHtmlMessage(){return m},set warnHtmlMessage(me){m=me,b.warnHtmlMessage=me},get escapeParameter(){return f},set escapeParameter(me){f=me,b.escapeParameter=me},t:q,getLocaleMessage:Z,setLocaleMessage:ee,mergeLocaleMessage:ce,getPostTranslationHandler:V,setPostTranslationHandler:W,getMissingHandler:H,setMissingHandler:U,[LG]:fe};return we.datetimeFormats=j,we.numberFormats=z,we.rt=ae,we.te=pe,we.tm=Y,we.d=ne,we.n=be,we.getDateTimeFormat=xe,we.setDateTimeFormat=re,we.mergeDateTimeFormat=le,we.getNumberFormat=ve,we.setNumberFormat=De,we.mergeNumberFormat=Ee,we[DG]=n,we[aT]=Me,we[lT]=Se,we[cT]=ge,we}function jrt(e){const t=Ut(e.locale)?e.locale:Zv,n=Ut(e.fallbackLocale)||Oi(e.fallbackLocale)||Sn(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,i=pi(e.missing)?e.missing:void 0,o=Fn(e.silentTranslationWarn)||Vp(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=Fn(e.silentFallbackWarn)||Vp(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,r=Fn(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,u=Sn(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,l=pi(e.postTranslation)?e.postTranslation:void 0,g=Ut(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,C=!!e.escapeParameterHtml,S=Fn(e.sync)?e.sync:!0;let _=e.messages;if(Sn(e.sharedMessages)){const p=e.sharedMessages;_=Object.keys(p).reduce((b,w)=>{const k=b[w]||(b[w]={});return lr(k,p[w]),b},_||{})}const{__i18n:A,__root:y,__injectWithOption:d}=e,v=e.datetimeFormats,m=e.numberFormats,f=e.flatJson;return{locale:t,fallbackLocale:n,messages:_,flatJson:f,datetimeFormats:v,numberFormats:m,missing:i,missingWarn:o,fallbackWarn:s,fallbackRoot:r,fallbackFormat:a,modifiers:u,pluralRules:c,postTranslation:l,warnHtmlMessage:g,escapeParameter:C,messageResolver:e.messageResolver,inheritLocale:S,__i18n:A,__root:y,__injectWithOption:d}}function dT(e={}){const t=$O(jrt(e)),{__extender:n}=e,i={id:t.id,get locale(){return t.locale.value},set locale(o){t.locale.value=o},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(o){t.fallbackLocale.value=o},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(o){t.setMissingHandler(o)},get silentTranslationWarn(){return Fn(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(o){t.missingWarn=Fn(o)?!o:o},get silentFallbackWarn(){return Fn(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(o){t.fallbackWarn=Fn(o)?!o:o},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(o){t.fallbackFormat=o},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(o){t.setPostTranslationHandler(o)},get sync(){return t.inheritLocale},set sync(o){t.inheritLocale=o},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){t.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(o){t.escapeParameter=o},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...o){return Reflect.apply(t.t,t,[...o])},rt(...o){return Reflect.apply(t.rt,t,[...o])},tc(...o){const[s,r,a]=o,u={plural:1};let c=null,l=null;if(!Ut(s))throw $o(co.INVALID_ARGUMENT);const g=s;return Ut(r)?u.locale=r:sr(r)?u.plural=r:Oi(r)?c=r:Sn(r)&&(l=r),Ut(a)?u.locale=a:Oi(a)?c=a:Sn(a)&&(l=a),Reflect.apply(t.t,t,[g,c||l||{},u])},te(o,s){return t.te(o,s)},tm(o){return t.tm(o)},getLocaleMessage(o){return t.getLocaleMessage(o)},setLocaleMessage(o,s){t.setLocaleMessage(o,s)},mergeLocaleMessage(o,s){t.mergeLocaleMessage(o,s)},d(...o){return Reflect.apply(t.d,t,[...o])},getDateTimeFormat(o){return t.getDateTimeFormat(o)},setDateTimeFormat(o,s){t.setDateTimeFormat(o,s)},mergeDateTimeFormat(o,s){t.mergeDateTimeFormat(o,s)},n(...o){return Reflect.apply(t.n,t,[...o])},getNumberFormat(o){return t.getNumberFormat(o)},setNumberFormat(o,s){t.setNumberFormat(o,s)},mergeNumberFormat(o,s){t.mergeNumberFormat(o,s)}};return i.__extender=n,i}function zrt(e,t,n){return{beforeCreate(){const i=Vn();if(!i)throw $o(co.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const s=o.i18n;if(o.__i18n&&(s.__i18n=o.__i18n),s.__root=t,this===this.$root)this.$i18n=Xj(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=dT(s);const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=Xj(e,o);else{this.$i18n=dT({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&jG(t,o,o),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,r)=>this.$i18n.te(s,r),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(i,this.$i18n)},mounted(){},unmounted(){const i=Vn();if(!i)throw $o(co.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(i),delete this.$i18n}}}function Xj(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[LG](t.pluralizationRules||e.pluralizationRules);const n=xO(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(i=>e.mergeLocaleMessage(i,n[i])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(i=>e.mergeDateTimeFormat(i,t.datetimeFormats[i])),t.numberFormats&&Object.keys(t.numberFormats).forEach(i=>e.mergeNumberFormat(i,t.numberFormats[i])),e}const AO={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Rrt({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((i,o)=>[...i,...o.type===ft?o.children:[o]],[]):t.reduce((n,i)=>{const o=e[i];return o&&(n[i]=o()),n},{})}function zG(){return ft}const Brt=se({name:"i18n-t",props:lr({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>sr(e)||!isNaN(e)}},AO),setup(e,t){const{slots:n,attrs:i}=t,o=e.i18n||EO({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(g=>g!=="_"),r={};e.locale&&(r.locale=e.locale),e.plural!==void 0&&(r.plural=Ut(e.plural)?+e.plural:e.plural);const a=Rrt(t,s),u=o[aT](e.keypath,a,r),c=lr({},i),l=Ut(e.tag)||Un(e.tag)?e.tag:zG();return Wn(l,c,u)}}}),Kj=Brt;function Frt(e){return Oi(e)&&!Ut(e[0])}function RG(e,t,n,i){const{slots:o,attrs:s}=t;return()=>{const r={part:!0};let a={};e.locale&&(r.locale=e.locale),Ut(e.format)?r.key=e.format:Un(e.format)&&(Ut(e.format.key)&&(r.key=e.format.key),a=Object.keys(e.format).reduce((C,S)=>n.includes(S)?lr({},C,{[S]:e.format[S]}):C,{}));const u=i(e.value,r,a);let c=[r.key];Oi(u)?c=u.map((C,S)=>{const _=o[C.type],A=_?_({[C.type]:C.value,index:S,parts:u}):[C.value];return Frt(A)&&(A[0].key=`${C.type}-${S}`),A}):Ut(u)&&(c=[u]);const l=lr({},s),g=Ut(e.tag)||Un(e.tag)?e.tag:zG();return Wn(g,l,c)}}const Vrt=se({name:"i18n-n",props:lr({value:{type:Number,required:!0},format:{type:[String,Object]}},AO),setup(e,t){const n=e.i18n||EO({useScope:e.scope,__useComponent:!0});return RG(e,t,TG,(...i)=>n[cT](...i))}}),Jj=Vrt,Hrt=se({name:"i18n-d",props:lr({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},AO),setup(e,t){const n=e.i18n||EO({useScope:e.scope,__useComponent:!0});return RG(e,t,MG,(...i)=>n[lT](...i))}}),qj=Hrt;function Wrt(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const i=n.__getInstance(t);return i!=null?i.__composer:e.global.__composer}}function Urt(e){const t=r=>{const{instance:a,value:u}=r;if(!a||!a.$)throw $o(co.UNEXPECTED_ERROR);const c=Wrt(e,a.$),l=Qj(u);return[Reflect.apply(c.t,c,[...ez(l)]),c]};return{created:(r,a)=>{const[u,c]=t(a);CC&&e.global===c&&(r.__i18nWatcher=gt(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),r.__composer=c,r.textContent=u},unmounted:r=>{CC&&r.__i18nWatcher&&(r.__i18nWatcher(),r.__i18nWatcher=void 0,delete r.__i18nWatcher),r.__composer&&(r.__composer=void 0,delete r.__composer)},beforeUpdate:(r,{value:a})=>{if(r.__composer){const u=r.__composer,c=Qj(a);r.textContent=Reflect.apply(u.t,u,[...ez(c)])}},getSSRProps:r=>{const[a]=t(r);return{textContent:a}}}}function Qj(e){if(Ut(e))return{path:e};if(Sn(e)){if(!("path"in e))throw $o(co.REQUIRED_VALUE,"path");return e}else throw $o(co.INVALID_VALUE)}function ez(e){const{path:t,locale:n,args:i,choice:o,plural:s}=e,r={},a=i||{};return Ut(n)&&(r.locale=n),sr(o)&&(r.plural=o),sr(s)&&(r.plural=s),[t,a,r]}function Zrt(e,t,...n){const i=Sn(n[0])?n[0]:{};(Fn(i.globalInstall)?i.globalInstall:!0)&&([Kj.name,"I18nT"].forEach(s=>e.component(s,Kj)),[Jj.name,"I18nN"].forEach(s=>e.component(s,Jj)),[qj.name,"I18nD"].forEach(s=>e.component(s,qj))),e.directive("t",Urt(t))}const Grt=uu("global-vue-i18n");function Yrt(e={},t){const n=__VUE_I18N_LEGACY_API__&&Fn(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,i=Fn(e.globalInjection)?e.globalInjection:!0,o=new Map,[s,r]=Xrt(e,n),a=uu("");function u(C){return o.get(C)||null}function c(C,S){o.set(C,S)}function l(C){o.delete(C)}const g={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(C,...S){if(C.__VUE_I18N_SYMBOL__=a,C.provide(C.__VUE_I18N_SYMBOL__,g),Sn(S[0])){const y=S[0];g.__composerExtend=y.__composerExtend,g.__vueI18nExtend=y.__vueI18nExtend}let _=null;!n&&i&&(_=iot(C,g.global)),__VUE_I18N_FULL_INSTALL__&&Zrt(C,g,...S),__VUE_I18N_LEGACY_API__&&n&&C.mixin(zrt(r,r.__composer,g));const A=C.unmount;C.unmount=()=>{_&&_(),g.dispose(),A()}},get global(){return r},dispose(){s.stop()},__instances:o,__getInstance:u,__setInstance:c,__deleteInstance:l};return g}function EO(e={}){const t=Vn();if(t==null)throw $o(co.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw $o(co.NOT_INSTALLED);const n=Krt(t),i=qrt(n),o=NG(t),s=Jrt(e,o);if(s==="global")return jG(i,e,o),i;if(s==="parent"){let u=Qrt(n,t,e.__useComponent);return u==null&&(u=i),u}const r=n;let a=r.__getInstance(t);if(a==null){const u=lr({},e);"__i18n"in o&&(u.__i18n=o.__i18n),i&&(u.__root=i),a=$O(u),r.__composerExtend&&(a[uT]=r.__composerExtend(a)),tot(r,t,a),r.__setInstance(t,a)}return a}function Xrt(e,t,n){const i=t1(),o=__VUE_I18N_LEGACY_API__&&t?i.run(()=>dT(e)):i.run(()=>$O(e));if(o==null)throw $o(co.UNEXPECTED_ERROR);return[i,o]}function Krt(e){const t=Dt(e.isCE?Grt:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw $o(e.isCE?co.NOT_INSTALLED_WITH_PROVIDE:co.UNEXPECTED_ERROR);return t}function Jrt(e,t){return Lw(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function qrt(e){return e.mode==="composition"?e.global:e.global.__composer}function Qrt(e,t,n=!1){let i=null;const o=t.root;let s=eot(t,n);for(;s!=null;){const r=e;if(e.mode==="composition")i=r.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const a=r.__getInstance(s);a!=null&&(i=a.__composer,n&&i&&!i[DG]&&(i=null))}if(i!=null||o===s)break;s=s.parent}return i}function eot(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function tot(e,t,n){Yt(()=>{},t),$i(()=>{const i=n;e.__deleteInstance(t);const o=i[uT];o&&(o(),delete i[uT])},t)}const not=["locale","fallbackLocale","availableLocales"],tz=["t","rt","d","n","tm","te"];function iot(e,t){const n=Object.create(null);return not.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s)throw $o(co.UNEXPECTED_ERROR);const r=oi(s.value)?{get(){return s.value.value},set(a){s.value.value=a}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,o,r)}),e.config.globalProperties.$i18n=n,tz.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s||!s.value)throw $o(co.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,s)}),()=>{delete e.config.globalProperties.$i18n,tz.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}Lrt();frt(Git);hrt(crt);prt(_G);if(__INTLIFY_PROD_DEVTOOLS__){const e=Eu();e.__INTLIFY__=!0,Yit(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const rot={"messageBox.tab.title.message":"Message","messageBox.tab.title.notice":"Notice","messageBox.tab.title.todo":"Todo","messageBox.tab.button":"empty","messageBox.allRead":"All Read","messageBox.viewMore":"View More","messageBox.noContent":"No Content","messageBox.switchRoles":"Switch Roles","messageBox.userCenter":"User Center","messageBox.userSettings":"User Settings","messageBox.logout":"Logout"},oot={"login.form.title":"SmartAI Large model","login.form.userName.errMsg":"Username cannot be empty","login.form.password.errMsg":"Password cannot be empty","login.form.login.errMsg":"Login error, refresh and try again","login.form.login.success":"welcome to use","login.form.userName.placeholder":"Username: admin","login.form.password.placeholder":"Password: admin","login.form.rememberPassword":"Remember password","login.form.forgetPassword":"Forgot password","login.form.login":"login","login.form.register":"register account","login.banner.slogan1":"SmartAI Large model platform","login.banner.subSlogan1":"Rich page templates, covering most typical business scenarios","login.banner.slogan2":"Built-in solutions to common problems","login.banner.subSlogan2":"Internationalization, routing configuration, state management everything","login.banner.slogan3":"Access visualization enhancement tool AUX","login.banner.subSlogan3":"Realize flexible block development"},sot={"menu.dashboard.workplace":"Workplace","workplace.welcome":"Welcome!","workplace.balance":"Balance (CNY)","workplace.order.pending":"Pending","workplace.order.pendingRenewal":"Renewal Order","workplace.onlineContent":"Online Content","workplace.putIn":"Put In","workplace.newDay":"Daily Additional Comments","workplace.newFromYesterday":"New From Yesterday","workplace.minute":"Min","workplace.docs":"Documents","workplace.docs.productOverview":"Product Overview","workplace.docs.userGuide":"User Guide","workplace.docs.workflow":"Workflow","workplace.docs.interfaceDocs":"Interface Docs","workplace.contentManagement":"Content Management","workplace.contentStatistical":"Content Statistical","workplace.advanced":"Advanced","workplace.onlinePromotion":"Online Promotion","workplace.contentPutIn":"Put In","workplace.announcement":"Announcement","workplace.recently.visited":"Recently Visited","workplace.record.nodata":"No data","workplace.quick.operation":"Quick Operation","workplace.quickOperation.setup":"Setup","workplace.allProject":"All","workplace.loadMore":"More","workplace.viewMore":"More","workplace.contentData":"Content Data","workplace.popularContent":"Popular Content","workplace.popularContent.text":"text","workplace.popularContent.image":"image","workplace.popularContent.video":"video","workplace.categoriesPercent":"Categories Percent","workplace.pecs":"pecs"},aot={"menu.user.title":"Account"},lot={"menu.organization.title":"Organization","menu.organization.detail":"Detail"},cot={"menu.resource.title":"resource","menu.resource.detail":"Detail"},uot={"menu.role.title":"Role"},dot={"menu.group.title":"Group"},fot={"menu.dashboard.monitor":"Real-time Monitor","monitor.title.chatPanel":"Chat Window","monitor.title.quickOperation":"Quick Operation","monitor.title.studioInfo":"Studio Information","monitor.title.studioPreview":"Studio Preview","monitor.chat.options.all":"All","monitor.chat.placeholder.searchCategory":"Search Category","monitor.chat.update":"Update","monitor.list.title.order":"Order","monitor.list.title.cover":"Cover","monitor.list.title.name":"Name","monitor.list.title.duration":"Duration","monitor.list.title.id":"ID","monitor.list.tip.rotations":"Rotations ","monitor.list.tip.rest":", The program list is not visible to viewers","monitor.list.tag.auditFailed":"Audit Failed","monitor.tab.title.liveMethod":"Live Method","monitor.tab.title.onlinePopulation":"Online Population","monitor.liveMethod.normal":"Normal Live","monitor.liveMethod.flowControl":"Flow Control Live","monitor.liveMethod.video":"Video Live","monitor.liveMethod.web":"Web Live","monitor.editCarousel":"Edit","monitor.startCarousel":"Start","monitor.quickOperation.changeClarity":"Change the Clarity","monitor.quickOperation.switchStream":"Switch Stream","monitor.quickOperation.removeClarity":"Remove the Clarity","monitor.quickOperation.pushFlowGasket":"Push Flow Gasket","monitor.studioInfo.label.studioTitle":"Studio Title","monitor.studioInfo.label.onlineNotification":"Online Notification","monitor.studioInfo.label.studioCategory":"Studio Category","monitor.studioInfo.placeholder.studioTitle":"'s Studio","monitor.studioInfo.btn.fresh":"Fresh","monitor.studioStatus.title.studioStatus":"Studio Status","monitor.studioStatus.title.pictureInfo":"Picture Information","monitor.studioStatus.smooth":"Smooth","monitor.studioStatus.frameRate":"Frame","monitor.studioStatus.bitRate":"Bit","monitor.studioStatus.mainstream":"Main","monitor.studioStatus.hotStandby":"Hot","monitor.studioStatus.coldStandby":"Cold","monitor.studioStatus.line":"Line","monitor.studioStatus.play":"Format","monitor.studioStatus.pictureQuality":"Quality","monitor.studioPreview.studio":"Studio","monitor.studioPreview.watching":"watching"},hot={"menu.list.searchTable":"Search Table","searchTable.form.number":"Set Number","searchTable.form.number.placeholder":"Please enter Set Number","searchTable.form.name":"Set Name","searchTable.form.name.placeholder":"Please enter Set Name","searchTable.form.contentType":"Content Type","searchTable.form.contentType.img":"image-text","searchTable.form.contentType.horizontalVideo":"Horizontal short video","searchTable.form.contentType.verticalVideo":"Vertical short video","searchTable.form.filterType":"Filter Type","searchTable.form.filterType.artificial":"artificial","searchTable.form.filterType.rules":"Rules","searchTable.form.createdTime":"Create Date","searchTable.form.status":"Status","searchTable.form.status.online":"Online","searchTable.form.status.offline":"Offline","searchTable.form.search":"Search","searchTable.form.reset":"Reset","searchTable.form.selectDefault":"All","searchTable.operation.create":"Create","searchTable.operation.import":"Import","searchTable.operation.download":"Download","searchTable.columns.index":"#","searchTable.columns.number":"Set Number","searchTable.columns.name":"Set Name","searchTable.columns.contentType":"Content Type","searchTable.columns.filterType":"Filter Type","searchTable.columns.count":"Count","searchTable.columns.createdTime":"CreatedTime","searchTable.columns.status":"Status","searchTable.columns.operations":"Operations","searchTable.columns.operations.view":"View","searchTable.size.mini":"mini","searchTable.size.small":"small","searchTable.size.medium":"middle","searchTable.size.large":"large","searchTable.actions.refresh":"refresh","searchTable.actions.density":"density","searchTable.actions.columnSetting":"columnSetting"},pot={"menu.list.cardList":"Card List","cardList.tab.title.all":"All","cardList.tab.title.content":"Quality Inspection","cardList.tab.title.service":"The service","cardList.tab.title.preset":"Rules Preset","cardList.searchInput.placeholder":"Search","cardList.enable":"Enable","cardList.disable":"Disable","cardList.content.delete":"Delete","cardList.content.inspection":"Inspection","cardList.content.action":"Click Create Qc Content queue","cardList.service.open":"Open","cardList.service.cancel":"Cancel","cardList.service.renew":"Contract of service","cardList.service.tag":"Opened","cardList.service.expiresTag":"Expired","cardList.preset.tag":"Enable"},mot={"menu.form.step":"Step Form","stepForm.step.title":"Create Channel Forms","stepForm.step.title.baseInfo":"Select Basic Information","stepForm.step.subTitle.baseInfo":"Channel creation activities","stepForm.step.title.channel":"Channel Information","stepForm.step.subTitle.channel":"Select upstream of domain","stepForm.step.title.finish":"Finish","stepForm.step.subTitle.finish":"Submit success","stepForm.success.title":"Success","stepForm.success.subTitle":"The form is submitted successfully!","stepForm.button.next":"Next","stepForm.button.prev":"Prev","stepForm.button.submit":"Submit","stepForm.button.again":"Again","stepForm.button.view":"Detail","stepForm.label.type.web":"web domain","stepForm.label.type.api":"api domain","stepForm.form.label.activityName":"Activity Name","stepForm.placeholder.activityName":"Enter a maximum of 20 Chinese characters, letters, or digits","stepForm.form.error.activityName.pattern":"Enter a maximum of 20 Chinese characters, letters, or digits","stepForm.form.error.activityName.required":"Please enter the activity name","stepForm.form.label.channelType":"Channel Type","stepForm.placeholder.channelType":"Select a channel type","stepForm.form.error.channelType.required":"Please select a channel type","stepForm.form.label.promotionTime":"Promotion Time","stepForm.form.error.promotionTime.required":"Please select the promotion time","stepForm.form.label.promoteLink":"Promote Link","stepForm.form.error.promoteLink.required":"Please enter the promotion link","stepForm.form.error.promoteLink.pattern":"For example, the download address of Android or iOS or the intermediate URL must start with http:// or https://","stepForm.form.tip.promoteLink":"For example, the download address of Android or iOS or the intermediate URL must start with http:// or https://","stepForm.placeholder.promoteLink":"Please enter the promotion page Link","stepForm.form.label.advertisingSource":"Advertising Source","stepForm.placeholder.advertisingSource":"Introduction source address: Sohu, Sina","stepForm.form.error.advertisingSource.required":"Please enter the advertising source","stepForm.form.label.advertisingMedia":"Advertising Media","stepForm.placeholder.advertisingMedia":"Marketing media: CPC, Banner, EDM","stepForm.form.error.advertisingMedia.required":"Please enter the advertising media","stepForm.form.label.keyword":"keyword","stepForm.placeholder.keyword":"Please select keyword","stepForm.form.error.keyword.required":"Please select keyword","stepForm.form.label.pushNotify":"Push Notify","stepForm.form.label.advertisingContent":"Advertising Content","stepForm.placeholder.advertisingContent":"Please enter the description of advertisement content, the maximum is 200 words","stepForm.form.error.advertisingContent.required":"Please enter the description of advertisement content","stepForm.form.error.advertisingContent.maxLength":"the maximum is 200 words","stepForm.form.description.title":"Channel Form Description","stepForm.form.description.text":"Advertiser channel promotion supports tracking of users who download apps by placing ads on third-party advertisers, such as toutiao channel, and tracking users who activate apps by downloading apps through channels."},vot={"menu.form.group":"Group Form","groupForm.title.video":"Video Parameters","groupForm.title.audio":"Audio Parameters","groupForm.title.description":"Enter Description","groupForm.form.label.video.mode":"Match Mode","groupForm.form.label.video.acquisition.resolution":"Acquisition Resolution","groupForm.form.label.video.acquisition.frameRate":"Acquisition Frame Rate","groupForm.form.label.video.encoding.resolution":"Encoding Resolution","groupForm.form.label.video.encoding.rate.min":"Encoding Min Rate","groupForm.form.label.video.encoding.rate.max":"Encoding Max Rate","groupForm.form.label.video.encoding.rate.default":"Encoding Default Rate","groupForm.form.label.video.encoding.frameRate":"Encoding Frame Rate","groupForm.form.label.video.encoding.profile":"Encoding Profile","groupForm.placeholder.video.mode":"Please Select","groupForm.placeholder.video.acquisition.resolution":"Please Select","groupForm.placeholder.video.acquisition.frameRate":"Enter Range [1, 30]","groupForm.placeholder.video.encoding.resolution":"Please Select","groupForm.placeholder.video.encoding.rate.min":"Enter Range [150, 1800]","groupForm.placeholder.video.encoding.rate.max":"Enter Range [150, 1800]","groupForm.placeholder.video.encoding.rate.default":"Enter Range [150, 1800]","groupForm.placeholder.video.encoding.frameRate":"Enter Range [1, 30]","groupForm.placeholder.video.encoding.profile":"Enter Range [150, 1800]","groupForm.form.label.audio.mode":"Match Mode","groupForm.form.label.audio.acquisition.channels":"Acquisition Channels","groupForm.form.label.audio.encoding.rate":"Encoding Rate","groupForm.form.label.audio.encoding.channels":"Encoding Channels","groupForm.placeholder.audio.encoding.channels":"Enter Range [150, 1800]","groupForm.form.label.audio.encoding.profile":"Encoding Profile","groupForm.placeholder.audio.mode":"Please Select","groupForm.placeholder.audio.acquisition.channels":"Please Select","groupForm.placeholder.audio.encoding.rate":"Enter Range [150, 1800]","groupForm.placeholder.audio.encoding.profile":"Enter Range [1, 30]","groupForm.form.label.parameterDescription":"Parameter Description","groupForm.placeholder.description":"Please fill in the parameter description with a maximum of 200 words","groupForm.submit":"Submit","groupForm.reset":"Reset","groupForm.submitSuccess":"Submit Success"},got={"menu.profile.basic":"Basic Profile","basicProfile.title.form":"Parameter Approval Process Table","basicProfile.steps.commit":"Commit","basicProfile.steps.approval":"Approval","basicProfile.steps.finish":"Finish","basicProfile.title.currentParams":"Current Parameters","basicProfile.title.originParams":"Original Parameters","basicProfile.title.video":"Video Parameters","basicProfile.title.audio":"Audio Parameters","basicProfile.title.preVideo":"Original video parameters","basicProfile.title.preAudio":"Original audio parameters","basicProfile.label.video.mode":"Match Mode","basicProfile.label.video.acquisition.resolution":"Acquisition Resolution","basicProfile.label.video.acquisition.frameRate":"Acquisition Frame Rate","basicProfile.label.video.encoding.resolution":"Encoding Resolution","basicProfile.label.video.encoding.rate.min":"Encoding Min Rate","basicProfile.label.video.encoding.rate.max":"Encoding Max Rate","basicProfile.label.video.encoding.rate.default":"Encoding Default Rate","basicProfile.label.video.encoding.frameRate":"Encoding Frame Rate","basicProfile.label.video.encoding.profile":"Encoding Profile","basicProfile.label.audio.mode":"Match Mode","basicProfile.label.audio.acquisition.channels":"Acquisition Channels","basicProfile.label.audio.encoding.channels":"Encoding Channels","basicProfile.label.audio.encoding.rate":"Encoding Rate","basicProfile.label.audio.encoding.profile":"Encoding Profile","basicProfile.unit.audio.channels":"channels","basicProfile.goBack":"GoBack","basicProfile.cancel":"Cancel Process","basicProfile.title.operationLog":"Operation Log","basicProfile.column.contentNumber":"Content Number","basicProfile.column.updateContent":"Update Content","basicProfile.column.status":"Status","basicProfile.column.updateTime":"Update Time","basicProfile.column.operation":"Operation","basicProfile.cell.pass":"Pass","basicProfile.cell.auditing":"Auditing","basicProfile.cell.view":"View"},yot={"menu.visualization.dataAnalysis":"Analysis","dataAnalysis.title.publicOpinion":"Public Opinion Analysis","dataAnalysis.card.title.allVisitors":"All Visitors","dataAnalysis.card.title.contentPublished":"Content Published","dataAnalysis.card.title.totalComment":"Total Comment","dataAnalysis.card.title.totalShare":"Total Share","dataAnalysis.card.yesterday":"Yesterday","dataAnalysis.contentPublishRatio":"Content Publishing Ratio","dataAnalysis.popularAuthor":"Popular Author","dataAnalysis.popularAuthor.column.ranking":"ranking","dataAnalysis.popularAuthor.column.author":"author","dataAnalysis.popularAuthor.column.content":"Content Number","dataAnalysis.popularAuthor.column.click":"Click Number","dataAnalysis.contentPeriodAnalysis":"Content Period Analysis"},bot={"menu.visualization.multiDimensionDataAnalysis":"Multi-D Analysis","multiDAnalysis.card.title.dataOverview":"Overview","multiDAnalysis.dataOverview.contentProduction":"Content Production","multiDAnalysis.dataOverview.contentClick":"Content Click","multiDAnalysis.dataOverview.contentExposure":"Content Exposure","multiDAnalysis.dataOverview.activeUsers":"Active Users","multiDAnalysis.card.title.userActions":"User Actions","multiDAnalysis.card.title.contentTypeDistribution":"Content Type Distribution","multiDAnalysis.card.title.retentionTrends":"Retention Trends","multiDAnalysis.card.title.userRetention":"User Retention","multiDAnalysis.card.title.contentConsumptionTrends":"Content Consumption Trends","multiDAnalysis.card.title.contentConsumption":"Content Consumption","multiDAnalysis.card.title.contentPublishingSource":"Content Publishing Source"},kot={"menu.result.success":"Success","success.result.title":"Submit Success","success.result.subTitle":"Submit form success!","success.result.printResult":"Print result","success.result.projectList":"Project List","success.result.progress":"Progress","success.submitApplication":"Submit Application","success.leaderReview":"Leader Review","success.purchaseCertificate":"Purchase Certificate","success.safetyTest":"Safety Test","success.launched":"Officially launched","success.waiting":"Waiting","success.processing":"Processing"},Cot={"menu.result.error":"Error","error.result.title":"Submit Error","error.result.subTitle":"Submit form error","error.result.goBack":"Go Back","error.result.retry":"return for correction","error.detailTitle":"Details of Error","error.detailLine.record":"The current domain name has not been registered, please check the registration process: ","error.detailLine.record.link":"Registration Process","error.detailLine.auth":"Your user group does not have the authority to perform this operation;"},Sot={"menu.exception.403":"403","exception.result.403.description":"Access to this resource on the server is denied.","exception.result.403.back":"Back"},wot={"menu.exception.404":"404","exception.result.404.description":"Whoops, this page is gone.","exception.result.404.retry":"Retry","exception.result.404.back":"Back"},_ot={"menu.exception.500":"500","exception.result.500.description":"Internal server error","exception.result.500.back":"Back"},Iot={"menu.user.info":"User Info","userInfo.editUserInfo":"Edit Info","userInfo.tab.title.overview":"Overview","userInfo.tab.title.project":"Project","userInfo.tab.title.team":"My Team","userInfo.title.latestActivity":"Latest Activity","userInfo.title.latestNotification":"In-site Notification","userInfo.title.myProject":"My Project","userInfo.showMore":"Show More","userInfo.viewAll":"View All","userInfo.nodata":"No Data","userInfo.visits.unit":"times","userInfo.visits.lastMonth":"Last Month"},xot={"menu.user.setting":"User Setting","userSetting.menu.title.info":"Personal Information","userSetting.menu.title.account":"Account Setting","userSetting.menu.title.password":"Password","userSetting.menu.title.message":"Message Notification","userSetting.menu.title.result":"Result","userSetting.menu.title.data":"Export Data","userSetting.saveSuccess":"Save Success","userSetting.title.basicInfo":"Basic Information","userSetting.title.socialInfo":"Social Information","userSetting.label.avatar":"Avatar","userSetting.label.name":"User Name","userSetting.label.location":"Office Location","userSetting.label.introduction":"Introduction","userSetting.label.personalWebsite":"Website","userSetting.save":"Save","userSetting.cancel":"Cancel","userSetting.reset":"Reset","userSetting.label.certification":"Certification","userSetting.label.phone":"Phone","userSetting.label.accountId":"Account Id","userSetting.label.registrationDate":"Registration Date","userSetting.tab.basicInformation":"Basic Information","userSetting.tab.securitySettings":"Security Settings","userSetting.tab.certification":"Certification","userSetting.basicInfo.form.label.email":"Email","userSetting.basicInfo.placeholder.email":"Please enter your email address, such as xxx{'@'}bytedance.com","userSetting.form.error.email.required":"Please enter email address","userSetting.basicInfo.form.label.nickname":"Nickname","userSetting.basicInfo.placeholder.nickname":"Please enter nickname","userSetting.form.error.nickname.required":"Please enter nickname","userSetting.basicInfo.form.label.countryRegion":"Country/region","userSetting.basicInfo.placeholder.countryRegion":"Please select country/region","userSetting.form.error.countryRegion.required":"Please select country/region","userSetting.basicInfo.form.label.area":"Area","userSetting.basicInfo.placeholder.area":"Please select area","userSetting.form.error.area.required":"Please Select a area","userSetting.basicInfo.form.label.address":"Address","userSetting.basicInfo.placeholder.address":"Please enter address","userSetting.basicInfo.form.label.profile":"Personal profile","userSetting.basicInfo.placeholder.profile":"Please enter your profile, no more than 200 words","userSetting.form.error.profile.maxLength":"No more than 200 words","userSetting.SecuritySettings.form.label.password":"Login Password","userSetting.SecuritySettings.placeholder.password":"Has been set. The password must contain at least six letters, digits, and special characters except Spaces. The password must contain both uppercase and lowercase letters.","userSetting.SecuritySettings.form.label.securityQuestion":"Security Question","userSetting.SecuritySettings.placeholder.securityQuestion":"You have not set the password protection question. The password protection question can effectively protect the account security.","userSetting.SecuritySettings.form.label.phone":"Phone","userSetting.SecuritySettings.form.label.email":"Email","userSetting.SecuritySettings.placeholder.email":"You have not set a mailbox yet. The mailbox binding can be used to retrieve passwords and receive notifications.","userSetting.SecuritySettings.button.settings":"Settings","userSetting.SecuritySettings.button.update":"Update","userSetting.certification.title.enterprise":"Enterprise Real Name Authentication","userSetting.certification.extra.enterprise":"Modifying an Authentication Body","userSetting.certification.label.accountType":"Account Type","userSetting.certification.label.status":"status","userSetting.certification.label.time":"time","userSetting.certification.label.legalPerson":"Legal Person Name","userSetting.certification.label.certificateType":"Types of legal person documents","userSetting.certification.label.authenticationNumber":"Legal person certification number","userSetting.certification.label.enterpriseName":"Enterprise Name","userSetting.certification.label.enterpriseCertificateType":"Types of corporate certificates","userSetting.certification.label.organizationCode":"Organization Code","userSetting.certification.title.record":"Certification Records","userSetting.certification.columns.certificationType":"Certification Type","userSetting.certification.cell.certificationType":"Enterprise certificate Certification","userSetting.certification.columns.certificationContent":"Certification Content","userSetting.certification.columns.status":"Status","userSetting.certification.cell.pass":"Pass","userSetting.certification.cell.auditing":"Auditing","userSetting.certification.columns.time":"Time","userSetting.certification.columns.operation":"Operation","userSetting.certification.button.check":"Check","userSetting.certification.button.withdraw":"Withdraw"},$ot={"menu.list.searchTable":"Search Table","searchTable.form.number":"Set Number","searchTable.form.number.placeholder":"Please enter Set Number","searchTable.form.name":"Set Name","searchTable.form.name.placeholder":"Please enter Set Name","searchTable.form.contentType":"Content Type","searchTable.form.contentType.img":"image-text","searchTable.form.contentType.horizontalVideo":"Horizontal short video","searchTable.form.contentType.verticalVideo":"Vertical short video","searchTable.form.filterType":"Filter Type","searchTable.form.filterType.artificial":"artificial","searchTable.form.filterType.rules":"Rules","searchTable.form.createdTime":"Create Date","searchTable.form.status":"Status","searchTable.form.status.online":"Online","searchTable.form.status.offline":"Offline","searchTable.form.search":"Search","searchTable.form.reset":"Reset","searchTable.form.selectDefault":"All","searchTable.operation.create":"Create","searchTable.operation.import":"Import","searchTable.operation.download":"Download","searchTable.columns.index":"#","searchTable.columns.number":"Set Number","searchTable.columns.name":"Set Name","searchTable.columns.contentType":"Content Type","searchTable.columns.filterType":"Filter Type","searchTable.columns.count":"Count","searchTable.columns.createdTime":"CreatedTime","searchTable.columns.status":"Status","searchTable.columns.operations":"Operations","searchTable.columns.operations.view":"View","searchTable.size.mini":"mini","searchTable.size.small":"small","searchTable.size.medium":"middle","searchTable.size.large":"large","searchTable.actions.refresh":"refresh","searchTable.actions.density":"density","searchTable.actions.columnSetting":"columnSetting","dmx.list.index":"Large model","dmx.list.kbm":"Knowledge base management","dmx.list.DataSet":"Data set","dmx.list.complete":"finish","dmx.list.cancel":"cancel","dmx.list.NotStarted":"Not Started","dmx.list.EnsureDelete":"Delete?","dmx.list.test":"test","dmx.list.disposition":"disposition","dmx.list.EntireArticle":"Full text","dmx.list.omit":"omit","dmx.list.batch":"batch","dmx.KBL.LegalKB":"Legal knowledge base","dmx.KBL.GovernmentKB":"Government knowledge base","dmx.KBL.MedicalKB":"Medical knowledge base","dmx.KBL.OtherKB":"Other knowledge base","dmx.column.name":"name","dmx.column.UploadTime":"UploadTime","dmx.column.Founder":"Founder","dmx.column.Status":"Status","dmx.column.Enable":"Enable","dmx.column.ParseState":"ParseState","dmx.column.Operate":"Operate"},Aot={"settings.title":"Settings","settings.themeColor":"Theme Color","settings.content":"Content Setting","settings.search":"Search","settings.language":"Language","settings.navbar":"Navbar","settings.menuWidth":"Menu Width (px)","settings.navbar.theme.toLight":"Click to use light mode","settings.navbar.theme.toDark":"Click to use dark mode","settings.navbar.screen.toFull":"Click to switch to full screen mode","settings.navbar.screen.toExit":"Click to exit the full screen mode","settings.navbar.alerts":"alerts","settings.menu":"Menu","settings.topMenu":"Top Menu","settings.tabBar":"Tab Bar","settings.footer":"Footer","settings.otherSettings":"Other Settings","settings.colorWeak":"Color Weak","settings.alertContent":'After the configuration is only temporarily effective, if you want to really affect the project, click the "Copy Settings" button below and replace the configuration in settings.json.',"settings.copySettings":"Copy Settings","settings.copySettings.message":"Copy succeeded, please paste to file src/settings.json.","settings.close":"Close","settings.color.tooltip":"10 gradient colors generated according to the theme color","settings.menuFromServer":"Menu From Server"},Eot={"menu.dashboard":"Dashboard","menu.authority":"Authority","menu.server.dashboard":"Dashboard-Server","menu.server.workplace":"Workplace-Server","menu.server.monitor":"Monitor-Server","menu.list":"List","menu.result":"Result","menu.exception":"Exception","menu.form":"Form","menu.profile":"Profile","menu.visualization":"Data Visualization","menu.user":"User Center","menu.arcoWebsite":"SmartAl大模型平台","menu.faq":"FAQ","navbar.docs":"Docs","navbar.action.locale":"Switch to English",...$ot,...Aot,...rot,...oot,...sot,...aot,...lot,...cot,...uot,...dot,...fot,...hot,...pot,...mot,...vot,...got,...yot,...bot,...kot,...Cot,...Sot,...wot,..._ot,...Iot,...xot},Mot={"messageBox.tab.title.message":"消息","messageBox.tab.title.notice":"通知","messageBox.tab.title.todo":"待办","messageBox.tab.button":"清空","messageBox.allRead":"全部已读","messageBox.viewMore":"查看更多","messageBox.noContent":"暂无内容","messageBox.switchRoles":"切换角色","messageBox.userCenter":"用户中心","messageBox.userSettings":"用户设置","messageBox.logout":"退出登录"},Tot={"login.form.title":"SmartAl大模型平台","login.form.userName.errMsg":"用户名不能为空","login.form.password.errMsg":"密码不能为空","login.form.login.errMsg":"登录出错,轻刷新重试","login.form.login.success":"欢迎使用","login.form.userName.placeholder":"用户名:admin","login.form.password.placeholder":"密码:admin","login.form.rememberPassword":"记住密码","login.form.forgetPassword":"忘记密码","login.form.login":"登录","login.form.register":"注册账号","login.banner.slogan1":"SmartAl大模型平台","login.banner.subSlogan1":"丰富的的页面模板,覆盖大多数典型业务场景","login.banner.slogan2":"内置了常见问题的解决方案","login.banner.subSlogan2":"国际化,路由配置,状态管理应有尽有","login.banner.slogan3":"接入可视化增强工具AUX","login.banner.subSlogan3":"实现灵活的区块式开发"},Pot={"menu.dashboard.workplace":"工作台","workplace.welcome":"登录成功!","workplace.balance":"余额(元)","workplace.order.pending":"待支付","workplace.order.pendingRenewal":"待续费订单","workplace.onlineContent":"线上总内容","workplace.putIn":"投放中内容","workplace.newDay":"日新增评论","workplace.newFromYesterday":"较昨日新增","workplace.minute":"分钟","workplace.docs":"帮助文档","workplace.docs.productOverview":"产品概要","workplace.docs.userGuide":"使用指南","workplace.docs.workflow":"接入流程","workplace.docs.interfaceDocs":"接口文档","workplace.contentManagement":"内容管理","workplace.contentStatistical":"内容分析","workplace.advanced":"高级管理","workplace.onlinePromotion":"线上推广","workplace.contentPutIn":"内容投放","workplace.announcement":"公告","workplace.recently.visited":"最近访问","workplace.record.nodata":"暂无数据","workplace.quick.operation":"快捷操作","workplace.quickOperation.setup":"管理","workplace.allProject":"所有项目","workplace.loadMore":"加载更多","workplace.viewMore":"查看更多","workplace.contentData":"内容数据","workplace.popularContent":"线上热门内容","workplace.popularContent.text":"文本","workplace.popularContent.image":"图片","workplace.popularContent.video":"视频","workplace.categoriesPercent":"内容类型占比","workplace.pecs":"个"},Oot={"menu.user.title":"账户"},Lot={"menu.organization.title":"机构","menu.organization.detail":"详情"},Dot={"menu.resource.title":"资源","menu.resource.detail":"详情"},Not={"menu.role.title":"角色"},jot={"menu.group.title":"用户组"},zot={"menu.dashboard.monitor":"实时监控","monitor.title.chatPanel":"聊天窗口","monitor.title.quickOperation":"快捷操作","monitor.title.studioInfo":"直播信息","monitor.title.studioPreview":"直播预览","monitor.chat.options.all":"全部","monitor.chat.placeholder.searchCategory":"搜索类目","monitor.chat.update":"更新","monitor.list.title.order":"序号","monitor.list.title.cover":"封面","monitor.list.title.name":"名称","monitor.list.title.duration":"视频时长","monitor.list.title.id":"视频Id","monitor.list.tip.rotations":"轮播次数","monitor.list.tip.rest":",节目单观众不可见","monitor.list.tag.auditFailed":"审核未通过","monitor.tab.title.liveMethod":"直播方式","monitor.tab.title.onlinePopulation":"在线人数","monitor.liveMethod.normal":"普通直播","monitor.liveMethod.flowControl":"控流直播","monitor.liveMethod.video":"视频直播","monitor.liveMethod.web":"网页开播","monitor.editCarousel":"编辑轮播","monitor.startCarousel":"开始轮播","monitor.quickOperation.changeClarity":"切换清晰度","monitor.quickOperation.switchStream":"主备流切换","monitor.quickOperation.removeClarity":"摘除清晰度","monitor.quickOperation.pushFlowGasket":"推流垫片","monitor.studioInfo.label.studioTitle":"直播标题","monitor.studioInfo.label.onlineNotification":"上线通知","monitor.studioInfo.label.studioCategory":"直播类目","monitor.studioInfo.placeholder.studioTitle":"的直播间","monitor.studioInfo.btn.fresh":"更新","monitor.studioStatus.title.studioStatus":"直播状态","monitor.studioStatus.title.pictureInfo":"画面信息","monitor.studioStatus.smooth":"流畅","monitor.studioStatus.frameRate":"帧率","monitor.studioStatus.bitRate":"码率","monitor.studioStatus.mainstream":"主流","monitor.studioStatus.hotStandby":"热备","monitor.studioStatus.coldStandby":"冷备","monitor.studioStatus.line":"线路","monitor.studioStatus.play":"播放格式","monitor.studioStatus.pictureQuality":"画质","monitor.studioPreview.studio":"直播间","monitor.studioPreview.watching":"在看"},Rot={"menu.list.searchTable":"查询表格","searchTable.form.number":"集合编号","searchTable.form.number.placeholder":"请输入集合编号","searchTable.form.name":"集合名称","searchTable.form.name.placeholder":"请输入集合名称","searchTable.form.contentType":"内容体裁","searchTable.form.contentType.img":"图文","searchTable.form.contentType.horizontalVideo":"横版短视频","searchTable.form.contentType.verticalVideo":"竖版小视频","searchTable.form.filterType":"筛选方式","searchTable.form.filterType.artificial":"人工筛选","searchTable.form.filterType.rules":"规则筛选","searchTable.form.createdTime":"创建时间","searchTable.form.status":"状态","searchTable.form.status.online":"已上线","searchTable.form.status.offline":"已下线","searchTable.form.search":"查询","searchTable.form.reset":"重置","searchTable.form.selectDefault":"全部","searchTable.operation.create":"新建","searchTable.operation.import":"批量导入","searchTable.operation.download":"下载","searchTable.columns.index":"#","searchTable.columns.number":"集合编号","searchTable.columns.name":"集合名称","searchTable.columns.contentType":"内容体裁","searchTable.columns.filterType":"筛选方式","searchTable.columns.count":"内容量","searchTable.columns.createdTime":"创建时间","searchTable.columns.status":"状态","searchTable.columns.operations":"操作","searchTable.columns.operations.view":"查看","searchTable.size.mini":"迷你","searchTable.size.small":"偏小","searchTable.size.medium":"中等","searchTable.size.large":"偏大","searchTable.actions.refresh":"刷新","searchTable.actions.density":"行高","searchTable.actions.columnSetting":"列设置"},Bot={"menu.list.cardList":"卡片列表","cardList.tab.title.all":"全部","cardList.tab.title.content":"内容质检","cardList.tab.title.service":"开通服务","cardList.tab.title.preset":"规则预置","cardList.searchInput.placeholder":"搜索","cardList.content.delete":"删除","cardList.content.inspection":"质检","cardList.content.action":"点击创建质检内容队列","cardList.service.open":"开通服务","cardList.service.cancel":"取消服务","cardList.service.renew":"续约服务","cardList.service.tag":"已开通","cardList.service.expiresTag":"已过期","cardList.preset.tag":"已启用"},Fot={"menu.form.step":"分步表单","stepForm.step.title":"创建渠道表单","stepForm.step.title.baseInfo":"选择基本信息","stepForm.step.subTitle.baseInfo":"创建渠道活动","stepForm.step.title.channel":"输入渠道信息","stepForm.step.subTitle.channel":"输入详细的渠道信息","stepForm.step.title.finish":"完成创建","stepForm.step.subTitle.finish":"创建成功","stepForm.success.title":"提交成功","stepForm.success.subTitle":"表单提交成功!","stepForm.button.next":"下一步","stepForm.button.prev":"上一步","stepForm.button.submit":"提交","stepForm.button.again":"再次创建","stepForm.button.view":"查看详情","stepForm.form.label.activityName":"活动名称","stepForm.placeholder.activityName":"输入汉字、字母或数字,最多20字符","stepForm.form.error.activityName.required":"请输入活动名称","stepForm.form.error.activityName.pattern":"输入汉字、字母或数字,最多20字符","stepForm.form.label.channelType":"渠道类型","stepForm.placeholder.channelType":"请选择渠道类型","stepForm.form.error.channelType.required":"请选择渠道类型","stepForm.form.label.promotionTime":"推广时间","stepForm.form.error.promotionTime.required":"请选择推广时间","stepForm.form.label.promoteLink":"推广地址","stepForm.form.error.promoteLink.required":"请输入推广地址","stepForm.form.error.promoteLink.pattern":"如 Android 或 iOS 的下载地址、中间跳转URL,网址必须以 http:// 或 https:// 开头","stepForm.form.tip.promoteLink":"如 Android 或 iOS 的下载地址、中间跳转URL,网址必须以 http:// 或 https:// 开头","stepForm.placeholder.promoteLink":"请输入推广页面地址","stepForm.form.label.advertisingSource":"广告来源","stepForm.placeholder.advertisingSource":"引荐来源地址:sohu、sina","stepForm.form.error.advertisingSource.required":"请输入广告来源","stepForm.form.label.advertisingMedia":"广告媒介","stepForm.placeholder.advertisingMedia":"营销媒介:cpc、banner、edm","stepForm.form.error.advertisingMedia.required":"请输入广告媒介","stepForm.form.label.keyword":"关键词","stepForm.placeholder.keyword":"请选择关键词","stepForm.form.error.keyword.required":"请选择关键词","stepForm.form.label.pushNotify":"推送提醒","stepForm.form.label.advertisingContent":"广告内容","stepForm.placeholder.advertisingContent":"请输入广告内容介绍,最多不超过200字。","stepForm.form.error.advertisingContent.required":"请输入广告内容","stepForm.form.error.advertisingContent.maxLength":"最多不超过200字","stepForm.form.description.title":"渠道表单说明","stepForm.form.description.text":"广告商渠道推广支持追踪在第三方广告商投放广告下载App用户的场景,例如在今日头条渠道投放下载App广告,追踪通过在渠道下载激活App的用户。"},Vot={"menu.form.group":"分组表单","groupForm.title.video":"视频参数","groupForm.title.audio":"音频参数","groupForm.title.description":"填写说明","groupForm.form.label.video.mode":"匹配模式","groupForm.form.label.video.acquisition.resolution":"采集分辨率","groupForm.form.label.video.acquisition.frameRate":"采集帧率","groupForm.form.label.video.encoding.resolution":"编码分辨率","groupForm.form.label.video.encoding.rate.min":"编码码率最小值","groupForm.form.label.video.encoding.rate.max":"编码码率最大值","groupForm.form.label.video.encoding.rate.default":"编码码率默认值","groupForm.form.label.video.encoding.frameRate":"编码帧率","groupForm.form.label.video.encoding.profile":"编码profile","groupForm.placeholder.video.mode":"请选择","groupForm.placeholder.video.acquisition.resolution":"请选择","groupForm.placeholder.video.acquisition.frameRate":"输入范围[1, 30]","groupForm.placeholder.video.encoding.resolution":"请选择","groupForm.placeholder.video.encoding.rate.min":"输入范围[150, 1800]","groupForm.placeholder.video.encoding.rate.max":"输入范围[150, 1800]","groupForm.placeholder.video.encoding.rate.default":"输入范围[150, 1800]","groupForm.placeholder.video.encoding.frameRate":"输入范围[1, 30]","groupForm.placeholder.video.encoding.profile":"输入范围[150, 1800]","groupForm.form.label.audio.mode":"匹配模式","groupForm.form.label.audio.acquisition.channels":"采集声道数","groupForm.form.label.audio.encoding.rate":"编码码率","groupForm.form.label.audio.encoding.channels":"编码声道数","groupForm.placeholder.audio.encoding.channels":"输入范围[150, 1800]","groupForm.form.label.audio.encoding.profile":"编码profile","groupForm.placeholder.audio.mode":"请选择","groupForm.placeholder.audio.acquisition.channels":"请选择","groupForm.placeholder.audio.encoding.rate":"输入范围[150, 1800]","groupForm.placeholder.audio.encoding.profile":"输入范围[1, 30]","groupForm.form.label.parameterDescription":"参数说明","groupForm.placeholder.description":"请填写参数说明,最多不超多200字。","groupForm.submit":"提交","groupForm.reset":"重置","groupForm.submitSuccess":"提交成功"},Hot={"menu.profile.basic":"基础详情页","basicProfile.title.form":"参数审批流程表","basicProfile.steps.commit":"提交修改","basicProfile.steps.approval":"审批中","basicProfile.steps.finish":"修改完成","basicProfile.title.currentParams":"修改后参数","basicProfile.title.originParams":"原参数","basicProfile.title.video":"现视频参数","basicProfile.title.preVideo":"原视频参数","basicProfile.title.audio":"现音频参数","basicProfile.title.preAudio":"原音频参数","basicProfile.label.video.mode":"匹配模式","basicProfile.label.video.acquisition.resolution":"采集分辨率","basicProfile.label.video.acquisition.frameRate":"采集帧率","basicProfile.label.video.encoding.resolution":"编码分辨率","basicProfile.label.video.encoding.rate.min":"编码码率最小值","basicProfile.label.video.encoding.rate.max":"编码码率最大值","basicProfile.label.video.encoding.rate.default":"编码码率默认值","basicProfile.label.video.encoding.frameRate":"编码帧率","basicProfile.label.video.encoding.profile":"编码profile","basicProfile.label.audio.mode":"匹配模式","basicProfile.label.audio.acquisition.channels":"采集声道数","basicProfile.label.audio.encoding.channels":"编码声道数","basicProfile.label.audio.encoding.rate":"编码码率","basicProfile.label.audio.encoding.profile":"编码 profile","basicProfile.unit.audio.channels":"声道","basicProfile.goBack":"返回","basicProfile.cancel":"取消流程","basicProfile.title.operationLog":"参数调整记录","basicProfile.column.contentNumber":"内容编号","basicProfile.column.updateContent":"调整内容","basicProfile.column.status":"当前状态","basicProfile.column.updateTime":"修改时间","basicProfile.column.operation":"操作","basicProfile.cell.pass":"已通过","basicProfile.cell.auditing":"审核中","basicProfile.cell.view":"查看"},Wot={"menu.visualization.dataAnalysis":"分析页","dataAnalysis.title.publicOpinion":"舆情分析","dataAnalysis.card.title.allVisitors":"访问总人次","dataAnalysis.card.title.contentPublished":"内容发布量","dataAnalysis.card.title.totalComment":"评论总量","dataAnalysis.card.title.totalShare":"分享总量","dataAnalysis.card.yesterday":"较昨日","dataAnalysis.contentPublishRatio":"内容发布比例","dataAnalysis.popularAuthor":"热门作者榜单","dataAnalysis.popularAuthor.column.ranking":"排名","dataAnalysis.popularAuthor.column.author":"作者","dataAnalysis.popularAuthor.column.content":"内容量","dataAnalysis.popularAuthor.column.click":"点击量","dataAnalysis.contentPeriodAnalysis":"内容时段分析"},Uot={"menu.visualization.multiDimensionDataAnalysis":"多维数据分析","multiDAnalysis.card.title.dataOverview":"数据总览","multiDAnalysis.dataOverview.contentProduction":"内容生产量","multiDAnalysis.dataOverview.contentClick":"内容点击量","multiDAnalysis.dataOverview.contentExposure":"内容曝光量","multiDAnalysis.dataOverview.activeUsers":"活跃用户数","multiDAnalysis.card.title.userActions":"今日转评赞统计","multiDAnalysis.card.title.contentTypeDistribution":"内容题材分布","multiDAnalysis.card.title.retentionTrends":"用户留存趋势","multiDAnalysis.card.title.userRetention":"用户留存量","multiDAnalysis.card.title.contentConsumptionTrends":"内容消费趋势","multiDAnalysis.card.title.contentConsumption":"内容消费量","multiDAnalysis.card.title.contentPublishingSource":"内容发布来源"},Zot={"menu.result.success":"成功页","success.result.title":"提交成功","success.result.subTitle":"表单提交成功!","success.result.printResult":"打印结果","success.result.projectList":"返回项目列表","success.result.progress":"当前进度","success.submitApplication":"提交申请","success.leaderReview":"直属领导审核","success.purchaseCertificate":"购买证书","success.safetyTest":"安全测试","success.launched":"正式上线","success.waiting":"未开始","success.processing":"进行中"},Got={"menu.result.error":"失败页","error.result.title":"提交失败","error.result.subTitle":"表单提交失败,请重试。","error.result.goBack":"回到首页","error.result.retry":"返回修改","error.detailTitle":"错误详情","error.detailLine.record":"当前域名未备案,备案流程请查看:","error.detailLine.record.link":"备案流程","error.detailLine.auth":"你的用户组不具有进行此操作的权限;"},Yot={"menu.exception.403":"403","exception.result.403.description":"对不起,您没有访问该资源的权限","exception.result.403.back":"返回"},Xot={"menu.exception.404":"404","exception.result.404.description":"抱歉,页面不见了~","exception.result.404.retry":"重试","exception.result.404.back":"返回"},Kot={"menu.exception.500":"500","exception.result.500.description":"抱歉,服务器出了点问题~","exception.result.500.back":"返回"},Jot={"menu.user.info":"用户信息","userInfo.editUserInfo":"编辑信息","userInfo.tab.title.overview":"总览","userInfo.tab.title.project":"项目","userInfo.tab.title.team":"我的团队","userInfo.title.latestActivity":"最新动态","userInfo.title.latestNotification":"站内通知","userInfo.title.myProject":"我的项目","userInfo.showMore":"查看更多","userInfo.viewAll":"查看全部","userInfo.nodata":"暂无数据","userInfo.visits.unit":"人次","userInfo.visits.lastMonth":"较上月"},qot={"menu.user.setting":"用户设置","menu.user.account":"账号管理","userSetting.menu.title.info":"个人信息","userSetting.menu.title.account":"账号设置","userSetting.menu.title.password":"密码","userSetting.menu.title.message":"消息通知","userSetting.menu.title.result":"结果页","userSetting.menu.title.data":"导出数据","userSetting.saveSuccess":"保存成功","userSetting.title.basicInfo":"基本信息","userSetting.title.socialInfo":"社交信息","userSetting.label.avatar":"头像","userSetting.label.name":"用户名","userSetting.label.location":"办公地点","userSetting.label.introduction":"个人简介","userSetting.label.personalWebsite":"个人网站","userSetting.save":"保存","userSetting.cancel":"取消","userSetting.reset":"重置","userSetting.label.certification":"实名认证","userSetting.label.phone":"手机号码","userSetting.label.accountId":"账号ID","userSetting.label.registrationDate":"注册时间","userSetting.tab.basicInformation":"基础信息","userSetting.tab.securitySettings":"安全设置","userSetting.tab.certification":"实名认证","userSetting.basicInfo.form.label.email":"邮箱","userSetting.basicInfo.placeholder.email":"请输入邮箱地址,如xxx{'@'}bytedance.com","userSetting.form.error.email.required":"请输入邮箱","userSetting.basicInfo.form.label.nickname":"昵称","userSetting.basicInfo.placeholder.nickname":"请输入您的昵称","userSetting.form.error.nickname.required":"请输入昵称","userSetting.basicInfo.form.label.countryRegion":"国家/地区","userSetting.basicInfo.placeholder.countryRegion":"请选择","userSetting.form.error.countryRegion.required":"请选择国家/地区","userSetting.basicInfo.form.label.area":"所在区域","userSetting.basicInfo.placeholder.area":"请选择","userSetting.form.error.area.required":"请选择所在区域","userSetting.basicInfo.form.label.address":"具体地址","userSetting.basicInfo.placeholder.address":"请输入您的地址","userSetting.basicInfo.form.label.profile":"个人简介","userSetting.basicInfo.placeholder.profile":"请输入您的个人简介,最多不超过200字。","userSetting.form.error.profile.maxLength":"最多不超过200字","userSetting.SecuritySettings.form.label.password":"登录密码","userSetting.SecuritySettings.placeholder.password":"已设置。密码至少6位字符,支持数字、字母和除空格外的特殊字符,且必须同时包含数字和大小写字母。","userSetting.SecuritySettings.form.label.securityQuestion":"密保问题","userSetting.SecuritySettings.placeholder.securityQuestion":"您暂未设置密保问题,密保问题可以有效的保护账号的安全。","userSetting.SecuritySettings.form.label.phone":"安全手机","userSetting.SecuritySettings.form.label.email":"安全邮箱","userSetting.SecuritySettings.placeholder.email":"您暂未设置邮箱,绑定邮箱可以用来找回密码、接收通知等。","userSetting.SecuritySettings.button.settings":"设置","userSetting.SecuritySettings.button.update":"修改","userSetting.certification.title.enterprise":"企业实名认证","userSetting.certification.extra.enterprise":"修改认证主体","userSetting.certification.label.accountType":"账号类型","userSetting.certification.label.status":"认证状态","userSetting.certification.label.time":"认证时间","userSetting.certification.label.legalPerson":"法人姓名","userSetting.certification.label.certificateType":"法人证件类型","userSetting.certification.label.authenticationNumber":"法人认证号码","userSetting.certification.label.enterpriseName":"企业名称","userSetting.certification.label.enterpriseCertificateType":"企业证件类型","userSetting.certification.label.organizationCode":"组织机构代码","userSetting.certification.title.record":"认证记录","userSetting.certification.columns.certificationType":"认证类型","userSetting.certification.cell.certificationType":"企业证件认证","userSetting.certification.columns.certificationContent":"认证内容","userSetting.certification.columns.status":"当前状态","userSetting.certification.cell.pass":"已通过","userSetting.certification.cell.auditing":"审核中","userSetting.certification.columns.time":"创建时间","userSetting.certification.columns.operation":"操作","userSetting.certification.button.check":"查看","userSetting.certification.button.withdraw":"撤回"},Qot={"searchTable.form.number":"集合编号","searchTable.form.number.placeholder":"请输入集合编号","searchTable.form.name":"集合名称","searchTable.form.name.placeholder":"请输入集合名称","searchTable.form.contentType":"内容体裁","searchTable.form.contentType.img":"图文","searchTable.form.contentType.horizontalVideo":"横版短视频","searchTable.form.contentType.verticalVideo":"竖版小视频","searchTable.form.filterType":"筛选方式","searchTable.form.filterType.artificial":"人工筛选","searchTable.form.filterType.rules":"规则筛选","searchTable.form.createdTime":"创建时间","searchTable.form.status":"状态","searchTable.form.status.online":"已上线","searchTable.form.status.offline":"已下线","searchTable.form.search":"查询","searchTable.form.reset":"重置","searchTable.form.selectDefault":"全部","searchTable.operation.create":"新建","searchTable.operation.import":"批量导入","searchTable.operation.download":"下载","searchTable.columns.index":"#","searchTable.columns.number":"集合编号","searchTable.columns.name":"集合名称","searchTable.columns.contentType":"内容体裁","searchTable.columns.filterType":"筛选方式","searchTable.columns.count":"内容量","searchTable.columns.createdTime":"创建时间","searchTable.columns.status":"状态","searchTable.columns.operations":"操作","searchTable.columns.operations.view":"查看","searchTable.size.mini":"迷你","searchTable.size.small":"偏小","searchTable.size.medium":"中等","searchTable.size.large":"偏大","searchTable.actions.refresh":"刷新","searchTable.actions.density":"密度","searchTable.actions.columnSetting":"列设置","dmx.list.index":"大模型","dmx.list.kbm":"知识库管理","dmx.list.DataSet":"数据集","dmx.list.complete":"完成","dmx.list.cancel":"取消","dmx.list.NotStarted":"未启动","dmx.list.EnsureDelete":"确定删除吗?","dmx.list.test":"测试","dmx.list.disposition":"配置","dmx.list.EntireArticle":"全文","dmx.list.omit":"省略","dmx.list.batch":"批量","dmx.KBL.LegalKB":"法律知识库","dmx.KBL.GovernmentKB":"政务知识库","dmx.KBL.MedicalKB":"医学知识库","dmx.KBL.OtherKB":"其他知识库","dmx.column.name":"名称","dmx.column.UploadTime":"上传时间","dmx.column.Founder":"创建人","dmx.column.Status":"解析状态","dmx.column.Enable":"启用","dmx.column.ParseState":"解析状态","dmx.column.Operate":"操作"},est={"menu.dmx.setting":"大模型设置","cardList.tab.title.all":"全部","cardList.tab.title.content":"内容质检","cardList.tab.title.service":"开通服务","cardList.tab.title.preset":"规则预置","cardList.searchInput.placeholder":"搜索","cardList.content.delete":"删除","cardList.content.inspection":"质检","cardList.content.action":"点击创建质检内容队列","cardList.service.open":"开通服务","cardList.service.cancel":"取消服务","cardList.service.renew":"续约服务","cardList.service.tag":"已开通","cardList.service.expiresTag":"已过期","cardList.preset.tag":"已启用"},tst={"settings.title":"页面配置","settings.themeColor":"主题色","settings.content":"内容区域","settings.search":"搜索","settings.language":"语言","settings.navbar":"导航栏","settings.menuWidth":"菜单宽度 (px)","settings.navbar.theme.toLight":"点击切换为亮色模式","settings.navbar.theme.toDark":"点击切换为暗黑模式","settings.navbar.screen.toFull":"点击切换全屏模式","settings.navbar.screen.toExit":"点击退出全屏模式","settings.navbar.alerts":"消息通知","settings.menu":"菜单栏","settings.topMenu":"顶部菜单栏","settings.tabBar":"多页签","settings.footer":"底部","settings.otherSettings":"其他设置","settings.colorWeak":"色弱模式","settings.alertContent":'配置之后仅是临时生效,要想真正作用于项目,点击下方的 "复制配置" 按钮,将配置替换到 settings.json 中即可。',"settings.copySettings":"复制配置","settings.copySettings.message":"复制成功,请粘贴到 src/settings.json 文件中","settings.close":"关闭","settings.color.tooltip":"根据主题颜色生成的 10 个梯度色(将配置复制到项目中,主题色才能对亮色 / 暗黑模式同时生效)","settings.menuFromServer":"菜单来源于后台"},nst={"menu.dashboard":"仪表盘","menu.authority":"权限管理","menu.server.dashboard":"仪表盘-服务端","menu.server.workplace":"工作台-服务端","menu.server.monitor":"实时监控-服务端","menu.session":"会话","menu.sessionRecords":"会话记录","menu.list":"列表页","menu.result":"结果页","menu.exception":"异常页","menu.form":"表单页","menu.profile":"详情页","menu.visualization":"数据可视化","menu.user":"个人中心","menu.arcoWebsite":"SmartAl大模型平台","menu.faq":"常见问题","navbar.docs":"文档中心","navbar.action.locale":"切换为中文",...Qot,...est,...tst,...Mot,...Tot,...Pot,...Oot,...Lot,...Dot,...Not,...jot,...zot,...Rot,...Bot,...Fot,...Vot,...Hot,...Wot,...Uot,...Zot,...Got,...Yot,...Xot,...Kot,...Jot,...qot},Sst=[{label:"中文",value:"zh-CN"},{label:"English",value:"en-US"}],ist=localStorage.getItem("arco-locale")||"zh-CN",rst=Yrt({locale:ist,fallbackLocale:"en-US",legacy:!1,allowComposition:!0,messages:{"en-US":Eot,"zh-CN":nst}});var ost={mounted(e,t){const n=i=>{!e.contains(i.target)&&e!==i.target&&t.value(i)};e.__ClickOutsideHandler__=n,document.addEventListener("click",n)},beforeUnmount(e){document.removeEventListener("click",e.__ClickOutsideHandler__)},getSSRProps(e,t){return{}}},sst=(()=>{const e=ost;return e.install=t=>{t.directive("outside",e)},e})();const Zo=Kc(eWe);Zo.use(VH);Zo.use(Iw);Zo.use(Rp);Zo.use(SG);Zo.use(rst);Zo.provide("$global",{ajax:uG,helper:Ol,config:Vnt});Zo.directive("outside",sst);Zo.mount("#app");Ol.getToken();document.querySelector("#app").$helper=Ol;Zo.config.globalProperties.$messageSuccess=function(e){this.$message.success(e)};Zo.config.globalProperties.$messageWarning=function(e){this.$message.warning(e)};Zo.config.globalProperties.$messageError=function(e){this.$message.error(e)};Zo.config.globalProperties.$messageInfo=function(e){this.$message.info(e)};Zo.config.globalProperties.$messageNormal=function(e){this.$message.normal(e)};export{cn as $,TB as A,Dt as B,R as C,X as D,B as E,Ve as F,pt as G,We as H,Re as I,ft as J,dn as K,tt as L,mE as M,gi as N,ki as O,Sst as P,G as Q,oo as R,$i as S,kst as T,MS as U,ei as V,Zr as W,nR as X,Pr as Y,Te as Z,jn as _,i1 as a,qXe as a0,VXe as a1,vKe as a2,DZ as a3,unt as a4,it as a5,au as a6,_a as a7,Cst as a8,Cr as a9,vE as aa,cst as ab,yst as ac,nte as ad,IYe as ae,gE as af,Iw as ag,PS as ah,Xp as ai,Qd as aj,AH as ak,gR as al,DR as am,Ol as an,Rp as ao,Fi as ap,Yt as b,bT as c,eit as d,Vn as e,P as f,n1 as g,Xi as h,oi as i,EO as j,ust as k,su as l,se as m,fn as n,gS as o,dst as p,bst as q,he as r,Gp as s,lo as t,ji as u,O as v,gt as w,Pe as x,On as y,Wn as z};